links for 2010-10-06

What’s wrong with 2006 programming? Sometimes applications can do a better job of managing VM than the kernel (tags: programming, virtual memory, paging)

How to fix Syntax Highlighting in Trac 0.11

Trac 0.11 and later uses Pygments to do syntax highlighting, IFF Pygments is installed. However even after installing Pygments, I could not get syntax highlighting to work. While trying to figure this out I noticed the following error in my Firebug Console: jQuery.loadStyleSheet is not a function plus a couple of 404 errors (can’t remember the exact urls). This reminded of a warning I’d seen on the trac website: Important note: Please use either version 1. Read more...

Music|Albums|All Songs|Shuffle

This has been bugging me for ages. My preferred way to listen to my music collection is on Shuffle mode on my iPod Touch. I do this by choosing Music|Albums|All Songs|Shuffle. Within my Music Collection are lots of songs that I have more than one version off, live versions, soundtrack versions, compilation versions etc, and its been driving me crazy that Shuffle was playing each version in sequence. Why would I want to listen to the same song twice? Read more...

View JSON in Firefox

I’ve found JSONView to be an extremely useful add-on for FireFox when developing with JSON based APIs. Its like a JSON equivalent of the XML viewing capabilities built into Firefox. Highly recommended.

Maven and JSR-269 Annotation Processors

The maven-compiler-plugin (as of version 2.1) has not yet been enhanced to cope with some of the changes to the javac compiler introduced as part of JSR-269. One particular snafu I encountered recently is described in this bug report. To repeat what is said in the bug report: With JSR 269, annotation processors are discovered by searching the classpath for a well known file (META-INF/services/javax.annotation.processing.Processor). The contents of this file enumerate available annotation processors (in other words this file is a provider-configuration file). Read more...

Eclipse 3.5 Proxy Issues

Seems there is an issue with using a proxy in Eclipse 3.5. The workaround mentioned here worked for me. In short use a manual proxy configuration but make sure not to configure a proxy for the SOCKS protocol.

Maven, JRuby-Complete and Rake

In a previous post I described how to configure Maven to use JRuby to perform a build using Rake from within a Maven build process. While running that same process on a newly re-imaged windows box I encountered the following error output: jruby: No such file, directory, or command -- rake This confused me for some time, I’m using jruby-complete which packages rake within itself, how could it not be able to find its own rake? Read more...

links for 2009-09-01

Doc’s Rants on Development and Life: Messy Code is not Technical Debt +1 (tags: programming advice wisdom)

Recording API Invocations for Debugging

Today I encountered a problem when using the Oracle JDBC API that only manifested itself in a certain complicated sequence of API invocations. I wanted to understand exactly what the sequence of API invocations was and also be able to extract them, so I could spit them out into a standalone test-case that I could use to debug the problem. Below is a class I whipped up to help automate most of this task. Read more...

Maven, JRuby and Rails Migrations

Here’s how I managed to get Rails Migrations working with a Maven build process, enabling me to leverage Migrations to maintain the RDBMS schema of a Java application. Add JRuby and Database dependencies Add the following dependencies to your pom.xml (adjust for whatever is latest version of jruby and whatever your database is). 1 2 3 4 5 6 7 8 9 10 <dependency> <groupId>org.jruby</groupId> <artifactId>jruby-complete</artifactId> <version>1.3.0RC1</version> </dependency> <dependency> <groupId>oracle</groupId> <artifactId>jdbc</artifactId> <version>11. Read more...
<< 6 of 13 >>
Ⓗ Home   Ⓑ Blog   Ⓐ About