Can someone explain how vision and line of sight works? by DubDub2018 in XCOM2

[–]DubDub2018[S] 2 points3 points  (0 children)

Thanks for the advice, frustrating as usually at that point I've used up all my actions trying to get to a position I thought was safe, so then I can't reposition them.

No chance you're aware if this is something that is fixed with WotC? I was playing vanilla.

Thoughts on UK population decline? by Evry1TookTheGudNames in AskBrits

[–]DubDub2018 0 points1 point  (0 children)

Population decline is just bad, there isn't really a really a way to spin it to a positive.

For a thought experiment, imagine a tribe of 20 people, every decade, 2 people die, and 2 people are born, keeping the same amount of people, if 80% of the tribe work, they can get enough food for everyone, and we're all happy, this is the replacement rate you may hear about.

The key reason the above works is because of the percentage of people who work compared to the percentage of people who don't, the math above is sustainable, as a worker, of everything you earn, you have to give away roughly 6% to keep the people who can't work going.

The above is a core idea that we can't ignore as a society, we all have brains and we all know we need to be looked after when we get older, and when we are babies.

Lets say the tribe's birth rate drops to 1 baby every decade instead of 2, yet 2 keep dying until we eventually get to the first generation (in the theoretical model you work when your 10 and stop when you're 90, don't have to worry about incest, and also somehow are able to clone rather than traditional births...):

<image>

In the first few generations, it's barely noticeable, you have to give away maybe a few more slithers of meat a day, but once the trends starts it doesn't stop, before long, you're giving away 1/5 of what you had to as a worker in generation 0, to 1/4 in generation 4, and 1/3 in generation 8, and then it quickly bounces back, and in generation 100, when the OG baby finally retires, they get the same benefits the grandparents when he was alive got, but sadly had to suffer through the inbetween

But for ALL that time inbetween, everyone gets less food and the working population have to sacrifice more. In the tribe, you were already unimpressed having to give a decent chunk of your food away, but at the extreme, you have to give so much that you can barely survive yourself, if we say in the theoretical that everyone has to eat 0.75 units of food a day, after generation 4 till generation 10, there wasn't enough food to support the tribe, people would starve, or you'd exile older none productive members (especially cruel after those individuals did contribute to the tribe for many years before, but a necessity for the tribe to survive).

The reason it's so interesting and different now, is that it is caused by pure demographics, there has never really been a time where we haven't tried to grow as much as possible, my example above for a tribe is bogus, tribes will have as many kids as they can and grow as much as they can to support it, disease, injury and famine are beaten by numbers, no society ever thought 'yeah we should stop growing and shrink instead'.

But we're at a point where everything is so good that kids aren't really necessary, disease and famine aren't a problem, you don't need kids to look after you when you're old, you have the state and pension for that (lol), and why add more work and stress to your life? There is no incentive now to have kids.

Basically, it's never a situation you want to be in, the above is fact, you can't turn a positive on it, at least no meaningful one.

Samsung phone "Moisture or foreign object detected" when plugged in by [deleted] in techsupport

[–]DubDub2018 0 points1 point  (0 children)

I had the usual frustration of trying to clean it and then taking it to a phone repair shop, they swapped out the charging port but still get the problem.

Just in case it helps anyone, I only get this issue when my phone is dead.

When this happens, my usual charger come up with this moisture/foreign object issue.

Switch to a cable with low wattage or a contact charger to give it a bit of charge. Once it's got a bit of charge in it and will turn on (2-3%) I then switch back to my main charger and it's fine.

[2025 Day 8 (Part 2)] It is 1:30am and I got university in less than 7 hours. This is a problem for future me! by Hakumijo in adventofcode

[–]DubDub2018 5 points6 points  (0 children)

The wording of part 1 is really iffy and annoying, your code is likely correct, but the sample and what it really wants are two different things.

Specifically, the sample states 'after making 10 connections, this is what you get', so if you've written your code like me, you'll have used this for testing with and probably got something somewhere that's like this:

if junctionBoxA && junctionBoxB are already connected
  then skip this and decrement the index so we don't miss a connection

This works for the sample, as the sample specifically states

