Friday, July 3, 2009

Archive and Compress Files Using zip

Zip and unzip are two free command line programs that comes with Linux. For Windows, they can be downloaded from the Info-ZIP Website. This article provides the basic of archiving and compressing files using the command line zip program.

Zip one file

zip filename.zip file_to_compress

Zip multiple files

zip filename.zip file_to_compress1 file_to_compress2 file_to_compress3

Compression options


The compression level ranges from 0 to 9. Level 0 means no compression, 1 compress faster, and 9 compress better. The default is 6.
zip -9 filename.zip file_to_compress

Password protect zip archive

zip -P the_password filename.zip file_to_compress

To be prompted for password instead of specifying the password in the command line, use -e instead of -P.
zip -e filename.zip file_to_compress
Enter password:
Verify password:

Unzip files

unzip filename.zip

Unzip files with informations (verbose mode)

unzip -v filename.zip

List files that will be unzipped

unzip -l filename.zip

Test Files That Will Be Unzipped

unzip -t filename.zip

Thursday, July 2, 2009

How to disable A-GPS in Nokia 5800

Nokia 5800 comes with an integrated GPS device. Besides, Nokia 5800 also support Assisted GPS (A-GPS), and it is turn on by default.

A-GPS could help the phone to connect to the satellite faster. However, A-GPS requires the internet connection. Therefore, if you are not subscribed to the unlimited data plan package, you may want to disable the A-GPS support.

My ignorance of this issue had cost me a few hundreds Ringgit.

To disable the A-GPS support in Nokia 5800, follow this steps:

  1. Press the white Menu button.

  2. Select Apps.

  3. Select Location.

  4. SelectPositioning.

  5. Select Positioning Methods.

  6. Select Assisted GPS, and select Disable.

Wednesday, July 1, 2009

How to list out Python reserved words

To list out the Python reserved words, just enter the following lines into the Python interpreter.
>>> import keyword
>>> print(keyword.kwlist)

['False', 'None', 'True', 'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']
Python Reserved Words

Monday, June 29, 2009

How to display an equal sign in Excel

The equal sign is a special sign used to indicates that we are typing a formula in a cell. It will never be shown in a cell. But, is it possible to display the equal sign in Microsoft Excel?

Actually you can display the equal sign. What you need to do is just add an apostrophe in front of the equal sign, like this:
'=

Once you press Enter, the apostrophe will disappear, leaving the equal sign.

Note: To display the apostrophe, just enter the apostrophe twice.

Sunday, June 28, 2009

How to give name to a thumb drive

Each time we plug in a thumb drive, the PC will assign a letter to it. But, what if we plug more than one thumb drive? How are we going to know which one is the one we that want just by looking at the drive letter.

Fortunately, Windows enable us to give the thumb drive a name.

To give the thumb drive a name, right click on the drive letter, and choose Properties.

In the Properties windows, we can change the name, as shown in Figure 1.

Figure 1: Properties Windows

Saturday, June 27, 2009

How to reopen the last closed tab in Firefox or IE8

The last closed tab in Firefox or Internet Explorer 8 can be reopened using a keyboard shortcut.

If Ctrl+T will open a new tab, to reopen the last closed tab, use Ctrl+Shift+T.

To reopen the second last closed tab, hit Ctrl+Shift+T twice, and so on.

Digsby offline installer

Digsby is an easy to use application for managing all your existing IM, email, and social network accounts.

Supported Chat/IM accounts:  AIM, MSN, Yahoo, ICQ, Google Talk, Jabber, and Facebook.

Supported emails: Hotmail, Gmail, Yahoo Mail, AOL/AIM Mail, IMAP, and POP.

Click here to download the latest Digsby offline installer.