Data
This will be one of my few "happy" rants. I've known I wanted to be a code monkey since I was in high school. But if you'd asked me what I wanted to do back then, I'd have likely said "program games!"...
View ArticleVim: fun with filters
Vim lets you pipe text through an external filter. There are some obviously nice ways to use this in Linux, like :!sort | uniq which will sort all your lines, and then get rid of duplicate lines. But...
View ArticleRe-categorizing Lots of Wordpress Entries
I decided to add a "Gentoo" tag to each post in my WordPress blog that has a "Linux" tag on it now. Reason being that Gentoo is the only Linux flavor I use, and Gentoo deserves some lovin'.However I...
View ArticleVim brute force
In the end all code ends up as machine language. Generally the way to write effective code is to use a high-level language and let a smart compiler expand a tiny bit of high-level code it into a great...
View ArticleRuby on Rails migrations
I started a new RoR project recently, and for the first time tried using migrations. They're mildly acceptable yet I still find myself not caring much for them.The benefits of migrations as I...
View ArticleWordpress DB migration - encoding fun
Note to self. Using mysqldump to dump a table with latin1 encoding and then editing it and importing it into a second DB with utf8 encoding isn't a lot of fun.I found some instructions for properly...
View ArticleAdminer, where have you been all my life?
How do you view and edit data in a mysql DB? Lots of ways.There's always commandline mysql. This is how I do it around 50% of the time. But it could be better. ASCII-art table dumps are not the easiest...
View ArticleGoodbye Tokyo Cabinet, hello PostgreSQL?
The first version of this blog used MySQL; then I switched to Tokyo Cabinet. But now I've switched back to PostgreSQL. Here's why.Why did I switch to TC to begin with?There weren't any good ORM-type...
View Article