• 5 Posts
  • 152 Comments
Joined 1 year ago
cake
Cake day: July 21st, 2023

help-circle

  • As far as stability goes, its hard to beat my nixos setup. I use the venerable xmonad with xfce in no-desktop mode, and the command line for things like wifi and etc. Because I do most stuff with the command line I can get around fine on servers with no GUI. There’s no bling and hardly anything ever changes.

    I used to fancy up my desktop and so forth, but those things break eventually and don’t really help me get work done. I don’t want to waste time on that anymore.

    That said, getting it set up has been a gradual evolution and there have been awkward times. Like zoom screen sharing goes kind of insane with a tiling window manager (stop helping, zoom). And of course nixos itself is fantastic if what you need is already packaged and ready to go, and doesn’t do anything weird like download binaries. Stuff outside the norm, well now you have two problems - understanding how the software expects to be installed on debian or the like, and understanding how to subvert that process to make it work on nix.



  • I wrote a web server to store markdown documents with links between them, a sort of ‘zettelkasten’. Now I’ve made it into a tauri app that runs on my phone, web server and all, and can sync with the main server in the cloud. Documents everywhere! Front end is in elm and not rust tho.

    I’ve made a few other projects in rust, did a audio dsp thing that is a delay with web controls, made a blinky sketch for the rp2040.

    Rust is cool because you can write pretty high level code in it, with lots of libraries to help out, or you can write bare metal code with no OS for embedded.


  • I wasn’t planning on it, my GF bought the tickets without asking me about it, and didn’t know about my pal being into the band. But my friend figured I was the one who left her out. Plus, not everyone gets invited to everything, hey I’m dating someone here. Called me up and berated me about being a bad friend without saying what it was she was mad about. I prefer not to have friends that use that kind of rhetoric.




  • I’d leave the sorting up to the users. So for a post where 5 users tagged it as ‘baroque music’, and 5000 tagged it as ‘boring’, one could sort the feed by ‘total tags’ on a post indicating general interest (5005), or just ‘total tags I follow’ which might just be ‘baroque music’ (5). Or maybe reverse sort by tags so ‘boring’ stuff is towards the bottom.

    I’d think that ignoring tags would be a thing for users, so “libtards” or whatever could be ignored.

    Tag mods could ban problematic users, so someone could get banned for tagging ‘corporate lies’ where the mods think it doesn’t belong. Offenders could make their own ‘corporate liez’ tag though, I suppose.

    A tag hierarchy might be desirable, like everything tagged ‘baroque’ also getting ‘music’ automatically. Perhaps through agreements with the mods of each tag.

    ‘archive of our own’ I’ve heard has a solid system of tag moderation. Not sure it would be appropriate for a system like this.


  • What I think would be interesting would be a link aggregator based around tags rather than subcommunities. Moderation would be based around these tags. Your feed would be based on tag queries. Posts could have multiple tags, assigned by the original poster or by users. Assigning tags would have a similar effect to voting, so a post might get tagged by 1000 people as ‘corporate lies’, or as ‘music’, or whatever else.

    Nice thing about this would be finer grained queries with news, for instance. Could get ‘politics’, but minus ‘corporate lies’.



  • I think nixos is still niche, but seems to be gaining momentum. It has some unique features:

    • Every package has its own dependencies, so you can install a 7 year old firefox alongside the latest, and have no interference.
    • Packages with dependencies in common still share them (for space savings).
    • Abandons the HFS, but can still fake it for apps that need it.
    • Can make dev environments that are exactly reproducible across machines, and only exist within a specific shell session. So you can have a project that relies on an out of date version of a compiler, and another that uses the latest, and run both at the same time.
    • Make your own packages that other people can install using a git repo address.
    • The package language can also describe a machine’s configuration; systemd services, default packages, user accounts, etc.
    • You can build and remotely deploy a machine config in one line.
    • You can cross compile a machine config for another cpu architecture, like ARM.
    • OS upgrades are atomic, and reversible. If it doesn’t work out, you can go back to the previous config.
    • No reason to ever reinstall. Recently upgraded a machine that had sat in a closet for 5 years to the newest release. Flawless upgrade.
    • Nixos boasts more packages than any other distro, over 100,000.

    There are certainly downsides - poor docs, confusing core language. Instructions for installing something on say debian will not work on nixos. I do think this style of package management is the future, if perhaps not this specific implementation. It can be a pain but its also super solid.




  • I went the jank monstrosity path. Well, a few scripts anyway.

    I use an app called SimpleSSHD on the phone that lets me ssh in. Then rsync to transfer files. The script to sync pictures is like this:

    # file 'droidip' contains the local wifi ip of the phone.  
    dip=$(cat droidip)
    
    rsync --append-verify --progress  -avz -e "ssh -p 2222" root@$dip:/sdcard/DCIM/Camera newphonepix
    

    Truthfully it was as much about learning rsync as anything, and now I’m sticking with it because momentum I guess. adb is way faster if you really need to move a lot of files.




  • pr06lefs@lemmy.mltoLinux@lemmy.mlIs there a better way to browse man pages?
    link
    fedilink
    arrow-up
    46
    arrow-down
    2
    ·
    edit-2
    5 months ago

    Kind of off topic, but you know what would be cool? If you had an ‘man explain’ command that would define all the flags/args in a command, like:

    man explain rsync --append-verify --progress -avz -e "ssh -p 2222" root@$dip:/sdcard/DCIM/Camera newphonepix

    Would give you:

    rsync - a fast, versatile, remote (and local) file-copying tool
          --append-verify          --append w/old data in file checksum
          --progress               show progress during transfer
          --archive, -a            archive mode is -rlptgoD (no -A,-X,-U,-N,-H)
          --verbose, -v            increase verbosity
          --compress, -z           compress file data during the transfer
          --rsh=COMMAND, -e        specify the remote shell to use 
    

    etc.