This is the third and final part of a three-part series: Part 1 describes the required setup and how to get Apache Mesos Master and Agent running in two Vagrant VMs; Part 2 shows how to connect to the HTTP API and accept resource offers. This series is an extended (and updated) version of the … More A python notebook to experiment with the Apache Mesos HTTP API – Part 3 of 3
This is the second part of a three-part series: Part 1 describes the required setup and how to get Apache Mesos Master and Agent running in two Vagrant VMs This series is an extended (and updated) version of the talk I gave at MesosCon Europe 2015 updated for Apache Mesos 1.0.0, which has just been … More A python notebook to experiment with the Apache Mesos HTTP API – Part 2 of 3
This is the first of a series of three articles that shows how to setup a Vagrant-based Apache Mesos test/development environment on your laptop; then how to run a Python notebook against the HTTP API; and finally, how to launch Docker containers on the running Agent VM. It is pretty jam-packed and requires a certain … More A python notebook to experiment with the Apache Mesos HTTP API – Part 1 of 3
Make your code more pythonic by using magic methods in your classes. … More Python Magic Methods
overview Uses OpenSSL library to encrypt a file using a private/public key pair and a one-time secret. A full description of the process can be found here. configuration This uses a YAML file to describe the configuration; by default it assumes it is in /etc/filecrypt/conf.yml but its location can be specified using the -f flag. … More filecrypt – OpenSSL file encryption
A new (remastered) set of Ardis icons for Ubuntu desktop has recently been released, and they are a very pretty eye-candy (working really well with the Ambiance Crunchy theme – favor the green variant).
This is the post on github and it shows a few useful and worthy features have been added. To install on Ubuntu 14.04 (and newer – possibly older too, but I haven’t tested it): sudo add-apt-repository ppa:git-core/ppa sudo apt-get update && sudo apt-get install git then you should see the newest version: $ git –version … More Git 2.9 has been released
Updated The code is now available on github: https://github.com/massenz/distlib. Introduction A Merkle Tree is a tree structure where the individual nodes’ hashes are computed and stored in the parent node, so that the hash stored in the root node is the only value that is required to later validate the contents of the tree (stored … More Implementing A Merkle Tree in C++
The code presented here makes judicious use of Optionals, Functionals and the new Streaming interfaces.
It’s all very awesome, and makes me wonder: Java, what took you so long? … More Using Java 8 Optional and Functional interfaces to reduce boilerplate
Private/Public keypair Create the private key (one-off): openssl genrsa -out ~/.ssh/key.pem 2048 chmod 400 ~/.ssh/key.pem then extract the public key from it: openssl rsa -in ~/.ssh/key.pem -out ~/.ssh/key.pub -outform PEM -pubout NOTE The whole mechanism revolves around keeping the secret key key.pem, well, secret. This is the only critical part of the scheme. Everything else, … More HOW-TO Encrypt an archive file