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

LemmyKnowsBest , to memes in Hmm like food

I guess the FDA did all they could to protect me before he bought those items from the grocery store.

Now I’m supposed to be okay with him licking and sweating all over the kitchen prep food because it’s supposed to be sexual, right?

xyguy , to risa in Insert witty title here

The main guy on this episode seems like a 1980s wrestler. Especially with the shiny outfit.

Alexstarfire , to noncredibledefense in Virgin Everything vs Chad Stargate

Pretty sure the P90 is the equivalent for Stargate.

nuke OP ,

gestures to Ma’Tok staff weapon

This is a weapon of terror. It’s made to intimidate the enemy.

gestures to P90

This is a weapon of war. It’s made to kill your enemy.

aeronmelon ,

Most brilliant moment in all of science fiction. Actual demonstration of an actual weapon mixed with meta commentary on science fiction weapons in general and how villains can’t ever seem to shoot straight.

HobbitFoot ,

I don’t know if I would say “in general”, but definitely in the Stargate universe.

It doesn’t make that much sense for Star Wars, but then the universe doesn’t really explain a lot why, just that things are the way they are.

Star Trek seems to deploy handheld energy weapons because they provide a greater range of responses, from less than lethal to able to take out armored opponents with a single weapon.

mosiacmango , (edited )

If you’ve mastered storing energy densely, energy weapons are just way better than ballistic ones. You get way more “ammo” out of the them and more flexibility as you say.

Stargate just had intentionally stupid energy weapon usage. The staffs were just bad overall, including in melee. A gun you aim by swnging it on top of your shoulder, that fires incredibly slowly and inaccurately that barely has as much punch as a 5.56 round? That you also use as an incredibly top heavy and slow bo staff? What are you idiots doing?

Meanwhile they have Zats, which are amazing, and barely use them. Rapid fire wide projective pistol grip guns that you can duel wield that instantly down your enemy in one hit, regardless of where you hit them? You have these shits on hand but all you motherfuckers are running around with cumbersome staffs?

Why Stargate command never made a zat rifle is beyond me. A P90 stock with unlimited ammo that was by default non lethal? Why the fuck are you not doing that?

HobbitFoot ,

I look at it like the Gou’auld has levels to their militaries, with the bulk of them being geared towards internal security. If these troops flipped, the Gou’auld could later deploy better military to take out the initial troops.

It also helped that any tactics that rebels used successfully against the first set of forces would likely fall apart against the reserve set.

mosiacmango ,

See, I dont buy it. You dont see these troops ever. You do see the Gou’auld with the bog standard Jaffa always at their side, even as their personal entourage. If they had “shock troops” or star wars style “red guards” they would have shown them in the series.

The closest is the super assassins that are occasionally invisible, but they mainly just use a knife, and are never defensive.

I think after thousands of years of just Jaffa vs Jaffa, a race of being with healing powers, their warrior culture got very ritualized and stagnate. The staff weapon is considered thr “honorable” weapon, even though its immensely stupid.

The very minute an outsider comes in with a dumb ballistic gun that shoots 900 rounds/minute, suddenly entire Jaffa squadrons of 100yr+ old warriors are getting mowed down like saturdays grass by a 4 man team consistently of 2 warriors, a warrior scientist and am archiologist that carries a 9mm.

When 9mm linguist man is whooping warriors with a centuries experience emass, yall fucked up.

teft ,
@teft@startrek.website avatar

You dont see these troops ever. You do see the Gou’auld with the bog standard Jaffa always at their side, even as their personal entourage. If they had “shock troops” or star wars style “red guards” they would have shown them in the series.

Serpent guards are the elite of apophis. Other goa’uld have similar elite forces that guard the goa’uld. The First Prime is the foremost jaffa in the goa’uld’s personal guard.

mindbleach ,

Nevermind the US Military having magazines that fire red-laser stun rounds. We see them abundantly in one episode, and then I assume the writers agreed to pretend we didn’t.

mindbleach ,

The Federation also has deliberately unwieldy weapons, to discourage solving problems through violence. The redesigned phasers for the 1990s were so awkward that actors in combat-heavy episodes complained. That’s why late-90s Trek introduced rifles.

NOT_RICK ,
@NOT_RICK@lemmy.world avatar

I love that scene so much

HobbitFoot ,

Or how the Asgardians kind of look down on human tech as primitive and yet have to bring in humans for help because they solve problems.

Like having a weapon to kill Replicators that accelerate a metal chunk with a chemical explosion.

Swedneck ,
@Swedneck@discuss.tchncs.de avatar

