Archive

Author Archive

This is War

July 2nd, 2011 No comments
Categories: EvE Tags:

PathScale gibt 64-Bit Compiler Suite frei

June 15th, 2011 No comments

Die aus Compilern für C/C++ und Fortran für x86 Prozessoren, dem Debugger PathDB, sowie Bibliotheken und Dokumentationen bestehende Suite EKOPath 4, wurde unter liberale bzw. freie Lizenzen gestellt. Die Anwendungen sind für Linux, FreeBSD und Solaris erhältlich.

Read more at ProLinux and PathScale

WinXP Epic Fail or how a penguin made my day

June 12th, 2011 No comments

Well, all work and no fun make Jack a dull boy. That’s why at my PC at home, there’s a Windows XP installed besides my usual Linux installation. With it I do the in my opinion only thing Windows is better in than Linux, gaming. One can have other opinions, but for now that’s not the point.

In my experience a Windows system needs just a little bit of time to get slower and slower and start behaving crazy which leads to getting unusable and to a reinstallation. I had to say I was a little bit proud of this special installation, because I had no real difficulties within the last 6 month. Maybe it is because I just installed a Firewall, a Software to detect viruses and the single game I usually play … or it just waited until I was unsuspecting. But today it greets me with a nice black screen and the following white letters on it:

Windows could not start because the following file is missing or corrupt:

<Windows-root>system32\hal.dll.
Please re-install a copy of the above file.

Ok I do not exactly know what this file does (Managing Hardware access if I have to guess), but I’m sure I never touched her, seriously!

After th obligatory reboot a little bit of panic, anger and sadness followed. In the next second I started searching the web for a solution, or to get a copy of this hal.dll file. I read a bit in crappy forums and decided to find a file download with the dull feeling in my mind, that it can’t be a good idea to get a system-essential file from a source I don’t trust. In this moment a little penguin in my mind whispered “wine”… First I was confused, I more like beer but then I understand – WINE!

Excited typing began, for the hunt of hal.dll in my wine source directory. I smiled when I found it at the expected position. “Too easy to work!”, I thought… Next I mounted my NTFS partition and copied the file to where it whould be if my stupid Win*** didn’t lost it. Unmount, Reboot and crosses fingers followed. And what should I say? SUCCESS!

At the end I need to say, it is a nice job for (not) an emulator to fix the stuff it (not) emulates! ;)

Categories: DOS, fun, linux, nerdcore, software, wtf Tags: , , ,

Bash: parallel processes

May 9th, 2011 2 comments

Sometimes there is a need for spawning multiple sub processes in a shell script and do something after ALL of them have finished. The Bash has nice little features to do this very easily.

Here is an example:

#!/bin/bash
./process_1 &     # fork first sub process
PID_1=$!          # get PID of first sub process
./process_2 &     # fork second sub process
PID_2=$!          # get PID of second sub process

#...do some other work...

wait  ${PID_1}     # stop execution until first process has finished
wait  ${PID_2}     # stop execution until second process has finished

#...all work is done...

exit 0

With the ampersand (&) one can fork sub processes running independent from the parent process.

To avoid busy waiting we want to stop execution of the parent script until the child has finished. So we don’t use an infinite loop with a check and a sleep or something like that, but a function called wait together with the childs’ Process ID.

The PID of a created process can be received by reading $! right after the fork. As far as I know this is mostly bash functionality and maybe is not POSIX! (correct me if I’m wrong)

Categories: bashism, software Tags: , ,

Python by Example

April 27th, 2011 No comments

Just a few moments ago I discovered an interesting project called Acire Snippets. The aim is to provide an easy way to learn (or better use) Python by suppling code snippets of common tasks. But go an see for yourself!

Categories: software Tags: ,

Hausverbot für GEZ

April 19th, 2011 No comments
Categories: news, political Tags: ,

Cheat Sheets

April 14th, 2011 No comments

Ich bin großer Fan von Cheat Sheets zu deutsch: Spickzettel, zumindest wenn es um Programmierung oder Ähnliches geht. Wer zur Hölle soll sich all die verschiedenen Syntaxen auch merken?! Willi erinnerte mich neulich mal wieder dran, dass sowas u.U. besser ist als sich gleich ein ganzes Buch zu kaufen.

Nach kurzem Suchen bin ich auf Cheat-Sheets.org gestoßen, eine Website mit vielerlei Spickzetteln zu diversen Programmiersprachen, Anwendungen und vielem mehr.

Wer noch mehr kennt möge sie posten, Cheerio!

Categories: software, Uncategorized Tags:

13 Tote bei Terroranschlag auf dem Oktoberfest

February 16th, 2011 No comments

Ja, kein schlechter Scherz, das ist wirklich passiert – am 26. September 1980 um genau zu sein. Das sogenannte Oktoberfestattentat “,gilt als schwerster Terrorakt der deutschen Nachkriegsgeschichte”. Hmm, wie komm ich darauf? Bei all dem Terror-Hype den einige nationale sowie internationale Politiker und Parteien schüren ist mir dieser historische Vorfall entweder völlig durch die Lappen gegangen, oder er wurde nie erwähnt. Wir haben ja auch neue und größere Feinde.

Beim Durchpflügen des Abendprogramms im TV bin ich bei “Gladio – Geheimarmeen in Europa” (20:15 Uhr auf arte) hängen geblieben. Dort ist u.a. von eben diesem Anschlag die Rede und ich wunderte mich warum ein Dokumentarfilm historisch Begebenheiten erfindet, da ich den Vorfall nicht kannte. Das ich doch etwas schokiert war, dass dies keine Erfindung ist, sondern tatsächlich geschah, kann man sich denken.

Inhaltlich beleuchtet der Film Hintergründe von Anschlägen, politische Verwicklungen und angebliche Verschwörungen näher. Achja, laut imdb.de ist das heute die Premiere diese Films…vielleicht ja ganz sehenswert.

2570 fps in 1080p

February 16th, 2011 1 comment
Categories: fun, nerdcore, technic Tags:

Ubuntu with Oracle/SUN JRE/JDK

December 17th, 2010 No comments

In the current Ubuntu one can only get the open-jre and open-jdk installed via apt(itude). Because of some major issues concerning Swing, I needed to install the sun-jre and sun-jdk. To make this possible you have to edit /etc/apt/sources.list as root (or with sudo ;) ). Uncomment the two following lines close to the end of the file.

deb http://archive.canonical.com/ubuntu lucid partner
deb-src http://archive.canonical.com/ubuntu lucid partner

Save the file and do a

sudo aptitude update

or

sudo apt-get update

After that you can install the packages sun-java6-jre and sun-java6-jdk with an aptitude search (or apt-cache search) ready for installation. For using this runtime environment as systems default you need to do a

sudo update-alternatives --config java

which produces output similar to the following(sorry for the german bash ;) )

Es gibt 2 Auswahlmöglichkeiten für die Alternative java (welche /usr/bin/java bereitstellen).

Auswahl      Pfad                                      Priorität Status
------------------------------------------------------------
* 0          /usr/lib/jvm/java-6-openjdk/jre/bin/java   1061      Auto-Modus
1            /usr/lib/jvm/java-6-openjdk/jre/bin/java   1061      manueller Modus
2            /usr/lib/jvm/java-6-sun/jre/bin/java       63        manueller Modus

Drücken Sie die Eingabetaste, um die aktuelle Wahl[*] beizubehalten,
oder geben Sie die Auswahlnummer ein:

choose the correct number (here: 2), hit Enter…done!

Categories: linux, software Tags: , , , ,