There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

files.catbox.moe

mykneedoesnthurt , to noncredibledefense in It's drip or drown and brother I'm floating
@mykneedoesnthurt@kbin.social avatar

they said tactics and you heard tictacs

auf , to unixporn in [sway] trying wayland once again
@auf@lemmy.ml avatar

dead simple. I like it

neuracnu , to noncredibledefense in It's drip or drown and brother I'm floating
@neuracnu@lemmy.blahaj.zone avatar

Rubber wading exercises after cabbage and beans day.

Ulvain , to noncredibledefense in It's drip or drown and brother I'm floating

Trying to take over my country? That’s a paddlin’

verity_kindle , to noncredibledefense in It's drip or drown and brother I'm floating
@verity_kindle@lemmy.world avatar

There is no way to unfudge yourself when you flip over. You’re strapped, you’re gonna get clapped.

teft , to noncredibledefense in It's drip or drown and brother I'm floating
@teft@startrek.website avatar
RootBeerGuy ,
@RootBeerGuy@discuss.tchncs.de avatar
FartsWithAnAccent , to noncredibledefense in It's drip or drown and brother I'm floating
@FartsWithAnAccent@lemmy.world avatar

Is there such a thing as too fresh?

Gork , to noncredibledefense in It's drip or drown and brother I'm floating

Tactical tubes. The pinnacle of amphibious operations.

saltnotsugar , to noncredibledefense in It's drip or drown and brother I'm floating

You can take out an APC crossing water. You can call artillery on a bridge laying operation. Floatie Bois?! Unstoppable.

Ryan213 , to memes in Pfff, HTML
@Ryan213@lemmy.world avatar

WHAt’s wRoNg wItH HtmL

bauve OP ,
@bauve@jlai.lu avatar

Nothing, but it’s not a programming language

Cort ,

Psshaw. I programmed my Myspace page with that language: checkmate.

Amends1782 ,

What is it actually then?

shuzuko ,

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

Amends1782 ,

I knew it was a markup language, but didn’t know the diff between the two since I’m not a programmer. Thanks

BeefPiano ,

Diogenes throws a Ruby on Rails model over the fence and shouts “Behold a markup language!”

Dirk ,
@Dirk@lemmy.ml avatar

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.

shuzuko ,

Lol that’s fair, but since those words in that combination barely even make sense to me I tried to dumb it down more and ended up being wrong 😂

I’m the idiot who searches stack for code and copies and pastes it into the project so no one should listen to me anyway.

Siegfried , (edited )

But the meme says developer, not programmer… wouldn’t that be ok then?

thiccdiccnicc ,
@thiccdiccnicc@sh.itjust.works avatar

