SoftReference

Please go to Biting Code. There you will find the post that was here, and much more stuff about Java and JVM-based languages.

Comparing SoftReference and WeakReference. Using a Java soft reference to implement a cache.

Go to the full post

WeakReference and WeakHashMap

Please go to Biting Code. There you will find the post that was here, and much more stuff about Java and JVM-based languages.

When in Java strong references are not enough, WeakReference and WeakHashMap could help us to save the day.
Some words on why they are useful and how garbage collector deals with them.

Go to the full post

Simple Logback filtering

Please go to Biting Code. There you will find the post that was here, and much more stuff about Java and JVM-based languages.

Logback filtering by XML configuration and using custom Java classes.

Go to the full post

Loggers and appenders

Please go to Biting Code. There you will find the post that was here, and much more stuff about Java and JVM-based languages.

How to configure loggers and appenders for Logback by XML and Groovy.

Go to the full post

Reloading Logback configuration (with debug)

This post has been moved to Biting Code, my blog dedicated to JVM languages.

The Logback autoscan configuration feature, and how to get debug information from configuration.

Go to the full post

Logback configuration

Please go to Biting Code. There you will find the post that was here, and much more stuff about Java and JVM-based languages.

Logback could be configured using an XML or a Groovy file.

Go to the full post

Changing log level programmatically

Please go to Biting Code. There you will find the post that was here, and much more stuff about Java and JVM-based languages.

Sometimes there are good reasons to go through the SLF4J façade and work on the concrete logger framework. An example based on Logback is showed.

Go to the full post

SLF4J and Logback

Please go to Biting Code. There you will find the post that was here, and much more stuff about Java and JVM-based languages.

How to set up a Java application to use Logback and SLF4J as logging framework.

Go to the full post

The fastest way of not logging

Please go to Biting Code. There you will find the post that was here, and much more stuff about Java and JVM-based languages.

How much are you ready to pay for not logging? There is some costs that are unavoidable, but using SLF4J we can minimize them.

Go to the full post

Getting system properties

This post has been moved to Biting Code, my blog dedicated to Java and other JVM languages.

A few words words on the class Properties and how to get System Properties.

Go to the full post

Configuring JDK Logging

Please go to Biting Code, there you will find the post that was here, and much more stuff about Java and JVM-based languages.

How to configure JUL (java.util.logging), the standard JDK logger facility.

Go to the full post

SimpleLogger for SLF4J

Please go to Biting Code, there you will find the post originally here, and much more stuff about Java and JVM-based languages.

Some talk about NOPLogger and SimpleLogger for SLF4J

Go to the full post

Setting up SLF4J

Please go to Biting Code, there you will find the post that was here, and much more stuff about Java and JVM-based languages.

SLF4J is not a Slartibartfast's nickname, but the acronym for Simple Logging Facade for Java. As its full name elegantly explains, its raison d'être is close to the Apache Commons Logging one, of which it is a sort of successor. The post is about how to make it work in your environment, and how to run a first very simple application SLF4J-aware.

Go to the full post

Cloning a Collection

I moved the content to Biting Code, my blog dedicated to Java and JVM-based languages.

If you want to clone a collection, and what you have is just a pointer to its Collection interface, you have to (safely) downcast it to its actual type.

Go to the full post

Solving linear equations

This post has been moved to Biting Code, my blog dedicated to Java and other JVM languages.

It shows an example of solution of how to solve a system of linear equation by the lineal package of the Apache Common Math Java library.

Go to the full post

Random generators

I moved the content to Biting Code, my blog dedicated to Java and JVM-based languages.

The java.util.Random class makes available a few simple pseudo-random generators. When more refined generators are required, you could check out the ones provided by Apache Common Math.

Go to the full post