New language slogan

I was talking with a friend about programming languages and stuff. While he was complaining about a solution written in a shell script, I realize he was trying to blame the language for the poor implementation. That’s when I came with a new slogan for languages:

“Don’t blame the tool, blame the fool”

Edit 1: As MrKnife pointed in the comments, it seems it is not actually a new slogan. Anyway, I think my version is better. :)

Spiderman 3 pictures

Reading digg, I just found this site with pictures of the upcoming Spiderman 3.

Now, since there is some pictures and there is a trailer going around the internet, Once I said that Thomas Haden Church wasn’t looking as bad as Brock/Venon should look. Well, I take that out: every time I see a picture or trailer of the next Spiderman movie, I think he would be the perfect Brock. He is tall and looks mean, which is exactly what Brock is (apart from the psychological problems and a giant ego).

And, if you look really close, there are very few shots of Topher Grace playing his Brock part on pictures or the trailers. Try to guess why.

Wordy progress

After almost two weeks fighting PHP, I managed to finally have the page menus I want on my WordPress theme. Unfortunately, it doesn’t look as cool as I thought, but I still have some other things to fix and maybe some idea to fix them appear in the mean time. But I think this was the hardest part, so everything now should be a smooth ride.

Spam that doesn’t get marked as spam

For so many years, spammers have use tricks like using numbers instead of letters to avoid getting caught in anti-spam rules that, if they use the proper spelling, everything will pass without a problem.

I just got some email selling “viagra” (instead of “v1agra” or “villagra”) and it wasn’t marked as spam. :-/

Also, I don’t know why companies don’t go after spammers. Ok, Pfeizer may getting some money from those spammers that sell one of their products, but the name is on black lists all around the world, damaging their image. Why they don’t go after those guys that are damaging their image? Why the Nigerian government don’t go after those guys saying they are from “the former prime minister from Nigeria” for false identity? Why the ONU doesn’t go after the spammers that say they are from some office there and have some money to you?

Spam should be fight in real world, using real world laws. That would surely stop that crap.

Rocky Balboa

Not just about fights anymore.

IMDB Plot:

Rocky Balboa comes out of retirement to step into the ring for the last time and face the heavyweight champ Mason ‘The Line’ Dixon.

When you think about the “Rocky” movies, what comes to your mind? Probably the fight scenes. And I think that’s the good point about the latest movie: it isn’t about fight and fight takes just a few minutes in the end. Character building is really done now and it touches some subjects that may fit some. To me, they all fit.

First, you have the “leave the past behind” problem. Rocky is somewhat living the past, thinking about things that should have been buried long ago.

Second, you have the “being what you are” problem. All the time, Rocky is pressed to be something he is not. He has to stop doing what he felt inside because what other people would think and what the general society would expect from him. In the movie, he is old and no one expects him to fight anymore, but that’s something he has to do.

Third, you have the “shadow of our fathers” problem. Not really a Rocky problem now, but his son, that has to live under his father name shadow.

Finally, the Rocky movies came to an age and that’s probably the best movie of the series.

Chicken and egg problem with MySQL

Today, starting my local mysql installation…

070304 10:23:45 [ERROR] Fatal error: Can't open and lock privilege tables: Incorrect file format 'host'

That ‘host’ table is one of mysql system tables. This table contains information about what user can connect from what server (or something around these lines).

So, what now? Wait, MySQL has a tool called “mysql_fix_privileges_tables”! Alright, ‘host’ is a privilege table, so this should fix it, right?

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Got a failure from command:
cat /usr/share/mysql/mysql_fix_privilege_tables.sql | /usr/bin/mysql --no-defaults --force --user=root --host=localhost --database=mysql

Wrong. “mysql_fix_privileges_tables” tries to connect to the MySQL server and fix the tables. And I can’t run the server because the tables are screwed up!

programmer personality type

Quiz here:

Your programmer personality type is:


You’re a Planner.
You may be slow, but you’ll usually find the best solution. If something’s worth doing, it’s worth doing right.

You like coding at a Low level.
You’re from the old school of programming and believe that you should have an intimate relationship with the computer. You don’t mind juggling registers around and spending hours getting a 5% performance increase in an algorithm.

You work best in a Solo situation.
The best way to program is by yourself. There’s no communication problems, you know every part of the code allowing you to write the best programs possible.

You are a liBeral programmer.
Programming is a complex task and you should use white space and comments as freely as possible to help simplify the task. We’re not writing on paper anymore so we can take up as much room as we need.