

“I moderate heavily. If someone is rude or abusive, their comment isn’t published. Unless it’s really funny.” :-)


“I moderate heavily. If someone is rude or abusive, their comment isn’t published. Unless it’s really funny.” :-)


Gang of Four?


Exactly how I feel about it as well.


Why not if (f & (F_1 | F_3)) {? I use this all the time in embedded code.
edit: never mind; you’re checking for both flags. I’d probably use (f & (F_1 | F_3)) == (F_1 | F_3) but that’s not much different than what you wrote.


My car is a diesel. I believe catalytic converters are the usual fare for gasoline engines.


It’s just like the DEF tanks on 18 wheelers. I buy a 10L jug of it from Walmart for something like $10. In my trunk there’s a panel you remove and under it there’s a small cap very similar to the gas cap. Remove that, hook up the DEF bottle hose (the bottles come with a 12-15" corrugated hose) and very slowly pour it in. You don’t want to spill that stuff, it’s nasty not because it’s urea, but because when it dries it kind of crystallizes and makes a real bloody awful mess.
Replace the cap, replace the panel cover, close the trunk and you’re done for another 9-15mos.


It’s my understanding that the cheat was in all TDI models, but the smaller Jetta was particularly bad because it didn’t have a urea system and the fix for that model was to retrofit one. My Passat may have needed a more robust urea injector and not just software, but I can’t remember now. Either way on my year/model the fix was barely noticeable.


The dumbest part is that after I got my car updated (the Passat only needed a firmware update) the fuel economy was not even one MPG worse. It’s been a decade and I’m still regularly getting slightly better than 50MPG on the highway and low-30s in the city. There was no reason to cheat.


I’m currently driving that VW TDI – best car I’ve ever owned in 35 years. Next vehicle wasn’t going to be a Tesla, but perhaps an F150 Lightning if they ever get their head out their asses and offer a regular old e-pickup – I don’t want quad cab and a short bed, just two doors and a regular full size bed would be great. Alas, that’s hard to find in ICE, let alone electric.


those appear to be physical clones, not electronic equivalent clones. How is this specific company any different than the dozens of other earbud clones out there?


Between (old) reddit, phpbb and smf… the old reddit model wins by a landslide in my opinion. I’ve used all of these over the years and absofuckinglutely HATE phpBB and SMF, with SMF earning slightly less hatred than phpBB.
I’m also old enough to have downloaded .QWK files for offline BBS forum reading/replying and even connecting to the internet over a FidoNet-internet bridge. Lemmy did the exact right thing in copying reddit’s format.
I mainly use it to generate unit tests and it frequently makes shit up that clearly won’t work. Like directly invoking non-exported functions that I deliberately choose not to export, because they don’t need to be exported.
If you work where I work, their solution is to just so they have access to all the functions/variables I painstakingly marked static specifically to prevent them from trying to unit test the internals.


It’s called the asshole tax. Don’t be an asshole and you won’t be charged.


“Nothing is perfect” Is a hell of a way to minimize the enormity of the issue. Like wow…
Agreed except for the variables. You can pry the iterators i, j, k, the pointers p and q, and the temporary buffer buf, from my cold, dead hands.
Short variable names increase code clarity, particularly when the functions employing them are concise and named appropriately. There’s not much worse than using something like sourcedata[databufferiterator] instead of src[i]. It reminds me of authors who think that big words make them sound more intelligent. Needing or advocating auto complete in IDEs is a symptom of this kind of code smell, IMO.
Code should be clear and concise; it’s also why I fight for 8 character indentation; if your code is creeping across the screen it’s a damn good indication that the function might be too complex and should be broken up.
Exactly this. I use Shelly relays in the switch boxes and use the physical switch as an input to the Shelly relay. I have a couple AliExpress zigbee relays too that work well.
The trick is with three/four way switches where the smart relay needs continuous power and to be physically located at the end of the chain where power is actually switched to the light or outlet. Took me a while to figure that out but an SPDT relay with 120V coil solves that. The problem is space: fitting the relay to provide continuous power to the smart relay and the smart relay itself into a standard junction box with a physical switch and all the usual mess of wiring is not easy.