by David Orriss Jr | Oct 9, 2007 | Programming, Ruby
I just saw on the Codegear Ruby newsgroups that a vulnerability on the net/https library was reported. Basically the library doesn’t validate the server certificate CN (Common Name). You can read the details here:...
by David Orriss Jr | Sep 23, 2007 | Mac OS X, Ruby
I saw this article on formatting ruby code for blogs. Nice article, but the code is Linux/KDE-specific. Also, OS X threw an error about the order of the require statements. Being that I use OS X (and so should you) I needed to make a couple of changes to the code that...
by David Orriss Jr | Sep 22, 2007 | Mac OS X, Ruby
Here’s a fun article on the Ruby Forum where someone provided a simple benchmarking utility. Several posters (including me) have run this to see how well Ruby runs on their system relative to other posters. n = 1_000_000 start_time = Time.now for i in 1..n t =...
by David Orriss Jr | Nov 26, 2006 | Java
Within Swing you’re supposed to be able to specify the minimum size for a frame with a simple call. For instance, assume that I made a frame that extends JFrame. Consider adding the following line to the constructor: setMinimumSize(new Dimension(600,400)); This...
by David Orriss Jr | Nov 26, 2006 | Java
[Originally Posted 18-Nov-2005] Here’s a pretty cool trick for Java GUI-app developers. From the O’Reilly Book “Swing Hacks”, Joshua Marinacci and Chris Adamson show how to make transparent windows…...
by David Orriss Jr | Nov 25, 2006 | Java
[Originally Posted 25-July-2004] Most Java programmers know that as of Java 2 release 1.4 a new keyword “assert” has been added. But far less programmers know what it’s good for. Developer Exchange has a great article explaining assertions and how to...
by David Orriss Jr | Nov 25, 2006 | J2EE
[Originally Posted 20-July-2004] TheServerSide.com has a new free book offering from authors Jayson Falkner and Kevin Jones. This new version of their book covers Servlet Spec 2.4, JSP 2.0 and JSTL 1.0. This book covers a wide range of topics from installing J2SE on...
by David Orriss Jr | Nov 25, 2006 | J2EE
[Originally Posted 18-July-2004] OnJava.com has a great article on Aspect Oriented Programming and the Spring Framework. AOP via Spring is done in a very neat and pragmatic approach. No pre-compilers (like AspectJ) needed. Just simple XML configuration of your Spring...
by David Orriss Jr | Nov 25, 2006 | Java
[Originaly Posted 22-June-2004] I knew that Java was gaining ground on C++ in a lot of areas with respect to performance, but this is quite impressive… http://kano.net/javabench/index Note that while the client JavaVM still has pretty bad performance (it’s...
by David Orriss Jr | Nov 25, 2006 | J2EE
[Originally Posted 26-May-2004] This tutorial is a beginner’s guide to developing enterprise applications using the Java Web Services Developer Pack (Java WSDP). The Java WSDP is an all-in-one download containing key technologies to simplify building of Web...