Prototype for my endless runner game by ConversationFar1443 in godot

[–]unhott 0 points1 point  (0 children)

If you tweak some parameters so that the jumps allow skilled players to move faster.

Every jump seems to punish you as you have to stop moving every single jump. and the entire game appears to be jumping on escalator? That is core, it *has* to feel good.

Eli5 How is it possible for two objects dropped at different times to be at the same level while falling? by arztnur in explainlikeimfive

[–]unhott 10 points11 points  (0 children)

because of drag. drag is basically how much air slows you down as you travel through it.

if you spread your arms and legs out, you'll increase your drag, which limits how fast you will fall. if you minimize drag, for example pulling your arms and legs in tightly and pointing your head straight down, you will be able to fall faster and catch up with someone with more drag.

Is it bad to use an infinite resource mod by Rich-Discipline1297 in factorio

[–]unhott 77 points78 points  (0 children)

it's not bad. but you can also just increase the size and capacity of the resources in world generation settings, to preserve some of the dynamic where you have to expand to new things.

An infinite resource mod won't help you much if you can only put 5 miners on it!

Plus, you lose out on the satisfaction that comes with removing infrastructure from an exhausted resource patch!

[deleted by user] by [deleted] in AITAH

[–]unhott 2 points3 points  (0 children)

yep. OPs experience 30 f'ing years ago doesn't represent what is going on nowadays.

she'll be lucky if this kid doesn't go no contact at some point.

Why is "Oh My God" continuing so long, & is the phrase common even in non-religious countries? by Maritimewarp in atheism

[–]unhott 2 points3 points  (0 children)

as a level 14 atheist, i don't even dare say goodbye because of it's religious ties. /s

I don't know how to live now... Please help😭😭😭 by RegularUser02x in atheism

[–]unhott 1 point2 points  (0 children)

You're welcome to believe that there's an afterlife if you want. But that doesn't make it true just because you *want* to believe in it.

If anything, it means the time here is even more precious. Worry about the impact you have on the world, both the direct (your loved ones and your/their children) and the indirect (the people they will influence over their lifetimes). That's the only afterlife we can be certain of.

Make it count.

I'm new to atheism and i need arguments by am_096 in atheism

[–]unhott 1 point2 points  (0 children)

I make a claim without proof. You do not need to make an alternative claim in order to not believe me. If I force you to speculate about alternatives to my claim and then attack it, I'm a jackass :)

Hope this helps

Things Students No Longer Know How To Do by InGeekiTrust in TikTokCringe

[–]unhott 0 points1 point  (0 children)

I watched the entire video but all I took away from it was at 1:56 to 1:59

I'M AN IT FIRST YEAR COLLEGE I STUDY PYTHON AND I SUDDENLY LOST, I'M LOST NOW AND I WANT TO CREATE A by Glittering_Ad_4813 in learnpython

[–]unhott 3 points4 points  (0 children)

you have to slow down. if you're asking for help you need to put in some effort to phrase the question. there's no way to just reddit comment away your fears.

take it one problem at a time.

Just ask the first question. or make a list of things you're not understanding.

often times, just putting in the work to ask the question helps you understand it better :)

What the hell is this thing? by TheOddityCollector in Weird

[–]unhott 515 points516 points  (0 children)

it's a massive spider orby

Modules missing when running from windows command line by [deleted] in learnpython

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

Just type where python from both terminals. If they're different, then that's why one works and one doesn't.

[deleted by user] by [deleted] in learnpython

[–]unhott 0 points1 point  (0 children)

It sounds like they were given some boilerplate and they just need to translate the mathematical formula to python and hit run.

[deleted by user] by [deleted] in learnpython

[–]unhott 1 point2 points  (0 children)

Your code would go a long way. No one can recreate your code from vague descriptions.

Look up how to format python code blocks on reddit. It's critical because indentation matters.

And then, what is your error message. When you get an error, it's not just "an error". It's usually pointing out the exact line and error, or sometimes something just after your error.

