Strangely Enough

January 27th, 2009

I bought meatballs at a furniture store.

I ate them.

Stupid California Where All My Stupid Colleagues Are

January 15th, 2009

Zeroconf FTW!!1

January 7th, 2009

If you are like me (very unlikely) and get all teary eyed and nostalgic when someone mentions NBP, then you will squeal with school-girl delight when you read this book on zerconf:

What has me very excited is Chapter 5, titled: “Service Discovery Beyond the Local Link”, where you use the existing DNS infrastructure and NAT-PMP to register Zeroconf-ish services across the whole interwebs. This is the future, baby!!!1eleven

Geechorama’s Financial Advice, Vol. 1

December 29th, 2008

The stock market is like a hard drive.

1. It could go at any moment.
2. There may be early warning signs, but they’re probably not recognizable as such until after the fact.

Admittedly, the analogy kinda breaks down after that. With a harddrive if you don’t want to lose your data, then you back it up. With the stock market, if you don’t want to lose your money, DON’T PUT IT IN THE MOTHER-LOVING STOCK MARKET!

That is all.

UPDATE: Oh! Oh! I found this really cool site.

Yeah, Right.

December 19th, 2008

Given recent events, if it’s edible and made in China, we don’t buy it[1]. So my wife was in the store the other day, looking to buy candy, and putting back anything marked “Made In China.” And then, she comes across one that says:

“Made Responsibly In China”

Seriously[2].

I tried to write something here about how China is now enjoying its own Industrial Revolution, a hundred years late, but it came off all pretentious-y.

[1] We’re actually trying to avoid anything made in China at this point, thanks to other issues that have affected us, but HOLY MOTHER OF CHRIST THAT’S DIFFICULT!!!!11

[2] Of course, somebody already posted a pic

But Wait, There’s More

September 25th, 2008

The Pinnacle of Modern Civilization

September 16th, 2008

My wife and I were watching a fairly innocuous show on TLC when we saw this promo:

Probably not the best way for two hypochondriacs to spend their Sunday evening.

Yes, I Am Paranoid

August 1st, 2008

Up until recently, I had vehemently decided: “OMG TEH NEIGHBORHOOD HAXXORS! I must put my wireless access points outside a firewall to protect my internal network!”

So I had an IPCop box with a blue zone that had my wireless access points. They were on a separate subnet and firewalled.

But after a while, this got really old. Having multiple laptops, I had to scp stuff back and forth to my desktop machines. Whenever a friend came over, I had to grab their MAC address from my IPCop box’s logs and explicitly give them internet access from the “blue” network. This setup also made tech-support for my Luddite wife Better Half more complicated.

The real deciding factor though, was all the cool Apple toys that use bonjour and, for the most part, just work together without any hassle or setup. The Apple TV, iTunes sharing, iPhone remote control application, AirTunes via the Airport Express, AirTunes via the Apple TV. All that stuff gets kinda borked if you spread stuff across different subnets.

So I thought, OK, I’ll put the wireless access points directly on the internal network, but I wanna be emailed when an unknown MAC address connects.

So this what I did:

First, I told the access points (Airport Extremes in this case) to send syslog messages over the network to my linux box. That was rather trivial:

easy-peezy

Then, I made sure the syslogd process on my linux box was getting the “-r” option (Fedora Core 6, so /etc/sysconfig/syslog) to accept remote syslog messages.

Then I used the super-handy info here and channeled everything from local0.* into a named pipe and into a script:

local0.*            |/etc/zoppy/pipe

When a client connects the Airport Extreme spits out a message like this:

Aug  1 14:30:13 zoppy zoppy 80211: Associated with station 00:1d:f4:f8:7c:3d

So my script ended up looking like this:

#!/bin/sh
TMOUT=1
while read line
do
    echo ${line} | grep "Associated with station" > /dev/null 2>&1
    if test $? -eq 0
    then
        echo ${line} | grep -f /etc/zoppy/known-macs > /dev/null 2>&1
        if test $? -eq 1
        then
            echo ${line} | mail -s "Zoppy: unknown mac address connected" geechorama@spam.email
        fi
    fi
done

Set it to run every minute:

0-59 * * * * /etc/zoppy/mailer < /etc/zoppy/pipe > /dev/null 2>&1

If the MAC address of the machine connected isn’t in my known-macs file, I get email.

Paranoid victory!

One Word Book Review™

July 30th, 2008

Riveting.

Darn It

July 30th, 2008

The harddrive in my webserver died.  I’m in the process of getting everything moved over to dreamhost. Still need to import my old posts and whatnot.  Joy.

The drive was a 41GB IBM Deskstar manufactured in Hungary in October of 2001.  Add that to your drive failure stats.