Hin und wieder möchte ich ein Stück Quellcode online stellen und dies nach Möglichkeit auch mit Syntax Highlighting. Unter Wordpress gibt es dafür Plugins, jedoch für meine normale Website hatte ich dafür noch kein PHP Tool und so machte ich mich auf die Suche nach statischen Renderern, obwohl die Lösung zum Greifen nah lag. Mehr…
programming
In Makefiles there is a nice command, called filter-out. This command takes 2 Arguments: first, the needle you want to filter out, second the haystack where it is in.
This was exactly what I needed. But everytime I tried it, it returned an empty string. The solution was too easy… make doesn’t complain if you write it with an underscore instead of a hyphen – and in makepp its written with a dash, so you will also get good looking Google results
Thanks to Philip on gnu.make.bugs for pointing this out.
programming
make, typo
Today, I needed a JavaScript function that converts a number like 1234567 to something more beautiful like 1.234.567. And because I didn’t need to take notice of locale settings (like using a comma instead of a dot) most solutions on the web where just too much for me and I decided to write my own. Mehr…
programming
JavaScript, WWW
Can you imagine to have 52 Windows XP virtual machines – 1GB RAM each – running on a server with just 16GB? Ok, sounds a lot… but we are near the 16GB barrier. Anyway, this is one of the features in the new 2.6.32 release. Its called Kernel Samepage Merging, KSM. Mehr…
linux, programming, windows
In Brief, KSM, KVM, Virtualisation
Messwerte erfassen, speichern und auswerten – in der Industrie gang und gäbe, im Privathaushalt eher kaum zu finden. Da es doch für manche interessant ist zum Beispiel den Stromverbrauch täglich zu sehen und eventuell große Verbraucher ausfindig zu machen wäre es nun auch schön, einen handelsüblichen Zähler zu digitalisieren. Die Stromwerke machen es einem dabei jedoch meist nicht einfach. Mehr…
linux, private, programming
Diagramm, Strom
Today I had a strange error using the GCC version 4.4.1 with EABI support on a non thumb-ARMv4. Everytime I compiled something, with and w/o the -mno-thumb-interwork parameter it also contained the bx lr instruction which is only for later ARM processors with thumb support. Mehr…
linux, programming
arm, eabi, gcc, openwrt, thumb
While compiling OpenWrt for an ARM compatible processor I got the following error:
{standard input}: Assembler messages:
{standard input}:39: Error: selected processor does not support `bx r6'
I found the solution in the The definitive guide to GCC book from William Von Hagen (I don’t own it, I found it via Google Books). You have to disable the the USE_BX flag in the uClibc config file and everything will be fine. Mehr…
linux, programming
arm, gcc, openwrt, uClibc
Because I always wanted to learn some GTK, I decided to try it first with a trayicon. And wow, it was that easy – ok, the functional factor is zero, but you’ll have a trayicon with a tooltip. And if you want more you can read the GTK documentation and extend it to the max. Mehr…
linux, programming
gtk, icon, tray
Hi, today I read Og Maciels blog entry on Planet GNOME about how he find out to not checkin a whole changed file with git but include/exclude special parts. This is something I needed in the last time much often, but never thought it exists – so with git its very easy. Mehr…
linux, programming
git, split patch
Problem: In diesem Falle war es eine Datei die ein Define enthielt was es erlaubte gewisse Teile einer Firmware anders zu kompilieren und so diverse Tests durchzuführen. Dummerweise ist mir genau dieses eine Define beim letzten Checkin nicht aufgefallen und wurde ausversehen eingecheckt – was zwar danach dann auffiel, aber unschön ist. Mehr…
programming
subversion
Letzte Kommentare