Archive for January, 2007

Gaming on a Laptop

Wednesday, January 31st, 2007

I have found that I can do most everything on my laptop thru WiFi hotspots that I could at home with my LAN of three computers on broadband. It may take longer, but I can do it. The exception seemed to be playing Quake III, what I call my quickness exercises. At 56, I am not a contender. I mostly play against the computer at the middle level of play. When my ego is feeling robust and can stand be squashed, I play on the Internet on a server where I have a 50ms ping against humans with slower pings. If I have a greater than 100ms advantage I am a contender and occasionally a winner.

My laptop, an IBM Thinkpad T41, has a comparable CPU (1600MHz Pentium M) to my desktop (1500MHz Athlon XP). The graphics card has 3D acceleration. My Quake III CD is in storage, but there are plenty of action games available on my installation CDs (SuSE Linux 10.0) or downloadable. I installed WarZone2100, a Starcraft takeoff, and Neverball, a marble on a tilting platform maze game. Neverball was unplayable without 3D acceleration and nearly so without a mouse. (Thinkpads have an eraserhead-like Thinkpoint in the middle of the keyboard. I like it for routine work, but not for action games.) However both games push the CPU and Graphics Processing Unit (GPU) hard resulting in a real heat problem. Even with the fan running full bore, the GPU overheated and shutdown. If I get desparate, I may try playing outside in 40°F weather.

For low realism games it works, but no First Person Shooter (FPS) or high realism role playing games (RPG).

Alienware has a gaming laptop. It’s over twice the thickness and weight of my laptop which is already big and heavy enough. So it looks like there is still a desktop in my future.

Tips on Meeting the Guru

Wednesday, January 31st, 2007

Somewhen back in the late 70s or early 80s I read an article entitled “Eleven Tips for Meeting the Guru” or something similar. I think it was in the “Whole Earth Review” or “CoEvolution Quarterly” magazine, however I’ve never been able to find it again. One tip that has stuck with me is, “What the guru tells you is true, your task is to find what it is true of.” I’ve found this to be true on several levels.

Spiritual teachers are trying to teach a worldview. There are two bits to this, a way to reach it and what it looks like. Usually the way is essentially a condensed version of how the guru reached the worldview. Usually they leave out the detours, deadends, etc. However, remember that a detour is usually there to go around something you might rather avoid. Sometimes the direct route is not the best route. The other bit is what it looks like when you arrive, whatever path you took.  All of this is a mix of the metaphorical and the concrete.
Many writings or speakings are reactions to or arguments against some other writing or speaking. If you can find that article/speech/whatever, often the arguments make more sense. For example, the Software Engineering Institute’s Computer Maturity Model (SEI CMM) is a reaction to the utter chaos and unpredictability of software development with no process. It is predominately about making software development managable and predictable. So it collects numbers and objective evidence. It also assumes software development is like manufacturing, it is a repetitive, assembly line process that we need to squeeze the last bits of productivity out of. The Agile Methods (AM) are a reaction to CMM.  If you’ve never ecountered CMM, much of the AM rhetoric won’t make sense.

Every program, every programming language feature, every policy and procedure attempts to solve some problem. The problem may not exist. The problem may be so infrequent it isn’t worth codifying a solution. The solution may be bad or worse than the problem. But always keep in mind, “What problem is this trying to solve?” Same applies to laws.

DSPAM Update

Saturday, January 27th, 2007

The usual two week training period for an adaptive filter has passed. DSPAM is much better than the adaptive filtering built into Firefox/Mozilla/Netscape, but it isn’t yet solid. There are still false positives on important HTML newsletters. And there are occasional false negatives. I can live with those. The false positives are a problem. It is really nice to be able to direct the items flagged as spam to the bitbucket unexamined, unseen. The situation is still improving so hopefully more training will solve the problem.

DSPAM

Monday, January 15th, 2007

To quote the Website for DSPAM:

DSPAM is an intelligent, adaptive spam filter capable capable of learning what spam is and isn’t based on each user’s individual email behavior. It is designed for both system-wide filtering and third party integration. You should use DSPAM if you are looking for a scalable, fast, and accurate spam filter that is capable of adaptive learning. Although it is a spam filter by design, DSPAM has shown great proficiency in classifying any kind of document into one of two concepts.

