Monthly Archives: July 2008

Adding Newlines with sed

By | July 3, 2008

Not realizing there was a surfeit of newline characters in a largish mysqldump file I was analyzing, I tried to open it in TextMate. After a few minutes of listening to the hard drive in my Mac thrash away, I had to kill TextMate. One obvious solution was to split it into multiple lines, but… Read More »

Setting HTML Input Field Focus on Load

By | July 1, 2008

It seems pretty simple, but still far too many web sites don’t set the focus on the input field that users are most likely to type into when loading a page. Let’s say you have a page with an HTML form with the ID login with fields named user and password. Here’s the HTML and… Read More »