Archive | Programming RSS feed for this section

Use IHeaderResponse.renderJavaScript(CharSequence,String) to Avoid Duplicates

5. March 2010

0 Comments

Apace Wicket Quick Tip
If you are working with multiple AjaxEventBehavior’s (like AjaxFormSubmitBehavior and AjaxFormValidatingBehavior) on similar components in a Page and you are using IHeaderResponse.renderJavaScript(CharSequence) it’s possible you are contributing duplicate JavaScript over and over again to the header section of your Page unecessarily.
As it turns out, by simply changing to use the IHeaderResponse.renderJavaScript(CharSequence,String) method (providing [...]

Continue reading...

IntelliJ IDEA 9 Subversion Functionality Is Buggy as Sin

21. February 2010

0 Comments

I already blogged about running into problems with IntelliJ 9’s SVN operations once before, and here I am again, unable to check a goddamn thing into my repository because it’s done it again “Checksum mismatch while updating…”
Previous to this error I tried to commit 10 changed files that had a refactored common method in them [...]

Continue reading...

How I Fixed the “Subversion Checksum Mismatch” Issue

13. February 2010

1 Comment

From where I’m standing SVN seems to bring with it a lot of the issues that CVS had with regards to “too much” changing on your local disk and then that getting you into trouble when you went to check it into the repo.
I never figured out why exactly CVS would frequently balk at this [...]

Continue reading...

XMLStreamReader getAttributeValue Bug Returns Null

10. February 2010

0 Comments

I’m documenting this issue (and fix) here for anyone else Googling for an answer. I just did for about an hour and found no answer, but instead stumbled across the solution.
If you are using anything from the javax.xml.stream packages in Java 6 or later, you are using the Sun Java Streaming XML Parser (SJSXP) implementation [...]

Continue reading...

Did You Know enums Can Define Their Own Methods?

20. April 2009

4 Comments

… I sure as hell didn’t, but found myself in a position the other day where I was thinking “Damn, I wish I could define a common method in this enum that I could call and not have to write another utility method…” Well, ask and ye shall receive… or something like that.
Here’s the enum [...]

Continue reading...

Explanations of Common Java Exceptions

24. February 2009

0 Comments

Huge thanks to Marc Chung for sending along this great reference. It’s a breakdown of all the JDK exceptions and textual descriptions of what they represent — so if you are designing your own API or just working on your own app and want to make sure your use of particular exceptions (e.g. IllegalArgumentException) is [...]

Continue reading...

Beginners Guide to Quick File Listing Using Ruby

25. January 2009

2 Comments

As a beginner to the Ruby language, I often found myself needing feedback listing which files are in a given directory. Ruby, for that reason alone, has been a quick savior. A couple of Google searches on this topic will land you somewhere near the Ruby class Dir. Dir is a part of the [...]

Continue reading...

QT 4.5 as LGPL

20. January 2009

0 Comments

If you haven’t heard yet, there is good news on the application development platform front. Recently Qt Software, owned by Nokia, announced that the next version of their flagship product, QT 4.5, will be distributed under the LGPL. Prior to this announcement, the platform was free for open source use, while the price of a [...]

Continue reading...

Ruby 1.9 Quick Speed Test

4. January 2009

3 Comments

It has been a while since I’ve had a chance to play with Ruby, and with 1.9.1 coming out in January I figured I’d go ahead and install 1.9 to get a feel. 
Since speed was always an issue in 1.8 I figured I’d re-run my fib.rb script to find the fibonacci number for 35.  [...]

Continue reading...

Develop using the Play! Framework: The JPA Model

4. January 2009

3 Comments

A couple weeks ago I wrote an article on a fantastic framework called Play!. I want to revisit the project I created with the framework and introduce one of the coolest features that Play! has to offer: the use of Persistence through their JPAModel. I’m going to modify the CarLot application (Download ZIP) to [...]

Continue reading...

SmugMug Java API Download Links Fixed

29. December 2008

0 Comments

Guys, sorry for the SmugMug Java API Download links being broken for a bit, I did an upgrade and forgot to update the paths. All the download links have been fixed.
Thanks for using the API!

Continue reading...

Develop using the Play! Framework

17. December 2008

5 Comments

Not too long ago I posted an article on the Play! framework. The framework has some promising features that really helps develop web applications in Java. To show how easy it is to use, I wanted to demonstrate with an example.
Update #1: Since the article posting there have been a couple of suggestions for [...]

Continue reading...