You are here: Home
Personal tools
You are here: Home

incunabulum - a blog with a weird name

by root last modified Jul 08, 2009 01:13 PM
A weblog mostly about Linux, Plone, Veg-Oil and other stuff I am interested in. For static or more elaborate content see the navigation pane on the left.

Etwas zur Genauigkeit von Temperaturmessungen

Posted by Michael Zimmermann at Jan 02, 2012 07:21 PM |
Filed under: ,

Vor längerer Zeit - ok, vor Ewigkeiten - habe ich im Rahmen des Pflanzenoelumbaus meines Passats im Rücklauf direkt hinter der ESP einen Temperaturfuehler installiert.

Und damit dass auch richtig tut natürlich richtig als Inline-Temperaturfühler mit passendem Fühlerstück, so dass letztlich der Fühler auch schön mittig im T-Stück im Rücklauf angeordnet ist. Da sollte doch nicht viel schief gehen und alles super genau sein ...

img img img

Oder etwa doch nicht?

Der Steckerverbinder an diesem T-Stück direkt auf dem Motor war nach über 100.000 km endgültig durchgeschüttelt und musste ob des immer gravierender werdenden Luftwatzes doch ausgetauscht werden. Aus Faulheit wurde hierfür aus einem vorhandenen 3/8-Zoll T-Stück - verbaut war ein 1/4-Zoll Stück - samt 1/4-Zoll-Adapter eben eine Austauschlösung zu Hause im Warmen gebaut. Flugs getauscht. Fertig.

Dass jetzt der Temperaturgeber nicht mehr mittig im Querschnitt angeordnet ist sondern ca. 8 mm nach Aussen versetzt angeordnet ist kann ja nicht so ein Problem sein. Dachte ich. Ist es aber doch! Bei meinen üblichen Vergleicshrouten ( 10 Stunden Standzeit, 3 Kurven, danach 20 im Tempomat) bei identischer Aussentemperatur etc. stehen

  • bei Autobahnauffahrt auf einmal 8 - 10 Grad weniger auf der Anzeige,
  • bei Langstrecke (Tempomat 150 km/h) sind es 5 Grad weniger.

Und das nur, weil ich jetzt 10 cm hinter der ESP im Randbereich der Strömung und nicht mittig messe. Solche Auswirkungen hätte ich hier nicht erwartet. Ergo - Wer misst misst Mist. Genau. Mist.

Mp3 Tools for Tag Management and Such

Posted by Michael Zimmermann at Jan 02, 2012 06:36 PM |
Filed under:

Ever got angry about crappy mp3 tags or no tags at all? Ever wondered what your tracks named track01, track02, track03 ... actually are?

Well, two smart tools might be there to help you:

  • mp3diags - Diagnose mp3 tags, correct character encoding issues and fix some of the more common errors found in mp3 files like incorrect lengths etc.
  • Musicbrainz Picard - Automatically identify and correctly tag unknown mp3 sources using audio fingerprints, add missing mp3 tag informations and much more. All together under a very convenient and comfortable UI.

PS: Personal note, of course :-)

Ubuntu 11.10 and a missing Headphone Jack-Sense Flag

Posted by Michael Zimmermann at Oct 18, 2011 05:35 PM |
Filed under:

While the upgrade to Ubuntu 11.10 - or Kubuntu or Xubuntu, whatever - went quite smoothly, I ended up with the situation where the internal speakers of my laptop are not muted when jacking in some headphones. Quite annoying, to be honest.

A Resolution?

In my case, the solution of this issue was quite simple, see this thread (beware: German). Open a terminal, start alsamixer, then navigate to the Auto-Mute entry via the right arrow key and then set it to enabled (key up). Done. At least for me. Other issues might exist, though.

If you want to make this permament then edit /etc/modprobe.d/alsa-base.conf and add the following

options snd-hda-intel model=auto
You might have to change the kernel module.

PS: And this is a personal note. Of course :)

At Home > Random Snaps

Posted by Michael Zimmermann at Oct 10, 2011 05:51 PM |
Filed under: , ,

Now...

... and then :-)

Plone 4 Galleries - An Overview

