HNHacker News
TopNewBestAskShowJobs

dsp_person

541 karma · joined December 5, 2018

Engineer/Artist located in Vancouver, BC www.digitalsignalperson.com
submissionscomments
dsp_person··on Mpv – A free, open-source, and cross-platform media player
I love their section on how to embed mpv in other apps [1]. Too bad there's not an XEmbed equivalent for Wayland [2].

[1] https://github.com/mpv-player/mpv-examples/blob/master/libmp...

[2] https://github.com/mpv-player/mpv/issues/9654

dsp_person··on PyScript: An open source platform for Python in the browser
Is this only an issue with cross-origin isolation enabled with COOP and COEP?
dsp_person··on ThreadPlotter – toolkit for punch needle embroidery with X-Y plotters (2020)
Interesting approach with the brush. I added a peristaltic pump on mine to pump paint or any fluid to a syringe tip on the XY stage [1]. Example with bleach pointillism to do stuff on fabric [2]

[1] https://x.com/dsp_person/status/1591146165181231104

[2] https://x.com/dsp_person/status/1593162129959686144

dsp_person··on ImRAD is a GUI builder for the ImGui library
it's easy nowadays to compile imgui apps to wasm/html5

examples:

https://web.imhex.werwolv.net

https://floooh.github.io/sokol-html5/imgui-sapp.html

dsp_person··on ThreadPlotter – toolkit for punch needle embroidery with X-Y plotters (2020)
Woah, I may end up trying this on my axidraw v3/a3. I like that the supply list is pretty minimal.
dsp_person··on ImRAD is a GUI builder for the ImGui library
This would be cool built in a wasm html5 app to whip up a gui in the browser and copy paste the result into your editor.

> It generates and parses C++ code which can be directly used in your application.

Is the parsing part just to read it's own code it generates?

dsp_person··on Spice: Fine-grained parallelism with sub-nanosecond overhead in Zig
> sharing it with the broader HN community

Note that I posted this, but I am not the author

dsp_person··on Spice: Fine-grained parallelism with sub-nanosecond overhead in Zig
see also readme under bench https://github.com/judofyr/spice/blob/main/bench/README.md
dsp_person··on Firefox Sidebar and Vertical tabs: try them out
On version 129 I've been playing with the CSS to make the tabs wider and thinner. Because of some code in tabbrowser.js I couldn't work around with css, it needs user_pref("ui.prefersReducedMotion", 1) for changing max width to not break tab closing.

https://gist.github.com/digitalsignalperson/7e5d4a44fbd7427a...

screenshot: https://www.reddit.com/media?url=https%3A%2F%2Fpreview.redd....

dsp_person··on Hackberry-Pi_Zero – A handheld Linux terminal using Raspberry Pi Zero 2W
ah thanks for that. I was searching for OTG not DRD

This is cool https://github.com/Frederic98/GadgetDeck

dsp_person··on Hackberry-Pi_Zero – A handheld Linux terminal using Raspberry Pi Zero 2W
Anyone know if steam deck can act as a USB OTG keyboard?

I remember this being a cool feature of those GPD Pocket computers. It would be cool to hook something up to the USB and send keystrokes from the steam deck (not necessarily from the touchscreen keyboard, but by scripts).

dsp_person··on Pnut: A C to POSIX shell compiler you can trust
I use linux-vt-setcolors in my startup, which would be a bit more convenient if it was a shell script instead of C, but it uses ioctl.

Trying to compile with this tool fails with "comp_glo_decl: unexpected declaration"

dsp_person··on Converting Codebases with LLMs
For the cost I'm curious what's the breakdown in terms of specific gpt4 model and context length?

What was the verification process like?

Also any thoughts on transpilers? There's Brython for javascript, and some others like py2many, mypyc. And the approach in oil shell: written in python, translated to C++ with custom tools

dsp_person··on Cosmic Updates (Feat. Community)
Hmm, I don't see plugins. Only a couple shaders here https://github.com/pop-os/cosmic-comp/tree/master/src/backen...
dsp_person··on Show HN: A modern Jupyter client for macOS
The ability to send code to a Jupyter kernel is pretty sweet. I made a python script that starts a kernel in the background that you can pipe commands to/from in your shell, or even open a QtConsole with the current state.

https://github.com/digitalsignalperson/comma-python

dsp_person··on Show HN: A modern Jupyter client for macOS
Anyone else live in a Jupyter QtConsole?
dsp_person··on Ask HN: Where are the good resources for learning audio processing?
I find [1] a good reference. A con is the examples are in matlab, but it's clear enough between the text and matlab code to write your own implementation.

