Explain the Filter Lock

The Art of Multiprocess Programming is great, but occasionally you find an explanation which is needlessly complex. I hope this clarifies things Use this graphic alongside the code to better understand the filter lock. If you have any questions or are confused, feel free to reach out to me.

First …

more ...

What does Montjoie mean?

In the Song of Roland I ran into a battle cry which escaped translation. The italics are not mine.

He saw the miscreant stretched on earth:

"Caitiff, thy threats are of little worth.

On, Franks! the felons before us fall;

Montjoie!" 'Tis the Emperor's battle-call.

And again

"Well fought," said …

more ...

Falcon: How to do Long Running Requests?

Someone posed a question on the falcon mailing list the other day. They asked "How do I handle a long running-request > 15 minutes, but ensure termination when the client kills the http connection?"

The response was: Don't

Instead of having the client wait on one request for the 15 minute …

more ...

Quadrant Z, Rules

Late thursday night I discovered Quadrant Z, an elaborate "paper and pencil game of galactic warfare." Against a buzzing background of midnight frogs and palmetto bugs I leaned forward in my chair and emptied the last dregs of coffee from my long since cooled mug. The rules can be difficult …

more ...



Essays in Idleness by Kenko

1283-1350 Japan. Imperial Court. Poet. Buddhist monk in 1324.

He developed the Japanese aesthetic: beauty is indissolubly bound to its perishability. He wrote, "If man were never to fade away like the dews of Adashino, never to vanish like the smoke over Toribeyama, but lingered on forever in this world …

more ...


Concurrency and Painting

This metaphor comes from Herlihy's The Art of Multiprocessor Programming; maybe in the future I'll extend it.

Multiprocessor synchronization and Concurrency is painting a house. You have four workers, two brushes, one roller, one ladder, and one giant can of paint. The goal here is to paint the house as …

more ...

iTunes 11 and mp3 files

"I can't import mp3 files into iTunes 11" you say. I hear your pain.

Disclaimer, I am not importing music from audio CDs. If you're looking to do that look at the apple documentation here.

Attempts

There are various ways of 'importing' an audio file into iTunes. You can drag …

more ...