How to do an “en passant” capture in chess

Chess board
Chess board

Every once in a while, I play a game of chess against my computer or iPod. Sometimes I win—sometimes I lose, but the most frustrating thing that happens to me every once in a while is when the iPod does an en passant capture of one of my pawns.

This is frustrating, I think, because I never see it coming. That’s mostly because it’s an obscure move that I never took the time to learn how to do. I learned about it for the first time in elementary school, so I could always identify it when it happened, but I never knew what it was well enough to be able to pull it off myself or anticipate it. So, this week, I finally looked it up.

This is how it works: On its first move, a pawn can advance one rank or two. (Don’t worry—I already knew that.) If a pawn has been advanced two ranks in its first turn, an opposing pawn can capture it by moving diagonally into the space where the first pawn would have been, had it only moved ahead one rank.

Note that this can only be done in the turn immediately following the two-rank move of the first pawn.

According to Wikipedia, this “prevents a pawn from using the two-square move to pass another pawn without the risk of being captured”

This time, I’ll be ready for you, iPod!

Humbling

My entire thesis so far could fit on a single 3.5″ floppy diskette.

That includes the final PDF, all the .tex files used to generate it, my bibliography, my style files, and a few PDFs of important articles that I make reference to.

I’m kind of tempted now to try to find a floppy diskette and an old computer and see if I can write my thesis onto it, just for the retro appeal.

LaTeX, BibTeX and ibidem

Apparently, having been trained in the philosophical tradition, I’m unused to citing sources. My supervisor says that a typical attitude for a philosopher to take toward sources is that if your bibliography has 6 citations, that’s 5 too many. So, on the advice of my supervisor, I have been trying to include more references to published sources in my thesis. As he puts it, “think less; read more.”

Having done that for the last chapter or so (I’m going back later to add lots and lots of citations to the other chapters), I realised that the citations were taking up way too much space on the paper. So, I put them all in footnotes. They still took up a lot of space, and they were hard to read down there.

So, I decided that I should change my citation style, so that when I have multiple citations from the same source, the second, third, etc. citations after the first one would just be “ibid.” (From Latin ibidem, meaning “the same place.”) This would have been a time-consuming and mind-numbing task, going through my entire thesis and picking out all the citations where there’s two or more in a row and replacing all but the first one with “ibid.

Fortunately, I use LaTeX and BibTeX (and OS X front-ends called TeXShop and BibDesk) for writing my thesis and citation management.

I found a great package, called inlinebib that does just that. It actually took a bit of digging to find a bibliography style package for LaTeX that worked the way I wanted it to, with ibidem and all. But once I found it, all I had to do was put inlinebib.bst and inlinebib.sty in my project folder, then write \usepackage{inlinebib} in my document preamble, and it worked just fine!

Other stuff I saw in Québec City

A church in downtown Québec
A church in downtown Québec

While I mainly went to see the Carnaval, I also went for a walk around the Old Québec a bit while I was in town. It’s a very beautiful city.

There are all sorts of wonderful old buildings, churches and historical-type things going on.

Not only that, but they have excellent lighting at night, so it makes for some good photos!

You just have to be willing to wait for an opportune moment, when there isn’t a car going past, who will leave streaks of light all through your exposure. Thank goodness for digital cameras.

Celtic cross at night
Celtic cross at night

I think I must have spent about fifteen minutes trying to get this photo of the celtic-looking cross. I’ve got a whole bunch of photos of it with streaks across it, thanks to cars.

After three or four tries, I was almost prepared to set the self-timer and go stand in the middle of the road, just out of the frame of the camera, so that I would prevent any cars from passing through it. I only wanted a twenty-second exposure, and there was only one car every minute or so.

Oh well.

I like the details on the cross, and I think it was worth the wait.

An angel with a globe
An angel with a globe

Next is an angel with a globe. I’m not sure what his deal is. I guess he’s like a busker, except that he doesn’t really perform a musical instrument.

Not a bad job, I guess.

Unless you don’t like the cold. It wasn’t too bad while I was there, anyway. It was consistently around -1ºC or -2ºC, and in the sunlight, during the day, that’s not too bad.

He seems happy, anyway.

Important people I saw at Québec City

Bonhomme de Neige
Bonhomme de Neige

While I was in Québec City, my path crossed two important people. The first and most important was of course Bonhomme de Neige himself. I nearly missed him, but I happened to arrive just as he was leaving, so that I could snap about a dozen shots of him, paparazzi-style.

Later that day, while I was walking along a road between the Plains of Abraham and the Carnaval, I saw a big SUV drive past me, and I noticed that it had a blue flag with a royal symbol on it.

I remarked that I thought that it was a royal standard on the car that passed, but my friend told me that we would have heard if the Queen was coming. After the first car came a couple other RCMP cars.

The Governor General of Canada, David Johnston
The Governor General of Canada, David Johnston

When the car stopped, out jumped David Johnston, the Governor General of Canada. Apparently he had come to visit Québec City. And he passed within two metres of me!

So, I ran up and took a half dozen photos of him, paparazzi-style, since that seemed to be the thing to do that day.

Carnaval d’Hiver!

Rainbow ice carousel
Rainbow ice carousel

