Notes

Javascript switch

2010-07-24 13:42:12

The switch statement is a well known mechanism in coding terms. Still, there seems to be one edge case which needs a little attention. The edge case being the default clause. A switch is meant to replace a long series of if statements. It has the ...


ECMAscript errata

2010-07-19 23:19:49

The errata are the additional fixes or changes to the specification that didn't make it in the specification or were found after the specification :) So I heard a new version of the errata was available I wanted to see it. However, I couldn't find...


MySQL stats script

2010-07-15 15:54:18

At my old host I created a MySQL function that would handle saving the visitor stats for my website for me. Basically you had to hand it the information of the page hit (IP, url, etc.) and it will sort it all out. I'm not using it anymore because I d...


UIButton image with rounded corner

2010-07-13 13:55:41

At some point while developing for the iPhone or iPad you'll undoubtfully need to create a button with some odd image and notice it will not apply rounded corners to it. It just won't clip y default. Luckily there is a relatively easy fix for that in...


Objective-C get date strings in locale

2010-07-07 11:08:55

Here's how you get the name of the weekday or month as a string in a specified language (locale) in Objective-C (iphone or ipad development). Objective-C // the date we want to print NSDateComponents * datecomps = [[NSDateComponents al...


Dragon fractal

2010-06-29 22:32:32

So I'm diving a little into the world of fractals. You know, the repetitive patterns that can go into infinity and make pretty pictures. No? Mandelbrot, Julia? Still nothing? Then this is not for you. For the rest, keep reading :) Otherwise, you may ...


Fade golf

2010-06-19 11:33:32

There probably dozens of Javascript scripts out there that do some kind of fade effect. Some are solo, most are embedded in some kind of complicated script. My experience is that the ease function gets bigger and more complicated as you try to make i...


Get supported flash version

2010-06-07 15:50:13

This is a simple Javascript function to detect the supported version of flash. It's not quite fool proof. I've created it a while ago (using other examples) and don't even know whether and how good it'll work. But if it b0rks you might use it as a po...


MSN in Windows 7

2010-05-05 04:10:30

One of the most annoying things I've experienced after working on Windows 7 for a while was that MSN suddenly kept a tab open on the Taskbar. It would also create an icon in the system tray, but the tab would still remain. There doesn't seem to be an...


Installing DBSlayer

2010-04-22 07:12:24

In this guide I'll try to run you through getting DBSlayer to work on Ubuntu (or a general Debian system). DBSlayer is a proxy for mysql databases through which you can communicate using JSON over HTTP. I still have to run a few tests because I'm afr...