Archive for July, 2007

Safari and Firefox multipart form submission differences

Monday, July 30th, 2007

I just stumbled on a strange difference between submitting multiparts forms via Firefox and Safari. When a file isn’t selected and the form is submitted, Firefox sends the variable name with an empty string as the value. Safari doesn’t send the variable at all. This caused an unexpected problem in Rails when I was checking if the variable was an empty string or not. I honest would prefer to check if the variable is nil or not and if its not nil I’d know the file was sent. I checked for an empty string because Firefox sends the variable. Not my code has to also check if its nil and if not then check if the filename is not an empty string. Lame.

Easy website color palettes for the artisticly handicapped programmer

Monday, July 16th, 2007

I’ve started doing more web design work lately and as such am in frequent need of decent color palettes for my sites. Unfortunately I’m not keen on developing them myself. I can tell which ones I like and which ones I don’t but creating the palette is difficult for me. Luckily there are people out there that are good at blending colors together so they look good. I did a quick search and came up with a nice site that I really like. Its not spammy and it has tons of palettes to choose from. They are searchable and easily display the hex for each color in the palette so its a simple matter of copy and paste into my css file. Colour Lovers is the site and I suggest you take a look if you’re interested in finding some good color palettes.