Java

No image

Java 8 Lambdas and Method References

Every once in a while we all run across something that it takes a while to get our head around. For me (at least with Java 8) it was some of the syntax regarding the use of method references in functional programming. I didn’t have the slightest problem using lambdas, for example, but I kind […]

Read More
No image

JPA 2.1 Schema Generation – Formatted Output

In my first post on JPA 2.1 Schema generation, I demonstrated how one could use the features built into the JPA 2.1 standard to generate database schemas from your model objects. One minor annoyance of the schemas generated via this manner (at least by Hibernate), is that they don’t really come out completely usable. Specifically: […]

Read More
No image

JPA 2.1 Schema Generation

I’ve used Hibernate as a persistence layer for years. As any of you who have used it probably know, it was the basis for the Java Persistence API, the “portable” version of the Java Object Relational Mapping (ORM) API. Until the advent of version 2.1 of the JPA specification, one of the items that still […]

Read More
No image

Android OpenGL Unit Testing

Every once in a while you go back to your toolbox and discover something shiny you haven’t shown the world before. I have a client who needed some OpenGL work done on Android, which brings up the whole question of how to unit test OpenGL code. I had some support classes for this lurking around […]

Read More
No image

IIOMetadata Tutorial – Part 3 – Writing Metadata

In Part 1 of this tutorial, we went over some background related to the Java ImageIO subsystem and how one could retrieve information about the supported ImageReaders and ImageWriters. In Part 2, we looked at how one goes about retrieving metadata from an image as it is read. In this third part, we will do […]

Read More
No image

IIOMetadata Tutorial – Part 2 – Retrieving Image Metadata

In Part 1 of this tutorial, we went over some background related to the Java ImageIO subsystem and how one could retrieve information about the supported ImageReaders and ImageWriters. In this second part, we will look at how one goes about retrieving metadata from an image as it is read. All the code associated with […]

Read More
No image

IIOMetadata Tutorial – Part 1 – Background

The Java ImageIO subsystem provides convenient methods for Java-based programs to read and write bitmap images. One can load an image in any supported format and then get access to the image data as a BufferedImage, or one can create a BufferedImage, draw to it using a Graphics or Graphics2D, and then save the image […]

Read More
No image

Java Advanced Imaging Downloads

After quite a while away from it, I recently came back to dealing with graphics I/O in Java. At one level, things have gotten much easier in the time I was away – in particular, the ImageIO library is now part of the standard JRE. This means that, for the most part, you can count […]

Read More
No image

Android error: android.permission.INTERACT_ACROSS_USERS_FULL

In developing an application recently, I ran into a very odd error that happened in the release build but not the debug build. The stack trace looked like this: After a bunch of head-banging, it turns out that the android.permission.INTERACT_ACROSS_USERS_FULL part was a complete red herring. The real key in this stack trace is line […]

Read More