$theTitle=wp_title(" - ", false); if($theTitle != "") { ?>
It's a blog.
I ran into some trouble with the Mac’s Terminal not supporting vim colors properly. It turns out that Terminal doesn’t have very good support for some things. Someone recommended I try iTerm, so I did. I wish I’d done it sooner. And it implements the feature I’ve craved for the longest time: blurring the background [...]
Lately a lot of my work as a web developer has been way at the back-end, and, for whatever reason, it tends to focus heavily on third parties. I spent a while fixing a bizarre intermittent error with our credit card processor, moved on to connecting with Facebook, and am now working on a major [...]
Here’s a good one to have in your bag of tricks: all the time I wind up with a directory where I just want to delete anything older than a certain number of days. Here’s a pretty simple one: DELETE_PATH=’/var/backup/full_dumps/’ DAYS_TO_KEEP=’7′ for i in `find $DELETE_PATH -ctime +$DAYS_TO_KEEP`; do ls -lh “$i” #rm -vf “$i” [...]
I Googled that a while ago. How do you remove duplicate rows from a SQL database? (MySQL specifically.) If you have a ‘simple’ duplicate setup, it’s pretty easy, and lots of other sites go into great detail. (And in that case, you might look into how to require that fields be unique so you don’t [...]
Periodically I run into the situation where I’m trying to find a cron job on a particular machine, but I can’t remember which user owns it. At least on CentOS, it’s easy: cat /var/spool/cron/* will show all crons. The crontab command doesn’t seem to support doing this. The downside is that that command just mashes [...]
In: Computers|Cool Links|Ideas|OCD|Programming|Rants & Raves
10 Jun 2008This post christens my newest category, Thinking Aloud. It’s meant to house random thoughts that pop into my head, versus fully fleshed-out ideas. Thus it’s meant more as an invitation for comments than something factual or informative, and is likely full of errors… Aside from “time geeks,” those who deal with it professionally, and those [...]
In: Computers|Cool Links|Ideas|Interesting|Linux Tips|OCD|Performance|Programming|Rants & Raves|Uncategorized
10 Jun 2008From my “Random ideas I wish I had the resources to try out…” file… The way the “pretty big” sites work is that they have a cluster of servers… A few are database servers, many are webservers, and a few are front-end caches. The theory is that the webservers do the ‘heavy lifting’ to generate [...]
I don’t really remember precisely when I started using Linux, but I do distinctly remember December 31, 1999, around 11:55pm, sitting in front of my computer and seeing what would happen. (Absolutely nothing out of the ordinary.) I was in KDE at the time, back when they had a HUGE digital clock that looked like [...]
In: Computers|Ideas|Insanity|Living|Programming|Rants & Raves
17 May 2008I frankly don’t use AIM that much these days, but will often sign on and think, “Wow, lots of people are on tonight!” or, “Wow, almost no one is on tonight!” So I just wanted to list my thought process after noticing this: I’d be interested in seeing a graph of my “buddies” online over [...]
In: Computers|Funny|Insanity|Living|Programming|Rants & Raves
12 May 2008I’ve always been a little creeped out by some of the stuff on Craigslist. There’s pretty obvious prostitution and drugs going on, in addition to people seeking affairs. And if you read through the “personals” section (which is pretty entertaining), watch out for ones with pictures… Something they’re, uhh, graphic. So I went through about [...]