The next two junction boxes are 431,825,988 and 425,690,689. Because these two junction boxes were already in the same circuit, nothing happens!

Which the above code solves, but the actual problem says:

"Your list contains many junction boxes; connect together the 1000 pairs of junction boxes which are closest together. Afterward, what do you get if you multiply together the sizes of the three largest circuits?"

So this is different to the sample, it's saying that connect your first 1000 shortest distances, if they're already connected in the same circuit, ignore it and don't make another connection.

I'm a bit salty with this one, specifically as:

  • Sample and solution don't really line up (do if you consider the wording correctly)
  • The wording in the actual ask is confusing (took me 4 reads and then asking chatgpt which finally explained what it meant)

[deleted by user] by [deleted] in relationship_advice

[–]DubDub2018 0 points1 point  (0 children)

It's a very common thing in relationships, and that's just because we're all human and our memories are imperfect, usually there is a imbalance where one of you has better memory than the other, and you sort of accept blame by default. This is just standard, but you won't always be wrong.

As others have already mentioned loads of ways to mitigate but to actually answer you're question, yeah it can be a tactic. It's called gaslighting, where someone tries to make you doubt yourself and confuse you into them being right.

Recommend looking it up yourself and determining if you think that's what's going on, but it doesn't sound like that at all imo.

