[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
more like this
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 51
Thread images: 13
File: RGLFim0.png (131 KB, 890x670) Image search: [Google]
RGLFim0.png
131 KB, 890x670
more like this
>>
>tfw
102 == "Your number is odd!"
>>
getTomorrowsDate() {
sleep(86400)
getCurrentDate()
}
>>
>>53908373
Woah nice job dude master programmer you figured out the one test case in which this program fails nice job dude you must be in your SECOND semester at community college at LEAST woah
>>
>>53908359
Why not just set it to multiples of 2 then rest odd?
>>
>>53908359
Us
If n(the number)/2 mod 1 !=0
Print('odd numbr')
>>
File: lebron james.png (433 KB, 800x900) Image search: [Google]
lebron james.png
433 KB, 800x900
>>53908400
holy shit nigger. calm the fuck down
>>
>>53908373
Yeah... that's the joke... ????
>>
>>53908411
stay mad pajeet
>>
File: 1452097863267.jpg (39 KB, 268x265) Image search: [Google]
1452097863267.jpg
39 KB, 268x265
>>53908373
>>53908405
ugh, when did the redditors start going to /g/?
>>
>>53908405

CONGRATULATIONS ANON YOU GET THE JOB!
>>
File: gigasmon.png (58 KB, 253x303) Image search: [Google]
gigasmon.png
58 KB, 253x303
>>53908466
woah. how did you know?

You hacking me bro?????
>>
File: 1459387858325.png (82 KB, 461x660) Image search: [Google]
1459387858325.png
82 KB, 461x660
>>
>>53908359
>tfw I'm actually in that level. I was better, but not anymore.
>>
>>53908695
nice
>>
>>53908695
I've heard of this one. Wow
>>
>>53908695
How easily can this kind of malicious code be ran on Linux? Can anything stop a program before that kind of shit executes?
>>
>>53909156
As easily as it could be ran on windows, it can do whatever it wants if you give it root/administrator permission
>>
File: 1436844419764.gif (2 MB, 500x280) Image search: [Google]
1436844419764.gif
2 MB, 500x280
>>53908392
more like this
>>
>>53908695
This one gets me everytime
>>
>>53908359
MODS
>>
>>53908405
That university degree must have done you something boy!
>>
    if(boolVar == true || boolVar == false) {
switch(boolVar) {
case true:
return true;
break;
case false:
return false;
break;
default:
return boolVar;
}
}
>>
File: 1427224521810.jpg (41 KB, 550x512) Image search: [Google]
1427224521810.jpg
41 KB, 550x512
>>53908695
>>
File: 1458915376002.png (134 KB, 1100x693) Image search: [Google]
1458915376002.png
134 KB, 1100x693
>>
File: 1459084469453.png (199 KB, 1079x753) Image search: [Google]
1459084469453.png
199 KB, 1079x753
>>
File: goldenlel.jpg (104 KB, 343x343) Image search: [Google]
goldenlel.jpg
104 KB, 343x343
>>53909381
>cd: no such file or directory: code
>>
>>53909381
shit nigger... I know ppl like this
>>
>>53908405
You can't just make it

if( n % 2 !=0 )
print("odd number");

?? or did I just take some bait? Both our codes do the same thing, right?
>>
File: 1437680939295.jpg (132 KB, 1325x1323) Image search: [Google]
1437680939295.jpg
132 KB, 1325x1323
>>53909390
>mfw he uses the version of the web that is program-free, because software has of late been written exclusively for it.
>>
Does doing shit like hacker rank help avoid this kind of meme code
>>
>>53909390
This guy tried to fight quads.
>>
>>53909476
Just learning your operators helps avoid this kind of meme code.
>>
>>53908359
Little thing I did at work after our bosses got pissed at the retards they hire

>get asked to create a test
>I have no degree and program as a hobby
>we hire new programmers out of college
>make fizzbuzz a requirement
>test every programmer currently hired.
>two people pass out of 30+ programmers

It was fucking pseudo code, you spent four fucking years learning this shit how can you not know about mod.
>>
>>53909350
????.... :0
...???

I would have to be high. There might be a legit concern about conversations because we can't see the type of boolVar here. But it's mostly madness.
>>
>>53909549
Answer in psuedocode? ; ( That hurts my economyjimmies.
>>
>>53909549
i hope every software company does this, I don't want to work with retards in the future
>>
>>53909555
It's javascript, vars are loosely typed. The code does the same as:
return boolVar;
o.O
>>
>>53908695
Wasn't there something like this in the Steam Linux client?
>>
File: CeVnsGlXIAANrZX.jpg:large.jpg (88 KB, 865x485) Image search: [Google]
CeVnsGlXIAANrZX.jpg:large.jpg
88 KB, 865x485
>>53909549
>>
>>53908695
rogue whitespace is hard to spot
>>
>>53909156
>How easily can this kind of malicious code be ran on Linux? Can anything stop a program before that kind of shit executes?
Yeah, it's called access control: in particular, you want to look up mandatory access controls (like SELinux).
>>
>>53909156
ubuntu pretty much stops rm -rf / with a explicit warning
>>
>>53909733
The most painful part is that the person used npm.
>>
File: left.png (17 KB, 589x285) Image search: [Google]
left.png
17 KB, 589x285
>>53910053
that's the point
node programmers just import a load of shit and call them instead of writing basic code
http://www.theregister.co.uk/2016/03/23/npm_left_pad_chaos/
>>
If (a < b && b > a)
>>
>>53908405
>>53909440
this series of posts makes my head hurt
>>
>>53909733
this is kind of beautiful, in its own special, retarded way
>>
>>53909629
No it doesn't. If boolVar is neither true or false, then it doesn't return anything.
>>
>>53908400
>rage for no reason.
>rags on people for being in community colleges.
looks like someone didn't get into uni because they were too stupid
>>
    def decode(self:object, string: str, min_confidence: float=0.5) -> str:
if not isinstance(string, str):
return string

try:
string = string.encode('utf-8').decode('utf-8')
except UnicodeEncodeError:
string = string.encode('utf-8', 'surrogateescape')
encoding = chardet.detect(string)

if encoding['confidence'] > 0.5:
return string.decode(encoding['encoding']).encode('utf-8').decode('utf-8')

return string


Python function I wrote to decode Usenet headers :^)
Thread replies: 51
Thread images: 13

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.