Details
Joined devRant on 12/3/2017
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
Today I got a message from a "friend" of @Alice and me, for a long time. And I was already ranting by myself, because this little fucker is writing maybe two or three times a year, just to have a computer support, like now. He needed help, because a game was crashing everytime at a specific point, and I advised him to reinstall the game, which he can't, because of his slow internet. His answer stated, that he would have only slow internet right now. After this I explained him, that his internet is for around 2.5 years slow. And 2.5 years aren't "right now". I'm still waiting for any reaction.
It's the same fucking guy in Alice's wk post here: https://devrant.com/rants/1564585/...2 -
I like the the ads. No flashy thing, no image which doesn't fit to the side bar, and it seems that it fits to the rants topic. So when I talk about python, will it show a python ad? Sorry for being too curious.1
-
My goals before we reach wk200...
-continue/finish my education
-move together with my girlfriend
-get a decent work if I already finished my education3 -
Today, I had a small, but funny conversation with a person I knew from my education (application developing).
He suddenly asked, how to prevent using HTML-Tags in PHP.
So I send ihm following line:
$string = str_replace(array("<", ">"), array("<", ">"), $string);
Shortly after the line, he asked, how to add this into his query, which looks like:
$query = "INSERT INTO comments (name, email, quote, hinzugefuegt, ip_adress) VALUES ('" . $_POST['vName'] . "', '" . $_POST['eMail'] . "', '" . $_POST['q17'] . "', NOW(), '" . $_SERVER['REMOTE_ADDR'] . "')";
Now I thought: "Well, he don't even secure his variables", and I posted a Pastebin, which only "fixes" his issue with replacing the HTML-Tags, but still allows SQL injection.
https://pastebin.com/kfXGje4h
Maybe I'm a bad person, but he doesn't deserve it otherwise, because when I was still in education with him, I told him, he should learn to use prepared statements.3 -
Well, my dev sin is...
Basically every project of mine is not commented, is not unit tested and doesn't have any kind of documentation.
But I try to remove my bad habit!1 -
Either "He's addicted, he only plays on the Computer" or "Hey, you know some things, can you help me repairing my Computer?"