Search Results: "Matthew Palmer"

1 July 2007

Matthew Palmer: This is what Web 2.0 is for

Very cool and ultimately largely pointless: I give you "If The Earth Were A Sandwich" -- a tool to let you see what is directly on the other side of the earth from a given point. (No, I have no idea what the meaning of the title is either). Ever wanted to know exactly where you have to dig to end up in China? Well, now you can find out.

19 June 2007

Matthew Palmer: Applause is Warranted

For "Freedom, Justice, and a Disturbingly Gaping Ass", one man's very well-written tale of why hot-linking isn't such a hot idea. While you can probably guess the overall content of the story just from the keywords "hot-linking" and "gaping ass" (what's Google going to make of that, I wonder?) I think it's worth reading this just for the way that Jason Scott tells his story of goatse, and his "pilot" explanation of why such stupidity exists on the Internet of today.

15 June 2007

Matthew Palmer: Observations on Travel

9 June 2007

Matthew Palmer: Good DNS Hygiene

How sure are you that the DNS infrastructure for your domains is in good health? Are they all properly delegated to the right place, with correct NS records and glue? Are all of the domains that you rely on to get your names resolved properly configured themselves? Although everyone out there is probably saying "pfft, of course!", don't be so sure. Before you assume the best, try running one or two of your domains through Squishywishywoo's DNS checker, which does a recursive query for the given record from the root servers all the way down, giving you complete information on what's being checked and what the results are. From that report, you can easily work out what's wrong with your DNS lookups, and correct the problem at it's source. It's also handy for seeing exactly how a DNS lookup works (and explaining to random nitwits how DNS queries actually work). It's actually interesting to run a few domains (run by people who should know better) through the checker and see what actually happens. There's a surprisingly large amount of breakage in people's DNS setups. So the next time you find someone's website is slow to load, perhaps run their FQDN through this DNS checker and see if it's their server or their DNS lookups that is slowing things down.

Matthew Palmer: Project Honeypot: The Joining

After asking last week if anyone had any experience with Project Honeypot, I got one response, from Chris Samuel, who was pretty positive about the whole thing:
I'm one of the people contributing, from the stats on my site it appears I've contributed to the identification of 6 harvesters and a comment spammer. I'm only running it on one site at the moment, but it seems to be a useful service and once it's up and running it seems fairly inconspicuous.
I decided to give it a go myself, and signed up. It's pretty nifty the way it all works. You can do a number of different things to be part of the project, from linking to other people's honeypots (through the trivial act of adding some HTML to your web pages), or you can setup a honeypot of your own (which is done in an ingenious manner, and just requires you to be able to run one of a bunch of different forms of dynamic script -- about ten minutes work, tops). You can also contribute a domain (or subdomain) which the project will use as a spamtrap domain -- all you have to do there is add an MX record. The use of lots of different domains makes it harder for spammers to filter known spamtrap domains out of their lists. In exchange you get good karma from helping to identify network abusers, and you can monitor chunks of IP space (such as space that your company sub-leases to others, for example) for evidence of abuse, or use the collected data to block abusers from your own web servers through the project's http:BL service. The http:BL, for me, is probably the most valuable "payback". It lists IP addresses that have been used recently by comment spammers, address harvesters, and other abusers of HTTP resources. It's not a list of spam sources, though -- there's no shortage of DNSBLs for that. The project has an Apache module that can query the list and re-route or block requests from those IP addresses, and there's also a Wordpress plugin that queries the list (not that I use Wordpress, but it's an example of what can be done). Unlike Chris, I haven't helped to identify any bad activity yet, but there's been some activity on my honeypot, so I'm hoping that I'll catch someone soon. I think it's worth getting involved and contributing what you can -- there's very little cost involved (I got all my resources setup inside of an hour, and I haven't noticed any increased load on my server or bandwidth), and everyone wants to stop Internet abuse. So please, take a look at the project and consider joining.

7 June 2007

Matthew Palmer: For Your General Good Health...

Read Limes & Lycopene, the regularly updated blog of nutritionist Kathryn Elliott. It regularly has interesting and healthy recipes, discussions of current food-related news and fads, and Kathryn has recently started up "Q & A Thursday", where you can ask questions throughout the week and get a big dump of interesting answers each Thursday. My favourite from today's burst is "What should your dinner plate look like?" (apart from flat and round, of course...) In the recipe arena, I can't recommend the Pumpkin and Cinnamon Ristto highly enough -- it is absolutely delicious.

3 June 2007

Matthew Palmer: Perhaps It Wasn't The Marketing...

It is common wisdom that one of the major reasons that Microsoft has prevailed in the software industry is because it is supremely good at marketing it's products. After watching a Windows 386 promotional video, I'm starting to doubt the validity of that wisdom. To paraphrase Mr. Burns, "Smithers, I'm beginning to think that Microsoft is not the brilliant marketing machine I thought it was".

Matthew Palmer: OfflineIMAP and Deleting Folders

(File this under "Reminders for the future Matt") I use, and highly recommend, OfflineIMAP for the synchronisation of your e-mail between your daily working machine and your IMAP server (if you don't have an IMAP server available for your mail, it's high time you got one). You point it at an IMAP server somewhere far, far away, and a local Maildir, and all of your mail and folders magically get synchronised in both directions. New folder on the server? After the next run, it'll be on your local machine. Even more magical, though, is that any new mail or folders you create on your local machine will be uploaded to the server. Woohoo! Offsite Backups! (Before you GUI mail users say "pfft, my client does that all for me", I'll remind you that I don't need to chew several hundred megs of core to delete my spam) I've got some magical procmail rules (specifically, look for "ARTFUL PROCMAIL") that automatically filter list e-mail into individual folders (with automatic creation of the folder if necessary, of course). This makes mailing lists soooo much easier to handle. Of course, when I unsubscribe from the list a couple of weeks later, that folder is still sitting there, empty and forlorn. I don't mind empty directories, except that they slow down the OfflineIMAP sync run, since it asks "any new mail in here?" for every one of them. I'd just delete them from my local machine periodically, except that OfflineIMAP can't delete folders off the server if you remove them from your local Maildir (and vice versa). Instead, the folder gets re-created on the local machine, which is definitely not the result I'm looking for. I'm pretty sure this is an IMAP limitation, so I'm not criticising John Goerzen for not implementing this particular feature. However, the empty folders bother me a bit, so I decided to do something about it. Namely, I hacked up some little shell one-liners. These one-liners are all dependant on you having the same IMAP server (Courier) and folder name mapping (none) as me, otherwise there's a good chance that your file names won't match the patterns I've used. For reference, My folders on the server are dot-directories under $HOME/Maildir, and my folders all start with INBOX. on the client. Also, both sides use periods to separate folder levels. As an example, e-mail to the debian-devel-announce list gets stored in $HOME/Maildir/.lists.debian-devel-announce on the server, and $HOME/Maildir/INBOX.lists.debian-devel-announce on the client. I've got one big before you start warning: this process involves deleting things. If you're not able to verify that what these snippets are doing is correct for your particular situation, then please do not run them. Also, if running them causes all your e-mail to disappear or your cat to fall pregnant (despite being spayed and/or male), then that isn't my fault. The only warranty I give is that It Works For Me. It May Not Work For You. As a first step, make sure that your local and remote mail stores are in sync -- presumably by running OfflineIMAP. Otherwise, a folder which is empty on one side might not be quite-so-empty on the other side, and that would possibly make for sadness. Stopping e-mail from coming into your mailboxes would be good, too -- I just turned off my MTA for a few minutes, because clogging other people's queues is fun. Doing something smart with procmail would also work. On the OfflineIMAP client machine (laptop, home desktop, whatever), cd into your local mail store, and run this to generate a list of IMAP folders that don't have anything in them:
 for i in INBOX.*; do find $i -type f   grep -q $i   \
 (echo $i   sed 's/^INBOX//'); done >/tmp/empties
The contents of /tmp/empties should look something like:
 .Deleted
 .junk
 .lists.debian-devel-announce
 .lists.something-funny
 .spam
Review the list of folders it produced (just to make sure nothing really unpleasant ended up in the list), and then run:
 for i in $(cat /tmp/empties); do rm -rf INBOX$i; done
to delete all the empty folders. Next, copy the list of folders onto the IMAP server (yes, you need shell access on the server to do all of this; that's why I run a Linode), cd into your Maildir on the server, and run this:
 rm -rf $(cat /tmp/empties)
That removes the folders from the server as well. For some reason, OfflineIMAP doesn't notice that a folder has gone away, and so it doesn't remove the metadata for the deleted folders from it's cache. I'm not sure if that hurts performance or is otherwise injurious to your health. To be ultra-neat, go into $HOME/.offlineimap (or wherever your metadata dir is) on the client machine and run
 for i in $(cat /tmp/empties); do find . -name INBOX$ i ; done  xargs rm -rf
And that makes everything clean and tidy. Now, of course, someone's going to point me to a small script that finds all of your local empty folders and deletes them locally then issues an IMAP "delete folder" command on the server. But I had fun working all this out, so it's not a complete waste.

Matthew Palmer: Project Honeypot

Recently I stumbled across Project Honeypot, an interesting anti-spam system to identify and flag Internet abusers, through the use of honey pots -- systems that look innocent and attractive enough to the passing network abuser, but which actually log and flag the abuser's activity and record it for future reference. It seems cool enough -- anything that aims to stop random assholes from abusing the Internet and making life unpleasant for the rest of us is to be commended -- but I'm wondering if anyone has had any experience with the project, and has any comments? I'm considering joining up and contributing a few resources, but prior experience is always worth listening to. E-mail me at mpalmer@hezmatt.org, and I'll summarise in a future post (possibly with my own experiences, if I do actually join up).

Matthew Palmer: Get Your War On

I've got a number of web comics in my rotation, which I read with varying regularity. I don't know if I'd call "Get Your War On" one of my "favourites" (if only because I don't think it should need to exist), but it does have some viciously biting commentary on the Iraq war. Some of the ones I wish I had on T-shirts: Culturally Sensitive @ Get Your War On Shiite Death Squad Productivity @ Get Your War On The Power of Freedom @ Get Your War On The Writ of Habeus Corpus @ Get Your War On

30 May 2007

Matthew Palmer: E-mail Overload

I'm not suffering from it myself at present, but over at that prince of productivity blogs, 43 Folders, Merlin Mann has a nice piece on "E-mail Bankruptcy. The idea is that if you ever get completely overloaded with unread / unresponded-to e-mail, you just "declare bankruptcy", delete all your unread e-mail, and let the world know that if it's important they should resend it. The best part of the article for me, though, was this description of e-mail overload:
Email is such a funny thing. People hand you these single little messages that are no heavier than a river pebble. But it doesn't take long until you have acquired a pile of pebbles that's taller than you and heavier than you could ever hope to move, even if you wanted to do it over a few dozen trips. But for the person who took the time to hand you their pebble, it seems outrageous that you can't handle that one tiny thing. "What 'pile'? It's just a fucking pebble!"
The next time I get bothered that someone hasn't replied to my e-mail, I'm going to try to remember that they may have a lot of other pebbles in their pile.

Matthew Palmer: The Programmer's Rant

Normally I'd sigquote this sort of thing, but (a) it requires a wider audience than the occasional appearance at the bottom of a drivel e-mail, and (b) it's way too long for that. So I'm going to blog it instead. In response to a comment that programming requires the skill of clairvoyancy, a response was:
Required? It just makes you suffer more. You know up front that they'll accuse you of ducking the question when they ask for a schedule and you give one contingent on specific preconditions. You know ahead of time that they'll change the specifications at the last minute. You no ahead of time that if you object to changes without revised budget and schedule that they'll say you're no a team player. You know ahead of time that they'll blame you even though they signed off on the schedule being contingent on no changes. You know ahead of time that there will be nothing that you can do about any of these. So what does your precognition buy you other than an ulcer or perhaps a coronary?

25 May 2007

Matthew Palmer: Who needs Groklaw...

when you've got bash.org?

Matthew Palmer: The Real Reason Software Sucks

Although I feel that The Daily WTF has gone downhill in the last few months (since the rename and addition of different "categories" of story), today's article titled The Great Pyramid of Agile is a good, thought-provoking read. I've tried to find a good "sound bite" quote that really captures the message of the article, but the whole article meshes together a bit too tightly, so just trust me when I say "go and read the article".

17 May 2007

Matthew Palmer: The Security Theatre's Sydney Tour

In addition to whatever other stupidities and inconveniences our elected "representatives" foist upon us for the pointless APEC summit, they're now also going to take away our mobile phone reception. I'm in favour of these devices, particularly if I can get one I can carry in my pocket. However, for the purposes of protecting foreign leaders (I'm not going to use the term "dignitary", since Dubya is in no way dignified), this thing is useless. All a bad guy has to do is make a bomb with an area of effect big enough to cover a football field, and make it trigger when it can't talk to the mobile phone network. When the mobile network goes away, you know that your target is close. Not to mention the fact that mobile phones aren't exactly the only radio transmitters out there -- a remote central locking key fob is an equally useful bomb detonator. Sigh. At least Sydney apparently gets a public holiday on the day of the APEC summit. I haven't confirmed this; my wife was just depressed last night about how she didn't get the holiday because she doesn't work in Sydney.

15 May 2007

Matthew Palmer: If You Find Those PC/Mac Ads Annoying...

Then you may enjoy this gem of a comic. Personally, they were entertaining to begin with, but some of the recent ones actually have me wanting to kick that Mac guy in the head, and I'm starting to feel a bit of pity for the PC. That's scary. Oh, and anyone who points me to the Novell Linux/PC/Mac ads gets scowled at. They really suck.

14 May 2007

Matthew Palmer: Wanted: A Telco That Doesn't Suck

I am currently with Optus, and while they were acceptable a few years ago, they have descended in the last couple of years so that they're chair-throwingly obnoxious now. So, as I really, really dislike giving retarded monkeys my money (I'd get rid of govco if I could, really), I'm looking to move. Specifically, I want a telephone communications provider: ). Do I really have a hope in hell here? At this point, I'll pay a bit more for phone service if it doesn't involve getting screwed over at the telco's whim, and dealing with incomprehensible Indian call centres. Answers on a postcard, or (if you're feeling really technical) in an e-mail to mpalmer@hezmatt.org. We're talking about Australia here, in case anyone's wondering -- moving to another country for phone service is probably a bit too drastic. Switching to pure VoIP would be an option if I didn't need to have a fixed-line service for my ADSL.

Matthew Palmer: A Lesson In Critical Reading

Yes, Microsoft have started swinging their patent bat a little harder. However, before everyone gets all screamy about the "235 patents" thing, read a little closer:
the Linux kernel [...] violates 42 Microsoft patents. The Linux graphical user interfaces - essentially, the way design elements like menus and toolbars are set up - run afoul of another 65, he claims. The Open Office suite of programs, which is analogous to Microsoft Office, infringes 45 more. E-mail programs infringe 15, while other assorted FOSS programs allegedly transgress 68.
While I can forgive a journalist the sin of not knowing the difference between Linux-the-kernel and Linux-the-entire-FOSS-ecosystem, can people who should have a clue about this please stop perpetuating the inaccuracy? Yes, 42 patents is still pretty bad, but it's not 235, and getting facts straight is what we do on this side of the debate -- the frothing and bullshit is what the other guys do. Once you start looking at the various categories of patent, it really does make it obvious that there's some straw-grasping going on here. If GUI elements really infringe on 65 Microsoft patents, it seems reasonable to assume that KDE and Gnome have a subset each, so presumably nobody gets the full brunt of that lot. Also, those 68 "assorted FOSS programs" patents probably includes such widely-used classics as this pearler of a program (chosen at random from Freshmeat for it's likely small userbase; no other ridicule is intended or implied). What galls me, though, isn't the bandying around of random inaccurate numbers, it's classy things like this:
[some Microsoft sock-puppet] refuses to identify specific patents or explain how they're being infringed, lest FOSS advocates start filing challenges to them.
Yeah, we'd hate it if the patent system were at all used in the manner in which it were intended. I don't suppose anyone else is getting SCO-style "we've got 100,000 lines of infringing code, but we're not going to tell you which ones" flashback at this point? Personally, I think that if Microsoft ever does starts with a patent smackdown, it won't be 235 patents, it'll be two or three, the strongest ones they can find, and 90 minutes after the plaintiff(s) is/are served the infringing code will be history, and we'll go back to living our lives as normal. That's even assuming that the patents are legit, which is by no means a given (even with the US' insanely broad patent provisions). As the linked article explains, the US Supreme Court has started getting a bit noisy on the subject of over-broad and pointless software patents, so perhaps Microsoft is just getting it's licks in before the Supremes take it's noisy rattle away from it. There's some side-commentary on this issue at Groklaw, and the Patent Law blog has a quick mention of it too (with all sorts of nice frothy comments, to boot).

2 May 2007

Matthew Palmer: Cool Ruby Feature: A Hash With a Dynamic Default

 h = Hash.new    h,k  k*k  
 
 h[1] = 42
 
 puts "1 => # h[1] , 2 => # h[2] , 3 => # h[3] "
Produces:
 1 => 42, 2 => 4, 3 => 9
It's weird little things like this that make me really love Ruby.

2 February 2007

Matthew Palmer: Why Security Is So Hard

Recently, I was doing a conversion of CFEngine configs to Puppet manifests. I noticed this line being set in sshd_config:
 AllowGroups foo bar baz xyzzy
And then somewhere else, the www-data user had been added to the baz group, so that the webserver could write to some files owned by the baz user (on a group-per-user system, naturally). Ordinarily, you wouldn't connect these two things (the changes most likely having been made months apart), and it was only that I was examining all of the changes made to the system in this manifest at once that I connected the two things at all. There are a couple of ramifications here: I don't know whether the problem is excessive complexity and hence the risk of unintended consequences, or if problems like this can be avoided with sufficient careful thought, but I do know one thing: making all of your system changes through a system like Puppet doesn't just make your systems more reproducible, it also makes them more auditable. Bonus!

Next.

Previous.