<?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>Tender Surrender &#187; Mac OS X</title>
	<atom:link href="http://devlog.agektmr.com/en/archives/tag/mac-os-x/feed" rel="self" type="application/rss+xml" />
	<link>http://devlog.agektmr.com</link>
	<description>SocialWeb Evolves</description>
	<lastBuildDate>Mon, 05 Jul 2010 05:13:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>EN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>Installing MySQL on Snow Leopard</title>
		<link>http://devlog.agektmr.com/en/archives/673</link>
		<comments>http://devlog.agektmr.com/en/archives/673#comments</comments>
		<pubDate>Thu, 10 Sep 2009 17:25:23 +0000</pubDate>
		<dc:creator>Eiji</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Partuza!]]></category>
		<category><![CDATA[Shindig]]></category>
		<category><![CDATA[Snow Leopard]]></category>

		<guid isPermaLink="false">http://devlog.agektmr.com/en/?p=673</guid>
		<description><![CDATA[
topsyWidgetPreload({ "url": "http%3A%2F%2Fdevlog.agektmr.com%2Fen%2Farchives%2F673", "style": "big", "title": "Installing MySQL on Snow Leopard" });
Snow Leopard has got PHP 5.3, so it&#8217;s nice to install Partuza and Shindig. Because you can do without installing entropy.
But I needed to do a little tweak to get MySQL work on Snow Leopard. Here&#8217;s a memo.
Download MySQL
Download binary of MySQL from here. [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_light-green" style="float: left;margin-right: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fdevlog.agektmr.com%252Fen%252Farchives%252F673%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Installing%20MySQL%20on%20Snow%20Leopard%22%20%7D);"><script type="text/javascript">topsyWidgetPreload({ "url": "http%3A%2F%2Fdevlog.agektmr.com%2Fen%2Farchives%2F673", "style": "big", "title": "Installing MySQL on Snow Leopard" });</script></div>
<p>Snow Leopard has got PHP 5.3, so it&#8217;s nice to install Partuza and Shindig. Because you can do without installing entropy.</p>
<p>But I needed to do a little tweak to get MySQL work on Snow Leopard. Here&#8217;s a memo.</p>
<h2 style="font-size: 1.5em;">Download MySQL</h2>
<p>Download binary of MySQL from <a href="http://dev.mysql.com/downloads/" target="_blank">here</a>. Choose Mac OS 10.5(x86_64) on download list close to the bottom.</p>
<h2 style="font-size: 1.5em;">Install MySQL</h2>
<p>Installing can be done only with GUI. Install Prefpane and Startup Item as well. Configure PATH too.</p>
<p>Create ~/.bash_profile and paste, or append following:</p>
<pre style="font: normal normal normal 12px/18px Consolas, Monaco, 'Courier New', Courier, monospace;">PATH=$PATH:/usr/local/mysql/bin
export PATH</pre>
<p>You can utilize it by doing:</p>
<pre style="font: normal normal normal 12px/18px Consolas, Monaco, 'Courier New', Courier, monospace;">&gt; source ~/.bash_profile</pre>
<h2 style="font-size: 1.5em;">Do the tweak</h2>
<p>You have to do following to get MySQL properly work on PHP:</p>
<pre style="font: normal normal normal 12px/18px Consolas, Monaco, 'Courier New', Courier, monospace;">&gt;  cd /usr/local/mysql
&gt;  sudo ./script/mysql_install_db</pre>
<p>then&#8230;</p>
<pre style="font: normal normal normal 12px/18px Consolas, Monaco, 'Courier New', Courier, monospace;">&gt;  sudo cp /etc/php.ini.default /etc/php/ini
&gt;  sudo vim /etc/php.ini</pre>
<p>change following part:</p>
<pre style="font: normal normal normal 12px/18px Consolas, Monaco, 'Courier New', Courier, monospace;">mysqli.default_socket = /var/mysql/mysql.sock</pre>
<p>to something like this:</p>
<pre style="font: normal normal normal 12px/18px Consolas, Monaco, 'Courier New', Courier, monospace;">mysqli.default_socket = /tmp/mysql.sock</pre>
<p>That&#8217;s it! Now you should be able to start MySQL from Preference Pane and see MySQL working on PHP.</p>
<p>Note: This makes Partuza working, but if you want to do something else, you may need some more work.</p>

]]></content:encoded>
			<wfw:commentRss>http://devlog.agektmr.com/en/archives/673/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac OS XのちょっとマニアックなTips</title>
		<link>http://devlog.agektmr.com/en/archives/32</link>
		<comments>http://devlog.agektmr.com/en/archives/32#comments</comments>
		<pubDate>Mon, 02 Jun 2008 17:24:26 +0000</pubDate>
		<dc:creator>Eiji</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://devlog.agektmr.com/en/?p=32</guid>
		<description><![CDATA[
topsyWidgetPreload({ "url": "http%3A%2F%2Fdevlog.agektmr.com%2Fen%2Farchives%2F32", "style": "big", "title":  [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_light-green" style="float: left;margin-right: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fdevlog.agektmr.com%252Fen%252Farchives%252F32%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Mac%20OS%20X%E3%81%AE%E3%81%A1%E3%82%87%E3%81%A3%E3%81%A8%E3%83%9E%E3%83%8B%E3%82%A2%E3%83%83%E3%82%AF%E3%81%AATips%22%20%7D);"><script type="text/javascript">topsyWidgetPreload({ "url": "http%3A%2F%2Fdevlog.agektmr.com%2Fen%2Farchives%2F32", "style": "big", "title": "Mac OS XのちょっとマニアックなTips" });</script></div>
<h2>ことえり変換</h2>
<p>変換中に</p>
<ul>
<li><strong>Ctrl + j</strong> : ひらがなに変換</li>
<li><strong>Ctrl + k</strong> : カタカナに変換</li>
<li><strong>Ctrl + l</strong> : 全角英数に変換</li>
<li><strong>Ctrl + ;</strong> : 半角英数に変換</li>
</ul>
<h2>カーソル移動等</h2>
<p>Vimと違うので使いやすくはないけど・・・</p>
<ul>
<li><strong>Ctrl + p</strong> : 上</li>
<li><strong>Ctrl + n</strong> : 下</li>
<li><strong>Ctrl + b</strong> : 左</li>
<li><strong>Ctrl + f</strong> : 右</li>
<li><strong>Ctrl + k</strong> : 行削除</li>
<li><strong>Ctrl + y</strong> : ペースト</li>
<li><strong>Ctrl + a</strong> : 行先頭に移動</li>
<li><strong>Ctrl + e</strong> : 行末に移動</li>
</ul>
<h2>キャプチャ</h2>
<p><strong>Command + Shift + 3</strong>で全画面キャプチャは言うまでもないけど、</p>
<p><strong>Command + Shift + 4</strong>で範囲指定キャプチャ。キャプチャしたい範囲をドラッグしながら</p>
<ul>
<li><strong>Space</strong> : キャプチャ範囲をそのまま移動</li>
<li><strong>Shift</strong> : カーソルを動かした方向以外を固定して領域を変形させる</li>
<li><strong>Option</strong> : 領域の中心を基点に形を変形させる</li>
<li><strong>Ctrl</strong> : キャプチャ範囲をクリップボードにコピー</li>
<li><strong>Esc</strong> : キャプチャをキャンセル</li>
</ul>
<h2>QuickLook</h2>
<p>画像QuickLookで</p>
<ul>
<li><strong>Option + クリック</strong> : 拡大</li>
<li><strong>Option + Shift + クリック</strong> : 縮小</li>
<li><strong>Option + ホイール</strong> : 拡大/縮小</li>
</ul>
<p>PDFQuickLookで</p>
<ul>
<li><strong>Command + プラスキー(Command + Shift + ;)</strong> : 拡大</li>
<li><strong>Command + マイナスキー</strong> : 縮小</li>
</ul>
<h2>Dashboard</h2>
<p><strong>Option</strong>を押しながらマウスオーバーでウィジェット削除の×印が出る(いちいち画面左下の+をクリックしなくてよい)</p>
<h2>その他</h2>
<ul>
<li><strong>Ctrl + Shift + Eject</strong> : ディスプレイを切る</li>
<li><strong>Command + Option + Esc</strong> : 強制終了</li>
<li><strong>Command + Option + Ctrl + Eject</strong> : OSシャットダウン<strong></strong></li>
<li><strong>Ctrlを押しながらマウスホイールをグリグリ</strong> : 画面の拡大/縮小(結構感動的)<strong></strong></li>
<li><strong>SafariのタイトルバーをCommand + クリック</strong> : 同じサイトのURLを上位階層に移動</li>
<li>(たぶん全てのアプリで)<strong>Command + F1</strong> : 同じアプリのウィンドウを順番に行き来</li>
</ul>
<p>その他、集めたTipsの参考サイトは<a href="http://bookmark.goo.ne.jp/user/agektmr/search/?k=mac%20os%20x%2BTips" target="_blank">こちらに色々あります</a></p>

]]></content:encoded>
			<wfw:commentRss>http://devlog.agektmr.com/en/archives/32/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Safari3.1のオフライン機能</title>
		<link>http://devlog.agektmr.com/en/archives/21</link>
		<comments>http://devlog.agektmr.com/en/archives/21#comments</comments>
		<pubDate>Thu, 27 Mar 2008 10:03:51 +0000</pubDate>
		<dc:creator>Eiji</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Safari]]></category>

		<guid isPermaLink="false">http://devlog.agektmr.com/en/archives/21</guid>
		<description><![CDATA[
topsyWidgetPreload({ "url": "http%3A%2F%2Fdevlog.agektmr.com%2Fen%2Farchives%2F21", "style": "big", "title":  [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_light-green" style="float: left;margin-right: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fdevlog.agektmr.com%252Fen%252Farchives%252F21%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Safari3.1%E3%81%AE%E3%82%AA%E3%83%95%E3%83%A9%E3%82%A4%E3%83%B3%E6%A9%9F%E8%83%BD%22%20%7D);"><script type="text/javascript">topsyWidgetPreload({ "url": "http%3A%2F%2Fdevlog.agektmr.com%2Fen%2Farchives%2F21", "style": "big", "title": "Safari3.1のオフライン機能" });</script></div>
<p>先日<a href="http://devlog.agektmr.com/archives/16">Safari3.1から搭載されたオフライン機能</a>について書きましたが、amachangさんが使い方を詳しく解説されています。</p>
<p><a href="http://d.hatena.ne.jp/amachang/20080327/1206607704" target="_blank">Safari 3.1 に実装された「Client-side database storage (SQL API)」とは何か？ &#8211; IT戦記</a></p>
<p>詳しく読んでませんが、HTML5からの仕様らしく、既にFirefox3のβ版にも搭載されているとか。</p>
<p>これで、あんなことやこんなことができそうですね・・・</p>

]]></content:encoded>
			<wfw:commentRss>http://devlog.agektmr.com/en/archives/21/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Safari3.1登場</title>
		<link>http://devlog.agektmr.com/en/archives/16</link>
		<comments>http://devlog.agektmr.com/en/archives/16#comments</comments>
		<pubDate>Tue, 18 Mar 2008 17:23:11 +0000</pubDate>
		<dc:creator>Eiji</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Adobe AIR]]></category>
		<category><![CDATA[Google Gears]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Prism]]></category>
		<category><![CDATA[Safari]]></category>

		<guid isPermaLink="false">http://devlog.agektmr.com/en/archives/16</guid>
		<description><![CDATA[
topsyWidgetPreload({ "url": "http%3A%2F%2Fdevlog.agektmr.com%2Fen%2Farchives%2F16", "style": "big", "title":  [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_light-green" style="float: left;margin-right: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fdevlog.agektmr.com%252Fen%252Farchives%252F16%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Safari3.1%E7%99%BB%E5%A0%B4%22%20%7D);"><script type="text/javascript">topsyWidgetPreload({ "url": "http%3A%2F%2Fdevlog.agektmr.com%2Fen%2Farchives%2F16", "style": "big", "title": "Safari3.1登場" });</script></div>
<p>かねてから超高速！と話題だったWebKitの最新版から生まれた<a href="http://www.apple.com/jp/safari/" target="_blank">Safari3.1</a>が、<a href="http://www.apple.com/jp/news/2008/mar/18safari.html" target="_blank">ついに登場</a>しました。Windows版も同時リリースのようです。こちらは、ようやく正式版かな？</p>
<p><a href="http://devlog.agektmr.com/wp-content/uploads/2008/03/safari31.jpg" title="Safari3.1 About"><img src="http://devlog.agektmr.com/wp-content/uploads/2008/03/safari31.jpg" alt="Safari3.1 About" /></a></p>
<p>スピードは言わずもがなですが、目玉は他にもあります。</p>
<ul>
<li>HTML5に対応</li>
<li>CSSアニメーションに対応</li>
<li>CSS Web Fontに対応</li>
</ul>
<p>アップルのリリースには掲載されていませんでしたが、実は個人的にものすごく注目していたのが<strong>オフライン機能</strong>。ウェブサイトがローカルにデータベース(おそらくsqlite)を構築できるというものです。</p>
<p><a href="http://devlog.agektmr.com/wp-content/uploads/2008/03/safari31_db.jpg" title="Safari3.1 DB"><img src="http://devlog.agektmr.com/wp-content/uploads/2008/03/safari31_db.jpg" alt="Safari3.1 DB" /></a></p>
<p>オフライン機能といえば、最近ではGoogleの<a href="http://gears.google.com/" target="_blank">Google Gears</a>、 Mozillaの<a href="http://labs.mozilla.com/2007/10/prism/" target="_blank">Prism</a>、Adobeの<a href="http://www.adobe.com/products/air/" target="_blank">AIR</a>と盛り上がってきている分野でした。これからのウェブブラウザは標準でオフライン機能と同期機能をサポートすることで、ネットに繋がっていることを意識させない利便性を持っていくでしょう。例えばGoogle Docsのように元々デスクトップで使われていたアプリのウェブ版 のサービスはその恩恵を大きく受けることになります。ユーザーはネットに繋がっていようといまいと、気にせず文書の編集に集中することが出来る訳です。</p>
<p>まだSafariでどのようにこのオフライン機能(データベース)が利用できるのかは調べていませんが、ぜひ試してみたいところ。APIが他と共通ならいいのになあとは思いつつも、おそらくそんな訳はなく。シェアという面ではAdobe AIRが勝算が高いと個人的には踏んでいますがね。</p>

]]></content:encoded>
			<wfw:commentRss>http://devlog.agektmr.com/en/archives/16/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac OS XにShindigをインストールする</title>
		<link>http://devlog.agektmr.com/en/archives/6</link>
		<comments>http://devlog.agektmr.com/en/archives/6#comments</comments>
		<pubDate>Wed, 12 Mar 2008 08:28:14 +0000</pubDate>
		<dc:creator>Eiji</dc:creator>
				<category><![CDATA[OpenSocial]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[OpenID]]></category>
		<category><![CDATA[Shindig]]></category>

		<guid isPermaLink="false">http://devlog.agektmr.com/en/archives/6</guid>
		<description><![CDATA[
topsyWidgetPreload({ "url": "http%3A%2F%2Fdevlog.agektmr.com%2Fen%2Farchives%2F6", "style": "big", "title": " [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_light-green" style="float: left;margin-right: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fdevlog.agektmr.com%252Fen%252Farchives%252F6%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Mac%20OS%20X%E3%81%ABShindig%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E3%81%99%E3%82%8B%22%20%7D);"><script type="text/javascript">topsyWidgetPreload({ "url": "http%3A%2F%2Fdevlog.agektmr.com%2Fen%2Farchives%2F6", "style": "big", "title": "Mac OS XにShindigをインストールする" });</script></div>
<p>参考資料 :<a href="http://incubator.apache.org/shindig/" target="_blank" title="Shindig - an Apache incubator project for OpenSocial and gadgets">Shindig &#8211; an Apache incubator project for OpenSocial and gadgets</a></p>
<h2>予めMavenのインストールが必要</h2>
<p><a href="http://maven.apache.org/download.html">Maven &#8211; Download Maven 2.0.8 </a>からダウンロード。特にインストール作業は必要なく、適当なところに置いといて、パスを切る必要あり。ひとまず</p>
<pre>&gt; ~/Development/apache-maven-2.0.8</pre>
<p>に置いておこう。環境変数も設定しておく。</p>
<pre>&gt; export JAVA_HOME='/System/Library/Frameworks/JavaVM.framework/Versions/A'&gt; export PATH=$PATH:/Users/ekita/Development/apache-maven-2.0.8/bin</pre>
<p>・・・とか思ったら、Maven入ってるじゃん！なにこれOS X!!</p>
<h2>Shindigを設置</h2>
<pre>&gt; mkdir Shindig</pre>
<p>レポジトリからShindigのソースをチェックアウトする</p>
<pre>&gt; svn co http://svn.apache.org/repos/asf/incubator/shindig/trunk .</pre>
<p>ビルドする</p>
<pre>&gt; cd ~/Development/Shindig/java/gadgets&gt; mvn package</pre>
<p>勝手に色々ダウンロードしてよしなにしてくれるみたい。</p>
<h2>Shindigを起動してみる</h2>
<pre>&gt; mvn jetty:run-war</pre>
<p>で動くらしいのだが、、、</p>
<pre>[INFO] Scanning for projects...[INFO] Searching repository for plugin with prefix: 'jetty'.[INFO] org.apache.maven.plugins: checking for updates from central[INFO] org.codehaus.mojo: checking for updates from central[INFO] artifact org.apache.maven.plugins:maven-jetty-plugin: checking for updates from central[INFO] ------------------------------------------------------------------------[ERROR] BUILD ERROR[INFO] ------------------------------------------------------------------------[INFO] The plugin 'org.apache.maven.plugins:maven-jetty-plugin' does not exist or no valid version could be found[INFO] ------------------------------------------------------------------------[INFO] For more information, run Maven with the -e switch[INFO] ------------------------------------------------------------------------[INFO] Total time: 2 seconds[INFO] Finished at: Wed Mar 12 16:18:09 JST 2008[INFO] Final Memory: 1M/2M[INFO] ------------------------------------------------------------------------</pre>
<p>うまく動かない、、、 どうやら<a href="http://jetty.mortbay.org/maven-plugin/index.html">Jetty</a>というのが必要らしい。</p>
<h2>Jettyを動かす</h2>
<p>Javaサーバーはさっぱりなのでよくわからないけど、とりあえずjetty-6.1.8をダウンロードし、~/Development配下に移動。</p>
<pre>&gt; cd ~/Development/jetty-6.1.8</pre>
<pre>&gt; java -jar start.jar</pre>
<p>とかやってみる。どうやらこれでjettyというウェブサーバーが動いてることになってるらしい(多分Apacheも動いてる必要アリ)そこで、先ほどビルドしたShindigのwarファイルをシンボリックリンクして</p>
<pre>&gt; ln -s ~/Development/Shindig/java/gadgets/target/gadgets.war ~/Development/jetty-6.1.8/webapps/gadgets.war</pre>
<p>アクセスしてみると、、、</p>
<pre>http://localhost:8080/gadgets/files/samplecontainer/samplecontainer.html</pre>
<p><a href="http://devlog.agektmr.com/wp-content/uploads/2008/03/shindig.jpg" title="Shindig"><img src="http://devlog.agektmr.com/wp-content/uploads/2008/03/shindig.jpg" alt="Shindig" /></a></p>
<p>動いた〜！！今日はここまで。</p>

]]></content:encoded>
			<wfw:commentRss>http://devlog.agektmr.com/en/archives/6/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