Posted by Michael Zimmermann at Sep 30, 2011 06:50 PM |
Filed under:

This started as a personal documentation long time ago... may be it is useful for soemeone :-)

For Plone 4 a bunch of different gallery products are available. Having tested most of them, see the plone.org products section, for incunabulum.de the following two products were chosen:

As personal documentation and may be as help for other interested users, in the following different usage scenarios for these two products are shown.

Plain Galleries

This is probably the most common and simple use case where a bunch of images residing in a common folder should be shown as gallery. For this purpose, both products provide the corresponding views as shown

  • here for collective.prettyphoto
  • and here for collective.plonetruegallery.

As the album view only shows 12 images on each page (batched), prettyPhoto only shows 12 images at one go. Then you have to select the next page, see this bug report...

For plonetruegallery, please see the settings tab (display type: highside or Fancy Box)

Handling Individual Images

Often, on an indivdual page, small images are shown which are then linked to the full size version which, when clicked, show up some enlarged lightbox overlay. For this purpose, on incunabulum.de the functionality offered by collective.prettyPhoto is used where two different approaches are avaiabele

Rel Statement

Either use the approach mentioned in the prettyphoto documentation and add a rel=prettyPhoto argument to your href statement as follows

<a href="path/to/image/fullsize" rel="prettyPhoto">Title for the Link</a>

and you get:

Css Statement

Alternatively, you can mark your href statement and use the css class prettyPhoto prodived by prettyPhoto for this purpose. Your html code hence looks as follows

<a title="PrettyPhoto Overlay Test for Single Image Using a CSS Class" 
class="prettyPhoto" href="path/to/image/fullsize">Example</a>

and results in:

Galleries for Multiple Images

If the page contains multiple images, you might want to show a gallery overlay where you can browse through such a set of images. For this purpose prettyPhoto offers an solution as follows:

<a href=/path/to/image1/fullsize" rel="prettyPhoto[ImageSetName]">Image 1</a> 
<a href=/path/to/image2/fullsize" rel="prettyPhoto[ImageSetName]">Image 2</a>

Here, a set of images is defined by the statement rel="prettyPhoto[galleryName]". In a single page, different independent sets of images can be defined. Upon calling a single link, prettyPhoto presents a navigation over all images of the selected set.

Tip: If you want only a single visible image yet would like to present a navigation over multiple images, add the other links with empty <a > tags or with blanks.

Links to Complete Galleries

Assume that you have a folder with a set of images somewhere in your site that you want to link to. As a result, you would like to see some gallery overlay (lightbox style) when you activate this link. Herefore, with the products described two different solutions are possible.

PrettyPhoto

Link to the folder containing the images. Here, the user can start the overlay gallery manually

PloneTrueGallery

Use the @@placegalleryview view provided by collective.plonetruegallery while using the prettyPhoto overlay IFrame. This can be done as follows

<a class="prettyPhotoIframe" href="/path/to/image/folder/@@placegalleryview">Link Name</a>

which gives:

Embedding Galleries

Finally, embedding a gallery representation in a page is currently not supported by prettyPhoto. Personally, I doubt that this is feasible, as prettyPhoto mandated that for all images links are present somehwere on the page.

Yet, there is collective.plonetruegallery to the rescue.

<object data="/path/to/image/folder/@@placegalleryview" height="400"  width="500">
<param name="data" value="/path/to/image/folder" />
</object>

And don't forget to update safe_html as mentioned in the documentation. Namely, change the following

  • nasty_tags: object = 0
  • valid_tags: object = 1, param = 1

Wishlist

  • prettyPhoto: Currently, a plonetruegallery overlay linking to a complete set of images (Example) may lead to nasty scrollbars. This is due to prettyPhoto.js script not adhering to the prettyPhoto properties defined in portal_properties (width, height), see this bug report.
    ><b>Update 201107/13: It seems this issue can be solved by updating the css registry, see the this bug report.
  • prettyPhoto: Find a way to directly embed the prettyPhoto view into a page without referencing all the other images somehow. Maybe use the API and provide the list of images as argument. This list could be populated by javacscript somehow...

YouTube und das Urheberrecht

