I just updated my driver’s license, in person, with vision test, identity verification, and photograph in less than six, 6!, minutes. This time includes walking into the DPS office, filling out the form, chatting with the nice lady, and getting back into my car. There was no line in the office and only two people filling out forms. Not long ago I drove by the Austin DPS office on the way to the dentist. It wasn’t open yet and a line was forming.
DVDs
I hate DVDs. Mostly the way they take control away from you, the owner of the equipment.
Hailey has some DVDs with at least 15 minutes of commercials. There is one DVD that disables the stop and eject buttons. Once you put it in you are doomed. I told her it was broken and refuse to put it back in.
This weekend I got a All the President’s Men DVD from NetFlix, a 1976 movie with Robert Redford. This is the way DVDs should be. You put it in and the movie starts playing.
No FBI Warning No Previews No Buttons Disabled
The disc goes in and the movie starts, if you want a menu you have to press the DVD players menu button the remote. I was so blown away by this that I had to try it twice.
Really awesome and really sad that no modern movie or next generation disc player will offer this simple viewer orientated feature.
My Mom is So Cool!
My mom called to ask me something. So I called to tell her I found what she was looking for, but I decided to tell her in code. She played along just like my friends should!
M: Hello.
D: Gray-eagle this is bat-child I have found the stamps.
M: It’s a go, take-off on 29th.
D: Roger-Roger
M: Bye!
Flickr
I bought myself a flickr pro account this weekend. I have about 300 pictures uploaded so far. You can visit my photostream to see the pictures.
Airbags
A new airbag report shows that when all crash data is studied, not just those with fatalities, you see an increased chance of death from having an airbag.
While the value of airbags seems dubious in the new study, the value of seatbelts is not. The analysis found that proper use of a seatbelt reduces the odds of death by 67 percent for any given speed category and airbag availability. Airbags, however, cause no statistical difference in car-crash deaths, except for unseatbelted occupants at low speeds, where the odds of death are estimated to be more than four times higher with an airbag than without. (emphasis mine)
I have always had the fear that an airbag deployment will do more harm than good in my situation because I am short and sit close to the steering wheel.
Genetically Modified Corn
A diet rich in Genetically Modified Corn (GM) leads to health defects in rats.
Ubuntu — The Hoary Hedgehog Release 5.04
Ubuntu released their newest version today, 5.04: The Hoary Hedgehog Release. Fun naming conventions aside, this distribution is good enough for my mom to use. I have been running the pre-release version on my home system. I updated from Debian Unstable so I didn’t get to experience the true Ubuntu experience, as I had Debian settings left behind.
Today when I came home, I decided it was time to install Ubuntu on my laptop, a HP nw8000. This laptop previously dual booted Win XP and Debian Sid. This is my work machine so I have to keep Win XP around for Netmeeting.
I copied my home directory and config files from my laptop to Brianna’s Mac using rsync. While I waited for the files to transfer to the Mac, I downloaded the relese CD, yes only one, using the torrent link. Despite the huge popularity of Ubuntu and the fact that today was the first day of the release, I was able to download the iso in 48 minutes. I left the Bit Torrent client running to help others, it is still going now.
I used K3B to burn the iso image and rebooted the laptop from the Ubuntu CD. Ubuntu’s installation program boots quickly. It is not a graphical installer, and there should be no apologies for that. It is very easy to get the system going without removing your hands from the keyboard. No mouse is required for this install.
The install preselected good defaults for everything. I didn’t repartion the drive because I didn’t want to mess with Window’s NTFS partition. I did reformat the Linux EXT3 partitions.
Once installed Ubuntu came up supporting sound, the touch pad and pointer, and the Intel IPW2100 WiFi card. The default install is a desktop class install with almost everything I need. I installed Ruby version 1.8 and all the ruby libraries, this version of apt supports regex’s so you can say
$ sudo apt-get install ruby1.8$
to install all packages that end with ruby1.8, which covers all th Ruby libraries. To get a C build system, install
$ sudo apt-get install build-essential
Finally to use WPA encryption to talk to my Linksys Router I did
$ sudo apt-get install wpasupplicant
With the packages out of the way I was able to create a wpasupplicant.conf file for my router, and now for the first time ever ….
I am typing this post, in Linux, on my laptop, wirelessly, upstairs.
It’s a good day
What Leader Are You
Damn you John Wilkes Boothe!
Take this test, What Famous Leader are You Test. Me? …
Cache Control Private
Ugh! It is getting harder and harder to find the right answer to technical problems on the first page of Google’s search results. I offer this here so I never have to search for the answer again.
When you are developing web applications, you sometimes want the user to be presented with a “File Save” dialog box to save a file on their computer instead of opening it in their browser.
To do this you add a “Content-Type” and a “Content-Disposition” header. For an Excel file in a Ruby on Rails application you would put these lines in the controller:
def download @headers['Content-Type'] = “application/vnd.msexcel” @headers['Content-Disposition'] = “attachment;filename=myfile.xls” end
If you do this Mozilla, Firefox, and Internet Explorer will download the file and save it to your desktop. If you click “Open” instead of “Save” in Mozilla or Firefox, Excel will open the file instead. Just as it should.
If you click “Open” instead of “Save” in Internet Explorer, Excel will complain that it can’t find the file. Unless Excel is already open. If Excel is already open the file will open normally just as it does in Mozilla or Firefox.
After 15 or so minutes of searching I was finally able to find the right search terms to illuminate the problem. Internet Explorer has some cache issues. To fix this, add a “Cache-Control” = “private” header.
The method in Ruby on Rails would become:
def download @headers['Content-Type'] = “application/vnd.msexcel” @headers['Content-Disposition'] = “attachment;filename=myfile.xls” @headers['Cache-Control'] = “private” end
I hope to never have to search for this again.
Freeze It
People are always calling and asking me for computer help. When all else fails I seem to be the man of last resort.
Yesterday this guy that used to work with me called up. He was honest and began the conversation with, “I’ve got a computer problem.” I figured as much. His Windows machine wouldn’t recognize his hard drive. This is an easy one to fix, buy a new hard drive and restore from backup.
Like most people he didn’t have a backup. He did have some important files left on the disk. He wanted these files back so he took his computer to one of the local shops. They were unable to get his detect his drive.
He called me to find out about data recovery services. I have read about a few but I couldn’t recommend any. My information says they are expensive. Rates start in the thousands of dollars. These are companies that take your drive to a clean room and connect your platters to new electronics in order to get your information back. This wasn’t a solution for him.
A while back I read that a hard drive could be frozen, in your freezer right next to the asparagus, as a last resort.I mentioned this to him. He was skeptical but tried anyway, there was nothing to lose. A while later he called to say Windows was able to boot off the drive, but would lock up before he could get to his files.
I think this would have worked better for him if he booted from his alternate drive, my choice would be to boot into Linux, and had then used copied the data off as quickly as possible before the drive warmed up.
I didn’t offer any further help. There are two computers getting serviced in the garage already, I don’t need any more work.
My Wish List 2004
Gift ideas …
- Laser Leveling Device
- Laser Guided Measuring Device
- Sharks With Freaking Laser Beams Attached to Their Heads
- Body of Secrets
- Canon EF 100-300mm USM Autofocus Telephoto Zoom Lens
- Illustrated Cabinetmaking: How to Design & Construct Furniture That Works
- A Frame for the Diploma in my Garage
- Longhorn Knit Cap
- Texas Floor Mat
- Bonsai Tree Kit
- Logo, Font, and Lettering Bible
Crime Scene Investigation
An Austin Crime Scene Investigation van was out today to get some data on the catamaran. The stranded boat should find its way home soon. If the boat has the Texas registration numbers or the serial number still intact, they should be able to locate the persons who abandoned their watercraft on my thoroughfare.
Marooned!
A small one and a half lane road winds from the west side of my place of employment around the far end of the parking lots and dumps into the parking lot for my building. This road is a private road built by my employer for use by the delivery trucks during the construction and fitting out of my building.
On Monday this small boat was left there.
On Tuesday afternoon, when I took this picture, it was still there. I don’t understand how this boat could be abandoned at my office. There are cameras in this parking lot, at least one per 10 meters. Security must have seen who left the boat. It can’t be easy to remove a boat from a trailer and leave it abandoned in a field without anyone noticing.
Well, I thought it wouldn’t be easy, but apparently it was. I bet they had a clipboard when they did it.
UPDATE The catamaran is still there on Wednesday. I took a closer look and it is missing the mast, sail, and some of the rigging is unhooked. I added an additional closeup image.
Ruby and the Photoblog
It is no secret that I like to publish photographs. My favorite subject, of course, is Hailey. For many months I have been trying to force myself to sit down and write an photo gallery package. I do web-based programming every day at work, and by the time I get home I don’t feel like doing any more. It just isn’t fun, or it wasn’t fun. The other day I discovered, from an almost non-topical link, a new and fun web programming framework written in a relatively new, and completely object orientated, language called Ruby.
I can program in Perl, and was starting to learn PHP. There are many photo gallery packages written in PHP that could be customized for my needs but programming in PHP seemed like work again.
Enter Ruby, and the application framework called Ruby On Rails. Rails follows the MVC pattern and was like Struts which I was interested in for a brief period of time.
I was able to learn enough Ruby to write my first Ruby On Rails application in about 8 – 12 hours. This time included many breaks to get caught up on the latest news at the various sites I like to visit. One of the great things about Rails is its documentation. There are two movie files to introduce the new users to the rails mindset.
My first application is a photo gallery tool called Ansel, named in honor of my favorite photographer. It has categories, or galleries, and supports thumbnails, web-sized images, and clicking back and forth through the pages of the gallery.
I also wrote a thumbnail generation script which will make square thumbnails for each photograph in my collection. This too was written in Ruby and it took about 5 minutes. My last attempt at thumbnail generation script was abandoned after 30 or so minutes.
7th Grade Math Fun
A farmer has a $100 tax refund check. He wants to buy 100 animals and have some of each kind. Cows are $1.00, sheep are $0.50, and horses are $10.00. Obviously, we have 3 variables, the number of cows, sheep and horses. Unfortunately, we only have two equations:
s(0.50) + c(1.00) + h(10.00) = 100.00 [1] s + c + h = 100 [2],
where s is the number of sheep, c is the number of cows, and h is the number of horses. With this lack of information regarding the 3rd equation we know there will be multiple answers. Not being one for guessing I wrote this program
#!/usr/bin/perl use strict; use warnings; my $cow = 1; # cows for a buck my $sheep = .5; # sheep for fifty my $horse = 10; # horses for ten for (my $c=1; $c<=100; $c++) { # cows for (my $s=1; $s<=100; $s++) { # sheep for (my $h=1; $h<=100; $h++) { # horses my $cost = $c$cow + $s$sheep + $h*$horse; my $count = $c + $s + $h; if ( $cost == 100 && $count == 100 ) { print “Cows: $c; Sheep: $s; Horses: $h\n”; } } } }
and found
Cows: 5; Sheep: 90; Horses: 5 Cows: 24; Sheep: 72; Horses: 4 Cows: 43; Sheep: 54; Horses: 3 Cows: 62; Sheep: 36; Horses: 2 Cows: 81; Sheep: 18; Horses: 1
So how is a 7th grader, who doesn’t know algebra or programming, supposed to figure this out? Did I miss something obvious?
Spam, Spam, Spam
I moved all my e-mail accounts to Fredd’s server and set up SpamAssassin to capture spam. So far, I have received very little spam despite using these accounts for all of my mail correspondence. Meanwhile, the account that I never use any more over at Time Warner is getting one hundred plus spam messages a day. SpamAssassin is doing a good job of filtering out that crap but I still have abandoned usage of the Road Runner mail account. I only have the account set up so I can find any service related mails from Time Warner that I may need..
Four
Fredd’s wonderful employer, offered him an amazing deal on a server. I talked Fredd into getting a Linux server and have taken on the admin responsibilities. My limited availability, time-wise, has meant that set-up has taken a lot longer than it should have. But finally I have configured Exim and Apache to my liking, and have moved all my domains over to their new permanent home.
PHP Markdown
John Gruber wrote an awesome Perl script called Markdown that allows blog entries to be written in the old school usenet and plain text e-mail way.
A PHPified Wordpress plugin of the same is included with Wordpress or, for the latest and greatest, look to the official home of the PHP Markdown plugin.
Note: The preceding announcement is to help me remember where I found the latest and greatest PHP Markdown plugin, you my technophobic reader, may disregard this post.




