HNHacker News
TopNewBestAskShowJobs

aisamu

16 karma · joined May 10, 2017

Multi-hatted functional programmer looking for trouble

Mathematica, Clojure, Mechatronics

submissionscomments
aisamu··on Triforce – a beamformer for Apple Silicon laptops
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··on Archival Storage
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··on Yadm: Yet Another Dotfiles Manager
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··on Going declarative on macOS with Nix and Nix-Darwin
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··on Ask HN: Who's an open source maintainer/project that needs sponsorship or help?
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··on New(ish) command line tools
+1. I miss it dearly, but unfortunately couldn't make the various AWS log shapes work as nicely as the Java ones did.
aisamu··on Killing the Command message: should we use Events or Documents? (2007)
This one has all the diagrams, thank you!
aisamu··on Exa: An alternative to Ls
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··on Improving Shell Workflows with Fzf
This is wonderful and works better than what I expected!
aisamu··on Procrastination is driven by our desire to avoid difficult emotions, says expert
> 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

aisamu··on Is Dark Mode Such a Good Idea?
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.

aisamu··on Electronic Circuit Simulator in the Browser
If that's also true for brand-new users, the username is the same!
aisamu··on Juniors Literally Can't Write Switch Statements: What Sr. Devs Need to Focus On
The JS one doesn't work at all[1] - the cases are Strings, the input is a number.

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

aisamu··on Ask HN: How technically hard was it for Twitter to move to 280 chars?
I think the chart you mention is from Twitter's blog:

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

aisamu··on Ask HN: Who's using Clojure, and to do what?
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).