Note to Sun: I missed being able to do mixins with Java today. Maybe it’s all this playing with Rails, but back in Java-land I had this particular problem and I thought – mixins would solve this. But no go. Not even with JDK 1.5. I guess I’ll just put on my monkey coder hat [...]
Read the rest of this entry »Archive for the 'Dev Platforms' Category
Nov 28
Nov 28
One-to-One relationships with Rails
How to define and populate a one-to-one relationship using ActiveRecord and Ruby on Rails.
Read the rest of this entry »Nov 23
Rip UML straight out of java
I’ve been playing with the idea of taking the UML straight out of java, so I can do multiplatform UML Sketching using basically plaintext . So I went and downloaded UMLGraph and incorporated it into the my build system. So far I like it, but I have a couple of thoughts on it.
Read the rest of this entry »Nov 17
Using Jobs API and asyncExec
Using the Jobs API (Job and IProgressMonitor) you can implement code that will run in a thread and update the standard Eclipse progress monitoring service as you go along in your thread. To create a job, extend from org.eclipse.core.runtime.Job and implement the run method: protected IStatus run(IProgressMonitor monitor) { int steps = 100000; [...]
Read the rest of this entry »Jun 24
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..
Read the rest of this entry »Jun 20
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 [...]
Read the rest of this entry »Jun 20
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.
Read the rest of this entry »Jun 20
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..
Read the rest of this entry »Jun 20
Weblogic: Setting startup username and password
To set username and password on weblogic, add the following to JAVA_OPTS: -Dweblogic.management.username=system -Dweblogic.management.password=weblogic (or whatever the new passwords are)..
Read the rest of this entry »Apr 17
Blueprint Solution: AJAX Autocomplete, RT Form validation and more
The Java Blueprint solutions catalog has added a section on AJAX, describing how autocomplete, real time form validation, progress bars and pseudo-push may work..
Read the rest of this entry »