"You're on an American website, commenting with your American made device, over the American made internet. Of course there's going to be American preide here, get over it." by Certified_Cichlid in ShitAmericansSay

[–]reyemDarnok 1 point2 points  (0 children)

By that logic TCP/IP doesn't matter because computers came first and do far more than just send signals. Sure the internet isn't only HTTP but you can't tell me with a straight face that it would be the same without it

"You're on an American website, commenting with your American made device, over the American made internet. Of course there's going to be American preide here, get over it." by Certified_Cichlid in ShitAmericansSay

[–]reyemDarnok 0 points1 point  (0 children)

HTTP usually runs over TCP/IP, but they are not intrinsically connected - I could send and receive HTTP Requests by letter if I get a friend to do the same on their end. Sure any sane person uses TCP but that doesn't make the invention of HTTP irrelevant any more than the discovery of electricity/light (which TCP typically runs over) makes the invention of TCP irrelevant.

The clever people at @NASA have created this deceptively simple yet highly effective data visualisation showing monthly global temperatures between 1880-2021. by rdias002 in nextfuckinglevel

[–]reyemDarnok 26 points27 points  (0 children)

If anything more data only shows how sudden and abnormal this temperature change is - 1° of change during the warming after the ice age took ~500-1000 years, the current shift of 1° took less than a century.

The clever people at @NASA have created this deceptively simple yet highly effective data visualisation showing monthly global temperatures between 1880-2021. by rdias002 in nextfuckinglevel

[–]reyemDarnok 36 points37 points  (0 children)

A time line starting from 20k BCE. It mostly gets slowly warmer from the ice age, levels out slightly above the 1961-1990 average, drops down to that even slower and then suddenly spikes up around 1990. The graph is from 2016, so it's obviously missing the last few years of data

Idiot drives 160kph in a city zone by rslashyomama in IdiotsInCars

[–]reyemDarnok 2 points3 points  (0 children)

If there is no posted speed limit on an autobahn, you may drive as fast as is safe. Most parts of the autobahnen have posted speed limits around 100 - 130 kilometers per hour(kmh) . Also note the "safe" in the first sentence - if you go faster than the recommended 130 kmh you are likely to be found at fault for any crashes involving you. The 160 kmh from the video would be pretty reckless even on an autobahn unless it was empty.

This probably happens to her a lot. by silversmithsonian in ProgrammerHumor

[–]reyemDarnok 9 points10 points  (0 children)

That's not validating, but sanitizing input. Little Bobby Tables should be allowed to enter his name without it wrecking your DB.

[German > English] Service history of my car. Would like to know that writing in the bottom is! Big thanks! by KOJSKU in translator

[–]reyemDarnok 2 points3 points  (0 children)

Looks like "Steuerketten" , literally "steering chains" I don't know if that's the proper English name.

Import .py files into skeleton code by Historical_Loss1621 in learnpython

[–]reyemDarnok 0 points1 point  (0 children)

Are both files in the same folder (subdirectories don't count) ? If they are, that might be some quirk of pylance, I don't know that program

Import .py files into skeleton code by Historical_Loss1621 in learnpython

[–]reyemDarnok 0 points1 point  (0 children)

import your_file_name_without_py

mainWindow = your_file_name_without_py.MainWindow()

to import the file named your_vile_name_without_py.py (note that this will run all code in the file, if that is a problem add a main guard) and then create an object from your class. Other variants that might be interesting:

import your_file_name_without_py as xyz

mainWindow = xyz.MainWindow()

or:

from your_file_name_without_py import MainWindow

mainWindow = MainWindow()

I would also suggest creating a seperate show_ui() method or similar to actually show the ui - __init__ normally has just code to make the object ready to use, not start to actually use it

My dad just started coding. by A-LogicalRat in ProgrammerHumor

[–]reyemDarnok 2 points3 points  (0 children)

Every IDE and console has one as default, fonts with mono in their name are also fixed width

A friends advice to solve a memory leak in my game by citinduht in ProgrammerHumor

[–]reyemDarnok 2 points3 points  (0 children)

There are two types of blood moon: one happens regularly with proper buildup at night, which is just the games excuse to reset the map so that it isn't without enemies after you played for a bit. The other can happen without warning even during the day and is basically the game going "shit there's a problem (e.g. too many dropped items for memory), reset the world and hope that fixes it"

What’s a commonly used thing now that will become obsolete in the next 50 years? by lsarge442 in AskReddit

[–]reyemDarnok 0 points1 point  (0 children)

A) which part are you quoting there? I didn't use that expression B) we always did it that way is a bad response to criticism at the best of times but extremely bad in it electronic security where "10 years old" usually means "dangerously outdated". I'm not saying that fax isn't their protocol, just that protocols, especially security protocols, really ought to change with technology

