Archive for July 2009

Banana Oatmeal Bread

I made some very good banana bread tonight:

Cream 1 cup of sugar and a half cup of butter and a healthy tablespoon of honey. To that, add two eggs, a teaspoon of vanilla extract, 3 ripe bananas, a pinch of cinnamon and a pinch of nutmeg. Drop in 4 tablespoons of sour cream. Beat it silly. While that is mixing, in another bowl mix 1 cup of whole wheat flour, 2/3 a cup of AP flour and a cup of [...]

Read The Rest Of This Post

Salting Passwords in plain sight

Interesting method of creating a unique salt that can only be derived from the password being encrypted. If you used a salt created by an algorithm based on something known, an attacked who had access to the DB and the salting method could devise a cracking mechanism.

But with this, even if you have both of those you would still not be able to crack the password without trying every possible password against itself – a feat that approaches [...]

Read The Rest Of This Post

Forking PHP

Interesting code used to fork long running processes in php.

The first script, prefork.php, is for forking a given function from a given file and running n children that will execute that function. There can be a startup function that is run before any forking begins and a shutdown function to run when all the children have died.

The second script, prefork_class.php, uses a class with defined methods instead of relying on the command line for function names. This script has [...]

Read The Rest Of This Post