Category Archives: software

Simple client-side validation with JSF and Primefaces

The conventional wisdom for JSF seems to be that server-side form validation is good enough and client-side validation should be avoided. Even if your component library makes it relatively easy, raw javascript is hard to maintain in a jsf environment, … Continue reading

Posted in software | 1 Comment

Setting up an Android ContentProvider with a join

Android’s ContentProvider and related APIs allow for joins, but you usually just see simple single-table reads being used. I assume most people just create big denormalized tables in Android, but I still wanted to try out a content provider based … Continue reading

Posted in software | 2 Comments

Developer-Driven Database Design

Databases designed and maintained collectively by teams of developers using┬ámostly migration tools and ORMs display certain defining characteristics: All columns except for primary keys are nullable. No indexes except on primary and maybe foreign keys. Lots of bit columns. ‘Type’ … Continue reading

Posted in software | Leave a comment

Setting up Puppet on Windows

Our system configuration strategy consists mainly of saved VMs, a hodgepodge of scripts and notes scattered about, a lot of manual effort, and good intentions. We have a mixed linux/windows environment so we’ve never been sure if the new DevOps … Continue reading

Posted in software | 9 Comments

Configuring Spring Integration channels without XML

I’ve been looking at some messaging frameworks lately and trying to find something that’s not too obtrusive. Spring Integration seems straightforward, plays nicely with our other Spring stuff, and runs in your application, which is a plus for us, but … Continue reading

Posted in java, software | Tagged | 4 Comments

Adding more users to your EC2 instance with IAM

Amazon makes it easy to try out AWS with a free micro instance. As you start using it more, one of the first things you might want to do is let others have access to your instance. Using the IAM … Continue reading

Posted in cloud, software | Tagged | Leave a 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

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