It’s a markup language. In the simplest explanation, a programming language describes a process (what does the thing do) while a markup language describes a structure (how is the thing supposed to be displayed). There’s more to it than that, but someone else can get into deeper if they want, it’s beyond me lol
a markup language describes a structure (how is the thing supposed to be displayed)
A markup language does not define how something is to be displayed, that’s what a styling language is for (usually CSS). A markup language semantically defines what certain parts of the created document are.
“\ “ and [tab] and * are your friends. I’ve been using spaces in Unix filesystems since the early 90s with no issues. Also, using terminal fonts that•put•a•faint•dot•in•each•space•character helps.
This is fine for the most basic of use cases but once you start looping through file names or what have you, you have to start writing robust correct bash and nobody does that
Yeah but at least with periods in the title tab complete will just complete the file name all the way while with a filename with spaces I have to escape the damn space with “\ ” like you said. Why do more work when I don’t have to?
It’s a way bigger pain in the ass than people think it is. I remember having to parse output from a tool for work that had tons of output in tabular format, mixed with normal sentence like strings. JSON, YAML, or XML outputs weren’t available so I had to do a nasty mess of grep, awk, cut, and head/tail, to get what I wanted. My first attempt was literally counting the characters so I could cut out exactly what I needed, but as we all know, hardcoding values is a recipe for headaches later on.
Here’s a horror story from literally yesterday. We have been fighting a system for a client for weeks and it has been a nightmare. Our clients just told us that they outsourced some of their work to an Indian outfit but that outfit is unfamiliar with Linux and doesn’t know how to edit text files so they have been downloading the files to their Windows machines, editing them in Windows, then uploading the contaminated text files back into Linux. None of them, not our client nor the outfit they hired, understood why this was a problem. We have no idea what files are affected and we won’t know until they fail because they obviously did not keep track of what they touched.
I will never forgive excel for automatically converting all of my dates to some weird ass format, or stripping single quotes randomly, or something other BS that they do for no reason
My absolute favourite is stripping leading zeroes from any text that looks like a number, then displaying it in scientific notation. But we get Copilot, so it balances out, right?
Does windows add an extra character at the end that gets converted to new line on linux? Because the other day I were copying a script and after pasting it an extra line was added after every single line, even the empty lines.
I work on a Web app and we recently decided that we’re just not gonna support double quotes in free text fields because oh holy balls what a thing it is to try to deal with those in a way that doesn’t open you up to multiple encoding vulnerabilities.
The issue is the filter that we’re using to avoid multiple encoding attacks de-escapes everything via multiple rounds, then tries to pass it to the next layer of filtering with the de-escaped request body as a json string. Your absolutely right that this is a silly way of doing it, but sometimes we have to live with decisions that were made before we were onboarded to a project. In this particular case, I pushed to improve the filters but all our PO heard was “spend development time weakening security” and at the end of the day they decide what to do and we do it.
This method is a band-aid patch when your downstream code is all messed up and you can’t fix it. Instead of treating the input string correctly, it just removes anything that might possibly trigger some vulnerability in wrong code.
We saw this grow during the duration of WW1. This first Xmas (when everyone thought it would be over by then). English and German troops met in no man’s land with an informal truce to bury their dead, exchange greetings, and play a little football.
Once the generals heard of this they banned all events like this from ever happening again. It’s hard to fight against someone you find are much like you. The Nazis in the second War were masters of dehumanizing not only the Jews but the Russians too. They didn’t treat the English and the Americans the same way for the most part.
Eventually when one has been at war long enough most of our humanity is lost. How else does one cope with such horror and depravity that comes with war?
Dehumanizing the enemy and creating the “other” is an important tool for normalizing killing other people who are there because they were ordered to come kill you. The “orcs of mordor” concept was a strong example of this.
Oh shit, I’m posting on NonCredibleDefense, my bad, guys. Also boobies.
files.catbox.moe
Active