Sunday, November 29, 2009

Images Not showing in IE

I was working for a client's website. Everything was working fine, when suddenly my client complained for images not showing.

I check the site in Firefox, Chrome, it was fine. Then I checked on Internet Explorer (IE). I was a nightmare. Images weren't showing in IE. Oh com'on. How come this is happening. I search google. Checked my html. Reviewed about doctype. Nothing to be of much help.

Then, i found a very simple advice: "Change the settings of your images from CMYK to RGB, and it will be sorted".

To my amazement, it worked. Woooohhh... How I hate IE...

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'