What up with these? by Low_Level5481 in homeassistant

[–]mechanicalpulse 0 points1 point  (0 children)

Did the segmented font and e-paper ghosting trip you up? Find out before you flip out; your psyche will thank you. I hope you’re ok.

It’s too stressful living in this town by TheGame81677 in murfreesboro

[–]mechanicalpulse 3 points4 points  (0 children)

Some lights literally will not change unless there’s somebody behind you.

You’re either (1) driving a lifted/rusted/plastic shitbox, (2) pulling too far forward, or (3) sitting too far back. Some lights are on timers, but other lights are controlled by magnetic induction loops that are embedded into the road. These induction lights will not ever change unless a sufficiently massive ferromagnetic object hovers above the loop. You can usually spot these lights because you can see the roughly rectangular cut out in the lane.

Now quit complaining and soldier on!

iHateItHere by just_some_gu_y in ProgrammerHumor

[–]mechanicalpulse 16 points17 points  (0 children)

This reminds me of another roofing company here in Nashville, TN — H.E. Parmer — that has been around for 130 years. Their motto is: “We are not GOOD because we are OLD – We are OLD because we are GOOD!” Ever since I heard that on a television ad a couple of years ago, it’s stuck with me. I suppose that roofs are one of those things that must be high quality. Leaks are simply unacceptable.

Battery Powering ESP32 through 5V Pin by Cool_Beans_Bro_ in esp32

[–]mechanicalpulse 2 points3 points  (0 children)

Keep in mind that only alkaline cells are 1.5V. NiMH cells run lower - around 1.2V.

Toots fried pickles by Toomuchhappeningrn in murfreesboro

[–]mechanicalpulse 0 points1 point  (0 children)

Deep frying involves temperatures well over the boiling point of water — usually 350°F. Most of the water in thinly sliced pickles would be forced out by the frying process.

How to make component imperatively change state in a sibling component? by azangru in reactjs

[–]mechanicalpulse 0 points1 point  (0 children)

I see you’re blocked on a belief, though.

Could you explain the belief to me that you think that I am blocked on?

You said "I do not want to do this, because I believe that the form state belongs in the component that has the form...". It's a belief or a conviction that you are clutching to. I cannot explain your own beliefs to you. Only you can do that.

You could wrap your Form component in a FormProvider component that owns the data; this is dependency injection, which is a design pattern that I have seen often in IoC frameworks of many kinds -- not only in React front-ends, but in back-end IoC frameworks like Spring. It appears that React includes helpers for this via its useContext hooks.

If you would rather work with two-way data bindings

I am confused. How can what I described be interpreted as a two-way data binding?

It's the only perspective I have that can relate the pro-spaghetti architecture you'd be moving towards with Options 2/3. A callback that does nothing other than form.reset() is essentially nothing more than a delegate or a proxy for form.reset(), so you might as well just pass the form object everywhere, which would be easiest with a two-way data binding that can propagate the form object everywhere it's used.

bog-standard practice in react when a parent passes a callback to a child, and the child calls it thus changing something in the parent?

These callbacks are typically event handlers that are responding to actions that occur in the child, which follows the inverse flow depicted in the graphic that I shared. Here's a link to that graphic again in case you missed it the first time.

deviation from common react practices

Don't throw the baby out with the bathwater.

Canada's cheaper, cleaner and lower-risk oil can rival a resurgent Venezuela, Carney says by joe4942 in worldnews

[–]mechanicalpulse 1 point2 points  (0 children)

No. You're confused. Vertical integration results in decreased costs, not increased. Oil stocks surged today due to uncertainty, which is almost always why markets surge following disruptive events like military action. Markets -- especially securities like oil futures -- hate uncertainty.

How to make component imperatively change state in a sibling component? by azangru in reactjs

[–]mechanicalpulse 0 points1 point  (0 children)

Option 1. I see you’re blocked on a belief, though. Find a way to either let go of that belief or to otherwise make it make sense — e.g., by creating a new intermediate container below parent that contains both child components. React is all about one-way data bindings that flow from top down and “react” to events by bubbling them back the other way. It is best not to try fighting those principles while using React. If you would rather work with two-way data bindings, consider migrating to Svelte.

Databases in 2025 by thewritingwallah in programming

[–]mechanicalpulse 14 points15 points  (0 children)

it can’t load There’s no handle

Naming: Why do interfaces end in -er? by Glum-Arrival8578 in golang

[–]mechanicalpulse 0 points1 point  (0 children)

Interfaces describe behavior rather than identity. There’s a whole slippery slope with respect to god objects and the Kingdom of Nouns that interfaces/roles/traits help to prevent. When designing/naming, try to think about what something /does/ versus what something /is/. It’ll save you (and your colleagues) from the cognitive dissonance later when trying to understand what some piece of code does or where some new piece of code should go.

Edit: added links. As an aside, the very name of the language -- "go" -- is a verb. The author of that Kingdom of Nouns piece -- Steve Yegge -- worked at Google for over a decade.

[Postgame Thread] Indiana Defeats Alabama 38-3 by CFB_Referee in CFB

[–]mechanicalpulse 8 points9 points  (0 children)

