Category Archives: Code

Sucky factorial calculators

Look for “factorial calculator” on Google and you’ll take a long time to find a factorial calculator that thinks that 100! doesn’t have an ‘e’ in it. If you’re going to write a dinky little app like that, be aware that there are limitations to it and tell people. I’m not going to link to any of them, they’re all naughty applications that shouldn’t be allowed out in the real world. But Dima Stopel’s large number factorial calculator isn’t afraid to give you all the digits.

Database war stories

Databases have long been part and parcel of web development, but it seems that some of the big 2.0 sites have a few things to say on databases. Some love them, others hate them, and all are dealing with really big databases.

Second Life (database has grown and grown and split), Bloglines and memeorandum.com (lovers of flatfiles), Flickr (almost a Tb of data – and we’re ignoring images here), NASA, Craigslist (dealing with masses of data), O’Reilly (doing interesting data mining / transformation), Google (not much gets said here), Findory and Amazon (Findory try to keep it all in RAM), finally MySQL repsonds saying “Flat files suck”

AJAX and Screenreaders: Screw the blind, this is the new web!

Sitepoint tries to figure out how well the Web2.0 works for blind people.

Basically, no US gov website, and none that loves blind people, will be able to implement a AJAX-only site – a noscript verson will have to be available. And this stems from the fact that it’s too hard to make the various screenreaders act in a standard way in response to changes to the document. Which sounds to me to be a perfect problem for World Wide Web Consortium standardisation.

Ajax = Chocolate = Happiness

FogBugz 4½ has been released, so that amazing new ajax features can ship:

In the last year or so a lot of web developers have been working hard on improving their applications using techniques now known as Ajax. These applications use JavaScript code so that when you click on something, you get immediate feedback, rather than waiting for the web server to send you a new page at its own leisurely pace. When they do need more information from the server, they often download the small fragment they need, rather than waiting for the server to build a whole new page. The net result is faster, crisper feedback that makes you feel in control and creates “subjective well-being,” a.k.a. happiness, a feeling that is biochemically NO DIFFERENT THAN EATING LARGE QUANTITIES OF CHOCOLATE.

Who doesn’t like chocolate?

Where are the aliens?

Coffee drinkers are easier to persuade.

Fermi’s Paradox is explained by aliens getting adicited to computer gaming.

Strom reckons he knows how to make money with a website: ads! Plus a little other stuff.

An Irishman has a rather good summery of how to negotiate an intial salary.

Cross-platform rounded corners without images, extra markup nor CSS. The holy grail of web-design dweebs.

MySql woes

We’ve got MySql problems here at Geekrant central.

MySQL said: Documentation
#1016 – Can’t open file: ‘wp_comments.MYI’ (errno: 145)

Doesn’t sound good, does it? The ISP is looking into it.

Nothing else seems to be AWOL, but I’ve taken a backup of everything just in case. Wouldn’t you know it, the backup I have of wp_comments isn’t particularly recent. Hopefully the ISP has a newer one, but if not, I’ve grabbed a bunch of comments via Newsgator’s cache. Gawd knows how I’d restore them though.

Update: Fixed. May I just say, the support guys at AussieHQ hosting are deadset legends.