scp2here: scp command to here
I usually need to scp stuff from/over-to servers on a regular basis. And here is a function in .bashrc that I use: #function to get the scp path to here function scp2here { user=`whoami`...
View ArticleRuby FIX Message Viewer 1.0
Today I released my Ruby FIX Message Viewer 1.0. This is a command line based FIX message viewer programmed in Ruby. I made it command line because most, if not all, of the FIX logs that I have at work...
View ArticleAuto Install the SUN JDK on Linux
Sometimes (yes it does happen), you need to install the JDK from SUN automatically (without having to answer yes/no to the license). Why? For example in a Kick Start script to auto-install the JDK. And...
View ArticleSimulating dropped packets (aka crappy internets) with iptables
Disclaimer #1 I am not an iptables expert. This tip will work best on your local linux development box where you probably have no iptables rules setup. Do not play around with this shit on production...
View ArticleAn Improved RMI Tutorial with Eclipse
Introduction There are/have-been heaps of remoting frameworks in java, but RMI being part of the JRE/JDK and therefore having no external dependencies is my personal preference for remoting with java....
View ArticleIdentifying which Java Thread is consuming most CPU
I didn’t come up with this. I was shown how to do this by an esteemed college at work. Introduction Most (if not all) productive systems doing anything important will use more than 1 java thread. And...
View ArticleJDK Thread Pool Configuration
Introduction In any non-trivial application of somewhat significant size you will need Executors to background processing or asynchronous processing, task splitting etc. This is where the JDK executors...
View ArticleMother F**k the ScheduledExecutorService!
Thats right! Motherfuck this service. Deep hidden in the javadoc of this magnificent class is this gem “If any execution of the task encounters an exception, subsequent executions are suppressed.”. In...
View ArticleDebugging vs Writing shit
Great quote I saw today: "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug...
View ArticleSome tips on java.lang.OutOfMemoryError: unable to create new native thread
Thats right, the dreaded, java.lang.OutOfMemoryError: unable to create new native thread. I fixed one of these the other day. And I will present to you how I did it. The cause for such errors are...
View ArticleFinding the error in your Comparator’s compare method aka “Comparison method...
If you google the term ‘Comparison method violates its general contract’, you will find some articles on stackoverflow that sort of help. But these didn’t help me because like Forrest Gump, “I’m not a...
View ArticleImprov Theater in Frankfurt
A lot of people ask me where can they learn Improv Theater here in Frankfurt. And I always direct them to the one and only Theater Language Studio Frankfurt. Its the place where I started learning...
View ArticleAdding to svn:ignore properties
SVN properties are an interesting beast. One common use for them is to ignore files that svn should ignore. For example you may want the ‘target’ directory that maven generates to be ignored by svn....
View ArticleThe GOD Data Strucutre
Today I will present to you the pinnacle of software engineering. This is the stuff boys… ehm… peeps. This what we have been looking for these years… a data strucuture so flexible, so effective… you...
View Article