<?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/"
	>

<channel>
	<title>PFMacLog</title>
	<atom:link href="http://mac.pfung.net/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://mac.pfung.net/blog</link>
	<description>A Pterodactyl Blog about Apple and Macintosh</description>
	<pubDate>Sun, 07 Sep 2008 09:07:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SSH Agent on Leopard</title>
		<link>http://mac.pfung.net/blog/2008/09/ssh-agent-on-leopard/</link>
		<comments>http://mac.pfung.net/blog/2008/09/ssh-agent-on-leopard/#comments</comments>
		<pubDate>Sun, 07 Sep 2008 09:06:12 +0000</pubDate>
		<dc:creator>Pterodactyl</dc:creator>
		
		<category><![CDATA[Operating System]]></category>

		<category><![CDATA[Leopard]]></category>

		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://mac.pfung.net/blog/?p=45</guid>
		<description><![CDATA[Leopard comes with a built-in SSH agent. The passphrase of your private key can be stored in your keychain.

SSH Dialog
If you don&#8217;t want to store your passphrase in the keychain, the above dialog will appear every time you use the ssh tool with your private key. It&#8217;s so boring, isn&#8217;t it? Ok, ssh-add can solve [...]]]></description>
			<content:encoded><![CDATA[<p>Leopard comes with a built-in SSH agent. The passphrase of your private key can be stored in your keychain.</p>
<div class="figure"><img src="/images/blog/ssh-agent-on-leopard.png" alt="SSH Dialog" width="524" height="340" /><br />
SSH Dialog</div>
<p>If you don&#8217;t want to store your passphrase in the keychain, the above dialog will appear every time you use the ssh tool with your private key. It&#8217;s so boring, isn&#8217;t it? Ok, ssh-add can solve it.</p>
<p><code>ssh-add &lt;private key file&gt;</code></p>
<p>It adds your private key to the SSH agent. After using this command, you won&#8217;t see that dialog again in the current system login session.</p>
]]></content:encoded>
			<wfw:commentRss>http://mac.pfung.net/blog/2008/09/ssh-agent-on-leopard/feed/</wfw:commentRss>
		</item>
		<item>
		<title>AMP on Leopard</title>
		<link>http://mac.pfung.net/blog/2008/08/amp-on-leopard/</link>
		<comments>http://mac.pfung.net/blog/2008/08/amp-on-leopard/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 15:29:43 +0000</pubDate>
		<dc:creator>Pterodactyl</dc:creator>
		
		<category><![CDATA[Operating System]]></category>

		<category><![CDATA[Apache]]></category>

		<category><![CDATA[Leopard]]></category>

		<category><![CDATA[MySQL]]></category>

		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://mac.pfung.net/blog/?p=18</guid>
		<description><![CDATA[Many web developers work with AMP (Apache+MySQL+PHP). Me, too. Leopard comes with Apache 2.2 and PHP 5. It&#8217;s so easy to enable them.
1. Apache
To enable Apache, check the Web Sharing in System Preferences > Sharing.
2. PHP
To enable PHP, open Apache&#8217;s configuration file (/etc/apache2/httpd.conf) and enable the following line:
LoadModule php5_module libexec/apache2/libphp5.so
After modifying this file, you should [...]]]></description>
			<content:encoded><![CDATA[<p>Many web developers work with AMP (Apache+MySQL+PHP). Me, too. Leopard comes with Apache 2.2 and PHP 5. It&#8217;s so easy to enable them.</p>
<p>1. Apache</p>
<p>To enable Apache, check the Web Sharing in System Preferences > Sharing.</p>
<p>2. PHP</p>
<p>To enable PHP, open Apache&#8217;s configuration file (/etc/apache2/httpd.conf) and enable the following line:</p>
<p><code>LoadModule php5_module libexec/apache2/libphp5.so</code></p>
<p>After modifying this file, you should restart Apache by unchecking/checking the Web Sharing or using the following command:</p>
<p><code>$ sudo /usr/sbin/apachectl restart</code></p>
<p>3. MySQL</p>
<p>First, download MySQL&#8217;s installation package for Mac OS X (dmg) from <a href="http://dev.mysql.com/downloads/">MySQL&#8217;s website</a>. It&#8217;s not included in Leopard.</p>
<p>There&#8217;re two Installer Package (pkg) files in the file you downloaded. One is the installer of MySQL, the other named MySQLStartupItem.pkg is used for starting MySQL automatically during system startup. Furthermore, a Preference Pane file named MySQL.prefPane lets you start/stop MySQL in System Preferences > MySQL.</p>
<p>After installing MySQL, configure PHP to work with it:</p>
<p><code>$ cd /etc<br />
$ sudo cp php.ini.default php.ini</code></p>
<p>Then open this newly created php.ini and set the mysql.default_socket and mysqli.default_socket to:</p>
<p><code>mysql.default_socket = /private/tmp/mysql.sock<br />
mysqli.default_socket = /private/tmp/mysql.sock</code></p>
<p>Restart Apache again and you have the AMP on your Leopard now!</p>
]]></content:encoded>
			<wfw:commentRss>http://mac.pfung.net/blog/2008/08/amp-on-leopard/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Booting in Verbose Mode Permanently</title>
		<link>http://mac.pfung.net/blog/2008/08/booting-in-verbose-mode-permanently/</link>
		<comments>http://mac.pfung.net/blog/2008/08/booting-in-verbose-mode-permanently/#comments</comments>
		<pubDate>Sat, 02 Aug 2008 15:22:32 +0000</pubDate>
		<dc:creator>Pterodactyl</dc:creator>
		
		<category><![CDATA[Operating System]]></category>

		<guid isPermaLink="false">http://mac.pfung.net/blog/?p=14</guid>
		<description><![CDATA[Normally, booting Mac OS X shows you a gray screen with the Apple logo and spinner. But it can be booted in verbose mode, simply hitting Command-V during startup. If you want to make it permanent, use the following command in Terminal:
$ sudo nvram boot-args="-v"
Enjoy!
]]></description>
			<content:encoded><![CDATA[<p>Normally, booting Mac OS X shows you a gray screen with the Apple logo and spinner. But it can be booted in verbose mode, simply hitting Command-V during startup. If you want to make it permanent, use the following command in Terminal:</p>
<p><code>$ sudo nvram boot-args="-v"</code></p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://mac.pfung.net/blog/2008/08/booting-in-verbose-mode-permanently/feed/</wfw:commentRss>
		</item>
		<item>
		<title>First Apple Store in China</title>
		<link>http://mac.pfung.net/blog/2008/07/first-apple-store-in-china/</link>
		<comments>http://mac.pfung.net/blog/2008/07/first-apple-store-in-china/#comments</comments>
		<pubDate>Sat, 19 Jul 2008 05:26:17 +0000</pubDate>
		<dc:creator>Pterodactyl</dc:creator>
		
		<category><![CDATA[Timestamp]]></category>

		<guid isPermaLink="false">http://mac.pfung.net/blog/?p=6</guid>
		<description><![CDATA[Apple has opened its first Apple Store in China today, which is located at the Sanlitun Village, Beijing.

First Apple Store in China
]]></description>
			<content:encoded><![CDATA[<p>Apple has opened its first Apple Store in China today, which is located at the Sanlitun Village, Beijing.</p>
<div class="figure"><img src="/images/blog/first-apple-store-in-china.png" alt="First Apple Store in China" width="405" height="320" /><br />
First Apple Store in China</div>
]]></content:encoded>
			<wfw:commentRss>http://mac.pfung.net/blog/2008/07/first-apple-store-in-china/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Happy iCal Day</title>
		<link>http://mac.pfung.net/blog/2008/07/happy-ical-day/</link>
		<comments>http://mac.pfung.net/blog/2008/07/happy-ical-day/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 16:00:55 +0000</pubDate>
		<dc:creator>Pterodactyl</dc:creator>
		
		<category><![CDATA[Timestamp]]></category>

		<category><![CDATA[iCal]]></category>

		<guid isPermaLink="false">http://mac.pfung.net/blog/?p=5</guid>
		<description><![CDATA[Today is iCal day. What is it? It&#8217;s the day featured on iCal&#8217;s icon. Prior to Leopard, it&#8217;s the only day in the whole year that iCal&#8217;s icon on the Dock shows the correct date whether your iCal is running or not. Now, iCal&#8217;s icon on the Dock can always show the correct date in [...]]]></description>
			<content:encoded><![CDATA[<p>Today is iCal day. What is it? It&#8217;s the day featured on iCal&#8217;s icon. Prior to Leopard, it&#8217;s the only day in the whole year that iCal&#8217;s icon on the Dock shows the correct date whether your iCal is running or not. Now, iCal&#8217;s icon on the Dock can always show the correct date in Leopard.</p>
<div class="figure"><img src="/images/blog/happy-ical-day.png" alt="iCal's Icon" width="256" height="256" /><br />
iCal&#8217;s Icon</div>
<p>But why is it July 17th? Steve Job&#8217;s birthday? Or a special day in Apple&#8217;s history? No. It&#8217;s just the day iCal was introduced to the public. Haha!</p>
]]></content:encoded>
			<wfw:commentRss>http://mac.pfung.net/blog/2008/07/happy-ical-day/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Keyboard Control of Dialog</title>
		<link>http://mac.pfung.net/blog/2008/07/keyboard-control-of-dialog/</link>
		<comments>http://mac.pfung.net/blog/2008/07/keyboard-control-of-dialog/#comments</comments>
		<pubDate>Sun, 13 Jul 2008 13:37:49 +0000</pubDate>
		<dc:creator>Pterodactyl</dc:creator>
		
		<category><![CDATA[Operating System]]></category>

		<guid isPermaLink="false">http://mac.pfung.net/blog/?p=4</guid>
		<description><![CDATA[Many people love to use keyboard to control the operating system as often as they can without mouse. Then how to control the dialog with keyboard?

Figure A
Figure A shows a typical dialog in Mac OS. The button with blue background (OK in Figure A) is the default button of the dialog. You can always hit [...]]]></description>
			<content:encoded><![CDATA[<p>Many people love to use keyboard to control the operating system as often as they can without mouse. Then how to control the dialog with keyboard?</p>
<div class="figure"><img src="/images/blog/keyboard-control-of-dialog-a.png" alt="Figure A" width="554" height="242" /><br />
Figure A</div>
<p>Figure A shows a typical dialog in Mac OS. The button with blue background (OK in Figure A) is the default button of the dialog. You can always hit the Return key to select the default button, or hit Esc to cancel the dialog.</p>
<p>After hitting the Tab key once, you will see that there&#8217;s a blue glow around the OK button (see Figure B). It means that this button is highlighted and can be selected with the Space Bar at this time. And you can hit Tab again to highlight the Cancel button (see Figure C).</p>
<div class="figure"><img src="/images/blog/keyboard-control-of-dialog-b.png" alt="Figure B" width="554" height="242" /><br />
Figure B</div>
<div class="figure"><img src="/images/blog/keyboard-control-of-dialog-c.png" alt="Figure C" width="554" height="242" /><br />
Figure C</div>
<p>But the Tab key is not available on some dialogs. So you should use ? or Command+? (? is one of the A-Z keys) to select a button other than the default and Cancel buttons. You can use Command+D (D for don&#8217;t) to select Don&#8217;t Save on the dialog that Figure D shows, and use S (S for sleep) to select Sleep on the dialog that Figure E shows.</p>
<div class="figure"><img src="/images/blog/keyboard-control-of-dialog-d.png" alt="Figure D" width="470" height="145" /><br />
Figure D</div>
<div class="figure"><img src="/images/blog/keyboard-control-of-dialog-e.png" alt="Figure E" width="533" height="228" /><br />
Figure E</div>
]]></content:encoded>
			<wfw:commentRss>http://mac.pfung.net/blog/2008/07/keyboard-control-of-dialog/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Moving Items in Finder</title>
		<link>http://mac.pfung.net/blog/2008/07/moving-items-in-finder/</link>
		<comments>http://mac.pfung.net/blog/2008/07/moving-items-in-finder/#comments</comments>
		<pubDate>Sat, 12 Jul 2008 16:14:45 +0000</pubDate>
		<dc:creator>Pterodactyl</dc:creator>
		
		<category><![CDATA[Operating System]]></category>

		<category><![CDATA[Finder]]></category>

		<guid isPermaLink="false">http://mac.pfung.net/blog/?p=3</guid>
		<description><![CDATA[If you select some items in Finder and want to move them to another location, you will find that the Cut menu item under Edit is not available (see Figure A).

Figure A
Because the Cut is only for cutting the filename while you&#8217;re editing it. So how to move some items from one location to another [...]]]></description>
			<content:encoded><![CDATA[<p>If you select some items in Finder and want to move them to another location, you will find that the Cut menu item under Edit is not available (see Figure A).</p>
<div class="figure"><img src="/images/blog/moving-items-in-finder-a.png" alt="Figure A" width="470" height="184" /><br />
Figure A</div>
<p>Because the Cut is only for cutting the filename while you&#8217;re editing it. So how to move some items from one location to another in Finder? It&#8217;s easy, just hold down the Command key while dragging the items with your mouse. That&#8217;s all.</p>
<p>By default, dragging items from one location to another in Finder means that they&#8217;re being moved if the volume of the new location is the same as the volume of the orginal location. If the volumes of the new location and the original one are not the same, the items are being copied while dragging.</p>
<p>Furthermore, Apple&#8217;s document says that dragging items with Option held down will copy those items to the new location. And dragging items with Option and Command held down will make alias in the new location.</p>
]]></content:encoded>
			<wfw:commentRss>http://mac.pfung.net/blog/2008/07/moving-items-in-finder/feed/</wfw:commentRss>
		</item>
		<item>
		<title>My First Mac</title>
		<link>http://mac.pfung.net/blog/2008/03/my-first-mac/</link>
		<comments>http://mac.pfung.net/blog/2008/03/my-first-mac/#comments</comments>
		<pubDate>Sun, 30 Mar 2008 01:00:51 +0000</pubDate>
		<dc:creator>Pterodactyl</dc:creator>
		
		<category><![CDATA[Timestamp]]></category>

		<guid isPermaLink="false">http://mac.pfung.net/blog/?p=1</guid>
		<description><![CDATA[Today is a memorable day in my life. Because I finally bought my first Mac, a black MacBook with Intel C2D 2.4GHz CPU, 2GB memory and 250GB hard disk. It&#8217;s great!
]]></description>
			<content:encoded><![CDATA[<p>Today is a memorable day in my life. Because I finally bought my first Mac, a black MacBook with Intel C2D 2.4GHz CPU, 2GB memory and 250GB hard disk. It&#8217;s great!</p>
]]></content:encoded>
			<wfw:commentRss>http://mac.pfung.net/blog/2008/03/my-first-mac/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
