Tag: tutorial
-
How long should it take to solve the FizzBuzz coding question?
So, it was past midnight, and I was pretty much done for the day when one of those random thoughts ran past me like a fleeting glimpse (thanks, Roger) and I just couldn’t let go: if I were asking a candidate to solve the FizzBuzz problem, how long would be fair to expect them to […]
-
A python notebook to experiment with the Apache Mesos HTTP API – Part 1 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 […]
-
Python Magic Methods
Make your code more pythonic by using magic methods in your classes.
-
filecrypt – OpenSSL file encryption
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. […]
-
Using Stout to parse command-line options
A new post of mine has just been published on Mesosphere Blog: Almost every program needs to parse some form of command-line argument. Often, this is a pretty large set of possible options, and the management of the various options is usually pretty tedious while adding virtually no value to the program’s functionality. Google’s gflags […]
-
Python decorators (again)
Quite some time ago, I’d posted an entry about Python Class decorators; recently I happened to butt heads (again) against decorators, so I thought I’d have another go at documenting what goes where. As usual, I recommend this post as a very good summary, and I won’t repeat what is already there. In particular, I […]
-
Python Decorators
I’ve now been working in Python for more than a year and we have been doing some pretty crazy stuff, especially around decorators and authorization/permissions implementations. Admittedly, Python decorators are one of the bits of the language that can be best defined as ‘magic’ and certainly remains puzzling for someone like me, used to Java […]
-
Dynamic Pages adds AJAX to your JSF pages
I was going through the “Adding Ajax to JavaServer Faces Technology With Dynamic Faces” tutorial, and it occurred to me that it would have been a much more AJAXy solution to have the check on the existence of the User ID to occur when the user moved to the next field (without the need to […]