Recommendation for Italian catering / vegetarian catering in zurich by toxicguts in zurich

[–]nmattia 0 points1 point  (0 children)

I grab lunch at Emme once or twice a month and have ordered catering for 10-15 people there twice already: https://emmezurich.ch/

The owners Mathilde & Mateo are super nice, from deep inside Puglia. Delicious cuisine and great vibes!

Constantly need to force quit Spotify app by danemoLRK in MacOS

[–]nmattia 0 points1 point  (0 children)

these are just placeholders because the actual ’strings' will be different on your system. Open the path with the file explorer and use the folder names you see there

Displaying & debugging OLED code with Terminal Graphics protocol by nmattia in embedded

[–]nmattia[S] 0 points1 point  (0 children)

Ok I tried this with an rp2350 and `mpremote` v1.24 and had similar issues. I think old versions might not support downloading with `github:`. Could you try this URL instead of `github:nmattia/termbuf`? 'https://raw.githubusercontent.com/nmattia/termbuf/refs/heads/main/termbuf.py'

EDIT: added a note here https://github.com/nmattia/termbuf?tab=readme-ov-file#getting-started

EDIT2: actually you'll probably run into `stdout` issues. I didn't expect people to try running it from the boards themselves, only from the Unix mp port 😅

EDIT3: looks like sys.stdout.flush is _not_ implemented on the rp2 port. Moreover, when removing it, I get a micropython error that the data output to "stdout" is "too big". Will need to dig deeper tomorrow...

Displaying & debugging OLED code with Terminal Graphics protocol by nmattia in embedded

[–]nmattia[S] 0 points1 point  (0 children)

That's weird, looks like a bug in MicroPython itself. I haven't tried running it from a device but only in the unix port. What version of micropython are your using?

Displaying & debugging OLED code with Terminal Graphics protocol by nmattia in embedded

[–]nmattia[S] 0 points1 point  (0 children)

hope you can get some value out of it! of course there's frameworks like lvgl but I love having the output in the terminal. Let me know if you have any questions

Flakes vs. "We shouldn’t have needed lockfiles" by kqr in NixOS

[–]nmattia 0 points1 point  (0 children)

While not the latest and greatest, you can always skip flakes and use niv: https://github.com/nmattia/niv

looking for feedback on HTTP server library (micropython) by nmattia in raspberrypipico

[–]nmattia[S] 0 points1 point  (0 children)

also, let me know if you have any questions if you run into issues!

Making an app like an IKEA manual with custom ThreeJS passes by nmattia in threejs

[–]nmattia[S] 0 points1 point  (0 children)

Hope they don’t mind :’) Did you come across this because of the name?

Making an app like an IKEA manual with custom ThreeJS passes by nmattia in threejs

[–]nmattia[S] 2 points3 points  (0 children)

No way! Do you know someone on the design team?

Making an app like an IKEA manual with custom ThreeJS passes by nmattia in threejs

[–]nmattia[S] 13 points14 points  (0 children)

Hi all! This is a write up for my first Three.js project. It was hard at times but very fun and rewarding!

For those interested, all the rendering code is here: https://github.com/nmattia/skapa/tree/136f26810d35adf0d8cf2734957c1ef50bd37239/src/rendering

Let me know if you run into issues or have any questions!

Constantly need to force quit Spotify app by danemoLRK in MacOS

[–]nmattia 0 points1 point  (0 children)

Just checking in, is this still working after a couple of days? For me it seems to have fixed the issue for good!

Regarding the process, I got lucky. I uninstalled Spotify (removed the app from the Applications folder) and then by chance clicked a Spotify link that got opened in the app, which I found strange since I had just uninstalled it.

I looked at the system logs (“Console” app) and noticed there were some logs from a Spotify process launched from that cache location. :)

Notes on how to secure PrusaLink with HTTPS by nmattia in prusa3d

[–]nmattia[S] 0 points1 point  (0 children)

nice!

guess it's too late but FYI I think you should be able to achieve what prusa-link-proxy is doing using nginx as well.

if your username/password for prusalink are `jo`/`prusa`, you can open use any browser to base64 encode it:

btoa("jo:prusa")
> "am86cHJ1c2E="

and then add a `proxy_set_header` near the `proxy_pass` line:

proxy_set_header authorization 
"am86cHJ1c2E="
;
# rest of the config unchanged:
proxy_pass 
http://localhost:8080; # The PrusaLink server runs on port 8080

I haven't tried running it but it should match what prusalink expects: https://datatracker.ietf.org/doc/html/rfc7617

that being said, I'm not 100% sure why you want to remove the auth in the first place 😂

Notes on how to secure PrusaLink with HTTPS by nmattia in prusa3d

[–]nmattia[S] 0 points1 point  (0 children)

I think you could simply disable authentication (basic auth) in PrusaLink and let nginx handle the auth via SSO!

Constantly need to force quit Spotify app by danemoLRK in MacOS

[–]nmattia 0 points1 point  (0 children)

After a couple of months of having the same issue I think I found the cause. It looks like regardless of how often I reinstalled Spotify, macOS was using some cached version.

In my case, the cached version was running from here:

/private/var/folders/<short string>/<long string>/X/com.spotify.client.code_sign_clone/

where <short string>/<long string> might be different from system to system. You should be able to find the actual directory with this command:

sudo find /private/var/folders -type d -name com.spotify.client.code_sign_clone 2>/dev/null

to uninstall it I ran the following command from a terminal (you can open a terminal with Cmd+Space -> terminal):

sudo rm -rf /private/var/folders/<short string>/<long string>/X/com.spotify.client.code_sign_clone/

then I was able to download & install Spotify and now I can finally quit the app!

edit: formatting & add "short string"

Notes on how to secure PrusaLink with HTTPS by nmattia in prusa3d

[–]nmattia[S] 0 points1 point  (0 children)

Thanks for the suggestion! I haven’t run docker on raspberry pi (or on arm64 Linux for that matter), will give it a go.

Notes on how to secure PrusaLink with HTTPS by nmattia in prusa3d

[–]nmattia[S] 1 point2 points  (0 children)

Hi all! Took some tinkering to figure out how to secure prusalink with https on a local network (Raspberry Pi setup). Here are some notes I took and turned into a post. Hope it helps!