Random snippets of all sorts of code, mixed with a selection of help and advice.
scroll driven image sequence animation only plays first animation
25 April 2026 @ 9:27 am
I want to put 'multiple scroll driven image sequence animations' on the same page. I tried many times but I cannot get the solution.
Whatever I tried, only the top one is working, but the others are just blank. Can you help me solve this?
My page structure is like this:
=========== header ===========
--------------------------------------
--- image sequence animation A ---
--------------------------------------
<
--------------------------------------
--- image sequence animation B ---
--------------------------------------
<
--------------------------------------
--- image sequence animation C ---
--------------------------------------
<
============ footer ============
The original demo page is here.
The demo page code:
html
<div class="hero">
<h1>A
pip install oracledb takes ~9 minutes on Alpine (musl) because no musllinux wheel, how to avoid building from source in Docker?
25 April 2026 @ 9:25 am
I'm building a Django app inside a Docker image based on python:3.13-alpine3.23 as part of a GitLab CI pipeline.
After replacing cx-Oracle==8.3.0 with oracledb==3.4.2 in requirements.txt, the pip install -r requirements.txt layer in my
Dockerfile went from ~48 seconds to ~614 seconds, and the whole pipeline job went from 5 min 37 s to 14 min 23 s.
Drilling into the BuildKit log, ~557 of those extra seconds are a single wheel build:
#12 21.32 Building wheels for collected packages: pymongo, oracledb
#12 32.37 Building wheel for oracledb (pyproject.toml): started
#12 220.6 Building wheel for oracledb (pyproject.toml): still running...
#12 479.1 Building wheel for oracledb (pyproject.toml): still running...
#12 565.2 Building wheel for oracledb (pyproject.toml): still running...
#12 589.1 Building wheel for oracledb (pyproject.toml): finished with status 'done'
So pip is compiling oracledb from the sdist (oracledb-3.4.2.
Team radio clips unavailable via the end-point of F1
25 April 2026 @ 9:25 am
I've been working on a personal project and wanted access to the team radio clips of all the drivers for the project.
I was able to find and access them via the https://livetiming.formula1.com/static/ endpoint which gives team radio clips from 2018 to 2025.
For audio clips prior to 2018, when tried to access it like this: https://livetiming.formula1.com/static/2017/2017-05-28_Monaco_Grand_Prix/2017-05-28_Race/TeamRadio.jsonStream, it returns access denied.
Similarly, for the Ausie GP of 2026: https://livetiming.formula1.com/static/2026/2026-03-08_Australian_Grand_Prix/2026-03-08_Race/TeamR
Simulate MS Office save using Python
25 April 2026 @ 9:21 am
I want to generate an Excel file and upload it to a website that only accepts .xlsx and .xls, but when I generate Excel using Pandas or Polars I am facing "invalid excel file" exception and when I save this file using Excel without any changes, it is uploaded correctly.
I want to do what MS Excel does without need to install MS Office on my machine (use a programming language like C# or Python). Can I?
What is the best approach to writing a personal config symlink management scriptfor linux?
25 April 2026 @ 8:46 am
The problem i'm trying to solve
I currently manage my configuration files with GNU stow.
To summarize the purpose of stow: If i store all of my configuration folders in one directory (wezterm/, neovim/, firefox/ etc), and run stow, it automatically symlinks all my configurations from the source folder into the directories they are actually used (in theory). Meaning i can store all my configs in one git repo, then when i have a fresh install, i can just clone that repo and run stow and all my programs will then use my configs.
My problem with stow is that not only does it have a lot of functionality i don't need, but it has some opinions about how configs should be managed that don't work for me. I feel this is the perfect opportunity to write my own simple script to solve my problem.
I first thought that it made sense to write the script entirely in bash, since i would always be running it on a PC that has just been setup, and probably has no additional
How to implement real-time GPS tracking for multiple vehicles using WebSockets or polling?
25 April 2026 @ 8:38 am
I am working on a system similar to a School Bus Tracking System, where I need to track multiple vehicles (buses) in real time and display their live location on a web dashboard.
Currently, I am using a basic GPS Tracking Software setup where devices send latitude and longitude data to the server every few seconds. However, I am facing challenges with real-time updates and scalability?
Can anyone get tc-lib-pdf working . I can't [closed]
25 April 2026 @ 8:25 am
Can anyone get tc-lib-pdf working . I can't
https://github.com/tecnickcom/tc-lib-pdf
Help !
Or has anyone any recommendations for a free HTML to PDF PHP library.
I have tried tcpdf and html2pdf.js and dompdf but all have had issues with svg.
Java , Python , MERN & ML Libraries
25 April 2026 @ 8:13 am
I have questions regarding how to integrate my ML application to an MERN stack project here I have an Stock Market predictor model with me so how to I integrate it with my frontend such that it works when a person tries to buy a stock or enter a prompt ... any ideas ?
Matplotlib 3D plot Z-axis label not showing
25 April 2026 @ 8:08 am
So im trying to plot a 3D figure as shown in here.
The problem is that Z label is not appearing at all. Is there a way to make like the box smaller or make the figure larger so it can fit in ?
Below is the reproducable code
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
gt = np.random.rand(50, 96, 3)
pred_a = gt + 0.01 * np.random.randn(50, 96, 3)
pred_b = gt + 0.02 * np.random.randn(50, 96, 3)
def plot_3d_flight(gt, pred_model_a, pred_model_b, forecast_step=0):
fig = plt.figure(figsize=(10, 8))
ax = fig.add_subplot(111, projection="3d")
ax.plot(gt[:, forecast_step, 0],
gt[:, forecast_step, 1],
gt[:, forecast_step, 2],
label="Ground Truth")
ax.plot(pred_model_a[:, forecast_step, 0],
pred_model_a[:, forecast_step, 1],
pred_model_a[:, forecast_step
The problem is that Z label is not appearing at all. Is there a way to make like the box smaller or make the figure larger so it can fit in ?
Below is the reproducable code
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
gt = np.random.rand(50, 96, 3)
pred_a = gt + 0.01 * np.random.randn(50, 96, 3)
pred_b = gt + 0.02 * np.random.randn(50, 96, 3)
def plot_3d_flight(gt, pred_model_a, pred_model_b, forecast_step=0):
fig = plt.figure(figsize=(10, 8))
ax = fig.add_subplot(111, projection="3d")
ax.plot(gt[:, forecast_step, 0],
gt[:, forecast_step, 1],
gt[:, forecast_step, 2],
label="Ground Truth")
ax.plot(pred_model_a[:, forecast_step, 0],
pred_model_a[:, forecast_step, 1],
pred_model_a[:, forecast_stepThe action requires write permission to add labels to pull requests
25 April 2026 @ 7:24 am
The labeler said it fails on a pull request, the labels are present already in issues and pull requests, the pull request is done on a fork of the repo:
The content of .github/labeler.yml:
# Add 'K7.0' label to any changes within the entire repository
K7.0:
- changed-files:
- any-glob-to-any-file: '**'
# Add 'Aurelia' label to any changes within the directory template
Aurelia:
- changed-files:
- any-glob-to-any-file: 'src/site/template/**'
# Add 'Feature' label to any PR where the head branch name starts with `feature` or has a `feature` section in the name
Feature:
- head-branch: ['^feature', 'feature']
The labels are present in the base repo:
The content of .github/labeler.yml:
# Add 'K7.0' label to any changes within the entire repository
K7.0:
- changed-files:
- any-glob-to-any-file: '**'
# Add 'Aurelia' label to any changes within the directory template
Aurelia:
- changed-files:
- any-glob-to-any-file: 'src/site/template/**'
# Add 'Feature' label to any PR where the head branch name starts with `feature` or has a `feature` section in the name
Feature:
- head-branch: ['^feature', 'feature']
The labels are present in the base repo: