Hjertnes.blog

#

September 05, 2018

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

Documenting Architecture Decisions Relevance]]

Fuji Lens Setup

September 05, 2018

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

September 04, 2018

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.

September 03, 2018

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)

Running your own git server.

September 02, 2018

To run your own git server is very easy, and it doesn’t require any extra software. If you want something a little bit more fancy like a web interface or collaboration you will need more setup. But when you just need a second location for all your private projects you just need a machine with SSH.

A git repo can exist in two different variants, either as a full repo or as a so called bare repo. A bare repo is the repo without a working copy.

The way I host my own git repos is that I have a folder called GIT in my home directory on my Linode. In there I have all my private repos. You just use the —bare parameter when you create them, and use user@hostname:/home/user/GIT/name to clone them.

I think it works great for all of the repos that you don’t work with others on, and just want to have somewhere remote.

Inside

August 31, 2018

I first played this game on iOS, then I bought it again when I got my Switch.

It is beautiful and great. It is kind of a side scroller meats puzzle game. There are probably a whole category for it that I don’t know the name for.

This is not an easy game, and it is great, but a little bit more on the frustrating side than I prefer.