Sunday, November 1, 2009

Mac free software list

Having updated to Snow Leopard this weekend, I once more downloaded and installed the latest version of all the free applications I use. Almost all of them were compatible with Snow Leopard, a thing I checked beforehand for only a few of them. Here's a careful selection of the apps I couldn't live without:

Internet related:
  • Adium
    The multi-protocol instant messaging client for the Mac. Handy if you have MSN, ICQ, and Google Talk accounts (like me).
  • GlimmerBlocker
    The only adblocker for Safari that isn't implemented as a hack -- this one is actually a proxy that filters out the stuff you don't want to see.
  • Transmission
    Simply the best torrent client for OS X.
  • Google Notifier + Google + Growl
    A menu bar app that notifies you when there's new mail in you Gmail inbox. The Google + Growl utility makes sure the notifications are Growl compliant.
LaTeX:
  • BasicTex
    A TeX distribution that's small (54mb) but still has all you need.
  • LaTeXiT
    Unmissable app if you quickly want to typeset formulas and paste them into, say, Keynote.
  • TeXlipse
    A plugin for Eclipse that turns it into one of the most powerful LaTeX editors around.
System tools:
  • Growl
    A notification system for Mac OS X. Many programs are capable of using it, and it's a functionality that's lacking by default in OS X.
  • USB Overdrive
    The default mouse acceleration is really crappy on OS X. USB Overdrive lets you change it according to your own tastes.
  • CDto
    CDto adds a button to Finder that opens a Terminal window and changes its active directory to the Finder directory.
Media:
  • Plex
    Plex is a home theatre app that is much more versatile than Front Row. Amongst other things, it can pull content directly from the internet to your TV.
  • Perian
    Perian adds playback support to QuickTime for a whole range of media format.
  • Flip4Mac
    Adds WMV support to QuickTime.
  • ScrobblePod
    If you've got a Last.FM account, this little app is for you. It scrobbles all your plays in iTunes.
Other:
  • Jin
    Jin is the only chess client that runs on a Mac and supports the Free Internet Chess Server. So if you're a cheap bastard like me and enjoy a game of chess, Jin is the way to go.

Wednesday, October 21, 2009

Symmetry in and of nature



In part three of "What on earth has Teake been doing for the last four years?" I'll talk a little on how symmetry appears in nature. When considering this subject, it seems natural to think of symmetric things that appear in nature. Snowflakes, like the one above, are good examples, but also flowers, the wings of butterflies, and sea stars (to name a few) all show some form of symmetry. They fall into the category "things in nature that look kind of symmetric", but in fact have little or nothing to do with the physicist's concept of the symmetry of nature.

One definition of symmetry in physics is as follows: the symmetries of nature are those transformations that do not change the laws of physics. To illustrate this concept, have a look at the following four clocks:


The first clock obviously satisfies the laws of physics. We now apply two different transformations, namely a mirror operation and a time reversal operation. Both give a clock that is distinct from the original one -- you can see the dial moving in the opposite direction. So the clock is not invariant under these transformations, and thus they are not symmetries of the clock. However, there's nothing physically wrong with a clock running in the opposite direction, apart from the fact that it's broken. Therefore parity (a fancy word for a mirror operation) and time reversal are symmetries of the laws of physics of this particular system. In general parity and time reversal are broken, but that's another story.

As a side note, you can see that the combined actions of parity (C) and time reversal (T) do leave the clock invariant, so CT is a symmetry of the clock.

This concept of symmetry is quite powerful. For instance, Special Relativity can be derived by demanding that the laws of physics are invariant under translations, rotations, and boosts (which together make the Poincaré group). Modern physics is to a large extent build on similar considerations of symmetry. So the study of group theory is not just a nice mathematical exercise; it actually has some useful applications throughout the field of physics. In the upcoming blogposts on "What on earth has Teake been doing for the last four years?" I'll try to explain how I applied some fancy group theory to even fancier things like supergravity. Stay tuned!

Tuesday, October 20, 2009

Band rebus

Can you guess what bands the images below are supposed to represent? The answers can be found after the break!

  1.  
  2.   
In case you're wondering, I made these images for a popquiz I held with some friends. It was pretty fun, not in the least because of the Lego album covers we also put in.
Anyway, the answers are ... :

Saturday, October 17, 2009

More symmetry: continuous groups

In my previous post on "What on earth has Teake been doing for the last four years?" I tried to explain the concepts of symmetry and groups. Today we're going on step beyond, and see how they are related to algebras. Hold tight! It's going to be a bumpy ride ...