Posted by Michael Zimmermann at Sep 30, 2011 06:44 PM |
Filed under:

Man mag zu YouTube stehen wie man will, es nervt einfach wenn ein Video aus urheberrechtlichen Gründen nicht abgespielt wird weil mal wieder die VG Wort oder Gema oder UMG oder wer auch immer sich nicht einigen konnten.

Gut, man kann mittels Hidemyass oder einem der anderen Dienste dies umgehen. Aber komfortabel ist anders. Oder man verwendet Ultrasurf wie hier beschrieben. Dazu einen "Amerikanischen Proxy" eintragen, fertig. Und für Linux klappt es auch mittels Wine.

Tired of being tracked?

Posted by Michael Zimmermann at Sep 25, 2011 02:40 PM |
Filed under: ,

Today, many sites use external services like Google Analytics, Google AdSense, Wordpress Stats or a plethora of others for statistics or the analysis of user behaviors. Also, each facebook or twitter button shown on a web page leads to a subsequent entry on facebook's or twitter's log with your ip, time of access and - if logged in - user credentials.

As a result, you become traceable, fully traceable. Anyone having access to such logs can now recreate and evaluate your complete browsing history over time. As a result, creating your personal user profile becomes a piece of cake. Knowing what you like is a given. Knowing what you may buy in the future is known. Knowing who your friends are can be determined.

Scary?

For me, yes. I don't want others to collect such an amount of information about me and my personal behavior. Information, which will be there indefinitely and which I have no right and no possibility to delete.

Enter Ghostery

Ghostery is a nifty Firefox Add-on which shows you a list of known external services like the Facebook button mentioned above which a website uses and which is used for logging your own personal behavior. Each of these, let's call them trackers can be blocked making you a bit more anonymous within the interwebs.

img

PS: And I guarantee you will be surprised about the number of logging services each website uses.

Ein echter Pölschaden

Posted by Michael Zimmermann at Sep 15, 2011 07:50 PM |
Filed under:

Only No News are Good News. In dem Sinne... 150.000 km Gewackel mitten auf dem Motorblock haben dieser Halterung den Rest gegeben. Festgestellt habe ich es eher durch Zufall beim Ölstand messen. Allein durch die Verschlauchung hält das Ventil auch freifliegend ausreichend.

Quick Lightning Tip

Posted by Michael Zimmermann at Sep 15, 2011 07:16 PM |
Filed under: ,

If you ever wondered why you can copy but not paste entries of your calendar in Thunderbird Lightning make sure you have selected a writeable calendar on the left pane.

That's it.

QDL 0.5.0 is out!

Posted by Michael Zimmermann at Sep 09, 2011 08:50 AM |
Filed under: ,

This week, as boerse-online revamped the website, my quote downloader for Quicken QDL stopped working and got me busy.

As a result, I am pleased to announce QDL 0.5.0, a slightly larger updated with changes as follows:

  • The webpage retrieval is now done by wget so that onvista can be supported :-)
  • None of the old data sources are working any more.
  • The current data sources for the kmm backend are: xetra, onvista, vwdsym. See the KmmSources.py for usage information.est)

Twitter hates RSS... but I like feeds

Posted by Michael Zimmermann at Jun 10, 2011 10:40 AM |
Filed under:

No, I don't like social media stuff as it delivers to much noise and wastes to much time with to little outcome. Yet, there are some - rare - occasions where a twitter feed of a certain person or group might offer valuable pieces of information that I can not access otherwise.

For this purpose - normally - I use RSS, so that any news automatically pops up in my mail programm and feed reader. This way, there is no need for an extra communication channel and yet another portal, yap, to check regularly.

Unfortunately, twitter hates RSS so that the former option to subscribe to a feed is no longer shown. Yet, there are workaround, see here

Thus, twitter hates me. Yet, I do have my feed.

KDE Plasma Hacking - The CPU And System Viewer

Posted by Michael Zimmermann at Jun 08, 2011 06:20 PM |
Filed under:

For my primary desktop is KDE which is running the Plasma Desktop plasmoids are a powerful option to add helper widgets to this desktop. Looking for a small, space efficient and simple tool to show cpu usage, memory usage etc. there was none I liked on kde-apps.

