erlang
Nov 22nd
Lately I’ve been playing a lot with the programming language erlang[1]. It is totally unlike what I’ve been using until now as it is a real functional programming language. Surprisingly though, I’m really enjoying it. It takes a little adjusting, but this language has a lot of good features:
- functional programming, which I really start to like
- very good concurrency and message passing, which makes for really elegant server programs
- scalability: it’s very easy to make a program distributed among machines
- … there’re tons of other things, which are worth their own blog entry
All of this seems to give a significant productivity boost, but maybe thats because it’s fun!
Lembas 0.1
Nov 22nd
The quest for a nice lembas recipe has started. This one is based on the recipe for shortbread.
Version 0.1:
- 100g maple syrup
- 200g cream butter
- 300g maslin (whole grain flour mix containing wheat and rye)
Put all ingredients in a bowl and knead till it forms a smooth dough.
Pre-heat the oven at 15o degrees celcius, and bake for around 30 minutes.
Generally people seem to like this version, although it is of course very fat, and as it contains cream butter this is not acceptable for people with lactose intolerance or who don’t like eating any animal products.
nvidia vs nv and font sizes
Oct 22nd
I’ve been using the proprietary nvidia driver for the X server for quite some time, but I wanted to give the free nv another try. One thing which immediately annoyed me was the smaller font sizes when using nv. I solved this by adding a
DisplaySize 370 300
directive to the Monitor section of my /etc/X11/xorg.conf configuration file. This basically tells X how big my monitor is in millimeters and X uses this to calculate an optimal font scale factor.
last.fm internet radio, een bespreking
Oct 13th
beschrijving
last.fm is een hele speciale internet radio.
Het is zelfs veel meer dan alleen maar een radio, het is een echte muziek gemeenschap.
Alles draait rond twee dingen: muziek spelen en tags.
muziek spelen
Er zijn twee manieren om muziek te spelen; een is door je lievelings muziek speler
te voorzien van een speciale last.fm plugin.
Mijn favoriete muziek speler is amaroK.
Deze plugin stuurt de gegevens van elk gespeeld nummer door naar last.fm. Dit nummer wordt
dan toegevoegd aan je muziek profiel.
last.fm houdt allerlei interessante gegevens bij over de muziek die je gespeeld hebt.
het toont onder andere recent tracks (recente nummers), weekly top artists (wekelijkse top artiesten), Overall top artists (totale top artiesten), and top tracks (top liedjes).
Je kunt altijd nog meer statistieken vinden via de “charts” pagina.
Een andere manier om muziek te spelen is met de last.fm muziek speler.
Dit is een klein computer programma dat muziek kan afspelen van de last.fm website.
Welke muziek ie afspeelt hang er van af welk kanaal je’m laat afspelen.
Een leuke is Neighbour Radio (buren radio); dit speelt muziek van mensen met een
gelijkaardige smaak als jou. Een andere is Simular Artist Radio (gelijkaardige artiest radio); dit speelt muziek in de stijl van een bepaalde artiest.
Wat handig is aan deze speler is, is dat je nummers kunt overslaan waar je geen zin in hebt,
of zelfs nummers op de zwarte lijst zetten die je echt niet graag hoort!
Een andere radio is een Global Tag Radio. Meer over tags volgt nu.
tags
Tags zijn een speciaal soort woorden die je een een lied, album of artiest toekent.
Een typische tag is “rock” wat je zou kunnen gebruiken op een rock nummer.
Je kunt ook specifieker taggen, zoals “space rock”. Of gewoon allebei.
last.fm gebruikt tags om muziek te verdelen in cathegorieen.
Een nummer dat bijvoorbeeld veel getagged is met “space rock” zal waarschijnlijk ook
wel space rock zijn. Dit gaat er natuurlijk wel van uit dat er geen misbruik gemaakt
wordt van het systeem, maar in de praktijk ben ik dat nog niet tegengekomen.
Tags zijn een leuke manier om muziek te verkennen.
abonnement
last.fm is weliswaar gratis, maar je kunt toch een abonnement nemen.
Je krijgt dan een paar toffe extras.
Personal Tag Radio (persoonlijke tag radio) is een radio die alleen nummers speelt
die 1 persoon (bijvoorbeeld jijzelf) met een bepaald tag hebt getagd.
Personal Radio (persoonlijke radio) is een radio die jouw muzikale smaak speelt,
maar toch vernieuwend blijft, dit is een heel plezante radio!
Loved Tracks Radio (geliefde nummers radio) is een radio die alleen die nummers
speelt waarvoor je op de “LOVE” knop hebt geduwd in de last.fm speler. Een toffe manier
om alleen die nummers te spelen die je echt goed vind.
community
last.fm is ook een community. Er zijn forums voor allerlei muziek, maar ook
gewoon voor de lol.
Iedereen kan in zijn persoonlijk journaal schrijven over muziek, en andere kunnen daar
commentaar op geven.
Overal kun je naar artiesten, albums of nummers linken met speciale last.fm links.
Dit werkt ook andersom: een pagina over een album kan bijvoorbeeld linken naar een journaal
waar jij dit album vermelde.
conclusie
Je moet het zelf maar eens uit proberen, maar ik heb al heel veel plezier gehad aan de last.fm radio en de website.
Het is echt een nieuwe manier om muziek te beluisteren!
links
- website: http://last.fm/
- forums: http://www.last.fm/forum/
- speler: http://www.last.fm/downloads.php
last.fm internet radio, a review
Oct 13th
description
last.fm is an internet radio unlike any other. Whats more, its not just an internet radio,
it is also a community of music lovers. It’s principle is quite simple.
It all builds around two things: playing music and tagging music.
playing
There are two ways of playing music, one is by using your favorite
music player (mine’s amaroK),
which submits each song you play towards last.fm by use of special last.fm plugin. Each song submitted adds to your music profile.
last.fm keeps all kinds of interesting statistics about the music you played.
It shows recent tracks, weekly top artists, Overall top artists, and top tracks.
You can always find more statistics on the separate personal charts page.
Another way of playing music is by using the last.fm music player. This is a small computer program that
allows you to play mp3 music streaming from the last.fm website. There are a number of different ways to
choose what music to play. A fun one is Neighbour Radio which plays music people with simular
taste to you like. Another nice one is Simular Artist Radio which allows you explore music simular
to an artist you like. Whats fun about the last.fm player is that you can skip songs you don’t like, or
even ban songs you hate!
tagging
Tagging is marking songs or albums or artists with a special marker word. A typical tag would be to mark a rock
song with the tag “rock”. However it is also possible to use a more specific tag like “space rock”, or use both
of those. last.fm uses tags extensively to cathegorize music. A song that has been tagged alot with the
tag “space rock” will probably be space rock. This of course only works if the users of last.fm tag decently, but
it seems to be quite okay. Tags are fun ways to explore new music.
subscription
While last.fm is free, it is also possible to pay a small fee to get a subscription. There are some nice bonusses
for subscribers: Personal Tag Radio: a radio of songs you (or someone else) tagged with a certain tag
instead of everyone, Personal Radio: this one is really good, a radio reflecting your taste, yet it keeps
introducing new music, and Loved Tracks Radio: this plays only songs you marked “LOVE” in the last.fm player.
A nice way to play only those songs you really like.
community
last.fm is also a community of music lovers. There are forums for all kinds of music, or just for fun.
Everybody can write journals about music they like/love/…, and others can comment on these journals.
Everywhere it’s possible to link to artists, albums or songs with special last.fm links. It also works the other
way around, as an album page can have a link to a journal someone wrote about it recently.
conclusion
You will have to try this for yourself, however I have great fun listening to this radio, and using the very nice website.
It really is a new way of listening to music!
links
- website: http://last.fm/
- forums: http://www.last.fm/forum/
- player: http://www.last.fm/downloads.php
java tips for C/C++ coders
May 13th
datatypes
In C/C++ datatypes are dependant on the system you are compiling for.
This can be 16 bit, 32 bit or 64 bit, and Big Endian or Little Indian.
For 64bit systems it even depends on the data model.
In Java this is all standardised.
An integer is always 32 bit and data is always Big Endian.
Also there are no unsigned types in java, all types are signed, even bytes.
This can be annoying and confusing.
The following table gives an overview for a 32bit i386 and a 64bit AMD64 system:
|
|
In C and C++, you can use char* and casts to convert simple datatypes into bytes. In java this is not possible. Luckily the java.nio package exists. This contains among things the class ByteBuffer, making data conversions alot easier.
To Be continued…!
Lemux LADSPA plugins
Sep 19th
Here can you download the Lemux LADSPA plugin I once wrote. It is incomplete and buggy, use at your own risk, or better, don’t use it!