xk3's recent activity

  1. Comment on What programming/technical projects have you been working on? in ~comp

    xk3
    (edited )
    Link
    I finally found a good use for systemd-nspawn: editing raw bootable images. I put together a few scripts for Internet in a Box and Raspberry Pi OS: https://github.com/chapmanjacobd/iiab-image I'm...

    I finally found a good use for systemd-nspawn: editing raw bootable images. I put together a few scripts for Internet in a Box and Raspberry Pi OS: https://github.com/chapmanjacobd/iiab-image I'm working on getting Debian images also working since those raw images are slightly different (EFI partition instead of simple boot partition)

    If you're interested in this, I recommend giving this video a watch: Build your own Container Runtime with chroot

    bootc is perhaps a better alternative to this... but that mostly only works with Fedora (Bootable containers on the Raspberry Pi 4) but I'm having fun~


    Some other neat things I worked on this week:

    depth.py

    I can copy a bunch of links then:

    $ cb | depth
    
    Depth | Count | Sample Line
    3     | 18    | https://github.com/search?q=topic%3Araspberry-pi+org%3Aoffspot&type=Repositories
    4     | 24    | https://github.com/offspot/base-image
    5     | 92    | https://github.com/offspot/base-image/forks
    

    Then choose a depth to filter the list

    $ cb | depth 4
    https://github.com/offspot/base-image
    https://github.com/offspot/offspot-config
    https://github.com/offspot/imager-service
    https://github.com/offspot/provisioner
    https://github.com/offspot/provision-os
    https://github.com/offspot/testbench
    ...
    

    Linux only: see which files are being written to and how much they increase over time

    fatrace_agg_size.py

    $ fatrace_agg_size.py --min-size=3M --min-delta=2M --sort=size
    
  2. Comment on My PKM journey in ~tech

    xk3
    Link
    This seems really specific. Have you tried Org-mode? I don't personally use emacs but this multiplicity (task management+event management) seems like something that would only be satisfied by very...

    On one hand, I need reminders, due dates, and the UX to make sure that I don't miss certain tasks. On the other hand I need to be able to categorize and view all recorded entities

    This seems really specific. Have you tried Org-mode? I don't personally use emacs but this multiplicity (task management+event management) seems like something that would only be satisfied by very mature systems which have been actively developed over decades.

    what application and system do you use?

    Personally, I use Google Calendar and Gmail snooze email for things I want to remember/schedule. But I also use systemd-timers, eg:

    For note-taking I primarily use git, ie. https://github.com/chapmanjacobd/journal/

    There isn't really anything specific in terms of programs. I do a couple things to manage and sort lists--but all the note-taking and searching is very lightweight: tee, ripgrep, fd, etc.

    3 votes
  3. Comment on Double meaning Tildes post tag writing prompt in ~creative

    xk3
    Link
    writing.creative: typography, cave drawings writing prompts: events that happen which cause people to write history books tags: multiple games of tag: you're it
    • writing.creative: typography, cave drawings
    • writing prompts: events that happen which cause people to write history books
    • tags: multiple games of tag: you're it
    7 votes
  4. Comment on RV There Yet? | Announcement trailer in ~games

    xk3
    Link
    Interesting... I like the premise but the last half of the game feels a bit half-baked--giant concrete tunnels and a shooting helicopter, really?

    Interesting... I like the premise but the last half of the game feels a bit half-baked--giant concrete tunnels and a shooting helicopter, really?

    2 votes
  5. Comment on What diagramming tools do folks use? in ~comp

    xk3
    Link
    I like text-based tools. Here's a great resource: https://xosh.org/text-to-diagram/ This is the first one I started using and I think the design is tidy: https://swimlanes.io/

    I like text-based tools. Here's a great resource:

    This is the first one I started using and I think the design is tidy: https://swimlanes.io/

  6. Comment on What the hell are we doing with hierarchical tags? in ~tildes

    xk3
    Link Parent
    laniakea.virgo.milky.way.oort.earth.net.tildes.tildes.opinions.tags.hierarchical
    laniakea.virgo.milky.way.oort.earth.net.tildes.tildes.opinions.tags.hierarchical
    
    10 votes
  7. Comment on What have you been listening to this week? in ~music

    xk3
    Link
    I've been digging into some of James Blake's lesser-known albums and really enjoying it! Also, SZA.

    I've been digging into some of James Blake's lesser-known albums and really enjoying it! Also, SZA.

  8. Comment on Controllers that work well with CachyOS? in ~tech

    xk3
    Link
    I use an 8bitdo Pro 2 and it works both Wired and Bluetooth without any additional configuration or drivers. I leave it in "X" mode and it shows up as both an SDL and evdev device in Fedora.

    I use an 8bitdo Pro 2 and it works both Wired and Bluetooth without any additional configuration or drivers. I leave it in "X" mode and it shows up as both an SDL and evdev device in Fedora.

    1 vote
  9. Comment on Scripts I wrote that I use all the time in ~comp

    xk3
    Link Parent
    One alternative you could do is SSH Art 🎨😎 cat .ssh/config VisualHostKey=yes

    I got tired of looking up the fingerprint

    One alternative you could do is SSH Art 🎨😎

    cat .ssh/config
    VisualHostKey=yes
    
    1 vote
  10. Comment on Scripts I wrote that I use all the time in ~comp

    xk3
    Link
    Found a couple neat ideas that I'm going to steal--thx for sharing; but I must mention: Should probably be pgrep and pkill Should probably be setsid -f or at least use the double subshell trick...

    Found a couple neat ideas that I'm going to steal--thx for sharing; but I must mention:

    running foo is like ps aux | grep foo

    Should probably be pgrep and pkill

    bb my_command is like my_command & but it really really runs it in the background

    Should probably be setsid -f or at least use the double subshell trick (ie. ((command &) &) which immediately backgrounds the process and orphans it, effectively daemonizing it)

    7 votes
  11. Comment on What's a quantum computer? in ~tech

    xk3
    Link Parent
    All quantum computation can be simulated on a classical computer--it's just very slow. 30 qubits is roughly equivalent to one billion complex numbers (which can be stored in double precision in 16...

    a "quantum-only" laptop

    All quantum computation can be simulated on a classical computer--it's just very slow. 30 qubits is roughly equivalent to one billion complex numbers (which can be stored in double precision in 16 GB of RAM or so--but just storing those numbers isn't very useful; I only mention this because it is fun to think about). If you need more than 30 qubits though--things exponentially become a lot more difficult.

    I have doubts about whether quantum hardware will ever be truly ubiquitous but if it becomes easier than classical computing then I'm sure we could write the same types of programs that we have today using qubits rather than bits as the underlying unit. The reason that probably won't happen is that some algorithms are faster with simple maths and others are faster with quantum maths.

    But one thing to mention is that if quantum computers are somewhat ubiquitous--we'll probably all have quantum co-processors if only to have quantum encryption/communication.

    6 votes
  12. Comment on What programming/technical projects have you been working on? in ~comp

    xk3
    Link
    I finally got my Digital Film Stock site up. It took only about six hours of work to finish getting everything working so I regret not doing it sooner but I just wasn't in the mood to do it for...
    1. I finally got my Digital Film Stock site up. It took only about six hours of work to finish getting everything working so I regret not doing it sooner but I just wasn't in the mood to do it for several months. However, now that it is done I've noticed that RED MINI-MAGs aren't showing up. The eBay API is pretty frustrating to work with. But also it doesn't seem like other people are actually using the site so I'll just leave it be for now.

    2. I made a small script to visually sort keyframes. I've attempted this half-heartedly in the past, but this one actually seems to be working pretty well. It uses the Annoy package (https://pypi.org/project/annoy/) to do the nearest neighbor clustering and it works pretty fast. The slowest part is reading the keyframes from the input video file.

    3. I fixed the library shrink subcommand to also move broken multi-part archives. unar does all the heavy lifting here: part_files = lsar_json["lsarProperties"]["XADVolumes"]

    4. I added an "ensure" procedure to Syncweb which will download Syncthing from GitHub. It's my first time working with the GitHub Releases API and it was surprisingly painless to work with.

    3 votes
  13. Comment on TV Tuesdays Free Talk in ~tv

    xk3
    Link
    I started watching Silo and really enjoyed it! Can't wait for Season 3 (but maybe it will be released in the next few months--and then I'll have to wait for Season 4) so I'm off to read the...

    I started watching Silo and really enjoyed it! Can't wait for Season 3 (but maybe it will be released in the next few months--and then I'll have to wait for Season 4) so I'm off to read the books...

    6 votes
  14. Comment on Tips/guides to turn my home into a smart home? in ~tech

    xk3
    Link
    I would start small. Some of the things like monitoring your home electricity usage will be expensive and it might be redundant if your energy provider already provides graphs of your usage on...
    1. I would start small. Some of the things like monitoring your home electricity usage will be expensive and it might be redundant if your energy provider already provides graphs of your usage on their website. I've found that even small "dumb" devices like motion/light sensitive nightlights can be a big quality of life boost. Anything that is a simple state machine will be a lot more reliable and less frustrating than something that connects to a network.

      Even smart lights can be unresponsive and annoying. It's not a matter of name brand either--if anything I've had more luck with random Chinese companies than GE.

    2. I haven't noticed this so I wouldn't be too worried. But most devices will want to connect at 2.4Ghz and it helps to have everything on the same network. If you're worried about home network security you could double NAT your other devices or set up a VLAN or something

    #4. A few quick disconnected statements: Home Assistant is overkill and can be a big time sink; choose an ecosystem like Google Home or Apple HomeKit to build around if you want things to be easy to setup. I haven't had good luck with Zwave or Zigbee. Reolink is pretty good for security cameras.

    3 votes
  15. Comment on Looking for feedback on a homelab design in ~tech

    xk3
    (edited )
    Link
    If you're having trouble with NFS in terms of reliability, try comparing the speed with SSHFS or even rsync. Maybe you don't really need NFS I combine plocate and sftp/scp/rsync to search across...

    If you're having trouble with NFS in terms of reliability, try comparing the speed with SSHFS or even rsync. Maybe you don't really need NFS

    I combine plocate and sftp/scp/rsync to search across many computers and it works well. I use it multiple times per day:

    https://github.com/chapmanjacobd/computer/blob/main/bin/locate_remote_mv.py

    SSHFS is also fast enough once you figure out the right config (setting max_conn to something between 8 and 40 is really important! essentially, how many files you expect to access at the same time--but don't set it to something ridiculous like 400 either--I imagine the overhead can get big)

    1 vote
  16. Comment on Lazy Sunday storytime - One for the Trekkies in ~tv

    xk3
    Link Parent
    If you want to see a lot of the same plotlines that you've written here? I can recommend the fan edit "Babylon 5 Project"

    If you want to see a lot of the same plotlines that you've written here?

    I can recommend the fan edit "Babylon 5 Project"

    2 votes
  17. Comment on Lazy Sunday storytime - One for the Trekkies in ~tv

    xk3
    Link
    It's nice fan-fiction but... have you been watching Babylon 5 recently? Seems really similar

    It's nice fan-fiction but... have you been watching Babylon 5 recently? Seems really similar

    2 votes