HTML5 Video Pseudostreaming with Java 7
Adapted from the byte range request servlet code from the The BalusC Code, here is a Java 7 pseudostreaming servlet for playing video using the HTML5 video tag. The servlet takes the name of a video...
View ArticleJava EE 6 Cookbook for Securing, Tuning, and Extending Enterprise...
Java Enterprise Edition is Oracle's enterprise Java computing platform. The platform provides an API and runtime environment for developing and running enterprise software, including network and web...
View ArticleIterate over first n files in a directory with Java 6 and JNA on Linux
I needed to be able to iterate over the first n number of files in a directory, without bringing them all back at once using File.list(). This is simple enough to do in Java 7 using the new...
View ArticleEmail Sky Router Public IP Address with Gmail in Python
As far as I know, Sky Broadband don't offer a static IP address. You're going to want a way of keeping track of your externally available dynamic IP, so you can access your machine from outside of...
View ArticleProperties design pattern and Prototype-based programming in Java
After reading Steve Yegge's post about the properties design pattern and how it can be used to create a prototype-based object system, I thought I'd have a go at an implementation in Java to...
View ArticleSelected Blog Posts Sources In GitHub
The source code for some of my most viewed posts is available in GitHub here:- github.com/adrianwalker Projects currently available:- PostRepositoryProperties design pattern and Prototype-based...
View ArticleLearning JavaScriptMVC Review
Review of Learning JavaScriptMVC coming soon. Available from Packt publishing here: http://link.packtpub.com/hFZPlQ
View ArticleJava Collection Literals
The blog post I've had by far the most feedback on is Java Multiline String. It seems to have found a niche with a few programmers for quickly defining formatted SQL and XML for unit testing. After...
View ArticleRigging the National Lottery (Is Hard)
As I’ve never won the National Lottery jackpot, I’m pretty sure the whole thing is rigged. If you were in charge of taking peoples hard earned cash off of them and redistributing it back to a few of...
View ArticleeCoster.co.uk – free recipe costing website
eCoster.co.uk is a free and simple recipe costing website for calculating a break down of what your meals cost. eCoster.co.uk features:- Recipe cost calculation - total cost and per serving cost....
View ArticleDatabase Backed Map
I wanted an RDBMS backed Map, with it's keys and values immediately persisted to a relational database for use with a properties design pattern for prototype based programming. I'm not sure if it'll...
View ArticleOptimise Your Own Fuckin' Tail Calls
I've heard a few people moaning that Java 8 still doesn't optimise tail calls. Not having programmed in a functional language since Moscow ML at University, I didn't really give a shit, but thought I...
View ArticleFundamental 2D Game Programming With Java Review
Review comming soon(ish). Available to buy here. Downloads From CENGAGESample Chapter - 9781305076532_ch01.pdfDownloads From Indie Game ProgrammingBook Information -...
View ArticleLispy Java 8
After reading Peter Norvig's post (How to Write a (Lisp) Interpreter (in Python)), I thought I'd have a go at doing the same thing in Java 8: Lispy.java package org.adrianwalker.lispy; import...
View ArticleContinued Fraction Database File System
After reading Joe Celko'sSQL for Smarties on representing hierarchies in SQL databases, I wanted to have a go at creating a database backed file system. Representing a file system using the Adjacency...
View ArticleRule 30
Wolfram's Rule 30 is proper interesting, isn't it? Here is a Java implementation: Wolfram.java package org.adrianwalker.cellularautomation; import java.awt.Color; import java.awt.image.BufferedImage;...
View ArticleRandom Gutenberg
Random Gutenberg is a Twitter bot which tweets random sentences from random Project Gutenberg eBooks. RandomGutenberg.java package org.adrianwalker.randomgutenberg; import java.io.BufferedReader;...
View ArticleDesktop Upgrade – Part 1
I've not upgraded my desktop hardware for nearly seven years, so it's time for some new kit. To know how much extra bang for my buck I'm getting, I want to do a direct comparison between my current...
View ArticleDesktop Upgrade – Part 2
My new hardware came and it looks a bit like this: Looking sexyFirst things first - time to rag out my old kit and clean out seven years of accumulated dust.Before: I wish my girlfriend was this dirty...
View ArticleDesktop Upgrade – Part 3
With my hardware tested and running well at stock speeds in part 1 and part 2, it's time to try for an overclock. The Asrock Z97 motherboard detects the G3258 on boot up and prompts you to press the P...
View Article