Better HN
topnewbestaskshowjobs
Log inSign up

aisamu

16 karma · joined May 10, 2017 (9y ago) · 15 submissions

Multi-hatted functional programmer looking for trouble

Mathematica, Clojure, Mechatronics

Submissions

comment 1y ago · link · parent

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()

comment 1y ago · link · parent

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

comment 1y ago · link · parent

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

comment 2y ago · link · parent

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...

comment 3y ago · link · parent

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/

comment 4y ago · link · parent

+1. I miss it dearly, but unfortunately couldn't make the various AWS log shapes work as nicely as the Java ones did.

comment 4y ago · link · parent

This one has all the diagrams, thank you!

comment 5y ago · link · parent

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'

comment 5y ago · link · parent

This is wonderful and works better than what I expected!

comment 6y ago · link · parent

> 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

comment 6y ago · link · parent

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.

comment 8y ago · link · parent

If that's also true for brand-new users, the username is the same!

comment 9y ago · link · parent

The JS one doesn't work at all[1] - the cases are Strings, the input is a number.

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

comment 9y ago · link · parent

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

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

comment 9y ago · link · parent

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).