hjertnes.blog

#

05.09.2018 18:06

Liked: plop - npm

#

05.09.2018 18:05

Liked: redux-api-middleware - npm

#

05.09.2018 18:05

Liked: My blog is a mess and I’m fine with that – Jack Baty

#

05.09.2018 18:04

Liked: object-path - npm

#

05.09.2018 18:04

Liked: npryce/adr-tools: Command-line tools for working with Architecture Decision Records

#

05.09.2018 18:04

Liked: [[http://thinkrelevance.com/blog/2011/11/15/documenting-architecture-decisions][Blog

Documenting Architecture Decisions Relevance]]

#

05.09.2018 18:03

Liked: caisah/emacs.dz: Awesome emacs config files

Fuji Lens Setup

05.09.2018 10:00

-8mm For when I want to capture it all -23mm For snapshots and landscapes -35mm More or less the same as the 23, only that I want a little bit more control of bokeh or what is in the frame -50mm For portraits.

I love my lenses, and the output I get from them. But I think I want to get a zoom, especially for traveling. The problem is that zooms are kind of heavy, but it is a pain to change primes a lot.

So, I guess I will get one. The one I like the best of the for sale lenses for Fuji is the 18-135mm.

Morning charging ritual.

04.09.2018 10:00

Batteries are a pain in the ass. And I am getting kind of sick of them. Every morning when I get into the office I plug in my iPhone and my Apple Watch, then I start to charge the right AirPod, then the left. Before I then charge the case once my iPhone is close to a 100% charge. And then you have my Laptop and my Switch.

When that is charged I re plug my iPhone and leave it there for as much of the day as possible.

I think all of this charging crap have to be improved in some way sooner rather than later. Battery life in general should be improved, but I doubt that will happen. But what I hope will happen is that the time it takes to charge stuff will become much faster, and that it is easier and cheaper to use stuff like contact charging.

I’d love to have some kind of surface on my whole desk that could charge at least all the portable stuff. Either that or some modular docking systems that can be customized for what every you need.

Pedestal development using emacs.

03.09.2018 10:00

Pedestal is my current favourite backend development library for Clojure. I find it a lot cleaner than Ring for various reasons that I’m going to get into in a future blog post.

This is how I do pedastal development: I start my dev eniornment, usually IntelliJ+Cursive or Emacs+Cider; because VSCode doesn’t have any good plugins yet.

Then I run (def serv (run-dev)) in the repl and you have a running dev server. Then the repl should pick up on file changes, but it does not work that well with all editors. Or that is at least my personal experience. Seems like some editors don’t send the proper notifications or something.

Anyways, when I launch the repl in iTerm and edit with VS Code updates are detected without me doing anything. But, if you use emacs or Cursive you need to tell the editor to evaluate the file you are editing before you see the changes. In Cusrive it is CMD SHift H, and it is M-x cider-load-buffer and the changes should show up more or less immediatly.

If you want the full story, you have to run cider-jack-in to start the repl, and then cider-switch-to-repl-buffer to get the buffer and then I run (def serv (run-dev)), and cider-load-buffer each time something changes (full: cider-jack-in, cider-switch-to-repl-buffer, cider-load-buffer)