Erik Ramsgaard Wognsen

Thoughts & technology

The Sound of E

E is the most common letter in many European languages. In English it makes up 12–13% of all letters written depending on source (see for example Wikipedia or Practical Cryptography). The second place is T with around 9%. In Dutch, Danish, and German, ‘E’ goes as high as 15–17%. But should it really be this common?

Learning Lithuanian

Lithuanian is a very old language with connections to Latin, Ancient Greek and Sanskrit. This quote is attributed to French linguist Antoine Meillet:

Anyone wishing to hear how Indo-Europeans spoke should come and listen to a Lithuanian peasant.

[Lithuanian Embassy Flag] [flickr_flag] by [Mr.TinDC] [flickr_mr] is licensed under [CC BY 2.0](https://creativecommons.org/licenses/by/2.0/)Lithuanian Embassy Flag by Mr.TinDC is licensed under CC BY 2.0

This is in itself very interesting, also because Lithuanian is less well-known, and has survived bans and attempts of being eradicated in the past. I also have a personal connection to the language because it is the native language of my girlfriend and her family. I am trying to learn it, and while I (slowly) do so, two things stand out to me:

The first is that in Lithuanian, when you read a word, you know (almost) how to pronounce it. This is very different from for example English and Danish, where the connection between writing and pronunciation is complicated and fraught with exceptions. See for example ghoti, pronounced “fish”.

The second is that Lithuanian uses seven cases, which means a word has seven different forms depending on its role in a sentence. A remnant of a case system is seen in personal pronouns in English: I helped her, and she helped me. “I” and “me”, as well as “she” and “her”, have the same “meaning”, but a different form depending on roles such as subject and object. In Lithuanian, every noun and adjective changes depending on role. And these roles include cool things like being a location or an instrument or means of doing something!

Debugging Complex Numbers

For my research I needed to implement a discrete Fourier transform in the C-like programming language of the UPPAAL model checker. One option would be to port an existing C library such as FFTW, but for a proof of concept, porting a large, powerful library would be much slower and less instructive than implementing a simpler algorithm myself. Programming rant coming up.

4 Years with Colemak

As a young computer user I felt that something was wrong with the keyboard. Like Morpheus says to Neo when they first meet:

What you know you can’t explain. But you feel it. You’ve felt it your entire life. That there’s something wrong with the world. You don’t know what it is but it’s there, like a splinter in your mind driving you mad. It is this feeling that has brought you to me. Do you know what I’m talking about?

QWERTY.

Touch typing on the QWERTY keyboard layout is wrong. You can do it every day, all day, but there’s something wrong with it. Today, four years ago, I took the red pill: I started using the Colemak keyboard layout.

Comparison of QWERTY and Colemak keyboard layouts with letter frequencies. Graphics by Pavel Pavlov.Comparison of QWERTY and Colemak keyboard layouts with letter frequencies. Graphics by Pavel Pavlov.

The Sound of R

R

R is a common letter in many languages, but it represents vastly different sounds. Sometimes even within the same language. As Wikipedia says: Being “R-like” is an elusive and ambiguous concept phonetically. In fact, we might not even consider the R-sound used in, say, Spain, related to the R-sound used in France/Germany/Denmark, if they were not spelled the same. However, it was the will of history that they are, and in this post, I will present the three main families of R-sounds in European languages: English, Spanish, and French.

I am trying to keep it jargon free; hence the names above. They are a simplification, and in fact many languages use the three types. For example, the “Spanish” type is also Italian, Finnish, Icelandic, Lithuanian, Polish, Czech, etc. Some languages, such as Dutch and Portuguese also use more than one type, even within a single dialect. In this post I will cover the three “mainstream” R families plus a lot of other interesting R-facts, including that R is sometimes a vowel!

(R is incidentally also a very nice statistics program, but that is not the topic of this post!)

Samba!

After spending the fall of 2014 doing research in the Netherlands, I have moved home to Aalborg, Denmark and returned to the samba group Poco Loco. The group has dancers and percussionists; I’m one of the latter. Starting again after my half-year break reminded me of how it was when I first started playing samba. While you enjoy the video of the group here, I’ll geek out on the drumming below.

User Experiences on a Train Trip

This week I travelled from Enschede in the Netherlands to Saarbrücken in Germany for a research meeting. On the way I made some observations of usability and user experience in the trains and on the train stations. First we’ll see some examples of bad design, then some good ones!

The Language of vi, Improved

In a previous post I described the “language” metaphor of the text editor vi. To recap,

  • Verbs are commands such as change c, delete d, yank y, and put p
  • Nouns (text objects): a paragraph ap, a string a", etc.
  • Prepositional phrases (motions): “to the next word” w, “to the next regex” /
  • Numerals (counts) as seen in “indent ten lines” 10>> and “to the 27th line” 27gg.

This time around, we’ll see how Vim (vi improved) adds a new word order to make you speak more clearly, and meta-verbs to blow your mind!

The Design of Everyday Things

A tray table in a Danish IC3 train

The woman in the seat next to me on the train had trouble folding down her tray table. I showed her how to do it, and she said “Oh, I’ve never been good at that sort of thing.” I said “It’s not you, it’s just bad design.” She didn’t follow. “See, it looks like you’re supposed to turn the knob, but in fact you have to slide it. You just tried to turn it like the design told you to do, but the design was wrong.”

She never seemed to accept my interpretation of the situation. But the fact is that design subconsciously guides us and affects our behavior, for better and for worse. I hope to do a better job here of convincing you than I did with the woman in the train!

The Essence of vi

Vim is a popular and widely distributed text editor improving on the legendary vi from the late 1970s. If you are reading this on Mac or Linux, chances are that Vim is already installed on your computer, included with your OS. If you tried Vim and found it too strange to use, or if you use it but still harbor the idea that it was made by (or for!) aliens, you’ve come to the right place!

Vim is a very powerful tool, but often misunderstood. There are plenty of tutorials that go through the basics, but they usually fail to paint the big picture. Why the weird keyboard shortcuts, and the modes? Why is it worthwhile to learn? In this post I will try to answer these questions. And I am pleased to say that the answer doesn’t start with h, j, k, l, or i.

Instead of the traditional bottom-up tutorial, this will be a top-down introduction, that uncovers the essence of vi and the almost poetic language you use to speak to Vim and vi. It is my hope that reading it will make your time with Vim both more useful and more enjoyable. I have myself enjoyed Vim since 2007, and I also contribute a tiny bit to it.