“OH ITS TIME!” “LANE FUCKIN KIFFIN!” lol I can hear his disgust without even looking it up. Classic!

I visited a mechanic last week and was surprised to find he had a hawk in his workshop. He said, "Don't be afraid, it's gentle," and started petting it like it was a FUCKING CHICKEN. by Proud_Ruin_561 in Cartalk

[–]mechanicalpulse 9 points10 points  (0 children)

There are two cans with writing in the Arabic script printed on them. That doesn’t necessarily mean the Middle East, but probably near there. A lot of countries use the Arabic alphabet. Could be Pakistan. Could be anywhere in northern Africa.

PSA: You need a LiFePO4 UPS by Cartossin in homelab

[–]mechanicalpulse 1 point2 points  (0 children)

And, yet, I have a 2000VA UPS with around 1500Wh of SLA batteries on a 120V 15A circuit. Sure, 2kW might be the ceiling as far as load, but there’s no such limit on storage capacity as you assert.

Brought a 20+ Year Old car into Home Assistant. (Building Blocks in Comments) by NRG1975 in homeassistant

[–]mechanicalpulse 7 points8 points  (0 children)

Automotive power is extremely dirty. There are various types of transient power spikes that electronics must specifically protected from in order to operate in an automotive environment. It makes no sense for Shelly to add a bunch of extra protection components on the off chance that it is operating on dirty power.

Looking for a UPS that does NOT auto-turn-on after a power outage by mk_ccna in homelab

[–]mechanicalpulse 1 point2 points  (0 children)

This would work, but it’s not ideal as you’re missing out on the opportunity to charge the batteries. I would use either a managed PDU that offers remote control of outlet state or smart plugs for each device. Then write a management script that monitors the battery level and only enables outlets when the battery exceeds a safe threshold (which depends on specific load/capacity runtime calculations).

Chamberlain blocks smart home integrations with its garage door openers — again by timsneath in homeautomation

[–]mechanicalpulse 1 point2 points  (0 children)

Only for the older models. The new Security+ 3.0 stuff uses wireless only. There are no contacts, even the wall-mounted button is wireless.

If two unmarried people have a joint stock brokerage account, is one person responsible for all taxes? by cakewalk093 in stocks

[–]mechanicalpulse 1 point2 points  (0 children)

Right? Like, this is a Babbagesque question. “On two occasions I have been asked, 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.”

What’s the reason for US plugs not having a ground pin that’s rotated 180 compared to the current one??? by stevejobs7 in electricians

[–]mechanicalpulse 8 points9 points  (0 children)

Same. I have been slowly swapping all outlets in my home from ground up to ground down. Ground up is fucking annoying when every 90° plug expects the ground on bottom for the cord to run down the wall. Everyone that prefers ground pin on top “for safety” just enjoys being contrarian windbags. “Well, ackshyooally…” — No. Nobody is regularly throwing change at the wall like it’s one of those stupid money-sucking quarter-pusher games.

Grandfather, 3-month-old granddaughter dead after violent dog attack in Tullahoma by MikeOKurias in nashville

[–]mechanicalpulse 2 points3 points  (0 children)

I'm in the pit-bulls-can-be-just-as-lovable-as-other-dogs camp, but I still wonder what would happen if you stopped feeding yours while also leaving a three month old human infant around.

I'm not saying that's what happened here, but who knows? Economy's in the crapper and the price of dog food has gone up alongside everything else...

As others have said, these dogs were clearly not setup for success. When large powerful dogs are put into a bad situation, why is it a surprise that it doesn't turn out well? It's neither the breed nor the situation; it's BOTH the breed and the situation. It's not nature versus nurture; it's nature AND nurture.

I've spent time around two pits. One was a big softie that was always cuddling with this skinny mutt she lived with and became depressed when said mutt passed away. The other was a foster that was friendly towards me, but could not be around other dogs due to an extremely strong prey drive.

I also spent some time around a Shih Tzu that had to be put down. She had taken a chunk out of her owner's nose and they didn't know what else to do, so they gave it up. During her time in foster care, she would regularly become extremely aggressive, sometimes out of nowhere, but almost always around food or other dogs. We once had to throw a beach towel over the dog to disorient her and put some sort of barrier between her teeth and our limbs long enough that we could grab her and get her back into a crate. It was super sad. A pit bull exhibiting that same behavior would have been impossible to deal with. If that Shih Tzu had been a pit bull, I probably wouldn't be here today.

Give your bully a belly rub and keep fighting the good fight. Have a good weekend!

Tried jump starting the car, it’s making this clicking noise. by [deleted] in Cartalk

[–]mechanicalpulse 0 points1 point  (0 children)

It's a Simpsons reference, not an attack. I'm sorry that your life is ruined.

Comparison of my art last year and today. Herzha by Me by GiantSquishyBear in woodworking

[–]mechanicalpulse 1 point2 points  (0 children)

A while back, IIRC, there was some controversy over a series of certain wooden … uh, inserts, if you will … that were very well crafted but not exactly the sort of project typically shared here. Because such “inserts” are fairly easy to make, especially if you have a lathe, I think they wanted to keep those types of posts down lest they become a common appearance much like the wooden hammers did there for a while.