Tag: dev

  • SQLite recipe

    When I work on a data mining project, I often skip the capabilities of pandas or sqlalchemy and start dealing with a simple sqlite database myself. This is not very convenient and simple details can lead to distraction: “Is this how I connect to sqlite?”, “How can I extract the data from the result set…

  • Artificial Lovecraft tweets

    Driven by the idea of creating generative text bots I had to experiment with Markov chains. I looked for some free text samples to train the algorithm. The writing style of Lovecraft did seem to fit very well for my purpose. Fictional stories, a lot of repeating words. Long sentences with many linking words help…

  • CSS – striped background

    CSS – striped background

    Recently I got inspired by a background image on a commercial website, which I tried to recreate with purely CSS. It was just two layers of stripes in black and grey, with a slight difference in their angle of rotation. Their designers created 2 versions of animated GIFs. One for desktop devices, another for mobile…