Install MySQL_python in Leopard

I wanted to make my Django blog engine work on Leopard using MySQL as a database engine. I had a hard time making it work, partially because of my lack of knowledge of Python, partially because I am using MAMP instead of a “/usr/local/mysql”-like MySQL installation, partially because of Leopard itself.

The problem is, basically, that if you try to do the “easy_install MySQL_python” thing, it won’t work in Leopard (the compilation of the native code fails). Here’s how I made it work, following the instructions in this post in the MySQL forums, and doing some tweaking manually. Continue reading

My first Django project

So here it is, my first Django project: the gazillionth blog engine on the planet!. As if there weren’t enough, right? :) Actually it was a practical and easy way to learn the Django project, and the result is pretty neat. Feel free to download it, play with it, and give me your feedback. Here’s a sample screenshot in Safari:

screenshot.png

Creating this project I have had a practical experience comparing both Django and, of course, Rails. The subject is not new in this blog; however, this time I could play with both frameworks and as such, I can bring my small amount of confusion in this big framework tar pit. Continue reading

Presos 4F Barcelona

el juicio en barcelona (bueno, esa farsa llamada juicio) contra un argentino y dos chilenos acusados falsamente de hechos acaecidos hace casi 2 años, y torturados durante su larga estadía en prisión, está tomando matices francamente ridículos, pero típicos de la bronca que tiene una franja de los españoles últimamente contra los latinoamericanos.

es una vergüenza, pero en realidad, todo esto no me extraña mucho, y era lamentablemente previsible:

Cuando se abrieron las puertas para el ingreso del público fue realmente muy violento y todos estos señores intentaron ocupar todas las sillas a empujones. En este caos, muchos observadores se quedaron afuera mientras el presidente del tribunal ordenaba cerrar la puerta dejando afuera de la sala a los cónsules de Argentina y Chile y a Iñaki Rivera (Observatorio del Sistema Penal y los DD HH de la Universidad de Barcelona), entre otros. Todos ellos, incluidas las embajadas además de los cónsules en persona, realizaron la queja formal frente a la presidenta del Tribunal. Solo consiguieron que tres horas después agreguen unos bancos más en la sala que continuaron siendo insuficientes. La sala ya ha denegado hacerlo en un salón más grande a pesar de que está libre y, a diferencia del resto de los juicios, no dejan estar a personas de pie. (…) Otra cosa que es absolutamente ilegal es que todos los testigos hablaban entre si, los que ya habían declarado con los que todavía tenían que hacerlo. Esto está prohibido por ley y la sala les advertía que no podían hacerlo. Sin embargo, en el mismo piso de la Audiencia, tenían una sala custodiada dónde solo entraban agentes de la guardia urbana y donde estaban todos juntos, entraban y salían y comentaban las cosas que les habían preguntado. Las declaraciones eran todas repetidas de memoria, usaban las mismas expresiones textuales y repetían los mismos detalles. En cuanto una pregunta se salía del “guión” y los descolocaba, el presidente del tribunal declaraba la pregunta irrelevante o decía que ya estaba contestada, etcétera.

Starting with Django in Leopard

As I’ve written earlier, I’m playing with Django these days. It’s a refreshing change, I must say, even if I admit that I prefer Ruby’s syntax to Python’s. Of course that’s just a purely subjective impression (I’m writing this while I try to avoid the rotten tomatoes thrown by angry pythonistas reading this) that does nothing to do with the power of the Python language + framework, which is by all means absolutely impressive.

In any case, I had to install a working Django environment in my machine, and while following the excellent and free Django Book instructions, this is what I did in my Leopard installation to have it up and running (Leopard already comes bundled with Subversion 1.4.4, Python 2.5.1 and SQLite 3.4.0, so you don’t need to do anything about them): Continue reading

Django & Leopard & the UTF-8 error

If you use Django on Leopard, you might encounter a strange “Locale UTF-8 not found” error when running your application. This is due to a bug in Terminal.app, albeit an easy to fix one: just go to the Preferences pane / “Settings” page / “Advanced” tab and uncheck the “Set LANG environment variable on startup” checkbox. Reopen your Terminal session, load the Django application and voilà! Your bug has disappeared. The screenshot below might help too:

solution.png

Hope this helps!

PS: yes, I’m doing Django and hence Python these days ;)

Scoble vs. Facebook

1824234195_e6b913c563.jpgRobert Scoble aura été écarté de Facebook pendant seulement quelques heures, grâce à un simple script allant à l’encontre des terms of use; néanmoins, cela a suffi pour relancer un débat fort autour du modèle de business de cette société (dont j’ai déjà écrit auparavant de manière assez critique, et dont d’autres en doutent déjà des bienfaits.)

Voici donc DataPortability, une nouvelle initiative qu’on pourrait assimiler à une démarche inspirée sur celle de la Free Software Foundation; mais à faute de porter le débat sur l’accès libre et universel aux logiciels, cette fois c’est sur l’accès libre et universel… à nos données personnelles, celles que l’on ajoute dans nos profils un peu partout ces jours-ci. L’idée de base est de promouvoir l’utilisation des standards (Microformats, RDF, RSS, OpenID, etc), et de créer une politique de référence standard pour les sites web qui supportent l’initiative. Une sorte de GPL pour nos données?

Nouveau siècle, nouvelles tendances et surtout nouveaux défis: à suivre!

Update: Google, Plaxo and Facebook joined the DataPortability movement!

Subscribe to comments!

To celebrate the third anniversary of this blog, I’ve (finally) added the most requested feature ever: e-mail comment notifications! For this I’ve used the Subscribe to Comments WordPress plugin which comes in handy to fulfill this task.

To use it, just click on the checkbox below the comment field, and you’ll receive an e-mail every time someone else adds another one.

I hope that you’ll like it, and that it’ll boost the rate of comments in this site :)

years; años; ans

I’ve been blogging for three years today. Thanks to you for your 239 comments that make this blog so unique and special; I wish you a very Happy New Year 2008!

Hoy este blog cumple tres años. Gracias a todos ustedes por sus 239 comentarios que hacen tan único y especial a este blog; les deseo que tengan un hermoso año nuevo 2008!

Aujourd’hui ce blog fête trois ans! Merci à vous tous pour vos 239 commentaires qui font de ce blog quelque chose de très unique et spécial; et je vous souhaite une très belle nouvelle année 2008!

:)