Google Ski View

February 13th, 2010

Brought to you special for the Olympics is the Google Ski View…

  • Twitter
  • Facebook
  • del.icio.us
  • Digg
  • Reddit
  • Google Bookmarks
  • RSS

Gravitational Lensing

February 7th, 2010

I’ve never seen a more striking demonstration of gravitational lensing than this image:

Those 4 bright points aren’t in that galaxy at all.  The galaxy is acting as a lens for a quasar some distance behind it.  The wikipedia page has some great illustrations as well.

  • Twitter
  • Facebook
  • del.icio.us
  • Digg
  • Reddit
  • Google Bookmarks
  • RSS

The Energy Detective

February 7th, 2010

Back in October I had a chance to talk with some Central Hudson (our local power company) reps at an IEEE conference.  During that conversation I was disappointed to find out that there weren’t any near term smart meters coming out.  If I wanted to get access to my real time power consumption, I’d have to do it myself.

Up until this fall, the ways I found to do this myself were un appealing.  There is a device which has an optical sensor and monitors how fast your meter wheel is spinning.  There are some DIY instructions on adding per circuit monitoring, what was way more DIY than I was willing to do inside my circuit box.  Then I found The Energy Detective 5000, which just started production this fall.

The setup is pretty simple.  There are a couple of induction clamps which go around your mains coming into you circuit box.  They plug into an embedded device which connects to 2 circuit breakers for power and signaling.  All of that lives inside your circuit box.  There is then the “gateway”, which is a power bring with a network cable coming out of it.  You connect that to your home network and it presents you with a web interface for your power data.  The install took me about 10 minutes to do… and then 30 minutes to realize the statement that the gateway “should” be on the same leg as the the black wire really was a “must” instead of a should, after which point everything was working.

The TED 5000 will also accept billing rates and carbon rates for your power consumption so you can have real time translation to dollars or tons of co2 if you like.  It will connect to Google’s Power meter, so that your iGoogle environment will show your power graphs.  There is also a head unit that you can put in your living room (which sits next to our wireless weather station) that displays all that without a computer.

Pretty quickly you get a sense of what’s going on in your house, especially as you get to look at the graphs at different granularity.

This is just a quick set of annotations I was able to put into place based on my experiences in the last 24 hours.  The raw data that builds these graphs is directly accessible via xml in case you want to write your own analysis programs, which is something I’m definitely thinking about.

So far, in the 20 hours I’ve had it working, I’m quite impressed with the whole system.  Be forewarned though that the TED folks are getting a lot of press over this device, which means their 3 – 6 weeks backorder turned into 10 weeks for me, and their communication about that wasn’t great.  However, the end result is definitely worth it.

  • Twitter
  • Facebook
  • del.icio.us
  • Digg
  • Reddit
  • Google Bookmarks
  • RSS

HTTP 410: Gone – Geocities

January 31st, 2010

I just ran a link checker for one of the websites I’m running, and got the first ever http error code 410: Gone that I’ve seen, for something that was a Geocities page.  This seems to be in the correct spirit of 410 as embodied by Mark’s blog post on it.

For those that have no idea what I’m talking about, don’t worry, it’s geekery about the specifics of how the web works under the covers.

  • Twitter
  • Facebook
  • del.icio.us
  • Digg
  • Reddit
  • Google Bookmarks
  • RSS

Ebook pricing

January 31st, 2010

Dear Publishers,

I really do expect that your ebook pricing is going to be at least 50% lower than you list price for your print book.  O’Reilly’s 20% lower model just doesn’t do it for me, and the fact that I can buy the dead tree copy of almost any of ora’s books at Amazon for less than the ebook directly from the publisher, makes no sense.

Why is it that I demand this price differential?  Because the book is not lendable.  I’ll be a good citizen and not hand around your PDF to friends, at least not if I keep a copy, because I do get that that violates the spirit of the sale.  I’m actually ok with that, because I like your content and I want you to keep making it, and am happy to tell others they should buy a copy of the PDF as well.  But that limitation limits the value of the book substantially.

I’m also not buying anything with DRM, period.  There is no way I’m buying something that’s tied to a device that is going to go out of fashion some day.  And, if I buy something electronically from you I expect that you’ll keep a copy of it for me forever.  Pragmatic Programmers does quite a good job on most of these fronts.

Otherwise, I’m going to keep going to the library, like I’ve been doing.  It has many of the advantages of ebooks, i.e. not taking up space in my house, and it’s 100% discounted.  Plus, the Librarians are one of the few groups that are trying to ensure we have a sane copyright policy in this country.

  • Twitter
  • Facebook
  • del.icio.us
  • Digg
  • Reddit
  • Google Bookmarks
  • RSS

Automating mailman with ruby mechanize

January 30th, 2010

One of the things I’ve found is that people forget events quite often, so I try to make it easy for people to know when and what the next MHVLUG meeting is.  One of the ways I’ve been doing this by setting the footer on our mailing list to list the next couple of meetings.  This has worked out well, except for when I forget to go and update it.

Mailman doesn’t have an API, but you can get past that by using ruby’s excellent mechanize package, which lets you nicely script complex interactions with websites.  With an hour of time I pulled together this script which now runs every night and automatically syncs from our icalendar feed and updates the mailing list footer appropriately.

