33dots

Posts RSS Comments RSS

Archive for the 'Web' Category

33dots.com 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/ username@jaguars.dreamhost.com:work/

but got bored seeing individual files being transferred slowly.

then,

[tony@localhost ~]$ tar -czpf 33dots.tar.gz 33dots/dump/
[tony@localhost ~]$ scp 33dots.tar.gz username@jaguars.dreamhost.com:work/

I had to use host as jaguars.dreamhost.com because i have still not pointed my 33dots.com DNS entries to DH.

sshed to DH. and,

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

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

7. Setup a dreamhosters.com 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 33dots.dreamhosters.com. 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 dreamhosters.com subdomain.

8. Setup Gmail for mail
I’ll be using gmail for the mail once the transfer is complete.
Went to http://www.google.com/a/cpanel/domain/new 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 33dots.com
---------
Registrar: NEW DREAM NETWORK, LLC
Name Server: NS1.DREAMHOST.COM
Name Server: NS2.DREAMHOST.COM
Name Server: NS3.DREAMHOST.COM
Status: ok
---------
[tony@localhost ~]$ nslookup 33dots.com
Non-authoritative answer:
Name:   33dots.com
Address: 69.163.171.212
[tony@localhost ~]$ host 69.163.171.212
212.171.163.69.in-addr.arpa domain name pointer apache2-emu.jaguars.dreamhost.com.

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!

No responses yet

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 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

<to do>

GNU/Linux

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,
For GNOME,
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

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 doesnot work here.]

Install the font by double clicking on it. Once the font is installed you will see ‘Malayalam’ 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 an see that its not good.
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. An experimental mac malayalam keyboard layout by Manoj is here. Download the the XML 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 – http://www.manoramaonline.com/mmfont/Manorama.ttf
Deepika font – http://www.deepika.com/mlkr0ntt_TTF.ttf

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 – http://www.mathrubhumi.com/new09/Meera_04-2.ttf

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

Credits-
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.
MalayalamLinux
Project – for the mac font.
Santhosh – http://fci.wikia.com/wiki/SMC/Fonts – for the picture of fonts
Rohit and Sony for helping with the mac section and screenshots.

3 responses so far

Yahoo! India Small Business web hosting review

33dots.com is my first website and i do not have much knowledge about web hosting providers. Anyway, i list here some of my observations on Yahoo! Small Business where this site is hosted

Technical specifications
Free domain name.
PHP 4.3 / PERL 5.8 / MySQL 4.1
1000 POP / SMTP emails.
1000 FTP accounts (for website management)
1000 sub-domains
Hourly/Daily/Weekly automated backups
Rs 1999/ year.

Some of the interesting features of the service are,
Unlimited space
You are given a 5GB space initially and this can be increased free of cost upon request. So you will never run out of space.

Unlimited data transfer
That’s good considering the reasonable price.

1000 email id’s
The SMTP emails given are in the same yahoo mail interface, which is one of the best webmails in the world.

Yahoo! brand name and expertise
We can expect that the site is hosted in the yahoo servers and so it should be secure, reliable and has a high uptime.
Yes! Its also a matter of pride to feel that our site is hosted in Yahoo!

 
However here comes the problems,

No .htaccess support.
Yahoo do not allow .htaccess files. We cannot upload/create any file beginning with a .(dot) .This is a real problem as most of the CMS and BB systems requires them.
In my case i was not able to use wordpress pretty permalinks because of this. :(

Only one database user.
This appears to be a crazy. We are only allowed one database user. If we try to create a user via their administration panel or through phpMyAdmin, it says no permission.
Strangely, i found out that it is possible to insert/edit the user table in the database.

Poor control panel
The web administration software offered by yahoo is not upto the mark. It looks outdated. Most of the functions are not intuitive and appear confusing. Also many steps are required to do for even simple tasks. It comes no where near to cPanel, plesk etc.
There is no facility to install any of the common PHP applications. (CMS’s, blogs, forums, etc etc)
The only software that can be installed from the web administration panel is phpMyAdmin 2.6
For every other thing you need to upload via FTP.

No shell support. No cron. No access to php.ini.

The web statistics page is not good. They provide an additional access log and you have to use your own statistics program to import and view them.

I am not so impressed with their customer support. For my email to them on why i cant upload .htaccess files, i got a reply 2 days later, they asked me courteously to
“dial 99001xxxxx and press option” 1″ for YSB and “1″ again for existing
customer between 9:00 AM to 6:00 PM (Mon to Sat)”

 
As the word ’small’ in their name, Yahoo! Small Business is perfect for small websites with a set of static HTML pages.
But for some serious business, may be even for blogging, you have to think twice…

No responses yet

Exporting Gmail contacts to Thunderbird

I setup Mozilla Thunderbird for all my Gmail accounts. Now I wanted all my Gmail contacts in Thunderbird, did some googling on the subject and task accomplished in a few minutes.
This is how it is done, [Check the images for better understanding. I've highlighted with red dots the places you have to look for].

Export the Gmail contacts.

Gmail contacts page

  • Log in to your Gmail account and click Contacts on the left side above the Labels.
  • Your could see your contacts arranged into different groups like ‘Family’, ‘Friends’, ‘Co-workers’, ‘All Contacts’ etc.
  • Click Export located at the right top corner of the page.
  • In the next page, Select the Contact Group you wish to export from the drop down list. You can also choose ‘All contacts’.
  • Select ‘Outlook’s CSV’ as the format to export and click the Export button.
  • Download the file (.csv) to the desktop.

Import the downloaded CSV file into Thunderbird.

  • Open Thunderbird. And click on Tools > Import..
  • Select Address Books and click Next.
  • Select Text File (LDIF, csv, txt) and Click Next
  • Browse to the .csv file you just downloaded and click Open. [You may need to change the File type to Comma Separated to see the file in the dialogue box]

In the next step you will need to match the fields of your Thunderbird Address book, to the corresponding fields in your .csv file. For example, the field First Name in the Address book should point to the same field First Name in the .csv file.

To do this, select the first field which you would like to keep and use the Move UP and Move Down button to position it to the correct place. Do the other fields similarly.

I matched the only 4 fields like this, First Name->First Name, Last Name -> Last name, Display Name -> Name, and Primary Email -> Email Address. Check the picture to get a better idea.
Import dialogue in thunderbird
Once fields are matched, Click Ok and all of the contacts will be imported. You will be taken to the addressbook where you can see the results.

No responses yet