Duplicity without ssh / Recursive „mkdir“ over sftp (e.g. for Strato HiDrive)

In case of not being able to connect via SSH to external storage device, things can be done
with sftp. SFTP is not able to recursively create remote directories (e.g. „/user/backup/data“).
The following script will do that for you:


TR=/usr/bin/tr
SFTP=/usr/bin/sftp
NAME=user.name


rmkdir ()
{
REMOTEPATH=$1
DIRS=$2

for d in $(echo $DIRS | $TR "/" "n")
do
rmkdirHelper ${REMOTEPATH}/${d}
REMOTEPATH="${REMOTEPATH}/${d}"
done
}


rmkdirHelper ()
{
$SFTP ${NAME}@${HOST} <<-EOT mkdir $1 EOT }

Now you can call the function from your backup script like this:


rmkdir $LPATH $i

Where $LPATH is the remote basepath and $i is the (recursive) directory that should
be created on remote host. (SSH Public Key recommended)


Facebook Like Button iFrame with current page (php)

If you want to include the fb like button by using the iFrame approach
you also may want to refer to the actual (current) page when a user
clicks on the button. In the following I present a simple solution to realize
this for php based sites. For sure it is possible to make this shorter but I
thinks it is better to read (p.s. in total this are three lines, had to wrap
cause of the length of the lines).

 
        

        

        

        '; ?>



Gutscheine: Netcup – Provider mit Qualität (Server & Hosting)

Anbei ein paar Gutscheine (für Neukunden) für den Provider Netcup (netcup.de). Hier findet man alles vom einfachen Hosting, Speicherlösungen bis hin zum Root-Server. Besonders gut gefallen mir dort die virtuellen Server (vServer), die sich von der Leistung und dem Umfang deutlich von anderen Anbietern hervorheben können (z.B. in den Punkten Backup, RAM, CPU, Traffic).

Die Gutscheine (5 Euro, nur Neukunden) einfach beim Bestellvorgang (netcup.de) eintragen:

36nc12984474090
36nc12984474091
36nc12984474092
36nc12984474093
36nc12984474094
36nc12984474095
36nc12984474096
36nc12984474097
36nc12984474098
36nc12984474099

Die Gutscheine (1 Monat Grundgebühr vServer geschenkt, nur Neukunden) einfach beim Bestellvorgang (netcup.de) eintragen:

225nc12984475080
225nc12984475081
225nc12984475082
225nc12984475083
225nc12984475084

P.S. Ich werde den Bestand der Gutscheine regelmäßig aktualisieren, d.h. sollte ggf. ein Gutscheicode ungültig sein, wurde dieser bereits genutzt. In diesem Fall einfach einen andern wählen oder mich kontaktieren (kontakt)


openZIM v1 released

openZIM Document Management System

openZIM has been released in v1.0 at 29th of July 2010 on behalf and
in cooperation with „Courage! DAS NETZWERK FÜR DEMOKRATIE UND COURAGE“.

ZIM: Ziele, Inhalt, Methoden
openZIM: web-based system to create, archive and export (*.odf) ZIM documents in the team
Licence: GPLv3
Demo: online demo
github: openZIM @ github


IT Solutions

WEBDESIGN, ONLINE APPLICATIONS & CUSTOMIZED SOLUTIONS

Design of high dynamic and flexible websites that are characterized by high compatibility on client side. Layouts are all designed for working with all of the following clients:

Google Chrome, Firefox (all actual versions)
MSIE (all actual versions)
Opera, Safari, Konqueror (actual versions)
and some more …

Completely adapting your corporate identity for best recognition. Applying only state of the art technologies for ensuring best sustainability and forward compatibility.

More than websites…!

Integration and/or development of (web) applications completely oriented on the customer needs. Integration and adaption of opensource solutions or development of unique, customized individual solutions.

Java (EE, ME, SE), PHP (Symfony and other frameworks), iPhone (Cocoa Touch), C, C++, C#, Mono, Bash and whatever is needed to build your customized solution …

More than technology…!

In cooperation with experienced graphic and game designers, I can guarantee an appealing design of all created solutions.