HTML

Understand Magic Quotes in PHP

Have you ever heard about magic quotes? Today I have just realize why it must be called magic quotes. My objective was just to install phpMyAdmin on CentOS 4.2. I supposed it should be done in an hour. However, I stucked on generating the configuration file, config.inc.php. The symptom are as follows.

Blog widgets in Typepad

Widgets are going to be so popular. Typepad is trying to promote the widget concept to the blog engine, Typepad itself. In the past, bloggers have to modify template or manually add each html snippet generated by the service providers to a block. If you don’t know what service providers are, the very basic ones are counter services, FeedBurner, Flickr, Technorati and many more. Typepad’s blog widgets are the best solution for newbies who want to add pieces of codes to their blog without know-how.

Have you ever want to insert javascript into a web page? Yes, I want to do it right now in . There are so many javascript that I would like to insert such as counter, AdSense and . Unfortunately, the script tags are removed on displaying. It seems Google Page Creator has a kind of tag filter to make sure all layout works perfectly on all browsers.

The  said that Google Page Creator isn’t fully compatible with JavaScript yet.  in  mentioned that it is only possible to upload files with JavaScript to Google Page Creator directly from your computer. Anyway, it is impossible to upload the first page aka /home.

Handle overflow in CSS

If you noticed some pages in howforge.com, they are containing

 tag to show code in monotype format. The side-effect of this tag is that all contents inside pre tag will never be wrapped if lines too long like usual cases. In other words, your layout may be extended the width for so long. Fortunately, I found a solution for this problem and just fixed in howforge.com. You could see the result of the solution in previous post. To fix this problem, just modify your CSS as follow.

pre {

ajaxLaunch launched ajaxWrite

AJAX is a must to be existed in all web applications for today. I have just found a post at Slashdot about ajaxLaunch. They has just launched ajaxWrite which is the direct competitor of Microsoft Word on the web. Imagine that you might see MS Word through Firefox. Though, it seems they can’t handle too many connections right now. If you get timeout, keep trying.

Anyway, it is not fully ajaxified yet. Popups are still popups. It would be nice if it use the same technique of Google Page Creator.

Fixing incorrect gamma in PNG and Internet Explorer

Yesterday, I would like to create a new logo image for howforge.com, the current one was the default logo. The current logo was in PNG format without transparency since the background was just a plain color #6699cc. Well then, I used PhotoShop to modify that logo to mine and saved it through "Save for web" option aka ImageReady. Unfortunately, my logo was displayed correctly in Firefox but not Internet Explorer. The problem is transparency. Internet Explorer can’t render transparent PNG correctly. So, I managed to add background with color #6699cc and tried again. It didn’t work on IE again, #6699cc in the logo didn’t match to the background in CSS. This seems to be problem of gamma.