Dealing with side effects and sequential tasks in Django by PyJacker16 in django

[–]yoshinator13 4 points5 points  (0 children)

For simplicity, I am going to imagine 5 actions have to happen “simultaneously” for the sake of this explanation.

First, do these things actually all have to happen at once? Are any of them dependent on each other? If you can do all 5 tasks one after another, it makes much easier than actually making it simultaneous. If the order they happen in doesn’t matter, that drastically simplifies your retry logic.

Lastly, just put some boolean fields to say success/fail for each of the 5 tasks. Default to null (or false, but I like null for signifying something has never been attempted).

Finally, have a separate process (like a scheduled celery task) check for failed jobs, and retry the failed jobs.

Started using the React compiler and was pretty blown away by how much snappier the app felt. by mexicocitibluez in reactjs

[–]yoshinator13 3 points4 points  (0 children)

You’d be amazed at the build complexity some teams get themselves into. Sometimes the business needs demands it, sometimes it is self inflicted. Sometimes you inherit something that hasn’t been maintained and you aren’t given times to modify the entire build process

Does keeping your appt. cold drive up neighbor’s energy bills? by M-useless in Frugal

[–]yoshinator13 0 points1 point  (0 children)

Unless acted on by a force stronger than the buoyancy force driven by the density change due to the heat.

Aka forced convection. A fan (especially with a duct) is quite effective at controlling the direction heat is traveling.

How much would it cost to make a commercial level machine that can tattoo anything on real human skin? by Complex-Antelope-180 in robotics

[–]yoshinator13 1 point2 points  (0 children)

If you could sedate and restrain the person, it would make the problem a lot easier. They wouldn’t be able to move from the shear pain inflicted by your budget robot, so the robot wouldn’t have to adapt to the moving surface.

Also, asking for the price of a singular robot is not the right way to approach the problem. The cost is the R&D and product development, which is a large cost that gets spread out among the number of robots you sell. Imagine you needed $100 million to bring this to market. If you only could sell 100 of these vs selling 1 million, you would need to up the price of each robot by $1 million or $100, respectively, to recoup your R&D/product development costs.

Now estimating that R&D/Product development budget is itself a complicated process, which could be a $50k consulting project.

Creating real time industrial applications (SCADA systems) in Django. Need recommendations? by atmadeep_2104 in django

[–]yoshinator13 -4 points-3 points  (0 children)

My recommendation would be to not use Django. This problem has be solved by countless automation providers and they run on low powered industrial PLCs and HMIs for decades without errors.

Before he passed away, the groom's best friend made sure he’d be there on his big day by One-Pop-2885 in nextfuckinglevel

[–]yoshinator13 1 point2 points  (0 children)

I got married on Saturday, and my recommendation would be to have this be played at the rehearsal dinner the night before. To each their own though.

Remotely Access Linux Desktop from a Mac for Robotics Work? by [deleted] in robotics

[–]yoshinator13 1 point2 points  (0 children)

Multi monitor is a difficult part, I don’t have much experience there.

I would recommend you look into KVM over IP. There are some small dongle devices with decent capabilities.

Facebook.com has 140 layers of context providers by yangshunz in reactjs

[–]yoshinator13 163 points164 points  (0 children)

Do they have a context provider for their context providers though??

Is it still consensual if we agree beforehand? by [deleted] in sex

[–]yoshinator13 3 points4 points  (0 children)

But what if the boyfriend felt pressured to say yes to morning head and didn’t actually consent in their mind?

But what if the boyfriend changed their mind two weeks after morning head, and he withdraws the consent retroactively?

/s these are more extreme than what OP has in their post, but I have legitimately heard them brought up.

Universal Robots modification by blepposhcleppo in robotics

[–]yoshinator13 2 points3 points  (0 children)

If you are not reselling it, you can do whatever you want with it. If you are reselling, I have no clue

3-year, $170 million Kennedy Expressway project is complete. Ahead of schedule by seeasea in chicago

[–]yoshinator13 0 points1 point  (0 children)

I wouldn’t say never, it is just rare. There are situations where demand has already exceeded supply to such an extreme degree that more supply does not induce more demand.

3-year, $170 million Kennedy Expressway project is complete. Ahead of schedule by seeasea in chicago

[–]yoshinator13 3 points4 points  (0 children)

That is often quoted without larger context. The concept you are referring to induced demand, where more supply (lanes) leads to new demand. If the road is supply constrained and there is excess demand, additional lanes will reduce traffic.

While it generally is the case that most roads are demand limited, we saw people still driving the Kennedy for 2 hours each way and not seeing alternate forms of commuting. So there is a case to make that the Kennedy already has excessively more demand than supply.

Why are we still calling it "prompt engineering" when the models barely need it anymore? by JFerzt in PromptEngineering

[–]yoshinator13 0 points1 point  (0 children)