you know i like to compare this to how we view the bow and arrow compared to guns

yeah the bow is primitive but it also doesn’t shred your eardrums and arrows can usually be fired again, which makes it actually pretty good for hunting even to this day!

Socsa ,

And also, a railgun is just a bow with extra spicy string.

Swedneck ,
@Swedneck@discuss.tchncs.de avatar

well, crossbow i’d say but a crossbow is just an improved bow so it evens out

rekabis ,

Yeah, C4 is not exactly a ranged weapon unless it’s paired with an impact detonator and flung via trebuchet.

Decoy321 ,

And lightsabres are?

ma11en ,

If you’re returning blaster bolts.

FaceDeer ,
@FaceDeer@kbin.social avatar

A Jedi vs. a random Tau'ri with a P90 would hardly be a fair match. The Jedi wouldn't know what hit him.

Gurei ,

Slugthrowers are a viable weapon against jedi, old canon at least.

FaceDeer ,
@FaceDeer@kbin.social avatar

I've had Star Wars fans argue vigorously that a Jedi could deflect a cloud of buckshot with a lightsabre. I'm a Star Wars fan myself but that's a sure sign of someone who's gone completely off the deep end. It's a very basic question of simple geometry - you can't intercept every pellet in a three-dimensional cloud with a two-dimensional rod regardless of how fast your precognitive reflexes are.

Swedneck ,
@Swedneck@discuss.tchncs.de avatar

it’s not even two dimensional, it’s one dimensional!

FaceDeer ,
@FaceDeer@kbin.social avatar

Ah, brain fart, indeed.

setsneedtofeed ,
@setsneedtofeed@lemmy.world avatar

I’d sooner accept stopping all the pellets using the force, like Neo did in the second Matrix movie.

Deceptichum ,
@Deceptichum@kbin.social avatar

Don’t Jedi throw them all the time? Like doing spinning out boomerang moves or is that just the games?

stoy ,

Yeah it happens, but the bright light from the blade makes it clearly visible meaning that in a real battle your enemy would see where you are and kill you before your boomerang would come back to you

aeronmelon ,

“Yeah, C4 is not exactly a ranged weapon”

Not with that attitude it isn’t.

tetris11 ,
@tetris11@lemmy.ml avatar

Its like he’s never even kissed semtex

rustyfish ,
@rustyfish@lemmy.world avatar

Then we just strap naquadah on the C4 and blow the whole continent up. There you have your range.

setsneedtofeed ,
@setsneedtofeed@lemmy.world avatar

Claymores certainly have range.

MisterD , to noncredibledefense in Virgin Everything vs Chad Stargate

Meanwhile true SG fans cry in P90s

Kolanaki , to noncredibledefense in Virgin Everything vs Chad Stargate
@Kolanaki@yiffit.net avatar

Even Jaffa sticks looked better than the “random plumbing supply” weapons.

mosiacmango ,

Those Dalek space plungers had hella better energy beams than jaffa sticks. When that shit hit you, you died.

Jaffa stick hit? Standard paramedics gear and youre good to go.

aaaa ,

Originally it only paralyzed you. It would seem the Dalek weapon has a range of settings like a Star Trek phaser does

Ummdustry ,

Erhm ACHSHUALLEE the energy beams came out of the Whisk, not the plunger.

AngryHumanoid , to noncredibledefense in Virgin Everything vs Chad Stargate

I mean, zats were so stupid they were practically written out of the show.

mosiacmango ,

The 1, 2, 3 special was used in maybe one episode to “hide” some bodies, then conveniently forgotten in all future episodes.

3 shots disintegrates didn’t really make sense with a weapon that basically just fucked your nervous system up.

setsneedtofeed ,
@setsneedtofeed@lemmy.world avatar

Zats were used a ton. It was the disintegration mode that was softlocked.

mindbleach , to noncredibledefense in Virgin Everything vs Chad Stargate

Use two.

Gradually_Adjusting , to memes in Hmm like food
@Gradually_Adjusting@lemmy.world avatar

This must be how silly the thirst traps on insta must look to normal women

teft , to noncredibledefense in Virgin Everything vs Chad Stargate
@teft@startrek.website avatar
ashok36 ,

Stun. Kill. Disintegrate. In that order every single time.

muntedcrocodile , to piracy in Naming Torrents
@muntedcrocodile@lemmy.world avatar

Why there has to be a reason?

balderdash9 , to piracy in Naming Torrents

Why are spaces bad? Does it mess with sonarr/radar or something?

0x4E4F , (edited )

