adrianwalker.org
adrianwalker.org: Random Gutenberg
http://www.adrianwalker.org/2014/12/random-gutenberg.html
Sunday, 7 December 2014. Is a Twitter bot which tweets random sentences from random Project Gutenberg. Offset=%s&filetypes[]=txt"; private static final Pattern HREF PATTERN = Pattern.compile("href= "(http:/ .*) " ); private static final Pattern SENTENCE ENDINGS PATTERN = Pattern.compile("(? Code available in GitHub - random-gutenberg. Posted by Adrian Walker. The code on adrianwalker.org is Public Domain. Please feel free to use, modify and distribute my code in any way you like without any restrictions.
adrianwalker.org
adrianwalker.org: Desktop Upgrade – Part 3
http://www.adrianwalker.org/2015/03/desktop-upgrade-part-3.html
Tuesday, 10 March 2015. Desktop Upgrade – Part 3. With my hardware tested and running well at stock speeds in part 1. 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 key to enable 'Pentium Anniversary Boot'. Really this is just some pre-configured settings to get you started overclocking. Pressing P will gives you the following screen with some clock speeds to choose from:. I like big boosts and I can not lie. Coretemp-isa-0000 Ada...
adrianwalker.org
adrianwalker.org: Lispy Java 8
http://www.adrianwalker.org/2014/08/lispy-java-8.html
Saturday, 9 August 2014. 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:. Function List Double , Boolean ) (List Double args) - Objects.equals(args.get(0), args.get(1) ); env.put("eq? Function List Object , Boolean ) (List Object args) - args.get(0) instanceof List); env.put("null? Function List Object , Boolean ) (List Object args) - ( List) args.get(0) .isEmpty() ; env.put("symbol? Tokens.peek().equals...Val) ...
adrianwalker.org
adrianwalker.org: August 2012
http://www.adrianwalker.org/2012_08_01_archive.html
Sunday, 26 August 2012. Iterate 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. This is simple enough to do in Java 7 using the new. Interface, but I only had access to Java 6 for this project. Similar functionality can be reproduced using calls to native operating system functions using Java Native Access. GotNext) { getNext(); } return file!
adrianwalker.org
adrianwalker.org: June 2014
http://www.adrianwalker.org/2014_06_01_archive.html
Tuesday, 3 June 2014. ECoster.co.uk – free recipe costing website. Is a free and simple recipe costing website for calculating a break down of what your meals cost. Recipe cost calculation - total cost and per serving cost. Ingredients - unlimited ingredients, amount and cost entry. Unit Conversions - standard weights and measures conversions, and also fully customisable. Units - Use the default units or define you own custom measures. Code available in GitHub - recipecosting. Posted by Adrian Walker.
adrianwalker.org
adrianwalker.org: March 2013
http://www.adrianwalker.org/2013_03_01_archive.html
Sunday, 17 March 2013. Properties 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 understand more. If you haven't read the above post already, it definitely worth a read (or two), and makes everything below make more sense, give it a go. Section. A basic properties interface:. Package org.adrianwalker&#...
adrianwalker.org
adrianwalker.org: Desktop Upgrade – Part 1
http://www.adrianwalker.org/2015/03/desktop-upgrade-part-1.html
Tuesday, 3 March 2015. Desktop 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 hardware and my new hardware, with the new kit running at stock speeds and also overclocked. My current hardware looks like this:. Intel Core 2 Duo E8400. Corsair 4GB DDR2 800MHz. Inno3D GeForce 9500GT 1GB GDDR2. Http:/ www.geeks3d.com/gputest/download/. There a...
adrianwalker.org
adrianwalker.org: August 2014
http://www.adrianwalker.org/2014_08_01_archive.html
Saturday, 9 August 2014. 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:. Function List Double , Boolean ) (List Double args) - Objects.equals(args.get(0), args.get(1) ); env.put("eq? Function List Object , Boolean ) (List Object args) - args.get(0) instanceof List); env.put("null? Function List Object , Boolean ) (List Object args) - ( List) args.get(0) .isEmpty() ; env.put("symbol? Tokens.peek().equals...Val) ...
adrianwalker.org
adrianwalker.org: Continued Fraction Database File System
http://www.adrianwalker.org/2014/10/continued-fraction-database-file-system.html
Saturday, 4 October 2014. Continued Fraction Database File System. After reading Joe Celko's. 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 List Model. Detailed in chapter 2 is probably good enough for this sort of task, but that's a bit dull, and the Nested Set Model. From chapter 4 is a cool way of looking at trees which I would have never have thought of. I wasn't taught continued fractions ...
SOCIAL ENGAGEMENT