<?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>Sooey &#187; mac</title>
	<atom:link href="http://old-journal.sooey.com/tag/mac/feed/" rel="self" type="application/rss+xml" />
	<link>http://old-journal.sooey.com</link>
	<description></description>
	<lastBuildDate>Fri, 04 Dec 2009 08:44:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>cclive Portfile</title>
		<link>http://old-journal.sooey.com/2009/03/05/1022/</link>
		<comments>http://old-journal.sooey.com/2009/03/05/1022/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 04:33:38 +0000</pubDate>
		<dc:creator>juno</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[macports]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://www.sooey.com/journal/?p=1022</guid>
		<description><![CDATA[YouTubeやGoogleVideoなどの動画をダウンロードできるコマンドラインツール ccliveのPortfileを作りました（#18709 (NEW: cclive) – MacPorts）。無事にコミットされたようなので、portコマンドでインストールできると思います。

$ port info cclive
cclive @0.2.3, Revision 1 (net, www)

cclive is a command line video extraction utility similar to clive but with lower requirements
Homepage:    http://code.google.com/p/cclive/

Platforms:            darwin
Maintainers:          openmaintainer@macports.org snc@macports.org
]]></description>
			<content:encoded><![CDATA[<p>YouTubeやGoogleVideoなどの動画をダウンロードできるコマンドラインツール <a href="http://code.google.com/p/cclive/">cclive</a>のPortfileを作りました（<a href="http://trac.macports.org/ticket/18709#comment:4">#18709 (NEW: cclive) – MacPorts</a>）。無事にコミットされたようなので、portコマンドでインストールできると思います。</p>

<pre><code>$ port info cclive
cclive @0.2.3, Revision 1 (net, www)

cclive is a command line video extraction utility similar to clive but with lower requirements
Homepage:    http://code.google.com/p/cclive/

Platforms:            darwin
Maintainers:          openmaintainer@macports.org snc@macports.org
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://old-journal.sooey.com/2009/03/05/1022/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Droplink</title>
		<link>http://old-journal.sooey.com/2009/03/04/1020/</link>
		<comments>http://old-journal.sooey.com/2009/03/04/1020/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 05:53:07 +0000</pubDate>
		<dc:creator>juno</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[business]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://www.sooey.com/journal/?p=1020</guid>
		<description><![CDATA[Droplink, simple personal filesharing

Hacker Newsで見つけたWebスタートアップのサービス。ムービーを見るだけですべてがわかる簡潔さはすごい。
]]></description>
			<content:encoded><![CDATA[<p><a href="http://droplink.me/">Droplink, simple personal filesharing</a></p>

<p><a href="http://news.ycombinator.com/item?id=502236">Hacker News</a>で見つけたWebスタートアップのサービス。ムービーを見るだけですべてがわかる簡潔さはすごい。</p>
]]></content:encoded>
			<wfw:commentRss>http://old-journal.sooey.com/2009/03/04/1020/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Top Sitesに任意のページを登録する方法</title>
		<link>http://old-journal.sooey.com/2009/02/26/1009/</link>
		<comments>http://old-journal.sooey.com/2009/02/26/1009/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 06:56:12 +0000</pubDate>
		<dc:creator>juno</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[safari]]></category>

		<guid isPermaLink="false">http://www.sooey.com/journal/?p=1009</guid>
		<description><![CDATA[Safari4の新機能の一つ、Top Sitesに任意のページを追加したいときは、Top SitesをEditモードにしておき、別ウィンドウで表示されているページのアドレスバーのアイコンをTop Sitesにドラッグ＆ドロップすればOK。
]]></description>
			<content:encoded><![CDATA[<div class="flickr">
<a class="flickr-image" href="http://www.flickr.com/photos/sooey/3311162592/" title="Safari4 Top Sites by junojp, on Flickr"><img src="http://farm4.static.flickr.com/3297/3311162592_33bec0801c.jpg" width="500" height="313" alt="Safari4 Top Sites" /></a>
</div>

<p>Safari4の新機能の一つ、<a href="http://www.apple.com/jp/safari/whats-new.html#topsites">Top Sites</a>に任意のページを追加したいときは、Top SitesをEditモードにしておき、別ウィンドウで表示されているページのアドレスバーのアイコンをTop Sitesにドラッグ＆ドロップすればOK。</p>
]]></content:encoded>
			<wfw:commentRss>http://old-journal.sooey.com/2009/02/26/1009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Carbon Emacs 2009年版での透明化</title>
		<link>http://old-journal.sooey.com/2009/01/18/973/</link>
		<comments>http://old-journal.sooey.com/2009/01/18/973/#comments</comments>
		<pubDate>Sat, 17 Jan 2009 20:14:32 +0000</pubDate>
		<dc:creator>juno</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://www.sooey.com/journal/?p=973</guid>
		<description><![CDATA[Carbon Emacs パッケージの2009年版がリリースされました。

変更履歴によると、

Emacs 23 の仕様変更にあわせて、透明度の設定方法を修正しました。

とのことなので、EmacsWiki: Transparent Emacsを参考に.emacsを修正しました。具体的には、

(set-frame-parameter (selected-frame) 'alpha '(85 50))
(add-to-list 'default-frame-alist '(alpha 85 50))

のいずれかを使えばよさそうです。
]]></description>
			<content:encoded><![CDATA[<p><a href="http://homepage.mac.com/zenitani/emacs-j.html">Carbon Emacs パッケージ</a>の2009年版がリリースされました。</p>

<p>変更履歴によると、</p>

<blockquote>
  <p>Emacs 23 の仕様変更にあわせて、透明度の設定方法を修正しました。</p>
</blockquote>

<p>とのことなので、<a href="http://www.emacswiki.org/emacs/TransparentEmacs">EmacsWiki: Transparent Emacs</a>を参考に.emacsを修正しました。具体的には、</p>

<pre><code>(set-frame-parameter (selected-frame) 'alpha '(85 50))
(add-to-list 'default-frame-alist '(alpha 85 50))
</code></pre>

<p>のいずれかを使えばよさそうです。</p>
]]></content:encoded>
			<wfw:commentRss>http://old-journal.sooey.com/2009/01/18/973/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bowtie&#8217;s PowerSearch</title>
		<link>http://old-journal.sooey.com/2008/12/28/892/</link>
		<comments>http://old-journal.sooey.com/2008/12/28/892/#comments</comments>
		<pubDate>Sat, 27 Dec 2008 18:01:24 +0000</pubDate>
		<dc:creator>juno</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cocoa]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.sooey.com/journal/?p=892</guid>
		<description><![CDATA[PowerSearch: Only in Bowtie

BowtieというMac OS X用のイカしたiTunesコントローラがあって、テーマをHTMLベースで手軽に作ることができるため、まだベータ版にも関わらずThemeコミュニティが盛り上がっている。

このBowtieの持つ検索機能がかなり優秀で、手元の704アーティスト・9404曲というライブラリでも一瞬で検索が完了する。その性能に感動していたら、ちょうど開発者のブログに「世のiTunesコントローラはどれも検索機能がバギーで遅い。それは何故かというと…」というエントリがあったので、読んでみた次第。

まず、iTunesの持つ検索機能をそのまま使おうとすると、Apple Eventオブジェクトを投げてやりとりすることになるが、これはかなり遅い。検索リクエストのたびにiTunesと通信したりするとレスポンスがよろしくないので、アプリによってはあらかじめiTunesから情報を取得しておいて自前の検索処理を走らせるらしいのだが、それでも速度はともかくメモリ消費量は増えてしまう。

そこでBowtieでは、plist(iTunes Music Library.xml)とPredicateを使ったPowerSearchという仕組みを考案して使っている。Predicateは、CoreDataを使ったデータ構造に対するクエリ言語のようなもので（【コラム】ダイナミックObjective-C (116) デザインパターンをObjective-Cで &#8211; Interpreter (2)）、具体的には起動時もしくはiTunesライブラリの変更時にplistを内部表現に変換し、検索の際は独自に拡張したPredicateを使って結果を取得するようになる（他の方式に比べてメモリ消費がどうなのかは読み取れなかった）。

これにより、Bowtie内では以下のように曲のメタデータに対する検索が容易に行えるようになり、

(artist contains[cd] "u2") AND (name contains[cd] "where the stre")

ユーザーレベルでは、検索フォームに

@U2 + "where the stre"

と入力すればスムーズに絞り込み検索が行えるようになる。

スクリーンショットを見るとわかるように、アーティスト、アルバム、楽曲で異なるプレフィクスを指定するようになっているのもポイントで、これによって検索対象のフィールドを大幅に絞り込むことができ、とても高速なレスポンスが実現できている（もちろんプレフィクス無しで入力してもまともな速度で結果を返してくれる）。

CoreDataの設計にあらためて感動した。ちゃんとCocoaプログラミングしよう。

おまけ

ターミナルから以下のコマンドを実行してBowtieを再起動することで、検索ウィンドウの見栄えを変えることができる。

defaults write net.mattpat.Bowtie searchMode HUD
defaults write net.mattpat.Bowtie searchMode Aqua
]]></description>
			<content:encoded><![CDATA[<p class="cut">
<a href="http://www.flickr.com/photos/sooey/3140890803/" title="bowtie by junojp, on Flickr"><img src="http://farm4.static.flickr.com/3240/3140890803_c769e82b5e_o.png" width="408" height="279" alt="bowtie" /></a>
</p>

<p><a href="http://www.mattpat.net/2008/12/24/powersearch-only-in-bowtie/">PowerSearch: Only in Bowtie</a></p>

<p><a href="http://bowtieapp.com/">Bowtie</a>というMac OS X用のイカしたiTunesコントローラがあって、テーマをHTMLベースで手軽に作ることができるため、まだベータ版にも関わらずThemeコミュニティが盛り上がっている。</p>

<p>このBowtieの持つ検索機能がかなり優秀で、手元の704アーティスト・9404曲というライブラリでも一瞬で検索が完了する。その性能に感動していたら、ちょうど開発者のブログに「世のiTunesコントローラはどれも検索機能がバギーで遅い。それは何故かというと…」というエントリがあったので、読んでみた次第。</p>

<p>まず、iTunesの持つ検索機能をそのまま使おうとすると、Apple Eventオブジェクトを投げてやりとりすることになるが、これはかなり遅い。検索リクエストのたびにiTunesと通信したりするとレスポンスがよろしくないので、アプリによってはあらかじめiTunesから情報を取得しておいて自前の検索処理を走らせるらしいのだが、それでも速度はともかくメモリ消費量は増えてしまう。</p>

<p>そこでBowtieでは、plist(iTunes Music Library.xml)とPredicateを使ったPowerSearchという仕組みを考案して使っている。Predicateは、CoreDataを使ったデータ構造に対するクエリ言語のようなもので（<a href="http://journal.mycom.co.jp/column/objc/116/index.html">【コラム】ダイナミックObjective-C (116) デザインパターンをObjective-Cで &#8211; Interpreter (2)</a>）、具体的には起動時もしくはiTunesライブラリの変更時にplistを内部表現に変換し、検索の際は独自に拡張したPredicateを使って結果を取得するようになる（他の方式に比べてメモリ消費がどうなのかは読み取れなかった）。</p>

<p>これにより、Bowtie内では以下のように曲のメタデータに対する検索が容易に行えるようになり、</p>

<pre><code>(artist contains[cd] "u2") AND (name contains[cd] "where the stre")
</code></pre>

<p>ユーザーレベルでは、検索フォームに</p>

<pre><code>@U2 + "where the stre"
</code></pre>

<p>と入力すればスムーズに絞り込み検索が行えるようになる。</p>

<p class="cut">
<a href="http://www.flickr.com/photos/sooey/3140975339/" title="Bowtie's PowerSearch by junojp, on Flickr"><img src="http://farm4.static.flickr.com/3088/3140975339_8a6697c55d_o.png" width="479" height="436" alt="Bowtie's PowerSearch" /></a>
</p>

<p>スクリーンショットを見るとわかるように、アーティスト、アルバム、楽曲で異なるプレフィクスを指定するようになっているのもポイントで、これによって検索対象のフィールドを大幅に絞り込むことができ、とても高速なレスポンスが実現できている（もちろんプレフィクス無しで入力してもまともな速度で結果を返してくれる）。</p>

<p>CoreDataの設計にあらためて感動した。ちゃんとCocoaプログラミングしよう。</p>

<h3>おまけ</h3>

<p>ターミナルから以下のコマンドを実行してBowtieを再起動することで、検索ウィンドウの見栄えを変えることができる。</p>

<pre><code>defaults write net.mattpat.Bowtie searchMode HUD
defaults write net.mattpat.Bowtie searchMode Aqua
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://old-journal.sooey.com/2008/12/28/892/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->