Spotted in the Wild: XOF1 Solar Car

As we were driving North on CA-1 on our way back from the elephant seal rookery, KC and I saw an odd vehicle off in the distance. At first it looked like a wide-load with some sort of farm equipment in the front. As the ‘farm equipment’ got closer (it was closing fast) it started to look like a squat vehicle. At first I figured it was a Shell Solar Challenge vehicle, but once we got home we noticed that the news had a story.

It is a fellow Canadian who has made this vechicle (and driving it around North America) quite a project.

More here.

Photo by Jack Snell — I didn’t get a chance to take one as it zoomed by on a twisty section of CA-1.

PS: Damn – it was cool looking and booking along, fast.

Mobile Phone Platforms: Time to Hello, World!

Hello, Android!
I recently had the opportunity to attend a talk by Google on OSS strategies withing Google and with a fairly prominent emphasis on Android, their mobile phone platform.

The presenter was adamant that you could get “Hello, World!” up and running very quickly. Dubious, I decided to try while I was sitting in the presentation.

Long story short: around 20 minutes, including the Eclipse and Android SDK installation process.

I think I’ll compare this to the “TTH” (Time to Hello,World!) for iPhone and BlackBerry.

Hello, iPhone
Well, after around 10 – 15 minutes, I was able to get an emulated iPhone Hello, World! up and running. I admit that in the Android case, I wrote the code in a template and in the iPhone case, I really just compiled it and launched it in the emulator. YMMV but I don’t think this is a great test for ease of use. Especially given that one is a Java-realm and iPhone is Objective-C.

I’ll see about updating this post with SLOCs per Hello, World!.

Excellent Early Implementation of my Long Ago Proposed BAC Email Checker

Although not as direct as the approach I’ve long though useful, Google Labs has introduced the Gmail Goggles feature. In their words:

When you enable Mail Goggles, it will check that you’re really sure you want to send that late night Friday email. And what better way to check than by making you solve a few simple math problems after you click send to verify you’re in the right state of mind?

This is almost what I’ve proposed to colleagues in the past: namely an afterhours finger-prick device than can detect trace amounts of system inhibitors, like, say, alcohol and refuse to launch your MTA. Your precious mail would be held until morning, at least. Whereupon you can review it and make the appropriate changes (read: deletions) that a professional adult would make.

Kudos to Mike for pointing this excellent innovation out. If only it worked over IMAPS too.

Amateurs

Well. KC and I successfully completed our technician grade amateur radio exams and the paperwork from the FCC has arrived. KI6TDK and KI6TDJ respectively. Yeah. Radio time. I think it is amusing that I have a US callsign and a Canadian Aviation RO permit too. It will be interesting to see how it reconciles in the future. Perhaps it really doesn’t matter.

Photo is Saturday morning — coffee and repeaters.

Ham Licenses. Who has one?

KC and I have been considering getting a ‘real’ bike-to-bike communication system and with that comes the discovery that almost all GMRS / business radios need to be licensed. With a Technician Ham ticket being a mere weekend course and with that opening the possibility of ‘real radios’, I’m interested in hearing from any of you that have your ticket.

What portable rigs have you tried, anyone have any experience with the Kenwood TH-F6A, what about the Yaesu VX-7R, or newer. Anything from ICOM?

I have an ICOM-A23 for aviation that I’m very pleased with, but this is a new application so they may not be the incumbent that they are in the aero world.

Any comments or thoughts around portables are welcome. Since it is a bike application, I don’t have room for a mobile sized unit.

It occurs to me that I don’t even know which of my friends have a ham ticket, so feel free to educate me.

Disruptive technology

Below is a screen shot of the iPhone app store. The juxtaposition of prices struck me rather soundly.

Why would I buy New York for 10$ and presumably other metro areas for 10$ each when Yelp is free, current and user generated content? Frommer’s and Zagat beware.

photo

Eavesdropping on Encrypted Compressed Voice

Eavesdropping on Encrypted Compressed Voice: “Impressive.”

David Robson has a writeup on New Scientist’s site that talks about recovering content based on packet size. Knowing how sounds are encoded can help the attackers guess at the sounds that led to the observed packet sizes.

The software breaks down a typed phrase to be listened for into its constituent sounds using a phonetic dictionary. A version of the phrase is then pasted together from audio clips of phonemes taken from a library of example conversations, before finally being made into a stream of VoIP-style packets.

Indeed. The short version is that this appears to be a creative application of traffic analysis to recover language structure. The packets in the compressed domain can reveal hints as to the phonemes and utterances under the encoding.

(Via Schneier on Security.)

Quicksilver and screen locking.

A few people have asked me how I lock my screen so conveniently when I walk away from my Mac. Here are two approaches that I’ve used. Both of them have relied on Quicksilver, a wonderfully powerful application that I cannot stand to be without.

Method 1 : Activate the Screen Saver on Hotkey activation.

