STUPID CLAMD!!
Friday, July 31, 2009, 05:10 PM - Linux
I ran into an issue where clamd (the clam anti-virus daemon) was using 100% of my CPU time, forcing other programs (like auth!) to fail. After playing with several settings, I finally figured out how to disable clamd:

1. touch /var/qmail/supervise/clamd/down
2. vi /var/qmail/control/simcontrol
3. change :clam=yes to :clam=no
4. save the file and run /var/qmail/bin/simscanmk
5. qmailctl restart
6. qmailctl stat

You should get a message that clamd is down (since we added a file named "down" in the clamd folder for supervise) and it should stay down when we restart qmail.

[ add comment ]   |  [ 0 trackbacks ]   |  permalink  |   ( 3 / 635 )
What kind of timestamp is THAT??!
Friday, July 31, 2009, 03:26 PM - Linux
If you're like me and run qmail with multilog to split things out into multiple, readable logs, you end up with some crazy looking log entries, like this one: @400000004a736ed035017b1c tcpserver: status: 26/400. The message is pretty readable, but the timestamp, @400000004a736ed035017b1c, not so much. However, there is a solution. Instead if just issuing a tail -f filename, pipe that output to tai64nlocal, like this: tail -f filename | tai64nlocal. This will convert the output to something much more readable, like this: 2009-07-31 15:25:58.861012500 tcpserver: status: 31/400.

Happy Logging!

[ add comment ]   |  [ 0 trackbacks ]   |  permalink  |   ( 3 / 490 )
DesertCodeCamp USB Code
Sunday, June 21, 2009, 03:00 PM - Programming, Electronics
I recently taught a class at DesertCodeCamp using a Microchip 18F2455 PIC and C# code to build a Generic HID device to connect to a stoplight. The code for the project, as well as the JALEdit editor with all the options set to compile it and the bootloader update program are included in the zip here.

[ add comment ]   |  [ 0 trackbacks ]   |  permalink  |   ( 3 / 81 )
Twikini twitter client for Smartphone
Thursday, June 18, 2009, 11:04 AM - Windows
I tried out the Twiking twitter client for Windows Mobile Smartphones (aka no touch screen) and so far I am really impressed. It allows you to get your public timeline, and reply to or retweet messages with one keypress.



Configurable update times lets me conserve battery, and the cache helps save network usage. So far I like the interface and the simplicity, and the ability to tweet out what I am listening to in Media Player is interesting.

Head on over to http://www.trinketsoftware.com/Twikini and check it out for yourself!


[ add comment ]   |  [ 0 trackbacks ]   |  permalink  |   ( 2.9 / 75 )
HP Mini 1033 Memory Upgrade
Monday, June 15, 2009, 08:02 AM - XP
I upgraded the memory in my Mini from 1gb to 2gb, and it nearly doubled my battery life! Before the upgrade I was running at just over 2 hours of battery time on a full charge, and my disk swap rates were through the roof. Now, after the upgrade, the hard drive is much more relaxed, and I get nearly 4 hours on a full charge.

Not too shabby for a $29 upgrade if you ask me!

[ add comment ]   |  [ 0 trackbacks ]   |  permalink  |   ( 2.9 / 58 )

Back Next