programing

Building a Sexier GTK Media Player - Part 1

    Today I feel the need to express my discontent for the majority of Linux application UI's, I love GTK and I think it's an extremely simple to use yet powerful widget toolkit, and the unified styling of my choosing by all GTK applications is nice, but there are some cases where I just wish applications would stop looking like crap because of it.

Tagging is a Bitch

    After reading some different ways to implement tagging, I was amazed at how annoying it actually is to implement. Some implementations are dramatically faster, but they also limit what you can do with them.

Moving Elements in Ruby Arrays

    Today in my coding of droppit I needed to keep an ordered list of mimetypes sorted by priority, as such I needed some way to 'move' them around the array. Since there is no included way in the ruby Array class to do this, with the help of my friends in #ruby on freenode I have this snippet of code for you.

# Mixin for Array that allows you
# to move elements arround easily
module Reorderable
  def move(from, to)
    insert(to, delete_at(from))
  end
end