Category: Software Development

Getting Started with Hydra

AddThis recently released Hydra on the open source community, and with my proximity to this technology, I thought it would be a wonderful winter adventure to peruse the code base. After cloning the project from GitHub, I required updating/adding Java 7 to my Eclipse environment. It was a bit more tedious than I expected. I […]

Formatted Number Column in EXT-JS Grid

The standard display of a number in a grid panel contains no delimiters or decimals. If you want to add one, you can apply a renderer to the column. [code language=”javascript”] { header : ‘Total Population’, dataIndex : ‘population’, width:70, renderer : function() { return Ext.util.Format.numberRenderer(‘0,000’); } } [/code] I prefer to externalize this to […]

Quick Assessment of Hibernate Efficiency

Out of curiosity, I ran a test to compare the speed at which Hibernate completes executing HQL vs SQL vs Criteria selections. The results are pretty clear. Running the selection a thousand times:HQL Query executed in 1764 msSQL Query executed in 486 msCriteria executed in 683 ms The results were similar for other total executions. […]

Storing Enum in Hibernate 4

I recently faced a conundrum in that I wanted to use an enum to represent a value saved through Hibernate to a database. I didn’t want to store the name of the enum, rather a discriminator bound as a property of the enum. For example: In this situation, I want the status stored as an […]

Integrating Spring Security pt 3

Injecting Custom Authentication You may recall from my first post in this series that my goal was to use Spring Security to enforce user authentication and authorization through my page while using my custom project Passport. Within Passport, I’ve built user management and an email confirmation component. The first hurdle to overcome was integrating Spring […]

Integrating Spring Security pt 2

In a previous post, I gave guidance on how to start using Spring Security to lock down a web application backed by a MySQL database. I’d like to provide another useful resource, this utility class for accessing the username of the currently logged-in user. This class is helpful for finding the current user logged in, […]

Integrating Spring Security pt 1

Spring Security Coverage In this first part, I’m going to cover integrating Spring Security into a web application to authenticate users stored in a MySQL database. Introduction I’ve developed a project named Passport with which I plan to utilize in any project requiring users. Rather than constantly having to re-write the storage and access faculties, […]

Introduction to EXT-JS

I’d like to provide a quick tutorial on using EXT-JS. This should be helpful for users creating a site from scratch, or looking to incorporate EXT-JS’s features into an existing site. 1. What Else Should You Start? First, download the desired version from Sencha’s website! The releases can be found here. I will be demonstrating […]

Simple Hadoop Overview

As per the Hadoop website: Hadoop is a framework that allows for the distributed processing of large data sets across clusters of computers using a simple programming model. It is designed to scale up from single servers to thousands of machines, each offering local computation and storage. Rather than rely on hardware to deliver high-availability, […]