<?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/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>Aerialarts &#187; unix</title>
	<atom:link href="http://aerial.st/tags/unix/feed/" rel="self" type="application/rss+xml" />
	<link>http://aerial.st</link>
	<description></description>
	<lastBuildDate>Tue, 15 May 2012 01:27:51 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://aerial.st/tags/unix/feed/" />
		<item>
		<title>コマンドラインアプリ作成にちょっと便利なStringの拡張</title>
		<link>http://aerial.st/archive/2011/04/12/string-extra-supporting-cli-apps/</link>
		<comments>http://aerial.st/archive/2011/04/12/string-extra-supporting-cli-apps/#comments</comments>
		<pubDate>Tue, 12 Apr 2011 13:31:15 +0000</pubDate>
		<dc:creator>ikm</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://aerial.st/?p=992</guid>
		<description><![CDATA[githubをうろうろしていたら「なるほど」と思ったコードを見つけたのでメモっておく。 get-twitter-oauth-token / bin / get-twitter-oauth-token （gistじゃないので残念ながら埋め込むことができない。コピペするのも微妙なのでリンクだけ提示しておく） これは@jugyoさん作のコマンドラインからTwitterのOAuthのアクセストークンと秘密鍵を取得するスクリプトで、openコマンドを使ってるあたり多分Mac専用なんだと思う（Linuxとかでもあるのかな？）。 なるほどなーと思ったのはStringを拡張しているcolorとaskという二つのメソッド。 colorはその名のとおり文字列に色をつけるもので、引数numにはANSIエスケープシーケンス（？）で指定できる色の番号を渡す（「bashのプロンプトに色をつける」などを参照。zshでもいける）。 もうひとつのaskはユーザからの入力を受け付けを表示するもので、レシーバの文字列を印字してから入力された内容を返す。凄く短いメソッドだけど、これひとつだけで可読性が向上するから感動してしまった。 ただこれだとパスワードの入力もみえてしまうので、sttyを使って入力中の文字列を表示しないメソッドもあったほうが便利だと思い、ちょっと書いてみた。 ask_passwordなんて長ったらしいけど、パスワードはそうそう聞くものでもないしまぁいいかな、と。askとcolorはそのまま拝借した。これがあるだけでコマンドラインアプリがちょっと書きやすくなるんじゃないかと思う。]]></description>
		<wfw:commentRss>http://aerial.st/archive/2011/04/12/string-extra-supporting-cli-apps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://aerial.st/archive/2011/04/12/string-extra-supporting-cli-apps/" />
	</item>
		<item>
		<title>GTK+ on OSX</title>
		<link>http://aerial.st/archive/2008/09/27/gtk-on-osx/</link>
		<comments>http://aerial.st/archive/2008/09/27/gtk-on-osx/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 15:03:53 +0000</pubDate>
		<dc:creator>ikm</dc:creator>
				<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://aerial.st/?p=420</guid>
		<description><![CDATA[Mac OS XでGTKアプリをビルドできる「GTK+ on OSX」 &#8211; マイコミジャーナル 例えばこれを使ってビルドされたGIMPの起動にはX11が必要なくなる、ということらしい。 ただしMac OS X 10.4 (Intel) が必要。]]></description>
		<wfw:commentRss>http://aerial.st/archive/2008/09/27/gtk-on-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://aerial.st/archive/2008/09/27/gtk-on-osx/" />
	</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/


Served from: aerial.st @ 2012-05-23 02:13:46 -->
