muddylemon

Using gmdate()

Recently at work I came across an odd bug involving gmdate(). A client wanted us to post some information to them including two fields: sourcedate and sourcetime. The values are really just the time when we're sending the information to them.…

Read Later Pile - Exploring Spl Interfaces

In an attempt to shed some light on and to draw attention to SPL, I plan to post several articles discussing various parts of this extension. I will start with SPL Interfaces so that you can grasp immediately the usefulness of the SPL.

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…

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…

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…

The honeymoon is over

I don't think the dog has gotten a decent nights sleep in a week. The cat thinks it's tail is an excellent toy that moves in such an enticing manner. She's remarkably mature about it. The dog just gets up and moves with a look of tired irritation.…

Mark All As Read

You know you've been busy when google reader stops estimating how many unread items you have left. I think it's time to declare rss bankruptcy.

Simple Rule #2

Generally, email sent marked as urgent, is not.

Simple Rule #1

Software releases do not require a blog post. Also, using an exclamation point to declare "PHP 5.2.10 Released!" is just silly.

Protip for the bilingual

If you speak spanish, always choose the spanish language option when calling customer service lines. It's a smaller market and you're likely to face less waiting time before speaking to a CSR. If you aren't - try it anyway. The CSR probably speaks…

The New Kitten

If I had to guess my dogs reaction to bringing a new kitten into the house, I would have many ideas. One I wouldn't have is that the dog would be as thrilled as a five year old on christmas. Abbie was instantly fascinated by this little creature.…

obfuscate()

Today, as I was slogging through a huge morass of uncommented, undocumented report producing code I found my new favorite function: function obfuscate( $str ) { return $str; }

Bing is not google (but it sure is acting like it)

I was mildly impressed with the launch of bing.com this week. It does seem to deliver what's promised much more than WolframAlpha did. However, I think it's a dangerous road that google and now bing are following. They purport to offer more relevant…

new host

I moved to a new host, so things might be wonky. wonk wonk.

where the sun don't shine

Late last night I went to the hospital to pick up max. His mother is having his little brother sometime around now. He really didn't want to go. He kept crying ""I can't leave now! I see baby jackson!"" It took awhile to convince him to go. His…

movie reviews by chile

Tom and Jerry: The Magic Ring ""Mouse run and cat CHASE him!"" Chicken Little ""Has chicken... and PIGGY!"" Valiant ""It's chicken movie... no pigeon... eagle!""

ode to joy

there is probably nothing as wonderful in this world than watching max dance to the song at the end of ""Dora the Explorer.""