This weekend, I went to Québec City to see the Carnaval d’Hiver, starring Bonhomme. I have a lot of photos and things to talk about, so I’m spacing it out over the next few days. To start off with, I’m going to post a bunch of photos of sculptures and things I saw.

The lights in the carousel tent changed all the time, so it was very difficult to get any good photos, but I’m reasonably happy with the way this one turned out. The whole tent was full of ice sculptures of different games—chess, monopoly, etc. I wonder if it’s harder to sculpt in snow or in ice. I imagine that it would be easier to make a silly mistake in the snow, but that ice is less forgiving.

By the way, carousels are creepy.

Creepy snow spider
Creepy snow spider

These are just a few of my favourite things that I saw at the Carnaval d’Hiver. There were lots of other really good ones, but these turned out to be the most photogenic.

The creepy spider is wonderful. I love the eyes on the front, and the way that the light comes from behind it.

I wonder where these people get their ideas for what they will make out of their chunk of snow, and by what means the chunk of snow is delivered there.

An apple with a mouth
An apple with a mouth

The apple with the mouth won the prize for everything, I think. Seriously. There were about a half dozen awards at that one.

It’s really quite well done. I wonder if it’s supposed to represent anything besides just an apple with a mouth. I have no idea how a person would sculpt the inside of the mouth like that. Maybe they did the top of the mouth first so that they could sit on what would become the tongue, and then later went back to fix it. The snow must be very well-packed for it to allow for this sort of thing.

Girl in hood with dragon
Girl in hood with dragon

I also liked the hooded girl with dragon. Good details on the dragon. Unfortunately, the very night that I took these photos, it snowed, and many of the finer details were covered up forever.

This sculpture in particular did not fare very well through the loss of all the fine details. Look at all the scales along the tail, the teeth and eyes. The little girl in a hood is delightful as well.

I overheard a bunch of French-speakers refer to the girl as “Little Red Riding Hood,” I thought, but I don’t remember a dragon in the English version of that story, at least.

Korean with fish
Korean with fish

Apparently, there were teams of snow-sculptors from all over the world who came to participate. I’ve attached the South Korean contribution. It’s a person with a fish.

I also have photos of the Koreans working on this one the whole previous night. They put a lot of effort into it.

There was also a team from Morocco. I didn’t care for their sculpture as much. But then, they probably don’t get too much snow there, so I guess we can cut them some slack.

Plan for snow sharks
Plan for snow sharks
Sharks hiding in snow
Sharks hiding in snow

Another favourite of mine is the sharks hiding in snow. I have both a photograph and a video of that one.

As best I can make out, these are actual living sharks that were imported and then covered in snow. They’re just waiting for the right moment before they start eating the unprepared visitors to the Carnaval d’Hiver.

How to pick up chicks

Picking up chicks
Picking up chicks

This is how you pick up chicks:

  • Go to a farm.
  • Ask the owner if you can see their chicks.
  • Run and catch one.
  • Really, they don’t run that fast. That said, check out the video I posted of the chicks running away from me.
  • It’s so fluffy! I’m gonna die!

Wait, isn’t that what you thought I meant by “picking up chicks?”

Backing up, backing up, backing up, backing up

What do you use for backing up your computer files? I’ve had a number of close calls in my academic career, and so I compulsively back everything up. Here’s how I do it:

First, I keep multiple revisions of my thesis in folders on my own personal computer. So I have the first revision of my thesis in a folder marked with the date I started it, and then when I make changes to it, I just copy the whole thesis folder and change the date. That way, if I really mess it up somehow and then push “save” by accident, the previous version is there, at least.

The next level of backing up is my periodic Time Machine backups. At the risk of sounding like an Apple commercial, I do actually like the way that my computer backs up my files. I just plug in the hard disc, and click on the little clock in my menu, and then it backs up all the files on my computer. This particular piece of software has saved me a number of times that I can think of. It is, in fact, one of the top five reasons why I would be reluctant to switch to Linux as my main computer of choice—there just isn’t any really comparable backup software that I could find.

That said, if someone wants to enlighten me as to some software for Ubuntu that does what Time Machine does—backs up the computer’s entire hard disc onto an external hard disc, and gives a nice interface for restoring old files, only backs up files that have been modified and doesn’t do anything weird—then please leave a comment!

What’s nice about using the Time Machine backup is knowing that even if someone were to steal my computer while I’m at the library or something like that, I would still have a copy of it in my backup at home.

The highest level of paranoia that I reach is that every once in a while, when I remember, I compress the most recent revision of my thesis into a .zip file, and then upload that to my Google Documents account.

This way, even if my apartment were to burn down and both my computer and external hard disc were destroyed in the blaze, my thesis would be alive and well, in the cloud.

Do you back up your files? How? Four points for anyone who has a more elaborate backup scheme than me!

Car accident

Car accident near Snowdon Station
Car accident near Snowdon Station

I promise—not all my posts from now on are going to be about traffic flow in Montréal. I just happened to surface at Snowdon Station today after my office hours on campus, and the very moment I stepped out of the station, I heard a loud bang. Looking to my right, a car had run into a big white van marked “Incendie.”

No one got hurt, but I bet that put a damper on their Robbie Burns’ Day celebrations.