A Django site.
January 12, 2007

Diego Escalante
dieguito
hack my cow
» Bye bye wordpress.

Ok, me harté de WordPress. Mucho lío por nada.
Desde ahora solo usaré mi blog de blogger: http://diegoe.blogspot.com/.
Dejaré este wordpress corriendo como archivo hasta que: (a) me aburra o (b) mueva todo esto a blogger.

Ok, got sick of WordPress. Too much noise for nothing.
From now on I’ll only use my blogger blog: http://diegoe.blogspot.com/.
I’ll leave this wordpress running as an archive until: (a) I get bored or (b) I move everything to blogger

December 26, 2006

Diego Escalante
dieguito
hack my cow
» Anewt y PHP 5.2

Estaba probando Anewt (Almost No Effort Web Toolkit) escrito por Wouter Bolsterlee y me encontré un error inocente y gracioso acerca de que la clase DateTime ya estaba definida.

Me pareció raro pues el repositorio de Anewt no había tenido cambios en mucho tiempo y pues no tenía mucho sentido que un error tan evidente y grosero estuviese en el último commit del repositorio (el cual data de hace unas semanas). Entonces le pregunté a Rudy si sabía cómo podía averiguar quién y dónde llamaba/era llamada una función pero antes de poder obtener una idea de cómo hacerlo se me vino a la mente que quizá DateTime ya estaba definido en otro lugar (quizá algún paquete de PEAR que había bajado, a pesar que mi sistema está recién instalado). Así que dije:

(01:07:33 AM) dieg0_rm: espera
(01:07:36 AM) dieg0_rm: creo que ya sé qué pasa
(01:07:47 AM) dieg0_rm: tienes idea si DateTime es una palabra reservada en php5.2?
(01:07:53 AM) stone_head: it is
(01:07:59 AM) stone_head: it breaks it all

Eso quiere decir que si tu aplicación tiene una clase con ese nombre estará inexorablemente rota al momento de actualizar a 5.2 :) .

Entonces, aquí un lo que concluímos Rudy y yo:

(01:17:39 AM) dieg0_rm: a ver blogueemos rápidamente sobre esto
(01:17:51 AM) stone_head: claro
(01:17:56 AM) stone_head: collaborative blogging
(01:18:25 AM) dieg0_rm: claro
(01:18:28 AM) dieg0_rm: pondré rápidamente
(01:18:54 AM) dieg0_rm: putos php devs: por qué carajo implementan una clase DateTime en el core de php jodiendo así miles de aplicaciones, pudieron habernos dado la gracia de los namespaces
(01:18:56 AM) dieg0_rm: end of rant
(01:19:02 AM) stone_head: <o/
(01:19:07 AM) dieg0_rm: firmado: rudy y diego
(01:19:13 AM) stone_head: ello

BTW, Feliz navidad!.

December 22, 2006

Diego Escalante
dieguito
hack my cow
» Mini taller sobre Python y GTK+

Hoy estuve en el Instituto José Pardo realizando un mini taller sobre aplicaciones gráficas con Python y GTK+.

No hay slides pero sí scripts que había escrito para el taller y que en el taller volví a escribir por falta de internet :P . Son muy simples, en caso estuvieron en el taller o les interesa la combinación Python + GTK+ aquí unos URLs:

python.png

November 20, 2006

Diego Escalante
dieguito
hack my cow
» Full defense mode

Since I’m being DoS’d by spammers this days, I decided to turn comments off. Innocent I was, hoping that WP would have a nice option like that.
Closest solution was to check “Only registered users can comment” and unchecking “Anyone can register”.

So if you want to leave a comment, better write an email…

October 8, 2006

Diego Escalante
dieguito
hack my cow
» Metacity 2.17 buttons!

The crazy guy for this week is marnanel.

He kindly took the time to add 3 new buttons to Metacity themes (shade, sticky, above) and some other features that I really won’t use for now.
You need metacity 2.17.0 to see the new hotness, since I’m also kind I have made packages for this (compatible with Edgy since it’s based on Edgy’s metacity package). Download my packages.
Just run dpkg -i *.deb over them.
Tell me if they don’t work right.

After installing you have to enable the new buttons in GConf, as seen beneath:

Gconf edition

A little explanation: The “:” divide the left buttons from the right buttons, the string in the screenshot will produce a window like the one on the screenshot. Also you need a theme that support these buttons, right now only Bright and Crux do.

As a funny fact, I still don’t use my new buttons. I don’t even use the old ones, on a next post I will describe my metacity keybindings, no matter no one cares.

Blogalaxia Tags:

October 6, 2006

Diego Escalante
dieguito
hack my cow
» Release: Hidden menu extension for Epiphany

Long ago, I found a Firefox extension called Compact Menu that put your Menubar in a button that popped up your hidden Menu in a vertical fashion.

I don’t use my Epiphany menu more than 2 times a day and it’s only for Bookmark browsing and maybe allowing popups on a site so as you might guess I find those pixels wasted.
It took some time for me to realize that it wasn’t possible to convert that gtk.MenuBar into a gtk.Menu or something that can be embedded on a gtk.*Button (like gtk.MenuToolButton). This put me on a scenario where I would never clone the FF extension but some hours ago I realized that I didn’t have to clone the extension, I could do something better or similar to it.

My solution was pretty simple, adding a button that toggled the menu as hidden or shown.

Hidden menu extension
Hidden Menu extension + Super Tab Extra + Remove Throbber

Now, add this extension to Super Tab Extra or Only One Close Button (STE does what OOCB does, but I don’t know why :/).
I would also recommend you to remove the throbber with my Remove Throbber extension for a more eye candy’er experience.

Download Hidden Menu extension.
Or download more extensions on my Epiphany Extensions page.

Enjoy!