Brian Chapman

RideTop Solutions


Auto load Both Major and Minor Mode with Filetype

13 Feb 2013 - Brian Chapman

I recently switched this blog from Wordpress to Jekyll. I really liked the idea of a pre-compiled web site that I can edit offline and upload with a simple git push (using GitHub’s pages) command. My editor of choice for the site is Emacs. Emacs has major mode for editing markdown and I am already...

Read more ...

Getting Started with AspectJ, Eclipse, and Maven

12 Feb 2013 - Brian Chapman

AspectJ is the de-facto library for using aspect oriented programming (AOP) in Java. I had a difficult time finding a good introduction to AspectJ, including setting it up with Maven and Eclipse, thus the reason for this post. Maven There are two plugins that allow use of AspectJ with Maven: aspectj-maven-plugin (Codehaus) and maven-aspectj-plugin (Apache)....

Read more ...

Parent POM Shortcut in Eclipse

06 Feb 2012 - Brian Chapman

Here is a quick way to navigate to the parent pom file in a maven eclipse project. Hold <ctrl> down while clicking within the <parent> tag. Eclipse will open the parent pom file. This also works with other tags in the pom file. Holding &ln;ctrl> while clicking a dependency will open that dependency’s declaration.

Read more ...

Standard JodaTimeFormats

20 Jan 2012 - Brian Chapman

A quick pass through google didn’t return any resource with a formatted table listing all the standard date-time formats from Joda time’s DateTimeFormat class. So here it is, localized into several locale to show the differences among regions. METHOD NAME LOCALE INPUT DATE FORMATTED DATE mediumDate en_US 2012-01-20T17:00:24.627 Jan 20, 2012 fr_FR 2012-01-20T17:00:24.627 20 janv....

Read more ...