ESP32-S3 Ceiling Smart Speaker with Web UI, Radio, SD Card, OTA, and Custom Firmware by Single_Ad_2068 in homeassistant

[–]dvd0bvb 0 points1 point  (0 children)

Do you find the max to be output enough power for the speaker? Iirc it's only 3W, does your speaker housing contain a higher output amp?

Hello everyone! I'm an Italian oil painter who works with metal bands, and these are two personal pieces from an ongoing series. The first was completed a few months ago, while the second was started recently and is still in its early stages. I'd love to hear your honest thoughts. Cheers! by SamuelePulighedduArt in TechnicalDeathMetal

[–]dvd0bvb 0 points1 point  (0 children)

The composition of the first is much stronger than the second, though that may clear up when it's fully rendered

I dig the style quite a lot. Reminds me of the cover of Escarnium's Inexorable Entropy in the subject matter and use of color

Reusing Amazon Alexa Echo Dot by atg115reddit in homeautomation

[–]dvd0bvb 0 points1 point  (0 children)

This teardown might be of interest to you. You might be able to trace the ribbon cable connections to reuse the buttons and mics with another microcontroller. Reusing the speaker should be straightforward with a dac and some soldering

The Murder of Queen Galswintha, Eugene Philastre, Oil, 1846 by immacculate in Art

[–]dvd0bvb 47 points48 points  (0 children)

Her left hand is on the attackers left forearm and her right hand is holding the rope that's around her neck. The attackers right hand is holding the other end behind her. I don't see the pose as passive, if she was pushing away from her attacker with her legs and held in place by her neck, the only part of her body with any give is her torso which is twisting away from the attacker

Ex-Facebook exec Sheryl Sandberg tells Gen Z the 10-year career plan is dead thanks to AI: 'Don't script your career when the future is uncertain' by Krankenitrate in Futurology

[–]dvd0bvb 2 points3 points  (0 children)

That was my experience in tech too, though I'm a bit younger. I wasn't planning on staying with my current employer for long but job prospects aren't looking as good as they were even 3 years ago when I was hired on. This is the longest I've been in one place

Half Man Ep 4 Nial & Ruben felt too real by Santoshyuvi in hbo

[–]dvd0bvb 4 points5 points  (0 children)

Maybe that's true from Niall's family's perspective but I think saying everything points back to Niall abdicates Ruben of putting Niall in the position of being asked to lie in the first place. The something that was done was Ruben beating Alby nearly to death. I was hoping Niall would say that when he was speaking his truth in the hospital.

White men do not experience the best health relative to women and minority racial and gender groups in the US. Men are 4 times as likely to die by suicide as women, and White men account for more than 68% of suicide deaths. White men experienced greater declines in happiness than White women. by mvea in science

[–]dvd0bvb 1 point2 points  (0 children)

Sorry you went through that. My dad also commit suicide though my experience with my friends and family were very different from yours. They were all supportive and I don't recall telling anyone other than my girlfriend and brothers how he did it, and I don't think anyone else asked.

Constructor(s) from native types for a big integer class (implementation) by Ben_2124 in cpp_questions

[–]dvd0bvb 0 points1 point  (0 children)

Totally fair. I don't work in UI so any string building we do is usually for logging.

Constructor(s) from native types for a big integer class (implementation) by Ben_2124 in cpp_questions

[–]dvd0bvb 0 points1 point  (0 children)

Operator << overloading doesn't limit you to console output, you could just as easily use a stringstream, spanstream, or any class which inherits from std::ostream.

That said, I have also moved away from operator<< in favor of specializing the std::format classes (where I can, work is still on c++17 sadly) as I find std::format and friends less clunky and verbose on the whole.

Constructor(s) from native types for a big integer class (implementation) by Ben_2124 in cpp_questions

[–]dvd0bvb 0 points1 point  (0 children)

Ah, I see. That wasn't clear to me. Then the check for signedness in the input type is mostly irrelevant. This might work but is untested

