Search Results: "pollo"

6 November 2005

Andrew Pollock: [code] Obfuscating email addresses with JavaScript

So I got pet peeved by Carlos Laviola in relation to by recent pondering about how MacOS X's SSH agent starts up on login. Perfectly reasonable grounds for complaint. I have had people contact me in relation to blog posts in the past, so it's obviously not impossible. People know I'm a Debian developer and can put two and two together and wind up at db.debian.org. Anyway, I'm the first to admit that my blog probably has too many of the Weblog Usability Top Ten Design Mistakes (something for me to work on). To date, I've been avoiding plastering my email address on my website because I didn't want to get it harvested. I try and use a per-list email address for this reason as well, and I haven't enabled blog comments because of comment spam, and because I haven't been clever enough to implement comments with Blosxom full stop. So I started getting an idea for reversibly encrypting my email address on my blog after reading about Hashcash for Wordpress the other day. I first started playing around with the Vernam cipher in High School, when I wanted to easily reversibly obfuscate some data for something. I'd read about this cipher in a magazine or something and seen it implemented in Pascal (it's not exactly hard). So I happened upon the idea of encrypting my email address with the Vernam cipher. Turns out another chap's already got a page for encrypting and decrypting on the fly with JavaScript. It even generates the JavaScript for putting in your own web pages. I had to use a different key to avoid getting dollar signs in the encrypted string, as this confused the tripe out of Blosxom (and me for a while when I tried to figure out what was going wrong). Then I thought it'd be nice to explain to people who had JavaScript disabled what they might be missing out on, so I fiddled around with some DOM stuff, and had some text get displayed if JavaScript was disabled. When JavaScript is enabled, this text is replaced by the decrypted text. So of course, like the Wordpress Hashcash, this is largely relying on the inability of spam bots to grok JavaScript. Once they can, this obfuscation technique is all for naught. Meanwhile, you can email me bit more easily now if you get the urge. View the source of my blog for an example of the implementation.

Andrew Pollock: [code] Canberra Perl Mongers meeting

The Canberra Perl Users Group is having one of its extremely irregular meetings next week. If you're in Canberra, or will be on November 2, let me know. The last one wasn't too bad. http://mail.pm.org/pipermail/canberra-pm/2005-October/000146.html

2 November 2005

Andrew Pollock: [tech] The quest for IPMI LAN access over down interfaces continues

Today I upgraded daedalus to 2.6.14. I had to backport yaird to stable, which wasn't a big deal. It's available here if you're interested. The kernel package for 2.6.14 from unstable worked fine otherwise. I had two motivations behind upgrading - inotify and another look to see if the situation with IPMI had changed. Well inotify just works, and is the bomb. I'm going to have lots of fun with it. IPMI, on the other hand is still broken, which makes me sad. As I've previously pointed out by way of example, LAN access to the base-board management controller via IPMI is impossible after Linux shuts down the interface. It's supposed to work, but the way Linux does it seems to stop it from working. I'd read that the problem was resolved in 2.6.12, and so dutifully tested it out on daedalus to my detriment. I also tested it on 2.6.14, but again, had the same problem (I remembered to schedule a deferred reboot this time). So IPMI with a box running Linux is all good as long as the box is actually running. I suspect if the box panicked and/or hung itself, it'd also be useful for rebooting it, but if you shut the box down and remove power, IPMI won't allow you to turn it back on again.

30 October 2005

Andrew Pollock: [tech] How does MacOS X (Panther) start ssh-agent?

Dear Lazyweb, Ever since I reinstalled my PowerBook a few months ago, after I'd put back on all my software (including the lovely SSHKeyChain), I couldn't get the same SSH agent behaviour I used to have. Specifically, the first time I'd SSH somewhere after logging in (or after awakening the laptop), I'd be prompted (in a nice GUI kind of way) for my SSH passphrase, after which the private key was loaded into my SSH agent, and life was good from then on. That is no longer the case. I get prompted for my SSH passphrase in the terminal window and on a use by use basis, i.e. the key isn't being loaded into my agent after the first time I get asked for my passphrase. I think the root of the problem is that my ssh-agent is being started with the -c option (generate C shell commands) when I'm actually using Bash. So, the crux of my question is where the hell does ssh-agent get started from, and how can I change how it is started? Love and sloppy kisses, Andrew

