Harald Pehl

Developer notes written down before they get lost.

Search Using lunr.js

When I moved my blog from Blogger to Octopress back in May 2013, I always missed a powerful and well integrated search feature. Octopress is a static site generator and has no database to be queried for searches. The default search is just a redirection to Google Custom Search. This navigates away from the blog site and comes with Google Ads.

WildFly Dockerfiles

For the last couple of days I have been playing with Docker. In a nutshell Docker is a tool that lets you create images and run so called containers. It uses Linux Containers (LXC) under the hood. What appears to be yet another virtualization solution, is in fact a very lightweight way to setup, manage and run “processes in a box”.

Polyglot DMR

The dynamic or detyped model representation (DMR) is an API to interact with the management model of a running WildFly instance. There’s an Java API available at https://github.com/jbossas/jboss-dmr which is described in the WildFly Wiki. Though the Java API is very rich and powerful it is somewhat hard to write scripts that perform useful tasks like

  • Periodically read the memory and send an SMS / tweet / email when a threshold is reached
  • Rollout a deployment over all servers in a cluster
  • Monitor the state of an application

Send Mails From OpenShift

OpenShift is a great place to host your applications. In this post I’m going to show you how you can easily send mails from your JEE applications running on JBoss. For sending mails I’m going to configure an external SMTP server. Any SMTP server will do, I’m going to use GMail.

HTTP Caching

I recently implemented caching for distinct operations of the HTTP management API in WildFly. As a preparation I did some research on HTTP caching and how it’s best implemented on the server side. A really good introduction is the caching tutorial by Mark Nottingham. I’ll discuss the key points in this blog post.

Web Components

I recently watched Eric Bidelmans presentation on Web Components at Google IO 13. Web Components is an effort to bring true modularisation to web development. For the first time you’ll have encapsulation at the browser level. No more mess with duplicate IDs or mixed CSS style rules.

Moved Blog to GitHub Pages

For over three years I was hosting my blog at Blogger.com. Although publishing was quite easy I never was really happy with the layout and the support for customization.