Calling __init__() on all base classes in Python multiple heritance
Here is an example of calling __init__() for all base classes, when doing multiple inheritance in Python (mixins). It uses *args and **kwargs syntax:
Here is an example of calling __init__() for all base classes, when doing multiple inheritance in Python (mixins). It uses *args and **kwargs syntax:
This is how you can get started successfully using Git. Basic concepts: Git Tutorial (by Lars Vogel) how successful developers are using Git:A successful branching model for Git (Gitflow) Online books: Pro Git and Git Community Book Additional things to…
This table lists the number of total tiles for increasing zoom-level in a tile cache. The tile cache is assumed to be pyramidal: . level 1: 1 tile level 2: 5 tiles level 3: 21 tiles level 4: 85 tiles…
Plotting data in LaTeX is a useful thing to do. Xavier Delaunay shows how to do it on his homepage: The plot looks like this:
In this eposide of Golden Balls, an inspired event takes place: I retold the event at DIKU APL lunch (nice to have a job where game theory is a valid conversation topic), and we had a conversation about it. At…
I’ve always wanted to understand Turing Machines better. I believe that the best understanding comes from the intuition developed by solving puzzles. So here, I give myself some challenges. Solve simple problems by writing programs for a simple Turing Machine,…
I’m just getting into this topic, but it seems that Python Eggs are the way to go. Here’s a good tutorial: In the long term, I’d like to be able to do: pip install
Here are three thorough answers on Python topics from StackOverflow. Metaclasses Yield, iterables, iterators, generators Decorators
Apache Cassandra is a column-store with a p2p distribution architecture. Yesterday I did a presentation about Cassandra at Grontmij, Glostrup, Denmark. I made the slides in Google Docs, and they’re public: slides.
How complicated does a mathematical function, pseudorandom(x), have to be to create something that seems random, and how do you check whether it seems random? Looking at a long list of numbers is not a good way, because our ability…