Java

Single File Java Challenge

Here's a challenge for you, Java developers. You'd like to write some open source code, but you don't know where to start? You'd like to work on a small and fun coding project, that you can do in a couple of days? You want to take on an interesting challenge, trying to write some nice… Continue reading Single File Java Challenge

Java, Terracotta

Terracotta OSS dev starter

The Terracotta Server Array (TSA) provides the platform for Terracotta products and the backbone for Terracotta clusters. It allows, for instance, to use Ehcache in a clustered mode, and benefit of a distributed in-memory cache. It is available as open source, and you may want to contribute to it, or even just build it yourself… Continue reading Terracotta OSS dev starter

Java, Terracotta

Terracotta toolkit

The Terracotta Toolkit is an API that provides you many functionalities in a clustered manner. E.g., you can get a Clustered ReadWrite Lock, so you can do synchronization between different applications running on different machines/JVMs. In 3.7, you get the Toolkit like this: ClusteringToolkit toolkit = new TerracottaClient("localhost:9510").getToolkit(); In 4.0, you get the Toolkit like… Continue reading Terracotta toolkit

Java

hostname tab completion in your shell

sometimes you work in an environment with hostnames following intricate conventions Thankfully you can enable hostname bash completion: bash add in your ~/.bashrc complete -W "$(echo `cat ~/.ssh/known_hosts | cut -f 1 -d ' ' | sed -e s/,.*//g | uniq | grep -v "\["`;)" ssh zsh add in your ~/.zshrc local knownhosts knownhosts=( ${${${${(f)"$(<$HOME/.ssh/known_hosts)"}:#[0-9]*}%%\… Continue reading hostname tab completion in your shell

Java, Terracotta

Pratiques de caching avançées

Cet article résume les différents points que nous avons abordés (ou pas par manque de temps) lors du hands-on avec Mathilde Lemee (@MathildeLemee). 1) Le mot 'cache' est tiré du Québecquois, cache, qui dénomme originellement l'endroit ou on entrepose des réserves. Il vient du français 'cache' qui désignait l'endroit où on cachait ses réserves (comme… Continue reading Pratiques de caching avançées