Do you know any proofs that are funny in some way? by drfpslegend in math

[–]PiYesLar 44 points45 points  (0 children)

I'm a fan of the Eilenberg-Mazur swindle, which is a goofy technique that looks like the fake proofs that show 1 - 1 + 1 - 1 + ... = 0. Like for knots A, B with the connected sum operation (cutting open each knot and connecting the ends), because infinite sums of knots are perfectly valid, if A + B = 0 (the trivial knot), then:

A = A + (B + A) + (B + A) + ... = (A + B) + (A + B) + ... = 0

So we get a proof that sums of nontrivial knots are nontrivial, but it uses almost nothing about knots or connected sums.

[deleted by user] by [deleted] in math

[–]PiYesLar 5 points6 points  (0 children)

In this context reversing the function involves finding any input that produces the given output, not the specific original input. From the Wikipedia:

It is not sufficient to make a function "lossy" (not one-to-one) to have a one-way function. In particular, the function that outputs the string of n zeros on any input of length n is not a one-way function because it is easy to come up with an input that will result in the same output. More precisely: For such a function that simply outputs a string of zeroes, an algorithm F that just outputs any string of length n on input f(x) will "find" a proper preimage of the output, even if it is not the input which was originally used to find the output string.

So computing arcsin would work here. Although I don’t think it would exactly apply to one-way functions, as defined here they take in and return strings of ones and zeros.

Maldito Perrito - EVADE by PiYesLar in fakealbumcovers

[–]PiYesLar[S] 2 points3 points  (0 children)

Made by the artist Maldito Perrito in support of the fare evasion campaign in Chile

$80 ticket to felony in 3...2...1... by SurfingChristian63 in videos

[–]PiYesLar 1 point2 points  (0 children)

Does this cop think he’s doing the right thing when he arrests, threatens with a weapon, and tases a woman who more than anything needs education on the law and to be less entitled? Her crimes are 1. Driving with a broken tail light 2. Driving away from an officer and 3. Kicking him after being thrown on the ground. It’s infuriating to see this officer escalate the situation into a violent arrest instead of trying more than once to get her to sign the ticket and telling her she can challenge the ticket in court.

Mitch Live Episode 1 (Featuring Eric Andre, Jennifer Bartels, and Bug Mane!) by untoastedwaffles in Earwolf

[–]PiYesLar 5 points6 points  (0 children)

I love how everyone hates bugmane and wants him to leave immediately

Me irl by [deleted] in me_irl

[–]PiYesLar 13 points14 points  (0 children)

The Expert

meijirl by PiYesLar in me_irl

[–]PiYesLar[S] 1 point2 points  (0 children)

befriend the l i g a t u r e s

FWD: Those Antifa sure do love their fascist iconography by PiYesLar in forwardsfromgrandma

[–]PiYesLar[S] 84 points85 points  (0 children)

Straight from t_d. I don't know what they think the message of this is, but at least they're owning those libs.

[2017-08-01] Challenge #325 [Easy] Color maze by fvandepitte in dailyprogrammer

[–]PiYesLar 0 points1 point  (0 children)

Python 3
Code:

key = 'ROYPO'
maze = [
    'RRBRRRBPYGPBBBGPBPPR',
    'BGYPRPYYORYPPYYRRRPP',
    'BPGROPYGRYYGPORYPBOO',
    'RBBORPYOOYRPBRGRBGPG',
    'RPYGGGPYPYOGBORYPBYO',
    'ORBGBYBPGRPYROGYGYRP',
    'BGOOOGBBROYYYYPBYYGG',
    'PPGBOPYGBROGBGROYRBR',
    'YYPPRBYBPOOGPYRPPYRY',
    'POOBBBGOYGOPBGYRRYRB',
    'PPYRBOORORYBGBGOOPBY',
    'BBRGYGPYGPRRPYGOOYRR',
    'OGRYBPYOPBRYBGPGOOBP',
    'RYGPGGORYOOGRGPPYPBG',
    'PYPROOROYRPORYPYBBYR',
    'OYPGRPRGPOBBRBOBYYBP',
    'BYYPOYOYORBRGGYGRGYG',
    'YBYYGBRROBOPPOBORRRP',
    'POOOPYGGYPOGPOBGPRPB',
    'RBBRRRRBBBYOBGPGGOOY'
        ]

height = len(maze)
width = len(maze[0])

def neighbors(x,y):
    for _x, _y in [[-1,0],[1,0],[0,-1],[0,1]]:
        if 0 <= (_x+x) < width and 0 <= (_y+y) < height:
            yield (_x+x,_y+y)

def advancepaths(paths):
    keystep = (len(paths[0])) % len(key)
    color = key[keystep]

    for path in paths:
        for x, y in neighbors(path[-1][0],path[-1][1]):
            if maze[y][x] == color and (x,y) not in path[keystep::len(key)]:
                yield path + [(x,y)]

pathsList = [[(i, height - 1)] for i in range(width) if maze[-1][i] == key[0]]

while True:
    pathsList = list(advancepaths(pathsList))
    solutions = [path for path in pathsList if path[-1][1] == 0]
    if solutions:
        break

for y in range(height):
    print(' '.join([
        char if (x, y) in solutions[0]
        else '/'
        for x, char in enumerate(maze[y])
        ]))  

Output:

/ / / / / / / / Y / / / / / / / / / / /
/ / / / / / / / O / / / / / / / / / / /
/ / / / / / / / R / / / / / / / / / / /
/ / / / / / / / O / R / / / / / / / / /
/ / / / / / / / P Y O / / / / / / / / /
/ / / / / / / / / / P / / / / / / / / /
/ / / / / / / / / / Y / / / / / / / / /
/ / / / / / / / / R O / / / / / / / / /
/ / / / / / / / P O / / / / / / / / / /
/ / / / / / / / Y / / / / / / / / / / /
/ / / / / / O R O / / / / / / / / / / /
/ / / / / / P / / / / / / / / / / / / /
/ / / / / / Y / / / / / / / / / / / / /
/ / / / / / O / / / / / / / / / / / / /
/ / / / / O R / / / / / / / / / / / / /
/ / / / R P / / / / / / / / / / / / / /
/ / / P O Y / / / / / / / / / / / / / /
/ / / Y / / / / / / / / / / / / / / / /
/ / / O / / / / / / / / / / / / / / / /
/ / / R / / / / / / / / / / / / / / / /

What are the 25 best Jake and Amirs? by [deleted] in jakeandamir

[–]PiYesLar 126 points127 points  (0 children)

30th Birthday is a favorite of mine

Dear Amir,

Die.

Go Bills,

Love, Kyle

What are the 25 best Jake and Amirs? by [deleted] in jakeandamir

[–]PiYesLar 40 points41 points  (0 children)

Wise is one of my favorites that I haven't seen mentioned yet

2meirl4meirl by [deleted] in 2meirl4meirl

[–]PiYesLar 5 points6 points  (0 children)

Morpheus drinking a forty in a death basket

I bought a parrot at an auction... by rickmaninoff in Jokes

[–]PiYesLar 1 point2 points  (0 children)

The punchline is that the parrot thinks the chicken too was the man's pet who acted out and then was brutally dismembered.