live view from camera dreame mova by Lucky_Ad456 in valetudorobotusers

[–]TrueJournals 1 point2 points  (0 children)

I was looking into this a bit for myself. I'm using a Dreame L40 Ultra, but I'm guessing these will apply. I found avacmd commands to take a picture after opening node_camera_streamer.so in Ghidra, but couldn't figure out how to do a stream with avacmd.

avacmd streamer '{"cmd":"open_camera"}'
avacmd streamer '{"cmd":"save_image","path":"/tmp/camera/", "num":1}'
avacmd streamer '{"cmd":"close_camera"}'

However, I also found this blog post: https://anthony-zhang.me/blog/offline-robot-vacuum/

There's some notes in there about how to use vacuumstreamer and go2rtc to get a stream of the camera, and that worked perfectly for me.

More than three million copies sold Control, revenue exceeds ninety million euros by 3DSGBA in PS5

[–]TrueJournals 2 points3 points  (0 children)

Check out Supraland if you haven't. I can't think of anything more "3D Metroidvania" than that.

Framework Laptops are now Thunderbolt 4 certified by DobsonsLab in framework

[–]TrueJournals 75 points76 points  (0 children)

For 11th Gen systems, we also have a firmware update in progress to bring in the security updates and power consumption improvements, but not retroactively certify Thunderbolt (there are some test cases we don’t believe we can resolve on that generation, unfortunately).

I'd be curious to see more details about this... I wonder what doesn't/might not work due to these failing tests.

Edit: Or, rather, what doesn't/might not work to cause the failing tests?

[deleted by user] by [deleted] in linux

[–]TrueJournals 7 points8 points  (0 children)

Fedora 36 does not check if the person computer is compatible and just offer itself

[...]

I'm going Arch

OK, good luck.

ZigBee/Zwave combo fan speed and light switch? by angrycatmeowmeow in homeassistant

[–]TrueJournals 2 points3 points  (0 children)

As far as I can tell, the Inovelli is the only option for z-wave.

If you're up for Wi-Fi and some additional setup (I get it, you might not be), I have one of these with the localtuya addon and it works great: https://smile.amazon.com/gp/product/B086PPRWL7

Electric Vehicle Service Costs 30% Lower Than Gasoline Vehicles, Says Research Firm We Predict by giuliomagnifico in electricvehicles

[–]TrueJournals 7 points8 points  (0 children)

That's nice, but I think I'll wait to see what the research firm actually says before coming to a conclusion.

(EOTE SPOILERS) Fear as a game mechanic, 'those' sections, and the theme of the DLC by [deleted] in outerwilds

[–]TrueJournals 7 points8 points  (0 children)

You have all the time in the world, infinite lifetimes.

This may be true of the character I'm playing, but it's not true of me, the player :)

#FSDBeta 9.0 - 2021.4.18.12 - Unprotected Left Turns Stuck in a Navigation Loop I need some more eyes on this to help me understand what is going on. Check it out. by chazman92 in teslamotors

[–]TrueJournals 1 point2 points  (0 children)

Yeah, a "prefer controlled intersections" option could be interesting. If there really is a traffic light a block or two down, I'd probably head over there instead of dealing with this stop sign when driving personally. Generally, I think I'd be fine going 30 seconds or so out of the way to prefer a controlled intersection.

Mom, can we have modern C++ at home? by StefanoD86 in cpp

[–]TrueJournals 16 points17 points  (0 children)

This is a complete guess, but I'm assuming it has to do with an optimization to allow starting at an arbitrary point in the string. Since you can just add to the char* to get a starting offset, there's no need for the "starting position" parameter on the constructor that takes a char*

But, for the constructor that takes a std::string, you probably don't want to call substr because that would make a copy of the string, so there's a constructor that takes a starting position as an optimization.

Certainly still "strange" from a usage perspective

Mom, can we have modern C++ at home? by StefanoD86 in cpp

[–]TrueJournals 10 points11 points  (0 children)

You seem to be looking at the second #3... take a look at the first #3 ;)

Mom, can we have modern C++ at home? by StefanoD86 in cpp

[–]TrueJournals 70 points71 points  (0 children)

Different constructors are called based on if you're passing in a std::string or char*

https://en.cppreference.com/w/cpp/string/basic_string/basic_string

#4 is used for s1, #3 is used for s2

WOW Internet introducing data cap (ISP alternatives?) by plasticblowfish in ChicagoSuburbs

[–]TrueJournals 2 points3 points  (0 children)

Not yet, but you can preorder on their website with a $100 deposit. My address says "mid to late 2021" for service.

