Category Archives: Web

Switching from POP to IMAP in Gmail/Thunderbird

To access your Gmail in your smart phone or tablet using the native mail app or Gmail app, and to have it synced across your different devices, IMAP is the best option.

Now, with IMAP I have all the mails in my Inbox, SentMail or Drafts synced in my Linux, Windows, Ipad and phone and also in the Gmail web interface ( perfectly.

I have been using Thunderbird with POP for years and decided to switch to IMAP finally.

I did not delete my POP accounts in the existing Thunderbird as I thought it has all my previous mails intact in case anything goes wrong.

The steps are listed here,

1. Enabled IMAP for Gmail.
Gmail > GearIcon > Settings > Forwarding and POP/IMAP > Enable IMAP and Save Changes.
by default this will be enabled usually.

All the gmail labels that you created or not (including Inbox, SentMail, Drafts etc) will be shown as folders in your Thunderbird. However, Gmail gives you the option to choose the one’s you want.

2. Selected the labels that I want to be displayed in Thunderbird.
Gmail > GearIcon > Settings > Labels and uncheck the “Show in IMAP” option of the labels that you dont want to show (you can change it anytime so dont worry).

I unchecked, Important, Chats, AllMail, and Spam. I keep all my important mails in Inbox itself so, AllMail is not needed.

Configuring Thunderbird,
I was not possible to convert the existing POP account. The method is to disable/delete the POP account and add a new IMAP account.

3. Disabled the existing account.
In Thunderbird,
Edit > Account settings > Your gmail account > Server settings
Unchecked the below
-Check for new messages at startup
-Check for new messages at ever…
-Automatically download new messages

4. Added the new IMAP account
Account Actions > Add Mail Account > Fill name, email and password > Continue > Create Account.

5. Tweaked the Thunderbird settings.
Account Settings > The newly created IMAP account > Server Settings
Check for new messages at startup – Checked
Check for new messages every 10 minutes – Checked

When I delete a message – Just mark it as deleted
Clean up (“Expunge”) Inbox on Exit – Unchecked
Empty Trash on Exit – Unchecked
(Deleted messages are automatically moved to Trash by Gmail and removed periodically)

Account Settings > The newly created account IMAP account > Copies & Folders
When sending messages, automatically:
Place a copy in – Unchecked
(Sent messages are automatically placed in SentMail folder by Gmail)

Drafts and Templates
Keep message drafts in: Other and selected the [Gmail] > Drafts
(This will make the draft appear in the Drafts folder of Gmail and so synced to every other devices)

Account Settings > The newly created IMAP account > Junk Settings
Enable adaptive junk mail controls – Unchecked
(Gmail already has junk mail filtering)

Account Settings > The newly created IMAP account > Synchronization & Storage
Keep messages for this account… – Checked
(This is required if you want offline access to your mails, Otherwise the mail is not fully downloaded until you click on the mail title)

In Advanced you can uncheck the folders where you dont want the full mail to be downloaded. A good candidate here is the Spam folder.

6. Clicked OK to save and close the account settings.

Thunderbird downloaded all the mails and it took almost an hour. I had about 1.5 GB email data.

Done!! :-)

WordPress error “Is its parent directory writable by the server?”

I was not able to upload images to my wordpress post after i transferred my entire wordpress to a new host. The error returned was
“Unable to create directory /blog/wp-content/uploads/2010/xx. Is its parent directory writable by the server?”

Tried changing the permission of the wp-content folder and its subdirectories to 775 and then to 777.

[jaguars]$ chmod -R 775 wp-content/
[jaguars]$ chmod -R 777 wp-content/

