Skip Navigation
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.

  • Microsoft donates the Mono Project to the Wine team
  • Is mono not the .net framework version? .net core has always been multi platform, but is not compatible with .net framework apps. So any .net apps built against 3.5 or 4.x would still need to use mono.

  • Microsoft finally officially confirms it's killing Windows Control Panel sometime soon
  • You can now reach the network connections folder, using an option on the network status page. It's something like advanced network options. Still all the classic stuff, but avoids "control panel." I'm going to guess links like that are not going to be removed.

    If they just outright remove all of that, you really will need to learn how to do everything in powershell.

  • Today's featured article on Wikipedia: Outer Wilds
  • Don't feel bad, on my first flight I ran into the sun by accident.

    Kept working on it and was rewarded with the rest of the game. For real I continued to die to spaceship piloting issues but it didn't ruin the game for me.

  • Email server thru cloudflare
  • If you don't mind having email go through Gmail etc, then you might not want to full host, but just run a local IMAP server. There are some pop to SMTP solutions you can use to pull your emails (fetchmail.) you can then use your account as an outbound relay. Keep in mind you'll only be able to set this up for a single account if you use something like Gmail.

    If you buy a business product like workspace or m365, you should be able to setup relay/hybrid connectors for multiple accounts.

  • We're probably not the only ones running outdated software
  • Accountants have it hard even if they do keep up-to-date. We migrated one to a new server, but some of their clients still use archaic versions of accounting software. Unfortunately beyond a particular age it won't activate the new install, so they are stuck telling the client to upgrade or continue to run the old server as well.

  • Use a password manager
  • I tell non techy people to use a physical book that they can secure. People know how to do hide things or put them in a safe. Digital security is harder to understand and I would say a book in a safe place is way better than reusing passwords they find hard to remember.

  • Google is discontinuing the Chromecast line
  • I think the reason they drop these things is that the project leaders move on and one one wants to take that job anymore. If there is no one to push it, no one cares and it gets axed. The person that setup Google+ probably wasn't around after it launched, so momentum was just completely lost.

    Calling them greedy gives them more credit than the apathy they had to begin with.

  • [2023 Day 12] 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
    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 144