Setting Up a Mail Server with Postfix: A Step-by-Step Guide
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 »Golden nuggets where no entry is longer than my expected attention span
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 »Trading in financial markets can be a complex and challenging endeavor. Traders need to analyze various data points to make informed decisions about when to […]
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 »DALL-E, short for “Dali + WALL-E,” is a new generative model created by OpenAI that combines the power of two existing technologies: GPT-3 and computer […]
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 »A short documentary from SVT with a new spin on the Palme murder. I feel that the documentary is well done, with a new interesting […]
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 »Do you have a lot of CSV files, with sometimes many rows of data that you need to import to a Mysql database? You could […]
Continue reading »Some people think Spring and Spring Boot adds to much “magic” to a Java app, and to some extend I agree. Have they gone too […]
Continue reading »Gradle is a beast! Having a background in simpler build systems like Makefile and Ant, Gradles DSL confused me initially. Gradle has sections that basically […]
Continue reading »When I moved a bunch of classes from a rather large Spring Boot application into a separate library (se more about that process here), I […]
Continue reading »One of my interests which are not computer related, is the murder of Olof Palme, Feb 28 1986. Here is the last interview with Stig […]
Continue reading »Why it sucks? The TL;DR is “It’s not Linux”. I really want to like Windows. And God knows I have tried. A couple of times […]
Continue reading »Running webservers on own hardware I develop a lot of websites, and I run them on my own hardware (a Ubuntu Server). When developing (on […]
Continue reading »For some reason, Linux Mint (and other variants probably?) creates a measily 2GB swap file, which is too small IMHO when you have 16GB or […]
Continue reading »How the system path is set is quite complicated, depending on your system and shell setup. But for the most common one (Linux Mint/Bash in […]
Continue reading »ActiveStorage is a gem, I really think so. Before AS, whenevener I needed to attach a “blob” (image or other document) to a model it […]
Continue reading »A friend asked me to help debug an app that tried to detect three different colors. It was written in Python and used three precreated […]
Continue reading »[iframe height=1000px src=”https://blogg.fsh.se/jupyter_notebooks/fantasy_football.html”]
Continue reading »The major difference between Linux and Windows is the quality of the terminal. I would say the comparison is like comparing a with a But […]
Continue reading »I had terrible problems connecting to my Wifi printer Canon MG5450. It worked perfectly from my Imac, but from my Linux Box I got “server-error-internal-error” […]
Continue reading »If you get this (or similar) error when running: /home/peter/.pyenv/versions/3.8.3/lib/python3.8/site-packages/pandas/compat/__init__.py:117: UserWarning: Could not import the lzma module. Your installed Python is incomplete. Attempting to use […]
Continue reading »In ~/Desktop, create a file named Eclipse.desktop with content: [Desktop Entry] Version=x.y Name=ProgramName Comment=This is my comment Exec=/home/peter/Documents/exec.sh Icon=/home/peter/Pictures/icon.png Terminal=false Type=Application Categories=Utility;Application; if you need […]
Continue reading »This code connects to a Mysql database, reads ths content of a table and imports it into a Dataframe. From there you can twist and […]
Continue reading »Even with a moderately large React app, you try to structure your modules and end up here in the end: import ../../../components/dialogs/enter.jsx WTF?? Good luck […]
Continue reading »How do you setup VS Code, which is a great code editor, for Ruby development? Well you start by installing these gems: gem install solargraph […]
Continue reading »It’s not as straightforward as you might think to completely remove MySQL from your linux box. Here are the details: Use apt to uninstall and […]
Continue reading »I just found this amazing article about the finer details of Websockets, and how to implement a WS server using Ruby. I just had to […]
Continue reading »iotop is installed via sudo apt install iotop and is a great tool for monitoring I/O in your box. Here are a few tips […]
Continue reading »So it finally happened. After years of usage I managed to f**k up my linux boot. I suspect the HDD was about to give up […]
Continue reading »Top 10 javascript console tips! Tip #0 console.assert() Tip #1 console.trace() Tip #2 console.time() && console.timeEnd() Tip #3 console.memory Tip #4 console.profile(‘profileName’) & console.profileEnd(‘profileName’) Tip […]
Continue reading »Installation Add the necessary modules yarn add react-redux yarn add redux Fix the component import {connect} from ‘react-redux’; // definition of DummyComponent here… const mapStateToProps […]
Continue reading »