There are a lot of GUI tools to process the call stacks for a “thread dump” taken on a running JVM. This is just a command line tool to do it, which is normally where I start troubleshooting when there…
Oracle analytic functions continue to exhibit the coolness factor
Sorry, but I never grow tired of these. We wanted to know the average duration between an online shopper creating their cart and when they actually checked out. Analytic functions make this a snap. select min(gap), bucket from (select submitted_date…
Python dig query
Nothing much, just a script to walk the tree for a given name. It starts at a CNAME and walks its way all the way down to the A record and IP address. In the context of larger script that…
Query HBase from Tomcat
We installed Tomcat 6.0.39 (we weren’t running JDK 1.7), as well as hbase. To get this to work, we copied the following jar’s from the hadoop and hbase installation directories to the tomcat lib directory. -rw-r–r– 1 serengeti serengeti 5212641…
Automated Weblogic versioned app deployment
We had a need to automate deployments with a versioned app. You can place an entry in the MANIFEST.MF for “Weblogic-Application-Version: v14”, or whatever, or you can dynamically assign it at deployment time. What is below will do the latter…
Monty Hall simulation in python
The Monty Hall problem, or paradox as it is sometimes known, has always intrigued me, so much so that I wrote a python based simulator to prove it to be true or false. The crux of it, and as its…