False Positives , Ian Irving's Adventures in Tech, Toronto (and HK), Sci and SciFi

Friday, April 23, 2004

Karen, Lady of Leisure

Just discovered the site of Karen Cheng a Asian Australian living in Perth, Western Australia and Graphic Designer, her Life, her husband (Andrew) and bady (Callum). Cute. Nicely designed site, great photo's and slice of life postings.

Thursday, April 22, 2004

Could it be......

Frazz...the John and Thomas show?

You too can belong to the William Shatner School of acting....

Khaaan!!

B.D.'s Helmet

Garry Trudeau done a fairly radical thing in the April 21 (2004) strip of Doonesbury

The first thing was so shocking (a helmet's been there for 30 odd year's, I'm not sure if Boopsie has seen him without it) that I didn't notice the second thing, even after going back to it 3 times. It wasn't until someone else commented on it that I final figured out what was bugging me.

As a statement it is a gusty move. As a piece of writing / cartooning - the miss direct and subtleness - it is a masterful stroke.

Wednesday, April 21, 2004

Setting up ssh-agent on Windows XP

Ovidiu Predescu's Weblog
As you probably know already, ssh-agent is an easy way to enter the passwords for your private SSH keys only once per session. On Linux and Unix systems, when using X-Windows, it is very easy to setup ssh-agent as the parent process of your window manager. In fact most of the Linux distributions start-up the window manager this way.

The way ssh-agent works is by setting up two environment variables, SSH_AUTH_SOCK and SSH_AGENT_PID. The first is used to communicate the location of the Unix socket domain on which ssh-agent is listening for requests. The second is used to identify the Unix process id of ssh-agent, so it can be killed by ssh-add -k.

These environment variables have to communicated to every process that wants to use ssh later on, so ssh can connect to the ssh-agent process and fetch the decrypted private keys. In the Unix parent-child process model, this works just fine. The ssh-agent does the work of creating the Unix socket domain and then forks a child process. In this process it first exports the two environment variables above, then exec the process - the window manager for X-Windows. This way all the processes that inherit from it will have these environment variables available.

On Windows this is not possible, since there is no way to interpose some other process before the window manager. This of course, assumes the same parent-child relationship of processes as in Unix. The alternative is to always start ssh-agent on some well-known socket. Below, I assume you use Cygwin, an excellent free-software Unix emulator for Windows.

There are few things you need to do. First in your Windows home directory (usually c:\Document and Settings\yourusername, make sure you have a .bash_profile that reads:

. ~/.bashrc

Then create a .bashrc file in your home directory, and add to it the following:

export SSH_AUTH_SOCK=/tmp/.ssh-socket

ssh-add -l 2>&1 >/dev/null
if [ $? = 2 ]; then
# Exit status 2 means couldn't connect to ssh-agent; start one now
ssh-agent -a $SSH_AUTH_SOCK >/tmp/.ssh-script
. /tmp/.ssh-script
echo $SSH_AGENT_PID >/tmp/.ssh-agent-pid
fi

function kill-agent {
pid=`cat /tmp/.ssh-agent-pid`
kill $pid
}

Next, go to the Start menu, "Control Panel" -> "System" -> "Advanced" -> "Environment Variables" and add a new variable SSH_AUTH_SOCK, whose value should be /tmp/.ssh-socket. Hit OK to make the change persistent.

What happens next? The first time you open a bash terminal, an ssh-agent process is going to be automatically created. This process will listen on the Unix socket domain /tmp/.ssh-socket. Run ssh-add at the prompt to enter the password for your private key(s).

Now when you open another terminal, that will share the same ssh-agent process because of the SSH_AUTH_SOCK definition. Running ssh or any other command that uses ssh underneath will work without having to enter the password for your keys.

It will also work if you run a cygwin-ified version of XEmacs. Tramp, CVS or any other Emacs package that uses ssh will work just fine now.

The only requirement is for these programs to be cygwin-ified, otherwise the sharing described above doesn't work.

Machinima : Spielbergs with a joystick

Video games are manipulated to create short films with Satire, irony the hallmarks of machinima.

The incredibility long url of the Toronto Star introduces (to me, anyway) Red Vs. Blue, a series of short films created using Microsoft X-Box Halo.

Another example of Machinima, is "In My Trip To Liberty City" by Jim Munroe, a Toronto-based author and machinima dabbler, adopting the genteel perspective of a Canadian tourist while meandering the seamy, violent streets of the game Grand Theft Auto.

I submitted the story to SlashDork (Like in the Morning! @09:24AM, but noooo. Rejected!) but they accepted someone else's submission. Life is curl, fame is fleeting.

Tuesday, April 20, 2004

Mobile Myopia

Russ comments on the dim bulbs at Mobilopia.com and their lack of creativity.