It’s legacy, white spaces weren’t allowed as characters on most FTP software, which is how the warez scene shares it’s releases. It used to be underscores, but dots are closer to a white space regarding separation (space wise), so most release groups use dots nowadays.

Generally, a white space as a character in filenames and directories is “frowned upon” in many operating systems, Windows included (somewhat). It makes writing scripts and software more comlicated because it’s used as as a separator for giving command line/terminal options to commands and binaries (programs).

originalucifer ,
@originalucifer@moist.catsweat.com avatar

it goes way back before ftp.. i believe its because the original operating systems filesystems/namespacing could not handle the space character at all. so all files lacked spaces in their names. but only for like the first 30 years

biscoot ,

30 years ain’t small

0x4E4F ,

Yes, you’re correct, it goes much further back than FTP, all the way down to UNIX I believe. The problem was commands and parameters (options) which use a white space to seperate between them. So, filenames and directories were’t allowed to have white spaces in them.

retiolus OP ,
@retiolus@lemmy.cat avatar

Spaces are a headache whenever you’re not using a graphical interface.

pete_the_cat ,

Quote\escape all the things!

the_third ,

Yes, but, no.

jimmydoreisalefty , to piracy in Naming Torrents

I prefer dots over spaces.

Spaces can mess with stuff, double space…

SchizoDenji ,

Dots sometimes pose problems in arrs.

Mr_Blott ,

Yeah I had dots on my arse once. Turned out I’d been sitting on my keyboard

KrummsHairyBalls ,

I.too.prefer.dots.over.spaces.

pete_the_cat ,

:%s/./ /g

people ,

And get the bonus of excellent compression after that, too!

LazaroFilm ,
@LazaroFilm@lemmy.world avatar

I prefer  

GhostsAreShitty , to piracy in Naming Torrents

Either are fine, I just wish there was a more consistent standard like naming ROMs. I want to be able to script renaming everything for Kodi

Laser ,

I think your workflow is not optimal. Are you using software like Radarr and Sonarr? They do the renaming for you and come with Kodi integration. Or is this not feasible?

pete_the_cat ,

I think OP means ROM files for video games systems. Kodi has a RetroArch plugin. As I’m sure you’re aware, Sonarr and Radarr only do TV shows and movies, respectively. Managing ROM packs is a pain in the ass because there are usually thousands of files in a pack (I think there’s something stupid like 9,000 ROMs for NES or SNES).

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

deleted_by_author

  • Loading...
  • pete_the_cat ,

    There is a database that I found called Smoke Monster’s Database, it’s actually a bunch of “databases” (files, not actually databases) that you load into a program and point it at a directory and it categorizes, organizes, and renamed everything for you.

    A lot of ROM packs that are out there are pretty old considering the systems that they’re for are decades old and have been passed around and added to for years. The packs are usually in a flat file structure and there are usually multiple files for the same game (version updates from the manufacturer) so it gets annoying pretty quickly. Do you want to have to scroll through 9000 NES games just to get to the Zelda: A Link to the Past?

    GhostsAreShitty ,

    Oh it’s totally inefficient. It’s not the most feasible with my current setup, so I’m making do with what I have at the moment.

    pete_the_cat ,

    Look up SMDB (smoke monster’s database). You can download a tool (I forget what it’s actually called, I think one is called ROM manager) which reads the SMDB files and compares the hashes to your ROMs and will categorize and rename them for you. It looks for duplicates, unofficial releases/hacks/patches, categorizes them by country (US, EU and Japan largely), and more. It’s a pretty nifty tool.

    I spent like two hours going through PS1 ROMs and was like “there’s got to be a better way!” (insert cheesy black and white infomerical cutaway), started looking up stuff and there it was. Not all game systems are supported (mostly NES, SNES, Genesis/MegaDrive, and a few others) but you can build SMDB “packs” yourself.

    I forget if it works on Windows, but I know it works on Linux and it’s either a script or a compiled binary, I forget which, but you can definitely script it, I’ve done so myself since the command string tends to be a bit long.

    CmdrShepard ,

    In my experience, files are named pretty well these days to include resolution, source, the actual title and release year, video format, audio format, language, and release group.

    Try looking at the way music files are named and you’ll see how awful naming conventions can get.

    TheInsane42 , to piracy in Naming Torrents
    @TheInsane42@lemmy.world avatar

    When searching, dots, when downloading, who cares?

    When searching, dots act as and, spaces as or (at least in qtorrent). The dots makes searching easier.

    otp ,

    What do all the commas do?

    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

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