Java 7 introduces a flexible thread synchronization mechanism called Phaser. If you need to wait for threads to arrive before you can continue or start another set of tasks, then Phaser is a good choice. Here is the listing, everything is explained...
Last week I wrote about how to create your own JavaFX control, using a DatePicker as an example. What is especially cool is that you can easily change the look and feel of any JavaFX control using CSS. For that purpose, we applied CSS-styles to several nodes...
The very first thing that strikes me as I start writing a personal account of 2011 as it was
is how it has successfully infused some of the transformations in my
regular chores of programming world. It has been different and I am
starting to enjoy some of...
This is part 7 of tutorials for first-time programmers getting into
Scala. Other posts are on this blog, and you can get links to those and
other resources on the links page of the Computational Linguistics course I’m creating these for.
How good is your code? If you’re like the other 80% of above average
developers, then I bet your code is pretty awesome. But are you sure?
How can you tell? Or perhaps you’re working on a legacy code base – just
how bad is the code? And is it getting...
On windows machines I have been using Mailster
for testing email notifications. Unfortunately, I had issues with
Mailster in the past running on non-Windows machines. Thus, on Mac I
have been using a local Postfix instance, which forwarded email to...
Today I’m going to take a clean CentOS 6.0 system and build it up so it runs Apache Tomcat 6 with basic authentication using the DataSourceRealm. You can read more about realm configuration on the Apache Tomcat website.
Personally, I hate the idea of using a desktop as a server in a
production environment. I'm going to define the term "production
environment" first. If you've got an environment, any environment where
the service provided is relied on by...