Monday, December 6, 2010

IE7 Background Ghost When Element is Hid

There seems to be little documented on this issue. I will share it here if anyone ever come across this issue. Keep in mind that I am using jQuery, not sure if it makes any difference. Also I didn't try to reproduce in a standalone example because I don't have enough time; but you would not be reading this if you don't have a similar problem anyway.


<div id="parent">
   <div id="child"></div>
   <div id="child2"></div>

#child has a background image. #parent is then hidden by
and then #child is hidden by
When you open #parent again, you still see the background image of #child even though it's already hidden with style="display: none;". When you mouse over it, the background image would disappear.


Hide elements in order of inner element to outer element. i.e.,

I spent almost 2 hours debugging this. Hope this post can save you some times.

Friday, August 27, 2010

Problem with Sending Mail from a Cloud Server

Ever since I migrated to a cloud server, I had not received the occasional emails from my sites. Until today when I was expecting a email from one of the sites. I waited and no mail comes through, I triggered few more re-sends, but none made it to my inbox.

Friday, August 6, 2010

addJs vs addItem in Magento

Using addJs will add a Javascript tag with source file relative to the root directory.

Saturday, July 31, 2010

osCommerce Migration Tool For Magento Installation Failure

I tried to install osCommerce Migration Tool for Magento today and I encountered the following error.

SQL Errno 150 While Importing Magento Database

I was moving Magento install from one server to another, without looking at any documentation on recommended way to do that. I exported/dumped the database and imported it to the new one. The database was huge, it was taking so long that I stepped away to do other stuffs. When I came back it terminated after executing 290k queries and reported an errno 150. This indicated a problem with the foreign keys.

Friday, July 30, 2010

PS3 Media Server's PS3 Not Found Problem on Windows 7

I recently looked into solutions to stream media from my computer (Windows 7 Enterprise Edition) to my Playstation 3.The available options were Tversity and PS3 Media Server. I ended up choosing PS3 Media Server (v1.10.51 at the time of writing) after learning about its transcoding capability, the fact that it's open source, and the advertised "minimum configuration".

The installation was straightforward, it would install Java for you if you didn't already. I launched the program after the installation and I got this big red cross shown telling me that PS3 has not been found. Is it on? You can also check traces and/or configuration, or also the debug.log file. However my PS3 was on, and the PS3 could not detect the media server either.