Python

Wheels says no...

Computer says no

After porting one of our libraries at work in Python 3, I wanted to publish it as a package. The tool that we are using to distribute packages is wheels.

Unfortunately, wheels was refusing to create the package. It was reporting an error similar to the following: wheel.cli.WheelError: "Bad …

On writing a book

After reviewing two books about Python, people from Packt asked me if I was willing to write a Python book. I'm glad to see that my first book, Mastering Python Design Patterns is published!

As I expected, writing a book is much tougher than reviewing one. Especially if you have a full-time job, like …

Being a technical …

A few months ago I experienced (for the first time) how it feels to be part of a technical reviewing team. I reviewed a packt introductory book about Design Patterns.

Today I'm glad to see that another packt book, of which I was for once again one of the technical reviewers, has been published. The …

My first book review

During the last month(s) I participated in the review process of a book about Design Patterns in Python. I am happy to see that the book has been released. The title of it is Learning Python Design Patterns.

Reviewing a book is definitely not harder than writing one, but that doesn't mean that it's …

Data Structures and …

Definition

Think of a queue as a line of people waiting to buy a ticket for an event (music concert, film, etc.).

Photo Credit: Bryan Bedder/Getty Images for Tribeca Film Festival

In the queue shown at the picture, a person who just arrives to buy a ticket goes to the left side (unless cheating) and a …

Interview question: …

Let's assume that we are asked to solve the following problem in a programming interview: "Write a function that removes all duplicate characters from a string". Piece of cake, you might think. Surely they are not asking us to write a Web Browser but there must be a reason for that.

Test first

The …

Data Structures and …

Rationale (boring)

I decided to write down some notes about common (and maybe less common) Data Structures and Algorithms. This is the first part, covering stacks.

Definition

Think of a stack as a pile of books.

A stack looks like a pile of books
If I want to study "Modern Operating Systems", I first …

Automatic Web logon

Visiting Yahoo! Answers without using a Web browser 

I believe that services like Yahoo! Answers are very useful and use them at times. The Yahoo! Answers community gives an extra point to users each time they visit their account (but only once/day).

The problem is …

Python code profiling in …

If you are coding in python, you are probably already familiar with the profiler concept. The problem is that the python profiler license fails to comply with the free software guidelines of Debian and therefore the package belongs to the non-free archive. "So what?", you might say. Well, …