Thursday, July 08, 2010

Please seperate configuration from code

When configuration and code are managed together it means that I can't test old code because it's configuration no longer matches the current environment. It is extremely frustrating when my assignment is to find a performance regression.

I guess this supports the idea that even in small environments where you control everything, you should support discovery in your code. You shouldn't have to tell it everything. It should be able to find out most of what it needs from the environment itself.

Wednesday, June 30, 2010

Mysql replication

Today I was working on a master-master replication setup and I couldn't get the slave threads to work. I could connect between the servers with the mysql client, but the slave threads couldn't connect. I finally found that although you can set a long password for a mysql user, the mysql replication will silently truncate long passwords before it uses them to log into the master server. So you set the password to one thing and something shorter is actually used. I ended up using a 10 character password and that worked fine.

Wednesday, May 05, 2010

Questions and Answers

I've been asking my self questions for a long time. This evening I thought of something:

There is somebody to do everything, but everybody must do something.

I think this will come to mean a great deal to me.