School is a twelve-year jail sentence where bad habits are the only curriculum truly learned.
John Taylor Gatto
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 development, staging and production servers at a certain time, like after some major changes in code or before a new release.
Worry not my friend as you just need a few quick commands to keep your valuable data in sync. Yes, it's command line time again.
Why you should follow me on Twitter?
Your time is valuable and you need valuable content in your Twitter timeline. Here some reasons why you should follow me on Twitter:
- I just share knowledge and ideas that I think may be helpful for my followers.
- I spend a lot of time teleworking, programming, designing and consulting on Internet projects. Many useful thoughts from all that turn into tweets.
- I like to watch good movies, listen to great music and enjoy the best books I can find. Even if your tastes are different than mine you may find something worthy.
- I follow a very small group of very interesting people. You may find some very smart guys and gals thru me.
- Once in a while I may have a few questions that you could answer. I may retweet your answer and we both can help a lot of people.
- If I find your tweets valuable I may follow you. Many of my followers could do so as well.
- We can become good friends and possibly collaborate on a project later.
- I keep personal messages in private and won't clutter your timeline.
- I tweet in both English and Spanish. If you're learning either of those languages this is a good way of doing it.
- I try to keep updated on the latest news all over the world. You may hear it from me before you watch it on TV or read it on news sites.
- Finally, I have a good sense of humor so you can mock me and I won't send my goons to your house, or nearest ISP.
Wanna try? Follow me on Twitter
Versión en español: ¿Porqué debes seguirme en Twitter?
JaguarPC: a developers friendly hosting provider
I signed up for my first web hosting account back in 1998, a shared plan with 20 Mb. of disk space and five mailboxes running in a Windows NT 4.0 server. At US$ 72.50 per month it seemed like a good deal at the time.
Two months later, with a couple of hundred dollars less in my pocket, I started searching for other options. I moved from Windows to Linux and then tried many providers in shared, reseller and VPS plans.
In 2001 I leased my first dedicated server and started a web hosting business that grew to six servers and more than 500 clients in ten countries. In 2006 I decided to move on, sold the hosting business and bought a server for my own projects that I colocated in a Los Angeles data center.
During all that time I worked in dozens of web development projects hosted in lots of different configurations. Obviously, I've had enough of hosting experiences to know when a provider delivers and is developer friendly. JaguarPC is such a provider.
Why every web developer should buy a netbook
By the end of 2007 I decided to buy a nice little gizmo for my 6 years old daughther, a tiny 7" laptop manufactured by Asus called the Eee PC 701. Nintendo had started with the funny sounding names a year before when launching the Wii.
Many thought there was no space in the market for a new kind of laptop. Boy they were all wrong, a couple of years later we have a new category added to the usual desktop and notebook line up, there are netbooks all over the place and if you're serious about web development you should be ordering yours just now. This is why.
Five reasons blogging is killing good content
In the old days everybody making his life online knew content was king. The best sites were those with the most useful information and well written articles attracted loyal, often educated, audiences. Nobody cared about fancy Ajax based widgets, clicks on ads or lots of links to social networks and bookmarking services.
Indeed, content and good writing were important back in the oldies.
Then, around 1999, blogs became the next big thing and suddenly everybody was adding tons of garbage to the Web. King Content started a long and painful death in the hands of zillions of bloggers due to many reasons, I'd like to share just five of them. This is why I think blogging is killing good content.
Raising money for my next netbook
While I was writing a new article about why every web developer should buy a netbook in his arsenal, writing that happens using my tiny daugther's Asus Eee PC 701, I was quite tempted to buy the newest star in Asus line of netbooks: the Asus Eee PC 1000HE.
At US$ 389, with a 10" screen, 1 Gb. of RAM, 160 Gb. hard disk, improved keyboard and the promise of more than 9 hours of battery life looks like a great deal.
I had it already in my shopping cart but then I made a few numbers and decided not to complete the checkout. The reason? I have two daughters now. Beatriz is seven and lovely little Catalina arrived just a couple of weeks ago.
Obtaining the much desired wife acceptance factor of one is more difficult than ever and the finance crisis, worldwide now, doesn't help either.
So, what a man/web developer/father's got to do? Well, ask for a little help from his friends, I guess.
I've created a Chipin account to raise the funds for my new Asus Eee PC 1000HE, see the nice widget above. I'm sure some of my articles may have helped some of you in the past so if you want to put a few bucks in the tip jar I would really appreciate it. Let's see how it goes.
8 Funniest websites to enjoy wasting your time
Come on! Admit it, you spend endless hours in front of a computer, really love what you do and are a geek but once in a while you need to escape from all that work and relax a little. Here's my take on the 8 funniest websites I use to get my daily fix.
Warning: start reading late in the afternoon or you could lose your whole day.
Some lessons from building Drupal 6 themes
After a few Drupal 6 projects where I had to create themes from scratch, including my recently released Woodpig theme for Ventanazul I've learned a lot and decided to gather some tips I'm sure will help you, my fellow Drupalist, when turning your next design into a functional Drupal managed site. Sounds good? Let's dive into the powerful Drupal 6 theme API.
Welcome home Woodpig
That's a freaking lot of time, really, but as anybody who does web development for a living knows it's sometimes difficult to find the time for your own projects when you are working in clients' gigs. Besides, I wanted to theme my site according to a very specific set of rules that kept changing over time, common problem, I know.
First, I decided to move Ventanazul from a simple blog format to a more niche community site, a site for people working in professional web development, that meant I had to enable account registrations, forget about vBulletin and rethink about the quality of new content and the profile of users to approve (users have to be manually approved and all comments are moderated).
Defining the goals and information architecture of the new Ventanazul took a few months while I gathered ideas from a lot of sources, like sites I enjoyed and projects I was working on. That led me, after many hours with Gimp, to the final mockups of the new design. In the meantime Drupal 6 was out and I had to invest time on learning a few new tricks.
It was the perfect timing as I started working on projects for a couple of clients that required moving to Drupal 6 and using my upgraded theming skills. For Ventanazul's redesign I used many of the new nice features of Drupal, I found the preprocess functions very helpful for separating comments and their form from node content, they usually come as a whole in the $content variable of the page.tpl.php template.
The theme can be considered as a 0.9 version and I know there may be a few small bugs around that I'll fix on the road but I wanted to release and start getting feedback as soon as possible, well, two years is not really soon but you know what I mean. I have a small set of additional features cooking for a future release and may come with some other ideas. As should be the norm in 2009 the markup was built thinking in modern web browsers that respect web standards so I didn't waste time on Internet Explorer 6 bugs or horrible hacks.
Emacs or Vim as a programming editor (part 3)
This is the final installment in a three parts series about Emacs and Vim as programming editors. I've discussed Emacs in the first part and Vim in the second one. Let's see now which one I choose as my favorite tool for editing source code, and frankly everything else.


Recent comments
19 weeks 2 days ago
19 weeks 3 days ago
19 weeks 5 days ago
21 weeks 9 hours ago
22 weeks 4 days ago
24 weeks 2 days ago
24 weeks 5 days ago
26 weeks 1 day ago
26 weeks 1 day ago
26 weeks 5 days ago