<?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>aruy.net &#187; mac</title>
	<atom:link href="http://aruy.net/archives/category/mac/feed" rel="self" type="application/rss+xml" />
	<link>http://aruy.net</link>
	<description>ちゃんとプログラムが書けるようになりたい。</description>
	<lastBuildDate>Tue, 27 Jul 2010 05:44:54 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>macのWeb共有でCGI</title>
		<link>http://aruy.net/archives/488</link>
		<comments>http://aruy.net/archives/488#comments</comments>
		<pubDate>Fri, 23 Apr 2010 00:48:34 +0000</pubDate>
		<dc:creator>aruy</dc:creator>
				<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://aruy.net/?p=488</guid>
		<description><![CDATA[macに標準で入ってるApacheでCGIを動かそうと思ったら、ちょっと設定が必要だったのでメモ。
設定ファイルの編集
sudo vim /etc/apache2/users/username.conf
&#60;Dire [...]]]></description>
			<content:encoded><![CDATA[<p>macに標準で入ってるApacheでCGIを動かそうと思ったら、ちょっと設定が必要だったのでメモ。</p>
<p>設定ファイルの編集</p>
<blockquote><p>sudo vim /etc/apache2/users/username.conf<br />
&lt;Directory &#8220;/Users/username/Sites/&#8221;&gt;<br />
Options All<br />
AllowOverride All<br />
Order allow,deny<br />
Allow from all<br />
+ AddHandler cgi-script .cgi .rb<br />
&lt;/Directory&gt;</p></blockquote>
<p>Web共有をOFF-&gt;ON</p>
]]></content:encoded>
			<wfw:commentRss>http://aruy.net/archives/488/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>id3lib-rubyをSnow Leopardにインストール</title>
		<link>http://aruy.net/archives/484</link>
		<comments>http://aruy.net/archives/484#comments</comments>
		<pubDate>Sat, 10 Apr 2010 13:51:34 +0000</pubDate>
		<dc:creator>aruy</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://aruy.net/?p=484</guid>
		<description><![CDATA[id3lib-rubyをSnowLeopardにインストールしようと思ったんだけど、gemに怒られるばかりでインストールできない。でググったら以下のページに解決方法が書いてありました。
Installing id3lib [...]]]></description>
			<content:encoded><![CDATA[<p>id3lib-rubyをSnowLeopardにインストールしようと思ったんだけど、gemに怒られるばかりでインストールできない。でググったら以下のページに解決方法が書いてありました。</p>
<p><a href="http://prowestech.com/blog/2009-10-29-installing-id3lib-ruby-on-os-x-snow-leopard">Installing id3lib-ruby on OS X Snow Leopard</a></p>
<p>インストール時にオプション指定しないと上手くインストールできないらしい。</p>
<blockquote><p>sudo env ARCHFLAGS=&#8221;-arch x86_64&#8243; gem install id3lib-ruby &#8212; &#8211;with-opt-dir=/opt/local
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://aruy.net/archives/484/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>xcode で zenburn</title>
		<link>http://aruy.net/archives/444</link>
		<comments>http://aruy.net/archives/444#comments</comments>
		<pubDate>Wed, 09 Dec 2009 14:58:30 +0000</pubDate>
		<dc:creator>aruy</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://aruy.net/?p=444</guid>
		<description><![CDATA[昨日から、iPhone SDKの教科書を参考にiPhoneアプリ開発の勉強を始めました。
で、xcodeでコードを書くのですが、エディタの配色があまり好みでなかったので、一括でカラー変更できないのかな？？と思ってググって [...]]]></description>
			<content:encoded><![CDATA[<p>昨日から、iPhone SDKの教科書を参考にiPhoneアプリ開発の勉強を始めました。</p>
<p>で、xcodeでコードを書くのですが、エディタの配色があまり好みでなかったので、一括でカラー変更できないのかな？？と思ってググってみたところ、普段vimで使っているカラースキームと同系統のxcode用カラーテーマがあったので、早速設定してみました。</p>
<p><a href="http://tracesof.blogspot.com/2009/03/zenburn-color-theme-for-xcode.html">Traces Of &#8230;: Zenburn color theme for Xcode</a></p>
<p>ダウンロードして、~/Library/Application Support/Xcode/Color Themes/に配置。<br />
xcode上げなおして環境設定→フォントとカラー→カラーテーマ→zenburnを選択。</p>
<p>結果はこんな感じ。いつもと同じで落ち着きます。</p>
<div class="thumbnail"><a href="http://skitch.com/aruy/nk5pe/counterviewcontroller.m"><img src="http://img.skitch.com/20091209-tqi5dxnb7kxc6xx6fanixdww59.preview.jpg" alt="CounterViewController.m" /></a><br /><span style="font-family: Lucida Grande, Trebuchet, sans-serif, Helvetica, Arial; font-size: 10px; color: #808080">Uploaded with <a href="http://plasq.com/">plasq</a>&#8216;s <a href="http://skitch.com">Skitch</a>!</span></div>
<p>「xcode Color Theme」とかでググると他にも結構出てきます。あとで他のも試してみよう！！</p>
]]></content:encoded>
			<wfw:commentRss>http://aruy.net/archives/444/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>macbookのディスプレイ</title>
		<link>http://aruy.net/archives/300</link>
		<comments>http://aruy.net/archives/300#comments</comments>
		<pubDate>Thu, 30 Apr 2009 15:40:08 +0000</pubDate>
		<dc:creator>aruy</dc:creator>
				<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://aruy.net/?p=300</guid>
		<description><![CDATA[macbookを買って以来、悩まされていたのがディスプレイのコントラストが高すぎること。このBlogのボトム部分はグレーなのですが、僕のmacbookではまっ白に表示されていて、白とか薄いグレーのものはすべて白に表示され [...]]]></description>
			<content:encoded><![CDATA[<p>macbookを買って以来、悩まされていたのがディスプレイのコントラストが高すぎること。このBlogのボトム部分はグレーなのですが、僕のmacbookではまっ白に表示されていて、白とか薄いグレーのものはすべて白に表示されていました。購入当初はすごく気になってディスプレイのキャリブレータで色々調整したりしてみたのですが、さっぱり直らなかったのであきらめていました。</p>
<p>で、今日なんの気なしに「macbook ディスプレイ 調整」とかのキーワードでググってみたら<a href="http://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q1021584815">解決策</a>が見つかりした。なんか拍子抜け。</p>
<p>そもそもコントラストの設定がおかしな状態になっていた為いくら調整してもダメだったようです。<br />
でもこんなとこ変えた記憶がないんだけど。。。</p>
<div class="thumbnail"><a href="http://skitch.com/aruy/bpiy7/"><img src="http://img.skitch.com/20090430-m26ikxfynue55g6844purenqnp.preview.jpg" alt="30E630CB30D030FC30B530EB30A230AF30BB30B9" /></a><br /><span style="font-family: Lucida Grande, Trebuchet, sans-serif, Helvetica, Arial; font-size: 10px; color: #808080">Uploaded with <a href="http://plasq.com/">plasq</a>&#8216;s <a href="http://skitch.com">Skitch</a>!</span></div>
<p>コントラストを通常に設定したら、グレーが表示されるようになりました。<br />
感動!!</p>
]]></content:encoded>
			<wfw:commentRss>http://aruy.net/archives/300/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UQ WiMAX Mac用ドライバがでたらしい。</title>
		<link>http://aruy.net/archives/275</link>
		<comments>http://aruy.net/archives/275#comments</comments>
		<pubDate>Wed, 15 Apr 2009 03:38:57 +0000</pubDate>
		<dc:creator>aruy</dc:creator>
				<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://aruy.net/?p=275</guid>
		<description><![CDATA[UQ　WiMAXデータ通信カードのMac対応およびWindows対応ソフトウェアのバージョンアップについて
UQ WiMAXの一部機種でMac用のドライバが公開されました。ヤッターっと思いかけつけてみたら「UD01SS」 [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.uqwimax.jp/news_release/200904141.html">UQ　WiMAXデータ通信カードのMac対応およびWindows対応ソフトウェアのバージョンアップについて</a></p>
<p>UQ WiMAXの一部機種でMac用のドライバが公開されました。ヤッターっと思いかけつけてみたら「UD01SS」用で僕のモニターしている「UD01NA」 用のドライバはまだでした。残念。</p>
]]></content:encoded>
			<wfw:commentRss>http://aruy.net/archives/275/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Screen で 縦分割</title>
		<link>http://aruy.net/archives/267</link>
		<comments>http://aruy.net/archives/267#comments</comments>
		<pubDate>Sat, 11 Apr 2009 16:24:02 +0000</pubDate>
		<dc:creator>aruy</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[プログラミング]]></category>

		<guid isPermaLink="false">http://aruy.net/?p=267</guid>
		<description><![CDATA[Uploaded with plasq&#8216;s Skitch!
screenで縦に分割できたら便利だろうなぁと調べてみたら、開発バージョンをCVSから導入するとできるようになるとの事だったので、こちらの記事を参考 [...]]]></description>
			<content:encoded><![CDATA[<div class="thumbnail"><a href="http://skitch.com/aruy/bme1j/fullscreen"><img src="http://img.skitch.com/20090410-dfs1gp54857ww16am7nhkyg6n3.preview.jpg" alt="Fullscreen" /></a><br /><span style="font-family: Lucida Grande, Trebuchet, sans-serif, Helvetica, Arial; font-size: 10px; color: #808080">Uploaded with <a href="http://plasq.com/">plasq</a>&#8216;s <a href="http://skitch.com">Skitch</a>!</span></div>
<p>screenで縦に分割できたら便利だろうなぁと調べてみたら、開発バージョンをCVSから導入するとできるようになるとの事だったので、<a href="http://d.hatena.ne.jp/ama-ch/20090129/1233211681">こちら</a>の記事を参考に導入してみました。</p>
<p>縦分割は | ウィンドウ間の移動はtabでいけます。便利になりました。</p>
]]></content:encoded>
			<wfw:commentRss>http://aruy.net/archives/267/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Devel::REPLインストール</title>
		<link>http://aruy.net/archives/251</link>
		<comments>http://aruy.net/archives/251#comments</comments>
		<pubDate>Tue, 31 Mar 2009 16:13:56 +0000</pubDate>
		<dc:creator>aruy</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[プログラミング]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://aruy.net/?p=251</guid>
		<description><![CDATA[詳説 正規表現をちまちま読んでいるのですが、2章に入ってからは、主にPerlで説明されているため動きを確認したい場合には、わからないなりに、適当にコードを書き移してPerlで確認しています。
で、ちょこちょこっと確認した [...]]]></description>
			<content:encoded><![CDATA[<p>詳説 正規表現をちまちま読んでいるのですが、2章に入ってからは、主にPerlで説明されているため動きを確認したい場合には、わからないなりに、適当にコードを書き移してPerlで確認しています。</p>
<p>で、ちょこちょこっと確認したい時にRubyのirbみたいにコマンドラインで確認できないのかなぁ?と思いぐぐってみたところ、Devel::REPLっていうCPANモジュールで出来そうなのでインストールしてみました。</p>
<blockquote><p>
sudo cpan<br />
install Devel::REPL
</p></blockquote>
<p>途中色々聞かれるのですが、基本的にデフォルト選択肢でEnterして進めたところ、いくつか依存するモジュールが上手くインストール出来ずにエラーとなりました。</p>
<p>エラーになったモジュールの内、Mac::Carbonが上手く入らない場合、ダウンロードして手動でインストールするとサクっと入るとの情報があったので、手動でインストール。</p>
<blockquote><p>
wget &#8220;http://search.cpan.org/CPAN/authors/id/C/CN/CNANDOR/Mac-Carbon-0.77.tar.gz&#8221;<br />
tar -zxvf Mac-Carbon-0.77.tar.gz<br />
cd Mac-Carbon-0.77<br />
perl Makefile.PL<br />
sudo make<br />
sudo make install
</p></blockquote>
<p>ここで、再度 install Devel::REPL エラーとなるモジュールが、Data::Dump::Streamerのみとなったので、これも同様に手動でインストール</p>
<blockquote><p>
wget &#8220;http://search.cpan.org/CPAN/authors/id/Y/YV/YVES/Data-Dump-Streamer-2.09.tar.gz&#8221;<br />
tar -zxvf Data-Dump-Streamer-2.09.tar.gz<br />
cd Data-Dump-Streamer-2.09<br />
perl Makefile.PL<br />
sudo make<br />
sudo make install
</p></blockquote>
<p>これで、もう一度 install Devel::REPL を実行。なんとかインストールが完了しました。</p>
<p>最後に、 re.plを実行し動作確認。<br />
果してこれが、正しいインストール方法だったのかわからないのがちょっと不安ですが<br />
コマンドラインでPerlを書きながら動かすことができました。</p>
]]></content:encoded>
			<wfw:commentRss>http://aruy.net/archives/251/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RMagick勉強中</title>
		<link>http://aruy.net/archives/230</link>
		<comments>http://aruy.net/archives/230#comments</comments>
		<pubDate>Fri, 27 Mar 2009 15:59:12 +0000</pubDate>
		<dc:creator>aruy</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://aruy.net/?p=230</guid>
		<description><![CDATA[Uploaded with plasq&#8216;s Skitch!
発想が貧素で何すれば面白いか思いつかないので、面白しろい事をしてる同僚の記事を真似つつRMagickを勉強してみることにしました。
参考にしたのはこ [...]]]></description>
			<content:encoded><![CDATA[<div class="thumbnail"><a href="http://skitch.com/aruy/bjwgt/imagemagick"><img src="http://img.skitch.com/20090327-xp6bmagww5wjmybjuw1bc5kc7h.preview.jpg" alt="ImageMagick:" /></a><br /><span style="font-family: Lucida Grande, Trebuchet, sans-serif, Helvetica, Arial; font-size: 10px; color: #808080">Uploaded with <a href="http://plasq.com/">plasq</a>&#8216;s <a href="http://skitch.com">Skitch</a>!</span></div>
<p>発想が貧素で何すれば面白いか思いつかないので、<a href="http://mojalog.com/2009/03/python_photomess.html">面白しろい事をしてる同僚</a>の記事を真似つつRMagickを勉強してみることにしました。</p>
<p>参考にしたのは<a href="http://d.hatena.ne.jp/zrsv/20080823/1219666119">こちら</a>の記事と公式の<a href="http://studio.imagemagick.org/RMagick/doc/">リファレンス</a></p>
<p>まずはじめに、イメージの作成</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'rubygems'</span>
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'RMagick'</span>
<span style="color:#9966CC; font-weight:bold;">include</span> Magick
pict = Image.<span style="color:#9900CC;">new</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006666;">200</span>,<span style="color:#006666;">200</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#0000FF; font-weight:bold;">self</span>.<span style="color:#9900CC;">background_color</span> = <span style="color:#996600;">&quot;white&quot;</span><span style="color:#006600; font-weight:bold;">&#125;</span>
pict.<span style="color:#9900CC;">display</span>
<span style="color:#CC0066; font-weight:bold;">exit</span></pre></div></div>

<p>Image.newでイメージを作成して、displayで表示しています。<br />
XServerが入っていない環境では、displayメソッドは使えないみたいです。</p>
<p>また、displayメソッドはとっても便利なのですが、macの<a href="http://pub.ne.jp/tokuhama/?cat_id=73788">RMagickに問題があるらしく</a>ImageMagickのバージョンによって上手く表示されないそうで、実際Rotateメソッドを使って回転したオブジェクトをdisplayしたら、うちの環境では点滅表示されてしまいました。</p>
<p>次は、ファイルの表示。ほとんど新規作成と同じです。</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">mu = Image.<span style="color:#9900CC;">new</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;mu.jpg&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
mu.<span style="color:#9900CC;">display</span>
<span style="color:#CC0066; font-weight:bold;">exit</span></pre></div></div>

<p>そして回転</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">mu.<span style="color:#9900CC;">rotate</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006666;">10</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#9900CC;">display</span>
<span style="color:#CC0066; font-weight:bold;">exit</span></pre></div></div>

<p>ここで、displayが点滅しまくってしまったので、ファイル保存することに。</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">mu.<span style="color:#9900CC;">rotate</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006666;">10</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#9900CC;">write</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;mu10.jpg&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span></pre></div></div>

<p>とりあえず回転までできました。<br />
<img src="http://aruy.net/wp-content/uploads/2009/03/mu10.jpg" alt="mu10" title="mu10" width="229" height="188" class="alignnone size-full wp-image-239" /></p>
<p>今日はここまで。</p>
]]></content:encoded>
			<wfw:commentRss>http://aruy.net/archives/230/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>やっててよかったTimeMachine</title>
		<link>http://aruy.net/archives/218</link>
		<comments>http://aruy.net/archives/218#comments</comments>
		<pubDate>Sun, 22 Mar 2009 12:52:26 +0000</pubDate>
		<dc:creator>aruy</dc:creator>
				<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://aruy.net/?p=218</guid>
		<description><![CDATA[最近、ようやくVimが使えるようになってきました。
そこで、.vimrc等の設定ファイル群を会社のPCと自宅のmacで共有したいと思い
DropBoxで同期することにしました。
DropBoxで任意のファイルやディレクト [...]]]></description>
			<content:encoded><![CDATA[<p>最近、ようやくVimが使えるようになってきました。<br />
そこで、.vimrc等の設定ファイル群を会社のPCと自宅のmacで共有したいと思い<br />
DropBoxで同期することにしました。</p>
<p>DropBoxで任意のファイルやディレクトリを同期対象にするには、<br />
シンボックリンクを利用すればよいとの事だったので、<br />
まず、DropBoxにdotfilesディレクトリを作成し、設定ファイルをコピー<br />
元のファイルを削除して、ln -s でシンボリックリンク作成して終了!って思ったのですが、<br />
なにを血迷ったのか、元ファイル・DropBoxにコピーしたファイルの双方を削除してしまいました。</p>
<p>ここで、若干焦ったのですがDropBoxはファイルをリビジョン管理しているので<br />
戻せるだろうと思いDropBoxにブラウザにてアクセス。ところが、ファイルを置いた形跡がありません。<br />
??と途方にくれていると、昼間WiMaxを利用した時にDropBoxのProxy設定を変更していたことを思いだしました。</p>
<p>もう設定しなおしだなぁと途方にくれかかったのですが、よく考えればTimeMachineで<br />
バックアップをとっているのでそこから戻せばいいだけでした。</p>
<p>.ではじまるファイルはFinderには表示されないので、<br />
ターミナルで<a href="http://netafull.net/macosx/014755.html">ネタフルさんの記事</a>を参考に隠しファイルを表示<br />
TimeMachineに入り、該当ファイルを救出し事なきを得ました。</p>
<p> 利用した事がなかったので、意味あんのかなぁこれ?っと感じながら取っていたTImeMachineによる<br />
バックアップですが、こういう事があるから必要なんですね。</p>
]]></content:encoded>
			<wfw:commentRss>http://aruy.net/archives/218/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>続 mac de UQ WiMAX</title>
		<link>http://aruy.net/archives/213</link>
		<comments>http://aruy.net/archives/213#comments</comments>
		<pubDate>Wed, 18 Mar 2009 03:52:04 +0000</pubDate>
		<dc:creator>aruy</dc:creator>
				<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://aruy.net/?p=213</guid>
		<description><![CDATA[Proxy使うより良い方法があったかも。
あとでやってみる
http://d.hatena.ne.jp/iRSS/20090308/1236493301
http://www.naguru.com/tech/pagem/ [...]]]></description>
			<content:encoded><![CDATA[<p>Proxy使うより良い方法があったかも。<br />
あとでやってみる</p>
<p>http://d.hatena.ne.jp/iRSS/20090308/1236493301</p>
<p>http://www.naguru.com/tech/pagem/pagema.html</p>
]]></content:encoded>
			<wfw:commentRss>http://aruy.net/archives/213/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
