<?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>Tao&#039;s Blog</title>
	<atom:link href="http://tongtao.com/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://tongtao.com/blog</link>
	<description>Tao&#039;s Random Thoughts</description>
	<lastBuildDate>Mon, 26 Dec 2011 18:05:55 +0000</lastBuildDate>
	<language>en-us</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Phone memory confusion in my T-Mobile G2x</title>
		<link>http://tongtao.com/blog/?p=411</link>
		<comments>http://tongtao.com/blog/?p=411#comments</comments>
		<pubDate>Mon, 26 Dec 2011 18:05:55 +0000</pubDate>
		<dc:creator>tao</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://tongtao.com/blog/?p=411</guid>
		<description><![CDATA[I was confused by the phone memory structure of my T-Mobile G2x Android phone. I cannot find the photos and videos taken with the default camera app. Did some digging online and experiments offline, and the following is my findings. &#8230; <a href="http://tongtao.com/blog/?p=411">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I was confused by the phone memory structure of my T-Mobile G2x Android phone. I cannot find the photos and videos taken with the default camera app. Did some digging online and experiments offline, and the following is my findings. </p>
<p>There are three kinds of memories in my G2x. The first, internal phone storage, the RAM of the phone, so to speak. In most of the cases, the user cannot directly access or modify the content in this chunk of memory. </p>
<p>Second, the phone memory. It is called phone memory in Manage Apps, but in the Android file system, is it referred as /sdcard/. Sometimes it is also referred as the internal SD card. That’s quite confusing, since it is not a SD card that you can plug in and out. It has a DCIM folder, and the photos and videos are stored in /sdcard/DCIM/Camera if there is no external SD card installed. </p>
<p>Third, the read SD card. It is the SD card that the users can swap in and out. It is mounted at /sdcard/_ExternalSD. It is also referred as the external SD card. If it is mounted, the photos and videos go to this location by default, otherwise, the they go to internal SD card. </p>
<p>So, for photos and videos, the default location is </p>
<p><code>/sdcard/_ExternalSD/DCIM/Camera</code></p>
<p>And if external SD card is not present, the default location is</p>
<p><code>/sdcard/DCIM/Camera</code></p>
]]></content:encoded>
			<wfw:commentRss>http://tongtao.com/blog/?feed=rss2&#038;p=411</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Proper way to connect and disconnect external hard drives</title>
		<link>http://tongtao.com/blog/?p=401</link>
		<comments>http://tongtao.com/blog/?p=401#comments</comments>
		<pubDate>Wed, 07 Sep 2011 16:33:00 +0000</pubDate>
		<dc:creator>tao</dc:creator>
				<category><![CDATA[Digital Life]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://tongtao.com/blog/?p=401</guid>
		<description><![CDATA[A couple of months ago, one of my external hard drives went belly up. Fortunately, it was still under warranty, and Western Digital sent me a RMA replacement. The most important of all, I had the opportunity to copy all &#8230; <a href="http://tongtao.com/blog/?p=401">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A couple of months ago, one of my external hard drives went belly up. Fortunately, it was still under warranty, and Western Digital sent me a RMA replacement. The most important of all, I had the opportunity to copy all the content to another volume before I sent it back for RMA.</p>
<p>The lesson: always have double, or triple copies of your important data on different physical volumes. Also, it is better to follow the manufacture&#8217;s suggestion to properly connect and disconnect the device.</p>
<p>From <a href=http://wdc.custhelp.com/app/answers/detail/a_id/5316/p/228%2C219%2C289/c/123/session/L3RpbWUvMTMxNTQxMjM5MC9zaWQvTlVDR3F2RGs%3D target=_>Western Digital&#8217;s documentation</a>, the proper way to connect a USB or FireWire hard drive is the following, and the sequence is important:</p>
<p>To Connect</p>
<ol>
<li>Plug the power adapter into a wall outlet. You can try a power strip or UPS but if you have problems with the drive, try connecting it to a wall outlet.</li>
<li>Connect the power plug into the back of the drive. It&#8217;s okay if the drive powers on, then off, or if you see some lights come on for a brief second.</li>
<li>Connect the USB or FireWire cable directly into your computer (do not use a USB or FireWire hub). If your drive has more than one port, only use one. Do not connect both the USB and FireWire together to the computer.</li>
<li>Connect the other end of the USB or FireWire cable into the external drive. The drive should then power on (you shouldn&#8217;t need to use the power switch), if your computer is on, Windows should detect and install the native Windows drivers for your drive. If the drive is formatted for your computer system, it should show up in My Computer with a drive letter.</li>
</ol>
<p>To Disconnect</p>
<ol>
<li>Please ensure that any files residing on the external hard drive are closed and no programs are accessing the hard drive.</li>
<li>Eject the volume through OS, safely remove the drive for Windows, Command-E for Mac</li>
<li>The hard drive will spin down and turn off on it&#8217;s own. When prompted, You can unplug the USB or FireWire cable and/or power cable.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://tongtao.com/blog/?feed=rss2&#038;p=401</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comparison of my phone cameras with my other cameras</title>
		<link>http://tongtao.com/blog/?p=396</link>
		<comments>http://tongtao.com/blog/?p=396#comments</comments>
		<pubDate>Wed, 07 Sep 2011 04:08:45 +0000</pubDate>
		<dc:creator>tao</dc:creator>
				<category><![CDATA[Digital Life]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://tongtao.com/blog/?p=396</guid>
		<description><![CDATA[I am curious of the cameras on my new T-Mobile G2x phone. This phone has two cameras, the back camera is 8 M camera, the front one is 1.3 M camera. So it would be interesting to compare with my &#8230; <a href="http://tongtao.com/blog/?p=396">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I am curious of the cameras on my new T-Mobile G2x phone. This phone has two cameras, the back camera is 8 M camera, the front one is 1.3 M camera.</p>
<p>So it would be interesting to compare with my other cameras:</p>
<table>
<tr>
<th>Camera</th>
<th>Pixels</th>
<th>Pixel size, um^2</th>
<th>Sensor size, mm</th>
<th>Type</th>
</tr>
<tr>
<td>Canon 350D</td>
<td>3456&#215;2304=8M</td>
<td>6.4</td>
<td>22.2&#215;14.8</td>
<td>CMOS</td>
</tr>
<tr>
<td>Nikon D40</td>
<td>3008&#215;2000=6M</td>
<td>7.9</td>
<td>23.7&#215;15.6</td>
<td>CCD</td>
</tr>
<tr>
<td>Canon SD1000</td>
<td>3072&#215;2304=7M</td>
<td>1.87</td>
<td>5.744&#215;4.308 (1/2.5&#8243;)</td>
<td>CCD</td>
</tr>
<tr>
<td>T-Mobile G2x back camera</td>
<td>3264&#215;2448=8M</td>
<td>1.4</td>
<td>4.6&#215;3.4 (1/3.2&#8243;)</td>
<td>CMOS</td>
</tr>
<tr>
<td>T-Mobile G2x front camera</td>
<td>1280&#215;960=1.3M</td>
<td>1.75</td>
<td>2.24&#215;1.68</td>
<td>CMOS</td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://tongtao.com/blog/?feed=rss2&#038;p=396</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fast switching Input methods on Android phone</title>
		<link>http://tongtao.com/blog/?p=393</link>
		<comments>http://tongtao.com/blog/?p=393#comments</comments>
		<pubDate>Tue, 06 Sep 2011 23:26:26 +0000</pubDate>
		<dc:creator>tao</dc:creator>
				<category><![CDATA[Digital Life]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://tongtao.com/blog/?p=393</guid>
		<description><![CDATA[On my T-Mobile G2x phone, there are two pre-installed input methods, or keyboards: Android stock keyboard (Gingerbread), and Swype keyboard. I also installed Google Pinyin keyboard for entering Chinese. Google Pinyin keyboard can sync with the mother-ship for my customized &#8230; <a href="http://tongtao.com/blog/?p=393">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>On my T-Mobile G2x phone, there are two pre-installed input methods, or keyboards: Android stock keyboard (Gingerbread), and Swype keyboard. I also installed Google Pinyin keyboard for entering Chinese. Google Pinyin keyboard can sync with the mother-ship for my customized Chinese dictionary.</p>
<p>Android stock keyboard can only enter English, while both Google Pinyin and Swype keyboards can enter both Chinese and English.</p>
<p>A lot of times, I need to switching among the three keyboards. Only Android stock keyboard has a dedicated key for switching to other input methods. When with the other two keyboards, you can either go back to the home screen, go to settings to change the input methods, or you can use the following shortcut:</p>
<p>Tap and hold the text input area for a couple of seconds. Then, a context menu will pop up, and you will see the option to switch keyboards, among other editing commands.</p>
<p>I never used previous versions of the Android stock keyboard, but I learned that the Gingerbread (version 2.3) is much better than previous versions.</p>
<p>Swype is faster, and very tolerant, very good for using on a shaking bus.</p>
<p>Google Pinyin is the gold standard for entering Chinese characters.</p>
]]></content:encoded>
			<wfw:commentRss>http://tongtao.com/blog/?feed=rss2&#038;p=393</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sync Google Contacts with iPhone and iPod</title>
		<link>http://tongtao.com/blog/?p=391</link>
		<comments>http://tongtao.com/blog/?p=391#comments</comments>
		<pubDate>Tue, 06 Sep 2011 22:40:02 +0000</pubDate>
		<dc:creator>tao</dc:creator>
				<category><![CDATA[Digital Life]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://tongtao.com/blog/?p=391</guid>
		<description><![CDATA[Android phones can sync contacts with Google Contacts in Gmail seamlessly. So the phone address book is always in sync with the Google Contacts. Although my iPod can sync email, calendar with Google and Yahoo Mail, it cannot keep the &#8230; <a href="http://tongtao.com/blog/?p=391">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Android phones can sync contacts with Google Contacts in Gmail seamlessly. So the phone address book is always in sync with the Google Contacts. Although my iPod can sync email,  calendar with Google and Yahoo Mail, it cannot keep the contacts in sync, or at least you cannot find such an option exists.</p>
<p>However, if you dig deeper, you will find there is a way to keep the iPhone and iPod contacts in sync with Google Contacts in Gmail. Here is what I did:</p>
<ol>
<li>Make sure Google Contacts has all the contact information you need.</li>
<li>Delete all the contacts on my iPod. This may not be very obvious. You need to connect the iPod to iTunes, click the iPod then select the &#8220;info&#8221; tab. Remove the contact sync options, then iTunes will prompt you to remove all the contacts on the device. Do so. </li>
<li>On iPod or iPhone, go to Settings, tap &#8220;Mail, Contacts, Calendars&#8221;</li>
<li>Add Accounts, choose Microsoft Exchange, fill out email, username, password, but leave the domain blank, go next.</li>
<li>Fill &#8220;m.google.com&#8221; as the server, next, accept.</li>
<li>In the next screen, choose &#8220;Contacts&#8221; on, &#8220;Mail&#8221; and &#8220;Calendars&#8221; off.</li>
<li>Click Sync. Then wait a while, all you Google Contacts will be pushed to your iPhone or iPod. </li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://tongtao.com/blog/?feed=rss2&#038;p=391</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google eBook Store</title>
		<link>http://tongtao.com/blog/?p=388</link>
		<comments>http://tongtao.com/blog/?p=388#comments</comments>
		<pubDate>Wed, 16 Mar 2011 12:44:49 +0000</pubDate>
		<dc:creator>tao</dc:creator>
		
		<guid isPermaLink="false">http://tongtao.com/blog/?p=388</guid>
		<description><![CDATA[I did not buy books from Google eBook store before. Recently, I tried some O\&#8217;Reilly titles through it, and I am very satisfied with the experience. First, some background: I have multiple eBook reading devices: Palm PDAs, Nokia 770 Internet &#8230; <a href="http://tongtao.com/blog/?p=388">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I did not buy books from Google eBook store before. Recently, I tried some O\&#8217;Reilly titles through it, and I am very satisfied with the experience.</p>
<p>First, some background: I have multiple eBook reading devices: Palm PDAs, Nokia 770 Internet Tablet, Windows Mobile PDA, iPod Touch 4, and two dedicated eInk devices: Sony PRS-505 eReader  and Amazon Kindle 3 WiFi.</p>
<p>For all those devices, I mainly use the following eBook formats:</p>
<ul>
<li>eReader PDB format, can be used on Windows Mobile, Palm PDA, iPod Touch/iPhone, Windows and Mac desktops. It cannot be used on Nokia 770. </li>
<li>mobi format, can be used on Windows Mobile, Palm PDA, iPod Touch/iPhone (through Kindle iPhone App), Kindle, Nokia 770, and Windows PC. It cannot be used on Sony PRS-505 and Mac desktops. </li>
<li>ePUB format, can be used on Nokia 770, iPod Touch/iPhone, Sony eReader, Windows and Mac desktops. It cannot be used on my Palm, Windows Mobile, and Kindle reader. </li>
</ul>
<p>I use multiple eBook vendors, such as:</p>
<ul>
<li><a href=http://www.ereader.com/ target=_>eReader</a>, purchased by Fictionwise, but still has its own site</li>
<li><a href=http://www.fictionwise.com/ target=_>Fictionwise</a>, purchased by Barnes and Noble, still keeps the store front</li>
<li><a href=http://www.mobipocket.com/en/HomePage/default.asp?Language=EN target=_>MobiPocket</a>, bought by Amazon, Kindle format actually is a version of mobi format, but this store is dying, maybe by design</li>
<li><a href=http://ebookstore.sony.com/ target=_>Sony eBookstore</a></li>
<li><a href=http://www.amazon.com/kindle-store-ebooks-newspapers-blogs/b?ie=UTF8&#038;node=133141011 target=_>Kindle Store</a></li>
</ul>
<p>Previously, I was more satisfied with Fictionwise/eReader, due to the fact that I prefer my Palm devices. But unfortunately, it has a rather limited library. I like my Kindle device, but I don\&#8217;t like the closed format used by Amazon, although it has the largest title collections.</p>
<p>Now, I prefer the ePUB format, used by many vendors, including Barnes &#038; Noble Nook, Borders Kobo reader, Sony reader, and the wonderful Stanza app for iPhone/iPod Touch. The DRM is done through Adobe Digital Edition, which is not too bad.</p>
<p>Kindle store has the most comprehensive collections, and their eBooks used have a lower price tag than other ePUB vendors, Sony, Barnes and Noble Nook, Borders Kobo etc.</p>
<p>The situation changed after Google entered the scene. Google eBooks can be viewed online, inside your browser, and offline through various devices, since it uses ePUB and Adobe Digital edition. It supports most of the eBook reading devices, except Amazon Kindle, of course. Since I have more ePUB devices than Kindle, I naturally prefer the ePUB format.</p>
<p><a href=http://books.google.com/ebooks target=_><b>Google eBook Store</b></a></p>
<p>The most important fact about Google eBook store is, other than the ePUB format, it also matches the price of Kindle store, and greatly expanded the range of titles of all the ePUB bookstores. Now I can confidently buy ePUB books from Google store, knowing that the Amazon Kindle eBooks no longer have much of a price advantage.</p>
<p>Before Google enter the eBook business, I can only buy the eBooks of David Pogue, my favorite technology writer, from Amazon Kindle Store, but now, his books are available in ePUB through Google store. I can read his books on most of my devices. Kindle is just too closed and limited.</p>
<p>Purchasing Google eBooks is easy, but you need to hook your device through USB to load the files, no wireless options. But that\&#8217;s perfect fine with me, I rarely use the Kindle whispernet to buy books anyway. </p>
]]></content:encoded>
			<wfw:commentRss>http://tongtao.com/blog/?feed=rss2&#038;p=388</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finder Slide Show</title>
		<link>http://tongtao.com/blog/?p=387</link>
		<comments>http://tongtao.com/blog/?p=387#comments</comments>
		<pubDate>Sun, 13 Mar 2011 15:30:56 +0000</pubDate>
		<dc:creator>tao</dc:creator>
		
		<guid isPermaLink="false">http://tongtao.com/blog/?p=387</guid>
		<description><![CDATA[With Mac OS X, there is a nifty feature called Finder Slide Show. In Finder, select multiple icons, then hit the spacebar, you will have a nice slide show! Hit Command-Enter, you will have a Expose like index, neat indeed! &#8230; <a href="http://tongtao.com/blog/?p=387">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>With Mac OS X, there is a nifty feature called Finder Slide Show. In Finder, select multiple icons, then hit the spacebar, you will have a nice slide show!</p>
<p>Hit Command-Enter, you will have a Expose like index, neat indeed!</p>
<p>In OS X 10.4, you can only view pictures, but since Leopard OS X 10.5, you can view PDF, Word, etc. Really nice. </p>
]]></content:encoded>
			<wfw:commentRss>http://tongtao.com/blog/?feed=rss2&#038;p=387</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The trailing slash (/) in cp</title>
		<link>http://tongtao.com/blog/?p=386</link>
		<comments>http://tongtao.com/blog/?p=386#comments</comments>
		<pubDate>Sun, 06 Mar 2011 17:36:41 +0000</pubDate>
		<dc:creator>tao</dc:creator>
		
		<guid isPermaLink="false">http://tongtao.com/blog/?p=386</guid>
		<description><![CDATA[Just realized that cp -R folder1 dest is very different from cp -R folder1/ dest The first command copies everything inside folder1 to dest, but not folder1 itself. The second command copies folder1 itself (and everything inside it) to dest. &#8230; <a href="http://tongtao.com/blog/?p=386">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Just realized that</p>
<p><code>cp -R folder1 dest</code></p>
<p>is very different from</p>
<p><code>cp -R folder1/ dest</code></p>
<p>The first command copies everything inside folder1 to dest, but not folder1 itself.</p>
<p>The second command copies folder1 itself (and everything inside it) to dest.</p>
<p>In this case, using dest and dest/ will have the same result.</p>
<p>Pay attention to the source, the trailing slash character is very important.</p>
]]></content:encoded>
			<wfw:commentRss>http://tongtao.com/blog/?feed=rss2&#038;p=386</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Archiving files and folders on multiple platforms</title>
		<link>http://tongtao.com/blog/?p=385</link>
		<comments>http://tongtao.com/blog/?p=385#comments</comments>
		<pubDate>Sun, 06 Mar 2011 16:41:07 +0000</pubDate>
		<dc:creator>tao</dc:creator>
		
		<guid isPermaLink="false">http://tongtao.com/blog/?p=385</guid>
		<description><![CDATA[I was organizing my external hard drives, DVD, CD-R archives this weekend. I need to copy a large number of small files in large folders. For example, although an application appears a single icon in Mac OS X Finder, it &#8230; <a href="http://tongtao.com/blog/?p=385">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I was organizing my external hard drives, DVD, CD-R archives this weekend. I need to copy a large number of small files in large folders. For example, although an application appears a single icon in Mac OS X Finder, it is actually a folder, containing a large number of small files. Copying such an icon from DVD to hard drive may take very long time. If you have a large number of such icons, copying them with Finder will take a really long time.</p>
<p>With command line command, such as</p>
<p><code>cp -Rpv <i>source destination</i></code></p>
<p>it will take less time. But that is still a large number of files to copy.</p>
<p>The best way to copy such folders is to archive them. Tested several different formats on different platforms, here is my favorites:</p>
<p><b>Mac OS X:</b></p>
<p>Use Disk Utilities (Finder -> Cmd-Shift-U) to make dmg archives. A single dmg (disk image) archive file can contain a large number of small files, with compression, and preserving Mac OS X metadata, such as spotlight comments, color labels, resource forks, etc). It is superb.</p>
<p>If the number of items is small, you can also use the Finder File -> Compress items (Or highlight, then right click) command. It will archive multiple files and folders into a zip file. It also preserves Mac OS X file metadata. Spotlight comment is such a useful feature in Mac OS X, I use it extensively with Spotlight search.</p>
<p><b>Windows: </b></p>
<p>After an elongated trial and error process, I settled for WinRAR. A superb utility, especially for its foreign language character sets support. You can use Chinese, Japanese, and Korean file names safely with WinRAR.</p>
<p>Although there is a command line RAR version for Mac OS X, it does not support resource forks and OS X metadata. I had a really bad experience with Mac RAR command line utility. It corrupted some of my old Mac Classic files). On Mac OS, always stick to dmg, and the built-in zip in Finder.</p>
<p><b>Linux / UNIX: </b></p>
<p>Of course, tarball. Always use tarball with gzip or bzip2 compression.</p>
<p>to explode (retrieve, decompress) from a  tarball,</p>
<p><code>tar -xzvf <i>tarballfile</i></code> (gzip compression)<br />
<code>tar -xjvf <i>tarballfile</i></code> (bzip2 compression)</p>
<p>to archive into a tarball,</p>
<p><code>tar -czvf <i>tarballfile directory-to-archive</i></code><br />
replace z with j for bzip2 compression. </p>
]]></content:encoded>
			<wfw:commentRss>http://tongtao.com/blog/?feed=rss2&#038;p=385</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Copy large folder in Mac OS X</title>
		<link>http://tongtao.com/blog/?p=384</link>
		<comments>http://tongtao.com/blog/?p=384#comments</comments>
		<pubDate>Sun, 06 Mar 2011 14:50:08 +0000</pubDate>
		<dc:creator>tao</dc:creator>
		
		<guid isPermaLink="false">http://tongtao.com/blog/?p=384</guid>
		<description><![CDATA[Similar to the Windows case, in Mac OS X, it is better to copy large folders using command line than the Finder GUI command. For some reason, coping large folders (>50 GB, 10k+ files) is prone to failure with Finder &#8230; <a href="http://tongtao.com/blog/?p=384">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Similar to the Windows case, in Mac OS X, it is better to copy large folders using command line than the Finder GUI command. For some reason, coping large folders (>50 GB, 10k+ files) is prone to failure with Finder GUI drag and drop command.</p>
<p>Open a Terminal window (In Utilities folder, Cmd-Shift-U), type the following command:</p>
<p><code><b>cp -Rp <i>source destination</i></b></code></p>
<p>-p option to preserve the original properties, such as modification time, access time, file flags, file mode, user ID, and group ID, as allowed by permissions.  Access Control Lists (ACLs) and Extended Attributes (EAs), including resource forks, will also be preserved.</p>
<p>That should take care of it. Throw in an -v option to be verbose. </p>
]]></content:encoded>
			<wfw:commentRss>http://tongtao.com/blog/?feed=rss2&#038;p=384</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xcopy vs Windows Explorer Copy</title>
		<link>http://tongtao.com/blog/?p=383</link>
		<comments>http://tongtao.com/blog/?p=383#comments</comments>
		<pubDate>Sun, 06 Mar 2011 11:47:17 +0000</pubDate>
		<dc:creator>tao</dc:creator>
		
		<guid isPermaLink="false">http://tongtao.com/blog/?p=383</guid>
		<description><![CDATA[In general, I copy files in Windows Explorer, using the copy and paste method: highlight the source icons, Ctrl-C, the click the destination, Ctrl-V. I have been using this method to copy files and folders in Windows and Mac for &#8230; <a href="http://tongtao.com/blog/?p=383">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In general, I copy files in Windows Explorer, using the copy and paste method: highlight the source icons, Ctrl-C, the click the destination, Ctrl-V. I have been using this method to copy files and folders in Windows and Mac for years. Until recently.</p>
<p>Last week, I tried to copy a backup folder from one external drive to another. It should be a straightforward operation: highlight the source, Ctrl-C, click the destination, Ctrl-V. But every time I tried, I got an cryptic error message: operation failed.</p>
<p>The folder I tried to copy is huge: 150 GB, a huge chunk. Also, some of the file path is really long, due to the long file names and folder names. I use NFTS on my Windows hard drives, so in theory, I have 255 characters to name my files and folders. So in the end, the folder contains some really long path names.</p>
<p>I tried many times with Windows Explorer, all failed. In the end, the command line xcopy saved the day:<br />
<code><br />
<b>xcopy <i>source destination</i> /i /s /h /y /v /q </b><br />
</code><br />
/i assume the destination a folder<br />
/s sub-folders except empty one (should have used /e)<br />
/h copy hidden and system files (important for system backups)<br />
/y yes to everything<br />
/v verify the destination copy<br />
/q quite operation (don\&#8217;t mess up my display)</p>
<p>xcopy will fail if the path and file name exceeds 254 characters.</p>
<p>Another command line copy utility, Rococopy, will be better, but not available on XP by default. However, there is a link on Microsoft website, you can download it for free:</p>
<p><a href=http://www.microsoft.com/downloads/en/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&#038;displaylang=en target=_>Robocopy Download Link</a></p>
<p>Since xcopy worked fine for me, I did not try robocopy. But it is good to know there is a more powerful tool available in the toolbox. </p>
]]></content:encoded>
			<wfw:commentRss>http://tongtao.com/blog/?feed=rss2&#038;p=383</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Doc versions</title>
		<link>http://tongtao.com/blog/?p=382</link>
		<comments>http://tongtao.com/blog/?p=382#comments</comments>
		<pubDate>Sun, 20 Feb 2011 13:37:44 +0000</pubDate>
		<dc:creator>tao</dc:creator>
		
		<guid isPermaLink="false">http://tongtao.com/blog/?p=382</guid>
		<description><![CDATA[Google Document, old version editor <a href="http://tongtao.com/blog/?p=382">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I am certainly not a Luddite, but not early adopter either. Google Doc\&#8217;s new features constantly roll out, but unless totally necessary, I usually wait, until it becomes unavoidable. I am holding out for my old Google Doc editor right now, for as long as I could, or until I am done with my old computers.</p>
<p>This morning, I tried to create a new Google document, but shocked to find out that the new document is the new type, with the ruler on top. I am not against change, but this new document editor is really slow on my hoary Apple PowerBook G4. In comparison, the old Google Doc document is not flash fast, but at least bearable.</p>
<p>I searched high and low, and cannot make Google Doc to create a old-version document for me. Now I must resort to the following trick to create a new old-version Google document:</p>
<p>Open an existing document, go to File -> Make a copy</p>
<p>Rename the copy to the desired document name, then save. So basically, I use my current old version document as seeds to create new old-version document.</p>
<p>I hope this trick will continue to work, until I upgrade my computers to be able to handle the new versions. But, my gadgets usually last very long in my hands, <img src='http://tongtao.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://tongtao.com/blog/?feed=rss2&#038;p=382</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Alt key on my Tiger</title>
		<link>http://tongtao.com/blog/?p=381</link>
		<comments>http://tongtao.com/blog/?p=381#comments</comments>
		<pubDate>Sun, 20 Feb 2011 13:06:30 +0000</pubDate>
		<dc:creator>tao</dc:creator>
		
		<guid isPermaLink="false">http://tongtao.com/blog/?p=381</guid>
		<description><![CDATA[Make Alt key working under Mac OS X Tiger X11 1.1.3 X server <a href="http://tongtao.com/blog/?p=381">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Now, suddenly, I am back to the Linux/Unix world, after a hiatus of several years. Now it is time to dust off my Unix and Linux books.</p>
<p>I am still using my old PowerBook G4 running Mac OS X 10.4.11, aka Tiger. Patched up my X11 application to X11 1.1.3 (still an ancient version, but for my old Tiger, that\&#8217;s the latest).</p>
<p><a href=http://support.apple.com/downloads/X11_Update_2006_1_1_3 target=_>Download link for the X11 2006 Update</a></p>
<p>However, after testing connecting to X clients on other Linux machines, I found sometimes the Alt key does not work on my Tiger X11 server.</p>
<p>A couple of hours fanatic searching and testing ensued, and finally I got the solution:</p>
<p>First, in my xterm window, run the following command:</p>
<p><code>xmodmap -pke > ~/.Xmodmap</code></p>
<p>Then, edit the lines of keycode 66 and keycode 69, like the following:</p>
<p><code><br />
keycode 66 = Alt_L<br />
keycode 69 = Alt_R<br />
</code></p>
<p>Save the changes, then, go to X11 Preferences (Command-,), de-select \&#8221;Use system keyboard layout\&#8221;.</p>
<p>Restart X11, now the Alt key (Option Key) should function normally in Linux X11 applications.</p>
<p>Alternatively, one can also run the following command in command line or start up script:</p>
<p><code>xmodmap -e \"keysym Alt_L = Meta_L Alt_L\"</code></p>
]]></content:encoded>
			<wfw:commentRss>http://tongtao.com/blog/?feed=rss2&#038;p=381</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPod Touch: Terminating an app manually</title>
		<link>http://tongtao.com/blog/?p=380</link>
		<comments>http://tongtao.com/blog/?p=380#comments</comments>
		<pubDate>Tue, 14 Dec 2010 18:26:41 +0000</pubDate>
		<dc:creator>tao</dc:creator>
		
		<guid isPermaLink="false">http://tongtao.com/blog/?p=380</guid>
		<description><![CDATA[I had a problem on my new iPod Touch: one of the apps went haywire, displaying a blank screen every time I enter it. Of course, one way to solve it is to re-boot the iPod Touch totally: hold the &#8230; <a href="http://tongtao.com/blog/?p=380">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I had a problem on my new iPod Touch: one of the apps went haywire, displaying a blank screen every time I enter it.</p>
<p>Of course, one way to solve it is to re-boot the iPod Touch totally: hold the power button until the reboot slider appears. But that\&#8217;s slow, and seems overkill for a single misbehaved app.</p>
<p>To manually terminate an app, you first double-click the home button, to display the four most recent apps. Then, hold one of them, until they shake, and tap on the red delete button on the upper left side:</p>
<p><img src=http://db.tidbits.com/resources/2010-06/Terminate-app.jpg></p>
]]></content:encoded>
			<wfw:commentRss>http://tongtao.com/blog/?feed=rss2&#038;p=380</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reverse page order in Adobe Acrobat</title>
		<link>http://tongtao.com/blog/?p=379</link>
		<comments>http://tongtao.com/blog/?p=379#comments</comments>
		<pubDate>Mon, 13 Dec 2010 13:09:08 +0000</pubDate>
		<dc:creator>tao</dc:creator>
		
		<guid isPermaLink="false">http://tongtao.com/blog/?p=379</guid>
		<description><![CDATA[Sometimes I want to reverse the page order of a PDF document. For example, I make a mistake while scanning the pages, put the pages in a wrong order, and I need to reverse the order back, the last page &#8230; <a href="http://tongtao.com/blog/?p=379">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Sometimes I want to reverse the page order of a PDF document. For example, I make a mistake while scanning the pages, put the pages in a wrong order, and I need to reverse the order back, the last page first.</p>
<p>At first, I thought it a common situation, Adobe Acrobat must have a command for that. But unfortunately, it does not. For a document with a couple of pages, I can manually re-order them. However, if I have a PDF document with 639 pages, how I am going to manually re-order it?</p>
<p>After some searching and testing, I find a solution:</p>
<p>In Acrobat, go to Advanced -> JavaScript -> Set Document Actions</p>
<p>Then, I choose \&#8221;Document Will Save\&#8221; option, and then, enter the following JavaScript:</p>
<p><tt>for (i = this.numPages - 1; i >= 0; i--) this.movePage(i); </tt></p>
<p>Then, save the document. The page order will be reversed. Then, Go to the same location, remove the JavaScript code, otherwise, the next time you save the PDF file, the page order will be reversed again.</p>
]]></content:encoded>
			<wfw:commentRss>http://tongtao.com/blog/?feed=rss2&#038;p=379</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Notes on iPod Touch</title>
		<link>http://tongtao.com/blog/?p=378</link>
		<comments>http://tongtao.com/blog/?p=378#comments</comments>
		<pubDate>Fri, 10 Dec 2010 11:53:14 +0000</pubDate>
		<dc:creator>tao</dc:creator>
		
		<guid isPermaLink="false">http://tongtao.com/blog/?p=378</guid>
		<description><![CDATA[Just got my new iPod Touch a couple of days ago. New toy, and busy playing with it ever since. Basically, it is intuitive and straightforward to use, but one piece of app was puzzling me: The Notes app. At &#8230; <a href="http://tongtao.com/blog/?p=378">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Just got my new iPod Touch a couple of days ago. New toy, and busy playing with it ever since.</p>
<p>Basically, it is intuitive and straightforward to use, but one piece of app was puzzling me: The Notes app.</p>
<p>At first, I thought it would be quite straightforward: in iTunes, set Outlook as the desktop software to sync with Notes app. However, to my befuddlement, only the notes generated in Outlook goes into my iPod, but not the other way around.</p>
<p>After a couple of hours testing, I figured it out: Notes can sync with multiple accounts: Local iPod, Gmail, and Yahoo. So, basically, there are three kinds of notes: Gmail notes, Yahoo notes, and iPod local notes.</p>
<p>In the Notes app, you can specify which account the new notes will be synced to: Gmail, Yahoo, or iPod. Only the iPod notes will be synced with Outlook on the desktop, both Gmail and Yahoo notes will show up in the email accounts.</p>
<p>With Gmail, a new label \&#8221;Notes\&#8221; will be generated, and Yahoo Mail, a new folder called \&#8221;Notes\&#8221; is made to hold the notes written on iPod. However, in both cases, the notes sync is one-way only: from iPod to email accounts. Only the local iPod notes will sync two-way with Outlook.</p>
<p><b>Warning</b>: if you write notes under Gmail or Yahoo accounts, but in Mail settings, you turn off the Notes sync options, the notes for the email accounts will be <b>DELETED WITHOUT WARNING</b>. If they are written offline, and haven\&#8217;t got the chance to be sent to your online email accounts, you lost them for ever. </p>
]]></content:encoded>
			<wfw:commentRss>http://tongtao.com/blog/?feed=rss2&#038;p=378</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Concatenate text files in Windows</title>
		<link>http://tongtao.com/blog/?p=377</link>
		<comments>http://tongtao.com/blog/?p=377#comments</comments>
		<pubDate>Mon, 12 Jul 2010 16:43:51 +0000</pubDate>
		<dc:creator>tao</dc:creator>
		
		<guid isPermaLink="false">http://tongtao.com/blog/?p=377</guid>
		<description><![CDATA[Having a whole bunch of text files in a folder, want to combine them into a single big text file. First, make sure sure the file names are in order, say, 01.txt, 02.txt, 03.txt, etc. Then, go to CMD window, &#8230; <a href="http://tongtao.com/blog/?p=377">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Having a whole bunch of text files in a folder, want to combine them into a single big text file. </p>
<p>First, make sure sure the file names are in order, say, 01.txt, 02.txt, 03.txt, etc. </p>
<p>Then, go to CMD window, type the following command: </p>
<p><code>for %f in (*.txt) do type “%f” >> myBigTextFile.txt</code></p>
<p>The myBigTextFile.txt will contain all the text file in the directory. </p>
]]></content:encoded>
			<wfw:commentRss>http://tongtao.com/blog/?feed=rss2&#038;p=377</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Type Chinese characters into terminal Window</title>
		<link>http://tongtao.com/blog/?p=376</link>
		<comments>http://tongtao.com/blog/?p=376#comments</comments>
		<pubDate>Thu, 24 Jun 2010 21:16:36 +0000</pubDate>
		<dc:creator>tao</dc:creator>
		
		<guid isPermaLink="false">http://tongtao.com/blog/?p=376</guid>
		<description><![CDATA[I am using a telnet program call S-Term from time to time. However, I found I cannot type Chinese characters into it with Google Chinese IME. I am using Windows XP SP3, of course. S-Term download page I discovered that &#8230; <a href="http://tongtao.com/blog/?p=376">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I am using a telnet program call S-Term from time to time. However, I found I cannot type Chinese characters into it with Google Chinese IME. I am using Windows XP SP3, of course. </p>
<p><a href=http://www.tucows.com/preview/316871 target=_>S-Term download page</a></p>
<p>I discovered that I can copy and paste the Chinese characters inside the s-term window, but not from IME or other Windows. I suspect that this program does not accept Unicode Chinese characters, but only GB2312 characters. </p>
<p>Through trial and error, I discovered the solution:</p>
<ol>
<li>Go to <i>Region and Language Options</i> control panel</li>
<li>Go to <i>Advanced</i> tab</li>
<li>Select <i>Chinese (PRC)</i> See picture below</li>
<li>Re-start the computer</li>
</ol>
<p><img src=http://q1aplg.blu.livefilestore.com/y1pWYScCEIMAMigxYyY01KIDXe4TnsLnyVHHAvtvUT4CjJFAZsU806Me8UL_zZKm0-4BVzenLfsr0QJDGDWnJVaCXIoMVfZlh2c/Advanced.png?psid=1></p>
<p>Now I can type Chinese and copy &#038; paste any Chinese characters from the system. </p>
<p>&#8211;<br />
<b>Putty</b></p>
<p>A friend pointed out, using putty can avoid this change: putty support Unicode perfectly well. You need to change the default font to a Chinese font, and change the Translation setting to UTF-8 or font encoding. </p>
<p><a href=http://www.chiark.greenend.org.uk/~sgtatham/putty/>putty home page</a></p>
]]></content:encoded>
			<wfw:commentRss>http://tongtao.com/blog/?feed=rss2&#038;p=376</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox: Change the default search vendor</title>
		<link>http://tongtao.com/blog/?p=375</link>
		<comments>http://tongtao.com/blog/?p=375#comments</comments>
		<pubDate>Sat, 19 Jun 2010 13:32:36 +0000</pubDate>
		<dc:creator>tao</dc:creator>
		
		<guid isPermaLink="false">http://tongtao.com/blog/?p=375</guid>
		<description><![CDATA[Firefox: Change the default search vendor For some reason, the default search of Firefox for Windows is Yahoo, but the Firefox for Macintosh is Google. To change the default search site, Alt-D to Location Bar Type about:config Search for browser.search.defaultenginename &#8230; <a href="http://tongtao.com/blog/?p=375">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Firefox: Change the default search vendor</p>
<p>For some reason, the default search of Firefox for Windows is Yahoo, but the Firefox for Macintosh is Google.</p>
<p>To change the default search site,</p>
<ol>
<li>Alt-D to Location Bar</li>
<li>Type about:config</li>
<li>Search for <i>browser.search.defaultenginename</i></li>
<li>Double Click it</li>
<li>Type in Google in the resultant dialog box</li>
<li>Restart Firefox</li>
</ol>
<p>After this, whenever you type Ctrl-K, Google will come up, instead of Yahoo. On my laptop, since the screen real estate is a premium, I usually turn off the Navigation bar, hence the need of Ctrl-K. Otherwise, Ctrl-E can bring the keyboard focus to the search box on the Navigation bar. </p>
]]></content:encoded>
			<wfw:commentRss>http://tongtao.com/blog/?feed=rss2&#038;p=375</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sony eBook Library Program annoyance</title>
		<link>http://tongtao.com/blog/?p=374</link>
		<comments>http://tongtao.com/blog/?p=374#comments</comments>
		<pubDate>Thu, 17 Jun 2010 14:35:36 +0000</pubDate>
		<dc:creator>tao</dc:creator>
		
		<guid isPermaLink="false">http://tongtao.com/blog/?p=374</guid>
		<description><![CDATA[This program, Sony eBook Library always jumps out whenever I plug in my Sony PRS-505 for a recharge. It annoys me no end. Discovered how to disable it in Windows XP: Win-R, type msconfig Click the Startup tab, Find eBook &#8230; <a href="http://tongtao.com/blog/?p=374">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This program, Sony eBook Library always jumps out whenever I plug in my Sony PRS-505 for a recharge. It annoys me no end.</p>
<p>Discovered how to disable it in Windows XP:</p>
<ol>
<li>Win-R, type msconfig</li>
<li>Click the Startup tab, </li>
<li>Find eBook Library Launcher, click it off</li>
</ol>
<p>Now the program will not jump out to bother me. What a relieve. </p>
]]></content:encoded>
			<wfw:commentRss>http://tongtao.com/blog/?feed=rss2&#038;p=374</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

