Wednesday, June 06, 2007

iTunes, iPhoto hack

One of the irritating things about iPhoto and iTunes is that it's not immediately obvious how to see all the songs and pictures that are *not* in a playlist or album. A little hack I use that works very well if you don't use the 5 star rating system is to select all songs and set the stars to 0.
then select all your folders and star those songs. Make a new smart playlist that shows songs with a rating of 0.

Thursday, May 31, 2007

Lone Scherfig





I saw two great movies recently, both by Danish director
Lone Scherfig (who sadly lacks a Wikipedia entry).
The movies are Wilbur Wants to Kill Himself and
Italian for Beginners.

Wilbur takes place in an anonymous town in Scotland.
The plot focuses on the suicidal Wilbur and his kindly
brother Harper who own a used bookstore. After
yet another botched suicide attempt, Wilbur moves
into the bookstore, Harper's home, so he can be watched
over. Things get messy when Harper falls in love with
a bookstore regular and they are married.
While the plot is a thought-provoking one, the real
intensity of the film comes from Wilbur's extraordinary
complexity, contrasted with Harper's somewhat self
deprecating goodness of heart. I was going to try
to write more, but after reading A.O. Scott's review,
I realize I should just point you there. I could do no
better, and certainly much worse. My favorite line
in that review:

"In less sure -- and also less dry -- hands, the story of two
brothers dealing with the fact of death might have melted
into sentimental slop, one of those life-affirming pictures
that make you want to kill yourself. Instead, ''Wilbur Wants
to Kill Himself,'' which begins with a suicide attempt and
ends in a graveyard, with plenty of trips to the hospital
in between, makes you glad to be alive.

Italian for Beginners is a beautiful Dogme film, revolving
around a group of Danish adults taking a beginning
Italian class. There is almost no plot but for
a humorous and touching development of at least 6
intriguing and delightful characters. Drama is always
shocking to me in that, unlike in opera, so much can
be done with so little. (I'm thinking particularly of
Metamorphoses by Mary Zimmerman). Here in
Italian for Beginners, with the Dogme (lack of) effects
that make it seem like anyone could pick up a camera
at Best Buy and make a great movie. A heartwarming
thought.

Wednesday, May 30, 2007

The Humble Programmer

This weekend I spent an enjoyable 15 minutes reading Edsger Dijkstra's 1972 Turing award lecture, entitled "The Humble Programmer". It is an entertaining collection of stories, advice, and philosophizing from one of the pioneers of theoretical computer science. The most relevant piece of advice from a more modern programming language perspective is "... the requirements that no loop should be written down without providing a proof for termination nor without stating the relation whose invariance will not be destroyed by the execution of the repeatable statement." Even when not strictly using Hoare Logic to reason about code, the advice is good. Indeed, my advisor seems to have this ingrained in his programming. Much of his code is instrumented with invariants. He asked me last week why a particular list of inference rules for eta-expansion of a term terminates. While the termination seemed so clear I didn't even think about it before, actually finding a measure of termination helped me understand the judgment better.

A nice observation is that we should "restrict ourselves to the subset of the intellectually manageable programs". This made me smile. On the one hand it seems obvious. How could we do otherwise? But then recalling a few of the programs I myself have written, I felt chided and humbled. The thing I liked most about the paper is the respect for the difficulty of programming. His last paragraph is worth repeating: "[The computer] has already taught us a few lessons, and the one I have chosen to stress in this talk is the following. We shall do a much better programming job, provided we approach the task with a full appreciation of its tremendous difficulty, provided that we stick to modest and elegant programming languages, provided that we respect the intrinsic limitations of the human mind and approach the task as Very Humble Programmers."

Monday, May 28, 2007

shulman

I heard a great viola concerto last week by the composer
Alan Shulman .
It was his Theme and Variations arranged for string orchestra.
His son was at the performance, and gave a short speech beforehand.
Shulman played cello for the NBC orchestra under Toscanini.
According to his son, Toscanini was very supportive of the outside
(musical) activities of his musicians. He was at the premiere
of the Theme and Variations, and was recorded to say, in response,
(in my phonetic Italian) "Semplice ma belle", "simple but lovely".

Sunday, April 22, 2007

Dishabille

