Skip to content

My Thoughts

SSL

Perhaps some of you may have noticed that my webserver is SSL enabled quite a while. The Root CA is from CAcert.org. You can download it here.

Read more →

January 31, 2014

TMan-1.01

Found a bug which prevent TMan from startup if you have configured a bike. If you have trouble starting the new version, reinstall this app.

Read more →

January 24, 2014

TMan-1.0

This is my first release of my new Android app. It is a trainings manager for Trainingsverwaltung on Rennrad-News.de, a german bicycle forum. With this app you can upload your driven routes. Currently it only supports uploading and analysing your routes. The API don’t give me anything to modify or download the existing units. It is only in German, because the trainings manager on RRN is German too. If I get enough donations (at least $25), I will publish this app to Google Play. But for now you have to use this insecure version from my homepage

Read more →

January 22, 2014

Copy flash videos to disk the second encounter

As of Google discontinues the support of NPAPI in April 2014, I experimented with the new pepperflash. My old skript for saving flash videos to disk doesn’t work anymore with this plugin. So I looked a bit around in proc and found out, that there is still a chance to get our videos back: FPID=`lsof|grep Pepper|grep deleted|awk '{print $2}'|uniq` DATE=`date +%y%m%d` HOME=/your/home/dir USER=yourUser GROUP=yourPrimaryGroup VDIR="$HOME/video" rc=1 count=1 while [ $rc -eq 1 ] do mkdir $HOME/video/v-$DATE rc=$? if [ $rc -eq 1 ] then mkdir $VDIR/v-$DATE-$count rc=$? let count=count+1 fi done CDIR=$VDIR/`ls -tr $HOME/video/|tail -1` chown $USER:$GROUP $CDIR for FD in `ls -l /proc/$FPID/fd/|grep deleted|awk '{print $9}'` do cat /proc/$FPID/fd/$FD > $CDIR/$FD.flv chown $USER:$GROUP $CDIR/$FD.flv done The disadvantage ist, you need root access. It looks like the file descriptors could only be accessed by root. I’m using sudo to execute this skript. Works like a charme for me.

Read more →

January 19, 2014

Windows 7 Backup 0x80070002

Today I encountered a problem with Windows 7 Backup & Recovery. I was not able to backup anything on my computer. The Windows 7 Backup fails with error 0x80070002 - file not found. After a long search I found that there is a misconfiguration in the registry. In Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList the active profiles are listed. It appears that I have deleted some of those profiles from C:\Users manually without removing them from registry. After deleting those keys I was able to start the Windows Backup normally

Read more →

December 3, 2013

Twitter

From now on all my posts will be published on Twitter. So you can follow me and never miss any updates

Read more →

October 8, 2013

Find files by date

An easy way to search for files within a daterange: $ touch --date "1970-01-01" /tmp/start $ touch --date "2038-01-19" /tmp/end $ find /location -newer /tmp/start -not -newer /tmp/end

Read more →

October 1, 2013

Multiple SSH Keys

Sometimes I need to generate passwordless authentication via ssh. So here is a little tutorial: # On local machine: $ ssh-keygen -t rsa -f ~/.ssh/id_rsa_remotemachine $ scp ~/.ssh/id_rsa_remotemachine.pub user@remotemachine:.ssh/ $ echo Host machine >> ~/.ssh/config $ echo IdentityFile ~/.ssh/id_rsa_remotemachine >> ~/.ssh/config $ echo User user >> ~/.ssh/config # On remote machine $ cat ~/.ssh/id_rsa_remotemachine.pub >> ~/.ssh/authorized_keys Now login should work with “ssh remotemachine”.

Read more →

October 1, 2013

Downloads

There was a problem with my downloads. Fixed it and now it should work again

Read more →

September 28, 2013

Calculate with zsh

An easy calculator for the z-shell. Insert into ~/.zshenv: zcalc () { print $(( ans = ${1:-ans} )) } Some examples: % zcalc 5/2 # Division with integer 2 % zcalc 5.0/2 # Division with floating point 2.5 % zcalc "5*2" 10 % zcalc 5%2 # Modulo Operations 1

Read more →

August 15, 2013