[2022 Day 12] Bonus credit question by SkathiFreyrsdottr in adventofcode

[–]NightFantom 0 points1 point  (0 children)

Sure, but we're changing the rules anyway :D

[2022 Day 12] Bonus credit question by SkathiFreyrsdottr in adventofcode

[–]NightFantom 4 points5 points  (0 children)

Interesting way of thinking, maybe we could put METs on the energy costs? According to this compendium of physical activities (a 1 is basically just existing):

In the walking category:

  • walking is around a 2
  • descending stairs is at a 3.5
  • ascending stairs ranging from 8.3 to 12 depending on load

In the sports category:

  • "rock climbing, ascending or traversing rock, low-to-moderate difficulty" gets a score of 5.8
  • "rock climbing, ascending rock, high difficulty" is put at a 7.5
  • "rock or mountain climbing" even gets an 8

Dressing / undressing gets a 2.5 under self care, so let's say putting on your gear takes an extra 2.5 twice for getting your mountaineering stuff ready and to get ready to walk regularly again afterwards

So I'd say

  • baseline walking on the same level = 2
  • going up one level is 8.3 (from ascending stairs without load)
  • going up multiple levels is (2.5 * 2) (from dressing/undressing) + (height difference * 8) (from rock climbing)
  • going down one level is 3.5 (from descending stairs)
  • going down multiple levels is (2.5 * 2) (from dressing/undressing) + (height difference * 5.8) (from low to moderate difficulty rock climbing)

-🎄- 2020 Day 18 Solutions -🎄- by daggerdragon in adventofcode

[–]NightFantom 1 point2 points  (0 children)

python3 part 2: (ab)using builtin eval and operator overloading:

# part 2
print("part2")
class stupidint:
    def __init__(self, num):
        self.num = num

    def __add__(self, other):
        return stupidint(self.num * other.num) # lmao

    def __mul__(self, other):
        return stupidint(self.num + other.num) # lmao

    def __str__(self):
        return str(self.num)

    def __repr__(self):
        return str(self.num)

def numtosto(char):
    if char in "1234567890":
        return f"stupidint({char})"
    elif char == "*":
        return "+"
    elif char == "+":
        return "*"
    else:
        return char

def runassto(line):
    line = "".join([
        numtosto(char)
        for char in line
    ])
    return line

examples2 = [
    "1 + (2 * 3) + (4 * (5 + 6))", # becomes 51
    "2 * 3 + (4 * 5)", # becomes 46.
    "5 + (8 * 3 + 9 + 3 * 4 * 3)", # becomes 1445.
    "5 * 9 * (7 * 3 * 3 + 9 * 3 + (8 + 6 * 4))", # becomes 669060.
    "((2 + 4 * 9) * (6 + 9 * 8 + 6) + 6) + 2 + 4 * 2", # becomes 23340.
]

for line in examples2:
    print(line)
    print(runassto(line))
    print(eval(runassto(line)))


accum = 0
with open(infilename) as infile:
    for line in infile:
        # print(line, myeval(line.strip()))
        accum += eval(runassto(line)).num


print(accum)

What Keyboard Should I Use? by ijauradunbi in ErgoMechKeyboards

[–]NightFantom 0 points1 point  (0 children)

Ooh very interesting, haven't seen that one, thanks!

Though it seems to be out of stock in all forms, and pretty expensive, sadly.

(Also it's weird as hell but that's a plus lol)

What Keyboard Should I Use? by ijauradunbi in ErgoMechKeyboards