Dishabille. What a great word to describe the unfolding of
Spring in Pittsburgh. "The state of being only partly or scantily clothed."

"New Yorkers shed their winter garb — the Ugg boots, the turtlenecks, the long skirts, the overcoats, the parkas, the gloves, the hoodies and the fedoras — and exchanged them for flip-flops and dishabille." -- NYTimes, 4/22/07

Saturday, February 17, 2007

Kontroll



I was looking at French movies at the Carnegie Library the
other day, and picked up one that looked kind of interesting
in a nearby section. It turned out to be a Hungarian movie
called Kontroll. The cover is a pretty bad picture of a guy
running in front of a train, but it won a bunch of awards,
and the blurb on the back was by A.O. Scott, who called
it a "A tour de force. A gritty and stylish debut." So I
got it. It's directed by a young (33) director named Nimrod
Antal. He's got a movie in postproduction called Vacancy
with Kate Beckinsale and Luke Wilson.
The movie is wonderful. Funny, charming, peculiar,
and clever. It's about the guys who check to make sure
people have purchased tickets in the Budapest subway, and
the underground subculture.

Saturday, February 10, 2007

Brahms I


I went to hear the Pittsburgh Symphony last night. It was
the first time I've heard them do anything big. Mozart 25,
Death and Transfiguration, and Brahms' first concerto with
Emmanuel Ax.

First of all, I went at the last minute, and
was late (as usual). I walked up to the box office at 7:56
and asked for a student ticket, thinking I had about %10
chance there'd be any seats left. For $14 I was given perhaps the
best seat in the entire house for a piano concerto, E9,
right behind and to the right of the pianist. It was
perfect to watch Ax, but more on that later.

The concert began in a stunning way. After the usual
reminder to turn off cel phones, a member of the viola
section started speaking into the microphone. I was
annoyed, as I figured he'd be talking about a pledge drive
or something. On the contrary, one of the violists,
Peter
Guroff
, had died earlier in the week, and this was a homage
to his memory. He was very young, probably mid 50s. He was
diagnosed with lymphoma 15 years ago, yet after that managed to win the
PSO audition and play for 14 years with the orchestra. The
speech was very moving and they left his chair (on the
outside of the orchestra) with some flowers on it, empty for
the concert. I could see the empty chair easily from where
I sat, and it added an ethereal poignancy to the music that
would come for the next 140 minutes.

Since I'm a big snob, and normally drive 3 hours to hear the
Cleveland Orchestra instead of driving 10 minutes to hear
the PSO, I didn't really know what to expect. It didn't
start out very well. The Mozart was mediocre. For much of
the first movement the strings and winds were a tiny bit
off, which for most any other composer would not be a big
deal, but it drove me crazy during the Mozart. I kind of
gave up hope of anything good until Ax came on. But then
they started Strauss' Death and Transfiguration. It was one
of the first pieces I played in youth orchestra, oh, about
15 years ago. I hadn't heard it for probably 10 years.
They played it marvelously. The sound was rich, the brass
powerful without crassness, and the oboist was great. (To
be fair, I should mention he was great in the Mozart as
well.) The empty chair during that piece, written by the 25
year old Strauss as a tone poem on death and transcendence,
was eerie, but added an ineffable weight to the time. I
recall Strauss pithy comment "I'm not a first rate composer,
but I'm a first-rate second-rate composer." It's hard to
think of him as a second rate composer during that piece
(though I don't share that sentiment for most of his other
works.) I was also reminded of Van Gogh's constant
self-denigration, and thus was reminded to take artist's accounts
of their own work with a grain of salt.

The highlight, though, was certainly Emmanuel Ax. He
radiated lift, kindness and mastery from the moment he
stepped onstage. He warmly shook Cardenes' hand, and the
piece began promptly. This has, over the years, become one
of my favorite works. So much of it that is so profoundly
great that, with my second-rate second-rate vocabulary and
eloquence, I couldn't possibly describe it. Amazingly, he
was only 27 or so when he finished it, and even more
amazingly, not only the public and the orchestra of the
first performance (Gewandhaus Leipzig) hated it as well.
It's so hard for me to imagine them preferring the long
forgotten empty firework-concertos of the day for this
work. I found myself continually wondering how many new
pieces I've heard (and scoffed at) that will be the great
pieces of 50/100 years from now.

