First Look At Drools Planner
Drools Planner is a sub project of the Drools project that started 4 years ago as Drools Solver. Drools Planner is focused on “NP complete” planning problems where a solution is hard to find, but easy...
View ArticleMemory Use In Java
When you run a Java application, there is usually a fixed maximum amount of memory which is available. This is usually 64 megabytes of memory. So if you run a java program from the command line like...
View ArticleUsing PDF Files In Unusual Ways
One of my favourite features of the PDF file format is it’s flexibility. It goes way beyond a document format, it offers lots of interactive features, Javascript, and you can actually use it to develop...
View Article4 reasons to upgrade to IDEA 10.5 for your Java coding
Jetbrains have released version 10.5 of their commercial Java IDE. I currently use version 10.0 so was intrigued to see what a 0.5 update meant. I downloaded it to try. Here are my first impressions:-...
View ArticleTurn a Jar in to a Mac app complete with Installer
We have a few different examples packaged up in JPedal that can be started by setting system properties with the -D flag from the command line. I thought it would be interesting to get these to run in...
View ArticleMethod Overloading
One great question on StackOverflow is essentially, “What is method overloading for?” Method overloading, or function overloading, is a feature in some programming languages that allows multiple...
View ArticlePDF Security (Passwords and Certificates)
Access to PDF files can be secured so that not anyone can open them. This is achieved by encryption – the bytes int PDF file are actually scrambled using a unique key – you will need a key to convert...
View ArticleJava And Anti-aliasing
Anti-aliasing is the processes of making the edges of lines on shapes or text less jagged. This is done by fooling the eye – intermediate pixels are added to smooth the color transition. So you might...
View ArticleDF to HTML5 Conversion – Transparency and Images
One of the powerful features of the PDF file specification is the support for transparency in the Canvas. When an image is drawn on the page, the image can have an alpha setting which defines how...
View ArticleAn Overview of the Java Variable Scope
Scoping can be thought of as “the extent of information hiding.” In other words, scoping tells you where variables and methods can be seen from. Java has a neat approach to this that is both expressive...
View Article