#!/usr/bin/ruby

require "pp"
require "rubygems"
require "mechanize"
require "tzinfo"
require "icalendar"
require "open-uri"

@@upcoming =<<END
Upcoming Meetings (6pm – 8pm)                         MHVLS Auditorium
END

def next_meetings()
    open("http://mhvlug.org/calendar/ical") do |file|
        cal = Icalendar.parse(file)
        # ruby collections are sometimes quite compact, so here is the
        # short hand:
        #   Icalendar returns an array, so get the first element
        #   then get the events array
        #   then filter that by only events in the future, and Wed at 6pm
        #   then only get the first 3 ([0..2] is an array slice)
        events = cal.first.events.
            select { |a|
                (a.dtend > Date.today) and
                (a.dtstart.wday == 3) and
                (a.dtstart.hour == 18)
            }[0..2]

        events.each do |e|
            str = e.dtstart.strftime("%b %e – ") + e.summary
            str.gsub!(/  /, " ")
            @@upcoming += "  " + str + "\n"
        end
    end
end

def update_mailman
    a = WWW::Mechanize.new

    # this is the page we want to go, but we aren’t logged in yet, so it will give
    # us a login form
    login_page = a.get("http://mhvlug.org/cgi-bin/mailman/admin/mhvlug/nondigest")

    # find the form that gets us back to where we want to go, and set the adminpw field
    nondigest_page = login_page.form_with(
                         :action => "/cgi-bin/mailman/admin/mhvlug/nondigest"
                     ) do |f|
        # set your password here
        f.adminpw = "XXXXXXX"
    end.submit

    # we only care about updating 1 field, name=msg_footer, so find the right form
    # update the field, and submit
    p = nondigest_page.form_with(:action => "../../admin/mhvlug/nondigest") do |f|
        footer = f.msg_footer
        footer = footer.split("MHVLS Auditorium")[0]
        footer.gsub!(/Upcoming Meetings.*/, @@upcoming)
        puts footer
        f.msg_footer = footer
    end.submit
end

# pull from ical
next_meetings

# push to mailman
update_mailman

And now, one more manual task is being done by agents automatically for me.

  • Twitter
  • Facebook
  • del.icio.us
  • Digg
  • Reddit
  • Google Bookmarks
  • RSS

The Onion on the Science Channel

January 26th, 2010

Via The Onion:

SILVER SPRING, MD—Frustrated by continued demands from viewers for more
awesome and extreme programming, Science Channel president Clark
Bunting told reporters Tuesday that his cable network was “completely
incapable” of watering down science any further than it already had.

“Look, we’ve tried, we really have, but it’s simply not possible to set
the bar any lower,” said a visibly exhausted Bunting, adding that he
“could not in good conscience” make science any more mindless or
insultingly juvenile. “We already have a show called Really Big Things, which is just ridiculous if you think about it, and one called Heavy Metal Taskforce, which I guess deals with science on some distant level, though I don’t know what it is. Plus, there’s Punkin Chunkin.”

Punkin Chunkin, for Christ’s sake,” added Bunting,
referring to the popular program in which contestants launch oversized
pumpkins into the air using catapults. “What more do you people want?”

The entire article is hilarious, go read it.  Seriously, this is how I typically feel when I see stuff coming through on any of the Discovery properties.  The History channel isn’t doing much better of late either.

  • Twitter
  • Facebook
  • del.icio.us
  • Digg
  • Reddit
  • Google Bookmarks
  • RSS

What was behind the New York Times Netflix infographic

January 26th, 2010

There is a great article done by a member of the team that did the New York Times Netflix infographic.  I especially love the fact that they wrote a scraper in ruby to pull in some of the data they needed off of google search results.

  • Twitter
  • Facebook
  • del.icio.us
  • Digg
  • Reddit
  • Google Bookmarks
  • RSS

Being more entertaining than a cell phone

January 22nd, 2010

Tuesday night was the first night of the Mid Hudson Astronomy Association in their new digs, the Coykendall Auditorium at SUNY, New Paltz.  I really like the venue.  The lighting and environment is much better than the library.  With 34 people in attendance last night, we had a quite good turn out.

The lecture itself was given by Cathy Law about teaching Astronomy to middle and high school kids.  In an hour we got about 5 weeks worth of material thrown at us (some of it was skipped over), but all of it was quite good.  I especially appreciated the use of Monty Python and the Universe song to end us off.  Cathy was an incredibly compelling speaker, and her students are definitely lucky to have her.

The thing that made me think the most was her comment that one of her biggest challenges in class is being more entertaining than a cell phone, though, ironically, I was on my cellphone at the time verifying the statement I’d just made on the modal lock of Mercury.

  • Twitter
  • Facebook
  • del.icio.us
  • Digg
  • Reddit
  • Google Bookmarks
  • RSS

News Media vs. Statistics

January 22nd, 2010

Also, polls that add up to more than 100% are right out, especially if your news casters don’t even notice.

  • Twitter
  • Facebook
  • del.icio.us
  • Digg
  • Reddit
  • Google Bookmarks
  • RSS

Switch to our mobile site