Archive from Dezember, 2007
Solaris with Parallels
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
# 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.
geocoding
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
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