DSPAM is not a drop-in solution. It requires some thought, some work, and some training (both you the installer/sysadmin and the e-mail users). However, I’ve found it more than worth it. It has a number of options, some experimental, some ready for production work. Like most adaptive filtering packages that start with a blank slate, it takes about two weeks of e-mail to fully train it.

Netscape/Mozilla/Thunderbird comes with reasonable pre-training and does a decent job right out of the box. I was impressed with Netscape’s filtering when Janelle started using it several years ago. However, all her mail was coming through AOL and they filtered out the obvious scams, illegal operations, stock pump and dump operations, etc. When we moved and just relied on Thunderbird’s filtering, it’s limitations showed up. Thunderbird never seemed to learn about image spam.

I had been using DSPAM on my system at home for several years and was quite happy with it. I had tried several anti-spam packages, e.g., SpamAssassin and CRM114, but DSPAM had far fewer false positives and false negatives. And it used less CPU and memory than SpamAssassin. SpamAssassin is written in Perl, DSPAM is written in C. SpamAssassin is a real memory hog. My mail server was an old dual 300MHz PII with only 192MB. It could handle my e-mail load without breathing hard until I added SpamAssassin. It thrashed with SpamAssassin. Plus SpamAssassin uses someone else’s definition of spam, not mine. I tried tweaking it, but it always had an uncomfortably high level of false negatives and positives.

CRM114 is also fully adaptive and catches stuff that DSPAM doesn’t, but in the end I found it gave too many false positives. Since it broke in an upgrade, I’ve stopped using it.

I’ve found that just having probable spam filtered into a separate folder is nice, even if I have to wade through it all. However, eventually the amount and the coarseness of the spam became wearing. After the intial two week training period, I never caught DSPAM in a false positive, even though I waded through thousands of spam e-mail. Mostly, I let it discard spam sight unseen, but every once in a while I’d look at the flagged items. There was one exception, when I finally signed up for an eBay account, I had to whitelist ebay.com to get the signup e-mails through.

To install, read the documentation and follow the instructions. If you are using Postfix, you will have to make one change. Postfix delivers mail as the user receiving the mail. Not all MTAs do this. The dspam executable is installed root execute only. Add other and group execute permissions, e.g., as root, chmod og+rx dspam.  I have it deliver both spam and innocent (AKA ham) e-mail, tagging spam.  I use Maildrop (Procmail has equivalent functionality) to sort tagged spam into its own folder or the bitbucket once training is complete.

The result is very good.  DSPAM is catching the image spam that Thunderbird didn’t.  I have only a week of training, but false positives are few and far between, mostly just HTML newsletters it hasn’t seen yet.  Another week and I’ll let Maildrop start discard the spam, sight unseen.

Fetchmailing from AOL

Tuesday, January 9th, 2007

In recent years, AOL has moved towards standard protocols. With Netscape 7.0 it is possible to read your AOL e-mail without using AOL’s client software. My wife has been using it for several years.

Now however, we are using my dual boot Linux/WinXP laptop for all our computing needs. However, switching OS is a pain, it takes several minutes. Thunderbird supports IMAP, so I tried it. It works, mostly. If you dig into the IMAP conversation between the two, you can see that AOL has a bunch of AOL specific capabilities. Thunderbird doesn’t support them, but Netscape did. One of the things supported was a folder for “Sent Mail”. This is basically the same as the more standard IMAP folder “Sent”.   I tried several things to try and get them to work together, but failed. Since I couldn’t get that to work, I tried using fetchmail to download all her AOL e-mail onto my laptop and dump it into the Courier IMAP server. This is what I do for my own mail. It has a couple of nice features, including being able to read and compose e-mail off-line.

However, trying it turned up a few flaws. AOL’s IMAP support has both proprietary extensions and is incomplete. The SEARCH command is wrong/incomplete/non-existant. And fetchmail uses it to download only unseen mail. This can be useful but I can live with downloading all mail. Adding the “–all” flag to the fetchmail invocation does this.

There are a few other funky details about AOL’s IMAP support. If using TLS or SSL, the server certificate Common Name (CN) is imap.mail.aol.com. But the domain is imap.aol.com. imap.mail.aol.com doesn’t exist. Fetchmail complains/warns and grabs the mail anyway. You can make the mismatch a fatal error with the “–sslcertck” option.

Anyway, it works.