Rails Woes
Getting Rails to work was such a bitch. Maybe I am just stupid or my server is a bit nutty, but it took me like two evenings just to get damn scaffolding to work.
I also realized I had used MEDIUMINT for my user ID’s in my database for the AOL searches, and the user id went beyond the MEDIUMINT limit…. so I am rebuilding the database as I sleep tonight.
On the good note, I found a nice little article on making screen have a tablike status bar on the bottom. It works pretty nicely. Check it out here I enjoy it thoroughly. Couldn’t live without my screen and my zshell *sigh*.
I’ve also been using sed a lot more. I had a lot of arduous tasks to do at work today and sed helped out. Maybe didn’t hurry things up very much, but it made it more fun for sure. Regexes are your friend. And so is REXML when you have to change a lot of Visual Studio vcproj files. I mean, sure, using ruby to alter a bunch of Visual Studio projects sounds like a terrible idea, but it works great. Project files are XML, so you can just read em right in to a document. The only issue I had is that we use post-build steps with newlines characters… VS.NET turns it into a type thing in one of the attributes. REXML reads it in as &#x0d…which is annoying. Yay for the function String.gsub!() I just put them back in their place like a good little attribute. Writing these scripts is turning projects that would take days of cut & paste work and carpol-tunnel syndrome into projects that take hours.
Writing a script to do something is always more fun than doing the actual something…..
