Wednesday, August 8, 2007

Youtube Mashup

We played around with the script.aculo.us and prototype libs for the last days. So we thought, instead of wasting the time completly, we can build something, that is probably useful. And here it is: The TubeBox ;-)

The videos are served by youtube and the data for the similar artists comes from last.fm

It's still a bit buggy but that may be fixed the next days. Anyway, i am very impressed by the possibilities delivered by this javascript frameworks.

Saturday, August 4, 2007

Make gedit behave roughly like Textmate

I stumbled upon an interesting blog post, which is describing howto change gedit to behave roughly like textmate. I use ubuntu freisty fawn on my devlepoment machines and it took me more than an hour to get clear about the things i have to change. Because i have to maintain some more developing machines, i packed together some useful plugins ready for copy and paste.

The available plugins can be found on the Gnome/Gedit site

Step One: Get plugins available via apt-get
  • Snippets
  • File Browser
$sudo apt-get install gedit-plugins
Step Two: Download & uncompress this file

This file contains following Plugins:
the font "monaco", the color schemes for highlighting ruby and rhtml and the mime type definitions for rhtml (Note: I can't get the mime types get to work properly. Maybe you have some suggestions?)
$tar xvzf gedit-mate.tar.gz
$cd ./gedit-mate
$ls -a
$>. .. .fonts .gconf .gnome2 plugins rhtml_definitions
Step Three: Colors for Synax Highlighting & Fonts

You can copy the folders ".fonts .gconf .gnome2" straight in your home directory. The contents of the folders are responsible for the colors of syntax_highlighting and brings you the font "monaco". Keep in mind, that you have to set the font and the background color by yourself.

$ cp -R .fonts .gconf .gnome .gnome2 ~/


Step Four: Create the MimeType for ".rhtml" files

Change in the "rhtml_definitions" directory and copy the files
$cd ./rhtml_definitions
$ sudo cp x-rhtml.xml /usr/share/mime/packages/
$ sudo cp rhtml.lang /usr/share/gtksourceview-1.0/language-specs/
Step Five: Copy the Plugins

Change in the "plugins" directory and copy all of them into /usr/lib/gedit-2/plugins
This was the only directory that worked for me. Maybe ~/.gconf/apps/gedit-2/plugins will work for you.
$cd ../plugins
$sudo cp -R ./* /usr/lib/gedit-2/plugins/
Step Six: Restart your session and enjoy.