Archive for October, 2006

Number Puzzle Changed - It’s 15-Puzzle now!

Tuesday, October 31st, 2006

I changed the Number Puzzle plugin a bit and renamed it to 15-Puzzle. The new download links is http://www.sandaru1.com/15-Puzzle.gg. The older link also contains the same files now.

Number Puzzle - A plugin for Google Desktop

Monday, October 23rd, 2006

Number Puzzle is a plugin for google desktop. Click here to download. You can download the source code from here. (It’s the same file, just with the extension of “zip”. Just forget it if you can’t understand).

An AJAX mistake

Sunday, October 22nd, 2006

Yesterday (Saturday) I was running the IOI grader on university of moratuwa for their ACM selection tests. As far as the grader functionality is concerned, it worked perfectly. But unfortunately the grader interface was damn slow. There were only 26 contestants and it was on a 100 Mbps LAN. So, I had to restart the server time by time. So, I just looked at the log files and found out there was a huge number of requests. But why is that? Because our grader is using AJAX to grab the latest status. The AJAX script was generating a request for each 2-3 seconds. To make the things worst, those were keep-alive requests. So, not only that the server was using the maximum number of threads, the script keeps sending the requests to the same connection so the connection doesn’t break until it meets the maximum number of keep alive requests. When several guys are sending requests others have to wait in the queue. I simply changed the refresh time of the AJAX script and the number of maximum threads on the apache server. After that restarting the apache server solved the problem, more or less.

CHM - The windows help files & Internet Explorer

Sunday, October 8th, 2006

The chm file viewer in windows is based on Internet Explorer. Today, when I was trying to open a chm file, it started displaying that ever boring “Page cannot be displayed” sign. I was wondering what to do, I was damn sure that this file worked before. Is that a some kind of a virus threat or is that my proxy settings? I was messing around the settings, but no luck there. Then, I started to backtrack ( I have a stack on my mind ;-) ). Then finally I found out what I did last was renaming the directory. So, I copied the file out of the directory and tried. Even though it sounds crazy, It worked. Yeah! That’s it. New name of the directory is “C++ & C#”. CHM viewer (Microsoft HTML Help - That’s the correct name I think) doesn’t encode the “#” character for Internet Explorer. So, it fails to load the file. So, I simply renamed it back to “C++”. May be it’s time for me to install wine + IE (Since I’m doing web developing, I need to test my web pages on Internet Explorer) and strict to linux only. I already have wine, but IE is not working :-(

Test your site in internet explorer. Are you using IE Tab?

Tuesday, October 3rd, 2006

If you are a web developer/designer you should have surely checked your site in popular browsers. Specially if you are using css. I always used to use only firefox for the development stages and then later test the sites in IE. But after that i came to aware about the mozilla plugin “IE tab”, it became easier. I started to test the site with IE in the development stages. But recently Nayana have found out that IE doesn’t emulate the Internet Explorer exactly. I dont know what is happening there even when it is using same ActiveX control. However, if you are using IE tab, be careful - just a small warning.