Archive | November, 2009

Virar – The Stone Age!!!

Sunday sucks. First it was the frickin BSNL Internet(that has been going off regularly during weekends) and now the powercut that has been on and off the whole day. When is Virar going to come out of this stone age? And BSNL, get a stable server(or competent employees) for Chrissakes !!! Sheesh!!!

Continue Reading

Changing the Character Set and Collate of your MySQL Database

Before changing the Char Set of your Database, here’s how to view the character set and collate of your database: use YOUR_DATABASE_NAME; show variables like “character_set_database”; show variables like “collation_database”; Now that you know your Database isnt UTF-8, you can try changing the character set from Latin to UTF 8: alter database YOUR_DATABASE_NAME charset=utf8 collate=utf8_bin;

Continue Reading

Creating PDF in Java using iText – Header, Footer, Table, Phrase, Page Events

iText is one of the best libraries to automate creation and manipulation of PDFs in your application. In this post, I will explain how to create a basic PDF with a Header, Footer, Table, Phrase. This code also contains the usage of PageEvents. Step-wise procedure to create PDF in Java using iText: 1. Download iText [...]

Continue Reading