Einträge über Code & Zahlen (Ältere Einträge, Seite 31)

Recht früh habe ich begonnen mit Computern zu beschäftigen, die Physik kam dann auch dazu. Im Physikstudium habe ich mich auf die Schnittmenge spezialisiert, die Computerphysik. Viele Dinge nehme ich nun mit dem Blick eines Naturwissenschaflers und Softwareentwicklers wahr. Entsprechend sind die Artikel in dieser Kategorie über Programmiersprachen, von mir geschriebene oder genutzte Software, Physik, quantitative Untersuchungen von Finanzthemen und weitere Dinge dieser Art.

Meinen Code findet man auf GitHub, meine dummen Fragen auf Stack Overflow. Auf Physics Stack Exchange habe ich auch einige Fragen gestellt und beantwortet.

Meine wissenschaftlichen Artikel aus der Studienzeit findet man auf arXiv und ORCID.


Creating a Tree Search Library

I have recently simulated a few games using Python code, see the articles with the Game Simulation Toolbox tag. All the code is in one repository, but I haven't really written good code. It was mostly just experimenting, and I did not work as cleanly as I otherwise do. My latest addition, the backtracking with Railroad Ink ended up as completely hacky code: Control flow on the module level, no clear separation, huge functions, little use of classes. It is a total mess.

Weiterlesen…

Backtracking in Railroad Ink

One of my favorite board games is “Railroad Ink”. One has to build a rail and road network on a square grid using the building blocks shown on dice. During the game, my player mat looks like this:

Weiterlesen…

Notifications from Python to Android

For the Vigilant Crypto Snatch we currently use Telegram to send notifications from the Python program to the phones (mostly Android, I guess). Each user has independently set up a bot with Telegram. This bot token is registered in the configuration file and the Python script can then use the bot to send messages. The users have to write to their bot using Telegram such that the bot knows about their personal account. Then the bot can send messages to that particular end user.

Weiterlesen…

Adding CCXT to Vigilant Crypto Snatch

The Vigilant Crypto Snatch software had been refactored into the Clean Architecture a while ago. This process started when we wanted to also support the Kraken marketplace next to the Bitstamp marketplace. Then I switched over from the clikraken package to krakenex to improve the support with Kraken.

Weiterlesen…

Heart Rate Monitor with Python

Recently I've talked to somebody who has an interest in psychology, sports and data science. His idea was to measure the level of relaxation using brain waves and then light the room in a specific color to give the meditating person a direct feedback on their progress. They could then train to reach certain meditative states using the external feedback.

Weiterlesen…

Refactoring with Dependency Inversion and Injection

In this post I want to show how to refactor with the Dependency Inversion Principle. I find it hard to create a mock example with sufficient complexity, so I will just take the cryptocurrency buy software that I have featured in this blog a few times. In each iteration I will show the full code, talk about the problems.

Weiterlesen…

Introducing Post Statistics

Having all my blog posts as Markdown files enables me to write scripts to parse them. And parsing the YAML headers is really easy, so I can get the date, language and category of posts really easy. And well, once I have data, I can make plots.

Weiterlesen…

Backtracking vs. Clickbait

In social media you often find the worst advertisements. One that I saw recently is the following one. It was a video of a field with red and blue dots, and a toy figure going through the blue dot and removing them. The idea was that it should go through the grid of dots and remove all the blue dots in one go. One must not step back and go through a grid field where the blue dot was already removed. It showed a video with the figure failing to clear them all, leaving one.

Weiterlesen…