Ax was energetic, communicative with the conductor (Jahja
Ling), and sensitive. The orchestra clearly liked him, and
responded in kind. They got out of his way, and I could
actually hear him almost the entire time he was playing.
It was an amazing gift to hear him.

There was a middle-aged conservatively dressed man
sitting next to me. He may as well have been at a
rock concert for how excitedly and exuberantly he listened and
applauded. I don't know who enjoyed the concert more.

Thursday, February 01, 2007

Watchdog

Here's a website where you can look up a company's environmental and
ethical practices. I was sad to see Apple rated very poorly.

A Christmas Memory

Listen to Truman Capote read his story A Christmas Memory.
Really powerful. Unabridged, unlike the TAL version.

Wednesday, January 24, 2007

Vegan Food Network

Just read a funny article in the Times about a punk-rock
vegan food network
. The food looks really good, and there
are free videos resembling (loosely) the Food
Network. Except when making fun of Rachel Ray (how could
you?!), it looks really good. Keep your eye out for the add
for Herbivore Magazine, motto: Putting the "F.U." in tofu
since 03.

Sunday, January 21, 2007

Google Checkout

I bought, among other things, a hard to find textbook on Google Checkout today, and got $10 off for my first order. It's really convenient. There are many stores participating, and it's nice because you can check the status of all your orders and your total order history in one place. Though Google has dozens of services now, and I don't usually notice when they market a new one, this is really worth trying.

Saturday, November 25, 2006

The Crossing


One of the best books I've read in a number of years is Cormac McCarthy's "The Crossing". I can't do it justisce with my paultry prose, so I'll just give some excerpts that I love. It's the
second book of a loose trilogy, with "All the Pretty Horses" and "Cities of the Plain". The language is rich and dark. Wonderful.

The boy didn't know if he understood or not. The old man went
on to say that the hunter was a different thing than men
supposed. He said that men believe the blood of the slain to
be of no consequence but that the wolf knows better.
He said that the wolf is a being of great order and that it
knows what men do not: that there is no order in the world
save that which death has put there.
Finally he said that if men drink the blood of God yet they do
not understand the seriousness of what they do. He said that
men wish to be serious but they do not understand how to be
so. Between their acts and their ceremonies lies the world
and in this world the storms blow and the trees twist in the
wind and all the animals that God has mad go to and fro yet
this world men do not see. They see the acts of their own
hands or they see that which they name and call out to one
another but the world between is invisible to them.


She watched him with her yellow eyes and in them was no
despair but only that same reckonless deep of loneliness that
cored the world to its heart.

His father's eyes searched the coming of the night in the
deepening redness beyond the rim of the world and those eyes
seemed to contemplate with a terrible equanimity the cold and
the dark and the silence that moved upon him...


Riding like a young squire for all his rags. Carrying in his
belly the gift of the meal he'd received which both sustained
him and laid claim upon him. For the sharing of bread is not
such a simple thing nor its acknowledgment. Whatever thanks
be given, however spoke or written down.

She said that it was an American who had lost his way and
the man nodded. He turned away and the weathercreased face
caught for a moment the light from the oil lamp. There were no
eyes in his sockets and the lids were pinched shut so that he
wore a constant look of painful selfabsorption. As if old
errors preoccupied him.

She blessed herself and bent and reached and took hold of the
rag that bound the poultice and lifted it and slid her thumb
beneath the poultice and pulled it away. It was of matted
weeds and dark with blood and it came away unwillingly. Like
something that had been feeding there.


He prodded the ashes with a stick. The few red coals that
turned up in the fire's black heart seemed secret and
improbable. Like the eyes of things disturbed that had best
been left alone.

Hemorrhaging Young People

I love that word! I almost choked on my cereal when I read it.

From the NY Times today

...That disparity was evident in a report released this week by the Metropolitan Atlanta Chamber of Commerce, which showed Atlanta leading the pack among big cities (at attracting young professionals), while other metro areas, like Philadelphia, hemorrhaged young people from 1990 to 2000.

Friday, November 10, 2006

A candle in low gravity



A nice picture of a candle flame in low gravity. No one
really knew if a candle would burn in space, due to the lack
of convection to supply new oxygen. There is still diffusion,
but is it enough to keep the candle lit? Here's a picture
of a candle burning (cool) in low gravity. In space, the
flame is a sphere.

