• 1 Post
  • 1.4K Comments
Joined 2 years ago
cake
Cake day: June 17th, 2023

help-circle


  • SpaceCowboy@lemmy.catoProgrammer Humor@programming.devYes, But...
    link
    fedilink
    arrow-up
    8
    arrow-down
    1
    ·
    19 hours ago

    Avoiding 403 seems like a security through obscurity approach to me.

    I suppose there might be some special admin only endpoints you’d want to 404 on if the user is not an admin. But for most cases it’s really hell integrating an API that 404s on everything… is my token invalid, did I set a parameter wrong, or did I get the path wrong? I guess I gotta spend all day doing trial and error to figure it out. Fun!

    Also makes integration tests on your security unreliable. Someone renames an endpoint and suddenly your integration tests aren’t actually testing security anymore. Checking for 403 and getting a 404 because someone renamed something will indicate the test needs to be updated to use the new path. Checking for 404 (because the user isn’t supposed to have access) and getting 404 (because the path was changed) means your test is useless but you won’t know it was rendered useless.





  • Don’t know how it is in Europe, but here in Canada we have marketing boards to ensure that we’re always producing more food supply than needed. Because it’s kinda bad to have less food than needed, so we want to have a little bit of margin to ensure that doesn’t happen. BTW this is why food is a contentious trade issue with the US, we don’t want to be dependent on food production that has no safety margin.

    Anyway, it’s very possible countries are producing more than they need and could supply the US with the excess. It may not meet all of the demand in the US, but it would help bring down the price a bit. Yes the prices wouldn’t be the same as it was before the Avian flu outbreaks, but it would be lower than it is now.

    It’s something that could happen if Trump didn’t burn all the goodwill with all of the allies of the US. According to Trump “We don’t need anything they have.” So you will pay more for things, because Trump thinks you don’t need them.


  • Yeah they cast a lot of guys like Peter Graves and Robert Stack that normally appeared in the over-serious thriller type movies. So Leslie Nielsen was just one of that group of actors they cast to have guys deliver silly lines in that stern serious tone that they did in actual serious movies.

    But of course Leslie Nielsen was amazing at it, and didn’t need to do those over-serious movies anymore. And don’t call me Shirley!



  • Dr. Strangelove was released before Fail Safe. The story goes that they were both being filmed around the same time and Kubrick used his pull with the studio to make sure Fail Safe was released later in the year.

    Seems a really odd thing to insist your parody is released before the movie it’s parodying. And I don’t think there were all that many movies about the terror of nuclear war until after the Cuban missile crisis. It takes a couple of years to make a movie and Dr. Strangelove came out less than two years after the Cuban Missile Crisis, so it was pretty much the first of it’s kind.

    Seems to me like Dr. Strangelove is a black comedy, not a parody.


  • Religion provided people with a sense of community. Without it, they’ve been finding community on the internet which has resulted in people believing in all kinds of strange things. Significantly stranger than there being a metaphysical consciousness in the universe.

    Religion, while not perfect, often tries to encourage people to be better. Of course religion can be corrupted by politics at times, and we’re certainly in one of those times. But the general concept of people coming together and encouraging each other to be better isn’t a bad thing.

    Internet groups are worse than religion, many of them are devoted towards hating an enemy and unlike religion, make no effort to encourage people to better themselves. Religion can often fail at this goal, but most internet groups make no attempt to be better than a failed religion. Case in point: atheistmemes@lemmy.world



  • That “half of NATO” has nuclear weapons.

    The US hasn’t experienced a war on it’s own soil in living memory. Americans shit their pants when they see a couple of drones over New Jersey. And Americans don’t have the will to endure a long drawn out occupation even when there’s an ocean between them and a war. Canadians will endure it, because we would have no other choice.

    This would be a war of betrayal. Trump would need to have Elon Musk purge the US military of anyone with even an once of honour and courage. Currenttly Trump is demanding Canada to defend the US border for him. The US would need to defend it’s border, and that’s a long border. You’d also need to have checkpoints in the US where soldiers will check your papers because Canadians would be trying to infiltrate the US and hit the soft targets everywhere. There would be raids on your houses to find and Canadians or any sympathizers. How willing are you do have these things happen?

    Because it would be betraying an ally, the US would have zero allies in this war. Canada would get lethal aid from Europe and likely from Asia too. And Canadians know how to make an IED. Because our soldiers served in Afghanistan. Alongside the US military that’s going to betray the soldiers it fought alongside a few short years ago. And why? Because of the whims of a deranged old man? So you might have a slight morale problem.

    While you’re looking at troop strengths on spreadsheet, we’re looking at the willingness of Americans to do what would need to be done for decades to succeed in occupying a neighbouring country. We only need to outlast you, while you need to have the will to watch young people coming back from the north in body bags. For decades.

    The chance of the US winning a war like this is basically zero.






  • They can’t shut them off. They can do something like MS is doing with EOLing Windows 10 tho. No more security updates, which in this case means they’d over time become more vulnerable to adversary ECM jamming.

    They could cut off a country from getting parts needed to keep the planes flying which is actually more significant. It wouldn’t be easy, but a country could replace the computer systems in a jet. A military has it’s own technicians maintain their equipment and they would understand which signals are needed from the cockpit to make the plane work.

    The Lockheed Martin could shut down the planes thing is FUD and isn’t convincing anyone in the know. The potential for cutting a country off from resupply is real, and the US has done that to Ukraine, a country in the middle of a war.