09.05.2019 21:08

One of my goals for 2019 is to loose some weight and get into shape. The main thing though is to get something started that will make sure I’ll be healthy in the long run. In other words: I do not care that much how much I loose this month, next month or this year even. But rather that it is more of a lifestyle change.

I have been into different kinds of excerise in the past, running, going to a gym, rowing machines, swimming but none of it really worked for me. I’m not sure why. So I decided to see if I could find something different this time. What I landed on was Yoga, because it didn’t require any equiptment or a proper gym. The latter is important because I do not have a huge amount of time for this, and the less time I have to spend getting from and to excerise the better it is. Also: if I can do it inside it is a huge bonus, because then I can’t use the shitty weather as an excuse.

This is something I started in the end of January, and I’m still doing it. What I really enjoy about doing yoga is that it doesn’t feel like I’m really working out, something that is great when you don’t really enjoy most kinds of excerise, and you notice the difference in both strenght and flexibility more or less straight away. I have way less problems with stiff muscles and pain in my back, shoulders etc after I started doing this.

The way I got started was that I searched for Yoga in the app store downloaded the first 30 apps or so. Deleted all the worst ones and continued doing that until I had a small handful of usable ones. None of them are great, but some are usable. The first few weeks I used one called Daily Yoga. It is pretty good, you have you video based guided yoga. It was really helpful in the beginning. But then I felt like I wanted something different, more like “I want to do yoga for 15 minutes tell me what to do”. The only good app I found for doing that is called Pocket Yoga. It is pretty awesome. There are five different options and some options to configuring how long etc. It is great if you want something guided. They also have an companion app for desgining your own sequences.

My feeling is that Yoga is very much about finding what works for you. What I do these days is that I just track it with my Apple Watch and do it unguided. And I use an app called Yoga Studio to look at poses, and I try to remember at least one new one each week.

I also bought some books, they have give me a lot more than any of the apps have. This one is my favourite: Namaslay: Rock Your Yoga Practice. It is fun and awesome.

There are a lot of yoga gear available. I didn’t use any when I started out, and I didn’t really have any until very recently. It is helpful but not neccessary. I bought a starter pack of a mat, two blocks and a strap. It helps, but it is in no may neccessary to buy any before you know if you like it.

Why rolling your own emacs?

05.05.2019 19:28

This might not be for you, but if you’re into being able to configure and make your own text editing environment it might be for you.

Then you have the option of using a starter pack like Doom or building your own. I used to love Spacemacs and Doom until I started to become frustrated by the complexity under the simple configuration system, and the limits of it.

The result was a six month period where I experimented with all kinds of starter packs, my own configuration multiple times before I finally learned enough and found a setup that worked for me.

I do recommend doing your own config and I do recommend learning the default keybindings. But when you do start with no packages except use-package and add stuff as you see a need. And learn to add them using use-package from day one.

On no packages, the fewer packages you add the faster and more stable emacs will be. And emacs makes a lot more sense if you use the default keybindings.

My configuration are used on windows, Mac and Linux. This makes it more complex but only very few configuration items are affected by this. But it makes it more complex.

The way I deal with my configuration is that I have a very low bar for adding new stuff to my configuration, but I also regularly remove everything that doesn’t add real value.

Emacs is a lot less fancy than something like vscode, but also a lot more powerful.

My pile of Instapaper automation hacks

03.05.2019 20:35

I try to automate stuff in my life to remove friction. One of these areas are sharing cool or interesting links I’ve read. The way I do this is that I mark them with a heart in Instapaper, then I copy the links out and post it before I remove the heart and start over. This would be a really simple task to automate through their API, if they’d bother to answer my request for an token.

The result is that I wrote this script. It is on NPM and you can run it with something like npx @hjertnes/likes ./pathToFile.csv. The way it works is that you download a CSV export from Instapaper, point the script at the file and it puts the links as a list of markdown links on your pasteboard. Then I paste it into a markdown file and publish it.

Then I paste this Object.values($(".action_link.star_toggle.starred")).map(x => $.get(x.href).then(y => {})) piece of Javascript in the console in the browser with the Likes section of the Instapaper website open, then I refresh and repeat until it’s empty.

That’s it. All of it would be a hell of a lot faster, cleaner if I got access to a proper API.


03.05.2019 20:17

Write a notefor yourself at the end of the day

28.04.2019 20:02

When I left the startup I was working for and started to have a normal relationship to work, and leave it at the office I started to have a problem with remembering where I left off when I got back to the office.

