Monday, October 26, 2009

How to Add html codes in your blogger/blogspot posts

When I was writing a post which should contain html code, I was stunned that its not that easy.

Calling my friend google, I found this simple site that could you in your problem - http://www.simplebits.com/cgi-bin/simplecode.pl

Just paste your html code, process and then paste the result into your post.... and it should work like a charm...

That's it....

Problem with tables in Wordpress posts

I was working on a wordpress site lately (http://www.explorebohol.com). Everything worked fine, I viewed the site in Chrome and firefox, they were perfect. I was happy, until I viewed the pages with tables in it in Internet Explorer. Bang! There you go the problem...

The tables aren't displaying the way it was supposed to be. One line per word. (OMG!!!) I keep bubbling to myself, what the hell is wrong with IE. Instead of cursing Microsoft, I just googled my problem and found a lot of similar cases...

The solution to the problem with tables in wordpress, well its simple.


<td width="30%" align="center" valign="top" bgcolor="#ffcccc"><span style="white-space:nowrap;">Content Here</span></td>



I simply wrapped the content inside a span and put a no-wrap option. It worked. And about the width also, px wont work, so I have to express the width in percent.

Thats it....

Friday, September 25, 2009

Where to download 64-bit jdk

After quite sometime figuring out where to download a 64-bit jdk, i found this download page. And I wouldn't like to undergo that same fate again.

https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=jdk-6u16-oth-JPR@CDS-CDS_Developer

Wednesday, September 9, 2009

Installing Postgres in Fedora Core 10 and Setting of default password

Lately, I was trying to install a new postgresql server in my FC10 box. I thought it was as easy as 1,2,3 but I discovered it needed some technical knowledge to install postgresql server.

After reading few blogs and my personal google docs, I came up with the following procedure.

Installing postgresql server
- Go to System -> Add/Remove Software
- Search for postgresql
- install postgresql-server and postgresql client files
- after installation, you have to initialize your database
- open terminal
- su root
- su postgres
- cd ~
- initdb data
- then start postgresql server with pg_ctl -D data -l logfile start

Setting default password for user postgres
- without exiting the terminal or su postgres, type
psql -c "ALTER USER postgres WITH PASSWORD 'password'" -d template1

that's it for now....

Tuesday, September 1, 2009

Changing Drive letter of your CDROM/DVD RW in Windows Vista

If you are using windows vista (or other windows version i think), and would like to change the letter of your drive, you can try the following:

Go to Control Panel -> Administrative Tools -> Computer Management

Click on Disk Management
Right Click on your CD/DVD Drive

Select Change Drive Letter and Paths
Select the Drive
Then Click Change
Assign a drive letter and then click ok.

Monday, August 10, 2009

Changing/setting default mysql root password

Changing/setting default mysql root password:

mysqladmin command to change root password

If you have never set a root password for MySQL, the server does not require a password at all for connecting as root. To setup root password for first time, use mysqladmin command at shell prompt as follows:

$ mysqladmin -u root password NEWPASSWORD

However, if you want to change (or update) a root password, then you need to use following command

$ mysqladmin -u root -p'oldpassword' password newpass

For example, If old password is abc, and set new password to pass, enter:

$ mysqladmin -u root -p'abc' password 'pass'

Wednesday, June 24, 2009

Installing flash player in fedora core 10

For 32-bit machines, run the following commands:

- sudo rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm
- sudo yum install flash-plugin

Then restart firefox. You should have a working flash player by then.

For 64-bit machines, (e.g. my 64-bit AMD machine), i followed the following steps:
- Download the file http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.22.87.linux-x86_64.so.tar.gz (3.56 MB)

Extract libflashplayer.so and copied it into
- /usr/lib64/mozilla/plugins/libflashplayer.so