(Click to enlarge)
If you read our recent article about Java 7 getting automatic resource management and were excited to never write boilerplate again, you need to try out Project Lombok.
Project Lombok (created by Reinier Zwitserloot and Roel Spilker) is a annotation processor compiler plugin for javac that provides a handful of very focused annotations for [...]
Project Lombok – Never Write Boilerplate Java Code Again
by Riyad Kalla on 26. Aug, 2010 in Programming
Java 7 Gets try-with-resources Support (Automatic Resource Management)
by Riyad Kalla on 26. Aug, 2010 in Programming
Java 7 is adding support for a new try-with-resources code-block construct that allows the runtime environment to automatically manage closeable resources for you; e.g. streams.
What originally started with a proposal in February of 2009 from Joshua Bloch for try-catch blocks to add the ability to automatically manage resources, eventually turned into a modification to the [...]
Amazing HTML5 Canvas / JavaScript Animation Examples
by Riyad Kalla on 22. Aug, 2010 in Programming
Hakim El Hattab has put together a series of HTML5 Canvas animation examples on his website, hakim.se that are fantastic showcases of how animation-friendly HTML5 is on it’s own without Flash.
Right now the use of Canvas is still relatively new and raw, but as the years tick on and more and more HTML5-capable browsers are [...]
Java IO Faster Than NIO – Old is New Again!
by Riyad Kalla on 27. Jul, 2010 in Programming
Alex Blewitt tweeted an article by Paul Tyma titled: Thousands of Threads and Blocking I/O: The old way to write Java servers is new again. Paul is the Founder/CEO of ManyBrain, the creator of Mailinator.
Paul’s 65-slide presentation is a fast read for anyone interested in Java I/O, especially in a client/server setup. What makes the [...]
CSS3 Pie: Adding Support for CSS3 to Internet Explorer 6, 7 and 8
by Riyad Kalla on 17. Jul, 2010 in Programming
CSS3 Pie (download) is a set of CSS “behaviors” that can be attached to any CSS file by way of the behavior element in order to add rendering support to Internet Explorer 6, 7 or 8 for the more popular CSS3 rendering features:
border-radius
box-shadow
border-image
multiple background images
linear-gradient background images
CSS3 Pie is an open source project (Apache 2) [...]
MongoDB (Single-Server) Data Durability Guide
by Riyad Kalla on 09. Jul, 2010 in Programming
If you are a MongoDB user or just interested in NoSQL databases in general, you may have seen the excellent “MongoDB has poor data durability by default!” (I am paraphrasing) conversation started by Mikeal Rogers.
It is an excellent topic to bring up and regardless of Mikeal’s association (he’s a CouchDB developer) I never once got [...]
@Override Compiler Errors in Play! Framework “Must Override a Superclass Method”
by Riyad Kalla on 07. Jul, 2010 in Programming
If you are working with the Play! Framework and have run into exceptions that read like “The file <MyFile>.java could not be compiled. Error raised is : The method <MethodName> of type <ClassName> must override a superclass method” then you might be wondering if there is a compiler bug in Play! – worry not, it’s [...]
HTML5 Drag and Drop and File API Tutorial
by Riyad Kalla on 04. Jun, 2010 in Programming
Introduction
Over the last day I’ve been trying to learn how to use the new HTML5 Drag and Drop API as well as the new File API. I want to create a really nice drag-and-drop experience for users trying to upload files to a webapp; much like Google just did with Drag and Drop attachments in [...]
IntelliJ IDEA Tip: source release 1.6 requires target release 1.6
by Riyad Kalla on 30. May, 2010 in Programming
If you are an IntelliJ IDEA user and you are using Maven in your project, chances are you may some day run into this incredibly cryptic and confusing message:
Error: javac: source release 1.6 requires target release 1.6
Googling it digs up a few approaches to solving the problem as well as some IntelliJ IDEA bug reports [...]
Use IHeaderResponse.renderJavaScript(CharSequence,String) to Avoid Duplicates
by Riyad Kalla on 05. Mar, 2010 in Programming
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 [...]
Apache Wicket Powers mobile.walmart.com and mobile.wellsfargo.com
by Riyad Kalla on 22. Feb, 2010 in Programming
Update #1: From the same development team that did the mobile.walmart.com site in Wicket also clarified that they finished (last year) the mobile.wellsfargo.com website using Wicket as well. That’s some serious props to Wicket!
I am on the Apache Wicket mailing list and one of the developers (Joachim) on the list wrote in this morning to say [...]
How I Fixed the "Subversion Checksum Mismatch" Issue
by Riyad Kalla on 13. Feb, 2010 in Programming
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 [...]
XMLStreamReader getAttributeValue Bug Returns Null
by Riyad Kalla on 10. Feb, 2010 in Programming
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 [...]
SmugMug Downloader Web Start Link Fixed
by Riyad Kalla on 04. Aug, 2009 in Programming
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.
Did You Know enums Can Define Their Own Methods?
by Riyad Kalla on 20. Apr, 2009 in Programming
… 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 [...]
Explanations of Common Java Exceptions
by Riyad Kalla on 24. Feb, 2009 in Programming
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 [...]
QT 4.5 as LGPL
by Ray Gomez on 20. Jan, 2009 in Programming
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 [...]
Develop using the Play! Framework: The JPA Model
by Ray Gomez on 04. Jan, 2009 in Programming
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 [...]
SmugMug Java API Download Links Fixed
by Riyad Kalla on 29. Dec, 2008 in Programming
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!
Develop using the Play! Framework
by Ray Gomez on 17. Dec, 2008 in Programming
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 updating [...]
The Play! Framework
by Ray Gomez on 17. Dec, 2008 in Programming
In an endless search for efficiently building Web applications, one might stumble upon a new framework called Play! Using enterprise backed Java with a Rails-esque feel, the Play! framework seems to offer quite a bit over traditional web development tools with its straightforward development environment and ease of deploying.
Taken from the website:
The Play! framework makes [...]
JaxaFX 1.0 Released – Not a Great First User Experience
by Riyad Kalla on 06. Dec, 2008 in Programming
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 [...]
Is Java Becoming Irrelevant?
by Riyad Kalla on 15. Nov, 2008 in Programming
Update #1: To clear up any confusion, this article is focused on the business value of Java – it’s ability to control and generate revenue – not it’s value as a language or a technology. So the word “irrelevant” is applied to it’s business value, not if it’s a good technology or not.
Sun Microsystems announced [...]
Setting up Apache Tomcat 6.x and ZK in Ubuntu
by Ray Gomez on 27. Oct, 2008 in Programming
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 [...]
Most Popular
Monkey Has His Way With a Frog
Australian Mom Brings Baby Back to Lif...
Spiders, Scorpions & The Crawlies
Motivational Poster Tuesday
Staring at Boobs Extends Male Life by ...
Insanely Huge Crabs Scare Me
iPhone 3G iOS 4 Jailbreak and Carrier ...
PS3 + HDMI = Black Screen
3G iPhone May Not Work on T-Mobile 3G ...
Google Celebrates 25 Years of the Buck...
Windows 7 - 4GB vs 8GB Performance
Shoot 'Em Up Movie Review
Categories
- Entertainment (218)
- Humor & Fun (599)
- Life & World (396)
- Movies (67)
- Photography (2)
- Programming (83)
- Shopping (65)
- Technology (1116)
- Uncategorized (11)
- Video Games (749)
Stuff we Like
2leep – Sharing the Link Love
Archives
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006


Recent Comments