Skip Navigation

Posts
0
Comments
1065
Joined
3 yr. ago

Aussie living in the San Francisco Bay Area.Coding since 1998..NET Foundation member. C# fan https://d.sb/Mastodon: @dan@d.sb

  • Admittedly I still use cat for this.

    This also works too, but it's more verbose:

     
        
    echo "$(<foo.txt)"
    
      

    It's mentioned in the Bash man pages:

    The command substitution $(cat file) can be replaced by the equivalent but faster $(< file).

    EDIT: I was just informed that simply <foo.txt works too.

  • It wouldn't be at the end, since you'd still be piping into program

     
        
    program <file | grep | cut
    
      
  • I know, but I just wanted to mention this since a lot of new Linux users end up using cat this way :)

  • cat is misunderstood a lot. The purpose of cat is to combine multiple files together (it's literally short for "concatenate"), like cat *.log to combine all log files together.

    If you're just using it for a single file, then you should just redirect the file to stdin. These two command lines behave similarly:

     
        
    cat foo.txt | some-command
    
    
      
     
        
    some-command < foo.txt
    
      

    For head, tail, grep and some other commands, you can just pass in the file name directly as an argument (e.g. grep whatever foo.txt).

  • Not all those companies have their own data centers, but plenty of them would rent space in data centers. You can rent anything from individual servers owned by the data center ("dedicated servers", like what you can get from Hetzner), to space in a shared rack, to an entire 42U rack dedicated to you, to an entire cage (or several cages).

    (a cage is just a part of the data center that's sectioned off in a locked metal mesh cage so only one customer can access it, while still allowing plenty of airflow to and from the servers)

  • AI loves inserting comments like this.

    Either that or 20-line comments documenting the bugs in the old code, what this code does differently, and the exact implementation.

    Comments describing the exact implementation become stale very quickly. Comments shouldn't explain what the code does (eg "add two to rowCount"); they should explain why it does it (eg "include header and footer row in count too"). Extra details are what the commit message is for, and history is what source control is for.

    I call it out in a lot of my code reviews ("code looks good but clean up the AI slop comments before landing") but a lot of other developers don't care as much about code and documentation quality.

  • Please may I have a crumb of context? What is Tesseract? I only know the OCR engine.

  • The post is about data centers though.

    No serious business is hosting an internet accessible serve in their office.

  • There's some dots on the map in places where I know for sure that there's no data center. I think people have submitted addresses of some tech company headquarters for example.

  • Most new builds by the larger companies are pretty big though, even if they're not dedicated to AI.

  • The site explicitly mentions "AI data centers", but how do you differentiate AI data centers from... non-AI data centers I guess?

    I understand the anti-AI sentiment and environmental issues, etc. but I also think a lot of non-technical people don't realise that literally everything they do online uses a data center.

  • I don't understand how apps like Polymarket are legal when they're essentially unregulated gambling that's rigged against regular users due to the amount of insider trading that happens on the platform.

    Being able to bet on wildfires doesn't make any sense, since it gives people a financial incentive to start fires. 🤔

  • Makes sense.

  • People that invest into Nasdaq 100 are already accepting higher risks though. I've got some QQQM but it's a pretty small part of my portfolio.

  • It's pretty common for stock to drop after IPO. This is just a bigger drop than usual.

    I'm glad S&P didn't give in to SpaceX's demand to add them to the S&P 500.

  • If you're going to all that effort, why not just use something that's powered by OpenStreetMap like OsmAnd?

  • That fear of the company letting you go for anything at any time…with a union they just can’t do that

    They also can't do that in countries with workers rights. This should be a standard right, not something that requires the workers to unionize.

    Edit: I understand that unions make it easier to enforce.

  • What if I like my workplace being ionized?

  • or where you have to pay for updates

    Some people prefer paying with money over paying with personal data.

    Having said that, these days the paid solutions also collect your data ¯(ツ)_/¯