Skip to content

Monthly Archives: March 2009

High performance large arrays in javascript

31-Mar-09

One of the primary goals of weblaster was to have a fast javascript based application to manage a media collection.
The amount of data we are talking about is an array with around 35.000 elements that contain something like this:
{
“id”:”10098″,
“track_name”:”Sarah Yellin’”,
“album_name”:”Live Away From The Sun”,
“artist_name”:”3 Doors Down”
}
that’s around 110 bytes per element times 35K nearly 400K [...]

Gnome Terminal default size

21-Mar-09

I was sick of having to resize the gnome terminal after each launch, so here’s a way of changing the default size permanently

sudo vim /usr/share/vte/termcap/xterm

change the line

:co#80:it#8:li#24:\

to

:co#120:it#8:li#50:\

if you want a1 20×50 terminal.

Ubuntu Intrepid Macbook pro keyboard backlight

14-Mar-09

Not that I need it but just to squeeze every penny from my mac book pro 4,1 (Penryn):
First enable the MacTel repositories in your
/etc/apt/sources.list
file:

deb http://ppa.launchpad.net/mactel-support/ubuntu intrepid main

then a
apt-get update
and finally install the hal-applesmc for the mactel stuff.
Now add the applesmc to your
/etc/modules
file to load the module at boot time or just
modprobe applesmc
to [...]