ProgrammerHumor

gamblingWithLain

gamblingWithLain
https://i.redd.it/71sq0g98oldf1.jpeg
Reddit

Discussion

KyxeMusic
:py::rust:

Honestly if you put Windows on a Raspberry Pi you deserve this

4 hours ago
iamdestroyerofworlds

All I see is a badly written adware removal script.

Line 4 should clearly not be there.

4 hours ago
legendLC

Windows is not so bad,

... it is the baddest

1 hour ago
xonxtas
:py::cp::j:

I guess, apart from the fact that the path string is invalid, there's another little problem. From the official Python docs:

os.remove(path, \, dir_fd=None)
Remove (delete) the file 
path. If path* is a directory, an OSError is raised.

4 hours ago
Septem_151
:py::ts::bash::j:

This code isn’t valid the path backslashes mess it up. \W and \S. Also doesn’t work if not on Windows. Also what’s the pi for?

4 hours ago
cheerycheshire
:py:

Invalid escape sequences work in python. In the past they silently worked, for several versions now they emit SyntaxWarning: invalid escape sequence "\W".

So this code actually works (just with warnings) because both \W and \S are not real escape sequences...

But if it was user folder? C:\Users\... - \U is valid, but "s" is not valid continuation. So it throws as exception instead: SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 0-1: truncated \UXXXXXXXX escape

I've seen people not escape paths with silently working escape sequences. Like a folder/file starting with t, so it was \t in the path...

4 hours ago
Septem_151
:py::ts::bash::j:

Interesting!

4 hours ago
The-Rizztoffen
:p:

Running Windows on ARM

34 minutes ago
GermanyBerlin1945
:unity:

This way it won't work. Although there is another way to actually do it, I don't remember it

4 hours ago
Disastrous-Olive-677

To be sure I would've used %WINDIR%\system32

4 hours ago
TheMunakas

\s is invalid and will error out.

4 hours ago
RiceBroad4552
:s:

What is "C:\Windows\System32"?

Is it somehow important? My computer doesn't have it and runs just fine.

4 hours ago
echtemendel

it has "windows" in it, so maybe a part of X11? 🤔

3 hours ago
JetScootr
:asm::c::ftn::bash::snoo_feelsgoodman:

Ah...good old snark from when Linux was a challenger on the desktop.

(PS: You also need to ask what that "C:" is for on the filesystem name)

4 hours ago
gregorydgraham

Don’t run Linux, still can’t find System32 in the Finder 🤷‍♂️

3 hours ago
Mars_Bear2552
:cp:

linux is more a challenger now than possibly ever before.

3 hours ago
30SecondsToOrgasm

Swap RasPi memory card for Linux-image

4 hours ago
Alex_NinjaDev

If reality is just code, then deletion is just... freedom. Lain probably

4 hours ago
Regular-Group4223

If lain still existed, would she use linux?

4 hours ago
Fedepovero_02

A few months ago I was skimming through my professor's c++ code and found a delete os instruction. After a brief heart attack and trying to figure out what he was trying to do, it turned out he initialized a pointer to an ostream object, which he called "os", and then he diligently deallocated it in the destructor of the class that the code was implementing

4 hours ago
PinkSwayy

She smiled and suddenly I’m ready to roll a d6 for my life savings system32.

4 hours ago
enderfx

How many variations of this bad, old, overused joke are we going to see?

This is so far the cringiest one

3 hours ago
echtemendel

this subreddit is about 99% recycled lame jokes

3 hours ago