Category Archives: software

Book review: Programming Amazon EC2

Amazon Web Services is a vast ecosystem and Programming Amazon EC2 by Jurg van Vliet and Flavia Paganelli strikes a nice balance between explaining general concepts and providing practical coding examples. It’s a great way to get started with EC2. … Continue reading

Posted in cloud, software | Tagged | 1 Comment

Adding an https connector to embedded Tomcat 7

The api to add https support to an embedded tomcat server follows the corresponding server.xml elements pretty closely. For example: Connector httpsConnector = new Connector(); httpsConnector.setPort(443); httpsConnector.setSecure(true); httpsConnector.setScheme(“https”); httpsConnector.setAttribute(“keyAlias”, keyAlias); httpsConnector.setAttribute(“keystorePass”, password); httpsConnector.setAttribute(“keystoreFile”, keystorePath); httpsConnector.setAttribute(“clientAuth”, “false”); httpsConnector.setAttribute(“sslProtocol”, “TLS”); httpsConnector.setAttribute(“SSLEnabled”, true); … Continue reading

Posted in java, software | Tagged | 6 Comments

Upgrading Maven 2 to 3

Maven 3 doesn’t have a huge number of visible improvements over Maven 2, but upgrading is easy and doesn’t pose a large risk. We encountered only a minor number of problems in the upgrade, the biggest ones related to how … Continue reading

Posted in java, software | Tagged | 3 Comments

Nagging is a process smell

Every office I’ve ever worked in has had both a messy kitchen and a kitchen scold who hated the messiness of the kitchen. They put up signs on the microwave about your mother not working there and they send out … Continue reading

Posted in ruminations, software | Tagged | Leave a comment

Building Flex 4.1 projects with Maven and Flexmojos

Adobe relies on ant for its main flex build tool, but Sonatype now has a very functional Maven 3 plugin. It’s still in beta but seems stable enough, and it has the usual advantages over ant. To try it out, … Continue reading

Posted in flex, software | Tagged , | 7 Comments

Developing for the Blackberry Playbook with Flex

In early March, I noticed RIM’s offer to develop an app for their new tablet, sportily named ‘The Playbook’, by March 31 to win a free device. Because I wanted to try out Adobe’s new 4.5 mobile SDK anyway and … Continue reading

Posted in flex, software | Tagged | Leave a comment

How to find a file’s image type by looking at its bytes (in Java)

Byte arrays and byte streams get used a lot in java, but it’s rare to do anything with individual bytes. Many file types start with certain bytes, though, and can be quickly identified by them. In my case, I had … Continue reading

Posted in java, software | Tagged | 6 Comments

Tomcat and Servlet 3.0 Web Configuration

Tomcat 7 is now in production, and one of its new features is support for Servlet 3.0. Servlet 3.0 is…well, hard to remember what’s in there. But actually, it does have some ease of deployment features that open up the … Continue reading

Posted in java, software | Tagged | 3 Comments

Building a new computer

Somehow I had managed to get this far in life without ever having assembled my own computer. Sad, but true. But when my 5-year-old Dell kicked the can a few weeks ago, I had a good excuse. Planning After looking … Continue reading

Posted in ruminations, software | 2 Comments

How to create QR Codes in Java

Bar codes aren’t just for cereal boxes any more. 2-D barcodes like QR Codes are easily read by smart phones and are showing up everywhere from magazines to restaurant fronts to business cards. With some of the open-source libraries out … Continue reading

Posted in java, software | Tagged | 16 Comments