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

help-circle




  • rayon@lemm.eetotechnology@hexbear.netslicing arrays
    link
    fedilink
    English
    arrow-up
    5
    ·
    3 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
















  • It’s open-source merely to comply with the GPL license of the kernel, but the fact is that an Android image built only from open source components will be extremely crippled or, depending on your point of view, basically useless. Such an image will not even boot on the majority of devices ; you’ll need those sweet proprietary driver blobs if you want your phone to do anything, and a bunch more closed source binaries in order to use Play services.


  • 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.