buglix.org

Archive for the ‘Programming’ category

Härligt med folder actions

August 28th, 2007

Efter mycket velande fram och tillbaka blev det till sist så att jag valde Strongspace.com för säkerhetskopiering. Det startade en scriptfest utan dess like för att jag ville få till något som kunde köras semi-automatiskt så väl som on-demand. Det blev ett enkelt shell-script som kör rsync mot servern. För att fixa den semi-automatiska biten [...]

Code Prettifier

December 31st, 2006

I have now completed a web based syntax highlighter that can prettify any code that is already available on the net (like via WebCVS/SVN, or just plain uploaded files). It has support for Java, Python, C++ and Ruby among others. To use it, simply enter a URL to some code you want to be highlighted [...]

Pretty code

December 30th, 2006

Something I have wanted for a long time is an efficient way of highlighting syntax for an arbitrary file. Like uploading a file to some server and then execute a query like this:
http://myserver.com/scripts/highlight?
url=http://www.someserver.com/MyClass.java&
language=java&
showlines=false
And it would generate a clean HTML-output with the code highlighted and pretty.
Since I have not found [...]

Image Grinder Light

August 30th, 2006

In my Projects page I have a description of a tool called Image Grinder wich I’m working on. Since I’m implementing it in C++ and wxWidgets it takes some time (I don’t think C++ is a very creative language - don’t know why I chose it realy). Today I switched mode of the camera to [...]

New photos uploaded to flickr

August 29th, 2006

During my vacation I have re-organized my digital photo collection. That includes starting to use digiKam to organize them, and flickr.com to show them.
My latest batch were taken during my first visit to the United States in February 2005. I was there to attend the yearly Eclipse conference Eclipsecon.

Updated ~/.vimrc

July 2nd, 2006

After hours of testing different settings I finally came up with a new configuration file for Vim. This all started after I upgraded to version 7.0 of this magnificent editor. I also spent several hours trying to find the optional coding font to use in Gnome/GTK/Vim, and belive me, it was HARD. I finally settled [...]

I recently remembered that Gaim has a nice Perl API for writing plugins (or actually I was rembembered by a friend). I decided to test it out by writing a plugin for displaying the current playing song in Rhythmbox in instant messages when the keyword ‘%rb’ is found (I know there is a plugin for that already, but I did not get that to work).

I would like to take the oppertunity to talk a little about our latest project at Purple Scout.
BinOcular is the response to an ever-growing need to browse different kinds of binary files, both modern well documented formats, as well as obscure legacy ones. When developing products, the developer is frequently faced with the problem [...]

Minor Eclipse util plugin

February 28th, 2006

I have discovered that during development in Eclipse, you sometimes have to restart the workbench for various reasons. The "File->Switch workspace" feature is ok for that I guess, but sometimes when you are working with several different workspaces, the value in the switch workspace dialog is not in sync with what you are currently using [...]

Portage update checker

February 27th, 2006

Here is a little script I once wrote to check if new updates exists in the Portage Tree (Gentoo). If so, it sends an e-mail to the owner of the script. Run it as a cron job and don't forget to change user_address and smtpserver.
PLAIN TEXT
PYTHON:

#!/usr/bin/python

# Copyright Emil Erlandsson 2005

import os,smtplib

 

user_address = "receivers address"

smtpserver = [...]

Proudly powered by WordPress. Theme developed with WordPress Theme Generator.
Copyright © buglix.org. All rights reserved.