Saturday, November 22, 2008

Odd and even dates parking

I have observed in Pune and at other places in India and abroad we have parking on alternate side of the roads on odd and even dates. If the road is bidirectional without a divider then this approach makes sense. The common sense lacks when there is a divider.

In the presence of divider dividing the road (almost equally) the day there is no parking on the side of the road the road will have more usable space while the other side of the road will have less space.see the image below to see if it makes sense.... Comments welcome

Sunday, November 16, 2008

Force reload an image using javascript

When we try to reload the image using JavaScript it does not work due to the browser caching the image.

The workaround for this is to append a "#" at the end of the image path ie say the image is
<img src="" id="captcha" /><a href="javascript://document.getElementById().src+='#'">Reload</a>

This way we fool the browser to think its a different image and the browser reloads the image. Simple eh?

Tuesday, November 04, 2008

[Solved] Update symantec Anitvirus definitions using command line or command prompt

Sometimes you may either not be able to update the anti virus definitions via the GUI.
One reason could be the GUI may not be visible / is disabled.
Another reason could be that the you may want to schedule it.
Either way the way to run it is to open a command prompt and go to the Symantec antivirus directory and then execute the VPDN_LU.exe.
This file will start the antivirus definition update process.

Happy keeping your antivirus updated.

Web Hosting Cheap PHP Plans Also at For free flags of the world