Biobug.org

Projects, notes, etc by Will O’Brien

Entries


My WishList
Resume
Want My Coffee?

Production

Photo Gallery
Articles
Podcasting
News

Amusements

Audio
Brewing
Cigars
Coffee
GPS/GeoCaching
Hacks
Home Theater
Kayak
Machine Shop
Photography
Recipes
SCUBA Diving

Research

CNC
CAD
Scripts
VR Interface
Environment
KarKomp
KarKompV2
MythTV

Reference

OWLNet
Quit Soda
Mac
Linux
Tech Ref
Panasonic Toughbook
Dreamhost hosting

Communication

Blackberry
T-mobile MDA
Danger Sidekick
WRT54G(s)

Transport

4Runner
Beetle
Jeeps
Motorcycles
EV Motorcycle
About
Links
Search

Virtual server performance

3 July, 2009 (09:26) | Uncategorized | No comments

When I posted the goggle mod, my web server started crawling. After I took a look, I found that the box had been swapping. (This wasn’t a big surprise)  I’ve been running on a dedicated virtual machine at slicehost.net with only 256MB of ram. One way to improve things is to run nginx instead of apache to reduce the server’s footprint. After checking out my machine for a bit, I decided to simply upgrade to a 512MB slice. I’ll probably put nginx on as well, but I was getting low on disk space anyway.

Upgrading my slice can be best described as a piece of cake. The boys at slicehost have done a great job of building their slice management tools - and they don’t even charge you for the upgrade until you confirm that the upgrade worked to your satisfaction. And personally, I really don’t mind paying an extra $18/month for double the ram, disk and bandwidth.

Add a 3rd eye: ATC3K to Goggle Cam mod

19 May, 2009 (09:31) | Projects, Toys | 17 comments

Finished goggles

Before my last ski trip I wanted a helmet-cam. I bought an Oregon Scientific ATC3K digital video camera, but the mount was just too bulky for a helmet rig. It’s great for mounting on a kayak or mountain bike, but totally unsuitable for a real helmet mount. (It’s just too big.) Obviously, it was time for a bit of modding.

Read more »

Oops.

8 April, 2009 (09:25) | Uncategorized | No comments

After realizing that I’d been lazy about it, I upgraded my hosting machine last night before I went to sleep. I managed to make Apache2 angry. You won’t like it angry, cause it won’t even give you a 404.

Back to our regularly scheduled program.

Collecting netflow on RHEL5 with flow-tools

3 April, 2009 (08:57) | Projects | No comments

If you have a netflow capable router, you can gather information about traffic that’s passing through your netflow collector. Here are a few notes about getting it to work on a Red Hat Enterprise Linux 5 machine - some of the code has gotten a little crusty, but with some work you can get it to compile.

Robert Galloway has put together a nice netflow how-to here. Once you get through the perl module issues (I had to manually place some modules and their directories into the site-perl directory on the machine.)

flow-tools hasn’t been maintained by the author in a while if it compiles for you great, but if not, you can grab a different branch that will compile on modern boxes here.  It’s a new branch, I used version 0.68.4 and it compiles fine.

The biggest problem is compiling CFlow - which can be found in the contrib directory of the flow-tools bzip. It looks for libft.a, which has since moved inside the flow-tools build. At first I tried linking against libft.la, but it turns out that you need to link against libft.so.

In my case, it’s found here: /usr/local/flow-tools/lib/libft.so

I created a symbolic link:

ln -s /usr/local/flow-tools/lib/libft.so /usr/local/flow-tools/lib/libft.a

Then I edited Makefile.PL inside Cflow-1.053 and replaced this:

