Archive for September, 2008

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 [...]

Tracking down a problem in my ports.conf for Darwin Ports
September 2, 2008

Error: ./port: selfupdate failed: couldn’t open “/opt/local/var/db/
dports/sources/rsync.rsync.macports.org _dpupdate1/base/config/
dp_version”: no such file or directory

I wanted to install something using ports today, and ran into the above problem.  Apparently when I updated /opt/local/etc/ports/ports.conf with the correct rsync location I left a trailing space.  At least one other person on the internet ran into this problem as well.  [...]