Posted on Mar 2, 2006

Mail.app “Sent Messages” corruption problems

If it wasn’t for the fact that Thunderbird felt so sluggish in OS X, I’d ditch Mail.app (hereby known as Mail) right now. I just spent hours and I mean hours trying to figure out what was wrong with the “Sent Messages” mailbox I store on my imap server. Messages for the last 7 days were not appearing and to top it off, messages from 2002 were appearing either as duplicates or as something other than what the subject line said. Obviously it was having some serious issues reading the file and I thought things were bad, bad, bad I tell you. Then I realized how if I coped “Sent Messages” to a new file called “Sent2″ and read it in Mail, all my messages appeared properly. To top it all off, Thunderbird was reading everything just fine! Why must Mail be so finicky?

The end problem was that my mailbox file (which I keep in mbox format) was a little too unorganized for Mail to properly read. Normal people probably will never have this issue but because I’ve migrated from multiple mail accounts over the years, messages from 2003 come before messages from 2001 and then 2006 is just clumped together here and there. It’s a mess but technically, it should not matter because a mail application just reads these items while sorting is done locally by the applicaiton — not on the server. Guess not in Mail’s case.

Fix: I loaded Thunderbird, moved all “Sent Messages” to a new folder called “Temp” then moved them back to “Sent Messages” in hopes that it would slightly reorder the contents of the file. It did, and now Mail is happy and I can continue using Mail. Sheesh.

Posted on Feb 15, 2006

Mute terminal.app in OS X

And so my search begins. For the life of me, I cannot figure out how to prevent Terminal.app from beeping at me whenever I make an error. It’s seriously annoying, and I don’t want to find an alternative application, I just want to mute Terminal.app.

Posted on Mar 8, 2005

PHP random password generator, randomPassword.php

I wanted to be able to control the strings a random password generator used and couldn’t find anything that let me use only the strings I specified. While it might not be completly random, I’m not a big fan of having []‘s or / or ? or any other ugly characters. I just like having the abc/ABC/123/!@# combinations.

Posted on Dec 23, 2004

Proper method for unlimited form inputs in a user interface

You probably don’t notice how counterintuitive some forms are, but in one of my new projects I needed a method to properly maintain an unlimited amount of relational data in a html user interface. I couldn’t find any tutorials or examples that properly managed (at least in my mind!) an unlimited amount of data so I created my own.

There’s very little involved to accomplish this. No funky php — just a little bit of javascript concatenation. I’d like to prevent the data from having to be hard-coded in the javascript function but I can’t come up with a method that prevents it for now.

Working example and howto.