ELK on docker + Syslog

Versions used:

  • Ubuntu 16.04
  • Docker version 17.03.1-ce, build c6d412e
  • Docker-Compose version 1.12.0-rc2, build 08dc2a4

Install Docker CE

Install a few basics that we need:

sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \

Add docker.com’s GPG key

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

Add the apt-get repo:

sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \

Update package list

sudo apt-get update

Install ‘docker-ce’ package

sudo apt-get install docker-ce

Test to verify all is well

sudo docker run hello-world                                                                                                            

Install Docker-Compose

Continue reading “ELK on docker + Syslog”


Home Brew – CO2 Carbonation Chart

Use this chart to determine the ‘set and forget’ settings (temperature and pressure) to apply to your kegged beer to properly carbonate it with a CO2 pressure tank. There are a couple of these around on the net, but usually limited to degrees fahrenheit and a few other annoyances for me, so I took a couple of minutes to put together mine own slightly more simplified version.

Carbonation Chart

Virtualize Raspberry Pi (i.e. ARM) on OS X using QEMU

Here’s how:

  • Install and upgrade Xcode to 4.3 or above.
  • Install the Xcode Command Line Tools (you can do this from within Xcode’s “Downloads” preference pane).
  • Install Homebrew, using the instructions here – http://brew.sh/
  • Force Homebrew to install version 1.1.0 of QEMU
    git checkout 2b7b4b3 Library/Formula/qemu.rb


Panoramas on Linux

Larger version: here

This shot is made up of 7 RAW shots from my Canon EOS 400D (aka Rebel XTi) w/ EF-S 17-85mm IS USM lens, here was the process I followed:

The shoot:

1. Mounted the camera on a tripod in portrait orientation, doing this has two benefits… firstly puts the barrel distortion introduced by your lens on the top and bottom making the shots easier to blend and stitch, also it’ll give your pano more height. The down side of course is that you’ll need to take more shots than you would with landscape to get the same field of view.

2. Put the camera in Manual mode to ensure that the exposure is locked. If you use any of the Auto/Semi-auto modes… your camera will re-meter for exposure for each shot – causing the brightness of each shot to differ.

3. Then I selected a specific white balance, in this case ‘daylight’ – but the important thing is not to have it on Auto White Balance, otherwise each shot is likely to be a different temperature.

4. Next I dialed in the aperture to a tiny (F/22), this is to ensure that I get the deepest Depth of Field (DoF) as possible so the foreground and background are sharp and in focus.

5. Then I used the auto focus to do the focus work for me, then once focus was achieved I switched to Manual Focus to ensure that each shot is taken with the same focus.

6. Finally, using my Canon IR remote I shot off the first shot then carefully panned by tripod head until there was approximately 20% overlap from the previous shot then shot off again… then continued until I had the complete field of view I was after.

The post processing:

I did the post processing on my Linux (Ubuntu) box, as a minimum you’ll need the following:

Here is the process I followed:

1. Converted my RAW images to JPEG using dcraw. I used a custom version of the script available here: http://jcornuz.wordpress.com/2008/07/10/here-is-a-little-something-for-your-blog/

2. Renamed the .JPEG output to .JPG, because Autopano-sift-C fails with .JPEG extensions.

3. Batch rotated JPEGs using mogrify from ImageMagick (mogrify -rotate “-90” *.JPG)

4. Opened images in Hugin, and got it to use Autopano-sift-C to automatically find the control points between the set of images.

5. Hugin then uses ‘nano’ to modify the geometry of the images, then ‘enblend’ to stitch them all together.

FYI – I did run into an issue with the latest CVS version of Enblend (v3.2), and had to downgrade to a previous version to make it work.

Excel tip: Sum of visible filtered rows

I am a big fan of the MS Excel AutoFilter feature, and use it extensively. Every now and then I’m wished that there was some function within Excel to do a SUM function, but only on the rows that are visible as a result of the AutoFilter… well few minutes on Google and a found it.

Use the subtotal function with the relevant function_num, for addition I used 109. For example: =SUBTOTAL(109, A1:A1000)

Syntax: SUBTOTAL(function_num, ref1, ref2, …)

(includes hidden values)
(ignores hidden values)
2 102 COUNT
3 103 COUNTA
4 104 MAX
5 105 MIN
7 107 STDEV
8 108 STDEVP
9 109 SUM
10 110 VAR
11 111 VAR