Skip Navigation

Posts
1
Comments
285
Joined
3 yr. ago

  • You can see here my theme with autodetect of Python (I work a lot in Python). The orange bit is the error code returned by the previous command. Git is supported as well, and looks pretty much like powerline-gitstatus, as you'll read about below.

    First, lets make Bash a little better:

     bash
        
    # throw this in your `~/.bashrc`, and then `source ~/.bashrc` for it to take effect, or just restart your terminal.
    
    # == shopts ==
    # https://www.gnu.org/software/bash/manual/html_node/The-Shopt-Builtin.html
    shopt -s autocd         # cd into folder without cd, so 'dotfiles' will cd into the folder
    shopt -s cdspell        # attempt spelling correcting on folders
    shopt -s direxpand      # expand a partial dir name
    shopt -s checkjobs      # stop shell from exit when there's jobs running
    shopt -s dirspell       # attempt spelling correcting on folders
    shopt -s expand_aliases # aliases are expanded
    shopt -s histappend     # append to the history file, don't overwrite it
    shopt -s histreedit     # lets your re-edit old executed command
    shopt -s histverify     # I'm confused.
    shopt -s hostcomplete   # performs completion when a word contains an '@'
    shopt -s cmdhist        # save multiple-line command in single history entry
    shopt -u lithist        # multi-lines are saved with embedded newlines rather than semicolons; explictly unset
    shopt -s checkwinsize # update LINES and COLUMNS to fit output
    
      

    Autocd is a big one here, cdspell and direxpand as well. Ensures I don't need Zsh for the same experience. With Zsh I'd just get annoyed by small stuff like having to wrap things in quotes (I think pip install some_lib[some_extra] works in Bash, but not in Zsh And Ohmyzsh just felt it kept slowing things down, so I actually dislike Zsh ^(please don't kill me) >_>

    Anyway, I based this on powerline-status + powerline-gitstatus (if you want to use that instead (no, my config doesn't work), just sudo apt install powerline-status powerline-gitstatus - DO NOT USE THE PYPI VERSION (it's too outdated, and a pain to install)) because I had issues with finding the right combination of my configuration and which libraries to install for bash - there are too damn many: powerline-bash, powerline-status, powerline-rs, powerline-go, etc, etc. And they all do things just that little bit different.

    Anyway, here is my ~/.config/starship.toml (archive1, archive2). It's a little long, and can probably be shortered, but that might break something again, and I'm not willing to risk anything right now.

    https://gist.github.com/NostraDavid/675a0706716b98816fd2809560ffe42c

  • Also make sure it has a decent SSD

    That means any SATA SSD that can pull 500MB/s. No need to try to stick an m.2 7000GB/s SSD into such a weak laptop. Not trying to poop on his hardware - just staying realistic for when you look for an SSD (presuming he does not already have one).

    After 10 years, I still remember switching to an SSD from a classic HDD. Probably the biggest hardware upgrade I've ever done.

  • The technical requirements for 11 were reasonable

    My 8700k (from 2018) disagrees.

  • Here's a summarization of the summary (also done by AI, because lazy):

    The author recalls his initial reluctance to speak publicly after a past misstep and later revisits the subject by examining how movies, such as 2001: A Space Odyssey and WarGames, dramatize computers. He contrasts these cinematic portrayals with the subtle influence of everyday technologies like email and PowerPoint, and criticizes modern development tools like Visual Studio and IntelliSense for potentially diminishing deep coding skills. Ultimately, he champions a return to fundamental programming to rediscover the pure joy of coding.

  • I just dug a little deeper. Looks like the site is 95% George Whittaker since April 2023, which is a month after GPT-4 was released.

    The site literally turned into AI slop since then. Good job, Slashdot. /s

  • FFS, you could just have run gzip on it probably.

    Gzip doesn't reduce your data's size by 2000x. Of course this could be done by other languages as well, but running gzip on your data doesn't keep it accessible.

    Even turning the data into a Parquet file would've been a massive improvement, while keeping it accessible, but it likely would not have been 2000x smaller. 10x, maybe.

    edit: zip: about 10x; 7zip about 166x (from ~10GB to 60MB) - still not 2000x

  • What's wrong with BSD?

  • Until you use exit codes, which flips the logic.

  • Multiple ones.

    • Wave Function Collapse for an existing tileset (Warcraft 2) - it's really hard to figure out how to build the data on whether a tile fits on a certain side of another tile. From the top of my head: Some 180 tiles total * 4 sides to compare * 180 options per side = 129_600 total checks I would need to do, which is just wayyy too much. Need to figure out how to reduce these checks (or automate them using OpenCV or something - not sure yet)
    • Comparing dual datasets of people who worked on certain games (the games being all Warcraft games), so I can see who worked on Game A, who on Game B, and who on both. Am currently (manually) cleaning up the data, because Blizzard has been very inconsistent in how they structure their credits. At least WoW had everything available in HTML - having to manually copy over 600+ people would be no fun (per expansion).
    • A cryptocoin predictor for my friends and I. One part ingestion from an API into a Postgres DB, one part Streamlit + some stats / data science stuff that I'm very much a beginner in. The platform we're on doesn't provide much predictive power. Using the typical Simple Moving Averages and the like simply doesn't predict clearly enough, IMO.

    Oh, and I'm also setting up a private ProxMox server, over at a friends house, and need to connect that to the NAS over at my house, so we can copy over our data for redundancy/backup purposes.

    I'm bouncing between these projects.

  • How is Nifi? I've seen it pass by at work, as a generic ingestion application, but for most ingestions we're using custom-written Python for better flexibility.

    I've never worked with it, but it looked pretty daunting (as an initial view).

  • I dont know... This Linux thing is pretty great, IMO.

    I get their point, but it feels like it's more about tech being abused by large corporations, trying to squeeze another cent out of you.

  • white mode is exhausting on the eyes

    Modern monitors can output 1000 nits, which is super bright - same with cars. When I was young I sometimes saw yellowish headlights, which weren't bright enough, but now we have LED and Xenon lamps that burn the cornea from your eyes.

    Or maybe we're (also) getting older.

  • Aight, that's fair.

  • Typical American response.

    Alright, calm down, no need to insult me like that!

    I'm just getting sick of the keyboard warriors that bitch and moan on the internet about the situation, yet have exactly zero plans to do literally anything about it. They could write to their representatives, they could work towards Dems winning local elections, they could become politically active by demonstrating, etc.

    But all I see are online complaints; no plans. Storming the Capitol should be option Z, but maybe Americans can start with Plan A, eh?

  • As Jake the Dog said: "Sucking at something is the first step towards being sorta good at something."

    • Might not want to share your personal information publically - That information is PII and in western countries need to be handled with care.
    • When I hover my mous on the top menu my mouse shape is for text, not clicking
    • The cards are of different sizes. Makes it look weird.
    • Look into Polars. Read their User Guide. Better API (no weird use of brackets[[]]), faster, nicer to work with than Pandas (and can still convert to Pandas, just in case).
    • Not a big fan of all the

      <div>

      <div>

      <div>

      <div>

      - Use

      <nav>

      ,

      <article>

      (semantic HTML). You can find details on the HTML spec page: https://html.spec.whatwg.org/dev/ (you should look at chapter 4). Maybe also looks into CSS Box Model instead of using flex all over the place :)
  • Let me tell you that it has been socially unacceptable to make apologies for anyone who flew the Nazi flag ever since 1945.

    Yes, I understand you're trying to take a nuanced approach to the Nazis who had been drafted since being kids, etc, but just don't.

    History already happened, and the last of the original Nazis are slowly dieing out (youngest Nazis tended to be 16 years old, so 1945-16 = born in 1929, so they'd be about 96 years old). They don't need a random stranger to try to defend them.

    Nazism is a failed ideology that abused large parts of the world. It doesn't need defending.

  • Anyone who rails against “DEI” is by definition a white supremacist.

    This is such a backwards take. "DEI" could always only end in misery, because it pulls people ahead of the line in a time when the working people are already having a hard time. "Is that person hired because of the colour of their skin or the sex of their body, or have they been hired because they're actually good?". It could only make a large part of the population feeling left behind because of their sex or race. What do you think that does to the social foundation of a nation?

    Alas, I have no idea what a good alternative would be, but I always recognized "DEI" as a bad idea. I don't have to be a chef to be able to tell that this dish tastes like ass, even if I can't cook for shit myself.

    That does not make me (or anyone else who thinks DEI is ass) a white supremacist "by definition".

    At the end of the day, it's the ultrarich hoarding all the money that's the actual issue - an economy that's not fair to the citizens of the nation. The top 3 wealthiest persons in the USA have the same amount of money as the bottom 50%.

  • Fuck these nazis.

    Are you going to storm the Capitol like your granddads stormed the beaches of Normandy? Are you going to only bitch about it on the internet, or are you actually going to do something about it - storming the Capitol not necessarily has to be a part of it - you can plan a better alternative.