Menu

Opera takes the cake

May 17, 2010

In Firefox, Chrome, and Safari, timeouts passed to setTimeout are subject to signed 32-bit integer arithmetic overflow. For instance, the following code shows an alert immediately, as if zero or a negative value had been supplied. setTimeout(function() { alert(‘hi’) }, 2147483648); Internet Explorer has the same problem, except they use unsigned 32-bit integers. Try this… Read more

Konami kaChing

April 01, 2010

Happy April Fools’ Day from everyone at kaChing! If you’re looking for a treat, try entering a certain code on the kaChing homepage.

Z-Index and Local Stacking Contexts

March 27, 2010

z-index is a CSS property that specifies the order of your elements on the z-axis. The higher the z-index value, the closer the element is to the user. Using z-index is handy to make sure elements like modal dialogs show up above everything else on the page. div#red { z-index: 1; } div#green { z-index:… Read more

select product(value) from mytable

February 12, 2010

A nice tip from Harold Fuchs to calculate the product in Mysql select exp(sum(log(coalesce(value,1))) from mytable The coalesce() function is there to guard against trying to calculate the logarithm of a null value and may be optional depending on your circumstances. Here’s an example +——+——-+ | id | value | +——+——-+ | 1 | 3… Read more

Roasted Butternut Squash Soup

November 28, 2009

Thanksgiving (or for some Frenchgiving) being upon us, it’s time for a different kind of recipe. You’ll need 2 Butternut squash 3 Scallions 1 Celery 3 Carrots Vegetable broth Olive oil, salt, pepper Optionally sour cream and pine nuts Peel and cut the butternut squash in pieces. Place them on a griddle and put them… Read more

The Crunchie award

November 18, 2009

Please nominate us: