Codility.com Demo Test
I like online programming challenges like this demo offered by Codility, it reassures me that I might still be able to think, check it out here:Sample TestThis was my solution:private static int...
View ArticleColdFusion Builder Crack
ColdFusion Builder has been my weapon of choice for writing CFML since it has been in beta and free. Now it's at version 1.0.0, and Adobe has decided to charge $299 for it, I think I'll be going back...
View ArticleColdFusion Head First Design Patterns: Decorator
Continuing in this design patterns series taken from Head First Design Patterns, is a ColdFusion implementation of the Decorator Pattern. Abstract BeverageBeverage.cfc<cfcomponent...
View Articlemap, foldr & foldl higher-order functions in Java
Here are my implementations of some higher-order functions in java, foldl, foldr, map and others. Functionals.java package org.adrianwalker.functional; import java.util.ArrayList; import...
View ArticleGlassFish Security Review
Table Of ContentsGlassFish is Sun Microsystems open source application server. It is a competitor to Jboss AS and Apache Geronimo in the open source arena, and is my app server of choice. Packt...
View ArticleColdFusion Is Dead (To Me)
So as from today I never have to program any ColdFusion again, it feels pretty good. ColdFusion just doesn't knock my frock off, it never did, and it probably never will. This isn't one of those...
View ArticleUsing Ordnance Survey OpenData Street View Rasters With GeoServer
Getting the data The Ordnance Survey OpenData can be downloaded or ordered on DVD from here. I thought I'd order the lot on DVD since its free and it would save my bandwidth and time burning gigs of...
View ArticleMaven, Spring, Hibernate & JPA skeleton project
Today I read that Spring-JPA is the 'dream team' for POJO development. So I thought I'd see what all the hype is about. Here is a skeleton Maven project using Spring, JPA implemented with Hibernate...
View Articlejchannel - a Java imageboard
I love the chans, so I though I'd build my own. jchannel is simple, linearly-directed, forced anonymous imageboard, implemented using enterprise Java, EJB 3.1, JPA/EclipseLink, with a Google Web...
View ArticleMaven Dependency Finder
My friend Mark had an idea for a utility to search a list of your favourite repositories for a given dependency. So I thought I'd code up a version. Maven Dependency Finder is a command line utility...
View ArticleGWT File Upload With Event-Based Progress Bar
File upload with progress bar, and paged file downloads. Adapting the event-based code from Chapter 9 of the excellent book Google Web Toolkit Applications, I coded up a file upload application with a...
View ArticleJava Sleep Sort - For The Lulz
Strictly for the lulz, here is an implementation of Sleep Sort, first seen on 4chan. SleepSort.java package sleepsort; import java.util.Arrays; import java.util.concurrent.Callable; import...
View ArticleEJB 3.1 Cookbook Review
Table Of Contents The Enterprise JavaBeans 3.1 specification is the latest standard from Oracle to further simplify EJB technology. It provides developers with the ability to construct simple and...
View ArticleJava EE 6 Development with NetBeans 7 Review
Table Of ContentsNetBeans is Oracle’s (formerly Sun Microsystems’s) open source pure Java integrated design environment (IDE). Since starting to program in Java I’ve tried a few free IDEs, Eclipse,...
View Articlejboard - yet another imageboard
This time I've kept it super simple - no SQL databases, no EJB containers, no extra features, just a simple imageboard web app which writes to the file system. Image resizing is handled by ImageMagick...
View ArticleHTTP Proxy
Sometimes you just want a simple HTTP proxy without the hastle. HttpProxy.java package org.adrianwalker.httpproxy; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import...
View ArticleJava Multiline String
Here is an implementation of multiline string literals in Java, using Javadoc comments, an annotation and an annotation processor. This method works by annotating a String field with a @Multiline...
View ArticleJava 7 New Features Cookbook Review
Java 7 is the latest major release of the Java Language from Oracle. This release contains a number of language enhancements and new APIs, including better exception handling, new threading mechanisms...
View ArticleFiltered JTree
The solutions (1, 2) out there for filtering a JTree's nodes weren't suitable for me, so I rolled by own FilteredTreeModel class which wraps a JTree's underlying TreeModel and applies a string filter...
View ArticleC Legs
Every now and again I vow to learn C, and now seems like a good time to have another go. My plan for learning C is always the same: Read K&R?Profit Where step 2 might as well be 'Don't use C and...
View Article