Enter CPU and System Viewer

The CPU and System Viewer plasmoid provides a simple and rather minimalistic view onto the current CPU usage of your system and can be added to the panel. If wanted, CPU, memory and swap usage are shown in a graph, too. Also, a popup gives more advanced information about the current state of the system.

No Chart, just the plasmoid Chart and CPU usage

This plasmoid is written in python and is derived from the Simple CPU Meter plasmoid. Also, ideas from the System Load Viewer plasmoid shipped with KDE SC were used.

Popup Information

And hence my first foray into KDE Plasma hacking commences.

Ziemlich spät und doch ganz früh

Posted by Michael Zimmermann at May 13, 2011 09:30 PM |
Filed under: ,

Henrik Ole Felix ist mein Name... und die Treppenstufen sind nun sauber.

Filesystem checks on a Hetzner Server

Posted by Michael Zimmermann at May 07, 2011 09:50 PM |
Filed under:

Ever wondered how to schedule an automatic file system check on the next reboot of your linux server? This is how you do it.

Following the information given by everflux create a forcefsck file in your root directory:

 touch /forcefsck

And if you have a hetzner server, please be advised that this work only if you have changed your pass statements for the relevant partitions from 0 to 1 (root partition) or 2 (other). Otherwise, your request for a filesystem check will be ignored.

PS: Personal note, of course :)

On towards Plone 4

Posted by Michael Zimmermann at May 06, 2011 11:55 AM |
Filed under: ,

Yes, incunabulum.de is now running with Plone 4.

As the database of this site dates back to the Plone 2.0.x, this required quite some preparatory work. But after some initial fiddling around everything worked out quite nicely, as can be seen in my upgrade notes. Also, the skin was updated to incorporate some changes required for plone 4 compatibility, see the svn repository

And now? Well, we have a current and up-to-date system where things like improved galleries (collective.prettyphoto for single galleries and collective.plonetruegallery for inline galleries, see the hidden features section) will actually work. We will see.

What a Wonderful Day

Posted by Michael Zimmermann at May 05, 2011 09:06 PM |
Filed under:

Sonne, ein leichter Wind, die Heringsangler. Und die die Vagel Griep auf ihrem Übergangsplatz bis zur weiteren Verwertung. So kann ein Freitag abend ausklingen.

Been There, Done That

Posted by Michael Zimmermann at Apr 08, 2011 10:25 AM |
Filed under: ,

Was lange währt wird endlich gut. Unter diesem Moto konnte am 6.4.2011 die Verteidigung meiner Dissertation Knowledge-based Design Patterns for Detailed Ship Structural Design stattfinden.

And the Presenter

Was im Herbst 2003 begonnen hatte konnte nach Arbeitswechsel, Familiengründung und weiteren Höhen und Tiefen somit abgeschlossen werden. Mit Erfolg!

The Announcement

Für Interessierte gibt es einige weitere Bilder. Die Arbeit ist online verfügbar.

Linux and Renaming Multiple Files

Posted by Michael Zimmermann at Mar 20, 2011 06:56 PM |
Filed under:

Personal Note: If you want to mass rename a collection of files via the shell in linux, do as shown here or here. I. e. feed some regular expressions to the rename command followed by a filter which selects the files. Just like so:

rename oldname newname *.files

Or in my use case a follows:

rename s/JPG/jpg/ *.JPG
rename s/DSC/DSD/ *.jpg

Atomare Störfälle in Japan

Posted by Michael Zimmermann at Mar 14, 2011 02:40 PM |
Filed under: ,

Man mag ob der unklaren Faktenlage zu verschiedenen Schlussfolgerungen kommen... die Ereignisse in Japan sind in Gänze als Katastrophe anzusehen. Da hierdurch auch in Deutschland die Diskussion um das Für und Wieder zur Atomkraft erneut angestossen wird und es sich hierbei um ein Thema handelt, welches mich sehr bewegt, im folgenden einge Anmerkungen meinerseits.

