HappyHippo posted:First time I read this I thought it said it causes the car to crash after toyota's firmware code i would believe that a car company could design a car that crashes due to url parsing
|
|
# ? Apr 26, 2019 21:30 |
|
|
# ? May 21, 2024 07:10 |
|
HappyHippo posted:First time I read this I thought it said it causes the car to crash Might have if it was a Tesla issue.
|
# ? Apr 26, 2019 22:47 |
|
Athas posted:Does anyone know if These People also put a space before the parens in function calls? Heck no, what language spec permits you to put a space before the left parenthesis of a function call? My only argument for a single space before the left parenthesis in a method declaration is slighty improved legibility. It’s not like I’m advocating a tab before the left parenthesis of a method declaration. That would be psychotic.
|
# ? Apr 27, 2019 00:16 |
|
MonoDevelop like a decade ago ... I think people do it because it resembles application in functional languages ... except it's not partial ... Like here's a bit from F# docs: code:
|
# ? Apr 27, 2019 01:25 |
|
Woodsy Owl posted:Heck no, what language spec permits you to put a space before the left parenthesis of a function call? ? C-like languages usually let you put whitespace anywhere between tokens. The only language I'm aware of where whitespace between an identifier and parenthesis could have syntactical significance is Prolog (and possibly only the pre-standard version). And then there's Sinclair BASIC, which let you put space inside identifiers.
|
# ? Apr 27, 2019 08:59 |
|
Woodsy Owl posted:Heck no, what language spec permits you to put a space before the left parenthesis of a function call? C allows you to put whitespace pretty much anywhere except the middle of a word. code:
RPATDO_LAMD fucked around with this message at 09:26 on Apr 27, 2019 |
# ? Apr 27, 2019 09:22 |
|
Zopotantor posted:And then there's Sinclair BASIC, which let you put space inside identifiers. Old FORTRAN too iirc, it was a Thing back in the day.
|
# ? Apr 27, 2019 14:00 |
|
feedmegin posted:Old FORTRAN too iirc, it was a Thing back in the day. Wasn't FORTRAN the other way around, in that you could elide spaces and it would still tokenise? E.g 'ifxtheny' would parse as 'if x then y' (except that FORTRAN did not have 'if' statements as such, so this concrete example is not correct).
|
# ? Apr 27, 2019 14:17 |
|
RPATDO_LAMD posted:C allows you to put whitespace pretty much anywhere except the middle of a word. We have such sights to show you: https://en.wikipedia.org/wiki/International_Obfuscated_C_Code_Contest
|
# ? Apr 27, 2019 15:23 |
|
Athas posted:Wasn't FORTRAN the other way around, in that you could elide spaces and it would still tokenise? E.g 'ifxtheny' would parse as 'if x then y' (except that FORTRAN did not have 'if' statements as such, so this concrete example is not correct). i believe original fortran had both behaviors: you could put spaces in identifiers and omit spaces between tokens. it just ignored spaces completely. some basic implementations used to allow eliding spaces as you describe; i still have FORT=1TO100:NEXTT in my muscle memory for a delay loop. i don't remember being able to put spaces inside identifiers, but then i never used more than a single letter for an identifer anyway ...
|
# ? Apr 27, 2019 16:10 |
|
iospace posted:We have such sights to show you: https://en.wikipedia.org/wiki/International_Obfuscated_C_Code_Contest At one point, there was an obfuscated Perl contest.
|
# ? Apr 27, 2019 16:13 |
|
ultrafilter posted:At one point, there was an obfuscated Perl contest. So normal Perl code?
|
# ? Apr 27, 2019 16:13 |
|
Yeah, I couldn't help but be reminded of this the first time I saw that.
|
# ? Apr 27, 2019 16:33 |
|
When passed through OCR software, 93% of Paint Splatters are Valid Perl Programs
|
# ? Apr 27, 2019 20:41 |
|
RPATDO_LAMD posted:When passed through OCR software, 93% of Paint Splatters are Valid Perl Programs I was disappointed because when it shows the paint splatters, if the text generated from them is not valid, it just shows the text "not valid" - I'd be cool to show the actual text that wasn't considered valid perl alongside it, just so you can have examples of text that ISN'T a perl program.
|
# ? Apr 27, 2019 20:49 |
|
RPATDO_LAMD posted:When passed through OCR software, 93% of Paint Splatters are Valid Perl Programs which becomes somewhat less impressive when you actually look at why those programs are “valid”; in practically every case it’s as simple as “ocr program emits an extremely short sequence of Latin letters and numbers, and it turns out a single identifier is a valid program”. there were one or two that almost look like they might be interesting until you notice that there’s a # early on in the output so yeah that’s a valid perl comment, big whoop I will defend perl’s honor. I am the white knight perl needs in 2019
|
# ? Apr 28, 2019 01:25 |
|
Soricidus posted:i believe original fortran had both behaviors: you could put spaces in identifiers and omit spaces between tokens. it just ignored spaces completely. Yup. quote:While FORTRAN is very picky about the placement of certain program elements on a card, it is
|
# ? Apr 28, 2019 08:22 |
|
Bruegels Fuckbooks posted:I was disappointed because when it shows the paint splatters, if the text generated from them is not valid, it just shows the text "not valid" - I'd be cool to show the actual text that wasn't considered valid perl alongside it, just so you can have examples of text that ISN'T a perl program. Haha buddy the images are like right there buddy just ocr them buddy smdh
|
# ? Apr 28, 2019 09:38 |
|
Bruegels Fuckbooks posted:I was disappointed because when it shows the paint splatters, if the text generated from them is not valid, it just shows the text "not valid" - I'd be cool to show the actual text that wasn't considered valid perl alongside it, just so you can have examples of text that ISN'T a perl program. here's an example of text that isn't a perl program: code:
|
# ? Apr 28, 2019 13:10 |
|
for an actual coding horror: a custom wireshark dissector that does http requests not a dissector for http requests, it actually makes them, creating new network traffic in the process of analysing old network traffic this is the logical outcome of implementing everything as rest apis. this is the future
|
# ? Apr 29, 2019 21:18 |
|
like wha? Is it not something that can be done with bpf and tshark -T ek or json??? Does it just log some packets or is there something else going on?
|
# ? Apr 29, 2019 22:17 |
|
it's used to debug an app's network traffic, and it makes additional requests to the app's servers to add more information to the output also it does it by calling io.popen on a curl process because they couldn't get an actual http library to work, but that's really just incidental at this point
|
# ? Apr 29, 2019 22:22 |
|
Oracle
|
# ? May 2, 2019 15:30 |
|
Hammerite posted:Oracle You mean http://bad.solutions?
|
# ? May 2, 2019 18:41 |
|
Munkeymon posted:You mean http://bad.solutions? this redirect is my greatest legacy and service to the world
|
# ? May 3, 2019 17:06 |
|
uncurable mlady posted:this redirect is my greatest legacy and service to the world Thank you for your service. May it shine eternal e: oof they want $130/yr for no.solutions - that'd be a spendy joke
|
# ? May 3, 2019 17:21 |
|
HappyHippo posted:First time I read this I thought it said it causes the car to crash Why don't entertainment systems use read-only CAN modules? Because gently caress you.
|
# ? May 6, 2019 23:52 |
|
Harik posted:You read it right. While they didn't bother digging into the remote code execution printf %n lets you write arbitrary values into memory so it's a great setup for ROP chaining or just a standard buffer overflow. All You’re saying it’s physically possible for the entertainment system to override the throttle? I just watched a couple of YouTube videos on CAN. Wouldn’t the entertainment system being a low priority solve that problem? And steering has no business being under computer control on a car without self-driving capability.
|
# ? May 7, 2019 03:33 |
|
Lanekeeping and automatic parallel parking are nowhere near "self-driving", but are useful features nevertheless.
|
# ? May 7, 2019 03:44 |
|
zergstain posted:Youre saying its physically possible for the entertainment system to override the throttle? I just watched a couple of YouTube videos on CAN. Wouldnt the entertainment system being a low priority solve that problem? It could be possible, although likely that car is not set up in such a way that you can successfully exploit the entertainment system for spurious brake/steering controls.
|
# ? May 7, 2019 03:52 |
|
They might have left the capability there for future implementations.
|
# ? May 7, 2019 04:01 |
|
Harik posted:Why don't entertainment systems use read-only CAN modules? Because gently caress you. That would be more of a CAN'T bus.
|
# ? May 7, 2019 04:05 |
|
Jabor posted:Lanekeeping and automatic parallel parking are nowhere near "self-driving", but are useful features nevertheless. Does the Mazda in question have those features? Typically you keep your hands on the wheel when in motion. If the lanekeeping system detects the car is moving out of the lane, does it physically wrench the wheel from your grip?
|
# ? May 7, 2019 04:06 |
|
I drove a Mazda with some driver-assist features along with a MobilEye and let me tell you, I feel like in the long run this would get me in more accidents than save me. I will rue the day US insurers make those mandatory.
|
# ? May 7, 2019 04:11 |
|
zergstain posted:
Electric power steering is basically a computer adding steering torque when it detects steering input. VW came out with this in the late 2000s and actually had a form of self driving as well, automatic steering during parallel parking, with manual throttle.
|
# ? May 7, 2019 04:18 |
|
Harik posted:You read it right. While they didn't bother digging into the remote code execution printf %n lets you write arbitrary values into memory so it's a great setup for ROP chaining or just a standard buffer overflow. All I gasped when I heard them say their first experiment after learning about the printf call was to use the one that loads a pointer. At the time I couldn't think of a worse idea than jumping around to random memory addresses with that bug.
|
# ? May 7, 2019 04:21 |
|
Ola posted:Electric power steering is basically a computer adding steering torque when it detects steering input. I think I’d prefer hydraulic power steering. I’d forgotten about automatic parallel parking when I made my first post, but now I do remember hearing about cars with that. Automatic lanekeeping is new to me though.
|
# ? May 7, 2019 04:33 |
|
Absurd Alhazred posted:I drove a Mazda with some driver-assist features along with a MobilEye and let me tell you, I feel like in the long run this would get me in more accidents than save me. I will rue the day US insurers make those mandatory. Historically "automatic" safety devices + cars don't mix. In the 90's they passed a law that was supposed to make airbags mandatory, but there was an exemption to this if the car had "alternate safety devices", and that's how we ended up with all those lovely "automatic" seat-belts back then (notice how no new cars have automatic seatbelts!) Similarly, there is a safety device in my jeep that is supposed to cut the engine when the car rolls over. Unfortunately, the criteria for this device activating is if the device "detects gasoline" - which can happen if you know, fill the car up with gas and there's a slight leak in the evap system (which is a known defect in my model of Jeep). This has led to my Jeep cutting the engine in the middle of traffic no fewer than three loving times. I find it difficult to believe that automobile technology progresses from "seat belt with a fifty page user manual" in the 90's to "car shuts itself off because it thinks it's flipped over when it really only has a full tank of gas" in 2018 to "car drives itself with no problems at all" in 202X.
|
# ? May 7, 2019 04:40 |
|
zergstain posted:I think I’d prefer hydraulic power steering. It's actually electro-hydraulic, with hydraulic pressure made by an electric motor instead of an engine accessory belt. No idea about CANBUS security though, wouldn't surprise me if the planets could align and adjusting the volume sent you into a ditch.
|
# ? May 7, 2019 04:43 |
|
|
# ? May 21, 2024 07:10 |
|
Bruegels Fuckbooks posted:Historically "automatic" safety devices + cars don't mix. Mostly it beeps at you for things like "you are at 11 above the speed limit instead of 10" but only for the first few seconds, so that it actively discourages you from maintaining around that speed; either remain above or below, absolutely counter-productive, and "there is a car in front of you that has braked", which is great, except that I am looking forward so I saw that car and was reacting to it by slowing down, so I assumed something else had gone wrong, so I came to an abrupt halt. Or "there is a car in your blind spot", which admittedly could be useful. I think one of the systems will actually brake for you if you get too close to a car within city limits or something.
|
# ? May 7, 2019 05:13 |