News for hackers. Stuff that matters.

aisamu

Re:Triforce – a beamformer for Apple Silicon laptops on Saturday March 29, 2025 @10:17AM (#43515751)
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()
Re:Archival Storage on Saturday March 29, 2025 @10:01AM (#43515613)
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

Re:Yadm: Yet Another Dotfiles Manager on Friday December 20, 2024 @06:34PM (#42476221)
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
Re:Going declarative on macOS with Nix and Nix-Darwin on Monday January 15, 2024 @03:26PM (#39005624)
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...

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/

Re:New(ish) command line tools on Wednesday April 13, 2022 @10:34AM (#31015126)
+1. I miss it dearly, but unfortunately couldn't make the various AWS log shapes work as nicely as the Java ones did.
This one has all the diagrams, thank you!
Re:Exa: An alternative to Ls on Wednesday October 27, 2021 @08:25PM (#29020841)
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'
Re:Improving Shell Workflows with Fzf on Tuesday March 30, 2021 @05:19PM (#26640697)
This is wonderful and works better than what I expected!
> 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

Re:Is Dark Mode Such a Good Idea? on Friday June 12, 2020 @11:53AM (#23500453)
A simple method that I use to demonstrate that: point a phone's camera at the screen+surroundings.

Then it's easy to adjust the screen's brightness/turn on lights until the screen is not overexposed/the environment is not underexposed.

Re:Electronic Circuit Simulator in the Browser on Wednesday July 25, 2018 @03:48PM (#17612211)
If that's also true for brand-new users, the username is the same!
The JS one doesn't work at all[1] - the cases are Strings, the input is a number.

[1] - tested on Safari, but still...

I think the chart you mention is from Twitter's blog:

https://blog.twitter.com/official/en_us/topics/product/2017/...

Re:Ask HN: Who's using Clojure, and to do what? on Tuesday May 09, 2017 @10:17PM (#14305470)
We're using clojure both for new products and existing java codebases, and we've just introduced clojurescript on a smallish SPA. Mostly health and services sectors.

It's surprisingly boring (in the good sense).