Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)PU
purplemonkeymad @programming.dev
Posts 1
Comments 155
How come people who are against abortion are in favor of the death penalty? Kind of seems like a contradicition/
  • Not everyone agrees on an exact time, typically the viability of the fetus outside of the womb is the consideration.

    This would mean a baby that would be just premature wouldn't be aborted. As you move back the viability would end up varying for each pregnancy, which is why after a set point doctors are involved. They then make a medical judgement balancing the viability and safety to the carrier.

    So there is no hard date. The insistence on getting one simplifies a complicated issue where nuance is important.

    I've noticed that a lot of anti-abortion laws target doctors, specifically to make the fuzzy nature of the cuttoff difficult.

  • What Gmail did to email
  • One of the nice things about Gmail at the time, was that you could access your emails when not home. If you were at a friend's or on holiday at a net café, all you needed was to know your email and password.

    That sounds silly, but at the time the majority of ISP mailboxes were pop only. Or those Webmails you could get were attached to what you would now think of comically small mailboxes. Full history Webmail added a convenience we didn't get before.

  • Student finds scorpion crawling inside Shein parcel
  • "Our teams on the ground have checked the shipment packing process and carried out an inspection of the goods in our warehouse and have confirmed that all standard operating processes have been adhered to."

    Sure but if your standard procedure is to not give a shit, then you still did wrong. Very much a "we decided that we didn't do anything wrong as that would look bad."

  • What's an experience that is unique to your country of residence?
  • kids are just taught to wash their hands quickly under the hot tap, so that they don't run the water long enough for it to turn scolding hot. WTactualF?

    That's a wtf within the UK as well, just fill the bowl with water using the taps to get the right temperature.

  • AskReddit is over run by bots
  • I stay away from any big subs now. The smaller stuff that tends to have 2 to 15 posts a day (like game specific subs) feel like they did before. Although I really feel a lot of those are going to discord as well.

  • The best answer on StackOverflow: Using RegEx to parse HTML
  • Which is fine when people do not reject the answers that are different from what they were expecting. Learning that the problem you have is a reason that noone does this, is a valid thing to learn.

    It's usually when I see people moving the goal posts on replies, or complaining that they didn't answer the exact question that i see as frustrating. Or "I don't want to do that" with no more info.

    But if you are aware of other solutions, you should state that in the question and give your reasons. It's a waste of time if you know someone might suggest what you have dismissed already.

    The html question is a classic for this, they want to find non self closed tags. Why? Why can't they use a parser? What are they doing with this info? All questions that would give you a good idea on how the problem can be solved. Playing with regex would be a valid answer to that, but is not stated. Unfortunately I find so's format discourages extra interrogation.

    The answer is not an attack on the person, but a frustration at the people before that ignored previous answers to use a parser.

  • The best answer on StackOverflow: Using RegEx to parse HTML
  • Except in 99% of cases the person is asking an xy problem, and if they ever explained the why, they would get a proper answer.

    Often the reason no one does the hyper-specific thing, is that there are better non code solutions, it's massively insecure, or is just stupid micromanaging.

  • The mob votes are over
  • It was a way to get people talking about the update. If you argue for your favourite, you're talking about it. The first one was a point when I think they wanted to show that the game was getting new content.

  • I feel like I might be missing a trick regarding combinations

    So I managed to get part 1 of the day, but it took 2 seconds to run on the real input, which is a bad sign.

    I can't see any kind of optimisation that means I can skip checks and know how many combinations are in those skipped checks (aside from 0.) I can bail out of branches of combinations if the info so far won't fit, but that still leads me to visiting every valid combination which in one of the examples is 500k. (And probably way more in the input, since if I can't complete the example near instantly the input is not happening.)

    Right now I take the string, then replace the first instance of a ? with the two possible options. Check it matches the check digits so far then use recursion on those two strings.

    I can try to optimise the matching, but I don't think that solves the real problem of visiting every combination.

    I don't think (or hope) it's just bad code but this is my code so far (python.)

    edit:

    spoiler

    a cache was the solution!

    5