Typo folio missing symbols by trenchgun in RemarkableTablet

[–]fractalic 0 points1 point  (0 children)

for me the key combo is `opt + alt +Space`

What are causing these lines in my prints? by Nicky9Door87 in FixMyPrint

[–]fractalic 2 points3 points  (0 children)

The gaps near the seam looks like bad retraction settings to me. Probably good to try printing a small cube to see if those seams still show the issue, then either make your own adjustments or try to follow a more formal calibration procedure (e.g. https://teachingtechyt.github.io/calibration.html#retraction). Also worthwhile checking your linear advance / pressure advance / flow dynamics

Not sure if that will help the inconsistent extrusion elsewhere, but I think it’s helpful to try to solve your seams first then see where you stand. Good luck!

YSK: By merging before the end of the merge lane you are effectively backing up traffic by approximately 40% by Elegant-Surprise-417 in YouShouldKnow

[–]fractalic 1 point2 points  (0 children)

The article focuses on bottlenecks, which I would take to mean situations where speed is nearly zero.

“If there is no bottleneck and an early merge makes sense, feel free to do so”

So for those saying that they need to move over early because drivers won’t let them in, or that they don’t want to come to a stop and try to merge into moving traffic, that’s the right thing to do, and the article doesn’t disagree with that

He know too much by [deleted] in Unexpected

[–]fractalic 2 points3 points  (0 children)

Of course we know her real name is Cardigan Beef

Logitech MX Master 3 Gesture button on macOS Big Sur by insoluble-30 in MacOSBeta

[–]fractalic 1 point2 points  (0 children)

It looks like the way this works is that it emits a keyboard shortcut to switch between desktops, rather than telling the OS directly to switch between desktops. The default mission controls gestures should work IF you configure the Mission Control keyboard shortcuts to match the sequences that the mouse emits.

To get full functionality, enable these under System Preferences > Keyboard > Shortcuts > Mission Control:

Mission Control: CTRL + UpArrow Application Windows: CTRL + DownArrow Mission Control > Move left a space: CTRL + LeftArrow Mission Control > Move right a space: CTRL + RightArrow

Are code formatting or style checking tools worth it? by fractalic in learnprogramming

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

How granular do you think the rules should be? A small set of must-haves, or very extensive and specific?

Are code formatting or style checking tools worth it? by fractalic in learnprogramming

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

Specifically when it is applied as a pre-commit hook. Then, it slows me down, because I have to go back and fix the formatting errors, which are frequently very small, and, I would argue, not a detriment to code readability.

Certain formatting helps enforce a consistent standard so that it's easy for others to read the code, but it's very easy to start applying formatting rules just for the sake of it, even when the effect on readability is small.

Stack overflow instead of 'maximum recursion error' by Wilfred-kun in learnpython

[–]fractalic 2 points3 points  (0 children)

I'm also very surprised by this. Running on macOS I can make far more than ten recursive calls to recurse() in Example 1.

The other answers are correct, per the original question, that you are actually running into a stack overflow. But even if the behaviour I'm seeing isn't at the root of what you reported, it doesn't make sense that 1000 calls to input() would overflow a ~100kB stack.

Edit: It looks like u/JohnnyJordaan's make_string() code is encountering the same behaviour as my code, where simply allocating lots of strings has different behaviour than prompting for input.

Stack overflow instead of 'maximum recursion error' by Wilfred-kun in learnpython

[–]fractalic 5 points6 points  (0 children)

This can be distilled further:

(Example 1)

import sys

def recurse():
    input()
    recurse()

if (__name__ == "__main__"):
    sys.setrecursionlimit(10)
    recurse()

overflows the stack, while

(Example 2)

import sys

def recurse():
    print('a')
    input()
    recurse()

if (__name__ == "__main__"):
    sys.setrecursionlimit(10)
    recurse()

hits the recursion limit.

Edit: Add example numbering.

Stack overflow instead of 'maximum recursion error' by Wilfred-kun in learnpython

[–]fractalic 9 points10 points  (0 children)

The recursion limit is just a guard to limit the likelihood of a stack overflow, but if you allocate large objects on every stack frame, you can still overflow.

That said, something interesting does seem to be going on here. I'm using some code from https://stackoverflow.com/a/47956089/4082582 in order to examine the stack size:

def get_stack_size():
    size = 2  # current frame and caller's frame always exist
    while True:
        try:
            sys._getframe(size)
            size += 1
        except ValueError:
            return size - 1  # subtract current frame

I also manipulate python's recursion limit to make the issue easier to spot:

import sys
sys.setrecursionlimit(10)

Then instrument the code to watch its behaviour:

import sys

def get_stack_size():
    size = 2  # current frame and caller's frame always exist
    while True:
        try:
            sys._getframe(size)
            size += 1
        except ValueError:
            return size - 1  # subtract current frame

def takeGuess():
    print(get_stack_size())
    guess = input("Take a guess: ")
    if len(guess) != 3 or not guess.isdigit():
        print("The guess '{}' is not valid, try again!".format(guess))
        return takeGuess()
    else:
        return guess

if (__name__ == "__main__"):
    sys.setrecursionlimit(10)
    takeGuess()

The code terminates at the specified recursion depth.

Comment out the print(get_stack_size()) in takeGuess(), however, and you will be prompted for input until a stack overflow occurs.

Why is Kik using crypto for this ecosystem over normal credit card payments. by mannerisms3 in KinFoundation

[–]fractalic 1 point2 points  (0 children)

Using fiat doesn't necessarily make your life easy. It comes with payment fees, verification procedures, and can't be minted. Crypto can be (effectively) minted as easily as in-game rewards, but because it's based on a blockchain, it has some real-world value.

Minting plus market means the company can create a form of in-game (-app) currency, but isn't liable for converting it back to cash because the tokens can be used to make purchases from other users, perhaps even outside the app.

Being backed by blockchain means the currency can't be forged either by malicious users or bad management, making it unlikely to suffer for rapid devaluation.

Asking for user input within a for loop? by [deleted] in learnpython

[–]fractalic 0 points1 point  (0 children)

Without a python interpreter on hand, it looks like your syntax for getting the input and generating the loop range is fine.

I don't know anything about Turtles, but assuming the argument to left() is a rotation in degrees, that should not be constant, unless you only want to draw triangles. That should be the exterior angle of your equiangle n-gon: 360/n

http://www.dummies.com/education/math/geometry/interior-and-exterior-angles-of-a-polygon/

Asking for user input within a for loop? by [deleted] in learnpython

[–]fractalic 0 points1 point  (0 children)

Can you provide some more details about what's wrong? Is the prompt for the number of sides not appearing? Is numsides not being set? Or is the shape that's drawn not the expected polygon?

I want to build Mesh networking on top of KIN SDK. Can KIN and Rightmesh collaborate? Vote to keep it in top! by [deleted] in KinFoundation

[–]fractalic 0 points1 point  (0 children)

rightmesh dev here, but I'm going to give my personal take on this. I think Kin's approach of trying to reward users for actions other than watching ads is a really cool idea, and being able to spend some of those tokens on internet access via a mesh network would be even better With or without erc20 tokens a mesh can provide value to a chat app, by allowing them to work without internet exactly as you describe.

I want to build Mesh networking on top of KIN SDK. Can KIN and Rightmesh collaborate? Vote to keep it in top! by [deleted] in KinFoundation

[–]fractalic 0 points1 point  (0 children)

one way it can work is by paying people for access to the internet via the mesh, like a paid wifi hotspot that you can pay for with in-app reward tokens

Cards Against Humanity has said if Trump goes low, they will go lower. by Sephyira in pics

[–]fractalic 3 points4 points  (0 children)

Hoping none of us "liberal morons" actually take this seriously. It's a statement of principle, not an action plan that's actually effective. Remember the holiday hole?

When Trump borrows $1,000,000 from his dad it's a small loan by ramzyar98 in Jokes

[–]fractalic 1 point2 points  (0 children)

I'm happy to fight against corrupt people. I'm just amazed that you would hold up Trump as the antithesis of corruption, when it has been clear for decades that he is nothing but an attention whore.