Skip Navigation

Posts
115
Comments
1,912
Joined
2 yr. ago

  • Also nobody is allowed to install Arch with the Archlinux installer script. Such people should go and install Windows instead, no difference.

  • What's wrong with people being happy and announcing their switch? Its not exclusive, we can preach on other places AND announce our happiness in these communities. We can have both.

  • Why can't the Steam Deck and other handheld PCs coexist with the Switch 2? Both are not interchangeable, just because its a handheld. You are not forced to buy a handheld PC to play certain games. This is not a situation like Playstation vs Xbox.

  • If you hate your Steam Deck. :D Jokes aside, I am always flabbergasted by the ingenuity and knowledge of extreme modders like him. He has a use case and first it sounded stupid, but after reading a little bit it makes sense for him. I guess there is no solution like this one can buy, right? Or is it too expensive? It just hurts me personally seeing the Deck crippled like that (just jokingly talking here, man I am funny as hell today). But there was some really cheap refurbished old Decks sold on the Steam site.

    Interesting project, but not my taste to be honest.

  • Mhm, I cannot find details about this too. Maybe Firefox itself has a language identifier for offline check, and if it thinks its in "Bulgarian", then it will download the partial pack. Because Firefox must have such an identifier, otherwise how would it know what language to translate into? It is even capable of knowing its "Japanese" or "Korean" language, which are not even supported.

  • Ah, good idea to download for offline translation. I just checked it, it will translate into languages I do not have it installed. Probably that's when it does online connection? So either install all or the languages you are interested in. Also about the "Translation selection" is excellent. I will add these to the post, so people don't miss it if they don't read comments. Good tips.

    Edit: Ah maybe the partial files is meant for the online translation, so its very fast, but incomplete maybe? Meaning the translation itself is done offline, even if you don't have the full language pack installed. So it downloads a partial file that is enough to translate this part. Maybe the partial means only one way, like English to Bulgarian, but not other way. It's a bit speculation on my part.

  • I wouldn't say its shit, although I don't have extensive experience. Need to test this more. At least it works and for privacy focused people its better than nothing. I don't expect it to rival Ai supported translation that are capable of very complex and good translations like DeepL.

  • Oh that one is good too, thanks. Will add it to my bookmark toolbar.

  • Some additional thoughts to be aware of by looking closer to each line (previously I just glanced over).

    This point is not directly affecting your example, but I want to make you aware of something I fall into myself. Its one of those Bash quirks. Other shells might handle it differently, only speaking about Bash here. For a regular for loop over files, its important to note that if no file exists, the variable will be set to the search string. So example for x in *.png; do, if no .png file is found, then x will be set to *.png literally. So depending on what you do in the loop this could be catastrophic. But Bash has an option for this specifically: shopt -s nullglob . Using this option, if no file is found, then x will be set to an empty string. More about Bash options: https://www.gnu.org/software/bash/manual/html_node/The-Shopt-Builtin.html

     
        
    for x in *.abcdefg; do echo "$x"; done
    shopt -s nullglob
    for x in *.abcdefg; do echo "$x"; done
    
      

    BTW one can also do a read line by line without cat, by reading the file directly: (for some reasons Beehaw won't let me type the lower than character, so replace that, here a screenshot too):

     
        
    while IFS= read -r line; do echo "Line: ${line}" ; done \< filenames.txt
    
    
      
  • And my point is, this is not a "real shell", in the sense of "default interactive shell". It is an encapsulated system that works on its own. Basically like a programming language would be (speaking of programming language, there is also one for Python Xonsh). I don't have a problem with this approach though, so don't get me wrong, need to stress this enough. There are many implications here. If one likes this approach of replacing the entire Linux tools stack, its up to them.

    However... just like with any other tool, I think Nushell is an excellent "enhancement" or "additional" tool to what I already use. Especially working with structured data can be very useful. Instead parsing the data myself or using other parser tools like jq or Python, Nushell could do this with all the features it provides. Even though I am not for replacing my own shell with this, I need to look closer to have it as an additional tool installed. From that angle, I see Nushell more like a programming language like AWK (yeah its a full language inside, I think Turing complete) or Python. But I'm not sure I really want to, because I like to share my solutions.

  • I guess you are right. I even point such things out on others, so fair enough. I will update the example, as I don't want someone to see this and take it as a good example. For the alias, I never use aliases in scripts anyway. These are always for interactive usage for me at least. In scripts i follow some other rules, such as use longer names for options (unless it is a really common one).

  • The system tools have the output of what PowerShell offers, or doesn't it? I actually don't use Windows. In Linux the standard tools are stuff like grep, i don't know everything in the system is designed with stdin and stdout as lines and similar. Nushell requires the programs to understand Nushell, so its kinda like its enclosed system and not really a Shell in my opinion. It does not integrate (at least in Linux) into the other tools as well. That's why they provide a few extra tools that only work in Nushell.

    Not saying this is a bad approach, its just not what I would do.

  • Those find and ls commands were just to illustrate how the actual alias work, to get a sense of. I'm aware of those issues with filenames. It's not about ls or find here.

  • The problem with this is, the standard tools do not output in the format this requires. Windows PowerShell has a similar idea behind it, but at least the system is designed for this in mind. That's why I think its not really worth learning and using Nushell as the default shell. Maybe I'm wrong. Would love to hear why.

  • Update: Sorry, I had the wrong download links pointing to Genesis hacks. I corrected this. Sorry for messing this up. Downloads are now correctly pointing to the SNES archive...

  • Good point! A while loop is probably more flexible here and easier to expand too. I will experiment a bit more and maybe I'll change to a while readline implemented as a Bash function.

  • I was surprised (and first confused) too and never saw anywhere anyone mentioning this. Maybe most people forgot about the site and was focused on the alternatives. I don't even know when they start doing this, not sure if they made a post about it in the first place.

  • I consider them DLCs or updates. :D Some of them change up the original game so much and are developed with groups of people for years, that we can classify them as indie games. They just use tools and the engine of those old games and editors.