Tag Archives: Linux

Rhythmbox Plugin: Stop after current track

I have wanted this for a while, and my brother linking me to this post was the last straw.
So here is a very quick and simple plugin; it simply puts a button on the toolbar that you can click when you want to stop playback after the current song. I based the toolbar button code [...]

Annoyances with Intrepid

After having just installed Intrepid on a friend’s PC last night:

I ran into this bug (here’s the fix)
ATi’s dual monitor setup is still too hard (here’s how to do it)
ATi’s drivers can’t do compiz and video at the same time (Install the latest drivers to fix it)

Cleaning up a set of tags with Awk

Introduction
David R. MacIver has recently written this blog post about cleaning up a set of tags. This blog post, on the other hand, is about a nice old Unix tool called ‘awk’.
Awk is one of those programs that is often overlooked. It is really a small domain-specific language for processing text. In some ways it [...]

Generating x86 assembly with Haskell

A quick and dirty example:

data Exp = Lit Int — literal value
| Call String Exp — calling a function
| Bin BinOp Exp Exp — binary operations
| Param — the parameter
deriving (Show,Eq)
 
data Function = Func String Exp — a function has a name and expression
data BinOp = Add | Subtract | Multiply | Divide deriving(Show,Eq)
 
– an [...]