DL 145 ProLiant
The HP DL 145 ProLiant server runs at about 180W. Even with its new BIOS (2005-07-21), there's no Cool'n'quiet feature, so linux 2.6.31 says this:
[ 0.674691] powernow-k8: Found 2 AMD Opteron(tm) Processor 250 processors (2 cpu cores) (version 2.20.00)
[ 0.674704] [Firmware Bug]: powernow-k8: No compatible ACPI _PSS objects found.
[ 0.674705] [Firmware Bug]: powernow-k8: Try again with latest BIOS.
Arduino/LCD tests

I got this cool LCD from Adafruit. It has a tutorial for connecting it to an Arduino.
I wrote a tiny driver with web.py and spawning. Spawning has the cool feature of being able to use eventlet to handle multiple simultaneous requests in one process, in one thread. This helps me share my single USB port with all the requests; I didn't have to write any special queuing stuff. I would have gotten that property for free with twisted, too, but twisted.web and nevow are more complicated to use.
My code is essentially this:
import web, serialser = serial.Serial(port='/dev/ttyUSB1', baudrate=9600, timeout=1,xonxoff=0, rtscts=0)class index(object):def POST(self):ser.write("\xff" + web.data() + "\x00") # I made up this protocol and implemented it on the arduino sidereturn "ok"urls = (r'/', 'index')app = web.application(urls, globals())application = app.wsgifunc()# spawn --port=9017 --threads=0 host.application
This is probably more than one needs just to connect an LCD to a computer, but I intend to run several other sensors and light controls off the same Arduino, so my web server will be getting more elaborate.
In the meantime, I can run unix shell commands onto the LCD:
% forever { date | curl -d @- http://dash:9017/; sleep 1 }
Or I can do a live search on twitter and display its results on the LCD:
import sys, restkit, jsonlib, urllib
login = "...", "..."
keyword = sys.argv[1]
response = restkit.request(
"http://stream.twitter.com/1/statuses/filter.json?track=%s" %
urllib.quote(keyword), filters=[restkit.BasicAuth(*login)])
for out in response.body_stream():
text = jsonlib.read(out)['text']
print text
restkit.request(method="post", url="http://dash:9017/", body=text)

SHDH 38
@jotulloch made it to SHDH finally, though we were too late for lightning talks.
I followed the instructions and added a DS18B20 temperature sensor chip to the Arduino that runs some nightlights, so I can chart the temperature in that bedroom too. The Arduino libs are so nice. Here are all my edits to the C that runs on the Arduino, my python driver that talks to the Arduino over USB, the demo web page that displays the temperature every second, and the python web server that connects the driver and web page.
I almost have the temps going into my graphite database, except graphite's "easy" protocol is actually the hardest thing on this project. I'm pushing lines in, but graphite doesn't record anything. There are no errors.
Then I worked on the rewrite of this blog, which is cool because it's using a separated notes service which I share with two other projects. SOA is a good idea for a system the same way that functions are a good idea for a program. I'm almost completely done with newsbruiser now.
Search term report
Obviously some of my posts are meant to help people who don't read my blog, so it's interesting to see what search terms are actually bringing people to my articles.
My search results for these queries may have helped:
- can you read sessionstore.js
- apt-cache "bad hostname"
- arduino shiftbrite projects
- dmacro
- dovecot palm pre ssl certificate
- error while loading shared libraries: libdbus-glib-1.so.2
- internals of strace
- opencv headtrack
- Pixxo AW-M2130 Linux
- shark
- xyron stepper driver
My search results for these queries probably did not help anyone:
- bathroom
- color of color specturum
- jobs for people with quick wit
- kelsi sews
- room photo
- textarea bold "html = true" javascript
- voltage drewp
- what är mockup-data
- windows 2008 NFS random permission denied
And to those who came to this page while looking for something in the top list, I'm sorry.
Audio input hidden in bookshelf
This ordinary bookshelf

now contains an audio input to the room's speakers:


Atom feed of this blog