Monthly Archives March 2009

Airbears login script

Logging into airbears through the browser each time my laptop connects is a pain. This script made it less painful:

#!/usr/bin/perl -w
use strict;
$|++;

use File::Basename;
use WWW::Mechanize 0.72;

my $mech = WWW::Mechanize->new( );

$mech->get( “https://wireless-gw1.berkeley.edu/logon” );
$mech->success() or die “Couldn’t connect to wireless login page”,
$mech->response->status_line;

# Select the form, fill the fields, and submit

$mech->form_name( “logonForm” );

$mech->set_visible([text=>"username"],[password=>"password"]);

$mech->click(“logon_action”);
$mech->success or [...]

messaging

I’ve been thinking about a peer-to-peer message passing network for short-range radio communications. The system should be useful for various scales of devices, from longer-range mobile installations (in a vehicle using commercial bands) to short-range person-to-person systems implemented in the ISM bands. Hardware like TI’s eZ430-RF2500 eval kit would be an ideal development platform.
One problem [...]