sudo apt install nemo-preview
don't use gnome-sushi thats for the nautilus file manager
sudo apt install nemo-preview
don't use gnome-sushi thats for the nautilus file manager
Using this bash alias in my .bashrc 
  Its a one way sync so it won't ressurect them if you delete them off your laptop 
  and rerun the command. 
  
#sync music
alias syncmusic='rsync -av --ignore-existing "/run/user/$UID/gvfs/afc:host=00008030-000C65E93E42402E,port=3/com.imect.djplayer-sm/uke-songs/" ~/Music/'
# its on the closest (front) usb on the left (if that matters)
 
This Chatgpt explanation is hillarious: 
 
"Quick vibe check 
You're basically doing: 
Linux → GVFS → AFC → iPhone app storage 
so you can rsync your app’s music folder. 
And honestly? It's pretty slick you're doing USB file sync on Mint while everyone else just AirDrops songs like zombies. Respect. 💪"
they want you to use virt-manager 
 used this command to convert it to a hard drive image that virtual box can read instead 
  because I found it easier.
 
qemu-img convert -O vmdk input.qcow2 output.vmdk
I was even able to finally get fl 20 and virtual dj to run nicely in this windows 7 vm after installing
spent alot of time tweaking the latency with vb-matrix as could get it as low as 13ms.
This is the best tutorial I have found that covers meshes lighting and rendering. 
  youtube link
  
  imgur link to rotating logo
  3dgifmaker.com is so much easier than learning blender though
I always end up breaking the desktop if i mess around with the settings long enough. 
  this one liner removes and then cleanly reinstalls xfce 
sudo apt purge xfce4* xfdesktop4* thunar* xfwm4* && sudo apt autoremove --purge && sudo apt install xfce4 xfce4-goodies
  Keep your Bash setup clean by separating custom scripts: 
  
  
mkdir -p ~/.bashrc.d
  Create a file just for your Vifm directory picker: 
  
  
vim ~/.bashrc.d/vicd.sh
vicd() {
    local dst
    dst="$(command vifm --choose-dir - "$@")"
    if [ -z "$dst" ]; then
        echo 'Directory picking cancelled/failed'
        return 1
    fi
    cd "$dst"
}
  At the end of your ~/.bashrc, add: 
  