sub find_flow_tools {
my($ver, $dir);
my($libdir, $incdir);
if (-f ‘../../lib/libft.a’) {
$dir = ‘../../lib’;
$incdir = “-I$dir -I$dir/..”;
$libdir = “-L$dir”;
}

With this:
   if (-f ‘/usr/local/flow-tools/lib/libft.a’) {

Then run perl Makefile.pl and build/install as usual.

After that, I’ve found that the Table perl module kicks out an error, but it’s not actually an issue - all the output works fine.

New (old) server for the house

1 April, 2009 (22:16) | Toys | No comments

Just thought I’d throw in a view of the server that’s running things at home now. It’s  a poweredge 2650 - you can get them dirt cheap despite having dual 2.8ghz cpus, 2GB of ram and onboard remote access. This one once served the military - they removed all the drives, but left an IP address assigned to a military base in Arizona on the management card. (Really, they used real IP space for internal management. Sigh.)

I tossed in some ultra320 drives and installed ubuntu. I had to update the firmware on the raid controller, but now it purrs like a 2u rack mount server. Now I’ve got redundant power supplies, a raid 5 system drive, a mirrored data drive and I’ll add some e-sata or usb drives for larger storage needs.

Soon I’ll be racking it under one of the worktables in my lab/workshop for easy access.

Hacking the eye-fi to keep your data home

14 March, 2009 (23:36) | Projects, Toys | 3 comments

The eye-fi is pretty sweet. However, the built in client connects to the eye-fi manager, which hands off your data to the eye-fi servers. In order to keep my data home, I had to cut out the manager. Using the afore mentioned python script to act as an agent on my ubuntu server, I added in a call to gup - a python based command line gallery2 uploader. The script would probably suffer from performance over a choked internet pipe, but I’ve got a local gallery2 install on the same server. Now I can take photos, they’re immediately uploaded to the server via EyeFiServer.py. Each time EyeFiServer gets an image, it calls gup.py and uploads the image to an ‘incoming’ gallery on my server. It’s a bit of a rube goldberg, but it works really well.

Now I can take a photo, and within 10 seconds or so, it’s been added to my personal Gallery2 server - ready for storing, sorting and editing.

You can grab my modded version of the EyeFiServer here.

Eye-fi: handy for the lazy geek

13 March, 2009 (10:10) | Toys | 1 comment

I can’t count how many times I’ve forgotten to download pictures at home, then wanted to access the data that was firmly locked away on my camera at home on the following days. Enter the Eye-Fi: a SD memory card that contains a wireless chip-set and an on-board client that uploads your photos as you go along. Since my wireless network is segmented from my home wired network, the built-in client doesn’t work from my powermac - but there is a nifty python script that’ll act as a server for the card, so I’ll probably stick the script inside a chrooted environment on my home server and attach that to a dedicated network interface on a private vlan to a dedicated wireless network. (My home wireless setup involves some previous generation enterprise class gear, so I can run all the ssid’s I want with private, tagged vlans at will.)

The card itself is an interesting piece of hardware. There’s a tear down here. The RF chip might be an interesting piece to build for an Arduino module…

What is the deal with TQFP ZIF sockets?

12 March, 2009 (19:21) | Toys | 1 comment

qfp socketMost ZIF sockets aren’t exactly cheap, but TQFP sockets are in the range of insanely stupid pricing. I’m pondering a TQFP programmer that I can pop the chips into, but most of these little guys are $150 or so. I asked Bunnie, one of the more hardware savvy people I’ve met about it - and he came up with a place that has them for a mere $50. $60 if you want the clamshell stye. Given the hours of searching I put into it, I thought I’d share this one.

New horse, er Soldering Iron

12 March, 2009 (18:44) | News, Projects | No comments

new horse

I used to sport a pretty decent Tenma soldering station, but it moved on and I’ve been settling for lesser irons since. I finally upped my game a bit with a new dual purpose soldering station: the Aoyue 968 SMD rework station. Ian put together a pretty decent review of his on Hack-A-Day (one of my successors - who’s doing a fine job by the way) I ordered mine up from Amazon - you can support my work/site/kids by using this link and ordering if you want one.

I gave the rework pencil a workout with some normal solder and a un-cleaned pc board. It worked like a champ. The temperature controller works very nicely, and takes some time to cool things off when you shut it down to prevent damage to the heating element in the pencil.

I managed to slice my finger on the fume collector mounted to the soldering iron - I’ll put a bit of effort into cleaning up the sharp edge but it wasn’t a big deal. It could pose a problem during tip changes.

The station itself is large - I mean pretty big, but it fits nicely on top of my 7633 oscilloscope ( which is pretty huge) so it doesn’t bother me. If you’re short on space, you might consider sticking with a pencil iron that stores in a tool box, this is a workbench size too.

Mad scientist factor: mid to awesome. The blue lit air flow indicator is great. Make sure you pull the pump retention screw on the bottom or you’ll be in for some serious noise. All in all a great tool, but the digital temp indicator is only for the reflow side - not the soldering iron. If you depend on decent temp feedback on your iron, you should consider picking up a dedicated temperature controlled soldering iron.

Where’s freakin android, screw it - gimme an iPhone

21 January, 2009 (22:06) | Uncategorized | 2 comments

I’ve been waiting patiently for a freakin Android phone on Sprint. After waiting and waiting, I ordered in iPhone. The App store is proven, the dev kit is easy to get, and even Stanford put out tutorials on programming for it. Sorry sprint. (Thanks for raising your fee and letting me out of mah contract early.)

« Older entries