Let's first start of with the triangle. As we saw in the previous post it only had six distinct symmetries, and these symmetries formed a group. It's a discrete group because there are only a finite number of symmetries, and thus a finite number of elements in that group.
If you want objects with bigger symmetry, all you have to is increase the number of sides of your polygon. Here's for example the pentagon:


From now on we ignore the reflection symmetries and focus only on the rotational ones. It's easy to see the pentagon has six symmetries: rotations over 0˚, 72˚, 144˚, 216˚, and 288˚ all leave it invariant.


When we move up to the hendecagon (the 11-sided regular polygon), it will come as no surprise that the thing has 12 distinct rotational symmetries. But what happens if we crank the number of sides up to infinity? Then our polygon become a circle:



You can rotate it over any angle, and it remains the same. This means it has an infinite amount of symmetry! The mathematical object that describes these symmetries is still a group, but no longer a discrete (finite) one. The symmetry group of the circle is continuous. The reason why we call it continuous is because you can smoothly get from one rotation to another one by continuously applying infinitessimal (i.e. very small) rotations. Another way of phrasing this is to say that every angle between e.g. 72˚ and 144˚ corresponds to a symmetry. This was not so for the pentagon: in that case there are 'gaps' between the rotations. That's why that kind of symmetry is called discrete.

Continuous groups are known as Lie groups (pronounced as "lee"; they're named after Sophus Lie). They contain an infinite amount of elements. But because they're continuous we can parametrize the elements in one or more parameters. For the circle we can write any rotation over an angle θ as R(θ) as



This is just the rotation matrix in two dimensions. If R(θ) is still a group element, it should satisfy the group multiplication rule: R(θ1) • R(θ2) = R(θ1 + θ2). Or in plain English: the result of two succesive rotations over angles θ1 and θ2 should give a new rotation over an angle θ1 + θ2. Sure enough, if we brush up on our linear algebra and trigonometry, we find that



So group multiplication is indeed satisfied.
The above parametrization makes for easier bookkeeping of the infinite amount of group elements. But things can be simplified even further! Because the parametrization is continuous, we can take the derivative of R(θ) with respect to θ:





The magic happens when you consider the value of dR(θ)/dθ at zero angle, θ = 0 :



which we call T, for short. This thing is independent of the angle θ. What's more, you can recover all the rotations by simply exponentiating T:



We say that T generates the symmetry group of the circle. In proper mathematical lingo, it is called a generator. This single object captures all the important properties of the infinite symmetry group (well, almost all, but we'll not go into that right now). The bookkeeping now becomes very simply: we can just focus on the generator T, instead of the infinite amount of group elements.

You can show that for more complicated groups (e.g. the symmetry group of the sphere) the above simplification also holds. All the group elements can be led back to a finite number of generators (in the generic case there is more than one generator). These generators no longer are elements of a group. Instead, they form what is known as Lie algebra. But more on that in one of the upcoming episodes of "What on earth has Teake been doing for the last four years?"!

Saturday, October 3, 2009

Quarterly music round-up


September is behind us, and so are August and July. Time for a quarter-annual update on the stuff I listen to! Luckily Last.FM is not only useful for keeping track of concerts (as I wrote about earlier), but it also keeps track of your listening habits. The graph above is for example a visualization of my listening history over the last three months, made with the tool LastGraph. Last.FM itself produces plain text lists, like the top albums you've listened to. Here are mine:
  1. The Maccabees - Wall of arms
  2. Throw me the statue - Creaturesque
  3. Sunset Rubdown - Dragonslayer
  4. Bill Callahan - Sometimes I wish we were an eagle
  5. The Dodos - Time to die
  6. Phoenix - Wolfgang Amadeus Phoenix
  7. Dan Auerbach - Keep it hid
  8. The National - Boxer
  9. The Maccabees - Colour it in
  10. Jay Reatard - Watch me fall
Almost all are of this year (save no. 8 & 9), so there's a reasonable chance they will make it to my end-of-the-year list. But for that we'll have to wait another three months.

Tuesday, September 29, 2009

Symmetry

This is the first post of what eventually should become the "What on earth has Teake been doing for the last four years?"-series. Brace yourself: it's about maths and physics. Run while you still can!

I'll try to keep things simple by starting of with a concept that is as mundane as it is fascinating: symmetry. Not only makes it our world round, but it’s also what makes it go round. From the perfect circular wheels on our bikes and cars that deliver an enjoyable ride, to the error-correction protocols that keep e-mails from turning into junk; it’s literally all around us.

So what is symmetry exactly? A symmetry is an action on an object that, once you’re done performing it, does not change that object. It's a somewhat abstract definition, but take for example the triangle, which has 6 symmetries.  There are two different rotations (over 120˚ and 240˚), three reflections, and finally the action of doing nothing at all (yes, that's also a symmetry). You can try them out in the following applet. Clicking on the arrows causes the triangle to rotate and reflect.


This is all pretty straightforward, right? But things start to get interesting we you keep track of the effect of the different rotations and reflections. Let's paint the corners so we can see where they end up:


One thing you'll notice is that doing twice a clockwise rotation is equal to doing one counter-clockwise rotation. The same is true for any other combination of actions -- it will always yield the net effect of one single reflection or rotation. It might also happen that the triangle ends up in the original configuration, but remember that doing nothing is also a symmetry.

The combined actions describe what mathematicians call a group. A group is a set of elements plus a rule of multiplying those elements. Let's call the set G and the multiplication rule "•". Then the precise definition of a group (in which a, b are elements of the set G) is the validity of the following four statements:
  • Closure.
    The result of the operation ab is also in G.
  • Identity element.
    There exists an element 1 in G, such that for all elements a in G, the equation 1a = a1 = a holds.
  • Inverse element.
    There exists an element a-1 in G such that aa-1 = a-1a = 1.
  • Associativity.
    The equation (ab) • c = a • (bc) holds.
These four set of rules are called the group axioms. They might sound a bit abstract, but in fact, they're not. Let's have a look at our triangle again.


The symmetry actions are labeled as follows:
  • 1: identity element ("doing nothing at all").
  • y: counter-clockwise rotation by 120˚.
  • p: clockwise rotation by 120˚.
  • R: reflection in the top vertex.
  • G: reflection in the lower-right vertex.
  • B: reflection in the lower-left vertex.
We already noticed that the closure axiom holds. The existence of the identity element is also pretty obvious. What about the identity axiom? This indeed also holds: every action has an inverse. The reflections are their own inverse, whereas the rotations are each other's. The last thing to check is associativity. It's a bit harder to verify, but believe me, it holds too.

Just for completeness sake, here's one last version of the triangle applet. This one includes the group multiplication table, which keeps track of what happens when you first do the action in the first row, followed by the action in the first column. (If you didn't believe me on the validity of associativity you can use this table to check it.)