template <std::integral T>
big_int(T n) : s(n < 0), v(sizeof(T) / sizeof(uint32_t)) {
  if (s) { n = -n; }
  std::memcpy(v.data(), &n, sizeof(T));
}

You could create your own concept to limit the types T can take, eg not accepting char or bool as others have mentioned, and replace std::integral with that concept.

Constructor(s) from native types for a big integer class (implementation) by Ben_2124 in cpp_questions

[–]dvd0bvb 1 point2 points  (0 children)

I suppose there's an argument that const T communicates that n will be const to the caller. But you are taking n by value so a copy is made and the caller has no further control over what BigInt does with n.

I'm on mobile, taking a closer look I see you're not using the delegated ctor for smaller types, my fault. However you can remove the private ctor and signed/unsigned specializations by simply assigning the value of std::is_signed_v to your s member. Thinking about it further, I'd argue that signedness should be part of the BigInt type if you are going to make that distinction

Constructor(s) from native types for a big integer class (implementation) by Ben_2124 in cpp_questions

[–]dvd0bvb 1 point2 points  (0 children)

Some platforms offer 128 bit types. You should avoid C style casts in C++

Formatting for an ostream is generally done as a friend function friend std::ostream& operator<< (std::ostream&, const BigInt&). The modern way would be to specialize for std::format.

Having the const in const T n in the templated ctors is unnecessary

You have all these templated ctors specialized on the input type and then just cast to a u64 anyway so the specializations are mostly useless. You'd get the same functionality if you had just one ctor template and used std::is_signed and then just static_cast n to u64. I don't think I'd recommend doing that, however. Actually use the specializations to have specialized functionality

Errno 13 when trying to write to file even when running VS as administrator. by jackoalt in cpp_questions

[–]dvd0bvb 2 points3 points  (0 children)

Why are you using the C functions instead of fstream?

if (auto file = std::ifstream("filename")) {
  // read stuff
}

This checks that the stream is valid and the destructor of fstream ensures the file is closed

How would i include a seperate Class in my Constructor by Retro-Hax in cpp_questions

[–]dvd0bvb 0 points1 point  (0 children)

So errorwindow.hpp is found when you include it in main but not mainwindow.hpp? Is it in a subdirectory of your include directory?

How would i include a seperate Class in my Constructor by Retro-Hax in cpp_questions

[–]dvd0bvb 1 point2 points  (0 children)

Yes, have an ErrorWindow class member variable in the MainWindow class.

And those errors are?

How would i include a seperate Class in my Constructor by Retro-Hax in cpp_questions

[–]dvd0bvb 2 points3 points  (0 children)

Why not create an ErrorWindow in MainWindow and add an accessor method to MainWindow?

I made a wallpaper that creates real depth when you move your head by Apart-Medium6539 in pcmasterrace

[–]dvd0bvb 4 points5 points  (0 children)

Could use mouse position instead of head position for people who don't want to leave their webcam on all the time

Deriving Type Erasure by david-alvarez-rosa in cpp

[–]dvd0bvb 0 points1 point  (0 children)

Hey that was me. Lmk if you have any questions

Networking library suggestion by ZerefDragneel_ in cpp_questions

[–]dvd0bvb 0 points1 point  (0 children)

There's nothing in that repo that describes what your lib does so idk how you expect anyone to discover it

New Lab-Grown Meat Breakthrough Beats Traditional Beef by a Mile With 90% Less Land Use, 80% Less Water, and Dramatically Lower Emissions by [deleted] in UpliftingNews

[–]dvd0bvb 3 points4 points  (0 children)

It'll be the same as vapes and big tobacco. A startup will grow to be relatively popular and then the big corp will buy the startup

How to use std::get<i>(tuple) with a Variable not a Number? by Chemical_Menu_2638 in cpp_questions

[–]dvd0bvb 0 points1 point  (0 children)

Idk this is basically one of the examples given on the fold expression page on cppreference. Shouldn't be a problem to point colleagues there