Wednesday, June 6th, 2007
As far as I know, the built-in compressed zip folder function in Windows XP does not provide any command line tools. To zip a folder using batch script or command line, one can install command line tool provided by 7zip.
It can be done with installation of whole 7zip package or just use an executable file provided by 7zip. I prefer the latter option.
Download the "7-Zip Command Line Version" from 7zip download page and unzip it.
Use the following command to zip a folder:
7za a -tzip <archive-name> <folder-name>
e.g. 7za a -tzip test.zip "New Folder"
Although this seems to be quite useless to be run in command line, but it's extremely useful if you need to create batch script to automatically zip a folder. For my case, I need it to zip a folder and FTP it to a server. By this way, I can backup a folder to server without having to consider the recursive FTP upload problem.
Thursday, May 31st, 2007
I keep forgetting the command to zip a folder in Linux (Red Hat Enterprise Linux 4). And I have even got all files in the folder got zipped individually when I typed the command wrongly, which looked funny to me. The correct command, to remind myself:
zip -9 -r <zip file> <folder name>
To zip a single file:
zip -9 <zip file> <filename>
Use "-9" for best compression. The compressed file works fine with Windows XP compression tool.
Sunday, May 20th, 2007
For Windows XP Service Pack 2 (SP2) only. I was installing a new PC and setup network for my client this afternoon. It took me hours to figure out why I failed to access the shared folders on the new PC that I have just installed.
The problem was actually caused by some new changes to functionality in Microsoft Windows XP Service Pack 2. When I double click the new PC in my network places, it asks me to enter username and password.
The fix:
Add the following key to registry of the new PC, with DWORD value '1'.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\WebClient\Parameters\UseBasicAuth
(Note that you might be taking some security risks when you do this. But, if you are using your PCs in trustable LAN only, it should be fine.)
In addition to that, you may need to turn off your Guest account. I remember I read it somewhere before I found this.
Friday, May 18th, 2007
Just spent a little time to adjust my All Blue theme to accommodate a few advertisements. My original design failed to fit in all the standard ads units provided by Google AdSense. Widened posts section to fit in banners.
For good or for bad? If you have any concern regarding my ads placements, voice it here!
Friday, May 18th, 2007
Finally get a response from Yahoo! Publisher Network, after applying for it 10 days ago.
Dear EngLee,
Thank you for applying for the Yahoo! Publisher Network beta program. It is currently in beta and we are accepting a very limited number of new publishers, but we will let you know when we launch to the general public or if we are able to invite you to join the beta before then. To maximize your chances for approval, please make sure:
You have a valid U.S. Social Security or Tax ID number, and web site content that is predominately in English and targeted at a U.S. user base.
Your site provides a good user experience. Please see our complete list of guidelines for a positive user experience here:
https://publisher.yahoo.com/legal/prog_policy.php.
Your site does not contain problematic content. Please see our guidelines for displaying our ad results here:
https://publisher.yahoo.com/legal/prog_policy.php.
Thanks again for your interest. We look forward to welcoming you into our program when it is open to the public.
Sincerely,
The Yahoo! Publisher Network Team
Again, they mention about valid U.S. Social Security number. Looks like I'm just wasting my time.