Tag Archives: Java

Page onload Ajax request in Wicket

A new requirement arrived this week to display a load of statistics on the main page of the application. Simple enough, except that the collection of these statistics from the database took an unacceptably long time to load. As this … Continue reading

Posted in Java | Tagged , , | 1 Comment

Service initialisation with automatic dependency based ordering

Situation The Application Controller of our application initialises all of its services when it itself is initialised. Unsurprisingly, some services must be started before others; for example the Logging service must be started before the Configuration service, which must be … Continue reading

Posted in Java | Tagged , , , | Leave a comment

Attach IntelliJ debugger at application startup

Normally when I want to debug a Java appliaction, I run the application and then connect the IntelliJ remote debugger to the JVM. Today I needed to debug the boot sequence of the application which meant I needed the debugger … Continue reading

Posted in Java | Tagged , , , | 2 Comments

Spinning command line cursor in Java

As a follow-up to my previous article on displaying a spinning cursor to display program activity, I have created a more useful example that could be adapted for use. The original problem was this – I was writing a program … Continue reading

Posted in Java | Tagged , , , , , , , , , | Leave a comment

Spinning command line cursor in Java and PHP

Update: I have created an updated article which describes a multithreaded approach in Java Spinning command line cursor in Java I think I must be really bored this morning, I can’t believe I’m actually blogging this, but it might be … Continue reading

Posted in Java, PHP | Tagged , , , , , | 2 Comments

Syntax error, parameterized types are only available if source level is 1.5

I recently installed Eclipse and all of a sudden my Java applications failed to build with the error: Syntax error, parameterized types are only available if source level is 1.5 After a bit of Googling I figured out that Eclipse … Continue reading

Posted in Java | Tagged , , , , , , | 5 Comments

Java: touch – set file last modified time

I just discovered that I need to touch() a file in Java. It appears there isn’t a way to do this using the standard Java library, so I rolled my own: Just like the Linux command, if the input is … Continue reading

Posted in Java | Tagged , , , , | Leave a comment