This one is slightly easier than the login window tip, since it does not require any supporting scripts. There are reasons to prefer one over the other, so I leave the choice to the reader. This one is easy, but requires that you set the security properties so that your screen saver requires a password to disable – otherwise there is no security benefit to this variant.

  1. Fire up Quicksilver’s Preference panel and select Triggers:
    qstrig.jpg
  2. Create a new item that opens
    /System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app
    when the hotkey is pressed. You will have to navigate to this file in order to have Quicksilver find it. (Start by typing / S y s and navigate the directories.
    qstrigact.png
  3. That’s it. Once you press your hotkey, you should see a little Quicksilver indication and the screen saver will start. Make sure you select a screen saver AND that you have your security settings to request a password to turn off the screen saver.

    Method 2 : Activate the Login Window on Hotkey activation.

    Using a tiny glue script (in bash, thankyouverymuch), we tell the session manager to suspend the current login session. I do not know if this requires fast-user switching to be activated, but I have it setup on my Mac.

    I prefer this one since it uses less CPU and puts the machine in a state where someone else could use it more readily — this is handy at home where the machine is truly multiuser.

    1. Open the Quicksilver Triggers panel (as above).
    2. Create ~/bin/LoginScreen.sh. Open Terminal.app and paste this into it:
      [ -d ~/bin ] || mkdir ~/bin
      cd ~/bin
      cat > LoginScreen.sh << EOF
      #!/bin/bash
      x="/System/Library/CoreServices/Menu Extras/User.menu/Contents/Resources/CGSession"
      [ -x "$x" ] && "${x}" -suspend
      EOF
      chmod +x ~/bin/LoginScreen.sh
      

      If you are familiar with shell scripts and having your own bin directory, feel free to create LoginScreen.sh you own way. You can also just download it here, right click and save as in a well known place.

    3. Create a hotkey trigger that will launch LoginScreen.sh.
      Navigate to the script (perhaps in ~/bin) and get Quicksilver to launch it when you press the hotkey.

    LoginScreen.sh

    This is a super simple script to tell the session manager to return to the login screen (suspend the active user's login session).

    #!/bin/bash
    x="/System/Library/CoreServices/Menu Extras/User.menu/Contents/Resources/CGSession"
    [ -x "$x" ] && "${x}" -suspend
    

History Meme – My Turn

Well all my friends are doing it, I might as well jump in. I have to admit the results surprised me. I was experimenting with snmpwalk recently and this has skewed my results terribly.

On my daily use laptop:

polycarb:~ alan$ uname -a ;  history|awk '{a[$2]++} END{for(i in a){printf "%5d\t%s \n",a[i],i}}'|sort -rn|head

Darwin polycarb.local 9.2.2 Darwin Kernel Version 9.2.2: Tue Mar  4 21:17:34 PST 2008; root:xnu-1228.4.31~1/RELEASE_I386 i386

99	cd
86	ls
30	make
19	snmpwalk
17	ssh
16	svn
14	less
13	open
12	telnet
12	ifconfig

No surprises there, I use open a fair bit to open a Finder window in a particular directory. As others have noted, this does not account for the amount of work that goes on in the Aquamacs session.

On a dated work machine that is used for project management, integration and firmware builds:

Linux energia 2.6.7-gentoo-r14 #5 SMP Thu Sep 9 10:16:29 MDT 2004 i686 Intel(R) Xeon(TM) CPU 3.06GHz GenuineIntel GNU/Linux
117	cd
76	svn
68	ls
36	./buildrel
25	svnmerge
22	pwd
14	grep
13	echo
12	less
8	bint

I make no apologies for running Gentoo here, but I wouldn’t do it again, that’s for sure. –funroll-loops –gaak!

buildrel is a script that (predictably) builds the firmware release image files and bint is a “bug integration tool” that lets me see diffs, branch-points and manage merges for integrating tasks into the stable codelines. It isn’t much more than a convenience wrapper around svn.

Swiss Interface Syndrome

Arial vs Helvetica

Swiss Interface Syndrome:
John Gruber over at Daring Fireball pointed me at Sebastian de With’s outstanding gripe on interface design and rendering type on monitors in small pixel-sizes. This is not an easy problem to solve and you can really, truly, do a miserable job of it. I think that not enough people understand fonts in general and that UI design has suffered as a consequence. Yes, there are many other reasons why UI design has suffered, but type-abuse is a really easy low-hanging fruit to pick. *

Sebastiaan de With on the garish practice of mixing Helvetica with Lucida Grande in Mac UI design.

Let’s not get started on the ages-old Arial vs Helvetica fight.

(Via Daring Fireball.)

* In no way do I imply or intend to imply that I have not committed terrible sins against UI design sensibilities or font rendering guidelines myself, but I try to be aware of it. An excellent book on fonts and working with them is the somewhat timeless “Stop Stealing Sheep & Find Out How Type Works” by none other than Erik Spiekermann and, E.M. Ginger.