Archive for the 'Uncategorized' Category

Opensource Bluetooth Scanner for detecting nearby users and devices
March 20, 2009

Pretty much everyone has a mobile phone. When you are doing ubicomp prototyping it is often difficult to do field tests on large systems because there is normally a shortage of devices you can use in a field trial, and/or it is difficult to get users to carry around and charge a secondary device. [...]

VirtualBox on OSX as a replacement for DarwinPorts
February 20, 2009

Alright, the title is a little bit grand. In any case, let it be known that I pretty much hate darwinports and fink, as something always seems to go wrong when I try to use them. [Although, they are very necessary for development in OSX -- and I am certain I won't be [...]

VirtualBox Portforward Helper Script
February 19, 2009

On a Mac change directories to:
/Applications/VirtualBox.app/MacOS
vim portfw.rb

#!/usr/bin/ruby
if(ARGV.size < 4)
print “Ussage: ruby portfw.rb \n”
exit()
end
print “Adding Portforwarding from #{ARGV[2]} to #{ARGV[3]} named (#{ARGV[1]} on VBOX:#{ARGV[0]}\n”

`./VBoxManage setextradata “#{ARGV[0]}” “VBoxInternal/Devices/pcnet/0/LUN#0/Config/#{ARGV[1]}/HostPort” #{ARGV[2]}`

`./VBoxManage setextradata “#{ARGV[0]}” “VBoxInternal/Devices/pcnet/0/LUN#0/Config/#{ARGV[1]}/GuestPort” #{ARGV[3]}`

`./VBoxManage setextradata “#{ARGV[0]}” “VBoxInternal/Devices/pcnet/0/LUN#0/Config/#{ARGV[1]}/Protocol” TCP`

This simple script will make it easy to port forward local ports to a NATed virtualbox.
I recommend adding [...]

Whew, Partition Found!
February 19, 2009

So the IT people told me my harddrive on my macbookpro was dead, I assured them, that the hardrive was fine, and the real problem was that the motherboard had died. However, somewhere in the process I of trying to recover osx I managed to corrupt the partition table.
I tried a variety of [...]

I gave her the API key to my heart
January 20, 2009

KEY = “asdasdjkdfgjk443534kjsdfs”
class Heart < ActiveResource::Base
self.site = “http://localhost:3000/”
self.element_name = “heart”
end
Heart.create({:key => KEY})

I just wanted to lay claim to this quote, because right now it’s not coming up in google, and I want credit

DNS Sync script for SliceHost
January 11, 2009

I needed to copy a bunch of zone files over to slicehost, and I really hate doing work I can automate. I wrote a quick script that will import a zone file from a BIND definition into slicehost.
You can find it at: http://pastie.org/357680
On another note, ActiveResource is REALLY cool.

EventHeap and New Architecture
December 11, 2008

It’s been a while since I last posted, but I thought I should update the ‘world’ (i.e. myself) on some of the more recent accomplishments I have made towards the replay and ubicomp testbed systems I am working on.
1) I have successfully created easy methods of getting content from real live data streams and mocked [...]

Jython and Mysql
October 9, 2008

For the life of me I could not get Jython to recognize my mysql driver using JDBC. I literally spent hours trying to get it to work. Fooling with my classpath, my version of the mysql-connector and my version of Jython. Finally I gave up and wrote a really simple wrapper class.
This [...]

mDNS using Jython
October 8, 2008

I’ve recently been playing with Stanford’s EventHeap and IStuff package for some of the work we are doing here.  I am a little to spent to go into a lot of details, but the first task I tackled was trying to write some wrappers to make it easier to work with EventHeap using mDNS.  This [...]

Capture all Keystrokes and SmartButton
September 25, 2008

<script>

document.onkeydown = function(e) {
var a = document.getElementById(“test”);
a.innerHTML = a.innerHTML + String.fromCharCode(e.which);

var a = document.getElementById(“test2″);
a.innerHTML = a.innerHTML + e.which + ” ” ;

return false;
}
</script>

<div id=”test”></div>
<hr>
<div id=”test2″></div>

SmartButton TM –>
So I got my hands on a smartbutton from sourceforge while at today’s SOCHI/SCSI event.
I [...]