<?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>Samson&#039;s Weblog &#187; Mac</title>
	<atom:link href="http://blog.samsonis.me/category/technique/mac/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.samsonis.me</link>
	<description>天与弗取，反受其咎；时至不行，反受其殃</description>
	<lastBuildDate>Sun, 29 Jan 2012 13:53:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Lion Ready?</title>
		<link>http://blog.samsonis.me/2011/08/lion-ready/</link>
		<comments>http://blog.samsonis.me/2011/08/lion-ready/#comments</comments>
		<pubDate>Wed, 10 Aug 2011 14:36:23 +0000</pubDate>
		<dc:creator>Samson Wu</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Share]]></category>
		<category><![CDATA[Technique]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Lion]]></category>
		<category><![CDATA[Macintosh]]></category>

		<guid isPermaLink="false">http://blog.samsonis.me/?p=3379</guid>
		<description><![CDATA[装了Lion将近3周，新的fancy的feature不少 i，当然各种大的小的宏观的细节的问题也不少；这儿我就不列了，还真是不一而足呢； 现在大家都在讨论，说种种迹象表明，mac os x的未来便是慢慢向ios靠拢，逐步统一两系统的用户体验和程序开发；列位，先别讨论未来了，我比较现实，谁先把10.7.1给我整出来吧…… [Footnotes]fancy的另外一种解释就是中看不中用…… Related posts 关于Mac的Safe Sleep和Hibernate (0) Welcome to Macintosh (0) 落花有意流水无情 [转载] (12) Terminal.app use option as meta key (14) Terminal.app echo breaks after ctrl-c (0)]]></description>
			<content:encoded><![CDATA[<p>装了Lion将近3周，新的fancy的feature不少 <sup><a href="http://blog.samsonis.me/2011/08/lion-ready/#footnote_0_3379" id="identifier_0_3379" class="footnote-link footnote-identifier-link" title="fancy的另外一种解释就是中看不中用&hellip;&hellip;">i</a></sup>，当然各种大的小的宏观的细节的问题也不少；这儿我就不列了，还真是不一而足呢；</p>
<p>现在大家都在讨论，说种种迹象表明，mac os x的未来便是慢慢向ios靠拢，逐步统一两系统的用户体验和程序开发；列位，先别讨论未来了，我比较现实，谁先把10.7.1给我整出来吧……</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2011/08/Lion-ready.png"><img src="http://blog.samsonis.me/wp-content/uploads/2011/08/Lion-ready-300x239.png" alt="" title="Lion ready" width="300" height="239" class="alignnone size-medium wp-image-3381" /></a></p>
[Footnotes]<ol class="footnotes"><li id="footnote_0_3379" class="footnote">fancy的另外一种解释就是中看不中用……</li></ol>
	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://blog.samsonis.me/2010/02/%e5%85%b3%e4%ba%8emac%e7%9a%84safe-sleep%e5%92%8chibernate/" title="关于Mac的Safe Sleep和Hibernate (February 23, 2010)">关于Mac的Safe Sleep和Hibernate</a> (0)</li>
	<li><a href="http://blog.samsonis.me/2009/02/welcome-to-macintosh/" title="Welcome to Macintosh (February 15, 2009)">Welcome to Macintosh</a> (0)</li>
	<li><a href="http://blog.samsonis.me/2010/09/%e8%90%bd%e8%8a%b1%e6%9c%89%e6%84%8f%e6%b5%81%e6%b0%b4%e6%97%a0%e6%83%85/" title="落花有意流水无情 [转载] (September 7, 2010)">落花有意流水无情 [转载]</a> (12)</li>
	<li><a href="http://blog.samsonis.me/2010/08/terminal-app-use-option-as-meta-key/" title="Terminal.app use option as meta key (August 12, 2010)">Terminal.app use option as meta key</a> (14)</li>
	<li><a href="http://blog.samsonis.me/2011/03/terminal-app-echo-breaks-after-ctrl-c/" title="Terminal.app echo breaks after ctrl-c (March 18, 2011)">Terminal.app echo breaks after ctrl-c</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.samsonis.me/2011/08/lion-ready/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>OpenExplorer Eclipse Plugin 1.5.0</title>
		<link>http://blog.samsonis.me/2011/08/openexplorer-eclipse-plugin-1-5-0/</link>
		<comments>http://blog.samsonis.me/2011/08/openexplorer-eclipse-plugin-1-5-0/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 08:24:46 +0000</pubDate>
		<dc:creator>Samson Wu</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Share]]></category>
		<category><![CDATA[Technique]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Open Explorer]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://blog.samsonis.me/?p=3325</guid>
		<description><![CDATA[Thanks to jdkcn, Open Explorer now supports multiple file managers (not only nautilus) in Linux, it will detect your system file manager and use that by default i. I also added a preferences page for this, so you can customize it if the default doesn&#8217;t make you happy. To upgrade, simply replace the plugin jar ...]]></description>
			<content:encoded><![CDATA[<p>Thanks to <a href="https://github.com/samsonw/OpenExplorer/pull/2" target="_blank">jdkcn</a>, Open Explorer now supports multiple file managers (not only nautilus) in Linux, it will detect your system file manager and use that by default <sup><a href="http://blog.samsonis.me/2011/08/openexplorer-eclipse-plugin-1-5-0/#footnote_0_3325" id="identifier_0_3325" class="footnote-link footnote-identifier-link" title="dolphin (KDE), nautilus (Gnome), thunar (xfce), pcmanfm (lxde), rox, xdg-open, etc">i</a></sup>.  I also added a preferences page for this, so you can customize it if the default doesn&#8217;t make you happy.</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2011/08/Open-Explorer-Preferences.png"><img src="http://blog.samsonis.me/wp-content/uploads/2011/08/Open-Explorer-Preferences-300x228.png" alt="" title="Open Explorer Preferences" width="300" height="228" class="alignnone size-medium wp-image-3331" /></a></p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2011/08/File-Manager-Preferences.png"><img src="http://blog.samsonis.me/wp-content/uploads/2011/08/File-Manager-Preferences-300x222.png" alt="" title="File Manager Preferences" width="300" height="222" class="alignnone size-medium wp-image-3332" /></a></p>
<p>To upgrade, simply replace the plugin jar file, you can always download the latest version<sup><a href="http://blog.samsonis.me/2011/08/openexplorer-eclipse-plugin-1-5-0/#footnote_1_3325" id="identifier_1_3325" class="footnote-link footnote-identifier-link" title="1.5.0.v201108051513">ii</a></sup> from <a href="https://github.com/samsonw/OpenExplorer/downloads" title="OpenExplorer downloads" target="_blank">here</a>.</p>
[Footnotes]<ol class="footnotes"><li id="footnote_0_3325" class="footnote">dolphin (KDE), nautilus (Gnome), thunar (xfce), pcmanfm (lxde), rox, xdg-open, etc</li><li id="footnote_1_3325" class="footnote">1.5.0.v201108051513</li></ol>
	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://blog.samsonis.me/2010/10/release-openexplorer-eclipse-plugin-1-1-0/" title="Release OpenExplorer Eclipse Plugin 1.1.0 (October 12, 2010)">Release OpenExplorer Eclipse Plugin 1.1.0</a> (0)</li>
	<li><a href="http://blog.samsonis.me/2011/07/openexplorer-eclipse-plugin-1-4-0/" title="OpenExplorer Eclipse Plugin 1.4.0 (July 20, 2011)">OpenExplorer Eclipse Plugin 1.4.0</a> (1)</li>
	<li><a href="http://blog.samsonis.me/2011/07/openexplorer-eclipse-plugin-1-3-0/" title="OpenExplorer Eclipse Plugin 1.3.0 (July 19, 2011)">OpenExplorer Eclipse Plugin 1.3.0</a> (3)</li>
	<li><a href="http://blog.samsonis.me/2011/01/openexplorer-eclipse-plugin-1-2-0/" title="OpenExplorer Eclipse Plugin 1.2.0 (January 17, 2011)">OpenExplorer Eclipse Plugin 1.2.0</a> (5)</li>
	<li><a href="http://blog.samsonis.me/2009/02/open-explorer-plugin-for-eclipse/" title="Open Explorer Plugin for Eclipse (February 4, 2009)">Open Explorer Plugin for Eclipse</a> (22)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.samsonis.me/2011/08/openexplorer-eclipse-plugin-1-5-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenExplorer Eclipse Plugin 1.4.0</title>
		<link>http://blog.samsonis.me/2011/07/openexplorer-eclipse-plugin-1-4-0/</link>
		<comments>http://blog.samsonis.me/2011/07/openexplorer-eclipse-plugin-1-4-0/#comments</comments>
		<pubDate>Wed, 20 Jul 2011 14:31:31 +0000</pubDate>
		<dc:creator>Samson Wu</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Share]]></category>
		<category><![CDATA[Technique]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Open Explorer]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://blog.samsonis.me/?p=3310</guid>
		<description><![CDATA[Alright, this time I will let all the screenshots speak, as they&#8217;re inherently international. So, what&#8217;s new? anything else? Yeah! Okay, that&#8217;s the new stuff, what about our old friend? It turns out&#8230; Want to have a try? I know you want :) Related posts Release OpenExplorer Eclipse Plugin 1.1.0 (0) OpenExplorer Eclipse Plugin 1.5.0 ...]]></description>
			<content:encoded><![CDATA[<p>Alright, this time I will let all the screenshots speak, as they&#8217;re inherently international.</p>
<p>So, what&#8217;s new?</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2011/07/OpenExplorer-Navigator-popup.png"><img src="http://blog.samsonis.me/wp-content/uploads/2011/07/OpenExplorer-Navigator-popup-300x182.png" alt="" title="OpenExplorer Navigator popup" width="300" height="182" class="alignnone size-medium wp-image-3312" /></a></p>
<p>anything else?  Yeah!</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2011/07/OpenExplorer-editor-popup.png"><img src="http://blog.samsonis.me/wp-content/uploads/2011/07/OpenExplorer-editor-popup-300x182.png" alt="" title="OpenExplorer editor popup" width="300" height="182" class="alignnone size-medium wp-image-3313" /></a><br />
<span id="more-3310"></span><br />
Okay, that&#8217;s the new stuff, what about our old friend?  It turns out&#8230;</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2011/07/OpenExplorer.png"><img src="http://blog.samsonis.me/wp-content/uploads/2011/07/OpenExplorer-300x182.png" alt="" title="OpenExplorer" width="300" height="182" class="alignnone size-medium wp-image-3318" /></a></p>
<p>Want to <a href="https://github.com/samsonw/OpenExplorer/downloads" title="OpenExplorer downloads" target="_blank">have a try</a>?  I know you want :)</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://blog.samsonis.me/2010/10/release-openexplorer-eclipse-plugin-1-1-0/" title="Release OpenExplorer Eclipse Plugin 1.1.0 (October 12, 2010)">Release OpenExplorer Eclipse Plugin 1.1.0</a> (0)</li>
	<li><a href="http://blog.samsonis.me/2011/08/openexplorer-eclipse-plugin-1-5-0/" title="OpenExplorer Eclipse Plugin 1.5.0 (August 5, 2011)">OpenExplorer Eclipse Plugin 1.5.0</a> (0)</li>
	<li><a href="http://blog.samsonis.me/2011/07/openexplorer-eclipse-plugin-1-3-0/" title="OpenExplorer Eclipse Plugin 1.3.0 (July 19, 2011)">OpenExplorer Eclipse Plugin 1.3.0</a> (3)</li>
	<li><a href="http://blog.samsonis.me/2011/01/openexplorer-eclipse-plugin-1-2-0/" title="OpenExplorer Eclipse Plugin 1.2.0 (January 17, 2011)">OpenExplorer Eclipse Plugin 1.2.0</a> (5)</li>
	<li><a href="http://blog.samsonis.me/2009/02/open-explorer-plugin-for-eclipse/" title="Open Explorer Plugin for Eclipse (February 4, 2009)">Open Explorer Plugin for Eclipse</a> (22)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.samsonis.me/2011/07/openexplorer-eclipse-plugin-1-4-0/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>OpenExplorer Eclipse Plugin 1.3.0</title>
		<link>http://blog.samsonis.me/2011/07/openexplorer-eclipse-plugin-1-3-0/</link>
		<comments>http://blog.samsonis.me/2011/07/openexplorer-eclipse-plugin-1-3-0/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 08:15:32 +0000</pubDate>
		<dc:creator>Samson Wu</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Share]]></category>
		<category><![CDATA[Technique]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Open Explorer]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://blog.samsonis.me/?p=3297</guid>
		<description><![CDATA[Essentially, this is just a bug-fixing and maintaining release. In this release, we addressed an issue on linux platform (with nautilus installed, currently seems all bugs are reported from ubuntu), similar to this one. I&#8217;ve thoroughly tested it in Eclipse Galileo (3.5), Helios (3.6), Indigo (3.7) on Mac OS X 10.6.8, Linux (Ubuntu 11.04) and ...]]></description>
			<content:encoded><![CDATA[<p>Essentially, this is just a bug-fixing and maintaining release.  In this release, we addressed an issue on linux platform (with nautilus installed, currently seems all bugs are reported from ubuntu), similar to <a href="http://blog.samsonis.me/2011/01/openexplorer-eclipse-plugin-1-2-0/#comment-1716">this one</a>.</p>
<p>I&#8217;ve thoroughly tested it in Eclipse Galileo (3.5), Helios (3.6), Indigo (3.7) on Mac OS X 10.6.8, Linux (Ubuntu 11.04) and Windows XP.  While I try my best to maintain the plugin compatibility with the latest Eclipse version and latest OS release, it does may have some backward compatible issue.  If you encounter any problems, please consider upgrading your eclipse and OS to the latest version and try again.  If this doesn&#8217;t solve the problem, please do not hesitate to report defects <a href="https://github.com/samsonw/OpenExplorer/issues" title="github issues" target="_blank">here</a> or simply leave comments below.</p>
<p>This project is hosting on <a href="https://github.com/samsonw/OpenExplorer" title="OpenExplorer" target="_blank">github</a> and the latest release can be downloaded here:<br />
<a href="https://github.com/samsonw/OpenExplorer/downloads" title="OpenExplorer downloads" target="_blank">https://github.com/samsonw/OpenExplorer/downloads</a></p>
<p>To upgrade the plugin, just replace the jar package in your $ECLIPSE_HOME/plugins or $ECLIPSE_HOME/dropins directory.</p>
<p>Last but not least, thanks for all the support and feedback so far.  I hope you enjoy it.</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://blog.samsonis.me/2010/10/release-openexplorer-eclipse-plugin-1-1-0/" title="Release OpenExplorer Eclipse Plugin 1.1.0 (October 12, 2010)">Release OpenExplorer Eclipse Plugin 1.1.0</a> (0)</li>
	<li><a href="http://blog.samsonis.me/2011/08/openexplorer-eclipse-plugin-1-5-0/" title="OpenExplorer Eclipse Plugin 1.5.0 (August 5, 2011)">OpenExplorer Eclipse Plugin 1.5.0</a> (0)</li>
	<li><a href="http://blog.samsonis.me/2011/07/openexplorer-eclipse-plugin-1-4-0/" title="OpenExplorer Eclipse Plugin 1.4.0 (July 20, 2011)">OpenExplorer Eclipse Plugin 1.4.0</a> (1)</li>
	<li><a href="http://blog.samsonis.me/2011/01/openexplorer-eclipse-plugin-1-2-0/" title="OpenExplorer Eclipse Plugin 1.2.0 (January 17, 2011)">OpenExplorer Eclipse Plugin 1.2.0</a> (5)</li>
	<li><a href="http://blog.samsonis.me/2009/02/open-explorer-plugin-for-eclipse/" title="Open Explorer Plugin for Eclipse (February 4, 2009)">Open Explorer Plugin for Eclipse</a> (22)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.samsonis.me/2011/07/openexplorer-eclipse-plugin-1-3-0/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Terminal.app use option as meta key</title>
		<link>http://blog.samsonis.me/2010/08/terminal-app-use-option-as-meta-key/</link>
		<comments>http://blog.samsonis.me/2010/08/terminal-app-use-option-as-meta-key/#comments</comments>
		<pubDate>Thu, 12 Aug 2010 15:25:04 +0000</pubDate>
		<dc:creator>Samson Wu</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Share]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Terminal]]></category>

		<guid isPermaLink="false">http://blog.samsonis.me/?p=2140</guid>
		<description><![CDATA[最近经常要在psql里输入很长很长很长很长的sql…要问有多长？答：很长，join多的都可以把hash-join temporary file搞到 “no space left on device” 的长…… ，然后蛋疼的case就是你写到很长的时候突然想修改句子中间的某个部分，注意是中间，不是开头也不是结尾，而你的光标还在行末朝你一闪一闪的… 你恨不得那时用鼠标能够点一下，但是很可惜这里是terminal，鼠标单击基本处于屏蔽状态；光标一个一个左移那是在考验你的毅力和忍耐力，你要时刻保持警惕不然就会漂移过头（一般此时容易睡着，所以那时我就很淡定的喝几口水，等光标移到后一般就可以去续杯了……）；后来想到可以一个一个word的移啊，怎么这么傻… 由于bash默认是emacs的key binding，查了一下往前和往后移一个word的shortcut key是Meta-f和Meta-b，查这些花了1分钟不到，但是接下来2个多小时我一直在找这个Meta key…… 后来终于总算被我一个一个这么排列组合试出来了…… 做梦也没想到竟然是ESC… 可以想象一下同时按esc和b来往后移一个word的那种发自内心的不协调。 不过，最后还是顺利解决了（不然就没有标题，亦没有此文了），Terminal.app提供了一个选项帮助用户map option (就是alt) 到meta key，esc虽然还是meta，但显然我们更喜欢用大拇指去按alt （编者注：只要玩warcraft的人都知道用大拇指去按alt查看生命值那是多么重要的操作，哈哈） 最后附图一张，以作纪念： Related posts Terminal.app echo breaks after ctrl-c (0) Python NameError: name &#8216;readline&#8217; is not defined (3) 说谎 (0) 节选两段奥巴马2011国情咨文 (0) 狮子座 (16)]]></description>
			<content:encoded><![CDATA[<p>最近经常要在psql里输入很长很长很长很长的sql…要问有多长？答：很长，join多的都可以把hash-join temporary file搞到 “no space left on device” 的长…… ，然后蛋疼的case就是你写到很长的时候突然想修改句子中间的某个部分，注意是中间，不是开头也不是结尾，而你的光标还在行末朝你一闪一闪的…</p>
<p>你恨不得那时用鼠标能够点一下，但是很可惜这里是terminal，鼠标单击基本处于屏蔽状态；光标一个一个左移那是在考验你的毅力和忍耐力，你要时刻保持警惕不然就会漂移过头（一般此时容易睡着，所以那时我就很淡定的喝几口水，等光标移到后一般就可以去续杯了……）；后来想到可以一个一个word的移啊，怎么这么傻… 由于bash默认是emacs的key binding，查了一下往前和往后移一个word的shortcut key是Meta-f和Meta-b，查这些花了1分钟不到，但是接下来2个多小时我一直在找这个Meta key…… 后来终于总算被我一个一个这么排列组合试出来了…… 做梦也没想到竟然是ESC… 可以想象一下同时按esc和b来往后移一个word的那种发自内心的不协调。</p>
<p>不过，最后还是顺利解决了（不然就没有标题，亦没有此文了），Terminal.app提供了一个选项帮助用户map option (就是alt) 到meta key，esc虽然还是meta，但显然我们更喜欢用大拇指去按alt （编者注：只要玩warcraft的人都知道用大拇指去按alt查看生命值那是多么重要的操作，哈哈）</p>
<p>最后附图一张，以作纪念：</p>
<p><a href="http://blog.samsonis.me/wp-content/uploads/2010/08/terminal_config.png"><img src="http://blog.samsonis.me/wp-content/uploads/2010/08/terminal_config-300x231.png" alt="" title="terminal_config" width="300" height="231" class="alignnone size-medium wp-image-2147" /></a></p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://blog.samsonis.me/2011/03/terminal-app-echo-breaks-after-ctrl-c/" title="Terminal.app echo breaks after ctrl-c (March 18, 2011)">Terminal.app echo breaks after ctrl-c</a> (0)</li>
	<li><a href="http://blog.samsonis.me/2011/08/python-nameerror-name-readline-is-not-defined/" title="Python NameError: name &#8216;readline&#8217; is not defined (August 16, 2011)">Python NameError: name &#8216;readline&#8217; is not defined</a> (3)</li>
	<li><a href="http://blog.samsonis.me/2010/08/%e8%af%b4%e8%b0%8e/" title="说谎 (August 9, 2010)">说谎</a> (0)</li>
	<li><a href="http://blog.samsonis.me/2011/01/%e8%8a%82%e9%80%89%e4%b8%a4%e6%ae%b5%e5%a5%a5%e5%b7%b4%e9%a9%ac2011%e5%9b%bd%e6%83%85%e5%92%a8%e6%96%87/" title="节选两段奥巴马2011国情咨文 (January 26, 2011)">节选两段奥巴马2011国情咨文</a> (0)</li>
	<li><a href="http://blog.samsonis.me/2010/07/%e7%8b%ae%e5%ad%90%e5%ba%a7/" title="狮子座 (July 31, 2010)">狮子座</a> (16)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.samsonis.me/2010/08/terminal-app-use-option-as-meta-key/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Snow Leopard Headache</title>
		<link>http://blog.samsonis.me/2010/03/snow-leopard-headache/</link>
		<comments>http://blog.samsonis.me/2010/03/snow-leopard-headache/#comments</comments>
		<pubDate>Mon, 29 Mar 2010 14:18:32 +0000</pubDate>
		<dc:creator>Samson Wu</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Minds]]></category>
		<category><![CDATA[Snow Leopard]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://blog.samsonis.me/?p=1812</guid>
		<description><![CDATA[今天终于升级到了snow leopard，因为终于准备好了要折腾了，这一准备还准备了半年，版本都从当时的10.6升到10.6.2了，黄花菜都那啥了都…… 1. zimbra desktop 邮件是第一个发现的问题，因为一升级完就要开，还是迫不及待的…瞧我多那啥…… 这个就是我平时用的邮件客户端，其实用不用都无所谓的，邮件本质上和gmail差不多，都是属于“在云端”，zdesktop本身也属于firefox的wrapper，用它和用firefox本质没啥区别，不过既然平时用的习惯了也就习惯了。 snow leopard后zdesktop就launch不了了，查了log然后google发现解决办法具彻底 —— 重装…… 好吧，not a good start，but anyway…… 2. system upgrade &#038; update 接下来似乎很平静，没有发现啥问题，只是系统提示有具多的update，于是downloading和等着update，和平时的windows update没啥区别。这是顿感轻松，顺便还和同事开了开玩笑，世界真美妙…… 那时的感受是什么呀，和装个windows的新版本差不多嘛，除了windows升级一般是占更多的硬盘更多的系统资源，而mac升级则是给我省出了7G空间（后来升级完xcode后发现没有省那么多，现实是如此残酷）。 3. afloat 系统升级下载完了要安装的时候问题来了，系统频繁的问我要密码，敲了一边过去了转身马上又问，问完继续又问…… 于是继续google，这是晚点升级的好处，该碰到的问题人家应该都已经碰到了… 该解决的也已经解决了…… 解决办法还是重装，一点脑子都不用动，全傻瓜式操作。 4. firefox 好吧，我承认这不是升级搞出来的问题，纯粹属于历史遗留下来的问题，不过既然今天开始折腾了那索性一起搞搞干净。其问题是之前firefox升级失败然后就一直无法升级了，和这里描述的差不多，不过上边的解决办法是windows的，我在mac上面始终无法找到相应的updates目录，于是放弃…… 最后solution：重装…… 本来以为所有add-on也要重装一遍的，后来发现所有add-on全部放在我home目录下，好吧此时不重装更待何时。 5. iphone sdk &#038; xcode 升级snow leopard的根本原因之一就是为了升级这玩意，因为最新的xcode 3.2需要snow leopard，升级没有遇到啥问题，但是就是好大呀，6G多…… 之前好不容易省下7G又还回去了…… 螳螂捕蝉，黄雀在后呀…… 6. 最后大boss之macports 由于snow leopard升级改了arch（i386 -> x86_64），所以之前凡事configure, make, make install的都要小心为妙。 ...]]></description>
			<content:encoded><![CDATA[<p>今天终于升级到了snow leopard，因为终于准备好了要折腾了，这一准备还准备了半年，版本都从当时的10.6升到10.6.2了，黄花菜都那啥了都……</p>
<p>1. zimbra desktop<br />
邮件是第一个发现的问题，因为一升级完就要开，还是迫不及待的…瞧我多那啥…… 这个就是我平时用的邮件客户端，其实用不用都无所谓的，邮件本质上和gmail差不多，都是属于“在云端”，zdesktop本身也属于firefox的wrapper，用它和用firefox本质没啥区别，不过既然平时用的习惯了也就习惯了。<br />
snow leopard后zdesktop就launch不了了，查了log然后google发现解决办法具彻底 —— 重装…… 好吧，not a good start，but anyway……</p>
<p>2. system upgrade &#038; update<br />
接下来似乎很平静，没有发现啥问题，只是系统提示有具多的update，于是downloading和等着update，和平时的windows update没啥区别。这是顿感轻松，顺便还和同事开了开玩笑，世界真美妙……<br />
那时的感受是什么呀，和装个windows的新版本差不多嘛，除了windows升级一般是占更多的硬盘更多的系统资源，而mac升级则是给我省出了7G空间（后来升级完xcode后发现没有省那么多，现实是如此残酷）。</p>
<p>3. afloat<br />
系统升级下载完了要安装的时候问题来了，系统频繁的问我要密码，敲了一边过去了转身马上又问，问完继续又问……<br />
于是继续google，这是晚点升级的好处，该碰到的问题人家应该都已经碰到了… 该解决的也已经解决了……<br />
<a href="http://infinite-labs.net/kb/plugsuit/ps-remove-on-10.6.html">解决办法</a>还是重装，一点脑子都不用动，全傻瓜式操作。<br />
<span id="more-1812"></span><br />
4. firefox<br />
好吧，我承认这不是升级搞出来的问题，纯粹属于历史遗留下来的问题，不过既然今天开始折腾了那索性一起搞搞干净。其问题是之前firefox升级失败然后就一直无法升级了，和<a href="https://support.mozilla.com/en-US/forum/1/628464">这里</a>描述的差不多，不过上边的解决办法是windows的，我在mac上面始终无法找到相应的updates目录，于是放弃……<br />
最后solution：重装…… 本来以为所有add-on也要重装一遍的，后来发现所有add-on全部放在我home目录下，好吧此时不重装更待何时。</p>
<p>5. iphone sdk &#038; xcode<br />
升级snow leopard的根本原因之一就是为了升级这玩意，因为最新的xcode 3.2需要snow leopard，升级没有遇到啥问题，但是就是好大呀，6G多…… 之前好不容易省下7G又还回去了…… 螳螂捕蝉，黄雀在后呀……</p>
<p>6. 最后大boss之macports<br />
由于snow leopard<a href="http://developer.apple.com/technologies/mac/snowleopard/64bit.html">升级改了arch</a>（i386 -> x86_64），所以之前凡事configure, make, make install的都要小心为妙。<br />
担心不是不无道理的，macports就是最大的受害者，这是macports官方的<a href="http://trac.macports.org/wiki/Migration">migration instruction</a>，看完直接晕过去… 又是重装…… 而且是全部删掉全部重新编译……<br />
这个工作量…… 好吧，好身体，抵抗力……</p>
<p>7. TBD<br />
目前还在重装macports编译各种悲剧的过程中（cpu高负荷运转，风扇狂转中…），由于编译实在无聊，所以过来啰嗦几句，也不知道后面还有没有啥隐藏boss…… 不过anyway，so far so “good”……</p>
<p>Conclusion: 今天我整个就是一重装党，重装正在进行，悲剧还在继续……</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://blog.samsonis.me/2010/05/%e9%80%80%e6%ad%a5%e5%8e%9f%e6%9d%a5%e6%98%af%e5%90%91%e5%89%8d/" title="退步原来是向前 (May 22, 2010)">退步原来是向前</a> (0)</li>
	<li><a href="http://blog.samsonis.me/2010/06/%e6%ac%a2%e8%bf%8e%e6%8a%a5%e8%80%83%e5%9b%b4%e5%9f%8e/" title="欢迎报考围城 (June 7, 2010)">欢迎报考围城</a> (0)</li>
	<li><a href="http://blog.samsonis.me/2010/02/%e6%9c%aa%e6%88%90%e5%b9%b4%e5%85%88%e5%88%ab%e5%84%aa/" title="未成年先别優 (February 23, 2010)">未成年先别優</a> (1)</li>
	<li><a href="http://blog.samsonis.me/2011/07/%e5%be%ae%e6%97%a5%e8%ae%b0%e8%ae%a1%e5%88%92/" title="微日记计划 (July 18, 2011)">微日记计划</a> (6)</li>
	<li><a href="http://blog.samsonis.me/2010/01/%e5%a5%b6%e5%a5%b6%ef%bc%8c%e4%b8%80%e8%b7%af%e9%a1%ba%e9%a3%8e/" title="奶奶，一路顺风 (January 28, 2010)">奶奶，一路顺风</a> (3)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.samsonis.me/2010/03/snow-leopard-headache/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>关于Mac的Safe Sleep和Hibernate</title>
		<link>http://blog.samsonis.me/2010/02/%e5%85%b3%e4%ba%8emac%e7%9a%84safe-sleep%e5%92%8chibernate/</link>
		<comments>http://blog.samsonis.me/2010/02/%e5%85%b3%e4%ba%8emac%e7%9a%84safe-sleep%e5%92%8chibernate/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 09:18:23 +0000</pubDate>
		<dc:creator>Samson Wu</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Minds]]></category>
		<category><![CDATA[Technique]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Macintosh]]></category>

		<guid isPermaLink="false">http://blog.samsonis.me/?p=1701</guid>
		<description><![CDATA[据说Apple早在2005年10月发布Mac OS X 10.4.3的时候就已经加入了safe sleep这个功能，但是GUI界面上却至今始终对用户透明，用户在不装任何3rd party tools的情况下永远只能看到sleep而没有hiberate之类的选项。 但是此sleep又并非完全等同于我们平时常说的&#8221;suspend to RAM&#8221;（2005.10之前可能相同），它背后其实也做了&#8221;suspend to disk&#8221;，也就是PC上的hibernate的工作，实为明修栈道，暗渡陈仓。 这样做的好处也成了后来Apple命名此技术的offical name —— &#8220;safe sleep&#8221;，因为它解决了单纯&#8221;suspend to RAM&#8221;下电源耗完或故障导致的RAM信息丢失问题：其会在电源不足的情况下自动切换到&#8221;suspend to disk&#8221;，着实&#8221;smart and safe&#8221;。 但有趣的是，苹果似乎从来没有高调宣布过这项当时可能不新不revolutionary但确实对用户而言很实用的功能，for some &#8220;unknown&#8221; reason。 在大多数的情况下，用户可能并不会察觉这背后的不同，事实上我觉得Apple要不是考虑到了切换到&#8221;suspend to disk&#8221;后restore回来用户会等很久的user experience问题，而加入了这个progress bar， 很少真的会有用户察觉。 到了10.5，safe sleep似乎终于有了offcial的解释，但是总感觉好像简单了点，不知道你和我是否感觉一样，低调么也不带这样的… 系统早就有这个capability，但4年多后的今天普通用户却还是要很麻烦的来使用，Apple提供了一个命令行工具pmset来帮助用户进行power management，其中很多选项在&#8221;System Preferences&#8230; -> Energy Saver&#8221;里面都能找到对应，但是却偏偏没有关于hibernate mode的。 相应的信息如果不联网的话需要在命令行下用man pmset查看，可以看到pmset可以设置autorestart等10多个参数，与hibernate有关的有两个参数分别叫hibernatemode和hibernatefile，你会有趣的发现只有这两个参数后面跟了句&#8221;Please use caution.&#8221;，这是不是让你联想到了什么？ ========================== 历史，背景以及浮想联翩的分界线 ========================== 下面我们来看看究竟怎么在Mac上hibernate，底下是man pmset里关于hibernatemode参数设置的描述： hibernatemode takes a bitfield ...]]></description>
			<content:encoded><![CDATA[<p>据说Apple早在2005年10月发布<a href="http://support.apple.com/downloads/Mac_OS_X_Update_10_4_3">Mac OS X 10.4.3</a>的时候就已经加入了safe sleep这个功能，但是GUI界面上却至今始终对用户透明，用户在不装任何3rd party tools的情况下永远只能看到sleep而没有hiberate之类的选项。</p>
<p>但是此sleep又并非完全等同于我们平时常说的&#8221;suspend to RAM&#8221;（2005.10之前可能相同），它背后其实也做了&#8221;suspend to disk&#8221;，也就是PC上的hibernate的工作，实为明修栈道，暗渡陈仓。</p>
<p>这样做的好处也成了后来Apple命名此技术的offical name —— &#8220;safe sleep&#8221;，因为它解决了单纯&#8221;suspend to RAM&#8221;下电源耗完或故障导致的RAM信息丢失问题：其会在电源不足的情况下自动切换到&#8221;suspend to disk&#8221;，着实&#8221;smart and safe&#8221;。</p>
<p>但有趣的是，苹果似乎从来没有高调宣布过这项当时可能不新不revolutionary但确实对用户而言很实用的功能，for some &#8220;unknown&#8221; reason。</p>
<p>在大多数的情况下，用户可能并不会察觉这背后的不同，事实上我觉得Apple要不是考虑到了切换到&#8221;suspend to disk&#8221;后restore回来用户会等很久的user experience问题，而加入了<a href="http://support.apple.com/kb/HT1757?viewlocale=en_US">这个progress bar</a>， 很少真的会有用户察觉。</p>
<p>到了10.5，safe sleep似乎终于有了<a href="http://docs.info.apple.com/article.html?path=Mac/10.5/en/10328.html">offcial的解释</a>，但是总感觉好像简单了点，不知道你和我是否感觉一样，低调么也不带这样的…<br />
<span id="more-1701"></span><br />
系统早就有这个capability，但4年多后的今天普通用户却还是要很麻烦的来使用，Apple提供了一个命令行工具pmset来帮助用户进行power management，其中很多选项在&#8221;System Preferences&#8230; -> Energy Saver&#8221;里面都能找到对应，但是却偏偏没有关于hibernate mode的。</p>
<p>相应的信息如果不联网的话需要在命令行下用man pmset查看，可以看到pmset可以设置autorestart等10多个参数，与hibernate有关的有两个参数分别叫hibernatemode和hibernatefile，你会有趣的发现只有这两个参数后面跟了句&#8221;Please use caution.&#8221;，这是不是让你联想到了什么？</p>
<p>========================== 历史，背景以及浮想联翩的分界线 ==========================</p>
<p>下面我们来看看究竟怎么在Mac上hibernate，底下是man pmset里关于hibernatemode参数设置的描述：</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">hibernatemode takes a bitfield argument defining SafeSleep behavior.<br />
Passing <span style="color: #000000;">0</span> disables SafeSleep altogether, forcing the computer into a reg-<br />
ular sleep.<br />
<br />
0001 <span style="color: #7a0874; font-weight: bold;">&#40;</span>bit <span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> enables hibernation; causes OS X to <span style="color: #c20cb9; font-weight: bold;">write</span> memory state to<br />
hibernation image at <span style="color: #c20cb9; font-weight: bold;">sleep</span> time. On wake <span style="color: #7a0874; font-weight: bold;">&#40;</span>without bit <span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">set</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> OS X will<br />
resume from the hibernation image. Bit <span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>without bit <span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">set</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> causes<br />
OS X to <span style="color: #c20cb9; font-weight: bold;">write</span> memory state and immediately hibernate at <span style="color: #c20cb9; font-weight: bold;">sleep</span> time.<br />
<br />
0010 <span style="color: #7a0874; font-weight: bold;">&#40;</span>bit <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>, <span style="color: #000000; font-weight: bold;">in</span> conjunction with bit <span style="color: #000000;">0</span>, causes OS X to maintain system<br />
state <span style="color: #000000; font-weight: bold;">in</span> memory and leave system power on <span style="color: #000000; font-weight: bold;">until</span> battery level drops below<br />
a near empty threshold <span style="color: #7a0874; font-weight: bold;">&#40;</span>This enables quicker wakeup from memory <span style="color: #000000; font-weight: bold;">while</span><br />
battery power is available<span style="color: #7a0874; font-weight: bold;">&#41;</span>. Upon nearly emptying the battery, OS X shuts<br />
off all system power and hibernates; on wake the system will resume from<br />
hibernation image, not from memory.<br />
<br />
hibernatemode is <span style="color: #000000; font-weight: bold;">set</span> to <span style="color: #000000;">3</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>binary 0011<span style="color: #7a0874; font-weight: bold;">&#41;</span> by default on supported porta-<br />
bles.<br />
<br />
hibernatemode is <span style="color: #000000; font-weight: bold;">set</span> to <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>binary 0000<span style="color: #7a0874; font-weight: bold;">&#41;</span> by default on supported desktops.<br />
<br />
Please note that hibernatefile may only point to a <span style="color: #c20cb9; font-weight: bold;">file</span> located on the<br />
root volume.</div></div>
<p>可以看到portables默认的模式就是所谓的safe sleep（hibernatemode = 3）。</p>
<p>修改之前先查看一下当前系统使用的hibernate相关参数设置，我没有修改过（事实上之前都不知道怎么修改），应该就是默认的配置：</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ pmset <span style="color: #660033;">-g</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> hibernate<br />
&nbsp;hibernatefile&nbsp; <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>vm<span style="color: #000000; font-weight: bold;">/</span>sleepimage<br />
&nbsp;hibernatemode&nbsp; <span style="color: #000000;">3</span><br />
$ <span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-lh</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>vm<span style="color: #000000; font-weight: bold;">/</span>sleepimage <br />
<span style="color: #660033;">-rw------T</span> &nbsp;<span style="color: #000000;">1</span> root &nbsp;wheel &nbsp; 2.0G Feb <span style="color: #000000;">23</span> <span style="color: #000000;">10</span>:09 <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>vm<span style="color: #000000; font-weight: bold;">/</span>sleepimage</div></div>
<p>设置系统使用hibernate模式（hibernatemode = 0001）进行sleep：</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> pmset <span style="color: #660033;">-a</span> hibernatemode <span style="color: #000000;">1</span></div></div>
<p>这时如果再按普通方式sleep的时候mac就会hibernate了，想要切换回safe sleep只要把hibernatemode修改回来就行了：</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> pmset <span style="color: #660033;">-a</span> hibernatemode <span style="color: #000000;">3</span></div></div>
<p>如果不喜欢命令行操作，可以使用第三方工具，实现机制应该是一样的，我所知道的有<a href="http://www.jinx.de/SmartSleep.html">smartsleep</a>和<a href="http://deepsleep.free.fr/">deep sleep</a>这两个，不过我都还没有测试过。</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://blog.samsonis.me/2009/02/welcome-to-macintosh/" title="Welcome to Macintosh (February 15, 2009)">Welcome to Macintosh</a> (0)</li>
	<li><a href="http://blog.samsonis.me/2011/08/lion-ready/" title="Lion Ready? (August 10, 2011)">Lion Ready?</a> (5)</li>
	<li><a href="http://blog.samsonis.me/2010/09/%e8%90%bd%e8%8a%b1%e6%9c%89%e6%84%8f%e6%b5%81%e6%b0%b4%e6%97%a0%e6%83%85/" title="落花有意流水无情 [转载] (September 7, 2010)">落花有意流水无情 [转载]</a> (12)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.samsonis.me/2010/02/%e5%85%b3%e4%ba%8emac%e7%9a%84safe-sleep%e5%92%8chibernate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

