This post demonstrates how to organize models into dataframes for
exploratory data analysis, and discusses why you might want to do
this. In a future blog post I will show how to extend the basic
workflow I present here to handle sample splitting, custom
estimators, and parallel processing.
It’s been years since I’ve had to hack on anything
XML-related, but a recent
project at work has me once again jumping into the waters of
generating, parsing, and modifying this 90s-era document
format. Most developers these days likely only know of it as part of
object in web browsers used to retrieve data in
JSON format from servers, and
as the “X” in
here we are in 2021, and there are still plenty of APIs and
documents using XML to get their work done.
In the early evening I finished Ready Player
by Ernest Cline. I enjoyed the book a lot. At first I was afraid that
too much knowledge of the 80's was required but that was not the
case. Highly recommended.
In this post I want to show a possible scenario/problem that may
appear in some applications and lay down the basics of the technique
used to solve it.
When his passionate romance with nurse Jocelyn Banks is cut short by
her kidnapping and brutal murder, young psychologist Jeremy Carrier
is left emotionally devastated, haunted by his lover’s grisly
demise—and eyed warily by police still seeking a prime suspect in
Today it's two years ago that I wrote the first
post for this
tumblelog. Since then it has mostly been a link blog with here and
there a post of my own hand. It has not always been easy to find links
that I think are great. Sometimes it takes me quite some time browsing
Hacker News. But I like to do
this, and learn a lot doing so.
The Friendly Tabby
On my way to school, to pick up Adam, I encountered a tabby. When I
called the cat it jumped on a nearby metal box and made clear it
wanted to be petted, which I did.
The magical applications of Zero-Sized Types in Rust
Rust has the concept of zero-sized types, or ZSTs for short. These
are types that hold no information as part of their layout. A common
misconception, however, is that this makes them trivial. Rather,
they offer the necessary properties for a complex interactions
between the type system and values. In the following text I will
explore how they give rise to mathematical reasoning within Rust,
but also show how this provides concrete application. We will work
around restrictions in Rust's trait system, or show how libraries
can side-step long-term commitments to single dependencies without
breaking changes according to Semantic Versioning.
Python AI: How to Build a Neural Network & Make Predictions
If you’re just starting out in the artificial intelligence (AI)
world, then Python is a great language to learn since most of the
tools are built using it. Deep learning is a technique used to
make predictions using data, and it heavily relies on neural
you’ll learn how to build a neural network from scratch.
A colleague of mine recently asked whether we consider the current
it – or you like nice drawings – consider reading this article on
blog as a
A lot have changed within the last few years. That includes the
number of things I experienced and my level of expertise. Keep that
in mind, as both have a strong influence on my point of view.
As usual, the answer is: it depends. While plenty of positive
things has happened – we’ll get to that in a minute – there is a
bunch of new problems too. I hypothesize that it’s better in
How to create a 1M record table with a single query
Let’s say you want to check how a query behaves on a large table -
but there is no such table at hand. This is not a problem if your
DBMS supports SQL recursion: lots of data can be generated with a
single query. The WITH RECURSIVE clause comes to the rescue.
My goal is to collect in one place various things in Go that might
be surprising to new developers and perhaps shed some light on the
more unusual features of Go. I hope that would save the reader lots
of Googling and debugging time and possibly prevent some expensive
Almost every software developer today knows at least a little bit
about Git. In order to go beyond this "little bit", I'd like to show
you seven short commands which you might not know - and which might
help you become more productive and proficient with Git!