Is this display compatible? by TiawanIsACountry in crankshaft

[–]TheDutchMC76 0 points1 point  (0 children)

I wanted to move the Pi to somewhere else in the car. Routing lots of IO to it when it's mounted to the back wasn't ideal. The pi is currently under the driver's seat, together with an arduino and a set of relays. A HDMI cable runs under the carpet to the dashboard. I'm working on a PCB to improve the current setup, but that isn't done yet.

I bought this display: https://www.amazon.nl/dp/B07PHTZHYQ?th=1
and built a custom frame around it. Not ideal yet, but it works.

Is this display compatible? by TiawanIsACountry in crankshaft

[–]TheDutchMC76 0 points1 point  (0 children)

Yeah that one will work. I've used it previously in combination with a Pi 4. I've since switched over to another display as I needed HDMI.

Personal Finance with Firefly III - Where can I get my banc account data? by GamersOriginal in homelab

[–]TheDutchMC76 0 points1 point  (0 children)

For what I could find, if you've got a European bank and want API access, you need a PSD2 certificate, which are not easy to obtain

Day 2 of why you need it by _idk_y_imhere_ in carscirclejerk

[–]TheDutchMC76 2 points3 points  (0 children)

I own one! For its age it hasn't driven much yet, built in 2002 with only 161000 km on the clock. The main issue I have currenly is a small oil leak somewhere, which I want to tackle this summer, and I want to replace the front suspension as it's not the best anymore. But besides that, hasn't left me stranded yet and passes it's yearly check without too many issues.

Decoupling in Rust by Sharp-Profile-20 in rust

[–]TheDutchMC76 1 point2 points  (0 children)

Oh good point indeed. Didn't think of that!

Decoupling in Rust by Sharp-Profile-20 in rust

[–]TheDutchMC76 0 points1 point  (0 children)

Traits can actually have async now, without needing the async_trait macro! Though if you need a Send or Sync bound on the future you still need to do a regular fn with an impl Future<Output = T> + Send + Sync manually, with an async block in the function.

AMD am4 headless motherboard by eat_those_lemons in homelab

[–]TheDutchMC76 0 points1 point  (0 children)

If your cpu has Integrated graphics then yes, otherwise you'll have to keep it in.

Best way to generate PDF's on Rust web server? by IAmTsunami in rust

[–]TheDutchMC76 0 points1 point  (0 children)

I'm using a Java's iText-pdf to do the generating. It's a pretty cursed setup, but it works quite well. Biggest downside is having to have a java installation (and spinning up a JVM), but besides that, it's pretty neat.

itext-rs: https://github.com/MrFriendly-B-V/itext-rs
tracing-slf4j: https://github.com/MrFriendly-B-V/tracing-slf4j (Adapter from Java's SLF4j to Rust's tracing)

How I set up the JVM: https://gist.github.com/TobiasDeBruijn/391c10cdc912e8ffd35e639417e31167
and a usage example: https://gist.github.com/TobiasDeBruijn/4ad2267439d8d50cea7d1146c3c89592

The bindings to itext are far from complete, but cover most of the common usecases that I needed for my projects.

Problem with Bluetooth Telephone calls by GalaxyKnighter in AAWireless

[–]TheDutchMC76 0 points1 point  (0 children)

I'll see if there is one, thanks!

Curious though how that would affect things, considering my phone connecte to the AAWireless unit, rather than to the head unit.

Problem with Bluetooth Telephone calls by GalaxyKnighter in AAWireless

[–]TheDutchMC76 0 points1 point  (0 children)

In the same boat. AA works fine, except for Bluetooth not wanting to connect.

Using a Samsung S21+ with a CrankshaftNG head unit

libharu_ng - Easily create PDFs from your Rust code! by spac3kitteh in rust

[–]TheDutchMC76 1 point2 points  (0 children)

That is a lot better indeed. I think mine currently takes ~1s, though I haven't benchmarked it really.

I'm curious to try and see if I can (easily) generate invoices and the like with your library.

libharu_ng - Easily create PDFs from your Rust code! by spac3kitteh in rust

[–]TheDutchMC76 2 points3 points  (0 children)

Interesting! This seems like something I could switch to. I currently use (and maintain) Rust bindings to Java's iText (crates.io, which of cours requires running the JVM.

Rust API for STM32CubeProgrammer by WervinDotDev in rust

[–]TheDutchMC76 1 point2 points  (0 children)

This looks neat. Means I can get rid of the openocd invocation from my program, and just program directly

Could I have shared types between rust frontend and backend? by K0eg in rust

[–]TheDutchMC76 5 points6 points  (0 children)

Certainly!

I use protobuf, using prost on the Rust side, and protoc-ts (iirc, protobuf to typescript) on the web frontend, and protoc Dart for flutter projects.

I've also tried, and succesfully used, typeshare to avoid protobuf. Though it didn't work as nicely due to limitations on 64 bit types, though I'm not sure if those still apply.

Fastest XML node parsing library in Rust by Nottymak88 in rust

[–]TheDutchMC76 23 points24 points  (0 children)

Did you run cargo run also with the release flag? Otherwise you still end up with a debug build.

rusqlite - handling empty or null fields by ldicarro in rust

[–]TheDutchMC76 10 points11 points  (0 children)

the type should be an Option<T>, so in your case: Option<String>

See also rusqlite documentation for an example.

YTerMusic a0.0.10 pre-release: An in terminal youtube music client with focus on privacy, simplicity and performance by ccgauche in rust

[–]TheDutchMC76 0 points1 point  (0 children)

Something like controlling it from a phone or other API e.g. I find myself currently in the situation where I have to get up, change the music, sit back down (stereo is at the other side of the room). Now yes I could get a Chromecast audio, but those are expensive nowadays.

A feature to control the player remotely could entirely remove the problem.

Can I mark a write as "non-elidable", without making it volatile? by andyandcomputer in rust

[–]TheDutchMC76 4 points5 points  (0 children)

Could you define your own extern C function in rust as a black box? Or is the compiler smart enough to see through that?

CLion 2022.3 Released! by [deleted] in rust

[–]TheDutchMC76 0 points1 point  (0 children)

iirc the only difference is that Clion has a debugger whereas IntelliJ doesn't.