I’m twitting again

Yeah!! Twitter have reactivated my account :D. Good news!!

I’ve written a patch for my wordpress theme and now it reads the caption from twitter :D. I still have to fix some performance problems, but… here it goes:

require_once 'XML/Feed/Parser.php';
$feeds = fopen('http://twitter.com/statuses/user_timeline/26378338.atom','r');
$source = "";
if ($feeds) {
	while ($s = fread($feeds, 1024)) {
		$source .= $s;
	}
}
$feed = new XML_Feed_Parser($source,false,true,true);
$first_entry = $feed->getEntryByOffset(0);
$title = $first_entry->title;
$little_title = substr($title, 13, 30);
$little_title .= (strlen($title) > 43) ? '...' : '';
print "<a href=\"http://www.twitter.com/capitangolo\">$little_title</a>";

Updated:

Thanks to: http://remysharp.com/2007/05/18/add-twitter-to-your-blog-step-by-step/. Now my tweets are loaded by javascript, so my blog loads much fast :D.

4 semanas de música en el ipod

Cuando nos preguntan cuánta música tenemos, solemos contestar con el número de canciones que tenemos. Si queremos que parezca más, podemos decir el tiempo que tardaríamos escuchándolas una detrás de otra sin descanso, ya que lo suele calcular el reproductor.

Pero… ¿Cuánto tiempo tardas de verdad en escuchar todas tus canciones?

Yo he tardado 4 semanas y 4 días en escuchar mis 1853 canciones al ritmo al que escucho música normalmente. ¿Y tú?

PD: Le paso el meme a eckelon, jis jis.

gems – Terminal Broadcasting

We had a issue for the next Warp Talk. All the talk will be done with a shell as presentation tool. But people won’t see the text on the shell trough the cam, as it resolution is limited.

Isaac have found vía Debian package of the day Gems.

Gems allows exactly what we need, broadcast a terminal by tcp/ip. Screen would be the first thought, but a ssh connection from unknown people was needed :S.

To use gems, install it:

$ sudo aptitude install gems

If you want to broadcast a terminal, you type on that terminal:

golo@Macluzo:~$ gems-server -port 9999
gems-server initialized.

And now, you are broadcasting.

If you want to observe a terminal, type:

golo@Macluzo:~$ gems-client localhost 9999
gems-client: Connection established -- Press 'q' to exit.

Notice that localhost should be changed to the server’s host :D.

If you plain to attend this talk, follow our Twitter. We’ll publish server’s public address and port there.

El punto blanco de la muerte…

Hoy conecto mi segundo monitor en Mac Os X, en mi MBP, y me encuentro con el punto blanco de la muerte…

El punto Blanco de la muerte 1
El punto Blanco de la muerte 2

Da igual lo que hagas, cambiar las coordenadas de la pantalla, poner una ventana encima, cambiar el fondo, él seguirá allí. Sólo el ratón puede ocultarlo. Es… ¡¡¡El punto blanco de la muerte!!!

¿Alguien sabe cómo se filea un bug en apple?