The bash prompt can be adjusted to ones needs, see this manual page. For example, you can display the current user, directory and time. The Ubuntu default prompt looks like this: PS1=’${debian_chroot:+($debian_chroot)}[\033[01;32m]\u@\h[\033[00m]:[\033[01;34m]\w[\033[00m]\$ ‘ It is also possible to add the
PV Display
PV Output Display is an Android app to view data on the PV Output website. You can view live solar panel data and browse through historical data. The data is presented in five different tabs in both graphical and tabular
Monitoring hosts with CollectD, InfluxDB and Grafana
In this article we will install a monitoring solution on CentOS 7 consisting of CollectD, InfluxDB and Grafana. The first step is to install CollectD: yum -y install epel-release yum -y install collectd At the time of writing, this resulted
Serialize and deserialize a list of polymorphic objects with GSON
GSON is a great Java library for serializing and deserializing objects to and from JSON strings. When you have a list of polymorphic objects you want to serialize and deserialize, things get a bit more difficult. You have to tell
Storm in pictures
We’ve been using Storm for some time now. It is quite easy to start using it in a local environment (e.g. your IDE), but it can be a bit daunting to install a cluster and then really understand what Storm
Changing the number of columns in WordPress dashboard
The latest version of WordPress sets the number of columns in its dashboard to 4. This gives ugly results with some plugins that expect more horizontal room for their content, such as the Google Analytics plugin. Until the WordPress team
Getting metrics from the Java Virtual Machine (JVM)
Sometimes it is useful to see what the Java Virtual Machine (JVM) is doing when it is running your program. In this blog we will see how to get metrics about memory, buffers, threads and the garbage collection (gc) process
WebSocket tutorial with Java server (Jetty) and JavaScript client
WebSocket is a web technology providing full-duplex communications channels over a single TCP connection. WebSocket is designed to be implemented in web browsers and web servers, but it can be used by any client or server application. In this tutorial
Running dynamic Java code
Using a Java library called Javassist it is possible to create class files on the fly and use them in the same program that created them. Sounds funky, and it is… First download the jar file from the JBoss download
Installing a Storm cluster on CentOS hosts
Storm is a distributed, realtime computation system to reliably process unbounded streams of data. The following picture shows how data is processed in Storm: This tutorial will show you how to install Storm on a cluster of CentOS hosts. A