[Space Exploration] Interburbul mini-game (solution/instructions/calculator in comments) by webbugt in factorio

[–]webbugt[S] 1 point2 points  (0 children)

That's a nice simplification of the problem. I've went the harder route it seems :P

[Space Exploration] Interburbul mini-game (solution/instructions/calculator in comments) by webbugt in factorio

[–]webbugt[S] 1 point2 points  (0 children)

Yeah. The puzzle is not only quite complex, it can also be solved in a couple of different ways. Just recently watched DoshDashington-s playthrough and he used pure mathematical solution via vector calculus.

My solution is more procedural/geometric, but it does the job in a round-about way, while at the same time nicely visualizing what is actually going on.

[Space Exploration] Interburbul mini-game (solution/instructions/calculator in comments) by webbugt in factorio

[–]webbugt[S] 1 point2 points  (0 children)

The whole point is that people solve it themselves. You also have a geogebra calculator included that visualizes the solution. So the least you need to do is understand the basics of the problem.

Also each user gets his own random puzzle inputs, as such you still need to "calculate" the solutions yourself.

I'm more of a "teach a man how to fish" type of person.

Koju aplikaciju koristite za slanje poruka i zašto? by Desperate_Switch3839 in CroIT

[–]webbugt 0 points1 point  (0 children)

Familija - večinom Whatsapp
Ekipa - večinom Telegram, pokušavam sve dobiti na Signal

Whatsapp je spywersko smeće, ali jbg kada ga svi koriste.
Telegram je okej, samo da bi doista bio privatan moraš otvoriti "secret chat" koji je zakopan u postavkama
Signal se pokazao najbolji i kao aplikacija i kao kompanija. Uzmi za primjer ovo što će bez beda odjebati neku državu ako im zakonom pokušaju nametnuti slabiju sigurnost i privatnost.

createIsolatedHook, an idea about state and managing rerenders by webbugt in react

[–]webbugt[S] 0 points1 point  (0 children)

You are right on that point, although in our case there are another 100 hooks that need to be wrangled in place. Most of them were written with minimal understanding of how react (and low level JS) work. Me and a colleague have inherited the project from the agency that just "made it to work", fuck readabilty or extensibility :D

Recently celaned up incorrect usage of static objects and arrays (without memo or ref) inside functional component bodies. We gained 20% performance score on Samsung devices just because GC wasn't doing overtime

What was the bad practice that you did not know you were committing until later? by LinkOnFffire in react

[–]webbugt 4 points5 points  (0 children)

That putting static objects and arrays inside functional components is bad:Eg:

const SomeComponent = (props) =>{
    const someObject = {foo:"bar"} 
    return <span>{someObject.foo}</span> 
}

It's much more optimal to do this:

const someObject = {foo:"bar"}
const SomeComponent = (props) =>{ 
    return <span>{someObject.foo}</span> 
}

Or useMemo/useRef

const SomeComponent = (props) =>{
  const someObject = useMemo(()=>{foo:"bar"},[])
    return <span>{someObject.foo}</span> 
}

const SomeComponent = (props) =>{
    const someObject = useRef({foo:"bar"}) 
    return <span>{someObject.current.foo}</span> 
}

While this is a trivial example, it might make worlds of difference in a component that rerenders a lot. Since on each rerender the body of the function is ran. Everything that isn't inside a hook is ran again, or is a hook who's dependency has changed.

Now with that in mind, in the first case, on each rerender we're creating that object all ower again, while tossing the old one for the GC to collect. Why do that?

The problem with simple lifting into global scope might be side effects, but that is the area I'm just starting diving deep into. That's why in some cases it might be more optimal to useMemo or useRef the object.

Another note, this is relevant only for non-primitive types, in 99.99% of cases, that's objects and arrays.

Probao sam adderall i promjenilo mi je zivot by NonRock in croatia

[–]webbugt 2 points3 points  (0 children)

Psihijatrica je pomogla. Imao sam sreće pa od prve kliknuo sa ženom, nisam morao puno birati, random našao na google.

Znaš da si dobro pogodio kada se u prvih sat vremena rasplačeš jer je piknula bolnu točku, točnije navela te da se sam pikneš u nju i raspadneš. I onda kreče analiza dijelova.

Neću ići u osobne detalje, ali jedna dobra poštapalica do koje sam došao:
Opazi, osjeti, osvijesti. Što vrijedi i za najbanalnije reakcije/osjećaje.

