Date, Time, and Timezones — The Necessary Evil
Computers are fast, deterministic, and precise… until you ask them what time it is. Then everything falls apart. Why Timezones Exist (Short Version) Before standardized […]
Continue reading »Golden nuggets where no entry is longer than my expected attention span
Computers are fast, deterministic, and precise… until you ask them what time it is. Then everything falls apart. Why Timezones Exist (Short Version) Before standardized […]
Continue reading »
There was a time when build systems had the decency to be understood by humans. You opened a Makefile. You read it. You nodded. You […]
Continue reading »
When Interactive Brokers started moving IBAPI toward Protocol Buffers in the 10.35+ line, many developers had the same reaction: “Oh no. Do I have to […]
Continue reading »
If you’ve worked with Interactive Brokers’ API (IBAPI) long enough, you’ve felt it: this is not a product that was “designed once.” It’s a system […]
Continue reading »
These measured times varies a little, but should be a fair estimate of a normal situation.
Continue reading »
Den här guiden visar hur du: Detta är en korrekt intern PKI-setup för labb, hemnät eller isolerade miljöer. 🏗 Steg 1 – Skapa en intern […]
Continue reading »
Du har skapat en egen Root CA (t.ex. inference-root-ca.crt) som du installerat på din webserver, och använder interna domäner som: frd.inf.localtrading.inf.local För att slippa cert-varningar […]
Continue reading »
Version 1 of this prompt focused on getting authentication, security, UI structure, database discipline, and deployment right. Version 2 goes one step further. Modern web […]
Continue reading »
Large Language Models are great at generating code — but without a strong, opinionated prompt, you often end up with demo apps that fall apart […]
Continue reading »
History, philosophy, design — and why it won Linux users eventually encounter systemd — often with strong opinions attached. Some praise it as essential infrastructure; […]
Continue reading »
This guide focuses on the commands you will actually use, starting simple and gradually adding power — without edge cases or weird tricks. You don’t […]
Continue reading »
Docker lets you run applications in isolated containers, making setup, deployment, and testing much easier. This guide shows the recommended, official way to install Docker […]
Continue reading »
Fast, fluent, feedback‑driven Python development for experienced developers. What is “Vibe Coding”? Vibe coding is a workflow where you stay in flow: VS Code is […]
Continue reading »
Python is preinstalled on most Linux systems — but you should not use the system Python for development.Doing so often leads to broken system tools, […]
Continue reading »
Large Language Models are no longer cloud-only.Today, several open or open-weight models can be run entirely on your own machine, giving you privacy, control, and […]
Continue reading »
If you’ve ever built open-source software the classic UNIX way — — you’ve touched a system that has existed (and survived!) for more than 30 […]
Continue reading »
(and Why We Still Can’t Escape Them)** If you’ve ever typed make and watched your terminal explode into life, you’re using one of the oldest […]
Continue reading »
Why Fridays and Expiration Days Behave Differently in Modern Markets Certain days of the trading week and certain calendar events create consistent, repeatable market behavior. […]
Continue reading »
Goal:Keep losses small, stay emotionally stable, and let your edge compound.Sizing > prediction. 1. Fixed % Risk per Trade (Fixed Fractional) Idea: Risk a fixed […]
Continue reading »
The most important skill in trading isn’t prediction — it’s sizing. Most people believe trading success comes from making good predictions.Professionals know the truth: The […]
Continue reading »The difference between a regular trailing stop order and an adjustable trailing stop order, also known as the “Adjustable Stop” order type in Interactive Brokers’ […]
Continue reading »
When I set out to build an executable for my backtesting application using PyInstaller, I ran into a series of errors that taught me a […]
Continue reading »
Intro Deploying Python applications can be done in several ways, each with trade-offs. Here, we compare three common approaches: 1. Deploying Source Code or Using […]
Continue reading »
In the world of trading and analysis, TWS scanner codes are invaluable tools for identifying stocks and options that meet specific criteria. Here’s a breakdown […]
Continue reading »
If you’ve ever participated in AdventOfCode, you’ll know it’s a thrilling yet challenging journey of solving programming puzzles. While your language of choice matters, the […]
Continue reading »
Managing code in a collaborative environment can be challenging, especially when multiple team members contribute to the same project. In this post, we’ll explore three […]
Continue reading »
When working with the Interactive Brokers (IB) API, one of the most essential components for effective order tracking is understanding the role of client ID […]
Continue reading »
Logging is an essential part of any robust Python application. It provides insights into how your program runs, tracks errors, and helps with debugging. In […]
Continue reading »
When setting up a mail server on Linux, Postfix is one of the most popular choices for a mail transfer agent (MTA). Whether you’re sending […]
Continue reading »SSH sessions timing out due to inactivity can be frustrating, especially when you’re running long processes or working intermittently. Fortunately, you can configure both the […]
Continue reading »If you’re a developer working in Linux Mint, chances are you use Visual Studio Code (VS Code) as your go-to editor. It’s powerful, lightweight, and […]
Continue reading »
Handling missing data in a time series is a common challenge when working with datasets, especially in domains like finance or IoT, where data might […]
Continue reading »
Creating reusable Python packages can greatly enhance your productivity and code management. In this blog post, we’ll walk through building a reusable package for a […]
Continue reading »
Introduction The global financial markets are supported by a vast network of stock exchanges, each with its unique history, regulatory environment, and technological advancements. There […]
Continue reading »
Posted on June 17, 2024, by Peter Andersson Introduction Managing the client and order ID in a straightforward environment with a single IBAPI application and […]
Continue reading »
My new hardcore PC har 24 cores. Twentyfour! Most of them sits idle when I run my code. It’s a bloody waste! Also, it is […]
Continue reading »
Overview of major enhancements in each version Python 3.6 (released December 2016) Formatted string literals (f-strings): name = “World” print(f”Hello, {name}!”) Underscores in Numeric Literals: […]
Continue reading »
Versioning your software is crucial for tracking changes, debugging, and ensuring compatibility. When working with Python projects in Git, one popular tool to help automate […]
Continue reading »
Artificial intelligence (AI) has been transforming our world at an unprecedented pace. One of the most promising advancements in this field is ChatGPT by OpenAI. […]
Continue reading »
What you need to know There are several benefits of using SSH (Secure Shell) for remote access and file transfer: Overall, SSH is a powerful […]
Continue reading »
Machine learning is a field of artificial intelligence that enables machines to learn from data and make predictions or decisions based on that learning. This […]
Continue reading »
Monte Carlo simulations are a powerful tool used to model a wide range of phenomena in finance, engineering, physics, and other fields. They are based […]
Continue reading »
Python is a high-level programming language known for its ease of use and readability. However, its interpreted nature often leads to performance issues when compared […]
Continue reading »
The Python logging framework has been around for a long time, and with such a mature framework, it’s quite natural that the number of features […]
Continue reading »
When developing a Flask application, you normally run it from the terminal using flask run or in the code app.run() But when the app is […]
Continue reading »
“In the summertime, when the weather is hot…” It’s time to write a note about modules and packages in Python. A module is a python […]
Continue reading »
Telegram is an application for encrypted chats that has gained enormous popularity. Fully open source, it has a complete API both for endpoints (TDLIB) and […]
Continue reading »
What is a Genetic Algorithm good for? Genetic Algorithms are most commonly used in optimization problems wherein we have to maximize or minimize a given objective […]
Continue reading »
Volatility is one of the most important attributes of any tradeable instrument. It indicates how volatile, or ‘risky’ if you will, the price is. But […]
Continue reading »
With Flask you can have your backend coded in minutes, and with for example a Linode server you can get a $10/month-server up and running […]
Continue reading »
A continuation of https://blogg.fsh.se/2022/06/06/a-simple-jwt-example-with-nodejs-and-python-part-1/ This article describes the creation of a simple React client logging into the backend using JWT. The React client Keep track […]
Continue reading »
Here are some quick notes that I refer to when installing Rabbit MQ server on Linux. Installation Read and follow: https://www.rabbitmq.com/download.html Quickstart Make sure the […]
Continue reading »
The following example is built using a Python Flask backend, a CURL-script to test it, and a simple React frontend that logs in, gets an […]
Continue reading »
I often do this: I hurry creating a git repository, do a quick “git add .” and commits. Afterworth, after a few more commits, I […]
Continue reading »