Freitag, Dezember 14, 2007

play music stream with mpd

So far I played audio streams with xmms or mplayer. Music on my PC is played with mpd. I'm a friend of using the same program for the same task. Searching for an solution I found a desrciption on playing a playlist with mpd from the browser.

For a test I added an URL by hand and played it:
mpc clear
mpc add http://85.159.184.42:80
mpc play

The status showed the name of the stream, Virgin Radio - The music we all love.

The next step was to create a playlist (m3u) with more URL's. Unfortunately mpd will show you the URL used in the playlist. Only after the stream was played the name is displayed if you list the playlist.

Using an extended m3u (#EXTINF:-1,1.FM - 80s Channel) didn't change any thing at the behavior. To be able to see the name of a stream and not only the URL before playing is possible. But for this a m3u playlist for each stream is need and named appropriately.

Using mpc on a PC this is not a problem. But from remote with a palm listing the loaded playlist and select the stream to play would be much easier as to load a new playlist. My be there is a better solution for the palm.

Donnerstag, Dezember 06, 2007

get rid of floppy and zip backup

Searching for some old data I realized it was only stored on a floppy backup. As only may old computers still have a floppy drive, this is the last chance to read and save the data. The other thing to keep in mind is that the magnetic field on the floppy will decrease over time. Not sure after how many years a floppy will still be readable. And if you think about the HD sizes today, you will not notice the data you copy from your floppies.

The same is true for the zip media I have. As I have much less zips as floppies and the drive is external I decided to get rid of this first.


  • copy the data with rsync of each zip into a separate directory

  • backup all this data onto a second HD

  • calculate the md5sum of the files and remove the double ones



There is no need to spend (loose) some time and sort the data. There was no need to access the data for some years, there will be no need in the future. And if, the new index and search tools like beagle will find the data anyway - and quicker as I am, no matter how the data is sorted.

Why keep the data at all, if I think I will not need it in the future. Nostalgic, like the stuff from university. Reference, some mails, letters, etc. And as I said the data doesn't take any space. We still talk about Mega Bytes in a time where HD's start to be measured in Terra Bytes. Way spent time to reduce the space used for the old data from 0.1% to 0.05%?

Sonntag, November 18, 2007

backdoors in cryptography

Bruce Schneierin his blog about a possible backdoor in Dual_EC_DRBG. As I'm no security expert its difficult/impossible to follow all security discussions. I don't have the time and the knowledge.

One commenter maid a good point:
most of the programmers don't have crypto background and will just get the algorithm, test cases and go on implementing it
Probably the only thing I'm able to do about this is to use only a hand full of security programs and select very carefully one of the possible algorithm they provide.

But what is with the programs I have to use e.g. bank access. Are I'm now getting paranoid?

Donnerstag, November 08, 2007

write my own firefox plugin

As I don't use/like iTunes I download podcast directly from the RSS feed or the web page. Using Save Link As ... of the browser doesn't really work if you download a bulk of podcasts at the same time. So far I copy links by hand into a file and throw this at wget. This works fine. But to optimize this I would like to be able to add the link directly from firefox to the download file.

For this I need write my own plugin. I found the start point on how to write a firefox plugin on lifehacker some time ago.

This are the steps I used to write my plugin. In the lifehacker article and the referenced links you get the details.

create a new profile and set (about:config)
javascript.options.showInConsole = true
javascript.options.strict = true

not found:
nglayout.debug.disable_xul_cache = true
browser.dom.window.dump.enabled = true

install extensions:
JavaScript Debugger
Console
Chrome List
Firebug

Download the example from Mozilla knowledge base as a starting point.
install.rdf: increase the em:maxVersion to the firefox version used
overlay.xul: add the entry for your own context menu entry
  <popup id="contentAreaContextMenu"> 
<menuitem id="yb-context-tagLink"
insertafter="context-bookmarklink"
label="This is my right click"
class="menuitem-iconic"
oncommand="HelloWorld.onContextCommand(event);"/>
</popup>

overlay.js: add the function to be called from the context menu
  onContextCommand: function()
{
var file = Components.classes["@mozilla.org/file/local;1"]
.createInstance(Components.interfaces.nsILocalFile);
file.initWithPath("/tmp/getPodcast");

var foStream = Components.classes["@mozilla.org/network/file-output-stream;1"]
.createInstance(Components.interfaces.nsIFileOutputStream);

foStream.init(file, 0x02 | 0x08 | 0x10, 0666, 0); // write, create if not exists, append
foStream.write(gContextMenu.linkURL+"\n", gContextMenu.linkURL.length+1);
foStream.close();
}

The defined functions are part of an arry initialisation. So don't forget the comma as I did the first time.

Examples on file I/O is on firefox code snippets. Adding an entry to the context menu and getting the URL is from the del.icio.us extension.

Sonntag, November 04, 2007

bittorrent and dht

So far I used Enhanced CTorrent. This client is a cli tool and runs fine on the NSLU2. A few weeks ago I tired to download a torrent but the tracker was never found. I asked a friend if the is able to download the torrent with Azureus. He was able to download the torrent. Therefor I checked the features of Azureus and ctorrent. Dht (distributed hash table) caught my attention.

The only client I found that supports dht and is able to run on the NSLU2 is rtorrent. The dht support is so far not part of the official distribution. A patch to add dht is provided by Josef Drexler.

First download the patch wget http://tk.ttdpatch.net/~jdrexler/dht/dht.diff to see what revision of rtorrent you need. The first time I downloaded the wrong revision as the web page was not updated. Download with svn co -r 987 svn://rakshasa.no/libtorrent/trunk the revision the patch was created from. Or check with svn info if the already downloaded revision is the correct one.

Start with libtorrent:

  • ./autogen.sh

  • ./configure

  • nice -n 19 make

  • make check

  • sudo make install


After this do the same steps for rtorrent. If all works fine apply the patch (patch -p0 < dht.diff in trunk) and build libtorrent and rtorrent again.

add to .rtorrent.rc:

  • dht = auto

  • dht_port = forwarded port

umount: /mnt/backup: device is busy

Could not umount my external USB hard disk. The last time this happened was about a year ago. The paper I used to write down the solution was not around. Ok I could not find the note. Therefore I had to search the net again to find the command to display who is still using the device.

I should start to write down this kind of solutions on my web site. This will result not only in one place to search but also accessible from work and friends.

This block could also be the right place to collect the answers during I try to find the solution. After the problem is solved and I know all steps needed I is quickly transfered onto my web site.

Oh - the answer is lsof.

Dienstag, Oktober 30, 2007

Musik-Streaming

Habe das Debian-Paket icecast2 installiert. Icecast unterstützt mp3 und ogg streaming und ist compatible zu shoutcast (nur mp3).

In /etc/icecast2/icecast.xml alle <xxx-password> auf eigene Passwörter umsetzen. Danach in /etc/default/icecast2 ENABLE auf true setzen und icecast starten.

Umsetzen des mpd von ALSA auf shout streaming. Dazu in /etc/mpd.conf den vorhanden default Eintrag auskommentieren. Das Passwort auf das source-passwort des icecast setzen.
Achtung: bei debian wird im mpd.conf der user auf mpd gesetzt. Diesen auf source setzen, sonst nimmt icecast den Stream nicht an.

Mit mpc ganz normal eine Playlist spielen. Vom externen Rechner mit z.B. vlc einen Netzwerkstrem (http://192.168.1.1:9000/mpd.ogg) zum eingestellten port und mountpoint öffnen.

Der Versuch mit dem slimserver ist bis jetzt gescheitert. Beim starten eines Musikstücks über das Web-Interface werden nur wenige Sekunden abgespielt und beginnt dann wieder von vorne. Mit Quicktime kann ich diese Sekunden sogar hören. Der vlc bleibt stumm.

Mittwoch, Oktober 10, 2007

Wiederinbetriebnahme meines Akai GX-75

Ich wollte mir vor einiger Zeit eine meiner alten Kassetten anhören. Hörte die vertrauten Startgeräusche (Band spannen etc), dann kamen mehr oder weniger sofort die Stopgeräusche. Ein zweiter Versuch brachte das gleiche Ergebnis.

Der Versuch vor zu spulen, war nach 1sec zu Ende. Zurückspulen ging gar nicht. Meine Vermutung war ein gerissener Antriebsriehmen. Immerhin ist dieses Tapedeck über 15 Jahre alt. Mein guter Vorsatz, den defekten Riemen zu entnehmen um ihn als Muster beim nächsten Besuch eines HiFi-Geschäfts dabei zu haben, blieb beim guten Vorsatz.

Ein Zufall brachte mich in München in die Klenzestraße. Dort viel mein Blick auf eine Denon F88, aber dies ist eine andere Geschichte. Im Geschäft viel mir wieder mein Tapedeck ein. Jemand der alte HiFi-Geräte gebraucht verkauft, repariert diese doch bestimmt auch. Die Nachfrage ergab, dass das Durchsehen und Reinigen zwischen 90.- bis 160.- € kostet. Dies war mir zu viel. Ich bekam aber den Tipp, das Tapedeck ohne Kassette zu betrieben und mit einem Wattestäbchen und Spiritus alle Antriebsräder zu reinigen.

Nach abnehmen des Deckels konnte ich sehen, dass keiner der Antriebsriehmen gerissen war. Play brachte die Bandführungsrollen in Bewegung. Der Test nach dem Reinigen mit einer Kasette war aber nicht besser als vorher. Da ich auch die Klappe entfernt hatte, konnte ich sehen, dass sich der Tonkopf und die Andrucksrollen nicht bis zur Kassette bewegten.

Eine Suche im Netz nach diesem Problem brachten die abenteuerlichsten Anleitungen. Was mir einleuchtete war ein verharzen vom Fett in den Lagern. Immerhin hatte ich es für ca. 5 Jahre nicht verwendet. Nach abnehmen der Frontblende konnte ich an den linken Hebel, der den Tonkopf und die Andrucksrollen bewegt. Diesesn habe ich solange von Hand bewegt, bis Play und Stop die komplette Bewegung wieder ohne meine Hilfe konnten. Ein Versuch mit Kassette war nun erfolgreich.

Freitag, September 07, 2007

good book reviews

Finding new books I like is not easy. The reviews you find on amazon are quite digital. And as you don't know what other books they liked or disliked you can't get it in relation to your own taste.

Looking up the review on amazon is more the second step anyway. First you need to know about a new book you like. Looking up the new releases of the publisher didn't help me either.

Than I read about gooreads. In this social network you add your own book list and rate your books. After this you find easily new books you like.

This soundedn good, but
  • the reviews are even worse than on amazon

  • a book may list several times (Paperback, Hardcover, reprint?) - The Eagle Has Landed (Paperback)
    by Jack Higgins has 9 entries

In this state it is of no help and I have to search/wait for the next solution.

Samstag, September 01, 2007

search my blog

Added a firefox shortcut to search my blog with google blog search. At a normal google search the site option limits the search to a web server. In case of the blog search it is called blogurl.

The complete location entry is: http://www.google.com/blogsearch?&num=10&c2coff=1&safe=active&ie=UTF-8&q=%s blogurl:chaotisch.blogspot.com&lr=

Seeing the option num gave me the idea to try this with my normal google search shortcut. Adding num=100 to it worked!

Sonntag, August 26, 2007

buying a iMac?

I like the concept of the new iMac. What I'm a not sure about is the Mac OS X. As I had to switch between system not only over time but also between work and home, I started using programs that run on all platforms.

At this time all platforms for me is Linux, Windows and sometimes OS/2 and IBM 370/MVS. Adding an other OS to this, needs some good reason and all the tools I use 99% of the time. As OS X is based on BSD it should not be a big problem.

First quick draft of the programs I use:

  • zsh

  • emacs - moving more and more to eclipse

  • perl

  • Java

  • mutt

  • ImageMagick

  • ssh

  • mpd/mpc


To add programs as I use them, I will look up the home page and add the tag useprg and osx if it runs on OS X on del.icio.us.

And now some hardware I should be able to use:

  • external USB drive with ext2

  • Palm Tungsten

  • SD card or SD card reader (USB)

  • mobile phone

  • ISDN phone

  • scanner

  • ham radio



Not everything will be usable from OS X directly. Most of this should run in VMware or parallels. Problematic will be the RS232 and IEEE-488 equipment.

eclipse installation

For the update of eclipse 3.2 to 3.3, I downloaded Eclipse IDE for Java Developers from the Europa Packages. Unpacked it into a different folder as 3.2 is located. This enables me to use 3.2 and 3.3 till all the packages I use work with 3.3.

Started the new eclipse and installed all the plugins I used with 3.2.
Help / Software Updates / Find and Install .... Select Search for new features to install. Include all sites into the search. First I selected only the ones I had installed with 3.2.

  • C and C++ Development

  • Database Development

  • Web Standard Tools


Now I installed the plugins I used with 3.2 but which are not part of Europa.

Not installed, because not needed at this time.

Download of eclipse exists for linux, OS X and Windows. None of the installed plugins are OS dependent.

Sonntag, August 12, 2007

what rss feeds should I read?

Quite often you find a blog that looks interesting and you subscribe to it. Not long and you are unable to read all new post a day. Worse if you stayed a weekend of the Internet.

The google reader Trends page will show you how many posts and the percentage you read of a subscription. Also how many posts you starred and shared. There is also a list with items a day (over the last 30 days) and in reverse order the date of the last post.

For me I defined some rules to use the statistics to find feeds I

  • need to read

  • my read if I have some time left

  • could unsubscribe


Process the whole feed in one pass. This prevents me from looking at the same post twice. An entry I've read and found interesting will be marked as read. An article of more general interest to my friends, will be shared. If it is only of interest to one or two, the post will be mailed directly to them.
If I'm in a hurry and not able to read an interesting post complete or need more time to follow all links referenced the post will be stared.
At the end of the feed mark all as read. This will remove the posts from the list and add they as not read to the statistic.

The art of reading feeds like this to keep the list with stared posts near zero.

Regularly you should delete feeds where the number of read posts is under 10%. Or could this number be higher? Lots of posts I'm interested in get posted to several feeds I read.

At this time google reader will display only up to 40 feeds in the statistic and it is not possible to change the order. If you subscribed to more than 40 feeds you can't see the ones you haven't read even one post from :-(
Also missing is the date you subscribed to the feed. As the statistic is for the last 30 days, the numbers are bogus if you subscribed less than 30 days ago.

Donnerstag, August 09, 2007

share files on the net

The ExtremeTech article 5 New Ways to Share Files compares web services that provide storage space. The idea is instead of sending somebody a large file as mail attachment you only send the link.
I'm a big fan of this. At work I get lots of mails with huge presentations as CC. Quite often the subject line tells me that I'm not interested in this mail.

So far I used my own web space to share the attachments or rsynced the files to a friends server. The alternative of this web services is more to tell friends about without a web space and/or computer knowledge.

A quick look at the comparison table gave me the winner: FileCrunch.

  • no login for the recipient

  • no extra client to install

  • storage time 30 days


The recipient will see some advertising before the download starts.
An alternative is YouSendIt. But the storage time is only 7 days. This could be to short in case of an vacation or a delayed download at busy times.

Montag, August 06, 2007

download google video onto my palm

I started to watch Inbox Zero on my PC. Stopped it as I didn't like to watch this 58 minutes inside. But how do I get this google video onto my palm to watch it in the park?
I found a description about linux tools and a d.i.y description.

As I was in a hurry, I followed the diy instructions.

  • went to the google video page

  • pressed the download Windows/Mac button

  • this revealed the link to the gvp file I downloaded

  • used wget to download the url inside


The url was to long to be used as the filename on my windows notebook. Therefore I used -O to name the output file myself.

The size of the downloaded video is 480x360.

In the suggestion area of this google video side lists a lot of educational videos. This looks like to be worth investigating.

optimise firefox useage

del.icio.us
Starting to optimise my bookmark usage with del.icio.us I find my self more and more using firefox instead opera. The reason for this is the del.icio.us Bookmarks extension for firefox. Use this instead of the one you could install during the del.icio.us registration. This makes the del.icio.us usage so much easier. There is nothing comparable for opera (del.icio.us Opera Buttons).

search
One feature I used in opera a lot is the address field search. I didn't know this works in firefox too. Like in opera you right click into the search field and choose Add a Keyword for this Search.... This will add it to your bookmarks and you are able to edit the entry like any other bookmark - as it is only a bookmark. Please find a detailed description in the mozillaZine.

Sonntag, August 05, 2007

personalised homepage

In dl.tv Episode 186 they showed the online todo list and task management Remember the Milk. I'm not interested in using an online calender. I'm not all the time in front of the computer to receive the alarm. OK I could send the alarm to my cell phone but I sink my phone with my calendar any way.
They used Netvibes as the frontend for Remember the Milk. This is a web service providing you with the possibility to create your own personal homepage with an Ajax Drag&Drop interface.
There page looked quite nice with weather, webmail, digg, del.icio.us, rss feeds, ... all arranged in small boxes.

On Friday during my search for a new rss reader I used yahoo's personalised homepage for this. It didn't impress me as a rss feed reader. Using it for some other features is restricted to yahoo services. Also it is slow.

iGoogle is for rss feeds more limited than my yahoo - max 9 instead of max 30 entries for each feed. For most feeds I use a real rss feed reader and would display only some, like traffic news, 10 is enough. For non feeds/news the selection on google is not restricted to google own tools. There are games, calculator, wiki, IM, ... to chose from.

Netvibe allowed me to build my own homepage without an account. This is great to test the service. The design looks better to me than that from yahoo or google. There are as many tools to be added as by iGoogle.

So far I'm not really convinced that I need a personal home page. To keep it clearly laid out the tab features is to be used. So you will end up with a tap for news, one for podcasts, one for finance, ...
But if you use the tab feature of your browser you could get even more. E.g. your personalised bank site in one tab could also be used to instantly buy or sell stocks.
Rss feeds are much better read in a real feed reader. With the google reader it is in a browser tab also.
The only disadvantage I can think of is, if you are using a lot of different computer. Or even more if this computer are not yours and have different settings or browsers installed. On the other hand will you really use a public internet access to log into your personal home page? As you can't be sure what spy ware on the PC is installed and your personal home page will send login information to all registered services, it's to scary to use for me any way.

Freitag, August 03, 2007

rss reader

Bei RSS-Feeds gibt es auch wieder Probleme, wenn man mit verschiedenen Rechnern arbeitet. Zum einen müssen alle Feeds auf jeden Rechner extra aboniert werden, zum anderen gibt es keinen update der schon gelesen Mails.
Ein weiterer Nachteil ist, dass bei längerer abwesenheit Post verloren gehen. Einen eigenen Server laufen lassen, der immer alle Feeds liest möchte ich auch nicht.

Als Lösung bieten sich hier Online-Reader an, die meine abonierten Feeds periodisch abfragen. Diese halten die Posts vor, bis ich mich wieder einlogge. Eine weitere Möglichkeit ist Rmail. Dieser Dienst sendet mir alle neuen Posts als Mail zu.

Von den vielen Online-Reader habe ich mir zum testen erst mal My Yahoo! und google reader ausgesucht, da ich bei beiden Diensten schon einen Account habe und mich nicht extra anmelden muß.

Bei Yahoo kann ich maximal 30 Post für einen Feed anzeigen lassen. Dies reicht bei lifehacker für einen und bei heise für einen halben Tag.

Der google reader gefällt mir hingegen sehr gut. Er ist von der Bedienung her wie ein offline reader. Auch kann ich hier mir nicht nur alle neuen, sondern auch alle Posts anzeigen lassen. Und alle sind hier wirklich alle. Bei twit.tv hat er auch noch ein halbes Jahr alte Posts angezeigt. Weiter bin ich erst mal nicht zurück gegangen.
Bei diesen alten gibt es aber keinen Haken mark as read.

Donnerstag, August 02, 2007

Community-Plattformen

Auf heise online gibt es einen Eintrag vom 01.08.2007 mit Zahlen zu den verschiedenen Social-Networks. In Podcasts aus den USA und Kanada ist ständig die Rede von diesen. Persönlich kenne ich keinen (oder weiß davon) auf einer dieser Plattformen.
Um mal einen Einblick zu gewinnen, habe ich mir noch die Wiki-Einträge durchgelesen.

myspace

facebook

friendster

bebo


Den Nutzen für mich konnte ich nicht erkennen. Mal abwarten, ob irgenwann jemand den ich kenne, mir einen Link zu seiner social-Seite sendet.

Alle Seiten, wie es mir scheint vor allem aber myspace und bebo, sind super Startpunkte auf der suchen nach neuen oder Indi-Bands.

Dann gibt es da natürlich noch die ganzen "wo bin ich/was mach ich" Seiten, wie twitter, jaiku und pownce.

Mit etwas Glück, kann ich die alle aussitzen.

Mittwoch, August 01, 2007

digg - me too

Nachdem digg nun einen extra Bereich für podcasts hat (noch beta), habe ich mich nun doch da angemeldet. Dies ist die beste Stelle um auf einen neuen Podcast aufmerksam zu werden.

Die Rangliste der Podcasts die ich kenne stimmt weitestgehend mit meiner überein. Dies hilft beim erkunden von Podcasts, die ich nicht kenne. Was noch fehlt ist eine einfache Podcast-Verwaltung um neue Podcast einfach zu erkennen. Da es noch kein API für den Podcast-Bereich gibt, kann ich mir da noch nichts selbst stricken - zumindest nicht auf die sanfte Tour ;-)

Reingefallen bin ich beim erstellen meines ersten Kommentars. Dies digged nicht automatisch. Ich konnte/musste die Episode dan nachträglich diggen.

Da der Computer Club 2 noch nicht gelistet war, habe ich den als neuen Podcast eingetragen. Dies war ganz einfach. Ich musste dazu nur den Link zum RSS-Feed angeben und die Kategorie setzen. Mal sehen, wie lang das verfy dauert.


[update 20090520]
Haven't used digg for quite some time, also deleted all RSS subscriptions. Deleted user account.

Sonntag, Juli 29, 2007

PDF und Palm

Habe auf meinem neuen Palm T|X den AdobeReader für Palm V3.05 installiert. Dieser nutzt nicht den ganzen Bildschirm (480x320). Es wird immer die Tastatur eingebelendet und so nur 320x320 Pixel genutzt.

Habe nach einer alternative im Netzt gesucht. Da gibt es leider nicht viele.

  • PalmPDF

  • Documents to Go


Bei PalmPDF handelt es sich um Open Source (xpdf) und stellt die orignal Datei da. Dies macht es unmöglich, diese in einer gut lesbaren Schriftgröße darzustellen, ohne nach rechts und links scrolen zu müssen.

Der PDF-Support bei Documents to Go befindet sich nur in der Premium-Edition. Ich besitze aber nur die mit dem T|X ausgelieferte Version.

undef

Bei perl funktioniert der test auf "undef" nur mit "eq". "==" ist immer true.

if ($storedData{$showname} eq undef)

Donnerstag, Juli 19, 2007

Fugawi - first impression

I'm on the search for a GPS software running on Palm. The SW should be able to use hiking cards from different provider. A friend of mine is using Fugawi. He told me, that it has is flaws but the only alternative TouratechQV is worse. At least in his opinion.

Playing with his system I encountered this negative points:
  • move imported points with elevation will only move L and B if no elevation data is available -> should be set to 0 or so but not lead to a new point with wrong elevation

  • editing an existing route or trak supports only moving a point or delete one adding a new point is not possible

  • was not able to get a recorded trak from the palm onto the PC

  • map on palm only black and white - selected color!

  • importing a map with elevation data (Kompass) or location names (top50) doesn't provide this features in fugawi

Both provide a demo version. I will write down the points I like to test and the next time I've got some days off I will do the test in the Alps.

Mittwoch, Juli 18, 2007

GPS - erste Versuche

Für meine ersten Test habe ich mir die GPS-Maus Holux GPSlim236 . Diese hat den Vorteil, dass diese mittels RS232 oder Bluetooth angeschlossen werden kann.

Die Daten werden mittels NMEA gesendet. Bisher habe ich die Datensätze GPRMC, GPGGA, GPGSA, GPGSV und GPVTG gesehen. Bei GPVTG wird vor dem '*' der Checksumme noch ein 'A' gesendet. Dieser zusätzliche Parameter des Holux ist nicht im Protokoll beschrieben.

Zum loggen werde ich mir selbst ein J2ME-Programm schreiben, dass auf meinem Mobil läuft. Dazu werde ich nur für mich wichtige Daten als binäre Zahl speichern um mit dem beschränktem Platz einige Stunden loggen zu können.











Feldmax decbitsbits chunks
time2400001817 = 24(5) 59(6) 59(6)
Breitengrad906099992727 = 90(7) 60(6) 9999(14)
Längengrad1806099992828 = 180(8) 60(6) <9999(14)/td>
Datum3112991916 = 31(5) 12(4) 99(7)

Zusätzliche Bits brauche ich für Unterscheidung N/S und O/W = 2. Ob ich auch die Höhe speichere hängt vom Platz ab. Die kann ich auch nachträglich aus der Karte bekommen.

Dienstag, Juni 12, 2007

generate my music db

Only a view weeks ago I refreshed my knowledge about lex and yacc by using it for an other project. So I used both to parse my downloaded cddb files. But some files contained additional data I added. This was mostly done for classic CD's. Parsing this free data got very quickly very complicated. Also merging this data with the XML data, I generated ripping the CD (error count from cdparanoia), was nothing I liked doing in C.

Reading the cddb file and converting it with C into XML. Then merging both XML files with perl. Why not use perl to read the cddb file directly?

Could not use CDDB::File as it ignored my additional infos without any notice. Instead of searching this notes by hand I will write my own perl parser.

This will be done in two steps:

simple entries

In the first step the cddb parser and the XML structure will be implemented as if I never had added some additional information. At any time an exception to the expected structure is found this CD will be ignored in the first step.

rest

Rules to handle the additional notes will be added. If the rule will become to complicated the additional data will be reformatted or added by hand into the database.


In the future I will add additional data only in a way the rules added at step two are able to read them.

Donnerstag, Mai 03, 2007

back to blogger?

As I have some trouble using vox I tried again blogger. Ok it too has some disadvantages but the one of vox are much more trouble. At least for me.
  • doesn't work with opera (sometimes during writing the cursor jumps to the begin of the sentence.

  • not able to change HTML code after it got formatted by vox (see only the result)

  • no API to use an external tool (My VOX API Wish List, Vox's Atom API, Flickr, and more


That's it! Entering the two links above got vox so confused, that I had trouble to enter this line. The blog will move back to blogger!

[moved from vox]

Dienstag, Mai 01, 2007

Wie drehe ich ein Foto ohne es zu drehen?

Es gibt zwei Möglichkeiten, wie ein Bildbetrachter ein Bild drehen kann.

1. gedrehtes Bild speichern
+ alle Bildbetrachter bekommen diese Änderung mit
- bei verlustbehafteter Kompression (z.B. jpeg) führt jeder Bearbeitungsschritt zu Informationsverlusten.

2. nur die Information, dass Bild zu drehen ist speichern
+ kein Informationsverlust
- jedes Programm speichert diese Information wo anders -> proprietäre Information

Leider habe ich noch nicht raus bekommen, ob bei den verschiedenen Zusatzinformationen die an Bilder angehängt werden können, es eine Anweisung zum Darstellen des Bildes gibt.


  • EXIF gibt an, wie das Bild aufgenommen wurde

  • IPTC gibt nur an, wer, wann, wo das Bild aufgenommen hat

  • XMP Adobe verwendet dies in neuen Programmen statt IPTC

Welcher Bildbetrachter für meine Fotos?

Seit Jahren verwende ich gqview um mir Bilder anzusehen. Der ist sehr schnell, braucht "keine" Ressourcen und hat als Features genau die, die ich brauche. Nicht mehr und nicht weniger.

  • vergrößern

  • verkleinern

  • 90° nach links drehen

  • 90° nach rechts drehen



Seit einiger Zeit besitze ich nun auch eine Digitalkamera und die Anzahl der damit auf dem Rechner gespeicherten Bilder steigt. Dadurch kamen noch einige neue benötigten Features hinzu.

  • Bildausrichtung merken (Bilder nur gedreht anzeigen, aber nicht gedreht speichern)

  • exif-Daten anzeigen

  • Tags und Kommentare



Einige dieser neuen Features unterstützt auch gqview. Leider könne z.B. die Tags und Beschreibungen nicht von anderen Programmen verwendet werden. Dies hat sich als ein KO-Kriterium für mich herausgestellt. Die Ursache ist, dass gqview selbst keine Bilder zu flickr uploaden kann. Die von mir getesteten Upload-Programme

können aber nicht die Informationen von gqview verwenden. Alles beim uploaden nochmal eingeben ist aber einen nicht so ganz befriedigende Lösung.

kview
Sehr langsam. Zumindest kommt es einem so vor, da das Bild nicht in mehreren Durchgängen erstellt wird.
Die Einstellung "fit screen" arbeitet nicht so, wie ich es mir wünsche. Das Format wird vom ersten Bild bestimmt. Muss ich eins drehen, wird nichts angepasst und Teile abgeschnitten. Erzwinge ich erneut "fit screen" klappt dies, bis wieder ein Bild in einem anderen Format anzuzeigen ist.

kuickshow
Der zeigt beim "fit screen" die Bilder so an, wie ich es mir vorstelle. Leider hat die Übersicht keine Thumbnails. Sieh aus, wie jeder anderer Filebrowser. Im Gegenteil, diese können meist Thumbnails für alle Bilder anzeigen. Hier gibt es nur ein Preview für das aktuelle Bild. Um mal schnell eine Slideshow anzuzeigen ist es ok.
Der Probeweise den exif-Daten hinzugefügte Kommentar ist in keinem anderen Programm zu sehen. Auch merkt er sich nicht, welche Bilder ich gedreht habe.

KPhotoAlbum
Dies macht auf den ersten Blick einen guten Eindruck. Hiermit werde ich jetzt erst mal einige Zeit rumspielen. Es kann Bilder aus der Datenbank zu flickr uploaden. Können Änderungen auch übernommen werden? In beiden Richtungen?




noch nicht getestet:

Montag, April 30, 2007

remove old kernel from debian system

Bei mir füllte sich langsam die root partition. Wie ich feststellte liegt es an den Kernel-Paketen.
Der erste Versuch diese mit dpkg -P linux-image-2.6.18-4-686 zu löschen, führte zu der Fehlermeldung:


dpkg: Abhängigkeitsprobleme verhindern Entfernen von linux-image-2.6.18-4-686:

linux-image-2.6-686 hängt ab von linux-image-2.6.18-4-686.

dpkg: Fehler beim Bearbeiten von linux-image-2.6.18-4-686 (--purge):

Abhängigkeitsprobleme - entferne nicht

Fehler traten auf beim Bearbeiten von:

linux-image-2.6.18-4-686



Durch das Paket linux-image-2.6-686 bekomme ich immer den aktuellen Kernel. Aus Sicherheitsgründen wird der alte aber nicht gelöscht.
Im Falle eines Fehlers mit dem neuen, könnte ich das System nicht mehr booten.
Um trotzdem den alten Kernel zu löschen hab ich Versucht die Abhängigkeiten zu ignorieren. Leider hat weder
dpkg --ignore-depends=image-2.6-686 -P linux-image-2.6.18-4-686 noch
dpkg --ignore-depends=image-2.6.18-4-686 -P linux-image-2.6.18-4-686 funktioniert.
Ich habe die selbe Fehlermeldung wie vorher bekommen.

Die Verwendung von --force-depends (dpkg --force-depends -P linux-image-2.6.18-4-686) hat dann schließlich zum gewünschten Ergebnis geführt.

Nun noch schnell die alten Kernel-Einträge aus menu.lst (grub) entfernt und alles passt wieder zusammen.

Sonntag, April 29, 2007

cddb information

Hatte bisher die cddb-Informationen von freedb.org mittels eines eigenen Scripts geholt.
Dieses hat cddb-tools (von abcde) verwendet. Dies wa ein bash-script und hat nicht in allen Fällen sauber durchgelaufen.
Vor allem wenn mehrere matches gefunden wurde. Dieses Script muß mit dem cd-discid-Ergebnis gefüttert werden. Mit einem zweiten Script (perl) werden dann einige Sonderzeichen umgewandelt.
Da ich nun diese Scripts zu einem zusammenfassen wollte, habe ich mich im apt-cache umgesehen, welche cddb-Tools es noch gibt.
Ins Auge gefallen ist mir dabei das Paket cddb mit dem Tool cddbcmd. Dies finde ich deutlich einfacher zu verwenden als cddb-tools.
Mein neues perl script fragt nun freedb, freedb2 und MusicBrainz gleichzeitig ab.

Mir ist aufgefallen, dass die meißten und neusten Ergebnisse von freedb2 kommen. Werde wenn ich wieder etwas Zeit habe das script so abändern, dass es die freedb und MusicBrainz nur abfragt, wenn nichts in der freedb2 steht. Oder mir das Ergebnis nicht gut genug ist und ich hoffe eine der beiden anderen etwas anderes und besseres zu bieten hat.

Freitag, April 27, 2007

vox edit experience - frustration

backup:
Using debian sid on one of my PC's I'm aware that the system may crash. This is the unstable release of the debian project. Normally I don't do any important work on this system. Normally the system dosn't crash also. But today it crashed as I was writing a longer blogg entry. That is not a problem related to vox. But as it is not possible to do a short save of a backup with vox, I didn't save. And this is a problem of vox.

opera
Using opera to edit a post on vox is not a good idea. As you sign in, you will receive some CSS errors. The login is possible and you are able to write a post. What didnt't work is the spell correction. And this is something I definitely need.

If you press the space bar after the first word, the cursor jumps back to the begin of the line. Jumping to the end of line is not possible. In the editor window no automatic line breaks are done. The line goes on and on . If you look what you've written in the last section you need to scroll.

[moved from vox]

move mutt and fetchmail installation

Habe von der alten Installation einfach die Config-Dateien kopiert:
  • .muttrc

  • .mutt_aliases

  • .fetchmailrc

Danach hat alles bis auf Mails löschen/verschieben (siehe courier) funktioniert.


[moved from vox]

move courier installation

Habe die Config-Dateien nach der Installation mit einander verglichen und nichts gefunden, was ich bei der alten Installation von Hand angepasst hatte.

Gestartet und ich kann mit mutt auf die Mails mittels IMAP zugreifen.

[update] Kann die Mails nicht verscheiben oder löschen. Die Zugriffsrechte der einzellnen Mails schint aber zu stimmen. Keine Ahnung was dies sein kann.

[moved from vox]

Samstag, April 21, 2007

running deamons after installation

Habe jetzt mal mit netstat nachgesehen, welche Dienste laufen. Wie vermutet, waren es deutlich mehr, als "ich" installiert habe. Durch die Provides- und Depends-Beziehungen ist das Installieren eines neuen Programms ein Kinderspiel. Hier zeigen sich aber auch am deutlichsten die Nachteil.

tcp:





00.0.0.0:800.0.0.0:*LISTEN4076/apache
00.0.0.0:1110.0.0.0:*LISTEN2155/portmap
00.0.0.0:1130.0.0.0:*LISTEN4065/inetd
00.0.0.0:7380.0.0.0:*LISTEN2676/rpc.statd


udp:




00.0.0.0:1110.0.0.0:*2155/portmap
00.0.0.0:7320.0.0.0:*2676/rpc.statd
00.0.0.0:7350.0.0.0:*2676/rpc.statd


Hinter tcp port 113 verbirgt sich identd, der über inetd gestartet wird. Dies ist auch der einzigste. Mit openbsd-inetd wurde auch update-inetd installiert. Über update-inetd können andere Packete (Programme) beim installieren automatisch /etc/inetd.conf anpassen. Da ich inetd nur als Sicherheitslücke betrachte (Angreifer bekommt gültige user names des Systems), werde ich diesen deinstallieren.

Dabei werde ich auch gleich inetd durch den von mir bevorzugten xinetd ersetzen. Diesen werde ich zum starten von anderen Diensten verwenden, die ich selbst installiert habe, aber selbst nicht IP ranges einschränken können. Der Server befindet sich zwar hinter einem Router und ist durch NAT vor externen Angriffen geschützt, trotzdem sollte man die Latte so hoch wie möglich legen.

Den apache habe ich erst mal gestoppet. Werde mich mal auf die Suche machen, wie ich über dpkg/apt rausbekommen, wer alles von einem Packet abhängt.

Da ich kein nfs installiert habe, tappe ich noch im Dunkeln wer rpc und portmap verwendet. Auch sind die Ports 732, 735 und 738 nicht in /etc/services eingetragen. Eine erste Suche im Internet hat leider auch nichts ergeben.

[moved from vox]

Mittwoch, April 18, 2007

vox edit experience - after a view posts

pro:
  • Adding a list is easy, as the list icon works for me. On blogger I had to format the list by hand.

contra:
  • missing a preview

  • saving a backup during you enter a longer post is only possible if you "save" the entry as "you"

The "look" of the blog on blogger is more to my taste.

I haven't figured out how to save/copy the entire blog (only what I entered) onto my pc. This is useful as a backup. From all the information I entered here over the time I like to create structured web pages.

[moved from vox]

move postfix installation

config files der postfix installation (debian):

  • dynamicmaps.cf - neues wurde erweitert-> behalten

  • main.cf - keine neuen Parameter -> alte kopiert

  • master.cf - hatte bei alten Installation nicht verändert, werde es auch nicht bei der neuen

  • post-install - Installationsscript, hatte bei alten Installation nicht verändert, werde es auch nicht bei der neuen

  • postfix-files - erste Zeile: Do not edit this file. -> behalten

  • postfix-script - neues wurde erweitert -> behalten

  • sasl - empty dir


Bei der alten Installation gibt es zusätzlich:

  • canonical - alte kopiert

  • canonical.db - neu erzeugt mit postmap canonical

  • saslpasswd - für gmx (in sasl)

  • saslpasswd.db - (in sasl)


Als ersten Schritt habe ich postfix gestoppet. Beim vergleichen der config files ist mir der procmail-Eintrag aufgefallen. Dieser filter spam und sortiert die Mails in meine Maildir-Struktur. Die Schritte für procmail:

  • Maildir im user directory angelegt

  • .procmailrc vom alten Server kopiert


Nach dem ich alles verglichen hatte, habe ich main.cf und canonical vom alten server kopiert und canonical.db neu erzeugt. Dann habe ich postfix wieder gestartet und getestet ob locale mails richtig zugestellt werden.

Ok, der nächste Schritt ist den IMAP-Server zu installieren.

[moved from vox]

install mail on new linux server

Habe debian auf meinem neuen Server (VIA EPIA CN1000) installiert. Ich möchte alle Einstellungen und Mails vom alten Server (AMD 1600) üernehemen. Die betroffenen Programme sind:

  • postfix (MTA)

  • courier (IMAP)

  • fetchmail (pop3 download)

  • mutt (MUA)


Wenn das System so läuft, wie erwartet werde ich die alten Mails einfach kopieren.

Zum vorgehen:

Als erstes sollte ich dafür sorgen, dass alle Mails wieder an der gleichen stelle wie beim alten System landen. Dafür ist postfix zuständig. Um die postfix Installation in einem Schritt durchzuführen, werde ich auch gleich das Versenden über meinen ISP testen.

Danach, dass ich auf die Mails auf meinem Server über IMAP (courier) zugreifen kann.

Bei postfix und couriere handelt es sich um Installationen mit mehreren config files. Da beide auf dem neuen Server einen Versionssprung hinter sich haben, muss ich erst mal testen, ob sich Einstellungen geändert haben.

fetchmail und mutt machen keine Probleme. Hier gab es keinen Versionswechsel und ich kann die alten config files einfach kopieren.

[moved from vox]

Dienstag, April 17, 2007

Setting locale failed after update

After updating my debian sid system quite some programs failed to work. One of the broken one was locale. During the setup of the new packages the following error kept occurring:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "de_DE:de:en_GB:en",
LC_ALL = (unset),
LANG = "de_DE.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

Running dpkg-reconfigure locales gave me not only the same error message but also locales is broken or not fully installed.

One of the dependencies of the new kernel was the glibc. This dependency is for locales now broken, as it requested a exact version of the glibc. This looks like a lot of fun to solve ;-)

[update 20 Apr 2007] glibc settings are changed by the debian team and updating the system solved the problem

[moved from vox]

Sonntag, April 15, 2007

icq client

Wollte auch auf meinem neu installierten debian server einen icq client installieren. Dies sollte wieder gaim sein. Als ich aber den Rattenschwanz (vor allem sound libs) gesehen habe, den dies nach sich zieht, habe ich mich nach einen einfacheren client umgesehen.
Werde jetzt mal centericq installieren und ausprobieren. Hier muss ich den Sound nicht mit installieren, den ich auf einem Server eh nicht brauche.
Als zusatz musste nur libgpgme11 (GnuPG Made Easy) zusätzlich installiert werden.

[moved from vox]

why vox

Immer wenn ich z.B. ein neues Programm getestet hatte, habe ich mir auf einem Zettel aufgeschrieben, was ich alles gemacht habe. Das Problem bestand darin den richtigen Zettel wiederzufinden, wenn ich das Programm nochmal installieren wollte.

Diese Problem habe ich umgangen, in dem ich anfing alles auch im Computer einzugeben. Das dumme ist, dass ich nicht nur einen Computer habe. Diese verteilen sich dann auch noch über mehrere Locations. Damit gab es dann ein neues Problem, das nicht alle PC's alle Notizen hatten, oder zumindest nicht den neusten Stand.

Um dies zu umgehen habe ich angefangen alles auf blogger.com für mich aufzuschreiben. Einiges von dem was ich dort eingegeben habe, erforderte Listen, Tabellen, ... Dies wurde dort vom Texteditor nicht unterstützt und musste den HTML-Code von Hand eingeben. Da ich alle meine Web-Seiten von Hand schreibe ist dies eigentlich kein Problem. Nur ist es mit dem eingeschränkten Text-Editor dort eine Qual.

Erst fing ich an die Texte auf meinem PC zu schreiben und dann in den blog zu kopieren. Als mir dies dann zu umständlich wurde, habe ich ganz aufgehört den blog zu verwenden.

Hinzu kam noch, dass nicht alle PC's am Netz hängen. Dort mußte ich wie vorher auch die Daten von Hand updaten.

Nun habe ich in podcasts einiges positives von vox gehört und wie viel einfacher hier alles ist. Mal sehen, wie ich hier mit dem Editor klar komme. Auch soll hier die Kommunikation mit anderen Tools viel einfacher sein. Dann lass ich mich mal überraschen wie sich vox anfühlt.

[moved from vox]

Montag, Januar 29, 2007

found my "first" remote

The first device I owned with a remote was a Toshiba VCR. This was around 1985 I think. From this remote I found the PCB. As the VCR worked for over 10 years. Instead of bringing the complete device to the Werkstoffhof I keept some of the parts to use them later on for some diy projects.

Again 10 years later I found the PCB of the remote. It's labelled ALPS FA97B2401. Nothing on this in the Internet. But much better the datasheet of the IR controller D6102G is online available.