-
Archives
- February 2010
- October 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- November 2007
- October 2007
- September 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005
- September 2005
- August 2005
- July 2005
- June 2005
- May 2005
- April 2005
- March 2005
- February 2005
- January 2005
- December 2004
- November 2004
- October 2004
- September 2004
- August 2004
- July 2004
- June 2004
- May 2004
- April 2004
- March 2004
- February 2004
-
Meta
Monthly Archives: May 2006
Delinquent Daddy Strikes Again
I gave up hope weeks ago on posting any baby updates of substance. I’m just too far behind. So for now, lest all written records of her recent activity be lost, here’s a quick list of what comes immediately to mind.
- She can jump (barely — it’s a two-year-old skill) and first showcased this while we were at the beach.
- She’s terrified of the ocean and will cling to you for dear life and climb up your very body in order to avoid being put down prematurely. Eventually, she warms up to playing in the sand and being walked (clinging very tightly to you) in the shallows. Once or twice, we actually got her in the water briefly, but further exploration of the beach will likely wait until next year.
- She’s turned into a big swimmer. Terrified as she was of the ocean, she was proportionally enamored of the swimming pool, to the point that we went out and bought her a life vest so she could have a little more freedom.
- She counts to ten in the proper sequence without skipping any numbers and with verve.
- She speaks in complete sentences and has brief conversations.
- She’s begun to express opinions (“no, blue cup” and “purple pants”).
- She apologizes (after bumping heads, “I’m sorry, Mama”)
- She asks for “tiny baby,” which is our cradling her in our arms like an infant, often while holding a sippy cup up for her like a bottle.
- She’s a great singer and can sing most of the alphabet pretty reliably, though with more emphasis on tune than on articulation.
- She knows concepts like “inside” and “outside” and “light on” and “light off.”
There’s gotta be more, but there’s a start. Continue reading
Posted in Baby
3 Comments
Would you like to make your life on the web easier?
So, let’s just pretend for a moment that there was a link you wanted to send to someone that had an insufferably long URL. So you try to paste it into your email program, but the person you were trying to send it to couldn’t view it because their stupid email program cut the link off. And what ensues is a ridiculous six-email-long conversation in which you say things like “no, backspace but then add a percent sign, and then copy — yeah, control C — and then paste — I think it’s control P — oh, crap, you did a backspace?” And so imagine that you could just say “go to http://shrtlnk.com/daryl/beach” to show off your beach photos otherwise available at an oppresively long url. Would that be useful?
There’s at least one site that provides a similar service (tinyurl.com). Unfortunately, it shackles you to its random url scheme. That is, instead of the short and semantically useful http://shrtlnk.com/daryl/beach or (if you’re logged in) http://shrtlnk.com/beach), it might force you to use something like http://tinyurl.com/g8lrz. But something like http://shrtlnk.com/daryl/beach might be more useful to you and your friends. And something like http://shrtlnk.com/daryl might be a useful as a way of organizing the things that your friend daryl is linking to. Is this something you might find useful?
If you were a Firefox or a Flock user and it were easy for you to click a button, apply a label, and passively share a long-url’d link with a friend, would you do it? Continue reading
Posted in On_the_web, Tech
2 Comments
Backing up Windows Documents on Ubuntu Linux
I wrote earlier about getting a hard drive added to one of my Linux boxes so that I could do backups. I’ve been meaning to get backups in order for many years, but it’s been more urgent since about 10 months ago (yeah yeah, must not’ve been too urgent if it waited that long), when I lost all the data on my laptop and had to recover what I could from a backup I had manually made some months before. More precious than most of the data I might have lost in that case are the photos and videos we’ve accumulated of Lennie over the past two years. When I had to send Mleeka’s laptop in to the shop a few months ago, I made an effort at dumping her files onto a Linux fileshare, but it wasn’t terribly successful, it wasn’t easy, and it wasn’t a long-term, self-sustaining solution. My project tonight was to put such a solution in place.
Backing up from Linux to Linux is simple, and I’ve had that going for several days. You just run rsync as a daemon on the fileshare, create a module, put the client’s public ssh key on the server, and run a cron job on the client that pushes to the module. All I had to to today to make this work on the new disk was move the files from one disk on the server to the other, edit the module in /etc/rsyncd.conf to reflect the new path, and restart rsync. Nothing to it.
Backing up the Windows box has been somewhat more challenging. I spent a few hours wrangling with a couple of different options for running rsync clients and daemons on the Windows laptop. I kept running into problems with weird Windows path issues, Windows firewall issues, other connection issues, permissions issues, and so on. It was very frustrating. Finally, I read a suggestion that one just mount the Windows directory on the Linux fileshare and then rsync locally. Simple and brilliant!
Ubuntu Linux appears not to ship with smbfs enabled, so after getting errors with the mount, I issued “apt-get install smbfs” to get that module. Then I did the following to create a mountpoint and a share:
mkdir /mnt/laptop_mleeka
mount -t smbfs //server/sharename /mnt/laptop_mleeka
This is of course after right-clicking properties on the My Documents folder on the Windows laptop and sharing the folder as “sharename.”
Once that was mounted, I issued the following:
rsync -a /mnt/laptop_mleeka/* houston@localhost::mleeka_bak
In this case, “mleeka_bak” at the end of the command is an rsync module I set up that manages permissions and file locations for the sync. The initial backup is running as I type. I understand that samba mounts are pretty slow, so it’s taking a while to haul the 9 GB of data across even my local network. Luckily, rsync is incremental, so in the future, it’ll sync only differences between the file systems.
All that remains is to add the mount command to /etc/fstab so that the server tries to remount the drive in the unlikely event of a reboot and to toss the rsync command itself into a cron job so that the backup takes place nightly. Continue reading
Posted in Linux, Tech, sysadmin
Leave a comment
Adding a hard drive to a Ubuntu Linux box
Dilemma: I’ve got an old desktop system with less than 20 GB of disk space. On that system, I wanted to store backups of my laptop and our photos of Lennie. I also wanted to use it as a machine that will allow me to build software from time to time (which can take up a few GB of disk space). Without even starting backing up the many GBs of photos yet, I’ve nearly filled up the 20GB, and that’s after deleting a bunch of stuff. I happen to have another desktop system that has been on its last legs for a while, but it’s got a 65 GB hard drive.
Objective: Put the 65 GB hard drive in the working desktop system and make it operational.
Dilemma 2: I don’t really know anything about hardware. I forged ahead anyway, though, and I got it working. Here’s how.
Disclaimer: I did this on a Ubuntu Linux box. I have no idea how it’d go on any non-Linux box (so don’t ask). If you try these steps and you or your computer blow up or become otherwise harmed or incapacitated, note well that by reading further, you’re asserting that you’ve proceeded at your own risk.
- Remove hard drive from dying computer. (This is pretty straightforward and doesn’t merit more detailed instructions.)
- Read the back edge of the hard drive (the part with the pins) to figure out how to make it a slave so that the computer doesn’t get confused when it tries to boot up with two drives, This usually involves pulling a little plastic tab that slips over two pins off and sliding it back down onto two other prongs. I learned this the hard way by installing the drive, having the computer fail to boot, and remembering that something like this had to be done, whereupon I consulted the back edge of the hard drive.
- Install the hard drive in a free bay in the working computer. This is pretty straighforward and, like initial removal, will require a screwdriver.
- Cross your fingers that you’ve got the necessary cables available in your working computer’s case. If you don’t, you should probably consult some other guide. I was lucky. One cable is a ribbon cable with a plastic component that will receive the long array of pins on the back edge of the disk drive. The other is a little bundle of colored cables capped by a white plastic piece. It’s got four or five holds in the back for receiving pins. These plug into the obvious spots on the back edge of the disk drive.
- Now boot up. The computer should boot as it did previously.
- Get a terminal window open. If you don’t know how to do this, you probably shouldn’t go any further.
- Find out what the disk is named. The following command will give you some output about your disks and partitions. You should look for one that’s the same size as the disk you installed and one that’s not listed in the output of the command “df”. If you don’t see one, something went wrong with the hardware install and I probably can’t help you.sudo fdisk -l
- Make a directory to mount the drive on. I used /bak: Sosudo mkdir /bak
- Now give your user permission on that directory. You might have to do something more involved if you need to allow more than one user to access the disk. This works for me, though.sudo chown -R houston /bak
- Now partition the disk using fdisk. This is weird if you don’t know what you’re doing. I’ll walk you through my steps, which may or may not be the best to have taken.
- First do the following command, which takes you into a little interactive prompt (where /dev/hdb is the disk; note that it differs from /dev/hdb1, which I guess represents the partition on that disk; also note that you should substitute your disk identifier as above):sudo fdisk /dev/hdb
- At the command, enter “d” and then “1″ to delete the first partition on the disk. If there are other partitions, delete them as well.
- Then press “w” to write the changes to the disk and exit. This’ll probably take a few seconds or minutes.
- Next do sudo fdisk /dev/hdb again (substituting your disk identifier)
- Press “n” to add a partition. Chances are that you want just one, in which case you can just accept the defaults in the ensuing prompts.
- Then press “w” to write the changes to disk and exit.
- Now format the new disk as an ext3 disk. Note that the /dev/hdb1 below is the same as what I discovered in step 7 to be my new disk. Substitute your value there.sudo mkfs /dev/hdb1 -t ext3
- Ok, now you’ve got an ext3-formated disk with one partition. All that’s left is to mount it so that it can be used. To do this, edit /etc/fstab and add the following line to the end (again, substituting the drive identifier and directory the disk should be mounted on in columns one and two):/dev/hdb1 /bak ext3 defaults 0 0
- Finally, typing the following command should mount the drive so that you can begin writing to it (substitute your path if needed):sudo mount /bak
- Since we added the entry to /etc/fstab, the drive should come back mounted on reboot as well.
Posted in Linux, Tech, sysadmin
5 Comments
News, Feeds, RSS
This is hopefully a precursor to something I’ll eventually blog at my work blog. I wanted to solicit feedback from a not-as-technical crowd as the crowd that tends to read that blog, though to be honest, of the five of you who read me on a semi-regular basis, a solid two are at least as technically-inclined as I am, so this isn’t the best sampling either. Anyway, I’d love to have some responses to a couple of questions I’m about to pose. Email me or add a comment to this post. Respond without Googling around to try to find an answer. If you’re a geek, please don’t add any spoilers to the comments for those to whom this stuff may not be second nature. So, the questions:
What do you think “news,” “feeds,” or “RSS” are in the context of web content? If you have at least a vague idea of what these are, do you find the idea useful?
Thanks for any feedback. Continue reading
Posted in Tech, flock
2 Comments