Changing domain in wordpress


So to at least make an effort at testing the wordpress upgrade to make sure no one’s blog theme/widgets ended up completely broken I made a beta site. Since wordpress stores the URL of its blogs in the database this was initially problematic. sed and mysqldump made it a quite easy transition though.

Dump your database:
mysqldump wordpress -p | mydatabase
sed ‘s/blogs\.dootdoot\.com/new\.domain\.here/g’ mydatabase > mynewdatabase

Then import back into mysql, change your wp-config.php domain and things should be cricket. This probably could be filed under “stupid simple” as far as location changing goes.  Although I should add that if you were trying to move to a type domain, wordpress ignores the www

Random bug is random


Ran into the following bug today:

Warning:  popen(/usr/bin/rrdtool info
[function.popen]: Cannot allocate memory in
/www/cacti/htdocs/lib/rrd.php on line 97

Too much googling lead to :

So the bottom line is that even in the open source world odds are you’ll be hearing “Fixed in the next version”

The Sys-admin alphabet


I was skimming through evilrouters today and ran across this. Some of you will find it humorous, if your major didn’t include the word computer you may as well stop reading now though.

"A" is for Arrogance, properly done.
"B" is for Bastard, the New Zealand one.
"C" is for Cynic, jaded and tired;
    it's also for Caffeine, which keeps us all wired.
"D" for Delete, we'll do it to you;
"E" for 31337, the skr1pt-k1ddie's due.
"F" is for Format(1M), we use it on disks,
"G" is the middle name of the guy who does RISKS.
"H" for the Hubris that makes lusers luse;
"I"'m the Important one, the person who su(8)'s.
"J" is for Jaded, see "C" above;
"K" is for Kill(1), a command we all love.
"L" is for Luser, the sysadmin's bane,
"M" with a "4" keeps the mail gurus sane.
"N" is for No, whatever the question,
"O" is for Octal, the way of permissions.
"P" is for Password, have you changed yours lately?
"Q" is for Quotas, which simplify greatly.
"R" is for Random, a most useful quality,
"S" I can't tell you, it's against policy.
"T" is for TECO, a very old editor,
"U" is for Unix, which has no competitor.
"V" is the System whose Release 4 we wrestle with,
"W" is for W(1), to see who(1) we nestle with.
"X" is the windowing system from Hell,
"Y" do we use it?  The rest suck as well!
"Z" is for Zero, indicating success
    It terminates programs -- and alphabets, yes.



I’m going to start out pretty basic and probably stay that way. The goal isn’t to be able to do super complicated things, its to be able to make a lab environment for CCNA study. I won’t be getting around to using anything PIX for at least a few weeks so if that is your interest I suggest going to the article I mention at topdog. Most of the people I know use windows, I chose to run dynamips/dynagen from my linux machine simply because its easier for me to remote into that, or was at first anyway. To start off, get dynamips/dynagen installed and the dynamips service running. The best Centos guide I’ve ran across is the following so most of this will be cut from Andrew Colin Kissa ‘s howto at Initial Setup Linux(Centos 5): Since I used the pre-compiled RPM’s from topdog and it worked perfectly I’d stick with what works.

Read the rest of this entry »