You are here

keinstein's blog

HOWTO change the UUID and or label of a FAT/vfat partition on Linux.

In many forums and wikis the recommended way of changing the uuid of a fat partition involves dd and a hex editor.

However the easy way is to use mtools. Let's suppose we want to change the UUID of a fat partition on /dev/sda1.
As a first step we have a look at the UUIDs of the different file systems:

> blkid
/dev/sda1: SEC_TYPE="msdos" LABEL="boot" UUID="4059-33BB" TYPE="vfat"

Notizen: Cross-Compilieren unter Debian und Ubuntu

Seitdem Debian und Ubuntu verschiedene Architekturen unterstützen ist es eigentlich relativ einfach, Windows-Software zu unterstützen. Eigentlich… Aber dazu später mehr.

Colours of wxWidgets

wxWidgets provides a global colour database (wxTheColourDatabase). Unfortunately the documentation doesn't show the colors for an easy selection. The following code extracts the definitions from wx/common/gdicmn.cpp and converts them into HTML:

sed -e 's;^\s*{wxT("\([^"]*\)"),\([^\}]*\)\},?;<span style="color: rgb(\2)">\1</span><br />;' gdicmn.cpp |grep '<span' > colors.html

Midi implementations – a review

Yesterday, I stepped over a problem when I tried to connect two MIDI aware applications: Mutabor and a MIDI only filter implemented using JUCE.

Debian, ALSA, Linux und bluetooth

I finally found some website that allowed me to configure bluez to work both as alsa and as pulseaudio device. My Bluetooth audio device is now working. The main hint comes from this post:

I didn't check everything by now, but the most important hint seems to be #2, that told me to add

Enable=Source,Sink,Headset,Gateway,Control,Socket,Media

to /etc/bluetooth/audio.conf instead of the disable option.

Additionally I put the following contents into /etc/asound.conf:

Enable logging in Jabref

Recently, I started to fix some issues in the Bibsonomy JabRef plugin. As debugging is not possible if you don't get any information about what's going on, I tried to enable logging. According to the Bibsonomy website the plugin uses Log4J for logging. But I was unable to change the console output of JabRef. I simply didn't accept my log4j.properties.

Running OpenMusic on Debian GNU/Linux

Recently, I have been asked to try to get OpenMusic running on Linux. So far, IRCAM provides only versions for Windows and Mac OS X. Ok. OpenMusic is GPL licensed and the source code is availlable from their download page. I downloaded it, ignoring the sufficiently large list of dependencies – I can return to this topic later.

LispWorks

Compiling LeoCAD on Debian or Ubuntu

Though LeoCAD could be availlable in Debian soon, I wanted to install it now.

Compiling LeoCAD on Debian based systems as Ubuntu is easy as described on The official Wiki page. But there are some easy steps missing.

Lets. start: Open a shell window (xterm, Terminal, rxvt).

At first we need some software and libraries:

sudo apt-get install subversion libgtk2.0-dev libgl1-mesa-dev libjpeg-dev libpng-dev zlib1g-dev

Schlagworte: 

Some notes to wxWidgets

Well, today I've solved some problems using wxWidgets for Mutabor.

The first one was, that my focus changes are not shown on Microsoft Windows. The reason is simple: Microsoft Windows does not allow to change the border of a window. Even if it is a child of another one! So, I changed the corresponding drawing routines to draw a border on wxMSW when the corresponding shape is focused.

Mutabor Tutorial

Learn, how to write tuning logics for Mutabor 3 and above. Mutabor is a software that allows to retune your MIDI equipment in realtime to any tuning you like, including mutable tunings.

Subscribe to RSS - keinstein's blog