[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

/g/ humor thread


Thread replies: 319
Thread images: 117

File: hihgcpu.png (51KB, 1306x504px) Image search: [Google] [Yandex] [Bing]
hihgcpu.png
51KB, 1306x504px
/g/ humor thread
>>
Resolution
To resolve the issue, do not create a user account contains the string "user" on the computer.
WOW REALLY?
>>
File: 1466984591403.png (130KB, 1604x1168px) Image search: [Google] [Yandex] [Bing]
1466984591403.png
130KB, 1604x1168px
>open sores software
>>
File: 1466985249667.jpg (54KB, 576x382px) Image search: [Google] [Yandex] [Bing]
1466985249667.jpg
54KB, 576x382px
>>
File: 1466789307824.jpg (16KB, 714x547px) Image search: [Google] [Yandex] [Bing]
1466789307824.jpg
16KB, 714x547px
>>
>>55295854
>>55295889
Microsoft Defense Squad over here
>>
>>55295854
>open sores software
nanisore.sys
>>
File: 10u61t.jpg (120KB, 500x707px) Image search: [Google] [Yandex] [Bing]
10u61t.jpg
120KB, 500x707px
>>
File: 1464319906723.jpg (471KB, 2272x1704px) Image search: [Google] [Yandex] [Bing]
1464319906723.jpg
471KB, 2272x1704px
>>
>>55295917
>no keyboard found
>press any key to continue
every time
>>
File: 1307815839904.jpg (50KB, 500x333px) Image search: [Google] [Yandex] [Bing]
1307815839904.jpg
50KB, 500x333px
>>
File: 1465342028643.jpg (74KB, 877x745px) Image search: [Google] [Yandex] [Bing]
1465342028643.jpg
74KB, 877x745px
>>
>>55295917
What language is this?
>>
File: 1466645927849.jpg (123KB, 811x608px) Image search: [Google] [Yandex] [Bing]
1466645927849.jpg
123KB, 811x608px
>>
>>55295917
>stard windoc normalli

KEK OF THE TIME

KEK

N V I D I O T
>>
File: 1465341741264.jpg (37KB, 500x494px) Image search: [Google] [Yandex] [Bing]
1465341741264.jpg
37KB, 500x494px
>>55295938
>>
>>55295940
fuccboianese
>>
>>55295889
that's not open source.
that's the Hammerhead Eagle i-Thrust.
>>
>>55295940
8-bits-off-in-video-memory language
>>
File: 1462920040722.jpg (9KB, 246x227px) Image search: [Google] [Yandex] [Bing]
1462920040722.jpg
9KB, 246x227px
>>
>>55295938
Does it have ECC?
>>
>>55295934
>what is short-circuiting
>>
>>55296477
>what is short-circuiting
Something that has nothing to do with that picture.
>>
>>55296509
What if you use a shorter cable?
>>
File: 1454829502499.webm (520KB, 360x360px) Image search: [Google] [Yandex] [Bing]
1454829502499.webm
520KB, 360x360px
>>55296477
>>
>>55296531
Unless the polarities are switched, it does not matter how long the cable is.
>>
File: 1440100311305.jpg (32KB, 500x666px) Image search: [Google] [Yandex] [Bing]
1440100311305.jpg
32KB, 500x666px
>>55295924
>>
>>55295854
Aside from avatars and bad kerning I see nothing wrong with this
>>
File: system8mhz_nah_1600.jpg (54KB, 800x600px) Image search: [Google] [Yandex] [Bing]
system8mhz_nah_1600.jpg
54KB, 800x600px
>>
>>55296681
My first 386 had a faster clock than this Pentium.
>>
he fell for the
>I'm gonna """"Study"""" """"Cyber Security"""" :^D meme
>>
>>55295917
>"Yeah, I see what the problem is. You computer's had a stroke"
>>
>>55296699
Underclocked
>>
File: 1467060834222.png (74KB, 700x468px) Image search: [Google] [Yandex] [Bing]
1467060834222.png
74KB, 700x468px
>>
File: mfw.png (117KB, 1024x749px) Image search: [Google] [Yandex] [Bing]
mfw.png
117KB, 1024x749px
>>55295917
>>
>>55295838
>a bug that retarded is allowed to exist
what kind of pajeets did they hire to write windows?
>>
File: server crash.jpg (107KB, 919x800px) Image search: [Google] [Yandex] [Bing]
server crash.jpg
107KB, 919x800px
DROP SERVER
>>
File: SydBarrett_nuts.jpg (24KB, 350x541px) Image search: [Google] [Yandex] [Bing]
SydBarrett_nuts.jpg
24KB, 350x541px
>>
File: 0W.jpg (108KB, 750x588px) Image search: [Google] [Yandex] [Bing]
0W.jpg
108KB, 750x588px
>>55296831
>>
File: Rowsdower!_shells.jpg (22KB, 312x475px) Image search: [Google] [Yandex] [Bing]
Rowsdower!_shells.jpg
22KB, 312x475px
>>55296841
>>
File: 1457554109880.jpg (37KB, 800x533px) Image search: [Google] [Yandex] [Bing]
1457554109880.jpg
37KB, 800x533px
>>
>>55296849
That made me laugh way harder than it should
>>
>>55296770
Of course, how stupid of me... Even the 486 that many of my friends had at the time were already 66 MHz, with that fantastic TURBO button that cut the clock in half, visible in that glorious display.

What was the purpose of the turbo button anyway? Who would want to turn it off?
>>
>>55296884
Conpatibility with older apps that used CPU clock. With turbo enabled they would look speedhacked.
>>
>>55296681
pretty impressive actually
>>
>>55296908
I remember that there were some older games that sped up real good, but even with the turbo off, it never slowed down enough. I don't remember a single time this was useful.
>>
>>55295854
>>
File: 1463706942914.png (93KB, 717x699px) Image search: [Google] [Yandex] [Bing]
1463706942914.png
93KB, 717x699px
>>
>>55295946
Kinda cure desu
>>
>>55296884
>>55296962
Some older games for the 8088 use the CPU cycles for timing, so they run perfectly only at 4.77MHz or 7MHz, turning ON turbo made the CPU run at those slower speed so the games would fine.
>>
>>55296981
seriously though, why is everything open source so inferior? is it because nobody gets paid?
>>
>>55297031
But on a 486 at 66 MHz, turning off the turbo meant going down to 33 MHz, hence my point.
>>
File: microsoftreport.jpg (60KB, 590x493px) Image search: [Google] [Yandex] [Bing]
microsoftreport.jpg
60KB, 590x493px
>>
File: 1460511208076.jpg (212KB, 800x600px) Image search: [Google] [Yandex] [Bing]
1460511208076.jpg
212KB, 800x600px
>>
File: zend.jpg (67KB, 807x349px) Image search: [Google] [Yandex] [Bing]
zend.jpg
67KB, 807x349px
>>
>>55297047

kek
>>
>>55297036
>is it because nobody gets paid?
Of course.
>>
>>55297047
>>55297063
>>
>>55297084
>>55297036
>>55296981
nice samefagging here
>>
>>55295838
>bug happen
>blame the user
>never fix it
Go kill yourself. never work on /g/ related stuff
>>
File: 1465416109742.jpg (245KB, 865x657px) Image search: [Google] [Yandex] [Bing]
1465416109742.jpg
245KB, 865x657px
>>
>>55297038
Must be some shitty ass motherboard.
>>
>>55296845
Would this really work?
>>
>>55297047
They automatically filter out such sites.
>>
>>55297054
This is actually a clever way of teaching how backlit displays work.
>>
>>55297158
No because the registration is saved as string
>>
>>55297054
A friend of mine has a laptop that's nearly in this bad of condition.
>>
File: 1457589630731.jpg (720KB, 1840x3264px) Image search: [Google] [Yandex] [Bing]
1457589630731.jpg
720KB, 1840x3264px
>>55296831
>>
>>55295854
>>55295889
>10 rupees have been deposited to your account Rajeesh.
>>
And then someone says that Reddit is worse than /g/, holy shit kill yourselves, Reddit is heaven compared to this shithole you inbred meme spouting faggots
>>
>>55297486
>le upboats
any community that actively encourages hivemind mentality is cancer
>>
>>55296981
Pretty ironic that Tesla made all their stuff open source. But maybe that's the joke here.
>>
>>55297136
I chuckled
>>
>>55297486
yeah, because karma point are totally not skewing the type of content that gets posted.
Pretty fucked up when people only post what think others could like, not what they themselves like.
>>
File: FB_IMG_1466704281959.jpg (109KB, 539x960px) Image search: [Google] [Yandex] [Bing]
FB_IMG_1466704281959.jpg
109KB, 539x960px
>>
>>55297486
>Discourages free speech with karma to improve user behaviour

lmao
>>
>>55297602
wtf, what's the point of those bars?
>>
>>55295854
>>55295889
>>55295904
>>55296981
>>55297036
Hello there! You seem to have used the term "open source".

This term was created by a group of people that did not want to be associated with the free software movement. When I say "free" software (one of the alternatives preferable to "open source"), it's not about price; in that case I would say "gratis", or "free as in free beer". It's about freedom! This is what the free software movement is fighting for.

So what is "free" software? Free software is any software that guarantees the user the four essential software freedoms:
> 0. Run the program as you wish.
> 1. Study the source code and change it so it does what you wish.
> 2. Redistribute exact copies of the program.
> 3. Distribute your modified version of the program.

Some people decided that they wanted to restrict the user; but being able to study and modify the "open source" code is not enough! This is directly hurting the cause of the free software movement because it takes away the sociological "freedom" aspect of free software and turns it into a technological issue.

So for those reasons I ask that, in the future, you use the terms "free", "free/libre" or, if necessary "FLOSS" (short for "free/libre and open source"), though the latter should still be avoided.
>>
File: 1460488641549.png (388KB, 634x602px) Image search: [Google] [Yandex] [Bing]
1460488641549.png
388KB, 634x602px
>>
>>55297707
KEKD HARD
>>
>>55297707
anyone has the pic?
>>
>>55297707
damn
>>
>>55297707
sauce?
>>
>>55297737
>>55297989
http://gelbooru.com/index.php?page=post&s=view&id=963860>>55297989
>>
>>55297647
keeping it clean
>>
>>55298052
man, it's a blue biard...
>>
>>55297647
(You)
>>
>>55298023
Thanks onii-senpai
>>
>>55298052
retard
>>
File: blue beard.jpg (21KB, 236x354px) Image search: [Google] [Yandex] [Bing]
blue beard.jpg
21KB, 236x354px
>>55298066
>>
>>55296540

Goddamn it every time
>>
>>55297707
why would someone use that as a phone wallpaper
>>
File: install-gentoo.gif (3MB, 640x360px) Image search: [Google] [Yandex] [Bing]
install-gentoo.gif
3MB, 640x360px
>>55297006
Do it.
>>
>>55298362
Plebs. Fucking weebo plebs.
>>
File: 0MVCR32.jpg (34KB, 460x607px) Image search: [Google] [Yandex] [Bing]
0MVCR32.jpg
34KB, 460x607px
>>
File: I am beyond mad.jpg (167KB, 600x450px) Image search: [Google] [Yandex] [Bing]
I am beyond mad.jpg
167KB, 600x450px
Take some
>>
>>55296548
>what is resistance
>>
>>55298707
>what is a loop
>>
>>55296531
>>55296509
>>55298707
https://www.youtube.com/watch?v=QKUSFQu96BI
>>
>>55296831
interstellar.jpg
>>
>>55298809

Does this mean that the "charging" icon from the OS simply detects if a power connector is attached, and doesn't care if there is actually enough current to charge the battery?
>>
>>55297245
K.... KEEP ME UPDATED
>>
File: 1387562786687.jpg (472KB, 1613x1210px) Image search: [Google] [Yandex] [Bing]
1387562786687.jpg
472KB, 1613x1210px
anyone remember this?
>>
File: 1388778425525.jpg (138KB, 1000x421px) Image search: [Google] [Yandex] [Bing]
1388778425525.jpg
138KB, 1000x421px
>>
>>55299684
fuck you, i'm still pissed i didn't start mining when bitcoins were first shilled on /g/ like 7 years ago
>>
>>55297158
Depends.
>>
>>55296778
mobile porn was available long before that, obviously it wasnt as good
>>
>>55295917
your pc stopped besponding :DDDD
>>
File: 3fe.gif (801KB, 360x203px) Image search: [Google] [Yandex] [Bing]
3fe.gif
801KB, 360x203px
>>55295902
>>55297332
>>55297668


> Getting this asshurt in a humor thread
> Cant take a fucking joke
>>
File: 1354570258205.jpg (605KB, 1366x768px) Image search: [Google] [Yandex] [Bing]
1354570258205.jpg
605KB, 1366x768px
>>
File: 1361965984797.jpg (131KB, 800x792px) Image search: [Google] [Yandex] [Bing]
1361965984797.jpg
131KB, 800x792px
>>
File: 1358804859594.jpg (67KB, 500x667px) Image search: [Google] [Yandex] [Bing]
1358804859594.jpg
67KB, 500x667px
>>
File: 1364379405698.jpg (192KB, 781x1920px) Image search: [Google] [Yandex] [Bing]
1364379405698.jpg
192KB, 781x1920px
>>
File: 1264158960977.png (436KB, 895x1131px) Image search: [Google] [Yandex] [Bing]
1264158960977.png
436KB, 895x1131px
>>
File: 1283785212416.png (74KB, 661x716px) Image search: [Google] [Yandex] [Bing]
1283785212416.png
74KB, 661x716px
>>
File: 1462059193953.png (44KB, 661x716px) Image search: [Google] [Yandex] [Bing]
1462059193953.png
44KB, 661x716px
>>
File: 1408482237691.png (100KB, 661x953px) Image search: [Google] [Yandex] [Bing]
1408482237691.png
100KB, 661x953px
>>
>>55297602
That's porn not humour.
>>
File: 1374730925548.png (234KB, 678x695px) Image search: [Google] [Yandex] [Bing]
1374730925548.png
234KB, 678x695px
>>
>>55299731
You and me both.
>>
File: bo2k.jpg (169KB, 650x975px) Image search: [Google] [Yandex] [Bing]
bo2k.jpg
169KB, 650x975px
>>
File: 1352427713281.jpg (84KB, 998x751px) Image search: [Google] [Yandex] [Bing]
1352427713281.jpg
84KB, 998x751px
>>
File: 1389064473620.png (201KB, 1239x712px) Image search: [Google] [Yandex] [Bing]
1389064473620.png
201KB, 1239x712px
>>
>>55299830
Just like how your precious Windows is a joke?
>>
File: 1296146770986.jpg (53KB, 604x569px) Image search: [Google] [Yandex] [Bing]
1296146770986.jpg
53KB, 604x569px
>>
File: 1397764898210.jpg (102KB, 833x642px) Image search: [Google] [Yandex] [Bing]
1397764898210.jpg
102KB, 833x642px
>>
>>55296378
>4 chips
Probably not.
>>
File: 1275257823233.png (133KB, 619x490px) Image search: [Google] [Yandex] [Bing]
1275257823233.png
133KB, 619x490px
>>
File: 1337989470185.jpg (221KB, 650x1219px) Image search: [Google] [Yandex] [Bing]
1337989470185.jpg
221KB, 650x1219px
>>
File: 1467114180867.jpg (239KB, 1392x924px) Image search: [Google] [Yandex] [Bing]
1467114180867.jpg
239KB, 1392x924px
>>
File: floppy_fail.jpg (51KB, 477x395px) Image search: [Google] [Yandex] [Bing]
floppy_fail.jpg
51KB, 477x395px
>>
File: 1415318302915.png (14KB, 289x222px) Image search: [Google] [Yandex] [Bing]
1415318302915.png
14KB, 289x222px
to all shills and fanboys
>>
>>55300031
that's fake right?
>>
File: 1358806357497.png (18KB, 800x400px) Image search: [Google] [Yandex] [Bing]
1358806357497.png
18KB, 800x400px
>>
File: bingo.jpg (148KB, 532x605px) Image search: [Google] [Yandex] [Bing]
bingo.jpg
148KB, 532x605px
>>
File: bingo2010.png (59KB, 532x605px) Image search: [Google] [Yandex] [Bing]
bingo2010.png
59KB, 532x605px
>>
>>55296981
In reality...
>>
>>55295813
sauce
>>
File: 1378901637660.jpg (34KB, 499x750px) Image search: [Google] [Yandex] [Bing]
1378901637660.jpg
34KB, 499x750px
>>55300071
>>
>>55297158
Depends on wether the engineers remember to SANITIZE THEIR INPUT.
>>
File: good_advice.jpg (126KB, 729x504px) Image search: [Google] [Yandex] [Bing]
good_advice.jpg
126KB, 729x504px
>>
>>55297602
Thanks doc
>>
File: todays_kids_floppy.jpg (198KB, 1024x768px) Image search: [Google] [Yandex] [Bing]
todays_kids_floppy.jpg
198KB, 1024x768px
>>
File: YGM9o9U.jpg (756KB, 5312x2988px) Image search: [Google] [Yandex] [Bing]
YGM9o9U.jpg
756KB, 5312x2988px
>>
File: 1383198390046.jpg (191KB, 989x716px) Image search: [Google] [Yandex] [Bing]
1383198390046.jpg
191KB, 989x716px
>>
>>55300152
If you need to sanitize your input, you're doing something you shouldn't be doing.
>>
File: 1352422159664.jpg (34KB, 333x498px) Image search: [Google] [Yandex] [Bing]
1352422159664.jpg
34KB, 333x498px
>>
File: 1363435776546.png (377KB, 804x2604px) Image search: [Google] [Yandex] [Bing]
1363435776546.png
377KB, 804x2604px
>>
File: 1358805372910.png (361KB, 499x364px) Image search: [Google] [Yandex] [Bing]
1358805372910.png
361KB, 499x364px
>>
>>55295838
It's a pretty niche bug, it is dumb that Microsoft never fixed it though.

>>55296540
This one is great.

>>55296681
>why would you do this

>>55300071
There is zero chance of that working.
>>
File: 1378901850836.jpg (139KB, 1097x550px) Image search: [Google] [Yandex] [Bing]
1378901850836.jpg
139KB, 1097x550px
>>
File: mordor_telnet.jpg (32KB, 640x319px) Image search: [Google] [Yandex] [Bing]
mordor_telnet.jpg
32KB, 640x319px
>>
File: gee_8ball.jpg (66KB, 595x806px) Image search: [Google] [Yandex] [Bing]
gee_8ball.jpg
66KB, 595x806px
>>
File: 1457907695355.jpg (57KB, 1137x640px) Image search: [Google] [Yandex] [Bing]
1457907695355.jpg
57KB, 1137x640px
>>
File: 1457665325139.jpg (35KB, 778x491px) Image search: [Google] [Yandex] [Bing]
1457665325139.jpg
35KB, 778x491px
>>
File: 1451054329752.jpg (305KB, 2052x1901px) Image search: [Google] [Yandex] [Bing]
1451054329752.jpg
305KB, 2052x1901px
>>
>>55300249
believe it or not anon, but there is software out there that for whatever reason will recieve some form of input not generated by a "trusted" source. Whenever this happens, if it concerns security and stability of the software, you need to sanitize the input before you start parsing it. Infact, that picture with the car shows a perfect example of a situation where you cannot trust the input.
>>
File: 1449290645771.jpg (57KB, 600x450px) Image search: [Google] [Yandex] [Bing]
1449290645771.jpg
57KB, 600x450px
>>
File: 1362876535463.jpg (560KB, 1260x800px) Image search: [Google] [Yandex] [Bing]
1362876535463.jpg
560KB, 1260x800px
>>
File: 1418055412505.jpg (215KB, 1062x954px) Image search: [Google] [Yandex] [Bing]
1418055412505.jpg
215KB, 1062x954px
>>
File: 1373234493424.png (150KB, 764x600px) Image search: [Google] [Yandex] [Bing]
1373234493424.png
150KB, 764x600px
>>
>>55300378
If your software can't handle arbitrary input, then your software is the problem - not the input.

If your database can't store a ', then your database is a piece of shit, and instead of “sanitizing” your input (i.e. replacing ' by X or whatever), you should fix your database instead.
>>
>>
>>55299969
bo2k was awesome, was too young to do anything more than infect 1-2 classmates.
>>
File: 1374752518465.jpg (158KB, 898x1024px) Image search: [Google] [Yandex] [Bing]
1374752518465.jpg
158KB, 898x1024px
>>
File: 1466562632092.png (159KB, 583x584px) Image search: [Google] [Yandex] [Bing]
1466562632092.png
159KB, 583x584px
>>
File: 1461923953999.png (301KB, 640x970px) Image search: [Google] [Yandex] [Bing]
1461923953999.png
301KB, 640x970px
>>
>>55295813
What the hell, my user name is always "user"
>>
File: 1452305656741.jpg (42KB, 720x814px) Image search: [Google] [Yandex] [Bing]
1452305656741.jpg
42KB, 720x814px
>>
File: 1451171193791.jpg (36KB, 720x544px) Image search: [Google] [Yandex] [Bing]
1451171193791.jpg
36KB, 720x544px
>>
File: 1338660431522.gif (91KB, 576x821px) Image search: [Google] [Yandex] [Bing]
1338660431522.gif
91KB, 576x821px
>>
>>55300441
That red tetrahedral one looks tricky.
>>
File: 1459899293896.png (89KB, 469x346px) Image search: [Google] [Yandex] [Bing]
1459899293896.png
89KB, 469x346px
>>
File: 1213094917049.png (137KB, 880x690px) Image search: [Google] [Yandex] [Bing]
1213094917049.png
137KB, 880x690px
>>
File: 1449033558240.jpg (232KB, 816x1239px) Image search: [Google] [Yandex] [Bing]
1449033558240.jpg
232KB, 816x1239px
>>
>>55300425
Do you know how SQL works? There is not a specific program you call that asks for input and will just take everything.
>>
File: 1226076619655.jpg (49KB, 494x392px) Image search: [Google] [Yandex] [Bing]
1226076619655.jpg
49KB, 494x392px
>>
File: broken_pc.jpg (45KB, 500x286px) Image search: [Google] [Yandex] [Bing]
broken_pc.jpg
45KB, 500x286px
>>
File: iOS7_metro.png (1MB, 1280x720px) Image search: [Google] [Yandex] [Bing]
iOS7_metro.png
1MB, 1280x720px
>>
File: snsv.png (116KB, 411x671px) Image search: [Google] [Yandex] [Bing]
snsv.png
116KB, 411x671px
>>
>>55300568
>DUDE COKE LMAO
are you a woman, or underaged?
>>
>>55300570
SQL is a human-facing programming language. If your program generates SQL code and compiles it during runtime, it's badly designed.

Calling
mysql_query("SELECT * FROM foo WHERE bar = '" + $user_input + "' LIMIT 1;");
is about on the same level of security as
system("some_program -X '" + $user_input + "'");


Both are anti-patterns you should never have to write. If you find yourself writing something like this, instead of changing it to
mysql_query("SELECT * FROM foo WHERE bar = "' + escape_really_hard($user_input) + "' LIMIT 1;");
, you should simply not be doing this in the first place.

Every single time you think you are being clever by generating and executing code in a human-facing language at runtime, you are doing something wrong.

See https://en.wikipedia.org/wiki/Eval#Security_risks
>>
>>55300425
You're a fucking moron.

Sanitation of input is necessary so long as you cannot guarantee what form the input is going to take.

All you're suggesting is moving the distinction of where the sanitation, or "input check" takes place.
>>
File: invalid_user.jpg (324KB, 2250x2233px) Image search: [Google] [Yandex] [Bing]
invalid_user.jpg
324KB, 2250x2233px
>>55300652
>escape_really_hard($user_input)
So you do advocate sanitizing user input? Then what was the point of your reply?
>>
>>55299948
this was the coziest youtube layout desu
>>
>>55300714
Maybe you should read my post before responding.

In particular, you seem to have missed the parts where I said “INSTEAD OF CHANGING IT TO” before quoting that anti-style.

>>55300668
>Sanitation of input is necessary so long as you cannot guarantee what form the input is going to take.
You can always guarantee what form the input is going to take, because your program is the one that's taking the input. There is no exception to this rule. All you have to do is design your system such that it can handle every possible input.

Security issues only arise when people don't understand what inputs they are going to be given and make a wrong assumption. (For example, thinking that POSIX filenames are going to be valid UTF-8 sequences)

But tl;dr the solution is never “sanitize your inputs”, the solution is “make sure you understand your input space”.
>>
>>55297668
autists are out in full force today
>>
>>55300795
Yes, you're saying that your 3rd code block is the one that should be used. Which sanitizes the user input before storing it in the DB.
>>
>>55295838
Literally Pajeet-tier grammar
>>
>>55300843
>before storing it in the DB
Or rather, before executing the query.
>>
>>55300143
>97,6 GB
Impressive
>>
File: 1449812949538.jpg (64KB, 556x417px) Image search: [Google] [Yandex] [Bing]
1449812949538.jpg
64KB, 556x417px
>>55300636
Straight edge faggot detected
>>
>>55300636
>poor fag can't afford cocaine
>>
>>55300843
Are you literally incapable of reading? All three of my code blocks are the ones that I'm claiming you should NEVER find yourself writing.

The third code block is just an example of an anti-pattern used by people who don't really know what they're doing.

Since you insist, let me present to you an example of how to write a real program:

foobar = mysql_prepare("SELECT * FROM foo WHERE bar = ? LIMIT 1;");

// and later
foobar.execute($user_input);


The critical difference here is the separation of program and data. Instead of generating a program from a template + the data at runtime, then interpreting that (which is bound to fail unless you take great care to escape everything properly); you are writing a generic program in a high-level language, compiling this program once, and then feeding it arbitrary data. (Which is completely safe, since you're not mixing data with code anymore)

In this example, I clearly never had to “sanitize” (or “escape”) $user_input anywhere, because my prepared statement is equipped to handle arbitrary input - as should any good abstraction.
>>
>>55300939
Let's go through your post

>Both are anti-patterns you should never have to write
First 2 are bad
>If you find yourself writing something like this,
Refers to the first 2 again
>instead of changing it to (...) you should simply not be doing this in the first place.
So it should be changed to the 3rd one, implying that this one is good?
>>
File: goobycheat.jpg (17KB, 400x247px) Image search: [Google] [Yandex] [Bing]
goobycheat.jpg
17KB, 400x247px
>>55300928
blue dragon_dildos1?
that's a dumb na... wait...
>>
>>55300482
underrated
>>
>>55300135

The one on top is free, not open. The one in the bottom is actually only open.
>>
>>55300939
Note that this is also just pseudocode meant to demonstrate the effect. In a modern high level language, you won't be finding yourself writing code inside a string at all.

Instead, you might have the parts of your program written in SQL separated from the parts of your program written in X, and then load at runtime (or even statically compile + link) these SQL parts of the program.

Or for another example, you might be using a higher-level abstraction for database access, for example Linq, SQLAlchemy or Haxl; so you don't even have to be writing SQL to begin with.

>>55300968
>So it should be changed to the 3rd one, implying that this one is good?
I assume at this point that English is simply not your first language and that you don't fully understand how English grammar works. Let's simplify the sentence somewhat.

The overall structure is “If you find yourself X, then Y”, which is a conditional. (i.e. ‘Y’ is only asserted to be true when ‘X’ is also true)

For understanding the grammar of the ‘Y’ part, we can look at it in isolation, since the conditional doesn't change the meaning. The Y part is this: “Instead of doing W, you should do Z” which is a replacement. It's also a conditional in a sense, since it means something like this: “Don't do W. If you need to do W, do Z instead”.

To to summarize, the sentence can be broken down to something like this:

1. Don't do X. (X = the two first examples)
2. Don't do W as a replacement for X. (W = the third example)
3. Instead, use Z as a replacement for X (and/or W). (Z in context was “design your system to handle arbitrary inputs”, for an example see >>55300939)

I hope that clears up admittedly somewhat advanced grammar for you.
>>
File: windows_devolution.jpg (93KB, 735x779px) Image search: [Google] [Yandex] [Bing]
windows_devolution.jpg
93KB, 735x779px
>>55295813
>>
>>55300928
White 1234 ?
>>
>>55300928
Black coconutsMarckWallie
>>
>>55299705
I don't get it, it could /dev/sd* and even then it's not guaranteed it'll be /dev/sdd

This isn't funny *at all*
>>
>>55301032
I see your point now. It was just ambiguous.
I Interpreted it as
>If you do X (instead of changing it to Y), you should stop
instead of
>(If you do X) instead of changing it to Y, you should stop
>>
>>55296981
>tfw open source projects have better design than many propietary software I've worked on

Regarding graphical design it's completely different though
>>
File: win10.png (320KB, 1024x1159px) Image search: [Google] [Yandex] [Bing]
win10.png
320KB, 1024x1159px
>>55301073
I think you mean
>>
>>55300482
That's gay.
>>
>>55301320
Perfect
>>
File: 1441377395968.jpg (229KB, 998x890px) Image search: [Google] [Yandex] [Bing]
1441377395968.jpg
229KB, 998x890px
>>
>>55301032
Sanitization by design is still sanitization.
>>
File: 2015-12-18_13-20-57.png (209KB, 1334x1078px) Image search: [Google] [Yandex] [Bing]
2015-12-18_13-20-57.png
209KB, 1334x1078px
>>
>>55301343
>"It's a fucking RAM slot. How dim can you be"
>not
>"It's a fucking RAM slot. How DIMM can you be"
>>
>>55300408
kekkings
>>
File: 2015-12-18_13-21-12.png (90KB, 1829x1069px) Image search: [Google] [Yandex] [Bing]
2015-12-18_13-21-12.png
90KB, 1829x1069px
>>55301355
>>
File: 2015-12-04_14-34-50.png (108KB, 968x507px) Image search: [Google] [Yandex] [Bing]
2015-12-04_14-34-50.png
108KB, 968x507px
>>
File: 1450741036467.jpg (196KB, 590x443px) Image search: [Google] [Yandex] [Bing]
1450741036467.jpg
196KB, 590x443px
>>
>>55301369
Why not make 1 picture out of it?
There is no need to space it out into 2.
>>
>>55301404
I don't see anything wrong here.
>>
>>55299916
>>55299906
>>55299938

Need Nvidia/AMD version of this for reasons
>>
>>55300652
>If your program generates SQL code and compiles it during runtime, it's badly designed.
ORMs generate SQL code and compile it during runtime. Your point being?
>>
>>55301032
X and "this" are different
>>
>>55299705
More likley that windows users will understand it. In windows it just starts with C: and goes to D:, E:, etc. The external hard drive implies they have one internal one (most likely C: in this case). Since the external hard drive is presumed to be the only oyher hard drive it is most likely D:
>>
>>55301539
D: would most likely be a DVD drive tho
>>
>>55301350
I disagree. The frame of reference is different.

When dealing with input of type ‘X’ and a backend of type ‘Y’, the sanitization approach is to mangle ‘X’ so it fits ‘Y’. The approach I'm suggesting is to rewrite ‘Y’ so it fits ‘X’.

In one approach, your input is left untouched and your program changes to compensate. In the other, your input is mangled and your program left the same.

The problem with input mangling is that it always blows up. Instead, use a static type system that allows you to e.g. distinguish ByteString from String; and make sure you engineer your data storage system in a way that handles the entire input space, linearly, without branching on it.

Anything else is just wrong design that is bound to either fail, contain bugs, mangle the input (fail to round-trip) or do any other number of unpleasant things.
>>
>>55300057
I don't get it.
>>
>>55301520
1. If the ORM is doing that, then the ORM is also an example of bad design, and it should be fixed internally to avoid having to generate and parse SQL at runtime.

2. Your code is more likely to be bugged than a well-known library

3. Hiding complexity behind a reusable abstraction allows you to write it once, instead of many times. ORMs expose a simple abstraction that you don't have to worry about fucking up.
>>
>>55301409
I guess I'll just post the other 4 in case anyone gets interested in it.
>>
>>55301633
>>
>>55301642
not really /g/ related, though
>>
>>55296854
Wtf is that
>>
>>55301661
>>
>>55301618
magnet
>>
>>55301409
because i'm lazy
>>
File: 1449760648622.png (498KB, 1058x1226px) Image search: [Google] [Yandex] [Bing]
1449760648622.png
498KB, 1058x1226px
>>
>>55301633
ey fuckin denko.
had to consume 3 beers to get though that story
>>
File: 1461813082437.jpg (27KB, 473x248px) Image search: [Google] [Yandex] [Bing]
1461813082437.jpg
27KB, 473x248px
>>
>>55298653
NOOOOOOOOOO
>music can't get viruses, only games can
>>
>>55300928
Naked ILikeTrains
>>
>>55299948
That and the immediately older youtube design (which was pretty much the same in organization and functionality but different aesthetic) was the best youtube. I really miss that "19 videos" button that let's you see more from the same author easily.
>>
>>55300928
Noshirt hunter2
>>
>>55301661
>not really /g/ related, though

Reported.
>>
>>55300050
12 rupees have been deposited into your account.
Have a nice day Pajeet!

Regards,

Nvidia
>>
>>55295967
I want to see a PC with all this snake-oil installed
>>
>>55301404
GNU
NOT EVEN ONCE
>>
>>55300826
>>55299830
>Not recognizing stale pasta
Come on /g/
>>
>>55301623
When shout it parse SQL then?
>>
>>55302036
Ideally, during the compilation of your program. SQL is source code, and source code is meant to be compiled. Anything else is bad PL design.

(Nu-programmers with their slow-ass garbage collected interpreted “dynamic” memelangs can fuck right off)

At the very worst, compile it to bytecode and run it through a lightweight JIT or interpreter at runtime.
>>
>>55296681
sieht faek aus aber hallo deutschfreund

this is my machine around 2000
>>
>>55295917
>Spurdo becomes a virus
>>
>>55301320
>>55301073
why is vista like that?
>>
>>55301669
Water-cooled router?
Now I want one desu.
>>
>>55302074
>(Nu-programmers with their slow-ass garbage collected interpreted “dynamic” memelangs can fuck right off)
Oh /g/, how I love you and your retarded opinions...

Oh, and most "dynamic memelangs" are cached/compiled to bytecode.
>>
>>55302139
Yes, and these “dynamic memelangs” are all examples of bad PL design. Bytecode is better than in-loop parsing, but it's still bad PL design.

>Your retarded opinions
Show me any single academic paper on type theory, programming language research, compiler design etc. that thinks dynamic languages are a good idea.
>>
>>55300652
What if I have to generate a more complex query than that?
... WHERE name = x.name AND likes_cookies = false AND EXTRACT(dow FROM last_update) IN (1,2,3)


There is no way I can generate all posible queries beforehand.
>>
>>55301875
hello senpai
>>
>>55295889
I've laughed harder than I should have.
>>
>>55299731
>Be here around the start, a passing thread that first posted the news of Bitcoins.
>I laughed at the concept.
>We all laughed at the concept.
>Bitcoins were trading for minute fractions of cents.
>Mining was a pit of power usage and not much else.
>After a week I considered dropping a thousand or so on it because I was not going to be in civilisation for about a year and didn't need the money.
>Decide against it.
>Regret it every day of the rest of my life.
>>
>everyone discussing about SQL Injection and sanitazing input
Aren't all this problems be solved by pararmetrized querys?
>>
>>55302170
>compiler design
>dynamic languages
Newsflash: if someone is writing a paper on compiler design, I doubt he'll support dynamic languages.

Also, fuck off with asking for sources and academic research... post your sources first.
>>
>>55300082
#! is so comfy and usable though.
>>
>>55302252
Meh... Why didn't you invest in Microsoft in the 80s? Same stupid deal. Shoulda, coulda, woulda...
>>
>>55302332
I wasn't fucking alive in the 80's.
For us small timers stocks are just long term gambling.

My point was that I was thinking about it - I had it set up - I was going to buy Bitcoins and I pussied out at the last fucking minute.

Do you have any idea what kind of exponential profit you could make of Bitcoins in the first two years?

Somewhere in the area of a 1,000,000% return.
>>
File: maxresdefault.jpg (259KB, 1920x1281px) Image search: [Google] [Yandex] [Bing]
maxresdefault.jpg
259KB, 1920x1281px
>>
>>55300367
Htop was created in 2004, it's not that old
>>
>>55300367
I wish we had htop back then...
>>
>>55297707
No way, I live 15 min from there
>>
>>55302393
Yes and if you could see into the future you'd make even more money

You're feeling emotional about it but in reality you're feeling bad that you can't look into the future and invest in shitty memes that happen to take off
>>
>>55295917
>Gindows
>>
>>55296828

Ive talked to people that work there. The codebase is out of control no one understands it anymore. They are making mods and seeing if it breaks.

Also you know what kind of pajeets the cheap ones.
>>
>>55300928
Black dadada
>>
>>55300928
Red correct horse battery staple
>>
>>55301618
Underage please leave.
>>
>>55297707

Lol I would get a new phone. I never choose a phone wallpaper I would not own up to.
>>
>>55299705
C: big smile
D: shocked face
(if you don't see it, turn off auto-rotate and turn your phone onto its left side)
>>
>>55302110
Improvement but lots of leftovers..? 7 is clean. 8 is 7 + bloatware garbage. 10 is even more so + botnet, so..
>>
>>55298380
That animation bothers me because it's a 3D logo rendered in 2D then spun in 3D.
>>
>>55299906
>so much blank space
No one I've ever seen of this has ever come close to >>55299916
>>
File: 1375849660993.gif (2MB, 250x200px) Image search: [Google] [Yandex] [Bing]
1375849660993.gif
2MB, 250x200px
>>55300217
There's no way that entire billboard is supported by that single column on the right. How is it not falling down?
>>
>>55300482
>watching dudes cum
gay
>>
>>55300366
haha thanks chris!
>>
>>55300168
Does this really work?
>>
>>55302722

>what is steel
>>
>>55300636

There is so much coke being done by the people around you it would blow your mind. You are subconsciously and probably consciously dodging the clues.
>>
>>55302800
nah it creates mustard gas
>>
>>55302800
no, it makes the battery catch fire/explode if it has enough charge
>>
>>55300652
What the fuck?

What the fuck, man, what the FUCK. What the FUCK. WHAT THE FUCK. WHAT. THE. FUCK.

Is this what they teach you?! I sure hope retards like you aren't in charge of security on sites I use.
WHAT THE FUCK
>>
>>55302848
what? where did I say coke wasn't common? I've done it and I know a lot of people who do it, but it's mostly girl's drug.
>>
>>55302722

Engineering and the physics it is based upon.
>>
>>55302914
>He dropped out of community college before learning about prepared statements
sigh
>>
>>55301675
Thanks for that saga of woe
>>
>>55302936

I know alot of guys who do it and yes most of them bait girls with it.
>>
>>55301155
>what is windows
>>
>>55302829
>>
>>55300928
Nothing to loose you dont know my username
White 418ImATe@pot
>>
>>55303257
come on, Mark
>>
>>55300349
AHAHAHAHA
>>
>>55302770
>not watching dudes cum
>not wanting to be a cute trap
>>
>>55300928
Black27pEB9?9-k24Zq^:

Well...
>>
>>55300515
It's a square pyramidal tb.h
>>
>>55300928
Nothing Nothing
>>
>>55297707
>Arch logo in the notifications
Gets me every time
>>
>>55300097
>Vista
>Slashdot/Digg
>Azureus
What year is this?
>>
>>55300939
What the fuck. WHAT THE FUCK. What the actual FUCK do you think prepared statements do, exactly? I can't wait to hear this.
>>
>>55303415
That's not the arch logo, it's a notification from the motorola assist app: https://play.google.com/store/apps/details?id=com.motorola.contextual.smartrules2

which comes preinstalled on the moto g
>>
>>55303465
Prepared statements separate your code from your data - by letting you write your SQL program *once* in a generic way, compiling+parsing that to generate a prepared statement, and then simply executing this program on arbitrary data.

Security bugs from lack of sanitization only arise when mixing code with data, and prepared statements specifically let you avoid doing so in your program.

Look, it's really not that difficult of a concept to understand - but then again, the same is true for pretty much everything in Haskell yet people still seem to have some sort of aversion to type-aware programming.
>>
>>55301360
I came here to post this.
Damn you anon-kun
>>
>>55303660
First of all, there is no such thing as an "SQL program. I don't have a fucking clue what you're talking about and I'm betting that you don't either.
Do you know what the word "compiling" even means?

Do you know what the word "arbitrary" even means?

This is the first time im my twenty years of experience I've ever seen the term "Security bug". What the actual fuck is going on in your head?

Lastly, what do you think happens with the variables that you put into your prepared statements? Do you think they are... sanitized, somehow? As in, the exact same shit you could be doing without prepared statements if you knew what the fuck you were doing?

Jesus Christ this board is filled with technologically impaired retards making a collective killing off of sharing their sub-par knowledge.
>>
>>55303794
>notsureiftroll.sql
>>
>>55303794
Not him, but
https://dev.mysql.com/doc/refman/5.7/en/sql-syntax-prepared-statements.html
It's a functionality MySQL has by itself. MySQL doesn't need to convert it into a query before using it itself and as such there is no need to sanitize it. Granted I haven't looked into the code and don't know how MySQL handles it, but that would seem very inefficient.
>>
>>55303794
>There's no such thing as an “SQL program”
There are multiple ways you could argue that there are. For example, a purely semantic argument:

>SQL (Structured Query Language) is a special-purpose programming language
https://en.wikipedia.org/wiki/SQL

If it's a programming language, then the things written in it are programs. In particular, SQL falls into a wide category of so-called “domain specific languages”, which are programming languages that aren't designed to permit general-purpose programs (which here means having access to full I/O capabilities), but rather designed to craft purpose-built algorithms in one specific domain only.

In the context of SQL, the algorithms you are crafting are database operations - and the primitives you are using are basic operators from relational algebra.

>Do you know what the word "compiling" even means?
Compiling is taking a program written in a high-level language such as C, SQL or LaTeX and translating it to a lower-level language (such as x86, Cmm or EPS) while preserving the denotational semantics of the original program.

But don't take just my word for it, have some independent verification:
>A compiler is a computer program (or a set of programs) that transforms source code written in a programming language (the source language) into another computer language (the target language), with the latter often having a binary form known as object code.
https://en.wikipedia.org/wiki/Compiling
>>
>>55300380
Is the joke that there are no african americans in game development?
>>
>>55303794
>Lastly, what do you think happens with the variables that you put into your prepared statements? Do you think they are... sanitized, somehow? As in, the exact same shit you could be doing without prepared statements if you knew what the fuck you were doing?
Implementation detail. In a good implementation, it will be handled directly and linearly (i.e. without branching on the data bits). Linear operations are best for performance, safety, etc.; so you should generally try to avoid them.

What I mean by “linear” and “branching on data”, for example, is perhaps best outline by describing an example of a non-linear program that branches on data: A loop that goes through the data and replaces some characters by a two-character escape sequence instead - and leaves other characters unchanged.

A linear operation, for example, could be as simple as blitting raw bits into a mapped buffer, together with length metadata. You can't beat that in either performance or safety (although the obvious caveats w.r.t buffer overflows apply).
>>
>>55303989
>try to avoid them.
use them*
>>
>>55300367
>1992
>Ubunut and gnome 2.0
>>
File: jade_laptop.jpg (38KB, 498x509px) Image search: [Google] [Yandex] [Bing]
jade_laptop.jpg
38KB, 498x509px
>>55300631
>>
>>55302116
Why would it overheat in the First place?
>>
>>55301675
goddamn what a read.
>>
>>55300260
nice
>>
File: random_number.png (7KB, 400x144px) Image search: [Google] [Yandex] [Bing]
random_number.png
7KB, 400x144px
Thread replies: 319
Thread images: 117
[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.
If a post contains illegal content, please click on its [Report] button and follow the instructions.
This is a 4chan archive - all of the content originated from them. If you need information for a Poster - you need to contact them.
This website shows only archived content and is not affiliated with 4chan in any way.
If you like this website please support us by donating with Bitcoin at 1XVgDnu36zCj97gLdeSwHMdiJaBkqhtMK