Author: benk

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, […]

Kevin Slavin: How Algorithms Shape Our World

Great video, worth a watch Kevin Slavin argues that we’re living in a world designed for — and increasingly controlled by — algorithms. In this riveting talk from TEDGlobal, he shows how these complex computer programs determine: espionage tactics, stock prices, movie scripts, and architecture. And he warns that we are writing code we can’t […]