• 0 Posts
  • 28 Comments
Joined 8 days ago
cake
Cake day: February 14th, 2025

help-circle

  • 10,000 people detained out of how many tourists worldwide going to china? Like, I’m just trying to get some context because (1) a massive amount of people visit China every year and (2) how does this compare to other countries. A person being “detained” could literally just be a traffic stop or any other interaction with a police officer.

    I guess my point is the article is purposely vague. How would this compare per tourist to the US for example?

    Also, what you’re mentioning is not at all what I mentioned originally. Which was about the article and Taiwan. You changed the subject to worldwide in order to make the number larger. Which, obviously it would be.

    Edit: Asking about actual per capita comparison between countries is bad apparently. I guess “China bad” is heavier than getting actual data. Something this article completely fails to provide.



  • Isn’t the whole major factor of climate change being that the atmosphere is able to retain more moisture? I may be wrong but I thought I read an article about this. A major shift being a lot of dry periods in regions followed by very wet periods. Essentially the atmosphere can hold more moisture so it has longer dry periods and then much more intense rain and floods. Which would obviously be similar for snowfall.



  • Ok. You bring up an important point. And I hope I can take a minute to convince you of something.

    What you’re saying is correct. But it relies on fundamental falacy of the way people try to view economics. When we say “capitalism” we’re obviously talking about the entire economic structure; the “rules” for which an economy is organized and the government that enforcess those rules.

    The issue with your comparison is that is is not at all comparable to the economic insensitives of massive companies. There is absolutely no valid way to compare a small business or individual hiring a contractor to what I was previously discussing.

    I think our economic education suffers in this country because people tend to think of massive economies of scale as just a “bigger” small business. This is not at all comparable. And the waste that this produces is absolutely non trivial.

    The “run the country like a business” people have this same flawed logic. They image that any business is just a “coffee shop” but with more employees and customers. But these things are just not comparable. It would be like everyone deciding about how to build an airplane but they assume that the physics are in a frictionless vacuum.










  • I’ll give you a personal story. I’m not saying anything about apple but this is my personal experience with a tech hardware company I use to be an engineer at in Silicon Valley.

    We had a product we sold to other companies. Something not consumer grade at all. Think major data center products. This product we’ll call it, Product X, was sold in different levels of speed. So you had the baseline product at speed 1x and another at speed 2x.

    Now, due to hardware delays and hardware issues the 1x (which was meant to rollout first) actually got its production schedule pushed back to the point that the hardware testing had been fully verified on the 2x model as well as the 1x. So mass production had not started yet but both models were verified through beta testing and development.

    So, it actually ended up being cheaper for manufacturing to only produce all 2x hardware and have me (the software engineer) just reduce the throughput on the same hardware. They would simply just stick a different 1x sticker on the models running the purposely speed limiting software.

    The company released 1x the next quarter. Again, with hardware identical to the 2x. And then waited two quarters to release the 2x. Now technically the 1x models could literally be upgraded by a software update. But that would expose this scam. So companies we sold 1x models to that wanted to upgrade would literally throw away the same exact hardware to buy the 2x model.

    This is just my personal story. You don’t even have to believe it. But, having worked in the industry now for 10 years, this is not uncommon practice. I would not put it past Apple to do what the above post suggests.



  • LeninOnAPrayer@lemm.eetoLinux@lemmy.mlHappy with my bash progress!
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    5 days ago

    Yes. You’re correct. The script will execute with /bin/bash by default but only in a bash shell. #!/bin/bash is still a good habit to have. Some platforms may be running an “sh” shell by default. In this case if you ran the script it would execute with /bin/sh instead. Which would work or not work depending on if your script was written in purely sh syntax and not using any uniquely bash style syntax.

    Bash can run all sh scripts but sh cannot run all bash scripts. So explicitly stating for which one your script was written for is good practice to not run into errors if you move your script to a different environment.


  • LeninOnAPrayer@lemm.eetoLinux@lemmy.mlHappy with my bash progress!
    link
    fedilink
    English
    arrow-up
    7
    ·
    edit-2
    5 days ago

    It makes it usable without typing bash. Same would apply for a python script. For example you can make a python script named with no extension and add #!/usr/bin/python to the top of the file. Bash shell sees this and knows to execute the script using that python path.

    Then you just include the directory in your $PATH and chmod +x the script. Then you can type $python_script instead of $python python_script.py