Monthly Archives: June 2005

developerWorks: CSP for Java Programmers

The CSP for Java Programmers series on developerWorks teaches us how to work with Communicating Sequential Processes, a framework on top of Java’s threading library that allow you to create parallel processes that share objects while avoiding deadlocks. Alas, binary only..

By |June 24th, 2005|Java|Comments Off

Retrieving random lines from a file

A little class to retrieve a random line from a file.

By |June 20th, 2005|CBBTR, Python|Comments Off

Oracle tuning: Using Hints

Every once in a while you will get a query that no matter what you try, it doesn’t use the indices. This is typically because the cost-based optimizer decides that an approach that is slower has a total cost that is lower than using the index and making it faster. To solve this, you would […]

By |June 20th, 2005|CBBTR, SQL|Comments Off

Oracle tuning: Using explain plan

In order to make queries run faster, you should try to have oracle explain to you how the query should be performed. The whole explanation for oracle tuning can be found on the Oracle Tuning guide, but here are the basics.

By |June 20th, 2005|CBBTR, SQL|Comments Off

Java remote debugging options

To activate socket debugging in java, add the following to java_opts:

-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n

Then connect to port 8787 using your favorite debugging tool..

By |June 20th, 2005|CBBTR, Java|Comments Off

Weblogic: Setting startup username and password

To set username and password on weblogic, add the following to JAVA_OPTS:

(or whatever the new passwords are)..

By |June 20th, 2005|CBBTR, Java|Comments Off