August 4th, 2009
How to use tar to copy everything in /usr/local/stuff to remote’s /backup (because I always forget how this is done),
cd /usr/local/stuff
tar cf - . | ssh remote "cd /backup; tar xf -"
Basically, you’re telling tar to tar up everything in your current directory (.) and send it to -, which is standard out; this is piped to ssh, which (once logged in) will send it to standard input of the process it runs, in this case tar.
Other way round:
ssh remote "cd /usr/local/stuff; tar cf - ." | tar xf -
will copy everything from /usr/local/stuff to your current directory.
(Original source: http://macosx.com/forums/unix-x11/16999-piping-tar-datastream-over-ssh.html)
Posted in Bash, Linux | No Comments »
March 10th, 2009
I have to post this because I am so sure I will have forgotten it once I don’t use it for two days:
$ java -cp h2*.jar org.h2.tools.Server
If you are using maven, as I do, the h2 packages reside in PATHTO/.m2/repository/com/h2database/h2/LATESTVERSION/.
The same information may be found at http://www.h2database.com/html/tutorial.html
Posted in Java, maven | No Comments »
September 11th, 2008
I just recently installed a tomcat 5.5 on debian etch and ran into a slight problem. Tomcat was unable to read and/or write files with the default configuration. Tomcat was unable to access logfiles and so, unable to start the webapplications.
A little bit of research brought up an answer to the problem. Source was the Java Security Manager. It is configurable through files in /etc/tomcat5.5/policy.d/ but it can be very tedious, because it you have to di it explicitly for every file. If you are the only one deploying to the server you can also disable the security manager tomcatwide by editing /etc/default/tomcat5.5 and setting TOMCAT5_SECURITY to ‘no’.
Posted in Java, debian, tomcat | No Comments »
January 29th, 2007
Posted in Wrangelkiez | No Comments »
January 28th, 2007
Zumindest war jeder von den Damen und Herren in grün mal ein solches. Schaut man sich dieses Bild an glaubt man auch nicht, dass sich das mal ändern wird. Ich weiß jetzt nicht so genau ob es sich hier um eine Gruppe Erstklässler auf dem Weg zur Schule handelt oder um eine Horde blutrünstiger Ordnungshüter auf dem Weg zur ersten Mai Demo.

Posted in Bizarre | No Comments »
August 18th, 2006
A what? I mean what is born? Ah, yeah.
My all new weblog is born and I am now able to write down all the foolish thoughts I gather a shitload off, so someone may read it or not or whatever. My first intention in starting my own blog is about documenting, whenever I do something that needs documentation. (Great sentence, ain’t it?).
You know sometimes you perform a task and then, you perform the same task again and again.
That’s called learning through repetition.
But some other time you perform a task and it was complicated and you think you really solved a problem AND you don’t have to repeat it over and over again. Thats when you should start documenting what you did. And from writing down one reflects again and may gain immense insight.
Ay captain.
Posted in General | No Comments »