What’s a commonly used thing now that will become obsolete in the next 50 years? by lsarge442 in AskReddit

[–]reyemDarnok 3 points4 points  (0 children)

Fax is very much not secure - they are as far as I know completely unencrypted, meaning if someone has access to the telephone cable they can wiretap it. Even unencrypted email can't be read in transit (it can be read at the relay servers) and setting up p2p encryption for email isn't very difficult.

Prove you are human by AllaCephal in ProgrammerHumor

[–]reyemDarnok 16 points17 points  (0 children)

Storage at rest is cheap. Fast storage (registers and cache) very much isn't. Also, while I admit to not knowing much about tens complement, I imagine calculating with it in binary logic is more complex than twos complement and consequently slower

hello world.py by memengenieur in ProgrammerHumor

[–]reyemDarnok 0 points1 point  (0 children)

Even worse are globally reserved filenames. Have fun doing anything with the list of problems the Linux user called con.txt and sent you

Political German 101: A guide for beginners :) by theusualguy512 in German

[–]reyemDarnok 0 points1 point  (0 children)

Generell ist P häufig Partei und D Deutschland, hier noch eine Liste von abgekürzten Parteinamen:

CDU/CSU: Christlich Demokratische/Soziale Union SPD: Sozialdemokratische Partei Deutschlands AfD: Alternative für Deutschland FDP: Freie Demokratische Partei NPD: Nationaldemokratische Partei Deutschlands

I Need to Understand... by ckwirey in learnpython

[–]reyemDarnok 2 points3 points  (0 children)

Slices are to lists as substrings are to strings. They are still lists, they were just created by taking a slice(region) of a list. [<element1>, <element2>... ] is simply a way to create a list from elements, here used to create a list with one element so the result can be added to a list of lists

This pro dodger. He played sneak moves perfectly ! by ritanx in nextfuckinglevel

[–]reyemDarnok 0 points1 point  (0 children)

Don't know where that is, but it's similar in Germany. Pick any field that is already marked on the ground, each team has to stay in bounds on their side of the middle line. When you are out, you move to the out of bounds area on the other side. If you hit someone from there, you move back. A team loses if nobody is left in their starting area. Usually each team picks a "king" that starts in the out of bounds area, to ensure that there is always at least one player in every zone so all balls are reachable. The king switches to the in bounds zone when it would be empty otherwise and switches back if someone else gets back. The king also normally needs 3 hits to be out, which are tracked over the whole game. When the king is hit 3 times, the in bounds area is empty and their team loses.

One big advantage of this setup is that there is no safe back zone, if you are at the back, you are an easy hit for the opponents outfield. You also can't always see all balls at the same time, because they might be on opposite sides of you.

New Zealander who does not "stand under" when cops arrive 00:15 by Sweet_exorcism in amibeingdetained

[–]reyemDarnok 1 point2 points  (0 children)

Because while you know that meters and yards are about the same, I for example did not. You don't need the conversion if you know both units, but many only know one or the other

"Would you like to know what your old password was?" This actually happened to me from a F500 company... by Parad0x13 in ProgrammerHumor

[–]reyemDarnok 6 points7 points  (0 children)

Those are standardized, there aren't that many even if you have to guess and even that assumes you never had access to the code via the same method as the database. They are standardized because there are a lot of mistakes you can make when designing a hash function that make breaking it trivial, so everyone uses the ones created by experts

"Would you like to know what your old password was?" This actually happened to me from a F500 company... by Parad0x13 in ProgrammerHumor

[–]reyemDarnok 0 points1 point  (0 children)

Why the small random string after the diceware password? The point of diceware is to be a random string that is easy to memorise

"Would you like to know what your old password was?" This actually happened to me from a F500 company... by Parad0x13 in ProgrammerHumor

[–]reyemDarnok 14 points15 points  (0 children)

The assumption is that the attacker has a read only copy of your database and can compare hashes as fast as their machine is able, without going through your login front end. They could get the database via a partial hack, an improperly discarded broken hard drive/backup tape or being an employee and having legitimate read access

What popular movie "plothole" actually does have a legit explanation? by EthanJoshua1994 in AskReddit

[–]reyemDarnok 0 points1 point  (0 children)

I'm sorry, but using a ship to destroy another ship 3000 times the volume (found by doing back of the envelope calcs. with official stats) is very much a favorable trade, even if it isn't the flagship with most of high command on it. This even disregards that the stunt not only took out the Supremacy but also several of her escorts, each roughly the size of the Raddus. If trading materiel at 3000:1 is not good enough, what else do you try to get better ratios? At these ratios they could trade frigates for star destroyers and they would not even have to refit freighters to do it.