Apostrophes in predictive text

March 6, 2004
1 comment

Not until today did I find out how to write "I'm" or "don't" in predictive text on my Nokia. You simply write "I.m" and it suggests "I'm". Now I don't have to manually enter the ' apostrophe character when texting :)

Moving Image Contest for Creative Commons

March 5, 2004
0 comments Misc. links

Creative Commons "Creative Commons"n:http://creativecommons.org is some sort of licensing pool to protect your work as you please. How this is different from GPL, BSD, Shareware, ZPL, etc. I don't know. They have a nice couple of pages that explain what creative commons is but I haven't looked through it all. I did read this FAQ page. From what I gather it's a way for creative people to put a sensible license to their work without too much confusion with setting up your own license. The other licenses mentioned above are maybe for IT, whereas creative commons is for non-tech people; ...as well.

They've had a "contest"n:http://creativecommons.org/contest/, and the winners have been announced. Download the winner and enjoy. It's 9Mb but worth it. Well done whoever did it.

Optimized stylesheets

March 5, 2004
1 comment This site

I have been experimenting recently with HTML optimization but haven't applied it yet. But I have applied this now to my stylsheets. The size gain is 33%! (1577 bytes to 1027 bytes) However, the speed gain involves also the time to perform the optimization so the speed gain will obviously be less than 33%. But the optimization takes, on this slow computer, 0.004 seconds so in approximate terms the speed gain is also 33%. This is on a stylesheet file with some but short and few comments.

The optimization script removes almost all unnecessary whitespace (newline characters included) and all comments. The code for python friends looks like this:


import re
css_comments = re.compile(r'/\*.*?\*/', re.MULTILINE|re.DOTALL)
def _css_slimmer(css):
   css = css_comments.sub('', css)
   css = re.sub(r'\s\s+', '', css)
   css = re.sub(r'\s+{','{', css)
   css = re.sub(r'\s}','}', css)
   css = re.sub(r'}','}\n', css)
   return css

Unusual job offer

March 3, 2004
1 comment Misc. links

"My client, a large public sector organisation, is commencing a hugely exciting programme for archiving the Web."

Got this in one of those automatic emails that CWJobs sends out. I'm not personally interested but it sure is an unusual offer. It also said:

"Architecture and programming of server-side code at a guru level.".

"Guru"? Isn't that when you're so good that your a celebrity (E.g. Stallman, E.S. Raymond, Nielsen)

CPU info

March 2, 2004
0 comments Linux

"Adam Horner"n:http://www.salmagundi.org.uk/ showed me how to check, on a linux system, information about the CPU make and model on the command line:


$ cat /proc/cpuinfo

I write it down so I don't forget. Note that this is on the command line, i.e. when you don't even have a graphical interface.

Running this on the very server I serve these pages:


peterbe@compaqpete:~$ cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 8
model name      : Celeron (Coppermine)
stepping        : 6
cpu MHz         : 699.106
cache size      : 128 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 
sep mtrr pge mca cmov pat pse36 mmx fxsr sse
bogomips        : 1392.64

Not very impressive is it. A 700Mhz Celeron. At least it's possible to run Zope, Squid and Apache on it.

Lemon - Commodore 64 Heaven!

March 1, 2004
0 comments Misc. links

Lemon - Commodore 64 Heaven! Lemon is a site about the good old Commodore C64 computer. The site has lots of games, game reviews, game covers, emulators and you name it. Worth checking out to get a nostalgic kick. There are loads of games I don't recognise, but I do remember Sex Games (or click Misc on the menu)

It's a shame that such a nice site uses frames. I hate frames because it makes it impossible to copy unique URLs.

For the first time also I bought something from "cafeshops"n:http://www.cafeshops.com/ which is an online shopping site where people can sell t-shirts, hoodies, coffee mugs etc. with custom logos and prints. The item I bought was this kung fu hoodie