Category Archives: General

C#, Mono, and System-Wide Mutexes on Linux

Here’s another little “gotcha” from my experimentations in running C# apps cross-platform. The following code implements a system-wide mutex to ensure that only one instance of the program is running at any one time: Running this on Windows it behaves as one would expect. Run one instance you get “Doing stuff… press a key” output, [...]

Lambda Expressions and Threads in C#

Here’s a small program… what do you think the output will be?

Getting GTK# Apps to Run on Windows

In which I explain why GTK# applications built in Monodevelop on Linux don’t run on Windows, and explain how to fix this…

C# / GTK# – Re-Entrancy Issues

As I’ve mentioned a couple of times before, I’ve been working on a C# application, using GTK# to enable me to create a GUI application which can run on Linux, Mac or Windows. It works well but I’ve been working through some “gotchas” here and there. Here’s a useful little tip… Gtk# is not a thread-safe [...]

C# Config Files: Problems with RefreshSection() in Mono

In which I explore the very basic usage of the .NET Configuration system and hit an apparent bug in Mono’s implementation of it…

Using a GTK# TreeView Widget in C# – Very Simply

I’ve been experimenting with using GTK# and C# to build GUI applications which will run on Linux, Windows and Mac. Monodevelop has a graphical form designer for Gtk# front ends, but it’s not as simple as building WinForms applications under Visual Studio. An example is the TreeView widget – it’s designed from an MVC perspective, [...]

Kubuntu and Horrible Browser Fonts

I can’t be the only victim for this… I’ve experienced it on two different machines, on two versions of Kubuntu (11.08 and 12.04). If I go into System Settings → Application Appearance → Fonts and select “Enabled” for “Use anti-aliasing” then click “Configure” and select “Use sub-pixel rendering”, then (after a restart probably) all the [...]

Motorcycle Digital Speedo With Arduino

The first part of a (very) occasional series which follows my creation of a digital speedo for my motorcycle.

Linux Music with Guitarix – A Fix for High CPU Usage

A quick tip for those using the excellent Guitarix guitar effects program on Linux. I regularly found both cores of my machine up around the 90%-100% when that application was running, causing XRuns in Jack and clicks in outputted audio. I just found a way around it. For some really weird reason, SSHing into my [...]

Using the Ethernet Shield with Veroboarduino

In which I investigate whether I can connect an Arduino Ethernet shield to my Veroboarduino. Not as easy as I first thought it would be!