Ziel ist es, die vielfach schlichtweg falsch genutzten Begriffe wie Risiko zu klären und eine logisch abgeleitet Entscheidung zu diesem Thema herzuleiten. Für fachliche Erklärungen zur aktuellen Situation sei auf den excellenten Artikel von morgsatlarge wie auch auf die Seite gau-japan verwiesen.

Also….

Die Bewertung der friedlichen Nutzung der Atomenergie kann nur faktenbasiert erfolgen. Wenn wir dies aufgeben, so geben wir jegliche Form von objektiver Einschätzung auf und öffnen Willkür und Irrationalität Tor und Tür. Insofern im folgenden Fakten, deren Diskussion ich in der deutschen Medienlandschaft vermisse.

These: Atomenergie ist riskant.

Antwort: Was ist Risiko? Eine objektive Bewertung von Risiko kann nur erfolgen, so man Eintrittswahrscheinlickeit und (!) Schadensausmass im Schadensfall bewertet und für unterschiedliche Szenarien vergleichend bewertet, also mit einen geeigneten Maßstab normiert.

Wenn man hierfür die entsprechenden Statistiken bemüht und rational und emotionsfrei das objektive Risiko für verschiedene Energiequellen ermittelt, so kann man durchaus zu dem Schluss kommen, dass gemessen in Tote / Jahr * TWh Atomkraft auf einem Niveau mit der Energieerzeugung aus Kohle steht. Letztere mit einigen Zehntausend Toten pro Jahr. Erstere mit seltenen Katastrophen von vielfach größerem Ausmaß.

These: Japan aendert alles

Antwort: Nein. Das Risiko war vorher da und ist auch nach wie vor vorhanden. Wenn es gesellschaftlicher oder (!) politischer Konsens ist, dass der gesamtgesellschaftliche Nutzen dieses Risiko wert ist, so ändert ein Schadenseintritt daran nichts. Man ist dieses Risiko bewusst eingegangen und sollte dementsprechend auch bereit sein, die Konsequenzen zu tragen. Ist man dies beim Schaden nicht, so hat man sich vorher in die eigene Tasche gelogen.

Was sich eventuell ändern könnte ist a) eine Hinterfragung ob dieses Risiko wirklich von Anfang annehmbar gewesen ist und b) ein Hinweis darauf, dass Verdrängung von Risiken langfristig keine Lösung ist.

These: Das ist ein Super-Gau

Nein. Zumindest gestern abend waren die Unfälle auf der internationalen Skala für Atomunfälle als Stufe 4/5 eingeordnet. Es gibt diverse Vorfälle auch in Europa, die gleich schwer eingestuft wurden. Erst bei einem Unfall der Kategorie 6 / 7 reden wir von wirklich gravierenden Auswirkungen auf Umwelt und Menschen. Dies ist zum Glück erst 1 x passiert.

These: Deutsche AKWs sind sicher denn hier gibt es keine Erdbeben.

Hier wäre ich mir im Hinblick auf den Oberrheingraben nicht sicher. Man bedenke – die Nachbeben in Japan sind stärker als die Auslegungsgrenze der dortigen AKWs.

Weiterhin führt der Ausschluss einer einzigen Fehlerquelle nicht dazu, dass eine Technik per se absolut sicher ist. Gerade bei einer komplexen Technik gibt es viele Möglichkeiten (Vorsatz wie in Tschernobyl; Kombination mehrer sehr unwahrscheinlicher Naturereignisse wie in Japan etc.), die bei der Entwicklung nicht berücksichtigt wurden und welche dann zu größeren Schäden führen können. Terroranschläge, Flugzeugabstürze etc. Dies alles muss in der Risikobetrachtung (s.o.) berücksichtigt werden.

Fazit:

