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:

  1. log4j.logger.org.apache.axis2.enterprise=FATAL
  2. log4j.logger.de.hunsicker.jalopy.io=FATAL
  3. log4j.logger.httpclient.wire.header=debug
  4. log4j.logger.httpclient.wire=debug 
  5. 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

  1. <apex:page controller="PageController">
  2.  
  3.     <apex:includeScript value="{!URLFOR($Resource.res,'lib/jquery/js/jquery-1.4.2.min.js')}" />
  4.  
  5.     <script type="text/javascript">
  6.         var jq$ = jQuery.noConflict();
  7.     </script>

Themen:

Development:

Checkout changed files between two revisions from Subversion

I sometimes want to checkout only files that changed between two revisions in Subversion.

A simple shell command can do that easily for me.

Development:

Resolve incoming conflicts with SVN automatically

OK, you might expect that I have the killer tool that really solves merge conflicts automatically, but this one-liner is much simpler.

I sometimes update my local sandbox from the SVN repository and it happens that I get merge conflicts for some reasons. Mainly this happens for XML files that are re-ordered internally although having the same content in fact.

Therefore I regularly face the problem that I could simply solve the conflicts by accepting all incoming versions or by staying with mine.

This one-liner helps here

 

Development:

Themen:

Linux:

Cross Domain Popup opener reload

A couple of days ago I had the problem that I needed to reload the opener from a popup window. Thought that it should be a breeze. Simply call opener.reload() and I'm done.
Far from it!

The parent and popup window have different domains and therefore the Same Origin Policy applies *sigh* The usual hint is using a proxy to circumvent having different domains for parent and child window, but I'm simply not position for doing that.

Themen:

Development:

Pages

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

Syndicate

Subscribe to Syndicate