Friday, November 03, 2006

MikTex for Mac/Unix

I was happy to discover that Christian Schenk ported the MikTex Latex package manager mpm to Unix/Mac. All you need to build/install is here:

Installation
(Grep for "mpm")

and here is the

HOWTO

It's great to not have to manage your own tex hierarchy! Thanks Christian...

Tuesday, October 17, 2006

Babelfish discrimination

I'm trying to write an email to a friend in Paris.
I tried to use Babblefish to help out.
This is a website that roughly translates between
different human languages.
One of the sentences in my email was:
"I am in Pittsburgh." Even I know
how to translate this one. Babblefish returned an
error message. Three times. Then I tried changing
"Pittsburgh" to "New York" and it worked perfectly:
"Je suis à New York". I tried some other cities too.
You can even say you are in Newark.

Monday, August 07, 2006

Eyes on the Prize, held hostage

A bit of infuriating news. The excellent documentary
Eyes on the Prize, about the Civil Rights Movement is
not being distributed (indeed, has not been for 10 years)
because of copyright issues.
If you can have your community organize a screening .
I hope to do so when I get back to Pittsburgh in September.


Friday, July 14, 2006

Hawthorne and Bronte

English books are decidedly more expensive here. I'm thus
sticking to the "Penguin Popular Classics" series. It's
shocking how few I've read. I read the Scarlet Letter
(1850) and Jane Eyre (1847) on my trip to Spain.
The Hawthorne was much better than I remembered it. The
writing is enchanting, if somewhat moralizing. The
situations are a bit ridiculous (dying on the scaffold?),
but I guess that was the norm in those days. Some nice
passages:

"The heat that had formerly pervaded his nature, and which
was not yet extinct, was never of the kind that flashes and
flickers in a blaze; but, rather, a deep, red glow, as of
iron in a furnace."

"It is a good lesson--though it may often be a hard one--for
a man who has dreamed of literary fame, and of making for
himself a rank among the world's dignitaries by such means,
to step aside of of the narrow circle in which his claims
are recognized, and to find how utterly devoid of
significance, beyond that circle, is all that he achieves
and all he aims at."

"It must have been a work of vast ability in the somniferous
school of literature."

The contrast was remarkable, given the fact that they were
only written 3 years apart. Eyre reads much like my
favorite book, David Copperfield, but Eyre is a bit too
perfect for my taste. I delight in the peccadillos of
Dickens' protagonists, while she had none but naivete. The
writing is beautiful though, with none of the melodrama
of Hawthorne:

"No sooner did I see that his attention was riveted on
them, and that I might gaze without being observed, than my
eyes were drawn involuntarily to his face; I could not keep
their lids under control: they would rise, and the irids
would fix on him. I looked, and had an acute pleasure in
looking - a precious yet poignant pleasure; pure gold, with
a steely point of agony: ..."

I'm on to Pride and Prejudice now...


Tuesday, May 23, 2006

Paris

One of the dangers of being in a country where you don't
know the language is that sour cream containers look a lot like
yogurt containers.
I went to the Louvre on Saturday night. All the museums
were open late and for free. It was really nice. So it's
not close to 5 Mets on the inside. Probably not even 2, but
it's still huge. I was lost about half my time in the museum.
The Rembrandt was great, there was a famous El Greco, and
I really appreciated De La Tour for the first time.
There was also this other Spanish painter whose name
I've forgotten. I'll have to go back.
I have no idea why everyone likes the Mona Lisa
so much. I find it totally emotion-less and dull. Not even
particularly well executed. Everyone's a critic I suppose...
It just irks me that that painting gets so much attention
while El Greco and Goya take a back seat.
French art is prominent, as was expected. I didn't
expect Raft of the Medusa to be so powerful, but
it was amazing. I'm generally not too keen on the
romantic stuff, but that is a great painting.
I went to Versailles on Sunday. The palace is gaudy, but
the gardens are splendid. I was thinking, mostly about the
Louvre, but Versailles as well, that it takes very rich people
like Rockefeller to build big museums and libraries, but it
takes a king to build a Louvre. Bill Gates could
build his own private Versailles, but even he couldn't
put together such awesome art in one place. (Hmm...well, maybe
he could...) That's one part of my leanings against
capitalism I've never come to terms with. Many of the great
parks, buildings and works of art have been paid for
by millionaires. If wealth were equal, there would be
no Rockefeller park upstate, or the amazing Carnegie library
system in Pittsburgh to name two worthy examples.
I went to an English used book store today, but
everything was really expensive. It was worth the trip to
hear some English dialogue. The store's called Shakespeare
and Co. Apparently Hemmingway used to hang out there.