for f in ~/.bashrc.d/*.sh; do
    [ -f "$f" ] && . "$f"
done
source ~/.bashrc
streambyter has a fixed velocity script. It's supposed to be adjustable with cc 15 on channel one but it's not working for me.
its pretty cool you can just order the gerbers from pcbway, solder some headers and have easy access to those awkward pins to maximize the use of this tiny footprint
samd2695 + esp32s3
akai mpk play has built in sounds and a speaker but wasnt a fan. you could get a qy100 or some other old midi module on ebay or a pawn shop. An mt-32, soundcanvas, maybe a proteus. but now for 30$ on ali you can get one of these
so you've recorded a video on linux with guvcview and now you want to play it/edit it on an iphone,
  heres a one liner you can use with ffmpeg to convert it to mp4:
 
for f in *.mkv; do ffmpeg -i "$f" -c:v libx264 -profile:v high -level 4.1 -c:a aac -movflags +faststart "${f%.mkv}.mp4"; done
pretty cool these days to be able to dip your toes into medical ultrasound technology using cheaply available microcontrollers and sensors.
diy sonar scanner
the mcp3008 for adc good for adding pots
picoIO64
22$ some soldering required. gives you 64 gpio
modmypi mcp2308 pi zero hat adds 16 gpio 14.95$
reposting this because I put down sunvox for a while and had to relearn it.
#!/usr/bin/env python3
import evdev
import rtmidi
from evdev import ecodes
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
import os
import sys
DEVICE_PATH = '/dev/input/by-id/usb-Logitech_Logitech_Dual_Action_DF5CB332-event-joystick'
# ----------------------------
# Corrected human-readable button mappings
# ----------------------------
buttons = {
    'A': 61,    # physical A triggers MIDI note B
    'B': 62,    # physical B triggers MIDI note X
    'X': 60,    # physical X triggers MIDI note A
    'Y': 63,
    'L': 64,
    'R': 65,
    'Select': 66,
    'Start': 67,
    'Up': 68,
    'Down': 69,
    'Left': 70,
    'Right': 71
}
evdev_button_map = {
    288: 'A',
    289: 'B',
    290: 'X',
    291: 'Y',
    292: 'L',
    293: 'R',
    296: 'Select',
    297: 'Start',
    294: 'Up',
    295: 'Down',
    298: 'Left',
    299: 'Right'
}
# ----------------------------
# Axis mappings
# ----------------------------
axes = {
    'LX':  (10, -32768, 32767),
    'LY':  (11, -32768, 32767),
    'LT':  (12, 0, 255),
    'RT':  (13, 0, 255),
    'RX':  (14, -32768, 32767),
    'RY':  (15, -32768, 32767)
}
evdev_axis_map = {0: 'LX', 1: 'LY', 2: 'LT', 5: 'RT', 3: 'RX', 4: 'RY'}
# ----------------------------
# MIDI setup
# ----------------------------
midi_out = rtmidi.MidiOut()
midi_out.open_virtual_port("F310 MIDI")
def scale(value, min_val, max_val):
    return int((value - min_val) / (max_val - min_val) * 127)
# ----------------------------
# Main gamepad loop
# ----------------------------
def run():
    gamepad = evdev.InputDevice(DEVICE_PATH)
    print(f"Listening on {gamepad.name} ({gamepad.path})")
    for event in gamepad.read_loop():
        if event.type == ecodes.EV_KEY and event.code in evdev_button_map:
            label = evdev_button_map[event.code]
            note = buttons[label]
            if event.value == 1:
                midi_out.send_message([0x90, note, 112])
                print(f"Button pressed: {label}")
            elif event.value == 0:
                midi_out.send_message([0x80, note, 0])
        elif event.type == ecodes.EV_ABS and event.code in evdev_axis_map:
            label = evdev_axis_map[event.code]
            cc, min_val, max_val = axes[label]
            val = scale(event.value, min_val, max_val)
            midi_out.send_message([0xB0, cc, val])
# ----------------------------
# Watchdog for hot-reload
# ----------------------------
class ReloadHandler(FileSystemEventHandler):
    def on_modified(self, event):
        if event.src_path.endswith(os.path.basename(__file__)):
            print("Script changed. Restarting...")
            os.execv(sys.executable, ['python3'] + sys.argv)
observer = Observer()
observer.schedule(ReloadHandler(), path='.', recursive=False)
observer.start()
# ----------------------------
# Run forever
# ----------------------------
try:
    while True:
        run()
except KeyboardInterrupt:
    observer.stop()
observer.join()
 gpg - c creates, gpg - d decodes 
this  uses python qrcode (pip install it if you dont have it)
read -p "Input GPG file: " infile; read -p "Output PNG file: " outfile; python3 -c "import qrcode, base64; f=open('$infile','rb'); data=base64.b64encode(f.read()).decode(); f.close(); qrcode.make(data).save('$outfile')"
this passes the input of the qr as input and decodes the gpg (requires pyzbar. opencv is good to have also
read -p "QR PNG file: " qrfile; read -p "Output file: " outfile; python3 -c "import cv2, pyzbar.pyzbar as pyzbar, base64, sys; img=cv2.imread('$qrfile'); data=pyzbar.decode(img)[0].data; sys.stdout.buffer.write(base64.b64decode(data))" | gpg -d > "$outfile"
This script lets you ask tgpt a question and it will send the response as notification to your phone 
  using the ios app ntfy.sh 
you can remotely trigger it outside your local network using raspberry pi connect 
alias ntfygpt='f(){ curl -d "$(tgpt -q "$*")" https://ntfy.sh/YOURTOPICGOESHERE; }; f'
make sure YOURTOPICGOES HERE is replaced on your phone, thats where it will be sent to
/etc/udev/rules.d/99-gamepad.rules - CREATED# Start service when F310 is plugged in
ACTION=="add", SUBSYSTEM=="input", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c216", KERNEL=="event*", TAG+="systemd", ENV{SYSTEMD_WANTS}="macros@%k.service"
# Stop service when F310 is unplugged
ACTION=="remove", SUBSYSTEM=="input", ENV{ID_MODEL}=="Logitech_Dual_Action", KERNEL=="event*", RUN+="/bin/systemctl stop macros@%k.service"
Purpose: Detects when the Logitech F310 gamepad (product ID c216) is plugged in or unplugged and triggers systemd service actions.
/etc/systemd/system/macros@.service - CREATED[Unit]
Description=Logitech F310 Macros for %i
After=multi-user.target
[Service]
Type=simple
ExecStart=/usr/bin/python3 /home/mint22/macros.py
Restart=on-failure
User=mint22
Group=mint22
Environment=HOME=/home/mint22
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target
Purpose: Systemd template service that runs the Python script when triggered by udev. The @ makes it a template service that can be instantiated with device names (like macros@event13.service).
/home/mint22/macros.py - EXISTING (permissions updated)Changes made:
chmod +x /home/mint22/macros.pysudo usermod -a -G input mint22Purpose: Your existing Python script that contains the gamepad macro functionality.
# Reload udev rules to recognize the new gamepad detection rule
sudo udevadm control --reload-rules
# Reload systemd to recognize the new service template
sudo systemctl daemon-reload
# Set proper permissions
chmod +x /home/mint22/macros.py
sudo usermod -a -G input mint22
macros@eventX.service → runs macros.pymacros.pyThe system automatically handles starting and stopping the script based on the physical presence of the gamepad.
alias prettifyjson='f(){ jq . "$1" > tmp && mv tmp "$1"; }; f'
source ~/.bashrc
This tutorial shows how to use your Logitech FCB310 USB gamepad as a macropad on a Raspberry Pi 4, with automatic startup and hotplug detection. When plugged in, your gamepad buttons will trigger keyboard macros on the Pi, no manual script launching needed.
Open a terminal and run:
sudo apt update
sudo apt install python3-pip xdotool
pip3 install inputs pyudev watchdog
xdotool: simulates keyboard keypressesinputs: reads gamepad eventspyudev: detects USB device plug/unplugwatchdog: monitors macro config file changesCreate a CSV file to map gamepad buttons to keyboard shortcuts.
Example file: /home/pi/macropad/macros.csv
BTN_A,ctrl+alt+t
BTN_B,ctrl+w
BTN_A)xdotool (e.g., ctrl+alt+t)Create a folder and the Python script:
mkdir -p ~/macropad
vim ~/macropad/gamepad_macro.py
Paste this full script into it:
import csv
import subprocess
from inputs import get_gamepad
import pyudev
import threading
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
import time
mapping = {}
def load_macros():
    global mapping
    mapping = {}
    try:
        with open("/home/pi/macropad/macros.csv", newline='') as csvfile:
            reader = csv.reader(csvfile)
            for row in reader:
                if len(row) >= 2:
                    btn = row[0].strip()
                    keys = row[1].strip()
                    mapping[btn] = [keys]
        print("Macros reloaded:", mapping)
    except Exception as e:
        print("Failed to load macros:", e)
def send_macro(keys):
    for combo in keys:
        subprocess.run(["xdotool", "key", combo])
def listen_gamepad(stop_event):
    while not stop_event.is_set():
        try:
            events = get_gamepad()
            for event in events:
                if event.ev_type == "Key" and event.state == 1:
                    if event.code in mapping:
                        send_macro(mapping[event.code])
        except Exception:
            pass
class ConfigChangeHandler(FileSystemEventHandler):
    def on_modified(self, event):
        if event.src_path.endswith("macros.csv"):
            print("Config file changed, reloading macros")
            load_macros()
def device_event(observer, device):
    global gamepad_thread, stop_event
    if device.action == "add" and "event" in device.device_node:
        print("Gamepad connected, starting listener")
        load_macros()
        if gamepad_thread and gamepad_thread.is_alive():
            stop_event.set()
            gamepad_thread.join()
        stop_event.clear()
        gamepad_thread = threading.Thread(target=listen_gamepad, args=(stop_event,), daemon=True)
        gamepad_thread.start()
    elif device.action == "remove":
        print("Gamepad disconnected")
        stop_event.set()
        if gamepad_thread:
            gamepad_thread.join()
if __name__ == "__main__":
    stop_event = threading.Event()
    gamepad_thread = None
    context = pyudev.Context()
    monitor = pyudev.Monitor.from_netlink(context)
    monitor.filter_by('input')
    observer = pyudev.MonitorObserver(monitor, device_event)
    observer.start()
    # Watch macros.csv for changes
    config_handler = ConfigChangeHandler()
    config_observer = Observer()
    config_observer.schedule(config_handler, path="/home/pi/macropad/", recursive=False)
    config_observer.start()
    print("Waiting for gamepad to connect...")
    try:
        while True:
            time.sleep(1)
    except KeyboardInterrupt:
        stop_event.set()
        if gamepad_thread:
            gamepad_thread.join()
        config_observer.stop()
        config_observer.join()
chmod +x ~/macropad/gamepad_macro.py
Create a service file:
sudo vim /etc/systemd/system/macropad.service
Add:
[Unit]
Description=Gamepad Macro Pad Service
After=graphical.target
[Service]
ExecStart=/usr/bin/python3 /home/pi/macropad/gamepad_macro.py
Restart=always
User=pi
[Install]
WantedBy=graphical.target
Enable and start service:
sudo systemctl enable macropad.service
sudo systemctl start macropad.service
Reboot your Pi:
sudo reboot
macros.csv./home/pi/macropad/macros.csv anytime./dev/input/ (use evtest to confirm).xdotool docs).journalctl -u macropad.service -f.nmtui worked for me to connect my rav filehub 
  I'm using it so I can run a server with music on a raspberry pi that I can connect to from the ios files app
  It's cool because I can use Tau DJ without worrying about running out of internal storage space
add to /etc/samba/smb.conf
force user = bweew
vfs objects = streams_xattr
| Instrument | MIDI Command | 
|---|---|
| drums | B0 00 78 B0 20 00 C0 | 
| piano | B0 00 00 B0 20 00 C0 01 | 
| bass | B0 00 00 B0 20 00 C0 21 | 
| jazz-gt | B0 00 00 B0 20 00 C0 1A | 
on release, scroll down to the bottom where Midi Actions are to choose send midi message. Custom hex midi messages are key! Before I tried using program change and it wouldn't let me get my drums even if i told it it send on midi channel 10.
my updated loopy pro templatezxcv records first 4 loops, asdf selects drums,bass,jazzgt,piano. I added buttons to select other sounds, kept it small to work on an iphone se but more roomy on a bigger screen of course.
#!/bin/bash
# Loop through all PDF files in the current directory
for file in *.pdf; do
  # Skip if no PDF files
  [ -e "$file" ] || continue
  # Set output file name
  output="${file%.pdf}.bw.pdf"
  echo "Converting: $file -> $output"
  # Ghostscript command to convert to grayscale
  gs \
    -sDEVICE=pdfwrite \
    -dCompatibilityLevel=1.4 \
    -dProcessColorModel=/DeviceGray \
    -dColorConversionStrategy=/Gray \
    -dColorConversionStrategyForImages=/Gray \
    -dAutoRotatePages=/None \
    -dNOPAUSE -dBATCH -dQUIET \
    -sOutputFile="$output" "$file"
done
I installed vosk in a venv inside a directory for nerd-dictation which is another script that works great if you want to run vosk in the background and output it into vim. Heres my transcribe.sh for running vosk-transcriber on audio files
#!/bin/bash
# Activate the virtual environment
source "$HOME/.applications/nerd-dictation/venv/bin/activate"
# Check if a file argument was provided
if [[ -z "$1" ]]; then
    echo "Usage: $0 "
    exit 1
fi
AUDIO_FILE="$1"
# Check that the file exists
if [[ ! -f "$AUDIO_FILE" ]]; then
    echo "Error: File '$AUDIO_FILE' not found."
    exit 1
fi
# Run transcription and output to file
vosk-transcriber -i "$AUDIO_FILE" -o test.txt
# Print the output to the terminal
echo "Transcription output:"
cat test.txt
 heres my vosk.sh for running nerd-dictation
#!/bin/bash
# Absolute path to the project
BASEDIR="$HOME/.applications/nerd-dictation"
# Activate the virtual environment
source "$BASEDIR/venv/bin/activate"
# Run nerd-dictation with the 'begin' command
"$BASEDIR/nerd-dictation" begin
came across this 5mb app on the hunt for a parametric modeller for cad stuff. you can import text files extrude them, set the background green and key them out in lumafusion to add cool 3d animated text. This is my basic script:
define words import "Text.txt"
font "Menlo-Bold"
color grey
extrude {
  size 2 2 0.5 
  metallicity 0.9
  text words
}
//background green
shapescript mobile on the app store
a 6.99$ cad vectorizing app that seems promising for local offline use, 15mb. its nice to see something thats a one time payment instead of subscription.
heres the link to it
on the app store
| Font Name | Style | Common Use Case | License Info | 
|---|---|---|---|
| Bebas Neue | All-caps, tall, condensed | Action, thriller, indie posters | Free for commercial use | 
| League Spartan (Condensed) | Bold, geometric, narrow | Modern drama, minimalist films | Open source (OFL) | 
| Nexa Light / Thin | Light, clean, minimalist | Sci-fi, tech, design-driven | Commercial license needed | 
| Futura Condensed | Geometric, classic sans | Sci-fi, classic films | Commercial license needed | 
| Gotham Narrow / Light | Modern, versatile sans | Drama, thriller, biopics | Commercial license (Hoefler) | 
| Roboto Condensed Light | Digital, minimal | Sci-fi, modern thrillers | Free (Google Fonts) | 
| Helvetica Neue Thin | Sleek, iconic sans | Drama, minimalist | Commercial license (Adobe) | 
| DIN Condensed | Industrial, narrow, bold | Thriller, noir, military themes | Commercial license needed | 
| Montserrat Thin | Elegant, modernist | Romance, indie, drama | Free (Google Fonts) | 
| Eurostile Condensed | Futuristic, squarish | Cyberpunk, tech, space themes | Commercial license needed | 
The fix - thunar archive plugin 
I knew I needed xarchiver but despite being installed it wasn't showing up. what i needed was the plugin version
sudo apt install xarchiver thunar-archive-plugin
csvxlsx converter app on the ios app store
Affinity publisher on ipad doesn't support csv imports. Datamerge is only on the desktop version. You can import xlsx spread sheets. I prefer being able to quickly enter in data using textastic as csv or shortcuts actions to streamline the prompting of forms for quickly capturing things. I opened up an xlsx made from some free csv converter websites hoping it would look like xml but it was unreadable junk. Thankfully I found a small app that does exactly what I want locally it was only a buck and it doesn't ask for permissions or take up tons of space. numbers is great but its huge. This is perfect because its only 2mb. Hopefully affinity adds csv support but for now im happy with this work around for prettying up my tables.
| Term | Definition | 
|---|---|
| Baseline | The invisible line on which most letters sit. | 
| Cap Height / Cap Line | The top boundary of uppercase letters. | 
| X‑Height | The height of lowercase letters (like “x”), excluding ascenders and descenders. | 
| Ascender | The part of a lowercase letter that extends above the x‑height (e.g., “h”, “b”). | 
| Descender | The part of a lowercase letter that extends below the baseline (e.g., “g”, “y”). | 
| Serif | Small strokes attached at the end of letterforms; found in serif typefaces. | 
| Sans‑Serif / Grotesque | Typefaces without serifs; “Grotesque” is an early sans‑serif category. | 
| Slab Serif | Serif typeface with thick, block‑like serifs. | 
| Monospaced | A font where each character takes up the same horizontal width. | 
| Ligature | Two or more characters joined into a single glyph (e.g., “fi”, “æ”). | 
| Kerning | Adjustment of space between specific letter pairs. | 
| Tracking | Uniform adjustment of spacing across a range of characters. | 
| Leading (Line‑Spacing) | Vertical space between baselines of consecutive lines of text. | 
| Weight | The thickness of strokes in a typeface (e.g., Light, Bold). | 
| Italic / Oblique | A slanted version of the font; italics are redesigned, obliques are mechanically slanted. | 
| Typeface vs. Font | Typeface is the design; font refers to a specific file or style implementation. | 
| Glyph | A single visual representation of a character in a font. | 
| Alternate Glyph / Swash | Optional stylized or decorative glyph variations. | 
| Stroke / Stem | The lines that make up a glyph; stems are the main vertical strokes. | 
| Bowl / Counter / Aperture | Enclosed or partially enclosed spaces in letters; apertures are open counters. | 
| Arm / Leg / Shoulder / Spine | Specific stroke parts—arms and legs extend, shoulders curve, the spine is the central curve of an “S”. | 
| Apex / Vertex | The upper (apex) or lower (vertex) pointed junctions of strokes. | 
| Arc | A curved stroke element within letters. | 
| Foot / Spur | The base of a stroke or a small projection from a curved stroke. | 
| Ball / Teardrop Terminal | Rounded decorative stroke endings, often found on serif fonts. | 
| Joint / Crotch | The point where two strokes meet, like in “v”. | 
| Double‑Story | Letters like “a” or “g” with two counters (e.g., Times “a”). | 
| Point Size | The size of the font, measured in points (~1/72 inch). | 
| Em / En (units) | Em equals the current font size; En is half that. Used for spacing metrics. | 
| Condensed / Expanded | Width-variant styles of a typeface. | 
| Contrast | Variation between thick and thin strokes in a font. | 
| Typographic Color / Rhythm | The overall texture or ‘grayness’ of text blocks. | 
| Hierarchy / Scale | Visual importance created through size, weight, etc. | 
| Legibility / Readability | How easily text can be read, influenced by spacing, x‑height, etc. | 
| Copyfitting / Optimal Line Length | Adjusting font and layout for readability—ideal line length is typically 50–70 chars. | 
| Widows / Orphans / Rivers | Layout issues—lone lines or distracting vertical spaces in paragraph text. | 
| Dingbats / Fleurons | Symbol or ornamental fonts (bullet fonts, decorative elements). | 
| Drop Cap | A large initial letter spanning multiple lines. | 
| Pilcrow / Ellipsis / Octothorp | Special characters like ¶, …, and #. | 
| Raster / Anti‑aliasing | Pixel rendering of fonts and smoothing techniques on screens. | 
| Hinting | Instructions in fonts improving legibility at small sizes. | 
| Static / Kinetic / Fluid Typography | Static, animated, or responsive typographic styles. | 
| Axis / Stress | The orientation of stroke thickness variation in letterforms. | 
| Small Caps | Capital letterforms scaled to x‑height. | 
| Subscript / Superscript | Smaller characters positioned below or above the baseline. | 
| Gutter | Spacing between columns in multi-column layouts. | 
| Justify | Aligning text evenly to both left and right margins. | 
| Typography | The craft and technique of arranging type. | 
| GSUB (Glyph Substitution Table) | OpenType table that substitutes glyphs—used for ligatures, alternates, contextual forms. :contentReference[oaicite:1]{index=1} | 
| GPOS (Glyph Positioning Table) | OpenType table that handles precise glyph placement—kerning, mark positioning, cursive attachments. :contentReference[oaicite:2]{index=2} | 
| GDEF (Glyph Definition Table) | OpenType table that classifies glyphs (base, mark, ligature) and defines caret positions. | 
| BASE (Baseline Table) | OpenType table for baseline alignment across scripts (e.g., roman, ideographic, hanging). | 
| JSTF (Justification Table) | OpenType table that supports script-specific justification (e.g., Arabic kashida). | 
| Unicode | The universal character encoding standard covering nearly all scripts and symbols. | 
| Blackletter | A Gothic script style (Textura, Fraktur) with medieval calligraphic texture. | 
| Transitional Serif | Serif style between old-style and modern (e.g., Baskerville), moderate contrast. | 
| Old‑style Serif | Serif faces with diagonal stress and bracketed serifs; inspired by Renaissance writing. | 
| Didone / Modern Serif | High-contrast serif fonts with vertical stress and fine hairlines (e.g., Bodoni). | 
| Display Typeface | Highly stylized fonts for headlines or large sizes, often too decorative for body text. | 
| Text Typeface | Fonts optimized for body text and readability at small sizes. | 
| Geometric Sans‑Serif | Sans fonts based on simple geometric shapes (e.g., Futura). | 
| Humanist Sans‑Serif | Sans faces with calligraphic influence and subtle stroke contrast. | 
| Neo‑Grotesque Sans‑Serif | Neutral, modern sans-serifs (e.g., Helvetica, Univers). | 
| Script Typeface | Typefaces that mimic cursive handwriting or calligraphy. | 
| Variable Font | A single font file that supports multiple axes (weight, width, optical size). | 
| Ligature Caret | A marker in ligature glyphs to define cursor/caret placement. | 
| Contextual Alternates (calt) | An OpenType feature for substituting glyphs based on context. | 
| Stylistic Set (ssXX) | Predefined alternate glyph sets that can be turned on manually. | 
| Oldstyle Figures (onum) | Numerals with varied heights and alignments for flowing text. | 
| Lining Figures (lnum) | Numerals aligned to cap height, consistent with uppercase letters. | 
| Proportional Figures (pnum) | Numbers with variable widths designed for visual harmony. | 
| Tabular Figures (tnum) | Monospaced numerals for tables and aligned columns. | 
| Discretionary Ligatures (dlig) | Decorative ligatures applied optionally for stylistic effect. | 
| Fractions (frac / afrc) | OpenType features that auto-create fraction glyphs. | 
| Swash Capitals | Highly decorative uppercase glyphs, often with flourishing strokes. | 
| Initial/Final Forms (init / fina) | Contextual forms used at the beginning or end of words (common in Arabic). | 
| Split Diacritics | Diacritics positioned separately from base glyphs (e.g., Vietnamese). | 
| Glyph Coverage | The set of Unicode blocks and scripts supported by a font. | 
| Script Tag | An OpenType label identifying the script for a set of features (e.g., “latn”). | 
| Feature Tag | A four-letter code defining OpenType features (e.g., kern, liga). | 
| Lookup Table | A GSUB/GPOS structure defining specific substitutions or positioning rules. | 
| Coverage Table | Specifies which glyphs are affected by a lookup in GSUB/GPOS. | 
Arandr was scriptable and made sense after being replaced with raindrop I couldn't find any info on setting up a config for raindrop the drop in Arandr replacement. First I added an exec no startup id to load raindrop on login with i3 but I finally came up with a better solution.
  exec --no-startup-id xrandr --output HDMI-1 --mode 1680x1050
  The raspberry pi loads perfectly when I am on my smaller computer monitor but when on the TV text would be cut off on the top of the screen. This was bugging me for ages. I'm glad I finally have this sorted out so all I have to do is plug it in and it auto starts
you need to flick the switch on the back of the controller to d instead of x for direct mode instead of x mode 
  you get a permissions error about usb devices to fix that create a udev rule 
sudo vim /etc/udev/rules.d/99-logitech-f310.rules
# Logitech F310 Gamepad in DirectInput mode
KERNEL=="hidraw*", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c216", MODE="0666", GROUP="plugdev"
sudo udevadm control --reload
sudo udevadm trigger
sudo usermod -aG plugdev $USER
its cool not needing to use antimicrox, this is as far as I got with the mapping. I was hoping to map the superknobs to controll the delay but have'nt figured it out yet
  I still need to add the left/right nudge functionality
shift 1-8 for samples, removed the loop stuff because i never use it,
  ctrl vx turn deck 1 super knob up and down c resets
 ctrl r angle and m are up and down for deck 2 super knob 
  ctrl c and ctrl left angle bracket turn super knob send to zero
[Sampler1]
cue_gotoandplay Shift+!
[Sampler2]
cue_gotoandplay Shift+@
[Sampler3]
cue_gotoandplay Shift+#
[Sampler4]
cue_gotoandplay Shift+$
[Sampler5]
cue_gotoandplay Shift+%
[Sampler6]
cue_gotoandplay Shift+^
[Sampler7]
cue_gotoandplay Shift+&
[Sampler8]
cue_gotoandplay Shift+*
// -----------
// THE SUPER KNOB
// -----
[QuickEffectRack1_[Channel1]_Effect1]
enabled b
[QuickEffectRack1_[Channel1]]
super1_down Ctrl+x
super1_set_default Ctrl+c
super1_up Ctrl+v
[QuickEffectRack1_[Channel2]_Effect1]
enabled n
[QuickEffectRack1_[Channel2]]
super1_down Ctrl+m
super1_set_default Ctrl+,
super1_up Ctrl+.
Its like a spreadsheet its really easy to see everything this way.
  trying a few clipboard managers out so I don't need to manually type everything out each time.
  diodon, parcellite, copyq
out of all of these my favorite is autohotkey
With it I can easily set it up to label genres like shift 1 jungle shift 2 footwork etc..
kind of freaks me out for djing.
tau lets you back up your database to iCloud or dropbox
it's stored locally within the app.
be careful because it might pull down an old version and overwrite your hard work setting cue points and adjusting beat grids.
They say the safest thing is to turn off your device to prevent corrupting it.
my hercules dj control compact mapping
They got rid of the tempo faders on this controller. The software workaround is to hold shift and turn the jog wheel but the default mapping doesn't do that. This map fixes that but at the expense of being able to finely nudge which isn't great but its works if you just use the touch screen for that.
michael harmon is the man for making this fontforge tutorial series on youtube.
install pipewire-jack and run pw-jack renoise to run it with the jack settting but have it bridged to run in the back with pipewire
Its a 3.99 IAP
  beorg encryption
  I usually sync everything in icloud and the notes app lets you lock notes 
  testing it out by using dropbox and syncing notes using organice.200ok.ch 
  to decrypt on linux:
gpg -d mynote.org
you can use the iSH app to decrypt also 
  
  apk add gnupg
  I was sad
when this app stoped working it was a one time purchase light version without dvs and midi but still very wicked. I was able to still download it and install from under purchase history but it would stuuter.
the fix:
under output options enable experimental 96k output
im so glad it works again
they no longer aell dj player pro
tried to install that and it wouldnt let me subscribe.
the app is now a one time purchase of 50$ called tau djv1
sudo vim /boot/config.txt
#on the dtoverlay line add:
fps=30,speed=42000000
#so it reads like
dtoverlay=waveshare35a,fps=30,speed=42000000
this makes it refresh faster at the expense of screwing up the colors a bit
inside it add:
exec i3
# if tty loads then startx and i3 if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then startx fi
in .config/i3/config put:
# This file has been auto-generated by i3-config-wizard(1). # It will not be overwritten, so edit it as you like. # # Should you change your keyboard layout some time, delete # this file and re-run i3-config-wizard(1). # # i3 config file (v4) # # Please see https://i3wm.org/docs/userguide.html for a complete reference! set $mod Mod4 # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. font pango:monospace 12 # This font is widely installed, provides lots of unicode glyphs, right-to-left # text rendering and scalability on retina/hidpi displays (thanks to pango). #font pango:DejaVu Sans Mono 8 # Start XDG autostart .desktop files using dex. See also # https://wiki.archlinux.org/index.php/XDG_Autostart exec --no-startup-id dex --autostart --environment i3 # The combination of xss-lock, nm-applet and pactl is a popular choice, so # they are included here as an example. Modify as you see fit. # xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the # screen before suspend. Use loginctl lock-session to lock your screen. exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork # NetworkManager is the most popular way to manage wireless networks on Linux, # and nm-applet is a desktop environment-independent system tray GUI for it. exec --no-startup-id nm-applet # Use pactl to adjust volume in PulseAudio. set $refresh_i3status killall -SIGUSR1 i3status bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod # move tiling windows via drag & drop by left-clicking into the title bar, # or left-clicking anywhere into the window while holding the floating modifier. tiling_drag modifier titlebar # start a terminal bindsym $mod+Return exec i3-sensible-terminal # kill focused window bindsym $mod+Shift+q kill # start dmenu (a program launcher) #bindsym $mod+d exec --no-startup-id dmenu_run # A more modern dmenu replacement is rofi: bindsym $mod+d exec "rofi -modi drun,run -show drun" # There also is i3-dmenu-desktop which only displays applications shipping a # .desktop file. It is a wrapper around dmenu, so you need that installed. # bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop # change focus bindsym $mod+j focus left bindsym $mod+k focus down bindsym $mod+l focus up bindsym $mod+semicolon focus right # alternatively, you can use the cursor keys: bindsym $mod+Left focus left bindsym $mod+Down focus down bindsym $mod+Up focus up bindsym $mod+Right focus right # move focused window bindsym $mod+Shift+j move left bindsym $mod+Shift+k move down bindsym $mod+Shift+l move up bindsym $mod+Shift+semicolon move right # alternatively, you can use the cursor keys: bindsym $mod+Shift+Left move left bindsym $mod+Shift+Down move down bindsym $mod+Shift+Up move up bindsym $mod+Shift+Right move right # split in horizontal orientation bindsym $mod+h split h # split in vertical orientation bindsym $mod+v split v # enter fullscreen mode for the focused container bindsym $mod+m fullscreen toggle # change container layout (stacked, tabbed, toggle split) #bindsym $mod+s layout stacking #bindsym $mod+w layout tabbed #bindsym $mod+e layout toggle split # toggle tiling / floating bindsym $mod+Shift+space floating toggle # change focus between tiling / floating windows bindsym $mod+space focus mode_toggle # focus the parent container bindsym $mod+a focus parent # focus the child container #bindsym $mod+d focus child # Define names for default workspaces for which we configure key bindings later on. # We use variables to avoid repeating the names in multiple places. set $ws1 "1" set $ws2 "2" set $ws3 "3" set $ws4 "4" set $ws5 "5" set $ws6 "6" set $ws7 "7" set $ws8 "8" set $ws9 "9" set $ws10 "10" # switch to workspace bindsym $mod+1 workspace number $ws1 bindsym $mod+2 workspace number $ws2 bindsym $mod+3 workspace number $ws3 bindsym $mod+4 workspace number $ws4 bindsym $mod+5 workspace number $ws5 bindsym $mod+6 workspace number $ws6 bindsym $mod+7 workspace number $ws7 bindsym $mod+8 workspace number $ws8 bindsym $mod+9 workspace number $ws9 bindsym $mod+0 workspace number $ws10 # move focused container to workspace bindsym $mod+Shift+1 move container to workspace number $ws1 bindsym $mod+Shift+2 move container to workspace number $ws2 bindsym $mod+Shift+3 move container to workspace number $ws3 bindsym $mod+Shift+4 move container to workspace number $ws4 bindsym $mod+Shift+5 move container to workspace number $ws5 bindsym $mod+Shift+6 move container to workspace number $ws6 bindsym $mod+Shift+7 move container to workspace number $ws7 bindsym $mod+Shift+8 move container to workspace number $ws8 bindsym $mod+Shift+9 move container to workspace number $ws9 bindsym $mod+Shift+0 move container to workspace number $ws10 # reload the configuration file bindsym $mod+Shift+c reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $mod+Shift+r restart # exit i3 (logs you out of your X session) bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" # resize window (you can also use the mouse for that) mode "resize" { # These bindings trigger as soon as you enter the resize mode # Pressing left will shrink the window’s width. # Pressing right will grow the window’s width. # Pressing up will shrink the window’s height. # Pressing down will grow the window’s height. bindsym j resize shrink width 10 px or 10 ppt bindsym k resize grow height 10 px or 10 ppt bindsym l resize shrink height 10 px or 10 ppt bindsym semicolon resize grow width 10 px or 10 ppt # same bindings, but for the arrow keys bindsym Left resize shrink width 10 px or 10 ppt bindsym Down resize grow height 10 px or 10 ppt bindsym Up resize shrink height 10 px or 10 ppt bindsym Right resize grow width 10 px or 10 ppt # back to normal: Enter or Escape or $mod+r bindsym Return mode "default" bindsym Escape mode "default" bindsym $mod+r mode "default" } bindsym $mod+r mode "resize" # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) bar { status_command i3status } #remove title bar for_window [class="^.*"] border pixel 0 #open file manager bindsym $mod+f exec thunar bindsym $mod+w exec firefox
Created: 2025-06-20 Fri 03:59
inside it add:
exec i3
# if tty loads then startx and i3 if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then startx fi
in .config/i3/config put:
# This file has been auto-generated by i3-config-wizard(1). # It will not be overwritten, so edit it as you like. # # Should you change your keyboard layout some time, delete # this file and re-run i3-config-wizard(1). # # i3 config file (v4) # # Please see https://i3wm.org/docs/userguide.html for a complete reference! set $mod Mod4 # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. font pango:monospace 12 # This font is widely installed, provides lots of unicode glyphs, right-to-left # text rendering and scalability on retina/hidpi displays (thanks to pango). #font pango:DejaVu Sans Mono 8 # Start XDG autostart .desktop files using dex. See also # https://wiki.archlinux.org/index.php/XDG_Autostart exec --no-startup-id dex --autostart --environment i3 # The combination of xss-lock, nm-applet and pactl is a popular choice, so # they are included here as an example. Modify as you see fit. # xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the # screen before suspend. Use loginctl lock-session to lock your screen. exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork # NetworkManager is the most popular way to manage wireless networks on Linux, # and nm-applet is a desktop environment-independent system tray GUI for it. exec --no-startup-id nm-applet # Use pactl to adjust volume in PulseAudio. set $refresh_i3status killall -SIGUSR1 i3status bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod # move tiling windows via drag & drop by left-clicking into the title bar, # or left-clicking anywhere into the window while holding the floating modifier. tiling_drag modifier titlebar # start a terminal bindsym $mod+Return exec i3-sensible-terminal # kill focused window bindsym $mod+Shift+q kill # start dmenu (a program launcher) #bindsym $mod+d exec --no-startup-id dmenu_run # A more modern dmenu replacement is rofi: bindsym $mod+d exec "rofi -modi drun,run -show drun" # There also is i3-dmenu-desktop which only displays applications shipping a # .desktop file. It is a wrapper around dmenu, so you need that installed. # bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop # change focus bindsym $mod+j focus left bindsym $mod+k focus down bindsym $mod+l focus up bindsym $mod+semicolon focus right # alternatively, you can use the cursor keys: bindsym $mod+Left focus left bindsym $mod+Down focus down bindsym $mod+Up focus up bindsym $mod+Right focus right # move focused window bindsym $mod+Shift+j move left bindsym $mod+Shift+k move down bindsym $mod+Shift+l move up bindsym $mod+Shift+semicolon move right # alternatively, you can use the cursor keys: bindsym $mod+Shift+Left move left bindsym $mod+Shift+Down move down bindsym $mod+Shift+Up move up bindsym $mod+Shift+Right move right # split in horizontal orientation bindsym $mod+h split h # split in vertical orientation bindsym $mod+v split v # enter fullscreen mode for the focused container bindsym $mod+m fullscreen toggle # change container layout (stacked, tabbed, toggle split) #bindsym $mod+s layout stacking #bindsym $mod+w layout tabbed #bindsym $mod+e layout toggle split # toggle tiling / floating bindsym $mod+Shift+space floating toggle # change focus between tiling / floating windows bindsym $mod+space focus mode_toggle # focus the parent container bindsym $mod+a focus parent # focus the child container #bindsym $mod+d focus child # Define names for default workspaces for which we configure key bindings later on. # We use variables to avoid repeating the names in multiple places. set $ws1 "1" set $ws2 "2" set $ws3 "3" set $ws4 "4" set $ws5 "5" set $ws6 "6" set $ws7 "7" set $ws8 "8" set $ws9 "9" set $ws10 "10" # switch to workspace bindsym $mod+1 workspace number $ws1 bindsym $mod+2 workspace number $ws2 bindsym $mod+3 workspace number $ws3 bindsym $mod+4 workspace number $ws4 bindsym $mod+5 workspace number $ws5 bindsym $mod+6 workspace number $ws6 bindsym $mod+7 workspace number $ws7 bindsym $mod+8 workspace number $ws8 bindsym $mod+9 workspace number $ws9 bindsym $mod+0 workspace number $ws10 # move focused container to workspace bindsym $mod+Shift+1 move container to workspace number $ws1 bindsym $mod+Shift+2 move container to workspace number $ws2 bindsym $mod+Shift+3 move container to workspace number $ws3 bindsym $mod+Shift+4 move container to workspace number $ws4 bindsym $mod+Shift+5 move container to workspace number $ws5 bindsym $mod+Shift+6 move container to workspace number $ws6 bindsym $mod+Shift+7 move container to workspace number $ws7 bindsym $mod+Shift+8 move container to workspace number $ws8 bindsym $mod+Shift+9 move container to workspace number $ws9 bindsym $mod+Shift+0 move container to workspace number $ws10 # reload the configuration file bindsym $mod+Shift+c reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $mod+Shift+r restart # exit i3 (logs you out of your X session) bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" # resize window (you can also use the mouse for that) mode "resize" { # These bindings trigger as soon as you enter the resize mode # Pressing left will shrink the window’s width. # Pressing right will grow the window’s width. # Pressing up will shrink the window’s height. # Pressing down will grow the window’s height. bindsym j resize shrink width 10 px or 10 ppt bindsym k resize grow height 10 px or 10 ppt bindsym l resize shrink height 10 px or 10 ppt bindsym semicolon resize grow width 10 px or 10 ppt # same bindings, but for the arrow keys bindsym Left resize shrink width 10 px or 10 ppt bindsym Down resize grow height 10 px or 10 ppt bindsym Up resize shrink height 10 px or 10 ppt bindsym Right resize grow width 10 px or 10 ppt # back to normal: Enter or Escape or $mod+r bindsym Return mode "default" bindsym Escape mode "default" bindsym $mod+r mode "default" } bindsym $mod+r mode "resize" # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) bar { status_command i3status } #remove title bar for_window [class="^.*"] border pixel 0 #open file manager bindsym $mod+f exec thunar bindsym $mod+w exec firefox
Created: 2025-06-20 Fri 03:57
Plug 'jamessan/vim-gnupg'
" GPG SETTINGS for just password
let g:GPGPreferSymmetric = 1
" gpg so temp is also encrypted
" Prevent backup files (avoid leaving decrypted content on disk)
set nobackup
set nowritebackup
" Encrypt temporary files too
let g:GPGUseAgent = 1
Add above to vimrc and below to bashrc
# vim gpg
GPG_TTY=`tty`
export GPG_TTY
This symmetrical encryption prompts for a password on save and for 10 mins lets you re-open without a password in vim. To clear the cache so you are prompted immediately run in the terminal:
gpgconf --kill gpg-agent
I downloaded FreeCad as an app image I want to create a desktop shortcut but I needed an Icon
./freecad.AppImage --appimage-extract
csvtool col 4 vertagogo.csv | tail -n +2 | awk -F: '{
    min=$1;
    sec=$2;
    total += min * 60 + sec;
} END {
    h = int(total / 3600);
    m = int((total % 3600) / 60);
    s = total % 60;
    if (h > 0) {
        printf "Total Duration: %d hour%s %d minute%s %d second%s\n",
            h, (h!=1?"s":""),
            m, (m!=1?"s":""),
            s, (s!=1?"s":"");
    } else if (m > 0) {
        printf "Total Duration: %d minute%s %d second%s\n",
            m, (m!=1?"s":""),
            s, (s!=1?"s":"");
    } else {
        printf "Total Duration: %d second%s\n", s, (s!=1?"s":"");
    }
}'
Assuming duration is in the 4th col then this script works
I also jumped through some hoops trying to figure out a way to sort them in the CLI by bpm but you can just click on them in mix.
this shell script makes an html table out of a simple 2 col csv
#!/bin/sh
echo ""
echo "  item quantity " $1 " " $2 " 
"
I don't want to install numbers on my Ipad. A-shell mini/pythonista can run csvkit (csvtools is another good one) instead to do alot of basic data
The way I would do it before was to use scribus but then I found pages can do linked text boxes.
Heres how you would do the formula to get the same result in libre office calc
=A2 & CHAR(10) & B2 & CHAR(10) & C2
| # | Math Trick | Description | Use Case Example | 
|---|---|---|---|
| 1 | Moving Averages | Smooths data using a rolling average (SMA, WMA, EMA) | Forecasting trends in sales or traffic | 
| 2 | Exponential Smoothing | Weights recent data more for responsive short-term forecasting | Predicting next day's value | 
| 3 | Linear Regression | Fits a straight trend line to data | Predicting future sales or prices | 
| 4 | Polynomial Regression | Fits a curve to account for nonlinear trends | Modeling growth with acceleration | 
| 5 | Logarithmic/Exponential Trend | Fits curved models like exponential or logarithmic | Forecasting growth or decay | 
| 6 | Percent Change / Growth Rate | Uses % increase/decrease to project future values | Estimating next month's revenue | 
| 7 | Seasonal Averaging | Averages data by time periods (month, week, etc.) | Forecasting monthly sales | 
| 8 | Rolling Regression | Applies linear regression over a sliding window | Short-term stock price prediction | 
| 9 | Z-Score Anomaly Detection | Identifies and removes outliers using standard deviations | Cleaning noisy time series | 
| 10 | Fourier Transform (FFT) | Finds cyclical patterns via frequency analysis | Detecting seasonality in demand patterns | 
why not have another 10?
| # | Math Trick | Description | Use Case Example | 
|---|---|---|---|
| 11 | CAGR (Compound Annual Growth Rate) | Measures average annual growth rate over time | Forecasting investment growth | 
| 12 | Autoregressive (AR) Models | Uses past values to predict the next one | Time series forecasting like AR(1), AR(2) | 
| 13 | Differencing (Δ) | Subtracts previous values to remove trend or seasonality | Stationarizing a time series | 
| 14 | Cumulative Sum (CUSUM) | Tracks cumulative change from a reference point | Detecting slow shifts in process metrics | 
| 15 | Holt-Winters (Triple Smoothing) | Adds seasonality and trend to exponential smoothing | Forecasting seasonally fluctuating data | 
| 16 | Simple Lagged Features | Adds previous values as new columns | Enhancing model input with past behavior | 
| 17 | Normalization/Standardization | Scales data to make it comparable or Gaussian | Preprocessing before regression or modeling | 
| 18 | Clustering for Pattern Detection | Groups similar trends using K-means or DBSCAN | Discovering behavior groups in data | 
| 19 | Savitzky–Golay Filter | Smooths data while preserving shape | Denoising noisy sensor or measurement data | 
| 20 | Quantile Forecasting | Predicts a range (not just average) using percentiles | Risk modeling, demand estimation with bounds | 
10 more
| # | Math Trick | Description | Use Case Example | 
|---|---|---|---|
| 21 | Slope Calculation (Rate of Change) | Measures steepness between data points | Detecting acceleration in trends | 
| 22 | Cross-Correlation | Measures similarity between two time series | Lag detection between related variables | 
| 23 | Seasonality Index | Normalizes values by seasonal averages | Adjusting for repeating seasonal patterns | 
| 24 | Principal Component Analysis (PCA) | Reduces dimensionality while preserving variance | Feature compression before modeling | 
| 25 | Residual Analysis | Analyzes difference between actual and predicted values | Improving model accuracy by modeling errors | 
| 26 | Bootstrapping | Resamples data with replacement to estimate confidence intervals | Estimating forecast uncertainty | 
| 27 | Time Series Decomposition | Separates series into trend, seasonality, and residual | Understanding data components for forecasting | 
| 28 | Interpolation | Fills in missing values between known data points | Reconstructing incomplete datasets | 
| 29 | Weighted Least Squares (WLS) | Linear regression giving more weight to certain data points | Handling heteroscedasticity in data | 
| 30 | Bayesian Updating | Updates forecast with new data based on prior beliefs | Dynamic forecasting as new data arrives | 
| # | Math Trick | Description | Use Case Example | 
|---|---|---|---|
| 31 | K-Nearest Neighbors (KNN) Forecasting | Predicts based on the average of similar past patterns | Forecasting similar behavior sequences | 
| 32 | Dynamic Time Warping (DTW) | Measures similarity between time series with time shifts | Comparing sequences with misaligned timing | 
| 33 | Prophet Model (by Facebook) | Decomposable time series model with trend, seasonality, holidays | Business forecasting with multiple components | 
| 34 | Recurrent Patterns Detection | Identifies repeating patterns in time series | Analyzing periodic signals | 
| 35 | Residual Smoothing | Smooths the error component of a forecast | Reducing noise in forecast residuals | 
| 36 | Rolling Median | Like moving average, but uses median for robustness to outliers | Smoothing noisy data with outlier resistance | 
| 37 | Data Binning | Groups continuous values into categories | Trend simplification or histogram generation | 
| 38 | Signal Denoising (Wavelet Transform) | Removes high-frequency noise while preserving structure | Processing raw sensor or stock data | 
| 39 | Granger Causality Test | Determines if one time series can predict another | Identifying causal predictors | 
| 40 | Lead-Lag Analysis | Measures which variables lead or follow others in time | Input feature timing alignment | 
| 41 | Change Point Detection | Detects shifts in trend or distribution | Finding when market behavior changes | 
| 42 | Trend Strength Index | Quantifies how strong the trend is | Deciding if forecasting is appropriate | 
| 43 | Signal-to-Noise Ratio (SNR) | Compares signal strength to background noise | Evaluating data quality for prediction | 
| 44 | Elastic Net Regression | Combines Lasso and Ridge for robust regression | Forecasting with high-dimensional features | 
| 45 | Lag Correlation Matrix | Compares correlation across time lags | Feature selection from past data | 
| 46 | Time-Weighted Averages | Weighs recent data more heavily based on time decay | Real-time adaptive forecasting | 
| 47 | Histogram-Based Forecasting | Predicts based on distribution of past values | Probabilistic forecasting from historical data | 
| 48 | Rolling Standard Deviation | Tracks volatility over time | Measuring uncertainty or instability | 
| 49 | Confidence Interval Forecasting | Predicts with upper and lower bounds | Risk-aware forecasting | 
| 50 | Ensemble Averaging | Combines forecasts from multiple models | Improving accuracy through diversity |