Tag Archive | "Java"

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

Friday, March 5, 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...

XMLStreamReader getAttributeValue Bug Returns Null

Wednesday, February 10, 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...

SmugMug Downloader Web Start Link Fixed

Tuesday, August 4, 2009

0 Comments

It looks like on Mac the Java Web Start JNLP file used to launch the SmugMug Downloader had an invalid reference to itself and was failing to load — it seems on Windows this was working anyway.

Continue reading...

Did You Know enums Can Define Their Own Methods?

Monday, April 20, 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

Tuesday, February 24, 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...

JaxaFX 1.0 Released – Not a Great First User Experience

Saturday, December 6, 2008

22 Comments

Please keep in mind I’m wearing my “Joe average user” hat that this platform is suppose to target as a delivery platform (and simplify developer’s lives in the process). I’ll admit that I’ve always had trouble with the Java plugin and Firefox on my old Windows XP SP2 desktop, Windows XP SP3 laptop and my Windows [...]

Continue reading...

Sockso Personal Music Server

Thursday, November 6, 2008

0 Comments

If you have ever wanted to have access to your personal music collection from anywhere on the road Sockso Personal Music Server just might be the answer you were looking for. All that is required for the installation is Java and a Windows, Linux, or Mac box to run the server on. The software has [...]

Continue reading...

Setting up Apache Tomcat 6.x and ZK in Ubuntu

Monday, October 27, 2008

2 Comments

Apache Tomcat is the name in JSP, and you’ll need to get a copy before being able to try out the many cool web applications and frameworks out there (like ZKoss’s ZK). Finding a development need to run JSP pages (and wanting to try out ZK), I decided to get the latest Tomcat version [...]

Continue reading...

ZK 3.5.1 Released – RIA Framework, NetBeans Plugin and Tutorial

Monday, October 13, 2008

1 Comment

This past week ZKoss refreshed their flagship product, ZK, to version 3.5.1. If you haven’t heard of ZK before, it is a very slick framework which was “designed to maximize enterprise operation efficiency and minimize the development cost [with] its groundbreaking Direct RIA architecture. ” Unlike most marketing ploys used to overstate the capabilities of a [...]

Continue reading...

What’s the Best Way to Handle Exceptions?

Friday, October 3, 2008

10 Comments

It seems, given my limited experience, that handling exceptions depends entirely on the context in which you are developing. As a fan of “rules” that can be applied to different scenarios I wanted to hit you guys up and see what the rules-of-thumb were with regards to exception handling. Some approaches to exception handling sort of [...]

Continue reading...

Sun, IBM and Microsoft Host Workshop to Combine VM Efforts

Wednesday, October 1, 2008

0 Comments

Sun recently held a 3-day workshop where technical leads and directors from IBM and Microsoft were invited to join together at the Sun campus to try and work on consolidating Virtual Machine efforts going forward; more specifically focused on developing solutions that would yield Java-like performance for Ruby, Python, PHP, and Scala on the JVM. No [...]

Continue reading...

Using XRuby to Speed up Ruby Script Performance

Wednesday, October 1, 2008

4 Comments

Do you want to squeeze the most performance out of your Ruby scripts? If so, you might be interested in a little project called XRuby. According to the website “in most benchmark tests, XRuby runs faster than Ruby 1.8.5″. Personally, I was a bit skeptical, and you may be too. So let’s explore this [...]

Continue reading...