Number letter counts Warning: Please only read this post, when you are absolutely sure, that you don’t want to take part in the challenge that is Project Euler. My posts will spoil the solution for you. I’m posting my solutions to show one possible way on how to solve the problems in case you want […]
Django Development with Docker Compose and Machine
Docker is a containerization tool used for spinning up isolated, reproducible application environments. This piece details how to containerize a Django Project, Postgres, and Redis for local development along with delivering the stack to the cloud via Docker Compose and Docker Machine. In the end, the stack will include a separate container for each service: […]
Data Science Tweet Analysis – What tools are people talking about?
By Chris Musselle PhD, Mango UK At Mango we use a variety of tools in-house to address our clients’ business needs and when these fall within the data science arena, the main candidates we turn to are either the R or Python programming languages. The question as to which is the “best” language for doing […]
Programming a Perceptron in Rust
Two years ago, I wrote a blogpost about implementing a perceptron in Python that quite a few people liked. Nowadays I’m getting started with the Rust programming language, so after the big Rust 1.0 release today I thought it would be a good moment to do another post about implementing a simple perceptron, this time […]
Fun with Django’s New Postgres Features
This blog post covers how to use the new PostgreSQL-specific ModelFields introduced in Django 1.8 – the ArrayField, HStoreField, and Range Fields. This post is dedicated to the awesome backers of this Kickstarter campaign put together by Marc Tamlyn, the true playa that made it happen. Playaz Club? Since I’m a huge geek and have […]
Unintended Affordances (or why I believe encrypting everything is a bad idea)
In psychology there is the term of affordances. It’s the concept that an object affords different actions for someone interacting with it. Most objects in this world have a plethora of things you can do with them, many are not even intended by the designer of that object. As a crude example: a chair does […]
Scaffold a Flask Project
Let’s build a command-line utility for quickly generating a Flask boilerplate structure. This is a collaboration piece between Depado and the folks at Real Python. Modeled after the Flask-Skeleton project, this tool will automate a number of repetitive tasks so that you can quickly get a Flask project up and running with the structure, extensions, […]
Dockerizing Flask with Compose and Machine – from localhost to the cloud
Docker is a powerful tool for spinning up isolated, reproducible application environment containers. This piece looks at just that – how to containerize a Flask app for local development along with delivering the application to a cloud hosting provider via Docker Compose and Docker Machine. Updates: 11/16/2015: Updated to the latest versions of Docker – […]
Top 15 functions for Analytics in Python #python #rstats #analytics
Here is a list of top ten fifteen functions for analysis in Python import (imports a particular package library in Python) getcwd (from os library) – get current working directory chdir (from os) -change directory listdir (from os ) -list files in the specified directory read_csv(from pandas) reads in a csv file objectname.info (like proc contents […]
Bitcoin is Not a Good Consumer Product
Writing critical essays about Bitcoin is probably not a very good idea, judging by past feedback on tweets. However the topic is burning on my heart and I really want to share my thoughts about it once and for all since I’m getting more and more the feeling I live in crazy land. Bitcoin brings […]
PyCon I Love You
I’m coming to the end of my time at PyCon 2015. This is my second time at PyCon, and at this stage I can safely say that PyCon is my favourite conference, bar none. Other conferences are larger or funnier or weirder, but none of them revitalises me like PyCon does. 360 days a year […]
Nameko for Microservices
In December some of the tech guys at onefinestay invited me over to London to do some general improvements on their nameko library. This collaboration came together because nameko was pretty similar to how I generally like to build certain infrastructure and I had some experience with very similar systems. So now that some of […]
Learn Python the Methodical Way
This is a guest blog post from Zev Averbach – a Python enthusiast who is working on a startup related to his current business, Averbach Transcription. Say hi to him at PyCon 2015! One of the first pieces of advice I got about learning a programming language was from Logan Hanks: “Read the library.” Then […]
The Sentry in my Life
The idea of converting an Open Source project into a company is something that excites many of us, but very often this is something that will not succeed. Often times it’s because many Open Source projects fill a void that exists largely because in that space no money can be made. This is especially true […]
Opbeat Release Tracking with Ansible
I recently discovered Opbeat. It seems to be a simple (and free/cheap) alternative to Newrelic, at least if you’re using Django. Opbeat supports release tracking (like Newrelic does, too). That means that your deployment setup can log all deployments together with the git revision number via the Opbeat API. That helps you to identify issues […]