Dec 282011
 

Get the requisite: AqBanking via Homebrew on Mac OS X:

brew install aqbanking
# ↑ At the time of writing (2011-12-28) this will get you AqBanking v5.0.16

Now set up your ING-DiBa online banking account (needs activated HBCI interface):

ktoblzcheck 50010517 5400040302
aqhbci-tool4 --help
aqhbci-tool4 adduser -N philipp -u 5400040302 -b 50010517 -s https://fints.ing-diba.de/fints/ -t pintan --hbciversion=220
# ↓ not needed for ING-DiBa (but possibly for Sparkasse, VR-Bank etc.)
#aqhbci-tool4 listitanmodes -b <blz>
#aqhbci-tool4 setitanmode -b <blz> -m 911
# ↓ not really needed (done automatically when running getsysid)
#aqhbci-tool4 getcert
aqhbci-tool4 getsysid
aqhbci-tool4 getaccounts
aqhbci-tool4 listaccounts

This will set up your aqbanking settings in .aqbanking/settings/. Now you’re ready to query your transactions:

Dec 272011
 

Calculate the Check Sum for a German Tax ID number using Python:

#!/usr/local/env python
# -*- coding: utf-8 -*-

class CalcCheckCipher(object):
    @staticmethod
    def getCheckCipher( idnrString):
        n = 11;
        m = 10;

        product = m;

        for cipher in idnrString:
            sum = (int(cipher) + product) % m
            if sum == 0: sum = m
            product = (2*sum) % n

        checkCipher = (n - product)%m
        return checkCipher


def main ():
    print("0107249563 -> %s" % CalcCheckCipher.getCheckCipher("0107249563"))

if __name__ == "__main__":
    main()

Resources

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
Dec 212011
 

The REINER SCT cyberJack RFID komfort is a smartcard and RFID card reader popular in Germany as it supports the German identity card and its RFID technology. Here are my notes on the device, some tweaks and how to use it.

Current problems

As of 2011-12-28 I’m having a couple of problems with the device:

  • The electronic money system Geldkarte does not work right now as this needs the SECODER certification which will take some more months.
  • OpenSC seems not to work with this card reader
  • The OWOK loginCard that came with the device is almost useless:
    • winlogin does not work with that card
Dec 202011
 

When trying to install a large software package (haskell-platform and / or ghc) Homebrew didn’t want to continue with the installation because of some strage error. To my surprise, Google didn’t reveal any hints to other users who had this problem too!
Here are the symptoms:

philipp@lion:$ brew install ghc –devel –verbose
==> Downloading http://www.haskell.org/ghc/dist/7.2.2/ghc-7.2.2-i386-apple-darwin.tar.bz2
File already downloaded in /Users/philipp/Library/Caches/Homebrew
/usr/bin/tar xf /Users/philipp/Library/Caches/Homebrew/ghc-7.2.2.tar.bz2
ghc-7.2.2/libraries/haskeline/dist-install/build/libHShaskeline-0.6.4.0_p.a: Write failed
ghc-7.2.2/libraries/haskeline/dist-install/build/libHShaskeline-0.6.4.0-ghc7.2.2.dylib: Write to restore size failed
ghc-7.2.2/compiler/stage2/build/libHSghc-7.2.2.a: Write to restore size failed
[...]

So the unpacking of the downloaded source file produced the problem.

Dec 142011
 

EncFS (on Wikipedia) – a FUSE filesystem – can help encrypt cloud synced folders (using business proof AES or Blowfish algorithms). It operates on smaller blocks (not a single big file) and thus works well with Dropbox, because when only one decrypted file is changed, it won’t upload your whole Dropbox again.

Prerequisits / Installation

Install Fuse4X and install EncFS. If you have Homebrew, this is as easy as:

brew install encfs

Setting Up The Encrypted Dropbox Folder

We don’t want to encrypt the entire Dropbox as we would loose other dropbox features as sharing some files via a public link etc. So we set up an encrypted Dropbox subfolder:

Dec 132011
 

Delete your users’s Dropbox settings and the Dropbox folder itself:

rm -rf ~/.dropbox
rm -rf ~/.dropbox-dist 
rm ~/Dropbox

Also remove the dropbox package installed on your machine:

sudo apt-get remove nautilus-dropbox
VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
Dec 132011
 

If you want to start a certain desktop environment when connecting to a Ubuntu Linux machine running a FreeNX or NeatX NX server, you have to change the command to be run remotely:

For a 2D Unity session:

gnome-session --session=2d-ubuntu

For a 2D Gnome session:

gnome-session --session=2d-gnome

Resources

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
Dec 112011
 

This is an iMacros script to extract transaction details on the online banking website of the German branch of the bank ING-DiBa. As this is mostly interesting to Germans, the following blog post is in German. If you want to read it in English, consider translating it using Google Translate.

Dec 072011
 

You can upgrade Lion’s version of rsync (2.6.9) to 3.x (currently 3.0.9) via Homebrew:

brew install https://raw.github.com/Homebrew/homebrew-dupes/master/rsync.rb

Backing up a remote folder to a local one works like this then:

rsync -avz -e ssh www-data@example.com:/var/www/ /var/www/

Resources

VN:F [1.9.22_1171]
Rating: 10.0/10 (1 vote cast)
Dec 062011
 

google-storage-fs – a solution using FUSE

I was trying this with Fuse4X on Mac OS X:

cd ~/Downloads
git clone git://github.com/richizo/google-storage-fs.git
pip install fusepy
pip install boto
mkdir ~/mountpoint
~/Downloads/google-storage-fs/src/gsfs.py -f ../gsfs.ini ~/mountpoint

I didn’t know what to do when I encountered this problem:

Traceback (most recent call last):
File “./gsfs.py”, line 48, in
class GsStat(fuse.Stat):
AttributeError: ‘module’ object has no attribute ‘Stat’

Somehow this codes seeems to use an older version of fusepy…

Resources

A similar FUSE filesystem for Amazon S3: http://code.google.com/p/s3-simple-fuse

VN:F [1.9.22_1171]
Rating: 4.5/10 (2 votes cast)