Archives

Archive for November, 2007

First Week

( pageup )

Well, PageUp seems like a fantastic place to work.
I really need to be careful what I write here about the company, as this blog actually rates quite high on it’s keywords in Google.
The first day, Marek - a graphic/web designer mentioned - “Oh, I saw your post and added one of those doctypes in the […]

macBoy

( Tech )

In the red corner running Leopard and weighing in at 5.6 pounds is the 15″ MacBook Pro!

Now.. you can’t be in Hells Angels without a Harley Davidson,
I own my wheels but are there any rituals I need to fulfill in order to be in your club?
I’ll be looking into some of the apps that Andrew […]

Question

Can a truly absurd universe so convincingly mimic a meaningful one?

HelloWorld.rhtml

( Rails )

Rails is freaking cool man.

A first firefox extension

I’ve got a simple idea for a first firefox extension

If you visit the page above and Ctrl + Space you get little green numbered markers that you can move around the page. I’ve created screenshots for documentation of interfaces a few times and to save me ever having to take a screenshot, paste it […]

For amusement only

Not sure if others have seen this, it made me laugh.
Paste this into the URL bar after visiting google.com

javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.images; DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position=’absolute’; DIS.left=Math.sin(R*x1+i*x2+x3)*x4+x5; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setInterval(’A()’,5 ); void(0);

It almost makes me want to create a little graphing library in javascript, just […]

PHP Generic database re-ordering function

( PHP )

This made sense when I was writing it, It may make someone’s life easier perhaps..
Edit:
// Generic re-ordering function that can be re-used
function move_db_item($table_name, $order_column_name, $parent_id_name, $parent_id, $child_id_name, $child_id, $direction) {
 
// Get the Order Number
$sql = “SELECT “.$order_column_name.” FROM “.$table_name.” WHERE “.$child_id_name.“=’”.$child_id.“‘”;
$result = $db->queryFetch($sql);
$order_no = $result[$order_column_name];

// Get the id of the row above or below it
$sql […]