RSSAmplifier

Blog

Peter Hoffmann

Atom Feed for python related posts peter-hoffmann.com

peter-hoffmann.comRSS feed ↗10 posts

Latest posts

Garmin inReach Mini 2 Leaflet checkin map

We will be trekking the eastern part of the Great Himalaya Trail in Nepal in March/April. Details on the route and our plans can be found at https://greathimalayatrail.de . Our intent is to keep friends and family updated on our progress. Given that we'll be hiking in quite remote areas, a satellite phone/pager will be our sole means of communication. After the Garmin inReach Mini 3 was released…

Local macOS Dev Setup: dnsmasq + caddy-snake for python projects

When working on a single web project, running flask run on a fixed port is usually more than sufficient. However, as soon as you start developing multiple services in parallel , this approach quickly becomes cumbersome: ports collide, you have to remember which service runs on which port, and you end up constantly starting, stopping, and restarting individual development servers by hand. Using a…

Mistune 3 Wikilink Inline Parser

Mistune 3 has changed its internal structure and extension mechanisms. The Mistune advanced documentation provides several examples of how to create and register inline patterns. After a few iterations, I developed the following solution to render wikilinks: import re from typing import Match from mistune import Markdown from mistune.core import BaseRenderer , InlineState from…

Exploring Mountain Huts with SPARQL and Wikidata

For outdoor enthusiasts and avid hikers, searching for mountain huts or shelters is common when planning tours. In this blog post, we will retrieve information about mountain huts around a specific latitude and longitude using the powerful combination of SPARQL and Wikidata. Understanding SPARQL SPARQL (SPARQL Protocol and RDF Query Language) is a query language designed for querying data stored…

Blue Yonder at PyCon.DE 2023

Blue Yonder History It has now been 10 years since Blue Yonder started its first sponsorship of a Python conference at EuroPython in Florence. Since then, we have been sponsoring or organizing at least one Python event per year. For me, this has always been part of my mission: to convince leadership and fellow team leads that participating in the open-source community benefits employee development…

Using Docker multi-stage builds to compile turbodbc with PyArrow support on Debian 11

Turbodbc is a Python module for accessing relational databases via the Open Database Connectivity (ODBC) interface. For maximum performance, turbodbc offers built-in NumPy and Apache Arrow support and uses batched data transfer instead of single-record communication, as many other ODBC modules do. Building turbodbc with PyArrow support has some caveats: it uses build-time detection to check if…

Beautiful Leaflet Markers with Folium and Font Awesome

Folium is a Python library that creates and displays interactive maps using the Leaflet.js library. It can render powerful and visually appealing maps with markers, polygons, heatmaps, and other geographic elements. Folium is easy to use and offers many options for customizing maps and displayed elements. Minimal marker The minimal example just adds a marker at a specific location: import folium…

Scale-Aware Rating of Count Forecasts

Our ML group at Blue Yonder , with Malte Tichy, has published a new paper on Scale-Aware rating of Count Forecasts . Forecast accuracy is something every data team tracks — but judging how good a forecast actually is turns out to be much harder than it looks. This paper introduces a simple but powerful idea: you can’t fairly judge a forecast unless you compare it to what is theoretically possible…

Python Support in Snowflake

The Snowflake cloud-based data storage and analytics service has Python capabilities as part of its offerings. Snowpark offers native Python integration into Snowflake's execution engine. Therefore, Python can be used to extend, call, and trigger data pipelines inside their managed virtual warehouse infrastructure. The Snowpark Python integration offers three ways to use Python inside Snowflake:…

Convert the Himalayan Database to SQLite

The Himalayan Database is a record of expeditions in the Nepalese Himalaya and a unique source of knowledge about the history of Himalayan mountaineering. The database is based on the expedition archives of Elizabeth Hawley, a longtime journalist based in Kathmandu, and it is supplemented by information gathered from books, alpine journals, and correspondence with Himalayan climbers. The records…