Blog
Installing Debian Etch on a MacBook Core Duo 2
I recently bought a new Macbook, well one of the first things i did was installing Debian. The instructions in the corresponding Debian Wiki Page work pretty well, except i didn't want to install lilo because it is just to annoying and error prone to run /sbin/lilo every time i changed something in the bootloader configuration. It turns out that the grub shipped with edge is capable to boot a macbook. The only thing you have to do is change the partition type of your /boot partition. In my case this is /dev/sda4. So just proceed the debian installation as explained on the Debian Wiki, when you drop to the console to sync the MBR from the GPT change the filesystem type as shown bellow. Adjust the index (in my case 4 for /dev/sda4) to the partion containing grub to match your setup.
sfdisk -c /dev/sda 83
This worked for me. The only other thing which annoyed me a bit is the keyboard and touchpad configuration. Update your touchpad config within xorg.conf as explained on this page and for the keyboard use these hints.
Enjoy your GNU/Linux powered Macbook!
Marc
Getting the Location of the executing Assembly on the .NET Compact Framework
Had some time today to familirize myself with the .NET Compact Framework. Took me some time to find out how to get the location of the program on the device. Here is what i came up with afer some research.
System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase)Marc
Deleting all default wiki pages in Trac
I am currently evaluating Trac as a web management tool for a school project. By default Trac comes with lots of standard wiki content, mostly help instructions, which i don't need. So here is a simple script which saves the current wiki content and then deletes all pages.
cd /path/to/your/trac/project
mkdir wiki-exported && trac-admin . wiki dump wiki-exported
for page in $(trac-admin . wiki list | awk '{ if($1 ~ /^(Trac|Wiki).*$/) print $1}'); do
$(trac-admin . wiki remove $page);
doneIf you want to restore your wiki content then run
trac-admin . wiki load wiki-exportedTo upgrade to the latest help instruction issue the following command
trac-admin . wiki upgradeMarc
Comparison between Java and C#
As i am still trying to get familiar with C# i found the following comparison between Java and C# quite usefull.
MSDN - sucks use the API Documentation in CHM Format
In my day job i am currently developing a C#/.NET Compact Framework application and one of my first experience is that the MSDN documentation -- well pretty sucks -- it's just way too slow. Fortunately the API Documentation is also available in CHM format.
Marc