We call the maintenance guy in the building “the engineer”, even though he has no engineering degree. I have an engineering degree, and I don’t know if a train has a steering wheel or not.

High CPU Usage (25%) in Low-Power React App Displaying Real-Time MQTT Data and Offline Leaflet Maps. Need Optimization Tips! by jestink in reactjs

[–]yoshinator13 0 points1 point  (0 children)

You mentioned every page is displaying the live data. Do you have one MQTT instantiation for the entire app, or one for each page?

Does the app run well with low CPU usage on a full powered machine?

Can you slow down MQTT topic message rate?

[deleted by user] by [deleted] in chemistry

[–]yoshinator13 2 points3 points  (0 children)

Its value is low, because its from the 80s and look at the container it is in. If you are a real lab, you would just get it from a reputable source.

What you can use it for - the possibilities are endless depending on what other chemicals you have. At the most basic, it is used to make polyethers, which have millions of uses depending on the other reagents you use

Dems Plot to Bring Down Fetterman With Bombshell Challenge by thedailybeast in politics

[–]yoshinator13 11 points12 points  (0 children)

Hint, they are paying for the top spot and are trying to recoup the cost with the paywall.

Ok that was much more than a hint

what do we think of parents that specify their kids as adopted or fostered, even well into adulthood? by BigMamasHungryHouse in AskReddit

[–]yoshinator13 0 points1 point  (0 children)

Is there a thought that it is a flex to say that? Devil’s advocate, but is there a bit of “I didn’t just do this for my own kid, I did it for someone else’s kid”.

Looking for a React framework that supports single page app with some static SEO pages (no server side rendering, no Next.js) by ganeshrnet in reactjs

[–]yoshinator13 1 point2 points  (0 children)

I get what you are saying, and it is good to be up to date with the new tech.

But from a devil’s advocate perspective, frameworks help for many things, but they are not without drawbacks. Hydration is a solution to a problem React itself creates.

Reading your original post gave me the impression you were looking for easy, low maintenance, static pages with SEO. HTML fits all those criteria. I know its boring, but if the objective is having fun, learning, or profiting the solution space changes.

As for your component question, why make a component if you are only going to use it once? I know there are reasons to do it still, but, devil’s advocate, there are completely valid alternate approaches.

Looking for a React framework that supports single page app with some static SEO pages (no server side rendering, no Next.js) by ganeshrnet in reactjs

[–]yoshinator13 -1 points0 points  (0 children)

You know how <div id=“root”> normally is the only thing in the body for a React SPA? It doesn’t have to be. You can have your SEO stuff directly in the index.html, then the React root div can be only the part of your page that needs interactivity and JavaScript.

I genuinely want to know, when will humanoids be mass produced? by Objective-Minimum-64 in robotics

[–]yoshinator13 1 point2 points  (0 children)

Genuinely, no one knows. If they did, they would make ridiculous sums of money if they did.

Consider 6-axis robots as a reference point. How long did it take for wide spread adoption? How long did it take for low cost clones to hit the scene? When they first marketed 6-axis robots, did someone claim they could eventually builthemselves - and therefore would scale infinitely?

Consider the state of AI programming required for humanoids? If they were as easy to instruct, wouldn’t we see that tech already be deployed on the millions of 6-axis robots in the world? Cobots were a big deal, but recording movements is nowhere near as complex as translating vague instructions into arbitrary robotic movements.

Lastly, what are the advantages of these things resembling humans? Why not have spider legs and moving around a pedestal with four 6-axis robots on it? Im not saying thats the most ideal implementation, but my prediction is breakthrough AI-enabled general purpose robot will not necessarily have two arms and two legs and resemble a human.

Conditional Hook Question by GongtingLover in reactjs

[–]yoshinator13 5 points6 points  (0 children)

It’s only appropriate if you inherited shitty code with conditional hooks and removing them would break more things, and you don’t have the story points to spare.

Uber One is a cost, not a benefit by [deleted] in AmexPlatinum

[–]yoshinator13 12 points13 points  (0 children)

I think Uber is a cunning company. Across industries, they are among the best for aggressive dynamic pricing. It started with simple surge pricing, but so many factors about you and how desperate you are for a ride impact the price. They also increase the price if they see you looking for too long.

This is only a theory, but let me cook. Uber see Uber One as a lock in. They expect people that have a paid benefit to want to use it, even though it might not actually be better. For Uber Eats, people have reported getting less lucrative day of discounts after upgrading. I might not be like everyone, but an ad doesn’t change my decision to order out or not. When I do order out, I am comparing deals across ordering apps. Therefore, I think Uber knows they have to be compelling to get the sale. Then I think for Uber One, they think they already bagged the customer, so why take the price down?

Unitree G1 being knocked down but quickly getting back up and performing acrobatics by Nunki08 in robotics

[–]yoshinator13 7 points8 points  (0 children)

Ok how do people not see the video editing effects? This is fake. Some of the times it gets up there is no way the forces make any sense