enrii.blog

A passionate programmer’s findings in the world of internet.

Archive for May, 2007

Zip a Folder in Linux

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.

Disable Authentication Request when Accessing Network Computers

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.

Adjusted My WordPress Theme for Advertisements

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!

Response from Yahoo! Publisher Network

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.

    WordPress 2.2 “Getz” Available for Download

    Wednesday, May 16th, 2007

    All WordPress users, make sure you download the latest WordPress. I did not update my WordPress for a while now, since last hiatus.

    Time to upgrade! Hopefully my All Blue theme and all my plugins will work properly in 2.2.

    Goodies:

  • WordPress Widgets allow you to easily rearrange and customize areas of your weblog (usually sidebars) with drag-and-drop simplicity. This functionality was originally available as a plugin Widgets are now included by default in the core code, significantly cleaned up, and enabled for the default themes.
  • Full Atom support, including updating our Atom feeds to use the 1.0 standard spec and including an implementation of the Atom Publishing API to complement our XML-RPC interface.
  • A new Blogger importer that is able to handle the latest version of Google’s Blogger product and seamlessly import posts and comments without any user interaction beyond entering your login.
  • Infinite comment stream, meaning that on your Edit Comments page when you delete or spam a comment using the AJAX links under each comment it will bring in another comment in the background so you always have 20 items on the page. (I know it sounds geeky, but try it!)
  • We now protect you from activating a plugin or editing a file that will break your blog.
  • Core plugin and filter speed optimizations should make everything feel a bit more snappy and lighter on your server.
  • We’ve added a hook for WYSIWYG support in a future version of Safari.