Thursday, May 18, 2006

Paris

Paris

I've been in Paris for 6 days now. My schedule has been
rather hectic, I've had weird jet lag, and no internet until
yesterday, so I've been mostly out of contact with my family
and friends. Sorry for this.

Address



I live in a college dormatory on the south border of the
city called Cite Universitaire. My room is fine. There's a
little bathroom, a little fridge, a little desk, a little
nightstand, and a little bed. Well, pretty much everything
else is little as well. My address, for those dying to send
me care packages and postcards is:

Sean McLaughlin
Cite Universitaire
Fondation Victor Lyon Chambre 004
29 Bld Jourdan
75014 Paris
France

I think there are some accents on some of the letters, but I
can never remember where they go. I think the zip code and
street are enough, though, so I wouldn't worry about that.

Phone


I have a phone on which I can receive incoming calls, but
outgoing calls are rather expensive, so I'll stick to Skype
as long as I can. The number is
014-313-6507
or at work
016-935-6965.
I'm at work between about 10 and 7.

Work



I work at a computer science research lab called Inria which
stands for Institut National de Recherche en Informatique et
Automatique. (One nice thing about French, unlike
Hungarian, is many times you can kind of figure out what the
words mean, as in this case.) The lab (one of Inria's 9) is located in
Orsay, a southern suburb. I take a train and a bus to get
there, which usually takes about 40 minutes. The lab is run
by Gerard Huet, the famous logician and computer scientist.

I work with Georges Gonthier,
who recently proved the Four Color Theorem in the Coq
theorem prover. He's been great to work with. I'll be
formalizing basic Galois theory in Coq this summer. His
eventual goal is, in the long run, the classification of
finite simple groups. This is a heroic undertaking of a
10K+ page collection of difficult group theory. He's
beginning with the Feit-Thompson theorem, which states that
any finite group of odd order is solvable. His wife is
a piano teacher, and I'm playing the Schumann Fantasy Pieces
with her in a concert next month.

Jet lag



Today is the first day I woke up to daylight. It was very
exciting. My sleep schedule for the last week has been roughly:
Bed by 9, awake at 2, back to sleep at 6, awake at 8 or 9.
I slept from 9:30 until 5:30 today. Almost normal!

Paris



(Warning: this section replete with cliches)
Paris is beautiful. Even apartment buildings in residential
districts often have architecturally interesting features.
There are old stone and bronze buildings and monuments
everywhere. The city is not large in area, but somehow
walking the couple miles from Notre Dame to the Louvre feels like
10, there is so much to experience. I haven't been in the
Louvre yet, but I am stunned by it's raw size. My first
estimate was 5 Metripolitan Museums, but I'm not sure how
accurate that is. It's strange to see a building so large
which has such ornate detail throughout. The Pei pyramid is
splendid, with a charming spiral staircase inside.

There's some modern architecture as well, though I haven't
seen much. The Bastille opera house is modern, though not
terribly interesting. It pales to the National
Opera house, which was in my high school art history book.

The people are generally very nice and helpful. I was
surprised by this, as everyone told me how curt they are
with foreigners. Perhaps it's because I'm usually not in
heavily touristy areas. Many speak a little English, but
few are fluent, which has been a problem. I did manage to
find a grocery store, open a bank account (not easy) and
find a store with the electronic supplies necessary to
charge my laptop and connect to the internet. I don't say
much in these situations, but it usually works out OK.
To find the bank I was led around the block by an old lady
who could understand what I needed to find, but didn't speak
English.

I tried to start French classes yesterday, but while the
classes started at 8, the registration closed at 6, so I
went to sleep instead. I think I will make an effort to
learn French, despite my pile of work I need to do, both for
Gonthier, Pfenning and old dodecahedral revisions ((sigh)).

The weather has been lovely so far.