Thursday, July 17, 2008

Massive Updates

I know I've been quite for a while. I've been quite busy. Unfortunately, due to changing priorities, there are a lot of projects I've been working on, but few of them have gotten finished. A sampling, in no specific order:



  • Migrating my network/service monitoring to Nagios 3, totally re-writing my config files to make use of the new features, and making one coherent list of all the services that should be in it and aren't.

  • Planning to totally re-wire all networking at the ambulance corps building to eliminate some problems. This includes building an 8U wall-mount rack, and also trying a PC Engines ALIX.2c1 board as a router (still undecided on WAN/LAN/DMZ or WAN/LAN/WLAN). It also means a long day of work at some point in the future, and lots of cable drops.

  • tuxOstat, the linux-controlled thermostat, is pretty much on the back burner. It's a stable beta with severely reduced functionality, but has been handling my cooling needs without any major bugs in the past month or so. It still only has a basic CLI interface and a very simple kludge of a web GUI, but it works. Other modes (heating, fan only), predictive temperature calculation, other temperature/zone calculation modes, and physical controls (buttons, menu on LCD) are still to come, as well as the move from PC to Soekris (if I can ever figure it out, and get one with USB). I now feel that an ALIX board might be a better shot, as they take CF (more space than the Soekris), have a slightly faster processor, and also support USB at about half the price point.

  • I'm considering moving my main web site to a CMS, and letting the wiki serve more as a knowledge base.

  • I'm working on patching together a new access point for the ambulance corps, based on Pyramid Linux. I needed something which would run on the Soekris net4526, had at least WEP, and supported some sort of captive portal. Pyramid has WifiDog, but that only wants to do local authentication or RADIUS, and I wanted direct auth to LDAP and MySQL logging. On the positive side, it just uses some PHP pages hosted under Apache to handle authentication - the WAP redirects the user to a login page on a (separate) web server, the user does their stuff, and then the WAP makes a request to the server to determine whether it should open up the firewall, keep the user locked down, or totally kick them. So, once I figure out some routing issues, I'll get back to working on the new project - BlackLabAuth, a re-write of the WifiDog auth server software that's geared towards a closed-access network (i.e. only people and/or MACs already listed in LDAP can login) with full logging to MySQL. I already have some code in CVS, but some issues with my development Soekris board have slowed the project for the time being. When finished, I'll have not only the new auth server available for download (with documentation) but also a ready-to-run (well, some configuration time needed, but minor and scripted) image for the net4526.

  • My desktop that I use for MythTV filled up its' disk. Totally. I ordered a cheap Syba SATA card (PCI) from NewEgg, along with a 500GB WD SATA-150 disk, but no luck. Though the card (Syba / Initio 1622 chipset, shows up as Class 0106: 1101:1622 (rev 02)) said it was supported under Linux, the driver CD mentioned nothing about it. Some investigation on the Syba website turned up a zipped archive. After extraction, I found a readme that gave (poor) instructions on how to re-compile a kernel, and warned that you MUST have 2.6.15. Oh well, I wasn't going to give up 2.6.16.27 (the newest RPM'd kernel for OpenSuSE 10.1). The standard drivers for it didn't appear until 2.6.25 or so. So... after many debates with myself as to whether I should blow away my whole MythTV installation and upgrade from the now-ancient 10.1, I decided that I'll only be in my apartment for another year, I should make it last. Some investigation turned up a $24 Silicon Image-based card that should work fine, and it's now in the mail...



I'm sure I missed something big, but I'll update as needed, and attempt to make it a daily habit to post something interesting or, at the very least, hard-to-find. After all, I'm sure that I use this blog and my wiki as an informational resource (my bad memory) more than anyone else would...

Labels: , , , , , , , , ,

Tuesday, July 1, 2008

JavaScript and Emacs, and updates

Well, thankfully, summer classes are almost over (tomorrow is the last class). I have a big paper to write for one of them, due at the worst time possible - July 5th. The day after what is, probably, one of the busiest days of the year for the ambulance corps.


In follow-ups and news:


  1. tuxostat has been running for nearly a month in my apartment, and appears stable, albeit missing many planned features, and with a sub-optimal interface (and no SNMP yet).

  2. TuxTruck is still on the back burner.

  3. I've been playing around with the idea of writing a new electronic patient care report system for the ambulance corps, to replace our current three-year-old system (written in VB .NET and running on Windows). It would probably be coded in Python, with a wxWindows/wxPython GUI. I'll start on a small demo version, but would like it to be fully modular, and eventually form a codebase for OpenEPCR.


Anyway, I've been doing a lot of work for my Building Data-Driven Websites class (well, alternate assignments, but still a lot of work). The latest project was an Ajax/DHTML calendar (view-only here, and in CVS, of course). Needless to say, this involved a lot of JavaScript work. To make it worse, I used a fair amount of sample code to get an idea of how to do things, and way too many of the snippets out there on the 'net are in formats that are quite unfriendly for pasting into an Emacs console window.


So, I happened to come by Steve Yegge's blog, with a posting on his JavaScript mode for Emacs. Not only does it seem cool, but it was also the only one I could find that does syntax highlighting and sane indentation (important for copied code snippets). So, I grabbed it from Google Code and - viola!

Labels: , , , , , ,

Sunday, June 15, 2008

Update

I've been incredibly busy lately. But I have 2 quick updates-

1) tuxOstat, my thermostat project, isn't totally finished, but is up and running. There's still some work to do, but the code is largely complete, and in CVS. There's also a web interface with temperature graphs, system status, and a (horrible) webcam view of the LCD control panel. I'll probably be finishing up a first version this week, finishing the documentation next week, and releasing what I have soon.

I got an e-mail today about one of my older projects, PHP EMS Tools, a PHP/MySQL based application for fire/EMS agencies to handle scheduling, membership rosters, equipment checks, etc. The potential user was asking about running the software on Windows - which, of course, I have no experience with. I'm pretty sure there aren't many, if any, Unix-specific calls hidden in the code, and advised him to try XAMPP (Apache/MySQL on Windows). But I did take a moment to comment on why I chose Linux. My pilot installation of PHP EMS Tools, at the Midland Park Volunteer Ambulance Corps, where I've been a member since 2005, has been handling our scheduling, roster, and equipment checks since June 2006. It's running on a generation 1 Compaq Proliant DL380, running dual Pentium III 733MHz processors and 1GB memory - and even with a number of other programs on it, including ieilogd which is reading from the serial port 24x7 - the load average has never passed 1.2 and the memory usage is well under 50%. More importantly, the system has been up for 442 days without a hiccup!

Labels: , , ,