skip to content


Tag Archives for javascript

Gale-Shapley Demonstration

2008.03.04 at 00:40:40

comment?

I have put together a small demonstration of the Gale-Shapley algorithm, which solves the stable marriage problem.

Check it out.

ISP Problems

2006.12.09 at 00:19:06

comment?

My ISP is notoriously slow to fix almost every outage, with down-times ranging from a few hours to a couple of days. It’s not as though I live in the middle of nowhere, thus I have a hard time understanding why it takes so long to get fixed. Sigh.

So, I decided to write a little application that would automatically track my down-time, since I’m never exactly sure when I lose and gain access. I’m still in the early stages, but I’ve got a working version.

It’s really simple to use. Just open it up in a web browser (IE and FF work, at least) and let it sit there. Every five minutes your browser will, effectively, ping my server, requesting the server’s current time and your IP address.

A little bit of JavaScript and PHP run the thing, and it’s very lightweight, so it shouldn’t effect performance much even if left running all the time, which I intend to do. I want some evidence next time my connection goes down. Not that it will matter, but at least I’ll feel better about it.

Here is how its done, as of now at least.

read more