• 1 Post
  • 19 Comments
Joined 1 year ago
cake
Cake day: June 17th, 2023

help-circle


  • kolorafa@lemmy.worldtoLinux@lemmy.mlUsing ChatGPT with Linux
    link
    fedilink
    English
    arrow-up
    13
    ·
    3 months ago

    I didn’t left it, I needed provide that “part” to it to get the correct answer.

    Because like in the whole thread is mentioned over and over again, chatgpt doesn’t know the correct answer, it’s a mathematical model of “what looks ok” and “what should be the next word”, it looks ok to try to put --reset parameter to reset it, but because chatgpt can’t actually check documentation of podman stats if the param exists, it just generate it based on “common known text patterns”, and “common known text patterns” are written in a way suggesting that it is the truth.

    So once again - do your own research if following the results it could cause breaking both in tech and especially in life. And that is true for both chatgpt and random pages on internet.

    In this case I did exactly follow chatgpt answer without doing fact checking - I asked chatgpt, I copied the command and pasted it into terminal, because I know that if it didn’t work the worse that could happen it would fail and do nothing. But It’s bad for new people that will not know what the result could be if it’s wrong!

    @z00s Don’t take me wrong. I’m not telling not to use it, on the contrary.

    You should use any tool that helps you do your job/task. But you should try to understand how to use those tools wisely.

    Telling someone never to use ChatGPT is like telling someone to never use excavator. That is wrong, you should use excavator but you should know what is an excavator, and what harm it could do by for example accidentally destroy a building or even hurt someone (or youself) if not use wisely.


  • kolorafa@lemmy.worldtoLinux@lemmy.mlUsing ChatGPT with Linux
    link
    fedilink
    English
    arrow-up
    16
    arrow-down
    1
    ·
    edit-2
    3 months ago

    Example that confirms that “Chatgpt does not know truth. It does not know if the info it provides is true.” or more like “It will spell answer that match your inquiry that sound correct even if it’s totally made up.”

    https://chat.openai.com/share/206fd8e9-600c-43f8-95be-cb2888ccd259

    Summary:

    User
    in `podman stats` you see BLOCK IO as a summary of hard drive activity.
    how to reset the 
    
    ChatGPT
    To reset the block I/O statistics displayed by podman stats, you can use the podman stats --reset command.
    
    User
    Error: unknown flag: --reset
    
    ChatGPT
    Apologies for the confusion. It seems I provided incorrect information. The podman stats command does not have a built-in option to reset the statistics.
    

    So once again, don’t be afraid to use it, but do your own research especially if following LLM could result in something breaking both in tech or in life.


  • kolorafa@lemmy.worldtoLinux@lemmy.mlUsing ChatGPT with Linux
    link
    fedilink
    English
    arrow-up
    33
    ·
    3 months ago

    don’t run any commands that you don’t understand. Ask it to break down any commands it tells you to run if you don’t understand them.

    You need to pay extra attention to this, as ML models will spit out commands and parameters that doesn’t exists if there was not enough examples in training dataset for that action. Especially with explain as it could just spit out totally wrong but “sounding good” explanation for parameter etc as it not always will tell the magic keywords like “typically” that indicate that it doesn’t have confidence as it’s “based on other similar command/knowledge”.

    In your example it spit out:

     -m: Prune empty directory chains from the file-list.
     --prune-empty-dirs: Exclude empty directories that result from the inclusion/exclusion pattern.
    

    which is actually exactly the same parameter with 2 different explanations, you can confirm this with man rsync

     --prune-empty-dirs, -m   prune empty directory chains from file-list
    

    So the more edge case you have the bigger chance it will spill out bad results, but those new models are shockingly good especially for very common use cases.




  • cfdisk only changes the partition table, this table like a small paper that you store at the front (or back) of drive where you put information, it’s just a list of coordinates like from this point to this point is your home, from this to this is your yard, from this to this is your neighbor. Just because you changed the values on your paper doesn’t actually make your neighbor closer or further.

    System read this list to figure out where are the “borders” between different sections that you defined to load and use them logically for multiple file systems.






  • kolorafa@lemmy.worldOPtoGames@lemmy.worldThis should be illegal
    link
    fedilink
    English
    arrow-up
    19
    arrow-down
    2
    ·
    10 months ago

    I concur Buyer should not gain rights to product, so they should not be allowed to profit from it, but they should be able to preserve it, unless the license that you actually buy had a time limitation, but that should be clearly stated when you buy it that you only buy access to it to (at least) X amount of time like you have with online subscriptions.







  • @BaconIsAVeg@lemmy.world

    Linux running X11 has 2 clipboards:

    • oldschool ( from terminal-only era ) => copy by selecting text (mostly in terminals) and paste using middle mouse click
    • more modern new style ( based on graphical interfaces ) => copy by ctrl+c (or ctrl+shift+c in terminals and such) and paste ctrl+v (ctrl+shift+v in terminals …)

    Normally both those clipboards work independent as they are handled by 2 different processes, so you can for example copy one text using ctrl+c and copy another text by only selecting second text, then you can paste both, one with middle click, second with ctrl+v

    More and more distro have a clipboard managers that have a feature to “sync” both clipboards, but it’s a lot of time disabled because it’s more confusing people and sometimes annoying. Why it’s confusing and disabled by default? Imagine that you selected some text, then did a ctrl+c, you move to some word document, select text, remove it, and want to Paste it. Guess what, the selecting you did to remove text did copy the selection to clipboard overriding what you did have there from ctrl+c.

    Most if not all terminal emulators (konsole, gnome-terminal, xterm) support both clipboard styles, old-school select to copy, and new one but because the “ctrl+c” shortcut reserved to stop/interrupt applications they all decide to use ctrl+shift+c to do a copy. And yes, not only terminal emulators use ctrl+shift+c, I did have few encounters on some random apps, but most of the time, if ctrl+c is used for something else, ctrl+shift+c was available.


  • From the list … I would go with:

    Arch Linux - if you want to learn how to partition you drive, setup bootloader, manage packages from terminal, setup EFI, and such, probably tasks that will help you for example in cases when windows would override bootlaoder/efi and you want to recover/fix your Linux OS without reinstall, or you broken it and you want to fix it.

    Nix OS - if you want to learn how to serialize your OS to an reproducible state with later ways to use Nix packages on other distros if needed. If you break it, you will just revert to older revision or reinstall everything in a matter of minutes (if not seconds) from few files. You will learn way different set of skills than Arch as you will only ‘define’ what you want your partition and bootloader should look, and NixOS will take care of that almost magically, but you could use Nix packages on top of Arch or any other distro.

    Gentoo - if you want to learn how all those packages are build and installed from sources, how to patch and modify them when needed, how much time you gain with distro with prebuild packages if you decide to build everything, but on the other hand how much performance you ‘could’ gain from optimized builds or how easy is to install anything you want in any way you want. (Didn’t use Gentoo myself, as installing stuff from AUR on my desktop Arch is all I need to experience how much time it could take :) So Gentoo would probably not be the hardest but most time consuming, but I could be wrong)