Archive for August, 2007

Official Python Documentation Revamped

August 19, 2007

I have been looking for some neat Python tutorials and I just find that the tutorial on the official Python site has been revamped making it very readable.

Much love to the Python team 🙂

IE modal dialog crash issues

August 16, 2007

Everyone who has worked with modal dialog windows, a feature of the IE browser knows the irritants of using it. JavaScript debugging is difficult, you cannot do ‘view source’ and plugins like the IE Dev Toolbar just do not work on the modal windows.

I needed to refresh a screen on a button event in a modal dialog. Rats! HTML form submit does not work on modal dialogs.

I redesigned it to close the current modal dialog on form submit and then open a new modal window again from the parent. How? I passed the window object from the opened modal Dialog to the parent by invoking a method.

for e.g.

function openNewModal(url) {

parentWindowObj.openNewModal(window, url);


In the parent, I did

function openNewModal(modalWindow, url) {


window.showModalDialog(url, ..);


But this has a problem. On opening and closing modalDialogs by refreshing the screen multiple times, the browser just crashes. I found that this happens because IE does not release the memory of the modal dialog even on closing it until the method which opened it is complete. In other words, the opening and closing of modal windows needed to be completely disjointed.

To make the opening and closing of modal dialogs disjointed, I used events triggered by a timer 🙂 . For e.g.
var openModalInterval = setInterval(“fnOpenModal()”,1000);

Now, fnOpenModal will open a new modal dialog based on a global JS variable. like this.

function fnOpenModal(){

if(openmodal == true) {




This worked and IE releases the memory of the closed modal dialog since the events are disjointed 🙂

“Open source software is no threat”

August 14, 2007

Says Larry Ellison in this article:

“Open source is not something to be feared. Open source is something to be explained. Open source wins not because it’s open and not because it’s free. Open source wins only when it’s better

He also says:

“Whenever open source gets to be better than what we do, like in the case of Apache and Linux, we will simply adopt it, distribute it and support it.”

This really sums up what the effect of open source. Of course in some cases, you would want to go for ‘open’ code but generally in the enterprise world, the cost of software is not the main concern as much as the ‘performance’ of the software.

In Larry’s words:

“The purchase price of software is only about 10 percent of the total cost of ownership of software. So even if the software is free, the most you can save is 10 percent off. Now the question is, what are your other costs of developing applications, of running applications on a daily basis, of dealing with problems when they occur?”

Google too is evil, after all!

August 1, 2007

Look here and here. Google adds a small header into Google Video files so they are unplayable on Windows Media Player forcing you to download their own Google Video Player which is far from a decent video player.

Other instances of Google playing evil? Download a browser and you are most likely to download the Google Toolbar crap with it! Without your permission. Heck, it even came along with the Avast anti virus I installed!

Well, Google what happened to all that talk about open standards, open API, open everything?