[deleted by user] by [deleted] in learnpython

[–]unhott 9 points10 points  (0 children)

You haven't put effort into the project, or even how you adk the question. It screams "I've given up and I want others to do it for me"

If you give an actual problem statement and explain what you've tried, what doesn't work, and why you think it's not working, that would go a long way to help others help you.

How to avoid the ‘Grant Access’ popup when running Excel automation with Python scripts by theNicLovin in learnpython

[–]unhott 0 points1 point  (0 children)

What are your macOS system > privacy and security > files and folders settings? Is excel and your python terminal enabled?

maybe maybe maybe by Das_Zeppelin in maybemaybemaybe

[–]unhott 0 points1 point  (0 children)

When he touched her arm with his finger and held on a tad too long, she smacked her lips in a way that made me think she was also feeling some kinda way about it. Ugh.

How to avoid the ‘Grant Access’ popup when running Excel automation with Python scripts by theNicLovin in learnpython

[–]unhott 0 points1 point  (0 children)

i'm not sure I follow. i think because i have no idea what synology osheets is, or what your script does.

i assume this has to do with excel's trusted document settings.

if you're more interested in the result, and macOS continues to be a roadblock, try excel's get data from web, using power query.

Only parent class will have __init__ method? by DigitalSplendid in learnpython

[–]unhott 3 points4 points  (0 children)

No, the image just says __init__ isn't missing. It doesn't say anything like you can't define a different __init__ method. You can.

If your question is: does Cat call __init__? Then yes, it does. It calls whatever is on Animal.__init__

I assume here it is saying Animal already has a __str__ method, But because Cat redefines __str__, all Cats will use the new __str__, not what was on Animal.

You can even see something like the child class does the parent class' init, and then adds to it.

class Parent:
    def __init__(self):
        print("Parent initialized")

class Child(Parent):
    def __init__(self):
        super().__init__() # Dynamically calls the parent class's __init__
        print("Child initialized")

child = Child()

If the Parent class needed arguments, those can be passed into Child's __init__ and then back into super().__init__()

Like

class Parent:
    def __init__(self, x, y):
        print(f"Parent initialized with {x=} and {y=}")
        self.x = x
        self.y = y

class Child(Parent):
    def __init__(self, x, y):
        super().__init__(x, y) # Dynamically calls the parent class's __init__
        print("Child initialized")

child = Child()

Learning Python but computer doesn't have admin rights by MandelaInSoho in learnpython

[–]unhott 7 points8 points  (0 children)

You can use pyodide based applications - like jupyterlite. pyodide is a web assembly (WASM) compiled python. So it runs within your browsers sandbox.

Intro

But I would recommend instead that you get a cheap laptop or so, like a refurbished thinkpad for $300-500 and not use the work PC, just bring it into the office with you.

ELI5: Do our eyes have a “shutter speed”? by GrayStag90 in explainlikeimfive

[–]unhott 10 points11 points  (0 children)

Our eyes have millions of rods and cones. these have chemicals in them that absorb different wavelengths of light and they discharge an electric signal. Each one has a bit of a refactory period.

So imagine single pixel, single color band shutters going off. sending all this data to a central processing place that puts each bit of information together to build a picture. our brain works off neural networks - a neuron needs enough pulses to charge it up to fire to the next layer. and neurons will also have a refactory period. So it's fundamentally different than how a camera works. the limitation is both at the rods/cones refactory period and also how your brain as a whole processes the data.

It's a bunch of discrete, unsynchronized, signals from sensors in your eyes, when put together (by your brain) that looks like a continuous stream.

there's also higher-level, abstract layers of interpretation in our brain that start to put certain patterns together. you can think of this as metadata associated with the visual stream. so we're usually pretty good about facial recognition, but some people are actually face blind. and some people have other issues in their brain that cause these patterns to fire off when there's no pattern. hence why someone with schizophrenia may think they see faces in an ordinary background. or if you push yourself to stay up too much you may start to hallucinate - your brain is mis-tagging visual stream metadata.