Mis cachivaches para trabajar

Siempre hay un cierto interés por conocer el equipo y programas que otros desarrolladores usan para trabajar. Ya que uso ciertas cosas “raras” (al menos poco frecuentes) y tras escuchar el último podcast de “El amuleto de Yendor”, que comentaban algunos de estos temas (especialmente teclados). Como introducción, me dedico principalmente a programar en Python, así que el entorno está adaptado a eso. Como este post está quedado muy largo, empiezo con el hardware (ordenador, trackball, configuración de teclado y teclados) y continuaremos en otro post con el software. Ordenador Desde hace un… Read More

Respect your production data

I read yesterday this blog post: I Accidentally Deleted All Our Data by Taylor Fausak. Probably you’ll end with the same expression in your face that I did. An a palm covering it. Something in advance. It takes GREAT courage and openness to tell in your blog this story. I think is really a great attitude about it. Saying this, I must say that the whole story a recipe for disaster. Lots of steps make my spider-sense to tingle. Strongly. Doing a script on the python interactive shell to update your production data, while… Read More

Utopia Kingdoms scaling case. From 4 users to 90k+

I almost forget to put this presentation I gave in PyCon Ireland 2011 this month. It’s about some problems and solutions working on Utopia Kingdoms game regarding scalability. So, here are the slides UPDATE: In case anyone is interested, here is the talk, courtesy of PyCon Ireland 😉  

Django and Rails and Grails, Oh my!

On the PyCon Ireland I give a talk comparing between Django, Ruby on Rails and Grails framework… I just forget to put a link on this blog! The presentation can be found at Prezi, and there is even a video, if someone wants to make funny comments on my exotic accent 😛 A problem with the projector doesn’t allow me to display the slides, so I felt a little weird taking the laptop and pointing at the screen, but the people making the video has make their homework and shows the proper… Read More

Database madness with mongoengine and SQLAchemy

Yesterday I gave a presentation in the Python Ireland October meeting about some work we are doing with mongoengine and SQLAchemy and how we are managing three databases (MS SQL server, MySQL and MongoDB) on an online football management game we are working on. So, here are the slides, so feel free to make comments, ask questions and even criticize them! You can also download the presentation on PDF here. PD: When I talk about football game, I’m referring to soccer.

Commenting the code

I always find surprising to find out comments like that regarding code comment. I can understand that someone argues about that writing comments on the code is boring, or that you forget about it or whatever. But to say that the code shouldn’t be commented at all looks a little dangerous to me. That doesn’t mean that you’ll have to comment everything. Or that adding a comment it’s an excuse to not be clear directly on the code, or the comment should be repeat what is on the code. You’ll have to keep a… Read More

ORMs and threads

Do you remember the post from Joel Spolsky about leaking abstractions? It’s the kind of idea that, the first time I read, about it, was intrigued, but after some time, I began to see it on every place. There are from time to time some problems on my Python code (as well as in other high-level languages) that I am really glad to be able to have an idea of the underlaying low level C, or I will be struggling with some very weird, confusing problems. I have enough confusing and weird problems… Read More

Migrating data to a new db schema with Django 1.2

This week I had to make a migration of data on a database from an old schema to a new one. The database is part of a Ruby on Rails application, so the changes are part of new features, and we have also taken the opportunity to clean up a little the database and make some changes to be more flexible in the future. As we want to be consistent, we need to migrate all the old data to the new database. After talking with people with more experience than me on Rails… Read More

Presentation “Use of Django at Jolt Online” at Python Ireland

Yesterday I give a talk about the use of Django in my actual position at Jolt Online Gaming. on the Python Ireland group  I talked a little, using one recent system as example, about our production configuration, use of Django on non-typical ways, work with the database and other tools we use related. At least there were a lot of questions and comments and some great conversation afterwards, so I think it was interesting for the people attending… So there are the slides (in PDF), in case anyone want to take a… Read More

The intelligent solution that turns to be unadequate

Recenlty I asked for advice on StackOverflow with a question related to sorting information on a Django application. I copy the question here: I’m trying to do something similar to this, in Django. This is part of the page of Anna: Pos NickName      Points — ———     —— 1   The best      1000 … 35  Roger         550 36  Anna          545 37  Paul          540 It’s a chart showing the scoring system, and it intends to show… Read More