SVN: Relocate all subdirectories

I had to change the location of a SVN server for quite some working copies since we migrated from Subversion 1.4.6 to 1.7.1 and change the protocol from svn to http.

for dir in $(ls); do
if [ -d $dir ]; then
echo "Processing $dir";
cd $dir;
url=$(svn info| grep URL | grep "svn://" | sed 's#URL: svn://old-server/path/to/##');

if [ "x$url" == "x" ]; then
cd ..;
continue;
fi;

echo $url;
svn relocate http://new-server/new/path/to/$url;
cd ..;
fi
done

Themen:

Development:

Comment spam

I recently had a lot of comment spam that I removed today.

That reminds me to start blogging again and update my Drupal installation that is really outdated now and needs some work to be up-to-date again.

Hopefully I can add some new content here the next months... Let's see

Adding ant-svnlib to Net Beans

I wanted to add some additional plugins to the ant build for Netbeans to automatically do some tagging if Ivy publishes the file. Fortunately I found a related post that pushed me into the right direction.

You simply have to copy your JARs to


c:\Program Files\NetBeans x.x.x\java\ant\lib\

and that's it.

Themen:

Development:

Moved from EveryDNS.net to freedns.afraid.org

As I already wrote I use EveryDNS.net for my secondary DNS server. Quite a while ago EveryDNS.net was bought by Dyn Inc.

Now the time has come that all the customers are migrated, of course it's not free of charge, somebody has to pay the bill and the secondary DNS service won't be free of charge any longer. The deadline is the 31st of August 2011, so it's seems to be a good time to start looking for something new.

Themen:

Internet:

Axis2 memory leak on redeploy

For quite a while I'm facing the well-known problem of memory leaks while re-deploying Axis2 Webservices on Tomcat and JBoss.

The problem is that you run out of memory, the PermGemSpace in fact, after some redeploy cycles of an Axis2 based Webservice. The only solution is to restart the server to clean up the memory. While this is not too hard on a development machine, it's more difficult on a production server. Although you most probably won't deploy on a production server too often, it's getting on my nerves.

Development:

Themen:

Internet:

minTTY: A usable terminal for Windows

From time to time I get re-bound to an operating system that's not my favourite: Windows. This time it's in the Windows 7 incarnation. OK, I have to admit that there are some nice features, but that doesn't really pays the bill of everything else I have to bear.

What I do at first is to install Cygwin which relieves the pain a bit. Still, I was not really satisfied with Windows command line based shell, it doesn't feel right. There are so many rough edges that it's no fun to use.

Themen:

Development:

Axis2 SOAP message logging

From time to time I want to read the messages that are send from Axis to the endpoint.

The solution is quite simple if you already use a logging framework for your application which you definitely should...

Set some properties in your log4j.properties file and you're done:


log4j.logger.org.apache.axis2.enterprise=FATAL
log4j.logger.de.hunsicker.jalopy.io=FATAL
log4j.logger.httpclient.wire.header=debug
log4j.logger.httpclient.wire=debug
log4j.logger.org.apache.commons.httpclient=debug

Themen:

Development:

add-apt-repository and proxy settings

I always had the problem that the global proxy settings I set for Gnome weren't recognised by

add-apt-repository

. Therefore adding new repository from Launchpad was a pain in the neck.

Themen:

Linux:

Runtime log4j configuration using commons-logging

Since some time I run several instances of the same application on a tomcat server. This is the poor man's approach of multi-tenancy, I'd prefer to change the application to really support multiple tenants, but that'll take some time.

The main problem was that everything was logged in the same log file unless I change the log4j.properties before deploying to Tomcat. I therefore wanted to change the log file location dynamically.

The very small example below shows how to change the log file for a FileAppender while using the commons logging from Apache.

Development:

Convert serialized Apex Object to Javascript Object

I recently had the problem that I wanted to pass a variable from a Visualforce page to a Visualforce component and assign it to the component's controller.

So far so good, no problems at all, but then I wanted the controller's variable to be updated when the variable on the page is changed during a re-render.

The page looks like this

var jq$ = jQuery.noConflict();

Themen:

Development:

Pages

Subscribe to Alles was schnuckelig.eu ist... RSS