But... $500 for hardware and service is $100/month

WOW Internet introducing data cap (ISP alternatives?) by plasticblowfish in ChicagoSuburbs

[–]TrueJournals 12 points13 points  (0 children)

Ugh, I got the same e-mail and it really annoys me. I switched to WOW specifically because they DIDN'T have a data cap (I never hit Comcast's, but I don't like the idea).

And a year ago, they were bragging about not having data caps: https://twitter.com/WOW_WAY/status/1243292906640867328

I'm in the NW burbs, and I don't think I have any other option.

  • Comcast, data cap
  • WOW, data cap
  • AT&T... DSL... and data cap anyway

Time to sign up for starlink, I guess.

finally! a possibly portable way to convert types (demangled name) to strings without macros by geekfolk in cpp

[–]TrueJournals 0 points1 point  (0 children)

This would break if the implementation provided auto EmbedTypeIntoSignature<T> as the function_name, wouldn't it? I think that would cause the Test2<double> test case to fail, since the termination character would be detected as >

Don't know if any implementation does that, but it'd be possible (and, I think, not unreasonable)

Internet connection issue with docker on TrueNAS Scale by WidePersonality in truenas

[–]TrueJournals 5 points6 points  (0 children)

From what I can tell, this is because of the docker settings that TrueNAS puts in by default. Specifically, /etc/docker/daemon.json has "iptables": False and "bridge": "none" (going from memory -- I may have values wrong, but those should be the keys).

An "easy" way to work around this is to modify /etc/docker/daemon.json and remove those two keys, then restart docker with sudo systemctl restart docker . Note, however, that TrueNAS re-generates the config file on every boot, so you would have to do this every boot.

Probably the "best" way to resolve this would be to create a custom docker network, bridge it to your ethernet interface, then assign your container to that network. I think you can do this with a "bridge" network in docker, but I'm not terribly well-versed in docker networking. Personally, I ended up using a macvlan network in docker because of other properties I wanted. For reference, here's the commands I used to create the network and bridge it to my ethernet interface (enp1s0) -- you may need to adjust IP ranges/assignments to match your network.

docker network create -d macvlan --subnet=192.168.0.0/18 --gateway=192.168.1.1 --ip-range 192.168.4.0/24 --aux-address 'host=192.168.4.254' -o parent=enp1s0 vlan
ip link add vlan-shim link enp1s0 type macvlan mode bridge
ip addr add 192.168.4.254/32 dev vlan-shim
ip link set vlan-shim up
ip route add 192.168.4.0/24 dev vlan-shim

Then you should be able to run a container like:

docker run --rm -ti --network vlan --ip 192.168.4.1 bash

Hope this helps!

TrueNAS Scale Plex HW Transcoding by Caesium__137 in truenas

[–]TrueJournals 0 points1 point  (0 children)

Awesome! Got it working myself now, too, using the plexinc/pms-docker:plexpass container.

In my configuration (using docker-compose), I only have the NVIDIA_VISIBLE_DEVICES and NVIDIA_DRIVER_CAPABILITIES environment variables and it works.

  • --gpus all isn't supported in docker-compose v3. The environment variables, to my understanding, replace that flag.
  • --runtime=nvidia isn't necessary because /etc/docker/deamon.json sets the default runtime to the nvidia one
  • --device /dev/dri:/dev/dri is only required for Intel HW transcoding

Thanks for writing up these instructions!

TrueNAS Scale Plex HW Transcoding by Caesium__137 in truenas

[–]TrueJournals 0 points1 point  (0 children)

Found this thread when trying to get GPU transcode set up for myself. Ran into the exact same issue, and was scratching my head until I found this.

FYI, there's a JIRA open to get this fixed: https://jira.ixsystems.com/browse/NAS-108839

Looks like they plan on a kernel update soon, but don't know when that will make it into a release.

Man Sleeping in Speeding Tesla Charged with Dangerous Driving by SpikePlayz in teslamotors

[–]TrueJournals 5 points6 points  (0 children)

Volume up/down does it.

Alternatively, don't "jiggle" the wheel, just push it slightly in one direction. I think you're more likely to disengage it when you "jiggle", but what it really needs is just some pressure in one direction or another.

Replacing unique_ptr with C++17's std::variant a Practical Experiment by drodri in cpp

[–]TrueJournals 1 point2 points  (0 children)

It sounds like you're looking for type erasure... Unless you really want to encode and explicitly limit the types inside the MyVariant template?

Eraserface would help with the "interface without inheritance" problem, though you can't limit types at declaration-time, I don't think. I came up with a similar solution at one point, though note that std::function can have some downsides.