Software Engineer

Jason Hancock

last update:

dexter

sudo /etc/init.d/dexter start Starting dexter [FAILED ]sudo echo"birth-type=cesarean">> /etc/sysconfig/dexter sudo /etc/init.d/dexter start Starting dexter [OK ]sudo /etc/init.d/dexter status Process "Dexter Brian Hancock"started at 2010-08-17 19:55:00 Length 22inches Weight 7lbs. 15.4 oz.

interviews

Had a good interview yesterday with a company in Beverly Hills. The drive would suck, but it might be a good opportunity if they decide to call me back. Have a phone interview set up for tomorrow with another company in Culver City. Hopefully that one will also go well. Laura is getting pretty anxious about giving birth and I don’t blame her. We’re both ready for this part of the journey to be over so we can begin to get to know our son.

I entered the workforce shortly after I turned sixteen years old. Since that time, I have never been without employment. The company I was working for closed shop today and laid everyone off. I’m feeling depressed, anxious, and slightly liberated. The part I’m the most nervous about is I am expecting the arrival of my first child within two weeks and this sudden lack of employment has called my health insurance situation into question.

php rss parser

The other day I was hacking together a quick app to monitor some rss feeds and stuff some data into a MySQL database. One thing I really hate is writing XML parsers. I can do it easily, I just find it tedious. Couple that with my lack of knowledge of the RSS format and I wasn’t looking forward to parsing the XML at all. A quick google search turned up SimplePie, an RSS feed parser written in PHP.

pizza!

I enjoy grilling a lot. I had been watching a lot of food network lately and I kept seeing shows where they would cook pizza directly on their grills. I settled down one night to watch an episode of Good Eats and Alton was demonstrating how to make pizza on a grill. I knew I had to try it. The dough: 16 oz (by weight) of all purpose flour 1 envelope rapid rise yeast (not active dry yeast) 1 Tbs.

I’m a big fan of Stone Brewing Company. They release a special edition anniversary brew each year. This year, they released an IPA. I’ve picked up their anniversary brew religiously for the last five years. My favorite was their 10th anniversary brew. It too was an IPA. This year’s brew is a close second. If you have the opportunity to try it, I highly recommend it. You can usually find it at Whole Foods Supermarkets or at BevMo.

I have been shooting a Nikon D80 camera for the past couple of years. I wanted to know how many shutter actuations the camera had seen (essentially, how many pictures I had taken). This information is stored in the image’s EXIF data. I’m running Fedora 12 on my laptop. In order to read the EXIF data, I installed the Image::ExifTool PERL module. You can do this by running the following command:

I’ve been working with Puppet lately as a configuration management utility. It is written in Ruby, and it appears that Ruby developers love YAML. I’m working on a script to parse some of the YAML reports into something intelligible. I started by installing the php-syck package to enable me to parse YAML; sudo yum install php-syck sudo /etc/init.d/httpd restart This installed php-syck-0.55-4.el5.rf on my server. The, I wrote up some test code.

If you’re using the tdbsam password backend in samba and need to check to see if a user’s account exists, you can use this command line(replace with the username of your user: test`pdbedit -w -L |awk -F":"'{ print $1 }'|grep '<username>$'|wc -l`-eq 0||echo"account exists" If you’re not using the tdbsam password backend and are using the regular smbpasswd file, you can run this command instead: test`cat smbpasswd |awk -F":"'{ print $1 }'|grep '^<username>$'|wc -l`-eq 0||echo"account exists"

First, I’d like to thank Cory Wynn. Without his help and inspiration, I probably would still be burning images to physical media for OS installation. Next, let’s talk about what you will need to pull this off. I have Fedora 12 x86_64 running on my laptop. I have a server on which I would like to put CentOS 5.4. I’d like to do this without burning a DVD image for installation (because the box doesn’t have an optical drive).