But both didnt work.. :(

The wordpress upload folder was set to /blog/wp-content/uploads in the Settings > Miscellaneous
Changed this to blog/wp-content/uploads (removed the ‘/’ before blog)
Now uploading works, but still there was a problem. The files are uploaded and saved to new folder /blog/blog/wp-content/uploads [two ‘blog‘ in the path.]

Finally, changed the upload folder to wp-content/uploads in the Settings > Miscellaneous
Everything works perfect now.

I changed back the permission setting to 755

[jaguars]$ chmod -R 755 wp-content/ 

I guess the misconfiguration happend because, in my earlier installation, wordpress was installed into root. and in here to the /blog directory.

Using Pidgin to connect to a google hosted chat for your domain

Google apps for chat allows us to chat to other google users using our own domain like or

To do this, you have to register for google apps account using your domain name. Then login using using as your user id in gtalk. Simple!
However, pidgin throws an error message if you try to create a new google talk account with you@yourdomain as the user id. Instead use the following settings,
Protocol: Google talk or XMPP
Username: your username without
Click on ‘Advanced‘ tab and enter ‘‘ in the Connect Server box. This does the trick! moved to a new host

Finally this site is moved(hosting and registration) from Yahoo! to DreamHost.
A quick summary of the steps.

1. BackUps!
Yahoo doesn’t allow shell. So painstakingly downloaded the all the required contents to my local system using gFTP. This took about 1hr :(
Exported all the essential MySQL databases via phpMyAdmin

2. Unlocked the domain and copied the authorization code, which is required for the domain transfer.

3. Initiated a domain transfer form the DreamHost (DH) control panel.
You will be sent an email to the ID provided in your registration information to confirm the transfer. Confirmed it.

4.Set up web hosting for this domain at DH.
DH allows you to setup any number of websites to host under a single account.

5. Uploaded all the content to DH
Initially tried command,

[tony@localhost ~]$ scp -r 33dots/dump/

but got bored seeing individual files being transferred slowly.


[tony@localhost ~]$ tar -czpf 33dots.tar.gz 33dots/dump/
[tony@localhost ~]$ scp 33dots.tar.gz

I had to use host as because i have still not pointed my DNS entries to DH.

sshed to DH. and,

[tony@localhost ~]$ ssh's password:
[jaguars]$ tar -xzpf 33dots.tar.gz
[jaguars]$ mv 33dots/dump/* ../

6. Setup databases at DH
Created a new hostname and user for mysql.
Created the databases
Imported the .sqls via phpMyAdmin

7. Setup a account to test things.
I want to test everything is fine before doing the DNS changes. DH allows you to access your hosted sites, by creating a temporary subdomain like This allows you to access and test your site, which is otherwise inaccessible, until you point your DNS to DH.

Yes, everything seems fine. Ofcourse! absolute links are not working..
Deactivated the subdomain.

8. Setup Gmail for mail
I’ll be using gmail for the mail once the transfer is complete.
Went to and setup the account. Yes, it wont be working until i change the MX records to point to google.

9. Changed my DNS entries at Yahoo(the registration transfer has not yet over, it will take 7-10 days) to point to DH.
Unsuccessful! an error is shown by yahoo. Perhaps,  since the transfer process is in progress, yahoo cant change the DNS now. Anyway no problems, i have the working version of the site still at yahoo and now also at DH. The email is also working, only thing is it is with yahoo.

10. Transfer process over!
I got mail from DH that the transfer is complete (5th day).

[tony@localhost ~]$ whois
Status: ok
[tony@localhost ~]$ nslookup
Non-authoritative answer:
[tony@localhost ~]$ host domain name pointer

Mail is working fine from Gmail. The website too seems ok.
Now that the transfer is complete and the website is working fine, i deleted all the files and databases at yahoo and canceled the account!

To read and type Malayalam

A computer represents an alphabet [technically called language script] using a number code. The coding scheme which is currently used (ASCII) however only represents the English alphabet and numerals and some special characters.

Unicode is a new encoding scheme which represents all alphabets in all languages in the world. In Unicode, Malayalam first letter ‘a’ (അ) is given the code number 3333. Similarly, different numbers are given for rest of Malayalam alphabets. The fonts that understand this new encoding scheme are called Unicode fonts.

To read and type Malayalam properly in your computer you have to use Unicode Malayalam fonts. [The same also applies to other languages; to read and type a particular language you need to have the Unicode font of that language.]

To work using  a Unicode font of a language, we also need,

  • The Operating System support for displaying that language script [in our case support for displaying malayalam]. This is technically called font rendering support. If the OS has no proper support, we may still be able to view the language but there will be errors. In Malayalam we usually have problems like ‘Chillu’ and ‘diacritics’ [കേ, കൊ] etc.
  • A system for inputting the language script to the computer. Operating Systems usually support keyboard layouts for different languages. Once enabled, we could use the normal keyboard for inputting. For example, typing button ‘K’ inputs malayalam script ‘ക’ (ka).
  • Applications supporting Unicode scheme. Like notepad, IE, Word, Firefox etc. Almost all of the programs of the latest Operating systems support Unicode.

Using unicode, you can read and create malayalam text and websites, blog and chat in malayalam, and even search google in malayalam, See here for an example of searching google in malayalam .

Now lets see how this can be accomplished in various Operating systems,

Windows 7

Windows 7 has by default support for reading and typing Malayalam.

You can view Malayalam webpages without doing anything special. Just check it out here.

If you like, you may install more Malayalam fonts like, AnjaliOldLipi, Raghu etc from here. Here is a picture of the fonts listed.

For typing,
1. Enable Malayalam typing by,
Control panel > ‘Change Keyboard or other Input methods’ (under section ‘Clock, Languages and Region’) > ‘Keyboard and Languages’ tab > Change keyboards… > General tab > click Add and choose Malayalam.
The layout for the Malayalam keyboard is the same Inscript layout shown here.
Now you can type Malayalam directly into any application.
Also check the ‘Language Bar’ tab. You can add a button on the taskbar for switching between Malayalam and English typing.

2. You can use Google transliteration IME to input Malayalam letters using the Mozhi scheme directly to any application. It has features like word completion.

3. You can use web based Google transliteration service , to type Malayalam in the transliteration scheme of Mozhi, and it will be converted to Malayalam automatically, Then you can copy paste it into your programs. Google transliteration service is also used in Orkut to input Malayalam.
The advantage of this method is that you can test typing, right after you setup viewing.

4. The options listed for Windows XP, like the Mozhi keyman, Varamozhi editor etc may work for windows 7 (I’ve not tested it).

Windows 95/98/Me/NT and 2000

These OS’s have no proper support for Malayalam script rendering. :(
Fortunately IE has good support and you can use it.

Install a Malayalam unicode font like AnjaliOldLipi. Download it from here.
Go to Control Panel > Fonts.  Choose File > Install font and browse to your font and click OK.

And use IE (ver 6 is good) to view malayalam pages, although the display may not be perfect.
On Internet Explorer 6: Go to Tools -> Internet Options. Click Fonts and Choose Malayalam and set AnjaliOldLipi as the font.

Check whether you can read malayalam at malayalam wikipedia.

To type Malayalam
They do not have direct support for inputting malayalam.

1. Try using the Inscript keyboard layout program from CDAC, Govt of India.
Download it from here. Unzip and doubleclick Setup.exe to install.
An icon should come at the taskbar which enables you to switch, keyboards. The key map is here.
[Please confirm if you have success in using this]

2. You could also try the methods specified for ‘typing Malayalam’ in Windows XP/2003, [except method 1].
Please see below.

Windows XP/2003

Windows XP SP2 and 2003 has default support for rendering Malayalam.

To enable it,
Go to Start > Control Panel.
If you are in “Category View” select the icon that says Date, Time, Language and Regional Options and then select Regional and Language Options.
If you are in “Classic View” select the icon that says Regional and Language Options.
Select the Languages tab and make sure the option saying Install files for complex script and right-to-left languages (including Thai) is checked. Click OK.
A confirmation message should now appear – press OK on this confirmation message to allow the OS to install necessary files from the Windows XP CD and then reboot if prompted.

Check whether you can read malayalam at malayalam wikipedia.

You should install AnjaliOldLipi font in any case. The default font provided by XP called ‘karthika‘ is not good and small.
Install AnjaliOldLipi malayalam unicode font.
Download from here.
Go to Control Panel > Fonts.  Choose File > Install font and browse to your font and click OK.

Enable firefox and IE to use this font.
For Firefox  Go to Tools > Options > Content.
You can see the Fonts & Colors section. Take Advanced.
Choose Malayalam from the Fonts for dropdown menu.
Now set AnjaliOldLipi in each of the dropdown list. Click Ok and Ok.

For IE, Go to Tools > Internet Options.
Click Fonts and Choose Malayalam form the Language Script dropdown menu
Set the font as AnjaliOldLipi in the below list box.

See IE, FF and notepad displaying malayalam in my windows XP, using the default font karthika. You can also see the keyboard layout switcher in the taskbar near system tray.
Malayalam pages displayed in Windows XP

To type Malayalam
1. Windows XP SP2 and 2003 has default support for typing malayalam. This is the Inscript keyboard layout from CDAC, Govt of India.
To enable it, Choose Regional and Language Options from Control Panel. On Languages tab click Details.
Click the Add button and Choose Malayalam(India). Click Apply.
Now Click Language bar… button and check Show Language bar… and Show additional language bar…
A menu will appear in the taskbar which allows you to select the malayalam keyboard. The key map is here.

Now you can type Malayalam directly into any application.

2. Use a keyboard mapper called Mozhi Keyman to type Malayalam directly into the computer in transliteration scheme[eg typing english keys ‘ithu’ will output malayalam ‘ഇതു’.]
Download Mozhi keyman here and install it. Once it is installed you will see its icon(letter K) in system-tray. Click on it and choose ‘Mozhi’ to enable it. The icon will now change to malayalam (ക)
Use this mozhi scheme to type.

3. You can use a software called Varamozhi, This software allows text inputting in same transliteration scheme of Mozhi, and once you are done export it to unicode file. Download and install Varamozhi here. Visit varamozhi site for details on how to use it

4. You can use web based Google transliteration service , to type Malayalam in the transliteration scheme of Mozhi, and it will be converted to malayalam automatically, Then you can copy paste it into your programs.  Google transliteration service is also used in Orkut to input malayalam.
The advantage of this method is that you can test typing, right after you setup viewing.

Some more key mappers and web based services are listed here

Windows Vista

Windows Vista has default support for reading and typing malayalam. Check the section for Windows 7, the steps are almost similar.


GNOME and KDE both has good support for malayalam script rendering.

You will only need to install malayalam unicode font.

To install AnjaliOldLipi,
Download from here. To install, open your File Manager, type fonts:/// in the addressbar and hit enter and paste fonts in that folder.

OR you could install the distribution specific fonts by commands,
Redhat, Cent OS, RHEL , Fedora etc – yum install fonts-malayalam
Debian, Ubuntu etc – apt-get install ttf-malayam-fonts

Restart X-server by logging out and logging in back.

Usually Firefox is capable of detecting the malayalam font to display. If not,
Go to Tools > Options > Content.
You can see the Fonts & Colors section. Take Advanced.
Choose Malayalam from the Fonts for dropdown menu.
Now set AnjaliOldLipi in each of the dropdown list. Click Ok and Ok.

See firefox displaying malayalam in my Cent OS 5.3. The only error i could see is for the rendering of ‘nte’ as in “എന്റെ”

Malayalam wikipedia in Firefox in CentoOS

To type malayalam
1. Both GNOME and KDE has support for malayalam keyboard layout. The is the Inscript keyboard layout from CDAC, Govt of India.

To enable it,
Go to System > Preferences > Keyboard. Select the Layouts tab.
Press Add, then select India > Malayalam from Available Layouts frame and then press Add. You could also see an image depicting the keymappings.

Now add a icon for changing keyboard layouts,
Right click on the main menu on your desktop and select Add to Panel….
Select Keyboard Indicator and click Add. Position the keyboard indicator on your menu bar and click it to switch between keyboard layouts.

For KDE,
In the Control Center, go to Regional & Accessibility, Keyboard Layout
In the tab Layout, click on Enable keyboard layouts
Choose the Malayalam in Available layouts and click on Apply
Now, you will have an icon for the KDE Keyboard Tool in your panel, in which you can choose the layout you want

2. You could also use the Google transliteration service. Check the section on ‘typing malayalam’ in Windows XP above for more details.


Mac OS X has no support for rendering Malayalam script at the time of writing. Mac OS X has support for only Devanagari, Gujarati and Gurmukhi scripts. So mac can properly display only the languages that use these scripts [like Hindi, Sanskrit, etc ]

We could still install the malayalam unicode fonts, and can get some readable display.
Download the font malayalam.ttf from here. [Mac needs its own specific truetype Unicode fonts to work with its font rendering engine AAT, So AnjaliOldLipi, Meera doesnot work here.]

We now have a new font called RachanMac.ttf. Download it from here. Credits to Manoj and Vinod for making this mac version of Rachana font. [Please uninstall any previous malayalam fonts that you have installed before installing this.]

Install the font by double clicking on it. Once the font is installed you will see ‘Rachana’ in the System Preferences > International > Language list

Usually in Mac we do not need to change anything in Firefox or Safari to see malayalam. Mac is intelligent enough to  automatically hunt through your installed fonts to find any font that includes the character symbol.

Check this page with  firefox and safari.

See this screenshot of firefox displaying malayalam wikipedia page in Mac. You can see that it is perfect.
Malayalam wikipedia in Mac firefox

To type malayalam
1. The Google transliteration service can be used in mac too. Check the section on ‘typing malayalam’ in Windows XP above for more details.

2. For small texts, you could use the Mac’s unicode hex input, to directly input the keycode of the required letter.
Go to System Preferences > Keyboard and enable Unicode Hex Input checkbox. Now, a keyboard menu will appear on the menubar, Click on it choose Unicode Hex Input and press Option key and type the unicode code, and it will be inputted. Malayalam Unicode Hex chart can be downloaded here.

3. A mac malayalam keyboard layout by Manoj is here. Download the the Layout file and install it as per the instructions given in the same page.

To view Manorama, Mathrubhumi and Deepika website.

Fonts used in the websites like Malayala-manorama and Deepika etc are not unicode, they are just usual ASCII encoded fonts which uses malayalam symbols at the places of English one’s. They use the code numbers assigned for English alphabets for Malayalam. This method does not have any of the features of Unicode fonts.

These sites use a technology of Internet Explorer called ‘Dynamic fonts’ where the font is automatically downloaded to your computer when you first visit their site in IE. Therefore, these sites by default, usually only work for IE.

Now, to view these sites in firefox or other browsers, you will have to manually download this font and install them. Refer previous sections on how to install a font for your operating system.

Manorama font –
Deepika font –

Mathrubhumi however uses Unicode font Meera hardcoded in to the HTML source. You will be able to view Mathrubhumi site after installing any unicode malayalam font.
If you want to install Meera font, download it at,
Mathurbhumi font –

Some More Malayalam Unicode fonts.

I have also collected some of the other Malayalam unicode fonts available. You could download them from here. Full credits to the creators of the font.Check the included copying.txt for information about the creators.

To have a look at how these fonts look, see this picture.

Some Issues

Webpage appears full of garbage even after installing font.
Try changing the encoding to UTF-8 from View > Character Encoding in FF and View > Encoding in IE

Malayalam Computing, by Govt of Kerala. – This site include the latest on using malayalm in computers. Visit this site for further information on Computers and malayalam. Refer this site for details on how to use the Inscript keyboard.

Cibu and his Varamoshi page
Malayalam Wikipedia
Swathantra Malayalam computing
– for all the fonts.
Project – for the mac font.
Santhosh – – for the picture of fonts
Rohit and Sony for helping with the mac section and screenshots.