Recently, Geertjan Wielenga, Principal Product Manager in the Oracle Developer Tools group, posted a video on his blog showing "14 NetBeans Web Development Tips in 7 Minutes", which showed off several nice tips for the IDE (#1 and #5 are my favorites). If you’re like me, sometimes you don’t have (or don’t want to make) time to watch a video, so I thought I’d make a table.....
If you search for how to upload a file to a JAX-RS 2 endpoint, most suggestions will point you to implementation-specific approaches. While that works, it defeats one of the purposes of a spec: portability. There are some posts out there that will point you in the right direction, though. What I’ll do here, then, is present a clear, portable solution to the problem.
In this example, we’re going.....
I was recently sent a copy of Java EE and HTML5 Enterprise Application Development
by John Brock, Arun Gupta, and Geertjan Wielenga. This is my review of the book.
SY300.jpg" alt="Cover" width="162" height="300"> While this a fairly short book (176 pages), the authors managed to work a fair amount in. As you probably guessed from the title, the book
covers Java EE in the context of an HTML5 application. Given the.....
50 Android Hacks by Carl Sessa is, as you may have deduced from the title, a collection of 50 tips and tricks to help Android developers of all skill levels handle a variety of problems. For the most part, I found the book very helpful. Before I get to that, I have a minor quibble: I’m not sure "hacks" was the best choice of words. I understand the marketing aspect of it, but.....
I recently ran across a couple of pretty cool libraries for creating command-line tools:
Airline from the Airlift project, and
crest from Tomitribe. Having
spent the last few years working on administration for GlassFish, this is an area near and dear
to my heart, so I thought I’d cobble together a quick example using each to see how usable they are.
Before we look at the code, I need to lay out.....
If you’re like me, you have your source code hosted in a hosted environment (such as
Bitbucket), but you have a local continuous integration server
(such as Jenkins). It would be really nice if you could have Jenkins
build your project every time you commit, but without the heavy requirement of polling
your repo. In this post, I’ll show you how to integrate the two to do just that.
The first.....
I’ve been getting a number of bug reports from my app Cub Tracker that had me stumped. I was getting NullPointerExceptions where I shouldn’t be. After some digging, I think I finally found the culprit: device rotation. While rotating the device does, indeed, trigger the error, it goes deeper than that. My problem is that the app doesn’t correctly save the state of the view, which becomes problematic when.....
As is my custom, I want to thank all of my readers, especially those who have joined the discussion, and wish you all a merry Christmas. In all the hustle of the season, it is my hope and prayer that the joy and peace brought to us in the person of Jesus Christ will be an ever-present blessing in your lives.
"...
In trying to come up to speed on Ceylon, I’ve run into some issues with module import dependencies. I’m pretty sure they’re all pilot error, but it was suggested that I import the jars into the Ceylon repository and specify the dependencies between the modules. This would, effectively, be functionally the same as the <dependencies> element in the Maven POM. In classic geek, over-engineer-the-solution.....
Last week at Devoxx, Red Hat announced the release of Ceylon 1.0, "a modern, modular, statically typed programming language for the Java and JavaScript virtual machines." A fan of learning languages, I started taking the tour. In no particular order, and without any lengthy rumination, here are my initial thoughts on the language.
Mixin inheritance
Mixin inheritance looks pretty interesting. While I’m no Scala expert, it strikes me as being very similar.....