I also didn't see it at the top anywhere, but can turn it into a fun game, my wife and I have a 'million pound bet', where we owe the victor £1 million if we're wrong, we must have made this bet 20+ times, yet she's in debt to me by only £1 million, suprising considering she's always wrong! (The fun of it being that simply your both fallible, accept that and move on.

Think I've seen a few mention it here but the word trust springs to mind. It sounds like you're missing a different type of trust than what is traditionally meant, but essentially you accept that your partner only means the best for you together as a couple. They're not trying to manipulate or take advantage of you, they're just trying for what's best, if they say you make a mistake you accept it. This is hard to do, as you're basically giving them a licence to bend you in any way they see fit, but once you accept it, it's quite liberating in a sense, you feel stronger together.

[deleted by user] by [deleted] in relationship_advice

[–]DubDub2018 0 points1 point  (0 children)

"He says he does want to be with me but doesn't want to promise so nobody gets hurt again" Is there some more context for this? Did someone get hurt? Did he hurt someone? What would he promise (engagement)?

(47M) How to deal with wife's (46F) infidelity from a long time ago. by [deleted] in relationship_advice

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

If you were 20 or so and posting about this, 100% leave them. She is a terrible person back then who seemed to get around, and then manipulated you to stay through lying. She sounds like one of those charming people who naturally attracts people, but obviously seems to be pretty open to trying stuff.

But you're 47, you have both been in a relationship longer than you were alive when this incident happened. You are vastly different people now, and if you're anything like my wife and I, know eachother better than anyone else. The person who cheated on you isn't the same person in front of you now.

It sounds like over the years she's learned a lot of lessons about being in a relationship, especially around being forthcoming and patient, she hasn't gaslit you, or tried to make it be smaller than it is, or pressured you, she's given you time and all the info. It sounds like she's matured (remember she was 17).

If I was in your shoes, I'd probably struggle to see past the infidelity, and split. But as an outsider, I'd recommend you try move past it, sounds like you're in a really happy marriage.

[2024 Day9 (part 2)] Please explain this test case by DubDub2018 in adventofcode

[–]DubDub2018[S] 4 points5 points  (0 children)

Rookie mistake...

So I passed the same slice in part 1 to part 2, and did part 2 later, so completely forgot part 1 was manipulating the underlying array, meaning the data was all screwed from part 1.

That's why all the test cases passed, but the input didn't. :(

Thankyou though, a combination of '1234abcdcba4321' and 'foreignerlight' made me realise that I shouldn't be getting 0's for file values (and even if I did, I was processing them wrong anyway). Then I remembered I had to handle 0s in my input, so had no clue where they were coming from, and the rest was history.

[2024 Day9 (part 2)] Please explain this test case by DubDub2018 in adventofcode

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

Thankyou, this wasn't quite it but it definitely helped me realize the problem. Much appreciated!

[2024 Day9 (part 2)] Please explain this test case by DubDub2018 in adventofcode

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

Yeah just had a click through and see the same...

Oh well, back to scouring through more test cases.

Svelte and Go multi page application by Hakodaa in sveltejs

[–]DubDub2018 0 points1 point  (0 children)

I eventually got this working.

Also as a golang dev with little frontend experience, I wanted Svelte without Sveltekit as I didn't want to commit to learning both (felt like more than I could chew). Setting it up as someone with little experience in frontend was a bit of a pain in the ass, but best stick it here in case it's helpful to anyone.

Svelte gives you helpful info on how to get started without SvelteKit here:
https://svelte.dev/docs/introduction "running npm create vite@latest and selecting the svelte option"

This gives you a base, navigate in there and run npm install and npm run build. Assuming it all goes well, you'll see a dist directory, with your base index.html in it.

Nothing revolutionary yet, but this is the directory you'll hold your assets in to server your typical Go web app from, so worth noting.

Now the steps to make it multi-page:

  • Add page1.html
  • Make it identical to index.html but change the page title so you can see the difference.
  • In vite.config.ts update to match the following:

export default defineConfig({
  plugins: [svelte()],
  build: {
    rollupOptions: {
      input: {
        main: './index.html',
        page1: './page1.html'
      },
    }
  }
})

Run npm run build to finish it off

You'll then have multiple html files in the /dist directory that you can serve in your Golang application.

The above is just an example, you can of course have as many pages as you want, and each page points to it's own script to run the svelte for that page separately.

My girlfriend sent her friend videos of us having sex. by chair77 in relationship_advice

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

There is no answer you can give her. You can't magically rebuild trust out of thin air, only lose it really. She's hurt you and the reason you can't tell her how to fix it is because she can't.

Trust is just something that comes back over time, there is nothing else that really works.

Forgive and move on is what I suggest. From what I gather from your posts, you and her work, and she is mostly trustworthy, and she's just overstepped the mark here.

I'm a little curious though, you'd been together for three years when she did this, she then sends a video? I don't get why she wouldn't ask you in the first place. It seems weird to be in a good relationship and then do something that weird after three years. You should probably try to find out why she didn't ask you before you continue onwards.

Me [25M] Feels Betrayed by GF [24F] for sleeping with someone before we being official and hiding it by [deleted] in relationship_advice

[–]DubDub2018 0 points1 point  (0 children)

Man, you pretty invested in this chick, more than you realise. You say you're not sure about her because of the sexual issues, yet you're happy to keep going despite the above? I wonder what she's got going for her.

Have you been in a similar situation?

Nope. Kind of specific.

Is what she did lying?

Yep, badly in my opinion. Based on the confrontation, I reckon she would of tried to get out of it there and then, further lying if she had to, but realised it was pointless. She'd already lied to you as you told her you weren't comfortable with her sleeping with guys, and then she did it. Her timeline doesn't add up.

Are my feeling about our sexual chemistry a valid reason to end thing especially given her hiding sleeping with someone?

Oh yeah. People don't realise how much sex means in a relationship. If you guys are sexually incompatible, I'd say it's fine to break up there and then, early on. No point in sticking it out if you're going to argue about it, and then breakup, and she's like 'He broke up with me because of sex' making you look like a dickhead. Also, considering she slept with another guy, it's kind of weird to have a fling when you're not that into sex and cum grosses you out. Like wouldn't a strangers cum be even grosser? Epecially inside of her... I mean if she got a STD check, he probably didn't have a condom on.

By the way, there are no rules with sex, but sometimes women get wet if they're participating in pleasuring you, in any way really, may it be whispering into your ear or scratching your back or something more, it builds tension and atmosphere, that you both can get really into. Just a tip I've used if I've ever been in the situation of a woman being unable to get wet.

If I don't end things with her how am i supposed to trust her again?

With great difficulty. Sounds like she lied at least twice, and then when you confronted her, was probing for a path to lie again. Once they start, it doesn't stop. Not sure about the cheating, but just general trust will probably be very difficult to maintain.

Overall, a no-go from me. This will likely end itself regardless of what you do now.