Ultimos Posts 1. 04/01/2012 17:21 - The Django gunicorn fabfile project Since I read about Green Unicorn, better known as gunicorn , a Python WSGI HTTP server that goes along very well with Django, I knew I had to try it, and trying it I did. And I liked it. There were many steps to make a server work but overall it was cleaner than other approaches, including the Django deployment using Nginx, Apache and mod_wsgi that I described long time ago. And ma... 2. 30/06/2010 09:45 - Drupal queries and the IN SQL operator One of the most used functions in Drupal's database abstraction layer is db_query , which allows passing an SQL string and corresponding arguments to send a query to the database. I'll give you a quick overview of how db_query works before showing you how to drupalize a query such as: SELECT field1, field2 FROM table_name WHERE field1 IN (value1,value2,...) Drupal database abstract... 3. 10/05/2009 22:29 - Keep your database in sync with MySQL and PostgreSQL If you write web applications you may already be using a version control system to keep code in sync between your servers, but what about your MySQL or PostgreSQL database? Sure, there is replication, one master database server with one or more slaves is a possible case, but that may be overkill for most simple projects. You just want to make sure the database is the same in your d... 4. 08/05/2009 11:58 - Markdown and url filter enabled I had noticed that many of your comments included urls but no link and I understand that not everybody is used to thinking and writing on HTML all the time, that's why I just enabled Markdown and a url filter to the comments textarea. Enjoy.... 5. 05/05/2009 10:49 - Is social media taking the comments away? It seems to me that everyday there are more discussions going on in Twitter and FriendFeed than in regular websites or blogs. I don't have numbers at hand or any other way to support this idea, and maybe I'm wrong, but I'd like to know what you think. Have you noticed less comments on your sites lately? Are Twitter and FriendFeed taking all the comments away?... |