• 2 Posts
  • 13 Comments
Joined 1 year ago
cake
Cake day: July 25th, 2023

help-circle


  • rayon@lemm.eetotechnologyslicing arrays
    ·
    4 months ago

    static typing:

    • afraid to make mistakes
    • restricts your freedom
    • thinks i'm too stupid to know the types of my variables
    • years of programming yet no real world use found for Option<Option<Result<Int>>>

    dynamic typing

    • bold, fearless
    • null pointer exceptions? catch them and return 0
    • can use eval, easily extendable



  • I like Val&PL: https://www.youtube.com/channel/UCQJQLJFuAj0Q8LPgqdzTbag They are more focused on entertainment rather than high level gameplay and analysis. They do plenty of wordplay and jokes. Depending on your level in French it will be a bit hard to follow at times. Personally i like their dynamic as a commentator duo








  • In tmux, you usually set configuration options with set -g in tmux.conf. "-g" sets a global option which will apply to all new windows and sessions, otherwise the option applies only for the current window, which is usually not what you want.

    Since command-alias is an array, you can use the -a flag to append a new value at the end.

    With that said, try this:

    set -ga command-alias s="new-window ssh foo"
    

    Keep in mind that run in tmux runs a shell command in the background, so you most likely want to use something like new-window or new-session instead.



  • rayon@lemm.eetoLinux@lemmy.mlAntivirus recomendations
    ·
    1 year ago

    I don't understand why we keep telling new users that it is useless to use an antivirus on Linux. For people with computer knowledge, sure. However more widespread Linux adoption will mean more casual users will start using it. Most of them don't have the "common sense" that is often mentioned ; these users will eventually fall for scams that tell them to run programs attached in emails or random bash scripts from the internet. The possibility is small, but it's not zero, so why not protect against it?