Stubbisms – Tony’s Weblog

July 15, 2008

Ladies and Gentlmen, may I introduce – Pendulum plus Old Snake

Filed under: Music — Tags: , , , , , , — Antony Stubbs @ 11:59 am

Finally some new music! My good friend from Norway introduced to me a band I had heard but didn’t know the name of – Pendulum. Nice happy hard hitting trancy beats.

Aside from that – the sound track to Metal Gear Solid 4 – Guns of the Patriots is great too! The best tune being, of course, Old Snake.

Scala LoveGame enspired Overview presentation

Filed under: Java, Scala — Tags: , — Antony Stubbs @ 2:38 am

These are the slides from the presentation I have been giving on Scala, enspired by the love game – as described in my previous post.

Unfortunatly I still don’t have any video of any of the presentations.

And for the sake of Google, here’s the text from the slide… (more…)

Some serious logging niceness – Logback with Eclipse plugin

Filed under: Java — Tags: , , , — Antony Stubbs @ 12:25 am

I’ve just stumbled upon a new logging framework called Logback – I’d seen it before, but this time, someone I respect was switching to it, and someone he respects wrote an article on it which sums it up pretty nicely.

I especially take notice of the console Eclipse plugin – that’s what has made me download, install and try it out. And so far – nice. Serious nice.

The killer feature of the console plugin being two:

  1. Go to the java class and line where any given logging request was issued by double-clicking on its output line.
  2. Change the output format dynamically whenever you chose to do so.

And just for fun…


package org.tony.nathan.daniel.james;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import ch.qos.logback.classic.util.LoggerStatusPrinter;

public class LogbackJavaTest {

	public static void main(String[] args) {

	    Logger log = LoggerFactory.getLogger(LogbackJavaTest.class);
	    log.debug( "Hello world." ); "interesting info" );
	    log.warn( "WARNING WILL ROBINSON!" );
	    log.error( "I'm sorry Dave..." );
	    try {
		throw new Exception("Holly crapo we're dying!" );
	    } catch (Exception e) {
		log.error( "Something bad happened", e);



package org.tony.nathan.daniel.james

import org.slf4j.Logger
import org.slf4j.LoggerFactory

import ch.qos.logback.classic.util.LoggerStatusPrinter

class LogBackGroovyTest {
	static void main(args) {

	    Logger log = LoggerFactory.getLogger(LogBackGroovyTest.class)
	    log.debug "Hello world." "interesting info"
	    log.warn "WARNING WILL ROBINSON!"
	    log.error "I'm sorry Dave..."
	    try {
			throw new Exception("Holly crapo we're dying!" )
		} catch (Exception e) {
			log.error( "Something bad happened", e)



package org.tony.nathan.daniel.james

import org.slf4j.{Logger,LoggerFactory}

import ch.qos.logback.classic.util.LoggerStatusPrinter

object LogBackScalaTest {

  val log = LoggerFactory getLogger(LogBackScalaTest getClass)
  log debug( "Hello world." )
  log info( "interesting info" )
  log warn( "WARNING WILL ROBINSON!" )
  log error( "I'm sorry Dave..." )
  try {
    throw new Exception( "Holly crapo we're dying!" )
  catch {
    case e => log.error( "Something bad happened", e)
  LoggerStatusPrinter printStatusInDefaultContext


Blog at