The first step to being a developer seems to be learning how to put down other devs :(

JoMiran , to piracy in Naming Torrents
@JoMiran@lemmy.ml avatar

Dealing with spaces while scripting or in terminal is such a pain in the ass. The true dark path of horror is using spaces indeed.

adespoton ,

“\ “ 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.

ShaunaTheDead ,
@ShaunaTheDead@kbin.social avatar

Yeah, either put quotes around it '/like this/you can incorporate/spaces/into your paths' or /just\ escape/your\ spaces/like\ this

silasmariner ,

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

gears ,

It gets real crazy when you’re sending remote commands so you have to escape the escapes so that the remote keeps them and properly escapes the space

ssh -t remote "mv /home/me/folder\ with \ spaces /home/me/downloads/

PoolloverNathan , (edited )

Does SSH require quoting commands?

gears ,

It doesn’t for commands without spaces (i.e reboot) You might be able to escape the spaces and not use quotes, I’m not sure

PoolloverNathan ,

Might be client-dependent; I’ve regularly ran commands with spaces (e.g. ssh [email protected] ssh [email protected]) without a problem.

LocustOfControl ,

Yup, this is me with scp. Well, it would be if I didn’t just use asterisks to avoid that PITA.

cobra89 ,

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?

Euphoma ,

My shell seems to autocomplete filenames that have spaces with “\ ” already.

pete_the_cat ,

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.

JoMiran , (edited )
@JoMiran@lemmy.ml avatar

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.

EDIT: I’m being intentionally vague.

reverendsteveii ,

The only reasonable response to this behavior is disproportionate violence

porksoda ,

Haha this is up there with having to explain why opening a csv in Excel and then saving means that I don’t want the file.

ramblinguy ,

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

DarkDarkHouse ,
@DarkDarkHouse@lemmy.sdf.org avatar

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?

murtaza64 ,

If this is about line endings, surely a simple shell or python script could correct them?

m_randall ,

There’s already a command for it:

linux.die.net/man/1/dos2unix

Astaroth ,

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.

how it looked when I copied it:


<span style="color:#323232;">bla
</span><span style="color:#323232;">bla
</span><span style="color:#323232;">
</span><span style="color:#323232;">bla
</span>

what it turned into:


<span style="color:#323232;">bla
</span><span style="color:#323232;">
</span><span style="color:#323232;">bla
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">
</span><span style="color:#323232;">bla
</span><span style="color:#323232;"> 
</span>
candybrie ,

Windows uses CR LF (carriage return, line feed), whereas Unix just uses LF. For added fun, macs use CR.

noughtnaut ,
@noughtnaut@lemmy.world avatar

For added fun, macs use CR.

This used to be true, for sure, but I thought this changed with OS X (which is essentially PrettyBSD) ?

candybrie ,

You’re right. Notepad++ still lists macs as using CR for their EOL conversion tool, so I didn’t realize.

elscallr ,
@elscallr@lemmy.world avatar

You can just grep for carriage returns followed by newlines, grep -Pirn ‘rn$’ /path/to/whatever. It’ll identify all your problematic files.

skullgiver , (edited )
@skullgiver@popplesburger.hilciferous.nl avatar

deleted_by_author

  • Loading...
  • reverendsteveii ,

    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.

    FooBarrington ,

    That’s… Surprising. If you’re doing things right, double quotes should be no trouble at all:

    • HTTP requests have simple, automatic encoding
    • SQL queries with prepared statements don’t need any special handling for double quotes
    • Rendering the data should happen with proper escaping etc.

    They are usually only trouble if you’re doing SQL queries wrong (concatenation etc.) or if you’re not escaping your output.

    reverendsteveii ,

    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.

    FooBarrington ,

    Ah, that’s understandable. Sorry you have to go through that!

    WarmApplePieShrek ,

    The filter you’re using to avoid multiple encoding attacks creates multiple encoding attacks.

    reverendsteveii , (edited )

    You should tell that to OWASP then, they wrote it. org.owasp.esapi 2.5.2.0, class is Encoder, method is canonicalize(String, bool, bool)

    WarmApplePieShrek ,

    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.

    Amends1782 ,

    Yeah I was gonna say this is something anyone in tech knows, spaces are a plague

    SaakoPaahtaa , to noncredibledefense in Happy Thanksgiving NCD!

    Happy thanksgiving to all my US friends out there❤️

    verity_kindle ,

    Happy Thanksgiving back to you. Thank you for your kindness.

    Napain , to lemmyshitpost in Radiolysisposting

    that and landlords

    skillissuer OP , to noncredibledefense in Troops morale is important, but staying out of enemy's artillery range is importanter
    @skillissuer@discuss.tchncs.de avatar
    cyborganism ,

    Holy shit, what the fuck is wrong with the poster?

    “LOL The bitch died!”

    Like, why would you fucking “lol” at someone’s death? Especially a civilian?

    This is the problem with war. The people of the enemy nation often become sub-human to the other side. War dehumanizes.

    jmcs ,

    Someone that volunteers to actively support a war of aggression is really pushing the boundary of “civilian”.

    cyborganism ,

    Maybe. But I find the attitude of the person in the tweets towards this event quite disturbing.

    Thteven ,
    @Thteven@lemmy.world avatar

    Yeah, I really can’t get with the dehumanization side of war propaganda. Except for Putin, that dude deserves a fiery death.

    cyborganism ,

    Agree. He’s the only sub human piece of shit that deserve suffering until the arrival of a very slow death.

    WashedOver ,
    @WashedOver@lemmy.ca avatar

    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?

    bradorsomething ,

    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.

    Socsa ,

    Russia could have easily not done war

    stoy ,

    LOL @ The Defenders

    Veticia , to lemmyshitpost in Radiolysisposting
    @Veticia@lemmy.ml avatar

    H stands for Hulk

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • lifeLocal
  • goranko
  • All magazines