Readit News logoReadit News
aisamu commented on Triforce – a beamformer for Apple Silicon laptops   github.com/chadmed/trifor... · Posted by u/tosh
therein · 9 months ago
It switches back on a whim for the most arbitrary things, though. In Windows the same can happen but I can at least temporarily disable an input if it is doing that.

Doing some things like disabling an input/output device, or an internal keyboard, or a webcam. Almost impossible. Even if there are some ways, they change so often. Let's say you have two cameras and an application that always picks the internal one. I couldn't find a way to disable the internal camera so that this app would pick the only available one.

aisamu · 9 months ago
I "fixed" this with a Hammerspoon snippet that monitors input changes and reverts them:

    mic = hs.audiodevice.findInputByName("MacBook Pro Microphone")
    function handle_deselected(_, type)
      if (type == "gone") then
        if not mic:inUse() then
          mic:setDefaultInputDevice()
        end
      end
    end
    mic:watcherCallback(handle_deselected)
    mic:watcherStart()

aisamu commented on Archival Storage   blog.dshr.org/2025/03/arc... · Posted by u/rbanffy
alnwlsn · 9 months ago
I've thought about the "hundreds of years" problem on and off for a while (for some yet to be determined future time capsule project), and I figure that about all we know for sure that will work is:

- engraved/stamped into a material (stone tablets, Edison cylinders, shellac 78s, vinyl, voyager golden record(maybe))

- paper, inked (books) or punched (cards, tape)

- photography; microfiche/microfilm (GitHub Arctic Code Vault), lithography?

I actually looked into what it might take to "print" an archival grade microfilm somewhat recently - there might be a couple options to send out and have one made but 99.99% of all the results are to go the other way, scanning microfilm to make digital copies. This is all at the hobbyist grade cheapness scale mind you, but it seems weird that a pencil drawing I did in 2nd grade has a better chance of lasting a few hundred years than any of my digital stuff.

aisamu · 9 months ago
You might be interested in this talk by Will Byrd, of miniKanren fame:

Personal Data Preservation, Inspired by Ancient Writing https://ericnormand.me/clojuresync/will-byrd

aisamu commented on Yadm: Yet Another Dotfiles Manager   github.com/yadm-dev/yadm... · Posted by u/nateb2022
drunner · a year ago
Transitioned from gnu stow to nix/home-manager and haven't looked back.

The great part about that setup is my configuration contains not just my dotfiles, but also the installation of the programs themselves.

I don't use the "nix" way of configuration though, I instead have home manager symlink everthing for me. Then I can bail on nix anytime and not have to translate all my files back to yaml.

Glad programs like the above exist though for those who don't want to sink time into nix but want to reasonably track configuration.

aisamu · a year ago
I did almost the same, but I am converting things as slowly/lazily as possible.

One thing that helped me tremendously migrating the configuration bits was to leave "scratchpads" that I could tweak quickly without a full rebuild cycle:

  programs.kitty.extraConfig = ''
    include ${config.xdg.configHome}/kitty/temporary.conf
  '';
Then my ~/.config/kitty looks like this:

  ~/.config/kitty $> ls
   87 Dec 13 11:39 kitty.conf -> /nix/store/....-home-manager-files/.config/kitty/kitty.conf
  381 Dec 13 11:42 temporary.conf

aisamu commented on Going declarative on macOS with Nix and Nix-Darwin   nixcademy.com/2024/01/15/... · Posted by u/jonge
SkyMarshal · 2 years ago
How does Nix manage Homebrew? Haven’t heard of that. Does it make Homebrew declarative somehow?
aisamu · 2 years ago
nix-darwin supports managing your Brewfile.

The docs[2] are very helpful!

[1]: https://github.com/Homebrew/homebrew-bundle

[2]: https://daiderd.com/nix-darwin/manual/index.html#opt-homebre...

aisamu commented on Ask HN: Who's an open source maintainer/project that needs sponsorship or help?    · Posted by u/armini
aisamu · 3 years ago
Magit, the wonderful git porcelain for emacs.

Details here: https://www.reddit.com/r/emacs/comments/11cezoq/magit_mainta...

Direct donation link: https://magit.vc/donate/

aisamu commented on New(ish) command line tools   jvns.ca/blog/2022/04/12/a... · Posted by u/grappler
omair_inam · 4 years ago
My personal go-to for intelligently tailing files is lnav (https://github.com/tstack/lnav) tho it has crashed a couple of times for me when applying a bunch of filters, etc.

Is anyone aware of any other comparable shell tool for tailing a set of logs?

aisamu · 4 years ago
+1. I miss it dearly, but unfortunately couldn't make the various AWS log shapes work as nicely as the Java ones did.
aisamu commented on Exa: An alternative to Ls   the.exa.website/introduct... · Posted by u/lordleft
kbd · 4 years ago
The main thing I use Exa for is as a better "tree":

    et() { exa -alT --git -I'.git|node_modules|.mypy_cache|.pytest_cache|.venv' --color=always "$@" | less -R; }
    alias et1='et -L1'
    alias et2='et -L2'
    alias et3='et -L3'
Exa is great for this because it shows file details along with the tree hierarchy.

(I have to manually specify a bunch of git-ignores because Exa's git ignore support doesn't work properly.)

aisamu · 4 years ago
Combine it with fzf and you can choose the depth level dynamically:

  tree: aliased to echo '2\n3\n4\n5' | fzf --preview='exa -l -T -L {} --git-ignore' --reverse --preview-window down:99% --bind 'j:down,k:up,q:cancel,enter:cancel'

aisamu commented on Improving Shell Workflows with Fzf   seb.jambor.dev/posts/impr... · Posted by u/todsacerdoti
jhardy54 · 5 years ago
Alternatively, you can add fzf to the <TAB> menu and have it available anywhere that you have tab-completion: https://github.com/Aloxaf/fzf-tab

(I use this and it works great.)

aisamu · 5 years ago
This is wonderful and works better than what I expected!
aisamu commented on Procrastination is driven by our desire to avoid difficult emotions, says expert   cbc.ca/radio/thesundayedi... · Posted by u/pseudolus
javajosh · 5 years ago
Well, the difficult emotion is often some form of fear. Fear of failing, of making a mistake, in some cases, of making the problem worse. All of these fears are in a fundamental sense legitimate, but the direct solution is, insofar as it is possible, to prepare and practice.

The alternative is to tackle something even harder that includes the thing you want to make as a special case. This is a recent discovery of mine. The pressure of accomplishing the bigger, harder thing can often drive you to simply knock out the smaller thing to get it out of the way, and that's often good enough.

There's an apocryphal story in rabbinical lore about a farmer who's frustrated that his home is so noisy that he can't sleep. The Rabbi sympathizes and tells the farmer to invite another animal into his home night after night. The farmer gets more frantic, angry even that this "solution" isn't working. Then the rabbi tells the farmer to remove all the animals, and the farmer, now in peace and quiet, could fall soundly asleep. The solution above is the same: you don't eliminate the fear, you replace it with a greater fear such that the original fear doesn't seem to matter!

aisamu · 5 years ago
> The alternative is to tackle something even harder that includes the thing you want to make as a special case.

This is the main operating principle of http://www.structuredprocrastination.com

u/aisamu

KarmaCake day16May 10, 2017
About
Multi-hatted functional programmer looking for trouble

Mathematica, Clojure, Mechatronics

View Original