Obiger Text mag auf den ersten Blick atomfreundlich klingen, ist aber letztlich aus rationalen Erwägungen abgeleitet. Kritik ist herzlich willkommen. Und wie stehe ich dazu? Ich bin gegen die Nutzung der Atomkraft und zwar aus folgenden Überlegungen:

  • Die Belastbarkeit oben genannter Risikoabschätzung ist sehr gering. Es liegen nur wenige Erfahrungen aus echten Störfällen vor (zum Glück); theoretische Abschätzungen sind immer hoch kontrovers zu diskutieren. Insofern ist das sog. Konfidenzniveau in meinen Augen nicht ausreichend gesichert.
  • Das heisst? Auch wenn Risikoberechnungen als Ergebnis einen akzeptablen „Body Count“ liefern könnte, so ist die Bandbreite innerhalb eines z. B. 95%-Perzentils immens. Mag man ein mittleres statistisches Risiko der Atomkraft von z. B. 10.000 Personen / Jahr ermitteln (was imho akzeptabel wäre), so können es je nach Interpretation und realer Situation auch um den Faktor 100 mehr oder weniger sein. Also 100 oder 1.000.000 Personen / Jahr. Ist letzter Wert noch akzeptabel? Nein!
  • Endlagerung: Die Suche nach einem Lager wird zurzeit primär politisch motiviert betrieben. Die Anwendung technischer Ausschlusskriterien wie auch eine objektive Analyse der Risikofaktoren finden öffentlich einsehbar nicht statt. Aus diesem Grund wie auch aus dem Grund, dass keinerlei Erfahrungen mit solchen Lagern vorliegen, vertrete ich die Meinung, dass hier mögliche Auswirkungen auf die Umwelt nicht ausreichend sicher abgeschätzt werden können. Im Prinzip gilt das in 1) gesagte.
  • Kommt es wirklich zu einem Störfall der Kategorie 6 / 7, so ist das hervorgerufene Leid groß. Im ungünstigen Fall ist die ganze Welt betroffen; ganze Staatengebilde werden möglicherweise zerrissen oder zerstört. Vom Leid millionen betroffener Menschen ganz zu schweigen…. Die Folgen sind so unfassbar immens, dass durch die Menschheit alles menschenmögliche getan werden muss, um dieses Leid zu absolut 100 % auszuschließen. Ich verlasse also meine oben aufgeführte Argumentation der Risikoabschätzung muss aber gleichzeitig einsehen, dass es sich hier um eine ethisch / philosophisch einzuordnende Betrachtungsweise handelt. Mag jemand dieser Sichtweise nicht folgen, so ist dies von mir zu akzeptieren.

Meinungen? Kommentare?

Thunderbird and the Incorrect News Counter

Posted by Michael Zimmermann at Mar 13, 2011 01:00 AM |
Filed under:

While I am not completely happy with Thunderbird - the old and quite slow UI can be quite cumbersome - it is a nice application to offer an aggregated view onto all my mails, news and feeds. That's something I like :-) And with Memotoo syncing to my Nokia Phone is easy and works flawlessly. Which I like even better :-)

With one exception.... on both of my news accounts I do experience incorrect values for the counter showing the number of unread news. More precisely, I do end up with all visible mails being shown as unread yet the counter still showing unread messages. Well, not only me...

And if you are using shortcuts to jump to the next unread message like N you end up in these folders. Folders, where there is nothing to read for you.

Looking for a solution I found some comments which required the manual editing of some config files within the thunderbird profile. Doable, yes. But quite a nuisance if you have to do this every n-th day. And then I found the following python script on Reinouts site which does this automagically.

Python Skript:

 CONFIG_FILE = ('/home/reinout/.thunderbird-3.0/0gahkqdp.default/' +
               'News/newsrc-news.gmane.org')

 def fix_thunderbird():
    """Fix the thunderbird newsrc settings

    The settings sometimes contain lines like::

      gmane.comp.python.distutils.devel: 1-12428,12431-12446

    There's a two-article 'hole' in there that shows up as two unread
    messages.  This script removes the holes.

    """

    lines = [line.strip() for line in open(CONFIG_FILE).readlines()]
    print "======= OLD ======="
    for line in lines:
        print line
    print "======= NEW ======="
    outfile = open(CONFIG_FILE, 'w')
    for line in lines:
        if not line:
            continue
        newsgroup, messages = line.split(': ')
        parts = messages.split('-')
        new = '%s: %s-%s\n' % (newsgroup,
                               parts[0],
                               parts[-1])
        print new,
        outfile.write(new)
    outfile.close()

 if __name__ == '__main__':
    fix_thunderbird()

Document Actions