What I've shown you so far is that the symmetries of the triangle can be described in terms of the mathematical concept of a group. The importance of group theory lies in the fact that any symmetry you can think of can be described as a group, and that conversely all groups describe a symmetry.

By now the answer to the question "What on earth has Teake been doing for the last four years?" will hardly come as a surprise: it's group theory. More on that in part two of this series!

Friday, September 25, 2009

Last.FM + Google = Convenience


If you're into music and computers, you're probably aware of Last.FM. It's a social music website that "recommends music, videos and concerts based on what you listen to." For the price of giving up a little privacy to the folks at Last.FM (namely the music you listen to) you get quite a lot in return. I mainly use it in tandem with Google's Calendar and Reader to keep updated on concerts in my neighbourhood. Here's how:

  1. If you don't have a Last.FM account yet, create one and start scrobbling.
  2. After some scrobbling Last.FM should have enough data to recommend events. Go to the recommend event page, and set your location by clicking on the "change/set location" link:

    It's best if you put in your location as "city, country". For example, my location is "Groningen, The Netherlands".

  3. Still on the recommended events page, click on the RSS feed icon depicted below and add that feed to your Google Reader (or other favourite RSS reader).


    You can also directly import your recommended events into your Google Calendar with the "Google" link, that's a bit too much for me. I just want to be informed about interesting events, and only add those to which I'm actually going to my calendar (we'll do that in step 5).

  4. Google Reader should now recieve event recommondations based on your musical tastes, like this:


    Clicking on the headline takes you the Last.FM page of the event. On that page, there's an attendance section at the bottom. Tell Last.FM that you're going:


    The event will now appear on your event list (located at http://www.last.fm/user/myUserName/events).

  5. The last step is to import your event list into Google Calendar, so that you won't forget to actually go. Simply click the Google button at the top your event list:


    Your events should now come up in Google Calendar:


    And that's it!

From now on you'll only have to do step 4, i.e. checking your RSS reader every now and then to see if there's something you like, and indicate if you're going on the Last.FM website. The events will then automatically pop up in your calendar.