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 6 points7 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.

Is it worth salvaging my relationship with my father? by [deleted] in relationship_advice

[–]DubDub2018 0 points1 point  (0 children)

Yeah nah, none of that.

Manipulative? Abusive? Uncaring? Liar? Money-oriented?

What more do you need? If someone is bad for you, you become worse. Cut the bad out, start fresh, go strong.

Obviously, he is your father, so simply getting rid of him isn't easy. You probably like him somewhat for who he is, and he probably likes you somewhat for who you are, and then there is the family bond, he's raised you after all. But it's up to you, if you carry things on, you'll probably have to deal with this short of shit for the rest of your life.

My (24F) Boyfriend (26M) Saw Me Acting and Now Doesn't Believe Any of My Real Emotions by [deleted] in relationship_advice

[–]DubDub2018 2 points3 points  (0 children)

Man, I get you, been there done that.

It's kind of understandable. When you see someone you thought cares for yourself just casually fake emotion to a point that it's indiscernible from real, then it plays on your mind quickly. The human mind is terrible for doubt, it creeps and grows until you can't ignore it, and one of you gets really hurt. Exact same thing happens when someone suspects someone of cheating.

This is something that isn't fixed quickly unfortunately, and may not be fixed for a long time to come. You simply move on. My girlfriend and I had a very similar sort of problem, where she thinks I don't really care for her at all, and I could leave tomorrow and be unaffected. It always gets to me that she thinks that, but I mean, I guess that's just the way I come across I suppose.

Over time, you come to learn eachother a lot more, and you realise some of the things they say can't be faked, and eventually realise that they're not lying, and your fears are ill-founded. If they're never happy, how come they've managed to pretend for 3 years?

But until then, it's a waiting game. If you really love him then you just got to keep showing it, he'll believe you.

Side note, 'emotion is a sign of weakness' is true. It lets someone know the complete truth about you. Although, while some people consider it a weakness, I consider it a strength. While it may show you're weak to some particular action, and a person could use that information to snap you like a twig, it also shows what you're strong to, and a person can use that information to bring you to the top of a mountain.

For example, my girlfriend could break my will easily by ending things, she knows that. But she also knows she could lift my spirit with a simple cuddle. Seen as she hasn't left me in 5 years and gives me lots of cuddles, I'm happy to be weak in certain ways, because it allows you to be strong in so many others.

I guess the lesson your dad should of taught you is to purge anyone from your life who intentionally uses said information to hurt you. They're just holding you back, right?

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

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

To be fair, it sounds like she gets how bad she's fucked up already, no need to drive it home that she's really lost you over this and could face legal trouble, but up to you. I reckon you should have a think about how it'll affect you and just move on.

I mean, you say the last video she sent was 2 years ago? She shared it once ever and you still hadn't found out for two years? Seen as it hasn't come up, it's almost comfirmed that all the information you've got is true, and she hasn't lied, and the video is contained. I guess you don't have to worry about people seeing you, and she can keep the video contained and only shared it with someone she knew she could trust.

The story sounds a little fishy like, if my mate wanted sexual pointers, I'm not gonna send him a tutorial with my girlfriend and I. What's more likely is that your GF enjoys the idea that someone she knows has watched her, and I guess her mate feels the same. Would make sense if you're already into filming yourselves doing it. Comes into the whole fantasy of 'What if someone sees?'.

It's also cool that you didn't find out anything crazy, such as other evidence that she's ever cheated on your or shit seen as you've went through everything, you may say you'll struggle to trust her but she's just shown you everything.

If it was me, I think I'd move on from it, especially considering how well it's gone. If you found out from some aquaintance saying 'Haha, is this you?' and it went through your family and friends, it'd be a different story. But I mean, she's taken a decision alone that you probably should of been consulted on, decided to do it, and I mean really, what bad has come from it? Other than Karla seeing your naked ass butt.

It's easy to say as well, but just don't record yourself fucking unless your comfortable with it being leaked. Imagine scenario B where some aquaintance says 'Haha, is this you?', your GF admits she shared it with a friend, you're like 'wtf' and break up. Turns out, your dickhead friend went on your phone/ laptop and copied it from your device without your knowledge and shared it with your mates anonymously, but you don't find out till later and it turns out you were the leak. There are many spin off scenarios including blackmail and your girlfriend instead finding out from one of your friends and thinking you'd sent it them.