Also [2] is a decent book for overall dsp concepts.

[1] DAFX - Digital Audio Effects (Second Edition) Edited by Udo Zölzer https://dafx.de/DAFX_Book_Page_2nd_edition/index.html

[2] Understanding Digital Signal Processing, Richard Lyons

dsp_person··on LosslessCut: The Swiss army knife of lossless video/audio editing
I wish there was a way to crop lossless and with deleting the unused data (not just metadata/bitstream filter). I feel like it must be technically possible with some kind of partial re-encode.
dsp_person··on How to Run Adobe Photoshop 2024 on Wine (Linux)
wen office365 on wine
dsp_person··on Start all of your commands with a comma (2009)
My ~/scripts is a git repo

My dotfiles/configs are a mix of the following setup on boot:

- one-way copy of config file from $repo/$path to $path (prevents apps from modifying my curated config or adding noise)

- or make it a symlink (if I want it mutable)

- or make it a bind mount (if a symlink won't work; can be a file or folder)

- or make it a one way copy but add a file watcher to copy changes back to the repo (if none of the above work. Some programs fail if the file they need is a symlink or is bind mounted)

For dotfiles using a one-way copy, whenever I change a setting I want to persist I have to manually copy or edit the original $repo/$path. I can take a diff against the repo for a hint, or use `inotifywait -r -e modify,create,delete,move . ~/.local ~/.config -m` for something new.

Not using hard links since the dotfiles are likely to be on a different filesystem (or dataset) than their target paths.

dsp_person··on Start all of your commands with a comma (2009)
One of the benefits is using fzf autocomplete. E.g. in fish type the first char of the command and Tab to launch fzf. Then `,`+Tab is a quick way to filter these custom commands. Versus `ls ~/bin` would be a lot of characters for something I do a lot, or maybe I'd be going `ls`+UpArrow+UpArrow+UpArrow to autocomplete that first.
dsp_person··on How to prolong lithium based batteries
On my laptop I have a script to set

    /sys/class/power_supply/BAT0/charge_control_end_threshold
I could imagine automating this to set the threshold to the current battery level, and incrementing the threshold by 1% every N minutes to control charge speed.

Right now I try to keep it at 50% max charge like this while plugged in at home.

dsp_person··on Python notebooks for fundamentals of music processing
> Show HN: Polymath: Convert any music-library into a sample-library with ML

I tried this the other day. There's several issues regardless of using the pinned versions in requirements.txt and trying to use debian bullseye and python 3.10.10 as implied by the provided dockerfile. At least these I noted:

- fix deprecated np.bool usage

- module 'scipy.signal' has no attribute 'hann' --> change to scipy.signal.windows.hann

- librosa.feature.melspectrogram(y, change to y=y

- needs CUDA 11

I got it to work without gpu acceleration cause of the last point. If I come back to this I'll probably just look at using demucs, librosa etc. directly (polymath.py is only ~600 lines gluing things together) and hopefully get it working with latest nvidia drivers.

Also if I have days to let this compile maybe I could get CUDA 11 from this https://aur.archlinux.org/packages/cuda-11.7

dsp_person··on Show HN: Open-Source Video Editor Web App
Are there any future solutions to the download size of a ~32MB ffmpeg wasm? Like all the browsers bundle it as a package, or it can be cached by the browser and used across multiple domains...
dsp_person··on Wprs – rootless remote desktop for Wayland (and X11, via XWayland) applications
Can this be used to switch back and forth between different computers? If I remember correct Xpra supports this.

E.g. (1) open a session on desktop with firefox, thunderbird, vscode. (2) Then grab laptop and go to a coffee shop, connect with wayland-tranpositor to the desktop to resume the session with those programs where you left off with them. (3) Then go home and resume from the desktop.

I guess for (1) and (3) you are just running both the server and client on the desktop, and then for (2) you close the client on the desktop and run it on the laptop?

It would be cool if it could do shadowing, or have multiple clients running at the same time.

dsp_person··on MuPDF WASM Viewer Demo
Does this generally satisfy accessibility needs too?
dsp_person··on libxev: A cross-platform, high-performance event loop
Can this be used to make something that feels like Qt's signals and slots?
dsp_person··on US Government funds pilot project for heated sand energy storage
so maybe someone will try putting sand in their socks
dsp_person··on US Government funds pilot project for heated sand energy storage
i can't tell if you are trolling or not
dsp_person··on 3D + 2D: Testing out my cross-platform WASM graphics engine
What do you think of sokol in comparison?
← PreviousPage 5 of 7Next →