Articles by Balthazar

Here is a list of all articles written by Balthazar.

28 Jun 2012

Tag: Python

Tag: Api

Communicating with RESTful APIs in Python

Written by Balthazar

REST defines a way to design an API with which you can consume its ressources using HTTP methods (GET, POST, etc) over URLs. Interacting with such an API basically comes down to sending HTTP requests.

In this article, we’ll see which python modules are available to solve this problem, and which one you should use. We’ll test all modules with this simple test case: we would like to create a new Github repository using their RESTful API.

Read more

08 Jun 2012

Tag: Python

Tag: Ai

Automation of the Tesseract training process

Written by Balthazar

Tesseract is an open-source Optical Character Recognition engine, historically developped by HP and Google, allowing you to extract text information out of images. One of the great features of tesseract is the possibility of training it on a new language, a new set of characters, or even on a particular font. The training procedure is fully described here.

This prodecure is quite long and tedious. That’s why I’ve written a standalone Python wrapper that can take care of the training process for you, in the case where you want to train tesseract on a new font, or characters. This demo is intended for Unix/Linux users.

Read more

21 May 2012

Tag: Python

Python built-in functions are awesome. Use them!

Written by Balthazar

Introduction

In this article, we are going to see a couple use-case examples of some of the Python built-in functions. These functions can prove themselves extremely useful, and I think every Python coder should learn how to use them: they’re fast and well thought.

For each function, I will provide two snippets: one without any built-in function, and the equivalent “pythonic” snippet.

Read more

29 Nov 2011

Tag: Linux

Some useful Linux desktop tools

Written by Balthazar

One of the reason of the awesomness of Linux is the infinite number of nice tools you can install. It thus gives you this “feel like at home” fuzzy feeling. Every time I use a friend’s computer, I can’t help but thinking “Man, it feels strange” : we’re using the same distro, but both our laptops provide different experiences.

I hereby present the tools that make me feel at home.

Read more