Archiv

Archiv für die Kategorie ‘linux’

make: just a remark for filter-out

26. Februar 2010 Keine Kommentare

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.

Kategorienprogramming Tags: ,

JavaScript: numbers with decimal (thousand) separator

17. Februar 2010 Keine Kommentare

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…

Kategorienprogramming Tags: ,

myrescue: Abbild von defektem Datenträger erstellen

10. Februar 2010 2 Kommentare

Egal ob Diskette, CD oder Festplatte. Kein Datenträger ist vor einem Defekt geschützt – doch wie geht man vor sobald dieser auftritt?

Hier stelle ich eine Möglichkeit vor, welche ausreichend Platz vorausgesetzt – zumindest das meiste noch lesbare aus einem Datenträger “herausholt”. Das Ganze erfordert ein wenig Linux Kenntnisse (also notfalls diesen Artikel speichern und jemandem geben der damit Erfahrung hat). Mehr…

Kategorienlinux Tags: ,

In Brief: Linux 2.6.32 – KSM and KVM

1. Januar 2010 Keine Kommentare

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…

Strommessung: Analogen Zähler aufzeichnen und auswerten

11. Dezember 2009 4 Kommentare

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…

Kategorienlinux, private, programming Tags: ,

btrfs: Zeitgemäße Backups unter Linux.

6. Oktober 2009 2 Kommentare

Die Entwicklung des Butter-Dateisystems btrfs schreitet zügig voran und vielleicht können wir schon bald auf ein zeitgemäßes Dateisystem zurückgreifen mit welchem inkrementelle Snapshot-Backups Realität werden. Das gibt es schon? Mehr…

Kategorienlinux Tags: , ,

Ubuntu 9.10: Featuring the S.M.A.R.T. Notifier

23. September 2009 Keine Kommentare

A new base feature from Ubuntu 9.10 is the S.M.A.R.T. notifier which informs you whenever your harddrive reports an error. Before Karmic Koala you had to install smart-notifier which does the same job but was not in the base distro. Screenshot after the break… Mehr…

Kategorienlinux Tags: , ,

arm: remove thumb instruction “bx lr” from EABI binary

14. September 2009 Keine Kommentare

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…

Kategorienlinux, programming Tags: , , , ,

mailman: Reinject all pending mails from command line.

11. September 2009 Keine Kommentare

Mailman doesn’t have a command to re-inject all pending mails for the command line. Because in Debian Lenny the web-part is broken (wants to be recompiled because of wrong Apache group) I needed to re-inject a lot of mails which were pending. Mehr…

Kategorienlinux Tags: , ,

bash: Redirect output to virtual file

11. September 2009 Keine Kommentare

Bash has a cool feature, it allows you to redirect the output of an application to a virtual file. With this its for example possible to fast-diff two directories. Mehr…

Kategorienlinux Tags: ,