Can't Seem to Remember
May 05, 2006 by Eric Richardson
I always forget how to rename a bunch of files at once, and I always end up having to ask pcg. This time I'm recording it so I remember next time. :
for i in *.jpg ; do j=`basename $i .jpg` ; mv $i $j.gif ; done
Or:
j=`echo $i | sed 's/.jpg/.gif'` ; mv $i $j ; done
Now I know where to look next time I forget.
Riding to the West Side
May 03, 2006 by Eric Richardson
I rode my bike the 0.55 miles into work this morning. That always feels a bit odd to do. But the bike wasn't for that trip, it was for the one I'll be making this afternoon when I ride from Downtown to Loyola Marymount (GMap Pedometer, or for Google Earth).
It's roughly a 15 mile ride, so even in my out-of-shape state I think I can make it there in an hour or less. And it's a good thing, too, since if I were to decide to take public transit the quickest the Trip Planner thinks it could get me there is in an hour and a half. It wouldn't help me figure out how long it would take going Blue to Green to a bus, so that could possibly be a little quicker.
The best part of all? I get to ride there but not ride back. I swear, if you send me on a 15 mile ride with 15 miles back I'll be a lot slower than if I just set out to ride 30 miles one way. Something about coming back and I just don't get along.
Server Upgrade: Up and Running
April 18, 2006 by Eric Richardson
The new server is now handling web, time, DNS and email (including an IMAP setup I've never had before). I've got the third drive installed, so I just need to finish copying everything off and then format it and add it into the volume.
It's way past my bedtime.
Server Upgrade: newbit up
April 18, 2006 by Eric Richardson
So first I fought the hardware, spending way too much time in the BIOS before discovering that one of my sticks of RAM is bad (or at least the BIOS won't post with it, but will with the other two).
Then I fought the debian installer as I tried to create RAID and lvm.
Finally, though, everything's working there:
eric@newbit:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/group1-main
114G 598M 113G 1% /
tmpfs 253M 0 253M 0% /dev/shm
/dev/md0 1.8G 39M 1.7G 3% /boot
tmpfs 253M 116K 253M 1% /dev
The 114G partition looks weird, but it'll make a lot more sense once I'm able to put the third drive in. I want to do RAID-1 on three 250gig drives to get 375gig usable space, and that requires a pretty fancy game to get up when you first need to copy data off one of the drives before you can use it.
Now to actually install software.
Server Upgrade: Step One Complete
April 18, 2006 by Eric Richardson
This blog and blogdowntown are now running off my laptop. I'm copying a bit of leftover content off my desktop, then I'll be yanking the 250gig drive out of it.