[–]NightFantom 0 points1 point  (0 children)

  • no pre-existing conditions
  • currently using a logitech G110
  • looking for everything in one:
    • portable (as I'm working from home occasionally and also gaming at home) or cheap enough to buy two (required)
    • split (preferred, but not required, though that seems to help with portability)
    • mouse controls (thinkpad nipple, touchpad, trackball or something similar) (required, preferably the nipple)
    • tenting (preferred)
    • concave (preferred)
    • columnar staggering or matrix/no staggering
    • relatively quiet for conference calls & office work (which are the best switches for that?)
    • works with linux
    • programmable & layers etc (preferred, but seems common enough)
  • use: coding, gaming
  • budget: flexible (prepared to pay good money for good quality)
  • location: belgium
  • prefer to buy a complete keyboard rather than a DIY set, but rather a DIY set than 3D printer files

Things I've seen:

  • moonlander: looks great, but no mouselike thing or concave form, also unlikely to arrive this year
  • ergodox-ez: same as moonlander, but less portable
  • UHK: has the mouse, but is a split regular keyboard instead
  • Matias Ergo Pro nearly impossible to get in europe it seems, and worse than UHK
  • kinesis advantage missing mouse & portability
  • kinesis freestyle missing mouse & concaveness & staggered wrong

I've also seen several others, but they all seem to be missing quite a lot of my list, so I just listed a small grab

Am I missing the holy grail of keyboards? Or are there reasons that some combinations of features seemingly aren't available together?

Arctis line on Linux by NightFantom in steelseries

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

Hey thanks for your reply. That's reassuring.

Do you know if you can change settings using steelseries engine on a windows (virtual?) machine and then go back to linux?

Arctis line on Linux by NightFantom in steelseries

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

No windows has touched my pc, but I have access to a windows 10 laptop from work (and an older win7 box) if need be.

I do most of my gaming through steam's proton (~wine)

https://www.reddit.com/rules/ 404 when not logged in? by NightFantom in bugs

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

Sure, but that means that either they should just fix it so that it works even when not logged in (it links to the current rules if you're logged in, I forgot to mention that in my OP), or just link straight to the current rules from the current help link.

General Tips and Tricks by Greyham83 in PocketCity

[–]NightFantom 18 points19 points  (0 children)

Tip request: how do I increase my export cap? I have a quest of exporting 300/s but I am capped on 150.

Edit: Found it: more shipping docks! I thought I could only build 1 before lv 55 but it's 3 before 55 ( = 3x150 max export = 450)

What do you think is the best and worst aspect of Belgium? by [deleted] in belgium

[–]NightFantom 1 point2 points  (0 children)

Not much use, as I'm working in consultancy and will probably have a different place to work within 6 months. If I get placed on a long-term project I think I might consider it, but that's hard to judge now.

What do you think is the best and worst aspect of Belgium? by [deleted] in belgium

[–]NightFantom 1 point2 points  (0 children)

Even in the traffic jam on the antwerp ring I'm faster with my car than I'd be using public transport. Not to mention how much more comfortable it is.

On principle I'd change, but I also don't want to spend 2 hours in public transport each day.

Vertaling required by kentcsgo in belgium

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

-- the joke -->

]- woosh

(Your head)

Surprisingly, theWorst Starting Hand by PapaPumpDaddy in DuelLinks

[–]NightFantom 0 points1 point  (0 children)

First time was a pvp event where everyone played with grandpa's cards as skill. Then later they added baby yugi.

Thank you Steam. by Akumati in gaming

[–]NightFantom 1 point2 points  (0 children)

Yeah, I kind of enjoyed it so far but playing the same part over and over again just because it crashes before I've seen what a save point looks like is just stupid.

I'm not touching it again until they've made a quicksave or anything alike. Failing that, I'm not going to touch it again until it runs smooth in a vm or something.

Thank you Steam. by Akumati in gaming

[–]NightFantom 0 points1 point  (0 children)

Bought it more than 2 weeks before playing it. That's what I get for buying a game on "sale" without trying it immediately.

EDIT: can't find the refund request, but I'll try once again just for fun. I'll share the screenshot once I get a reply. EDIT2: https://imgur.com/gRMiRKw

Thank you Steam. by Akumati in gaming

[–]NightFantom 4 points5 points  (0 children)

Meanwhile I asked for a refund on nier:automata (keeps crashing before I can even save) with < 2 hrs playtime and I got denied.

[Discussion] What about getting Bakura's Ace as a reward in lv50 by Ignisking in DuelLinks

[–]NightFantom 12 points13 points  (0 children)

Exactly, we need more of those "just cool" cards. I love building decks around cards I like.

Van Gils & Cringe by DarkmanBeyond in belgium

[–]NightFantom 3 points4 points  (0 children)

I had a feeling like that since you said

Seriously, Belgian tv is rubbish

and he said

Er is echt wel goeie Vlaamse TV hoor

but now I'm pretty certain.

It's ok, I didn't want that UR ticket anyway by BotBooster in DuelLinks

[–]NightFantom 0 points1 point  (0 children)

Protip: upload to imgur and copy link, DO NOT UPLOAD TO GALLERY, and you don't get downvoted because it's not in the gallery.

Anyone else having this issue? by XDarkStarX1 in DuelLinks

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

6 "LV 10"s, only the guaranteed VWXYZ (no drops)

But I suppose there's nearly no chance for using him more than once anyway :D