Sunday, December 30, 2007

Tips for DSP.

Use conv and use fft(x,N), where N=length(xhat)=length(x)+6*(length(H0)-1), use a million taps and pray.

fork() in php

I've recently developed a small facebook application, that gets movies you rated on imdb and displays them on your facebook profile.

The app relies on a cronjob that every 5 hours refreshes all the profiles of every user, that is a very slow task. I am using a web cron website, that will run a cronjob for free. The problem is that it has a 30 minutes timeout. My page takes about 3 minutes to go through all the 58 users I have (and I hope it'll grow!) so the way I trick web-cron.org is to have a script calling another script and then return. Php doesn't allow fork() when run in apache, but one can do something similar by using this hack.

How cool.

This made me laugh.

Friday, December 28, 2007

Cheap ram

The cheaper sodimm ram I found is 1GB 667MHz DDR2 Non-ECC CL5 SODIMM, for £8.99. I think two of them are going inside my laptop as soon as I come back.

Wednesday, December 19, 2007

friends lists.

Yes, yes yes. Facebook has done friends list. As soon as they roll out custom privacy settings for each list then we can start adding as friend all sort of people. This is good.

Monday, December 17, 2007

Web cam button.

I spend a bit of the morning hacking a patch to translate the button event of the webcam to the kernel input system. Now one can use a script to toggle the video send pressing the button


out_connection = remote_bus.get_object('com.Skype.API', '/com/Skype')

out_connection.Invoke('NAME mySkypeController')
out_connection.Invoke('PROTOCOL 5')

answer= out_connection.Invoke('SEARCH ACTIVECALLS')
vid = out_connection.Invoke('GET CALL ' + answer.split()[1] + ' VIDEO_SEND_STATUS')
if vid.split()[3] == 'RUNNING':
print out_connection.Invoke('ALTER CALL ' + answer.split()[1] + ' STOP_VIDEO_SEND')
else:
print out_connection.Invoke('ALTER CALL ' + answer.split()[1] + ' START_VIDEO_SEND')

Thursday, December 06, 2007

Facebook good news.

Finally facebook has decided that messages will come to your email in full (instead of "xxx has sent you a message, click -here- to see it"). This is far more useful.