josh's blog

Make your computer sing 99 Bottles of Beer on the wall

$bottleCount = 99

def Sing()
if $bottleCount > 0
if $bottleCount == 1
print $bottleCount, " bottle of beer on the wall, ", $bottleCount, " bottle of beer.\n"
print "You take one down, pass it around, no more bottles of beer on the wall.\n\n"
$bottleCount -= 1
Sing()
else
print $bottleCount, " bottles of beer on the wall, ", $bottleCount, " bottles of beer.\n"
print "You take one down, pass it around, ", $bottleCount - 1, " bottles of beer on the wall.\n\n"
$bottleCount -= 1
Sing()
end

else
print "No more bottles of beer on the wall, no more bottles of beer.\n"
print "Go to the store and buy some more, 99 bottles of beer on the wall.\n"
end
end
Sing()

Put this script into a text file called 99.rb. From the command line run this "ruby 99.rb | say

Selecting a flavor of Solaris for a home server

I have had my ZFS home server up and running for a few months now, but it was no easy endeavor to get it working the way I wanted it to.  I don't know how much of the difficulty was from trying to treat Solaris like it was linux, or if Solaris just doesn't do some things very well.  I figure since I have fought the battles, I may as well share some of what I have learned.

Distro Choice

This should have been easy, after all Solaris is Solaris right?  There are 3 main distributions to look into, Sun Solaris 10, Solaris Express Community Edition (Project Nevada), and OpenSolaris.

  • Sun Solaris 10 - Distributed by Sun (Tested, Tried, Stable)
  • Solaris Express Community Edition - Based on OpenSolaris, 2 week release cycle, next gen Solaris
  • OpenSolaris - Open source Solaris distro, tries to compete with Linux in the desktop market

Now that I learned a little about the main distros, I have to make a choice.  This proves to be the most difficult part and I am still fighting with myself over which distro I like best.

ZFS Home Server Build

I have ordered the parts for my new home server, the goal is to end up with about 3TB of redundant storage. More details to follow.

disk layout

Family Circus prediction of the future

My Grandma sent this comic to me in the mail when I started college.  I think she's right.

 

comic

Ubuntu 8.10 and Twinview with Nvidia drivers

The new version of Xorg in Ubuntu 8.10 "Intrepid Ibex" is great.  They have turned the confusing xorg.conf file into something that's pretty easy to work with.

Getting my dual monitors working with my Nvidia GFX260 was simple

Computers piss me off sometimes

Since my luck with computers had been so good lately, I new something was going to go wrong with this new build.  The build went flawlessly, the machine powered up and everything showed up perfectly on the first try (very rare).  When I tried to install Vista Ultimate x64 is when things started going down hill. 

New PC Build

I just ordered some parts for a new desktop.

  • Intel Core2 Quad Q6600
  • EVGA 132-CK-NF78-A1 nForce 780i Motherboard
  • 8GB Corsair DDR2800
  • EVGA Nvidia GTX260 896MB Video Card
  • 500GB Seagate SATA disk
  • LG SATA DVD Burner

I plan on installing dual booting Ubuntu 8.10 64 bit and Vista Ultimate 64 bit.

It should be a real screamer.

VMware Fusion 2

While VMware Fusion 2 is a step in the right direction, I really wish that VMware would offer a product for OSX that has a comparable feature set to VMware Workstation.  VMware finally offers support for multiple snapshots, but now they neuter it by not allowing branching of versions.  Another issue is the inability to "Power off" a Windows VM, it simply tells Windows to "Shut Down".  I would love some more advanced networking features in VMware Fusion, such as the ability to forward ports to various VMs behind the NAT.

Chrysler joins the race for the first mass market electric car

http://www.cnbc.com/id/26850309

I am really happy that car companies are all starting to go in the same direction with alternative energy sources.  Really, electricity is the only logical choice for replacing the internal combustion engine.  As new technology comes out it can be worked in to replace the small gasoline engine that some of these cars use to extend their range.

I think I need to make my civic last about 5-8 more years so I can buy a really sweet electric Jeep.

 

Predictions for Apple's "Lets Rock" media event

Things that could happen:

  • New form factor iPod Nanos with a bump in capacity
  • Bump in capacity to the iPod touch with a price drop to the lowest end model
  • iPod Classic remains the same
  • News about iPhone firmware 2.1
  • Release date for 10.6 "Snow Leopard"

Things that probably won't happen but I would like them to:

  • New Mid-tower macs with dual DVI support at a slightly lower price point than an imac
  • New Mac Minis
Syndicate content