28 October 2005

Andrew Pollock: [tech] The FAI FAQ has been obsoleted by the FAI wiki

For a few years I've hosted a Faq-o-Matic instance for FAI. I received an email today from someone saying that all of the content in the FAI Faq-o-Matic had been merged into the FAI wiki, so I've just reconfigured my web server to redirect visitors straight to the wiki. I'll give this a couple of weeks or so for the search engines to all get with the program, then I'll completely decommission the web server.

27 October 2005

Andrew Pollock: [clug] Last CLUG meeting for a while

Tonight was my last CLUG meeting for a while, and it was a pretty good one. We didn't have a whole lot of structure to the meeting. Bob gave a couple of short talks. I gave a short talk off the cuff about the wonders of LVM. Hugh showed off some virtual reality goggle things. Alex tried to have a bit of a hackfest on Coda, but I think there was a general lack of Coda fu, so that didn't get very far unfortunately. Steve Walsh has kindly offered to take over as the person behind the shell script that schedules the meetings, and I've moved it from caesar (in the cupboard at home on the end of an ADSL connection) to daedalus in Brisbane, so it will continue to be accessible while I'm relocating. I'm looking forward to checking out SVLUG and BALUG (which seems to have fallen off the Internet (from home) at time of writing, looks like someone needs to read the IETF's BCP #16).

Andrew Pollock: [opinion] On this surplus orange problem

Okay, this may be a bit naive, but rather than having farmers dump a quarter of their annual orange output, why can't the Federal Government step in, and using some of the money they'd have earmarked for foreign aid, buy the oranges and ship them to the nearest country in receipt of our foreign aid? Everybody wins.

26 October 2005

Andrew Pollock: [tech] New toys

We've been stocking up on gadgets for our upcoming trips. Camera Sarah's going to Singapore to catch up with some relatives and then joining me in the US a week or so later. As our digital camera is currently a 1 megapixel afterthought on our Sony DCR-PC100E Handycam of 5 and a bit years, we thought it high time we got something half-decent as a compact camera. I'm moderately keen on getting a digital SLR, and after using Mikal's Canon EOS 350D when we went to San Francisco for our Google interviews, wouldn't mind getting one of those down the track and doing a photography course. So we tossed up whether or not to get a compact now and an SLR later, or scrap the SLR, and get something in the middle like a Canon PowerShot S2 IS. We settled on getting a Nikon CoolPix 5900, partly because apparently all the PowerShots are stuck in Customs at the moment and there's none to be had in the country for love or money. iPaq and GPS There is no way I was going to drive in the US again without some form of satellite navigation in the car. There's just too much going on on the roads over there (not to mention driving on the other side of the road) to have to worry about how to get from A to B. We were just intending to buy a car that had satellite navigation when we got over there, and try our level best to get a hire car with one in the interim. Some friends were saying that we'd probably pay a lot more for a car with it as a built in option, than if we were to buy a handheld/portable GPS. Then Mikal bought a bluetooth GPS for his iPaq, and that convinced me to go that way as well. So I bought an iPaq hx2100, which interestingly seems to have just fallen off HP's website (it was there on the weekend), so it must be approaching obsolescence or something. Today I got the Destinator software with maps for the US, and some evaluation maps for Australia, and tonight Sarah and I went for a spin to try it out. It was pretty cool. One thing that could be better is the differentiation between the directions leading up to a turn and turn itself. For example, it says "Turn right in 300 metres" and then proceeds to count down (e.g. "Turn right in 100 metres". Then it just says "Turn right". It'd be more obvious if you didn't have to listen for whether it was "in x metres" or not and either tacked "now" on the start or end of the final direction. It was also cute how it called roundabouts "circles". Going straight through a typical roundabout was "Take the second exit on the circle". If you ignored directions at some point, it'd plot a new route to still get you to your destination. All in all, I'm pretty happy with that purchase. The bluetooth GPS unit itself is cool. I'm able to talk to it from our PowerBook under MacOS X as a bluetooth serial port, and I'm yet to try the same with Linux on my D610. Hopefully I'll be able to get it work with gpsdrive The one downside with getting an iPaq and running Pocket PC 2003 (or WinCE as I prefer to call it) is it's forcing me to spend more time in Windows on my laptop than I otherwise would, just so I can do syncs and stuff. Hopefully once I've got the iPaq all bedded down, that'll change...

