RSS
 

Archive for December, 2007

Solaris with Parallels

10 Dec

Today I installed Solaris 10 on Parallels, because I’ve trouble to get puppet running on my fresh leopard machine. After successful installation I realized that there was no network adapter configured. To enable the NIC I had to use /Library/Parallels/Tools/vmtools.iso as the cdrom-drive. It will be automounted. On Solaris I’ve made

#!/bin/bash
# installs paralells network driver on solaris 10
cd /cdrom/prltools/drivers/network/rtl8029/solaris
./network.sh

this installs the correct driver for the NIC and configures it.

 
No Comments

Posted in Solaris

 

geocoding

09 Dec
include Geocode
begin
  # input is an postal address
  result = geocode ARGV.to_s

  # debugging output
  puts "#{result[:address1]}, #{result[:city]},
      #{result[:state]}, #{result[:zipcode]}"

  puts "#{result[:latitude]}, #{result[:longitude]}"

  # convert decimal values to DMS
  puts dec2dms(result[:latitude])
  puts dec2dms(result[:longitude])
end
 
No Comments

Posted in Ruby