Tattle Host OS

Eric Hodel | Wed, 10 Jan 2007 16:03:00 GMT

Posted in ,

After two days and 562 tattle reports a picture of rubyists' operating system choice is emerging:

$ ruby filter_host_os.rb tattle-host_os-20070110-1053.yml 
  darwin8: 242
linux-gnu: 161
  mswin32: 116
 freebsd6: 16
 solaris2: 7
  darwin7: 5
   cygwin: 4
 openbsd4: 4
    linux: 2
 freebsd5: 2
  darwin9: 2
 openbsd3: 1

Generated from:

$ cat filter_host_os.rb 
require 'yaml'

data = YAML.load ARGF.read

collapsed = Hash.new 0
data['host_os'].each do |os, count|
  os =~ /^(.*?)(\.|$)/
  collapsed[$1] += count
end

length = collapsed.keys.sort_by { |k| -k.length }.first.length

collapsed.sort_by { |o,c| -c }.each do |os,count|
  puts "%#{length}s: %d" % [os, count]
end
2 comments

Comments RSS FEED

heh, just wait until we can submit info from non-interent accessible boxes … I’ve got a couple of Linux server farms to register that might skew the numbers a bit.

Pat Eyler said about 4 hours later

I’ve just posted to Ruby Inside about it encouraging people to run Tattle, so hopefully those numbers will go up a little :)

Peter Cooper said about 23 hours later

Comments are disabled