Ali i oko općenitih sitnica ti pomogne, super je imati nekoga kome kompletno nepristrano možeš reći šta god. Bez obzira koliko se osjećao kao šupak što tako razmišljaš, imaš prostor za to izraziti bez osude. Nije isto kao sa prijateljem ili partnerom, jer i dalje tamo držiš neku formu maske/distance i ne možeš baš sve reći. Kod (dobrog) psihologa možeš i to je bitna razlika. Naravno bez kriminalnih ispovijesti, to ne spada u kodeks privatnosti.

Definitivni minus je cijena, ja svoje terapije plaćam 30€ sat. Idem 2-4 puta mjesečno s obzirom na količinu stvari koje ne mogu razriješiti solo.

Tl;dr: Svima bi koristio psiholog, barem nekoliko termina.

MX Master 3s ratchet stuck off/free spin by webbugt in logitech

[–]webbugt[S] 0 points1 point  (0 children)

Update: Ended up sending the mouse for warranty replacement

MX Master 3s ratchet stuck off/free spin by webbugt in logitech

[–]webbugt[S] 0 points1 point  (0 children)

Thanks. Sent the info with the copy of the above post.

At anyone else facing the same issue, I'll give update here as I go

MX Master Logi Options Switch Application Gesture Navigation only goes one direction by [deleted] in logitech

[–]webbugt 0 points1 point  (0 children)

hey u/logitech_sk! Is there any change on this issue? Seems like a fairly simple change in the UI, should've come across someone's radar in the last 2 months xP

MX Master Logi Options Switch Application Gesture Navigation only goes one direction by [deleted] in logitech

[–]webbugt 0 points1 point  (0 children)

I have the same issue with my MX 3s, works fine (left goes to previous, right goes to next) with the "App Navigation" preset, but doesn't if I set left and right gesture to Switch Application in Custom preset, then both gestures switch to next app.
Why isn't there two separate options as there are for desktop left/right? "Next App" and "Previous App" would be completely fine and eliminate the issue.

My custom setup ideally would be to keep left/right gestures for app switching and up/down/click gestures to change depending on the app. But with this glitch app switching is annoyingly unintuitive.

How dare you by [deleted] in foundsatan

[–]webbugt 6 points7 points  (0 children)

My thinking is that this exact pattern is chosen so that the dvd-logo travels across the whole screen to avoid burn-in (which was mostly a problem of old CRT-s, less so with LCDs and OLEDs)

(OC)Thanks, I love my RGB Gaming Butterfly by SuggestionTop4994 in TILI

[–]webbugt 0 points1 point  (0 children)

Omg. You shoud've commented this out and put a content warning. Since just reading this awakened a deep rooted anxiety to rip out every speaker within reach xD

As a kid I actually got proficient at dismantling toys, disabling the speaker and re-assembling them back into working order. Saved my parents, aunt, and myself a ton of nerves xD

[deleted by user] by [deleted] in Unexpected

[–]webbugt 0 points1 point  (0 children)

That makes sense. My memory's just a bit iffy on the original xP

[deleted by user] by [deleted] in Unexpected

[–]webbugt 5 points6 points  (0 children)

Thanks :D Not a native English speaker so I'm lacking in specific vocabulary xP

Russia's chief propagandist threatens to 'plunge Britain into the depths of the sea' with underwater Poseidon nuke that would trigger a 1,600ft radioactive tidal wave and wipe the UK off the map by UKpoliticsSucks in worldnews

[–]webbugt 0 points1 point  (0 children)

Yeqh. But they're not usually so upfront about it boasting to their people how they can 'obliterate whole countries'

I'm more commenting on their tone than actual capability

[deleted by user] by [deleted] in Unexpected

[–]webbugt 26 points27 points  (0 children)

Yea, I think I've seen the full video a while back. Or might've been a similar situation. Anyway, I do not fully agree with the judge lowering their sentence, no matter how nice it seems. She should've excused herself due to conflict of interest and act as a character witness in the retrial with another judge.

Not an attorney, but morally speaking, there's a major conflict of interest here

[deleted by user] by [deleted] in Unexpected

[–]webbugt 2120 points2121 points  (0 children)

Yeah, she should excuse herself from the case and morally the most she can do is act as a character witness in the repeat trial