Java

Creating a Build Number With Ant and Subversion

I’m on a hot streak tonight… Another comon problem that I have had to solve recently is how to attach a build number to files that are being generated out of an Ant build script. We have developed a versioning scheme (inspired by http://geekswithblogs.net/emanish/archive/2006/09/25/92219.aspx) for our releases where our release are named <major>.<minor>.<revision>.<build>. So a… Read more Creating a Build Number With Ant and Subversion

Philly JUG Presentation on Using JRuby

Last night I presented an Introduction to JRuby at the Philadelphia Java Users Group.  My goal was to introduce Java programmers to Ruby and get them to how features of the language allowed for functionality and code structure that is not possible in Java alone.  While I did talk about Rails at the end, my point… Read more Philly JUG Presentation on Using JRuby

Why Ruby’s Mixins Gives Rails an Advantage over Java Frameworks

Much has been made over Paul Graham’s famous posting about how Lisp gave his startup Viaweb an advantage over the competition.  Graham’s thesis is that there are features in the Lisp language that could be leveraged to make his programming team more productive and better able to respond to customer needs. The idea that a programming language will… Read more Why Ruby’s Mixins Gives Rails an Advantage over Java Frameworks

Presentation on Using the Embedded JBoss Container

Gave a presentation tonight to the Philly JBoss Users Group about using Embedded JBoss. For the unaware, Embedded JBoss allows a developer to embed much of the functionality of the JBoss application server (EJB, Messaging, JNDI, Security, Transactions) in another application.  A great use for the technology is in the creation of unit tests that… Read more Presentation on Using the Embedded JBoss Container

Scraping Dynamic Websites Using JRuby and HtmlUnit

Scraping static web sites to verify functionality or to access data has been around as long as there has been a web (example of scraping of a static web page with Ruby).  But with the advent of AJAX and other techniques that use JavaScript to dynamically insert HTML into a web page, scraping has gotten more… Read more Scraping Dynamic Websites Using JRuby and HtmlUnit