For a while I continued not doing anything about it, but then it started to become ridicolus spending like 15 minutes trying to figure out what I should be doing. So I added a Due reminder monday to friday to write a note for myself 20 minutes before I leave. Just a few lines to describe what I was doing and what I should get started on next.

It sounds kind of dumb, but have worked great.


28.04.2019 11:45

First new post using Gatsby, I’ll post more about why soon. Anyways. Here is like since last week.

Instapaper likes

21.04.2019 19:44

What's in my small bag

21.04.2019 15:17

I have two bags I use a lot. One of them are the big one I wrote about a few days ago. That is a Fjellreven Foldstack No. 2 that I bring to work every day. My small bag is a Foldstack No. 3. I’ve had it for 4 years or so, and it is the thing I bring when I want to go light, but still want to bring more stuff than I can fit in my pockets. That usually means either when I’m hiking with Luna or going somewhere like to the city or visiting Ingri’s parents.

What I typically bring when I hike is:

  • My X-Pro 2 w/ the 23mm lens
  • Extra batteries
  • My Phone
  • Extra memory cards
  • My water bottle.
  • Bellroy Field Notes Case, plus a pencil and my Ystudio fountain pen

Or when we go somewhere:

  • My X-Pro 2 w/ the 23mm lens
  • The 50mm lens
  • Extra batteries
  • Extra memory cards
  • Phone, wallet, keys, cleaning cloth for my glasses
  • My kindle.
  • A small powerbank.
  • Bellroy Field Notes Case, plus a pencil and my Ystudio fountain pen

The thing I love about this bag is that you can bring a bunch of stuff with you, but not a lot.

Clojure cli and deps.edn

19.04.2019 17:11

When I started to learn Clojure, there was two options: lein and boot. They were kind of the two big options to managing dependencies and building your project. Lein is this huge monolith that includes more or less everything you need and want, but you kind of need to build your project around how it works. And then you have boot that everyone likes better, but most people still use lein because it just works.

Then Cognitect released Deps.edn and the clj / clojure cli stuff. Edn is like JSON but more lispy, and deps.edn is a way you can define three different things: paths, deps and aliases. Paths are where you code is located, deps are your dependencies and aliases are just a way to write aliases for clojure/clj commands per project or globally. Where clj foobar expands to a longer clj command with a lot of options. Kind of similar to what you can do with the scripts stuff in node projects.

The cool thing about deps.edn is that you can add the file to a directory, add a few deps, run clj and it installs them and they are ready to be loaded from the repl. The reason this is interesting is because it only takes care of a few minor parts of what your projects neeed in a way where you can pick other tools to take care of the rest based on what you need. And because both boot and lein have their own ways of dealing with what deps.edn does it will be harder for them to adopt to this.

The way I look at it is that deps.edn provide all the “glue” that ties it all together. And then you just need to add what you need on top if it to get what you need, to build, pack and lint etc.

In my bag

18.04.2019 19:45

I’ve been meaning to post this for a really long time. But every time I’ve gotten to it something new I planned to have in it was on the way to me. This is not just in my bag, but also stuff I have on me, in my pockets etc.

In my pockets / on my person

  • Glasses. Cheap Specsavers storebrand. They basically look like something Elvis Costello would have worn.
  • Apple Watch: Series 4: space gray with a sports loop.
  • Trove Wallet. Red and blue.
  • iPhone 8 Plus, space gray with a popsocket.
  • Keys: just a plain key bring with one of Luna’s old dog tags on it.
  • A piece of cloth to clean my glasses.
  • Bellroy Field Notes case, with Field Notes, some Index Cards and a Golden Bear pencil in the spine
  • A YStudio Fountain pen is always in my pocket.

In my Bag.

  • Misc cables: USB-C to USB-C, USB-A to micro-USB, Lightning USB-C, USB-A Apple Watch charger.
  • Mophie XXL powerbank.
  • Nintendo Switch
  • Kindle Paperwhite 2008.
  • Nock Co Seed A5 case, with a LT1917 Bulletjournal notebook and a Lamy 1.
  • Nock Co Pencil Case with a lot of Golden Bears. I use it to bring sharp pencils to work and bring dull ones back. Usually around 12 in it.
  • Audio-technica ATH-M50x headphones
  • A few Lightning to jack dongles.
  • LT A few lines a day 5 year journal.
  • My work ID/key card, paracetanol, fishermans friends.
  • My 24H Water bottle. Keeps my icewater cold for at least 24 hours.
  • Contigo coffee mug. I’m going to replace this with a more durable one in not too long.