Andrew Pollock: [tech] Hand me the brown paper bag

The moral of the story is always, always use at to schedule a reboot shortly in the future, no matter how harmless you think something is... Today I stopped procrastinating about upgrading daedalus's kernel to 2.6.12 and did it. That worked fine. The reason for the upgrade was that I'd read somewhere that 2.6.12 fixed the problem with things like Dell's Baseboard Management Controller, where if you downed the interface in Linux, it downed it so far so that the BMC (which does some funky low-level physical interface sharing) also stopped being remotely accessible. So I upgraded, hopeful in the fact that if I were to ever remotely shut down daedalus, I could turn it back on or reboot it remotely with ipmitool. I thought I'd test this, so I did this:
daedalus:~# ip l s dev eth0 down; sleep 10; ip l s dev eth0 up
and promptly kissed daedalus goodbye. Not just for 10 seconds, for until I could get the colo guys to kick it in the guts for me. Grrr. At least I determined that the problem appears to persist. If I down an interface in Linux, it's down for the BMC as well. That sucks.

25 October 2005

Wouter Verhelst: PARISC 2

I talked previously about my Apollo, and how I was happy with my finding the manual on the hp website. The problem seemed to be the RAM. So, I replaced it. Rather than using two 32MB EDO SIMMs, I'm now using two 1MB FastPage SIMMs, and that resulted in the LED pattern changing to something else. Progress! Except that the new pattern isn't listed in the manual. Manuals are great, especially if they're complete. Grmbl.

Wouter Verhelst: PARISC

In Oldenburg, Joey gave me a PARISC box, an Apollo 715/50. It wasn't complete—no RAM, no hard disk, no CD-ROM or other media—but the system itself seemed complete and functional. Unfortunately, it isn't. I added some RAM that I took from my parent's old computer (196MB in total, IIRC) and tried power on the box. Didn't work. When I powered it up, the machine powers up its fan for a short while before shutting it down again; then the fan moves to a lower rate, and the machine appears dead. Well, mostly so; there's no output on the VGA port, and the LEDs don't do anything anymore, either. But those LEDs would appear to be helpful, if one would know what they mean. Unfortunately, the box came without manual, so figuring out exactly what they mean all by myself is going to be painful. Google to the rescue. I found an archive of the comp.sys.apollo newsgroup, with loads of postings from 2000. One of them also mentions failure to boot, no output, and mentions that all LEDs except one are on at the end. That's the same as what happens here, except that in my case the one-but-last one are on, rather than the last one. A reply suggests that the machine couldn't find the boot disk, and that therefore the box can't be booted. So, lemme get this straight: if the boot disk is having issues (or not available, as in my case), Apollo machines simply decide to not do anything? Fuck. Update: okay, turns out the HP Website still has a PDF of the model 715 service manual, which contains an explanation of the LED error messages. Turns out it means "No Memory Found". Hm. Watch this space.

Andrew Pollock: [meme] Unbelievable

But true.
You Passed 8th Grade Math
Congratulations, you got 10/10 correct!
Could You Pass 8th Grade Math?

Andrew Pollock: [life] Somewhere to live (temporarily)

The cast of thousands tasked with relocating us to the US continue to swing into action. For up to a month, we'll be accommodated at The Carlyle in Santa Clara. It looks a bit over the top. I mean we really don't need chandeliers, but at least it has a gym so I can try and keep off my Google pounds. I also looks reasonably close to work. Now if we can just get through all this customs paperwork for importing our personal effects...

22 October 2005

Andrew Pollock: [life] New dining table

About a month ago we lashed out on our first major purchase as a married couple and got a new dining table, as we anticipated having a few dinners with friends before we left the country. Our new dining table Our new dining table Last week it arrived, and tonight we had our first 8 person dinner to christen it. I made Moroccan stuffed lamb with roast vegetables, which turned out to be a success. It's always a bit scary making a new dish for the first time when you've got people coming over for dinner, as if it's a total disaster, you've still got to subject your guests to it.

19 October 2005

Andrew Pollock: [life] I'm feeling lucky redux

Today we finally got our E3 visas in the mail, so I've resigned from Cybertrust, and I'll be starting at Google in Mountain View, California, in probably 5 or 6 weeks time. Much bubbly to be consumed tonight.

Next.

Previous.