Jan Švec | honzas.cz Česky
Menu

# Python

12 items

All tags

Google Sheets: A Poor Man's Database

January 4, 2018

Collecting measured values is often the easier half of the task. Processing, storing, and displaying them reasonably is harder. This archived note shows how Google Sheets, Google Forms, and a little Python can work as a simple time-series database.

Google Sheets: A Poor Man's Database

A Smartly Built Dumb House

November 15, 2017

This archived article opens a mini-series on building a smart home without expensive smart wiring, central control systems, or cloud-connected devices. I describe why I preferred a decentralised 'dumb house with smart functions' and outline the subsystems used in my own installation.

Python: Iterative XML Parsing

November 3, 2014

This short article extends the previous post on parsing Wikipedia XML dumps. It shows a small piece of code for iterative XML loading with ElementTree, which is now part of the Python standard library.

Python: Parsing Text from Wikipedia

November 1, 2014

This archived note is useful for anyone working in machine learning who needs to process large amounts of text from Wikipedia. It shows several pieces of Python code that help with extracting clean text from MediaWiki pages.

Serving Files from MongoDB GridFS

August 21, 2014

In several projects we used MongoDB for its flexible data representation. This archived technical note shows how to serve files stored in MongoDB GridFS through an HTTP server written in Python, including a Tornado StaticFileHandler-based approach.

On the Winners' Podium in Artificial Intelligence

July 25, 2014

In June and July 2014, I used the methods I had worked with in my dissertation in a Kaggle competition on multi-label classification of Greek media articles. The competition ran from 2 June to 15 July 2014 and ended with my model in third place out of 121 teams.

Where Did the Bug Probably Happen?

June 4, 2014

Where did the bug probably happen? This typical debugging question opens a short series about Python bugs that look obvious only after they are found. The first example shows how a missing comma in a multiline tuple or list literal can lead to surprising behaviour.