October 2007
Monthly Archive
I’ve got a new update for the search plugins I wrote for the World of Warcraft Armory. Blizzard changed the search results URL slightly and that broke my old version. While I was at it I added a general search (all realms) that might work for Taiwan and Korean realms.
If you’re a new user, the basic idea I’ve used is that sometimes people want to search all realms for a character name but usually you want to look for a character only on a specific realm. Looking on a specific realm is a lot more useful since most of us only play on one realm or at most a few. You can install the realm-specific search for each of the realms you play on and the name shows up when you pick which you want from Firefox’s search box.
The search plugin shows up on the top right corner of Firefox. It might also work on Internet Explorer 7 since it’s written as an OpenSearch plugin. It doesn’t add anything to the browser except this new search engine provider - it’s not as big as a normal Firefox add-on.
Read the rest of “Updated Firefox Search Plugin for WoWArmory.com”…
Tue 30 Oct 2007
Filed in
Firefox,
Asterisk,
VoIP
1 Comment
Something came up a while ago on Slashdot about taxing Internet service in the US and the idea that VoIP would be excluded in a new bill that extends the tax free status of Internet access. As usual most of the details of the proposed law are completely lost in the movement from the bill as it’s written to Infoworld to Slashdot. In the course of discussion when I asked about how to see the bill itself, someone kindly provided a link to Thomas, the legislative information resource at the Library of Congress. Unfortunately the search results there aren’t RESTful - there’s no way to get a permalink to HR 3678 (apparently the bill in question). Anyhow, after looking up that bill and seeing the sponsors I thought it would be informative to look up the politicians named on the bill at Open Secrets and see who funds their campaigns.
There were a number of names and what I found was interesting in relation to the changes outlined in this bill. I’ll just quote the reply I made on Slashdot.
Read the rest of “The Bill to Tax VoIP”…
Mon 29 Oct 2007
Filed in
Scripting,
Linux
1 Comment
It seems like the shorter the code is the longer it takes to write. I’m trying to rename a group of similarly-name directories using Bash and for no good reason I decided I’d like to do it all on one line. There are a bunch of ways to do it, not all fit on a line and some are more efficient than others. There’s apparently a package out there called mmv that I haven’t looked for which does stuff like this. There’s also sed. With sed I got something close:
Read the rest of “Moving Multiple Files in Bash”…
I started out talking about SMART and drive temperatures the other day but got all geeked out about hardware and forgot where I was going. I meant to also talk about how I tried to just spin down my older Western Digital ATA hard drives to give them a chance to cool off.
I looked at the hdparm, I saw some comments on forums saying it could be used to set a time delay to spin-down a hard drive. Read the rest of “Spinning Down Hard Drives in OpenSuse 10.3″…
Thu 25 Oct 2007
Filed in
Computers,
Linux
2 Comments
One thing I’ve noticed since upgrading my system to OpenSuse 10.3 is that my 3 older Western Digital 160GB drives (specifically 2 WDC WD1600JB-00D and a WDC WD1600JB-00F) run really hot. Like 120 degrees Celsius hot. I get this information from smartd or smartctl. It leaves scary log messages like
Oct 24 19:43:18 copper smartd[4479]: Device: /dev/sda, SMART Usage Attribute: 194 Temperature_Celsius changed from 120 to 116
The drives do get hot to the touch but 120°C sounds really hot. It is possible that the sensors aren’t accurate. It’s also possible they’ve been reporting high temperatures ever since I installed them around five years ago. See, until I installed OpenSuse 10.3 I never saw the SMART data. I could also guess that the information just isn’t accurate for my system. So to test these ideas out I ran smartctl to see what it had to say about all my drives. Three are the WD drives I mentioned and the fourth is a Seagate SATA drive.
Read the rest of “Hot Drives: Dealing with SMART data on OpenSuse 10.3″…
Wed 24 Oct 2007
Filed in
Scripting,
PHP
1 Comment
I will one day come up with a better way to show PHP in my blog but in the meantime I’m not going to let that stop me from sharing a handy script I put together yesterday. I grabbed most of the code from examples on PHP.net but the examples as they were didn’t do what I wanted.
What I came up with is a short PHP script that shows the DBA handlers available then dumps the contents of the database file specified in the $db variable up at the top. It uses the “db4″ handler, you can change that (and whatever else) to suit your needs. I made this the other day just to have a look in some of the LDAP database files that I was messing with yesterday.
So here’s the BDB dump script as text. Download it, rename it as .php and enjoy.
When I upgraded from OpenSuse 10.2 to OpenSuse 10.3 I should have backed up my LDAP database as LDIF before I started. I didn’t do that of course but I thought maybe I could just copy the database over and tweak the config file in /etc/openldap/slapd.conf. The OpenLDAP server, slapd, can be configured to use a few different backends for storage. The most common seems to be a Berkeley Database. On my installation the database resides in /var/lib/ldap. There are a bunch of files there, it looks like a couple log files, a DB_CONFIG file and several database files (they have the extension .bdb).
I don’t have exact step-by-step directions for how I fixed it but I’ll go over the highlights of what worked for me.
Read the rest of “Upgrading my OpenLDAP BDB Backend for Suse 10.3″…