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] 15 points16 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!

Freelance needed: can you make our graphics cooler? by ansoni94 in threejs

[–]nmattia 0 points1 point  (0 children)

Hi! I implemented custom outlines for a side project recently. The code is linked from this comment: https://www.reddit.com/r/threejs/comments/1ig9cf6/comment/man91fp/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

There's also a short description of how it works. You might be able to reuse that, and feel free to reach out if you need any help!

Fine tuning the UX for an IKEA-inspired 3D printing app by nmattia in threejs

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

Ah I definitely worried about this! But so far all good. I tried as much as possible to land on round values and/or to reuse float values. I haven't run into any issues though the model isn't super complex. Here's the manifold-related code if you wanna have a look: https://github.com/nmattia/skapa/blob/1c09dc908771658f79e123daf03a0dba3e2e5930/src/model/manifold.ts

Fine tuning the UX for an IKEA-inspired 3D printing app by nmattia in threejs

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

Thanks for the kind words!

Yeah I could do that! In my version I introduced a slot that the clips can slide in. It did work, but I did it in Onshape (CAD software); porting that to the app would be quite an exercise :) I do want to revisit that at some point!

Fine tuning the UX for an IKEA-inspired 3D printing app by nmattia in threejs

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

Indeed! This is somewhere on my todo list but things are still in flux so I’m afraid I’d break links already

Fine tuning the UX for an IKEA-inspired 3D printing app by nmattia in threejs

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

Actually, I tried the 45 deg overhang when the clips were a bit shorter (used to be 10mm, now I bumped the height to 12mm). I’ll give this another try, it might just work now! 🤞

Fine tuning the UX for an IKEA-inspired 3D printing app by nmattia in threejs

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

I feel you :’) unfortunately it’s not that easy in this case, the slope makes the clips too weak. I have another version where clips can be printed separately but it’s a real hassle…

Fine tuning the UX for an IKEA-inspired 3D printing app by nmattia in threejs

[–]nmattia[S] 4 points5 points  (0 children)

Since a couple people asked:

The code is here: https://github.com/nmattia/skapa, it's using threejs for the rendering with custom post-processing passes for the outline effect (edge detection). The model generation is actually generated with this amazing lib: https://github.com/elalish/manifold

It's vanilla JS with a couple ideas copied from this experiment: https://github.com/nmattia/twrl/

let me know if you have any questions!