<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Smart -Web Magazine</title>
	<atom:link href="http://rfs.jp/feed" rel="self" type="application/rss+xml" />
	<link>http://rfs.jp</link>
	<description>WEB開発者に嬉しいステキ講座</description>
	<lastBuildDate>Wed, 22 Feb 2012 17:02:11 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Bob Dylan - Mr. Tambourine Man</title>
		<link>http://rfs.jp/blog/music/bob-dylan-mr-tambourine-man.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=bob-dylan-mr-tambourine-man</link>
		<comments>http://rfs.jp/blog/music/bob-dylan-mr-tambourine-man.html#comments</comments>
		<pubDate>Wed, 22 Feb 2012 17:02:11 +0000</pubDate>
		<dc:creator>リズムファクトリー</dc:creator>
				<category><![CDATA[MUSIC BLOG]]></category>

		<guid isPermaLink="false">http://rfs.jp/?p=2389</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<iframe width="640" height="360" src="http://www.youtube.com/embed/E8d-XUknADY" frameborder="0" allowfullscreen></iframe>]]></content:encoded>
			<wfw:commentRss>http://rfs.jp/blog/music/bob-dylan-mr-tambourine-man.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ScHoolboy Q - Hands On The Wheel (Feat. A$AP Rocky)</title>
		<link>http://rfs.jp/blog/music/schoolboy-q-hands-on-the-wheel-feat-aap-rocky-2.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=schoolboy-q-hands-on-the-wheel-feat-aap-rocky-2</link>
		<comments>http://rfs.jp/blog/music/schoolboy-q-hands-on-the-wheel-feat-aap-rocky-2.html#comments</comments>
		<pubDate>Sun, 05 Feb 2012 13:19:45 +0000</pubDate>
		<dc:creator>リズムファクトリー</dc:creator>
				<category><![CDATA[MUSIC BLOG]]></category>

		<guid isPermaLink="false">http://rfs.jp/?p=2387</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<iframe width="640" height="360" src="http://www.youtube.com/embed/KWlu8VhcqtM" frameborder="0" allowfullscreen></iframe>]]></content:encoded>
			<wfw:commentRss>http://rfs.jp/blog/music/schoolboy-q-hands-on-the-wheel-feat-aap-rocky-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>weeland &amp; the urban soul collective - lullaby</title>
		<link>http://rfs.jp/blog/music/weeland-the-urban-soul-collective-lullaby.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=weeland-the-urban-soul-collective-lullaby</link>
		<comments>http://rfs.jp/blog/music/weeland-the-urban-soul-collective-lullaby.html#comments</comments>
		<pubDate>Wed, 01 Feb 2012 16:48:29 +0000</pubDate>
		<dc:creator>リズムファクトリー</dc:creator>
				<category><![CDATA[MUSIC BLOG]]></category>

		<guid isPermaLink="false">http://rfs.jp/?p=2383</guid>
		<description><![CDATA[パトリック・ウィーランド率いるweeland &#038; the urban soul collectiveのlullaby。]]></description>
			<content:encoded><![CDATA[<iframe width="640" height="360" src="http://www.youtube.com/embed/V5ZRQsjIbH0" frameborder="0" allowfullscreen></iframe>

<p>
パトリック・ウィーランド率いるweeland &#038; the urban soul collectiveのlullaby。
</p>
]]></content:encoded>
			<wfw:commentRss>http://rfs.jp/blog/music/weeland-the-urban-soul-collective-lullaby.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>スマートフォン（iPhone/Android）のページ内振り分け</title>
		<link>http://rfs.jp/sb/javascript/js_lab/smartphone_user-agent.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=smartphone_user-agent</link>
		<comments>http://rfs.jp/sb/javascript/js_lab/smartphone_user-agent.html#comments</comments>
		<pubDate>Tue, 31 Jan 2012 01:59:28 +0000</pubDate>
		<dc:creator>リズムファクトリー</dc:creator>
				<category><![CDATA[JavaScriptテックラボ]]></category>

		<guid isPermaLink="false">http://rfs.jp/?p=2378</guid>
		<description><![CDATA[ページ内でスマートフォンかどうかを判別し、表示を切り替えたい場合のスクリプトを紹介します。 JavaScriptでiPhone、Androidを識別してそれぞれの端末へメッセージを表示には、ユーザエージェントを使います。 &#8230; <a href="http://rfs.jp/sb/javascript/js_lab/smartphone_user-agent.html">+1 Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>
ページ内でスマートフォンかどうかを判別し、表示を切り替えたい場合のスクリプトを紹介します。<br />
JavaScriptでiPhone、Androidを識別してそれぞれの端末へメッセージを表示には、ユーザエージェントを使います。
</p>

<div class="box-config">
navigator.userAgent
</div>

<p>
navigator.userAgent で取得したユーザエージェント情報から「iPhone」という文字が合った場合の処理をする場合は、 indexOf を使って以下のようにします。
</p>

<pre class="brush: javascript;">
/* iPhoneという文字が見つかった場合 */
if ( navigator.userAgent.indexOf('iPhone') > 0 ){
}
</pre>

<p>
indexOf()メソッドは、指定したキーワードの発見位置を返します。発見できなければ-1の数値を返すので、値が0より上であればキーワードが発見できたと分かります。<br />
iPhone/iPad/iPod/Android毎に処理を分けるには次のようにします。
</p>

<pre class="brush: javascript;">
&lt;script type="text/javascript"&gt;
// iPhone
if ( navigator.userAgent.indexOf('iPhone') &gt; 0 ){

// iPad
} else if( navigator.userAgent.indexOf('iPad') &gt; 0 ){

// iPod
} else if( navigator.userAgent.indexOf('iPod') &gt; 0 ){

// Android
} else if( navigator.userAgent.indexOf('Android') &gt; 0 ){

}
&lt;/script&gt;
</pre>

<p>
iPhone/iPod/iPad/Androidの場合に何か処理したい場合は以下のとおりです。
</p>

<pre class="brush: javascript;">
&lt;script&gt;
// iPhone/iPad/iPod、Androidの場合は振り分けを判断
if ( navigator.userAgent.indexOf('iPhone') > 0 || navigator.userAgent.indexOf('iPad') > 0 
|| navigator.userAgent.indexOf('iPod') > 0 || navigator.userAgent.indexOf('Android') > 0) {

}
&lt;/script&gt;
</pre>

<p>
iPhone、Android（iPad/Androidタブレット除く）の場合に何か処理したい場合は以下のとおりです。
</p>

<pre class="brush: javascript;">
&lt;script&gt;
// iPhone/iPad/iPod、Androidの場合は振り分けを判断
if ( navigator.userAgent.indexOf('iPhone') > 0  
|| navigator.userAgent.indexOf('iPod') > 0 
|| (navigator.userAgent.indexOf('Android') > 0 &#038;& navigator.userAgent.indexOf('Mobile') > 0) ) {

}
&lt;/script&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://rfs.jp/sb/javascript/js_lab/smartphone_user-agent.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PhoneGap 横固定に設定する</title>
		<link>http://rfs.jp/sb/phonegap/phonegap-screenorientation-memo.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=phonegap-screenorientation-memo</link>
		<comments>http://rfs.jp/sb/phonegap/phonegap-screenorientation-memo.html#comments</comments>
		<pubDate>Wed, 25 Jan 2012 09:34:15 +0000</pubDate>
		<dc:creator>リズムファクトリー</dc:creator>
				<category><![CDATA[PhoneGap講座]]></category>

		<guid isPermaLink="false">http://rfs.jp/?p=2371</guid>
		<description><![CDATA[表示画面の回転を静的に設定したい場合は、マニフェストXMLのscreenOrientationを設定します。 &#60;activity android:name=".TestActivity" android:label &#8230; <a href="http://rfs.jp/sb/phonegap/phonegap-screenorientation-memo.html">+1 Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>
表示画面の回転を静的に設定したい場合は、マニフェストXMLのscreenOrientationを設定します。
</p>

<pre class="box-program">
&lt;activity android:name=".TestActivity" android:label="@string/app_name" android:screenOrientation="portrait"/&gt;
</pre>

<p>
screenOrientationの値にはportrait（縦固定）以外に、landscape(横固定)や、unspecified(システムに従う)などがあります。
</p>

<h5>Android Wiki*　画面の向き(ScreenOrientation)</h5>
<a href="http://wikiwiki.jp/android/?%B2%E8%CC%CC%A4%CE%B8%FE%A4%AD%28ScreenOrientation%29" target="_blank" class="a-url">http://wikiwiki.jp/android/?%B2%E8%CC%CC%A4%CE%B8%FE%A4%AD%28ScreenOrientation%29</a>
]]></content:encoded>
			<wfw:commentRss>http://rfs.jp/sb/phonegap/phonegap-screenorientation-memo.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ScHoolboy Q - Hands On The Wheel Feat A$AP Rocky</title>
		<link>http://rfs.jp/blog/music/schoolboy-q-hands-on-the-wheel-feat-aap-rocky.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=schoolboy-q-hands-on-the-wheel-feat-aap-rocky</link>
		<comments>http://rfs.jp/blog/music/schoolboy-q-hands-on-the-wheel-feat-aap-rocky.html#comments</comments>
		<pubDate>Sat, 21 Jan 2012 07:20:53 +0000</pubDate>
		<dc:creator>リズムファクトリー</dc:creator>
				<category><![CDATA[MUSIC BLOG]]></category>

		<guid isPermaLink="false">http://rfs.jp/?p=2368</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<iframe width="640" height="360" src="http://www.youtube.com/embed/dGd9DTTrX4U" frameborder="0" allowfullscreen></iframe>]]></content:encoded>
			<wfw:commentRss>http://rfs.jp/blog/music/schoolboy-q-hands-on-the-wheel-feat-aap-rocky.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BALAM ACAB - Oh,Why</title>
		<link>http://rfs.jp/blog/music/balam-acab-ohwhy.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=balam-acab-ohwhy</link>
		<comments>http://rfs.jp/blog/music/balam-acab-ohwhy.html#comments</comments>
		<pubDate>Sun, 15 Jan 2012 06:31:46 +0000</pubDate>
		<dc:creator>リズムファクトリー</dc:creator>
				<category><![CDATA[MUSIC BLOG]]></category>

		<guid isPermaLink="false">http://rfs.jp/?p=2364</guid>
		<description><![CDATA[「孤独や疎外感を感じる彼の音楽はジェームス・ブレイクのアプローチに似ているが、はるかに抽象的であり繊細な美しさに包まれている。」(Pitchfolk) という評価であれば聴かずにはいられなかったです。とても良かったです。 &#8230; <a href="http://rfs.jp/blog/music/balam-acab-ohwhy.html">+1 Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<iframe width="640" height="360" src="http://www.youtube.com/embed/fjcCE9jPmVY" frameborder="0" allowfullscreen></iframe>

<p>
「孤独や疎外感を感じる彼の音楽はジェームス・ブレイクのアプローチに似ているが、はるかに抽象的であり繊細な美しさに包まれている。」(Pitchfolk)
</p>

<p>
という評価であれば聴かずにはいられなかったです。とても良かったです。
</p>

<div class="amazlet-box" style="margin-bottom:0px;"><div class="amazlet-image" style="float:left;margin:0px 12px 1px 0px;"><a href="http://www.amazon.co.jp/exec/obidos/ASIN/B005BHE314/smart-22/ref=nosim/" name="amazletlink" target="_blank"><img src="http://images-jp.amazon.com/images/G/09/icons/music/comingsoon_music.gif" alt="Wander / Wonder" style="border: none;" /></a></div><div class="amazlet-info" style="line-height:120%; margin-bottom: 10px"><div class="amazlet-name" style="margin-bottom:10px;line-height:120%"><a href="http://www.amazon.co.jp/exec/obidos/ASIN/B005BHE314/smart-22/ref=nosim/" name="amazletlink" target="_blank">Wander / Wonder</a><div class="amazlet-powered-date" style="font-size:80%;margin-top:5px;line-height:120%">posted with <a href="http://www.amazlet.com/browse/ASIN/B005BHE314/smart-22/ref=nosim/" title="Wander / Wonder" target="_blank">amazlet</a> at 12.01.15</div></div><div class="amazlet-detail">Balam Acab <br />Tri Angle (2011-08-20)<br />売り上げランキング: 30207<br /></div><div class="amazlet-sub-info" style="float: left;"><div class="amazlet-link" style="margin-top: 5px"><a href="http://www.amazon.co.jp/exec/obidos/ASIN/B005BHE314/smart-22/ref=nosim/" name="amazletlink" target="_blank">Amazon.co.jp で詳細を見る</a></div></div></div><div class="amazlet-footer" style="clear: left"></div></div>
]]></content:encoded>
			<wfw:commentRss>http://rfs.jp/blog/music/balam-acab-ohwhy.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MGMT - Late Night Tales収録曲 バウハウス「All We Ever Wanted Was Everything」カバーのPV</title>
		<link>http://rfs.jp/blog/music/mgmt-late-night.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mgmt-late-night</link>
		<comments>http://rfs.jp/blog/music/mgmt-late-night.html#comments</comments>
		<pubDate>Sat, 14 Jan 2012 07:56:54 +0000</pubDate>
		<dc:creator>リズムファクトリー</dc:creator>
				<category><![CDATA[MUSIC BLOG]]></category>

		<guid isPermaLink="false">http://rfs.jp/?p=2359</guid>
		<description><![CDATA[MGMT - All We Ever Wanted Was Everything from oneedo on Vimeo. 深い夜の物語をテーマに人気アーティストが監修する特注コンピ・シリーズの最新作『Late Nig &#8230; <a href="http://rfs.jp/blog/music/mgmt-late-night.html">+1 Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<iframe src="http://player.vimeo.com/video/32590845?title=0&amp;byline=0&amp;portrait=0" width="601" height="338" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe><p><a href="http://vimeo.com/32590845">MGMT - All We Ever Wanted Was Everything</a> from <a href="http://vimeo.com/oneedo">oneedo</a> on <a href="http://vimeo.com">Vimeo</a>.</p>

深い夜の物語をテーマに人気アーティストが監修する特注コンピ・シリーズの最新作『Late Night Tales - MGMT』に収録されている、バウハウスの「All We Ever Wanted Was Everything」をMGMTがカバー。]]></content:encoded>
			<wfw:commentRss>http://rfs.jp/blog/music/mgmt-late-night.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Postfix-and-Dovecot</title>
		<link>http://rfs.jp/server/setting/postfix-and-dovecot.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=postfix-and-dovecot</link>
		<comments>http://rfs.jp/server/setting/postfix-and-dovecot.html#comments</comments>
		<pubDate>Fri, 13 Jan 2012 12:44:34 +0000</pubDate>
		<dc:creator>リズムファクトリー</dc:creator>
				<category><![CDATA[各種サーバ設定]]></category>

		<guid isPermaLink="false">http://rfs.jp/?p=2357</guid>
		<description><![CDATA[PostfixとDovecotの最低限の簡単設定です。 とりあえず開通させてからセキュリティ関連の設定に入ったほうがよさそうです。 postfix 変更ファイル：/etc/postfix/main.cf myhostna &#8230; <a href="http://rfs.jp/server/setting/postfix-and-dovecot.html">+1 Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>
PostfixとDovecotの最低限の簡単設定です。<br />
とりあえず開通させてからセキュリティ関連の設定に入ったほうがよさそうです。
</p>

<h3>postfix</h3>
<p>
変更ファイル：/etc/postfix/main.cf
</p>

<pre class="box-config">
myhostname	= [ドメイン名]
mydomain	= [ドメイン名]
myorigin	= $mydomain
mydestination	= $myhostname, localhost.$mydomain, localhost, $mydomain
smtpd_banner	= $myhostname ESMTP unknown
</pre>

<h3>dovecot</h3>
<p>
変更ファイル：/etc/dovecot/dovecot.conf
</p>

<pre class="box-config">
mail_location	= maildir:~/Maildir
</pre>
]]></content:encoded>
			<wfw:commentRss>http://rfs.jp/server/setting/postfix-and-dovecot.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linuxでユーザを削除出来なかった時の対処</title>
		<link>http://rfs.jp/server/%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%83%a9%e3%82%a4%e3%83%b3/userdeltec.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=userdeltec</link>
		<comments>http://rfs.jp/server/%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%83%a9%e3%82%a4%e3%83%b3/userdeltec.html#comments</comments>
		<pubDate>Fri, 13 Jan 2012 03:54:21 +0000</pubDate>
		<dc:creator>リズムファクトリー</dc:creator>
				<category><![CDATA[コマンドライン]]></category>

		<guid isPermaLink="false">http://rfs.jp/?p=2348</guid>
		<description><![CDATA[userdelコマンドとrオプションでユーザ名と関連ディレクトリを削除しようとし、削除できなかったケースの対処方です。 下記はuserdelコマンドを実行し、エラーが返ってきています。 # userdel -r [ユーザ &#8230; <a href="http://rfs.jp/server/%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%83%a9%e3%82%a4%e3%83%b3/userdeltec.html">+1 Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>
userdelコマンドとrオプションでユーザ名と関連ディレクトリを削除しようとし、削除できなかったケースの対処方です。<br />
下記はuserdelコマンドを実行し、エラーが返ってきています。
</p>

<pre class="box-shell">
# userdel -r [ユーザ名]
userdel: user [ユーザ名] is currently logged in
</pre>

<p>
まず、whoコマンドで本当にログインされているか確認します。
</p>

<pre class="box-shell">
# who
</pre>

<p>
削除対象のユーザ名が表示されなかった場合は、システムに捕まっている可能性があります。<br />
psコマンドで現在使われているプロセスを表示し、grepで任意のユーザ名にマッチする行を検索します。
</p>

<pre class="box-shell">
# ps aux | grep [ユーザ名]
</pre>

<p>
マッチしたプロセスがあれば、そのPIDを使ってプロセスを強制終了させます。
</p>

<pre class="box-shell">
# kill [PID]
</pre>

<p>
上記でも終了しなかった場合、KILLオプションを使ってさらに強く強制終了させます。
</p>

<pre class="box-shell">
# kill -KILL pid 
</pre>

<p>
これでほとんどのプロセスが終了します。<br />
プロセスが終了したら、userdelでユーザを削除しましょう。
</p>

<pre class="box-shell">
# userdel -r [ユーザ名]
</pre>
]]></content:encoded>
			<wfw:commentRss>http://rfs.jp/server/%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%83%a9%e3%82%a4%e3%83%b3/userdeltec.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

