08 July 2008

First vegetable


Tonight at dinner we offered BabyBoy his first vegetable after he ate some rice cereal. He took a few spoonfuls of sweet potato (pureed baby food, of course), and then decided he did not like it. The look on his face was priceless. I wish I had caught it on camera.

Photo by Carl E. Lewis and used by Creative Commons Attribution License.

07 July 2008

My first Ruby script: finding duplicate photo files

I've started on the large task of organizing my digital photo files. My disorganization stems from a couple of things. First, when I began using a digital camera, I used iPhoto. I don't really use it now. But I've noticed that iPhoto makes some duplicate files. Second, I think I have duplicate files from backups and from migrating from old machines to new ones. Compounded with the fact that most of the files begin with DSCN or DCP, it is a mess. So, to help me get started, I thought I would write a script that would create a report of any duplicate files and their locations. Also, since I'm about one third of the way through the Everyday Scripting with Ruby by Brian Marick, I know just enough to be dangerous. After a couple of evenings of blundering my way through this, I finally have my first Ruby script.



To call this script, you can pass in a list of directories, or it will default to the current directory.

06 July 2008

TextMate

I have started using a nice Mac OS X text editor called TextMate, and so far am liking it very well. I'm working with the 30 day trial before deciding whether or not I want to buy it. It comes with support for many languages. I like that you can execute shell commands from within TextMate itself, saving time from flipping back and forth between applications. I also like the collapsible code blocks. This was a feature I loved about QAPartner/SilkTest, and it is nice to see that here.

One thing that did take me a while to figure out was how to get TextMate to recognize environment variables. It turned out that I had no .bash_profile configured in my home directory, and TextMate sources this before it runs a script. So, in my case, I needed for TextMate to find Subversion. I created the following .bash_profile in my home directory:



[ -f /etc/profile ] && . /etc/profile
[ -f ~/.bashrc ] && . ~/.bashrc

export PATH="/opt/subversion/bin:$HOME/bin:/opt/local/bin:$PATH"


After restarting TextMate, I was able to call svn from within my Ruby scripts inside of TextMate.

05 July 2008

Second tooth


While we were busy being sick with the stomach flu a few days ago, my son was busy cutting his second tooth. We finally got a chance to take a photo of that today.

04 July 2008

Happy 4th of July

Today we went to a 4th of July parade in my neighborhood.

03 July 2008

Baby babbles

My son is getting very expressive in his vocalizations. I tried to capture a few of them. Both are about a minute long. Here he is before bath time. He's starting to get a little tired:





And here he is after bath, on the changing table:




By the way, I'm still new to the embedded flash mp3 player idea. This player I'm using on this post was the first that seemed really simple. So, if anyone can suggest a good player, please leave me a comment. Thanks!

02 July 2008

Roly-poly time


Hi. I'm new here to this world. Literally. I'm giving my mommy a blogging break today. That stomach bug I gave my parents was quite vicious. It was so bad yesterday, they asked my super-duper friend J to watch me for the afternoon at his house. I had a great time. I got to do tummy time, which is now officially called roly-poly time, because I'm so good now at rolling over both ways. This is a picture of me showing how good I am at this. I also got to play with neighbor W. I took a nap in the car and then I woke up at Luby's which was strange. Then I started getting cranky just in time for my bath and bed time. Mommies were feeling much better and glad to have me home. Thanks J for being such a great friend to us. We love you.