<?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; Mac</title>
	<atom:link href="http://aerial.st/tags/mac/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/mac/feed/" />
		<item>
		<title>LionでPostfix+Gmail</title>
		<link>http://aerial.st/archive/2011/12/08/postfix-via-gmail-on-lion/</link>
		<comments>http://aerial.st/archive/2011/12/08/postfix-via-gmail-on-lion/#comments</comments>
		<pubDate>Thu, 08 Dec 2011 02:49:58 +0000</pubDate>
		<dc:creator>ikm</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[postfix]]></category>

		<guid isPermaLink="false">http://aerial.st/?p=1194</guid>
		<description><![CDATA[OSX LionにはPostfixがインストールされているんだけど、これを使ってgmail経由で送信する際に一筋縄では行かなかったのでメモ。 まず /etc/postfix/main.cf に以下を追記して、gmailの587番ポートに接続するよう設定する。 relayhost = [smtp.gmail.com]:587 smtp_use_tls = yes smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_tls_security_options = noanonymous smtp_sasl_mechanism_filter = plain smtp_tls_security_level = secure smtp_tls_CApath = /etc/postfix/certs 次に /etc/postfix/sasl_passwd にgmailアカウントの情報を記述する（YOUR.ACCOUNTとYOUR_PASSWORD部分は自分のものに書き換える）。 [smtp.gmail.com]:587 YOUR.ACCOUNT@gmail.com:YOUR_PASSWORD そしてpostmapでデータベースを作成し、元のファイルは削除する。 # postmap /etc/postfix/sasl_passwd # rm /etc/postfix/sasl_passwd 次に、GmailのSSL証明書を取得する。下記がコマンドの出力結果（＋注釈）だけど、 注釈の通り証明書の鍵部分を /etc/postfix/certs/gmail.pem と /etc/postfix/certs/equifax.pem に保存する。 $ openssl s_client -connect pop.gmail.com:995 -showcerts CONNECTED(00000003) depth=1 /C=US/O=Google Inc/CN=Google Internet Authority verify error:num=20:unable to get local issuer certificate verify return:0 --- Certificate chain 0 s:/C=US/ST=California/L=Mountain View/O=Google Inc/CN=pop.gmail.com i:/C=US/O=Google Inc/CN=Google Internet Authority ### [...]]]></description>
		<wfw:commentRss>http://aerial.st/archive/2011/12/08/postfix-via-gmail-on-lion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://aerial.st/archive/2011/12/08/postfix-via-gmail-on-lion/" />
	</item>
		<item>
		<title>Macでpkill</title>
		<link>http://aerial.st/archive/2011/06/16/pkill-on-mac/</link>
		<comments>http://aerial.st/archive/2011/06/16/pkill-on-mac/#comments</comments>
		<pubDate>Thu, 16 Jun 2011 00:28:51 +0000</pubDate>
		<dc:creator>ikm</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[homebrew]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://aerial.st/?p=1095</guid>
		<description><![CDATA[homebrewでproctoolsをインストールする。 $ brew install proctools]]></description>
		<wfw:commentRss>http://aerial.st/archive/2011/06/16/pkill-on-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://aerial.st/archive/2011/06/16/pkill-on-mac/" />
	</item>
		<item>
		<title>LaunchAgentsで標準出力・エラー出力を設定する</title>
		<link>http://aerial.st/archive/2011/06/10/stdout-stderr-with-launchagents/</link>
		<comments>http://aerial.st/archive/2011/06/10/stdout-stderr-with-launchagents/#comments</comments>
		<pubDate>Fri, 10 Jun 2011 09:57:12 +0000</pubDate>
		<dc:creator>ikm</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[launchctl]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[memcached]]></category>

		<guid isPermaLink="false">http://aerial.st/?p=1068</guid>
		<description><![CDATA[LaunchAgentsで起動しているデーモン等で標準出力・エラー出力先を指定するには、StandardOutPathとStandardErrorPathを設定する。 例えばmemcachedでは次のようにする（ちなみにhomebrewでインストールした）。 vi ~/Library/LaunchAgents/com.danga.memcached.plist &#60;?xml version="1.0" encoding="UTF-8"?&#62; &#60;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&#62; &#60;plist version="1.0"&#62; &#60;dict&#62; &#60;key&#62;Label&#60;/key&#62; &#60;string&#62;com.danga.memcached&#60;/string&#62; &#60;key&#62;KeepAlive&#60;/key&#62; &#60;true/&#62; &#60;key&#62;ProgramArguments&#60;/key&#62; &#60;array&#62; &#60;string&#62;/usr/local/bin/memcached&#60;/string&#62; &#60;string&#62;-l&#60;/string&#62; &#60;string&#62;127.0.0.1&#60;/string&#62; &#60;string&#62;-vv&#60;/string&#62;&#60;!-- エラーや警告、コマンド等を出力するオプション --&#62; &#60;/array&#62; &#60;key&#62;StandardOutPath&#60;/key&#62; &#60;string&#62;/usr/local/var/log/memcached.log&#60;/string&#62; &#60;key&#62;StandardErrorPath&#60;/key&#62; &#60;string&#62;/usr/local/var/log/memcached.log&#60;/string&#62; &#60;key&#62;RunAtLoad&#60;/key&#62; &#60;true/&#62; &#60;key&#62;WorkingDirectory&#60;/key&#62; &#60;string&#62;/usr/local&#60;/string&#62; &#60;/dict&#62; &#60;/plist&#62; launchctl unload ~/Library/LaunchAgents/com.danga.memcached.plist launchctl load ~/Library/LaunchAgents/com.danga.memcached.plist memcachedの場合は-vvもしくは-vオプションも必要なので要注意。]]></description>
		<wfw:commentRss>http://aerial.st/archive/2011/06/10/stdout-stderr-with-launchagents/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://aerial.st/archive/2011/06/10/stdout-stderr-with-launchagents/" />
	</item>
		<item>
		<title>MechanizeをMac OSXにインストール</title>
		<link>http://aerial.st/archive/2011/04/02/install-mechanize-to-macosx/</link>
		<comments>http://aerial.st/archive/2011/04/02/install-mechanize-to-macosx/#comments</comments>
		<pubDate>Sat, 02 Apr 2011 09:09:57 +0000</pubDate>
		<dc:creator>ikm</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[homebrew]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[mechanize]]></category>
		<category><![CDATA[nokogiri]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[scraping]]></category>

		<guid isPermaLink="false">http://aerial.st/?p=986</guid>
		<description><![CDATA[MechanizeはNokogiriに依存しており、Nokogiriはlibxml2とlibxsltに依存している。 libxml2はhomebrewで提供されているのでそれを利用し、libxsltはソースから入れる。 $ brew install libxml2 # libxml2 v2.7.7 $ wget ftp://xmlsoft.org/libxml2/libxslt-1.1.26.tar.gz $ tar zxf libxslt-1.1.26.tar.gz $ cd libxslt-1.1.26 $ ./configure --prefix=/usr/local/Cellar/libxslt/1.1.26 --with-libxml-prefix=/usr/local/Cellar/libxml2/2.7.7 $ make $ make install $ gem install nokogiri -- --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.26 $ gem install mechanize nokogiriのインストール方法についてはNokogiriのチュートリアルが詳しい。]]></description>
		<wfw:commentRss>http://aerial.st/archive/2011/04/02/install-mechanize-to-macosx/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://aerial.st/archive/2011/04/02/install-mechanize-to-macosx/" />
	</item>
		<item>
		<title>MacBook Airの11.6インチを購入</title>
		<link>http://aerial.st/archive/2010/10/28/buy-macbook-air-116inch-128gigabytes/</link>
		<comments>http://aerial.st/archive/2010/10/28/buy-macbook-air-116inch-128gigabytes/#comments</comments>
		<pubDate>Wed, 27 Oct 2010 15:41:06 +0000</pubDate>
		<dc:creator>ikm</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://aerial.st/?p=778</guid>
		<description><![CDATA[10/22にApple Store渋谷店で購入した。 13インチと悩んだあげく、(1)既に持っているMacBook Proの15インチと差別化がはかりやすく、(2)ハードディスク容量的に不安が少ない、(3)予想以上に画面が広く感じる、の3点で11インチの128GBを選んだ（64GBの11インチの在庫がなかったというのもある）。 で、数日間使ってみての感想だけど、 持ち運びの良さは最高 ちょっとプログラミングする程度なら十分画面が広く見やすい ディスプレイの映り込みがないので見やすい（Proもこうなってほしい） 電池のことは特に気にしてない（アダプタを外して3時間ぐらいは余裕でもつ） キーボードの感覚はProとほとんど変わらない（ESCが若干押しづらい？） 光学ドライブが無いことはそこまで気にならない デザインがシンプルでかっこいい（大好き） メモリは2GBだけど、テキストベースの軽い作業ばかりなので気にならない（一応SkypeとEchofonとFirefoxとChromeは裏で常時起動してるけど） という感じ。買ってすごく満足している。まさに愛機。 というわけで興味のある人はとりあえず店舗で触ってみるといいと思う。触ると「なにこれ！？」ってなるから。 メインにするにはさすがに作業領域が狭いけど、でも手軽にいつでも触っていたい感が強いので、ほんとうにおすすめ。]]></description>
		<wfw:commentRss>http://aerial.st/archive/2010/10/28/buy-macbook-air-116inch-128gigabytes/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://aerial.st/archive/2010/10/28/buy-macbook-air-116inch-128gigabytes/" />
	</item>
		<item>
		<title>gitリポジトリを立ててSSHで利用</title>
		<link>http://aerial.st/archive/2010/06/19/git-via-ssh/</link>
		<comments>http://aerial.st/archive/2010/06/19/git-via-ssh/#comments</comments>
		<pubDate>Sat, 19 Jun 2010 06:17:57 +0000</pubDate>
		<dc:creator>ikm</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://aerial.st/?p=705</guid>
		<description><![CDATA[以前daemonを起動してリポジトリ立てる方法について書いたけど、今回はgitのリポジトリを立てる(SSH経由) を参考にSSH経由でできるようにやってみた。 リポジトリを置くサーバのホスト名はexampleとする。 ユーザの追加 リポジトリを操作するためのgitユーザをexampleサーバに追加する。 Mac OS 10.6の場合、ユーザは dsclで追加 する。 このときシェルにgit-shell（MacPortsで入れたなら /opt/local/bin/git-shell にある）を設定する。こうすることでpush,pullのみを受け付けるようになる。 リポジトリの作成 example:/Users/gitディレクトリ配下にリポジトリを集約するreposディレクトリを作成し、今回はprojectというリポジトリを作成してみる（末尾に.gitを付けるのは慣習？）。 % cd /Users/git % sudo -u git mkdir repos % sudo -u git mkdir repos/project.git % cd repos/project.git % sudo -u git git init --bare 鍵を追加 gitユーザにSSHでログインするための鍵を追加する。 % cat ~/.ssh/id_rsa.pub > /Users/git/.ssh/authorized_keys cloneしてみる $ git clone git@example:repos/project.git $ cd project pushしてみる masterブランチでのコミット内容をorigin（サーバ側）に適用する。 $ git push origin master ただこのときに次のようなエラーがでるかもしれない。 $ git push -v origin master Pushing to git@example:repos/project.git To git@example:repos/project.git ! [rejected] master -> master (non-fast-forward) [...]]]></description>
		<wfw:commentRss>http://aerial.st/archive/2010/06/19/git-via-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://aerial.st/archive/2010/06/19/git-via-ssh/" />
	</item>
		<item>
		<title>（挫折）NSPreferredMailCharset on Snow Leopard</title>
		<link>http://aerial.st/archive/2010/06/02/nspreferredmailcharset-on-snow-leopard-faile/</link>
		<comments>http://aerial.st/archive/2010/06/02/nspreferredmailcharset-on-snow-leopard-faile/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 05:30:59 +0000</pubDate>
		<dc:creator>ikm</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Mail.app]]></category>

		<guid isPermaLink="false">http://aerial.st/?p=697</guid>
		<description><![CDATA[NSPreferredMailCharset on LeopardをSnow Leopardに対応させようとしたけど、ちょっと挫折した。 やったことをとりあえずメモっておく： method_impをmethod_(set&#124;get)Implementationに書き換える Info.plistのSupportedPluginCompatibilityUUIDsに、Mail.appとMessage.frameworkのInfo.plistに書かれているPluginCompatibilityUUIDsを列挙する ビルド対象のアーキテクチャを32bit/64bit対応のUniversalに設定する Console.appを見ながら作業したのでここまでは合ってるはずなんだけど、ここで&#8221;Domain=NSCocoaErrorDomain Code=3588&#8243;が出た。どっかでエラーが出てるんだけど、今すぐにはちょっとわからない。]]></description>
		<wfw:commentRss>http://aerial.st/archive/2010/06/02/nspreferredmailcharset-on-snow-leopard-faile/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://aerial.st/archive/2010/06/02/nspreferredmailcharset-on-snow-leopard-faile/" />
	</item>
		<item>
		<title>CassandraをSnow Leopardで動かす</title>
		<link>http://aerial.st/archive/2010/03/18/install-cassandra-onsnow-leopard/</link>
		<comments>http://aerial.st/archive/2010/03/18/install-cassandra-onsnow-leopard/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 14:48:47 +0000</pubDate>
		<dc:creator>ikm</dc:creator>
				<category><![CDATA[cassandra]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://aerial.st/?p=666</guid>
		<description><![CDATA[CassandraをSnow Leopardで動かす方法。 Javaの設定 ~/.zshrcに次の記述を追加する。 export JAVA_HOME=$(/usr/libexec/java_home) export PATH=$JAVA_HOME/bin:$PATH Cassandraのインストール まずディレクトリを掘る。 1つはログ用ディレクトリ。 mkdir -p /var/log/cassandra touch /var/log/cassandra/system.log chown -R `whoami` /var/log/cassandra 2つ目はデータ用ディレクトリ。デフォルトらしい。 mkdir -p /var/lib/cassandra chown -R `whoami` /var/lib/cassandra 今回はコンパイル済みバイナリを落としてそれを使う。 tar xf apache-cassandra-0.5.1-bin.tar.gz mv apache-cassandra-0.5.1-bin /usr/local ln -s /usr/local/apache-cassandra-0.5.1-bin /usr/local/cassandra サーバを立ち上げる。 /usr/local/cassandra/bin/cassandra デフォルトではシングルモードで動作し、8888番ポートを使用する。 詳細な設定はconf/storage-conf.xmlに記述する。 クライアントはbin/cassandra-cliを使用する。 /usr/local/cassandra/bin/cassandra-cli -host localhost -port 8888 /usr/local/cassandra/bin/cassandra-cli -host localhost -port 9160 対話形式で起動し、helpコマンドでヘルプを見ることができる。 プロセスの実行権限所有者とかログの書き込み権限とか 参考にしたサイトではどこもログやデータディレクトリの所有者が端末の利用者に設定されていてちょっと気持ち悪かった（whoamiの部分）。 なので、試しに_cassandraユーザを作って次のことをやってみた。 各ディレクトリの所有者を_cassandraユーザに設定 サーバを_cassandraユーザで起動（sudo -u _cassandra /usr/local/cassandra/bin/cassandra） cassandra-cliを上と同様に起動（ユーザはwhoami） そしたら、サーバを起動したところまではうまくいったけど、クライアントを起動する際に/var/log/cassandra/system.logに書き込み権限が無いとエラーが出た。 そこに書き込むのはサーバのプロセス所有者である_cassandraなのに…。 そこで、今度はcassandra-cliもサーバと同じように_cassandraユーザで起動してみたら、ホームディレクトリに作られるクライアントの履歴ファイルの書き込み権限が無いと怒られた。これは確かにその通りだよね、という感じ。 なので、最終手段として_cassandraグループを作って次のことをやってみた。 _cassandraグループに_cassandraユーザとwhoamiを追加する ログディレクトリとデータディレクトリ、実行ファイルの所有グループを_cassandraグループに設定する ログディレクトリとデータディレクトリの所有グループに書き込み権限を与える サーバを_cassandraユーザで起動 cassandra-cliは今まで通り普通に起動（ユーザはwhoami） そしたら、問題なくサーバに接続できた。 ログファイルはクライアントのユーザ権限で書き込みにいっているのかも？なんか変な気がするけど。 参考文献 Installing Cassandra and Thrift [...]]]></description>
		<wfw:commentRss>http://aerial.st/archive/2010/03/18/install-cassandra-onsnow-leopard/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://aerial.st/archive/2010/03/18/install-cassandra-onsnow-leopard/" />
	</item>
		<item>
		<title>launchctlでlocate</title>
		<link>http://aerial.st/archive/2009/11/14/locate-with-launchctl/</link>
		<comments>http://aerial.st/archive/2009/11/14/locate-with-launchctl/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 05:12:45 +0000</pubDate>
		<dc:creator>ikm</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://aerial.st/?p=576</guid>
		<description><![CDATA[locateを使うにはupdatedbが必要で、適宜更新するためにもcronで定時に更新したりするらしい。 ただSnow Leopard（Tiger以降？）だとupdatedbがデフォルトでパスの通った場所にない。探してみると、/usr/libexec/locate.updatedb というちょっと変な場所にある。 そこで、こいつを実行せずにlocateを実行してみると、どうやら定期的な更新とかはlaunchctlでそこらへんはうまくやってくれるかのようなメッセージが出てくる。そいつにしたがって以下を実行してみると、確かにlocateが使えるようになる。 sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist DBの更新スケジュールは/System/Library/LaunchDaemons/com.apple.locate.plistに記述されている。]]></description>
		<wfw:commentRss>http://aerial.st/archive/2009/11/14/locate-with-launchctl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://aerial.st/archive/2009/11/14/locate-with-launchctl/" />
	</item>
		<item>
		<title>macportsでzlibのインストールに失敗</title>
		<link>http://aerial.st/archive/2009/09/07/install-zlib-with-macports-on-snow-leopard/</link>
		<comments>http://aerial.st/archive/2009/09/07/install-zlib-with-macports-on-snow-leopard/#comments</comments>
		<pubDate>Sun, 06 Sep 2009 15:43:15 +0000</pubDate>
		<dc:creator>ikm</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[macports]]></category>

		<guid isPermaLink="false">http://aerial.st/?p=550</guid>
		<description><![CDATA[macportsでzlib 1.2.3をインストールしようとしたら、 ~$ sudo port -f install zlib ---> Computing dependencies for zlib ---> Cleaning zlib で終わってしまい、先に進まなかった。 そこで、Snow Leopard導入記録その1 MacPort関連簡易メモを参考に+universalをつけてインストールしてみたところ、問題なくインストールされた。]]></description>
		<wfw:commentRss>http://aerial.st/archive/2009/09/07/install-zlib-with-macports-on-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://aerial.st/archive/2009/09/07/install-zlib-with-macports-on-snow-leopard/" />
	</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 01:39:08 -->
