[-] purplemonkeymad@programming.dev 37 points 2 weeks ago

Everyone in the picture is an actor. The joke on the sign is too well thought out for it to be a sudden ambush.

[-] purplemonkeymad@programming.dev 36 points 6 months ago

I miss this blue metal design. Yea the grey ones are nice, but the blue always made it look a little bit more interesting to have around.

[-] purplemonkeymad@programming.dev 34 points 8 months ago

If you do ever end up in that situation again, (or someone else is,) you can download the notebook by moving it into a folder in OneDrive. Then go to the web and use the option to download the folder. That will zip up the folder, with the real one drive files inside.

You'll still need to find an app to import them into your new note taker though.

[-] purplemonkeymad@programming.dev 34 points 8 months ago

A 4x4 will give you extra power. But not extra stopping power. My guess is they assume that they could just drive normal due to this.

[-] purplemonkeymad@programming.dev 35 points 9 months ago

Would you like to activate this annoying feature!

  1. Yes.
  2. Remind me later.

So this is just trump gaslighting then. Or he really has that short of a memory.

Mailman is going to think something is wrong with me when he just keeps getting "up arrow." Probably even more when I stop on a short command.

44
[-] purplemonkeymad@programming.dev 51 points 2 years ago

Sorry we can't employ you as your ssn is too long. Also we can't have any new employees called Mike Smith as the HR system already has someone with that name.

[-] purplemonkeymad@programming.dev 42 points 2 years ago

Can't they just send up extra suits with the dragon capsule? Badly fitted suits are probably better than none, it's not like they are piloting it down.

[-] purplemonkeymad@programming.dev 33 points 2 years ago

Can replace go to lunch with come back after the weekend.

[-] purplemonkeymad@programming.dev 37 points 2 years ago

It's all allocated, but not all those allocations are for routing on the internet. Eg private ranges, localhost space, multicast, experimental ranges. Unfortunately you can't repurpose those ranges as there is already kit out there that is hard coded to treat them a particular way.

7
submitted 2 years ago* (last edited 2 years ago) by purplemonkeymad@programming.dev to c/advent_of_code@programming.dev

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:

spoilera cache was the solution!

[-] purplemonkeymad@programming.dev 33 points 3 years ago

Considering how many startrek memes I see on lemmy, I'm surprised this was the original meme.

view more: ‹ prev next ›

purplemonkeymad

0 post score
0 comment score
joined 3 years ago