Hjertnes.blog

Instapaper likes

What's in my small bag

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

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

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

Emacs, flycheck and eslint

The first thing I did was to disable eshint and standard.

Then make sure you have a .eslintrc or .eslintrc.js file in your repo; one of them is sufficient.

The next step is to install eslint and all your plugins, configs etc globally (yarn global add or npm i -g). There are ways to get it to work with per project installs, but this is way easier.

Then make sure eslint works. just run eslint –print-config . until it prints the config.
Then run M-x flycheck-validate-setup (double check this command) and make sure it work, and restart emacs. And that should be it.

Likes from my Instapaper

A while since last time, I wanted to automate this process a little bit. Then I didn’t hear back from Instapaper about a API token and I went for a less ideal solution. It is a lot better though. Long story short, I wrote a node script that parses a exported csv files. I’ll probably get it up on Github soon, I just need to clean it up. And I’ll probably get back to doing this weekly now that it takes much closer to a few minutes, than 15.

Assange

  • Julian Assange is a piece of shit.
  • He has not been convicted of anything except “failure to surrender to the court”
  • I have no opinion about what WikiLeaks do today, but I was and still am a big supported of what they did back in 2010
  • Extraditation is a legal concept I have a lot of problems with, and is just a giant mess.
  • Especially when a country you’re not a citizen of or wasn’t in when the ‘crime’ occoured.
  • I get that Ecuador had problems with his behaviour, but anyone would get crazy by basically being in house arrest for close to 7 years.

Micro arcitecture

When I say micro arcitectures I mean everything from micro frontends, to services and packages. This means that instead of having a utilities package and a ui-compontents package you may have 10-100 of smalelr packages instead of one large.

Or that you build a smaller app that may contain maybe 20 smaller apps instead of one huge.

There are reasons for this. But it is not because it gives you better performance or because it is easier. It is not.

When you break things up, you do this because you want to update things idenpenent of each other.

If you can push out an update to the login page when it is ready, and then you move over to the registration page and so on.

And on the packages side, you do it to have more flexibility. Let’s say there is a bug in the button package in the latest version. But all the others works fine. If you had a monopackage structure you’d have to wait. But with a micro package system you could just update everything except that.

But there are some things you need to remember if you are looking at this. This is for situations where you are a lot of developers, where build times are limiting how often you can relase. Or that things are so big that it is a real pain to deal with.

I have gone back and forth on this a lot. If smaller companies should do it at all. And I think it depends.

I think everyone should get into and get setup to build smaller packages, and to make smaller components that can be shipped independent of each other sooner than later.
And then unless you are really big I’d start thinking about spinning off everything that feels like it is really different from the rest as its own thing.

What I use Emacs for

This is a short list of the stuff I use Emacs for.

  • General text editing and notetaking
  • All my blog posts are written in Markdown using Emacs
  • Notes are written as text files
  • Programming in JavaScript, React, C#, ClojureScript, Cucumber tests, Bash scripts, PowerShell scripts and probably a lot more.

24 bottle

I’ve had a problem with not drinking enough water for a while now. Probably over a year. The issue have been that the water gets how, and then I had the feeling that I just refilled it, and I dont’ do it and five hours later I have still just had two mouthfulls of water.

Then I started to research water bottles that keeps it cold. And after a lot of time I spend a ridicolus amount of money ordering a 24Bottle from Italy.

They are the kind of company I love, that want to make the one bottle you ever have to buy. There are two different models, one double walled that keeps your water cold for 24 hours and one single walled. I went for the first option. I also went for a 850ML bottle. It is big, like a bottle of wine. But I like it a lot. I can fill it when I get up in the morning, drink cold water until it is empty. Usually a while before lunch. Then refill it and it usually last me until I get home from work.

The build quality is solid, and I like it a lot.

If you are looking for a good bottle, with a lot of design options I’d take a look at them.

Star systems

If you want to have some kind of rating, stars are probably the kind of thing you’d start with.

I’m going to do the examples with movies.

I think there are two good ways to do this. Either by using a three star system plus the option to order the items within the top rating. That means that 1 star = did not like it, 2 = fine, 3 = i liked it. And then you can decide if you liked Rockey 1 better than China Town. I didn’t by the way.

The second option is to go with five stars. I don;t think most people understand how this one works. Because I guess most people have a lot with three stars, and a lot with 1 and a lot with 5. This is how I think it should be used: 1=don’t watch this, 2 = didn’t like it, 3 = fine, 4 = great, 5 = one of the best movies ever.

Headphone setup

I have two pairs of headphones. One of them have a cable and hare big, while the others are wireless plugs that are very compact.

When I go somewhere I usually end up bringing both. They are my Apple AirPds and my ATH-M50x.

The AirPods are great, for what they are. And they are the best bluetooth sound thing I have ever used, from a UX perspective. The batteries are becoming worse, but still pretty good within the constraints.

While the M50x is what I prefer to use, because it is really comfortable, shuts out everything, and sounds way better. I love this pair of headphones because how much you get for how little money. The retail is $130, but you can find them at $100 if you have some time.

The way I do it is that when I walk around the house, walk the dog or walk from or to the train station I use the AirPods because then I need to be aware what’s hapening around me.

But everywhere else I use the M50x. I don’t want a Bluetooth version of them, but what I miss is a Lightning version of their cable.

Shells in 2019: Fish.

I have use bash a lot, zsh more and fish some. There have been multiple stints where I have been trying to get into fish. But this time I think it will stick.

The reason is that with version 3 they added support for some syntax that is very common in most shells || and &&. The latter is very useful when you want to run commandA and commandB, but only run B if A is successful.
Fish is a very modern take on the shell. It is not that new, but much newer than anything else.

My impresson is that both the user experience and the shell as a config and scripting langauage is modern, and most of the weird stuff from ZSH and BASH is gone.

This means that it is not compatible with POSIX where it would make it harder to use.

I like it a lot, like I always have. And I do think it will stick this time.

My morning rituals

I get up really fucking early. The reasons are simple, I prefer not being in a hurry, I prefer being early at work because then I can leave early and get some shit done before people show up.

So my ritual is to get up between 0415 and 0425; usually closes to the latter. Then I put on some podcast or audiobook, get into the bathroom and get ready. Get back to our bedroom, put on some clothes and go downstairs with Luna.

I quickly start the coffee maker that I always prefer before going to bed and then I take her out and bring her on a short walk. Usually being back when the coffee maker is done.

Then I bring her up to Ingri. Before I fill my travel mug with coffee and a large mug. Take both into the living room where I start to pack up my bag, except that I review my Bullet Journal while I drink coffee. Then at 0515 I go upstairs and say goodbye to both. Get down pack the rest of my crap and walk down to the train.

I’m usually there about 0535. Giving me time to complete almost three French lessons in Duolingo before sitting down at the train.

Then I usually exchange by Airpods for my ATX headphones.

The rest is a 40 minute train ride and a 20ish busride. I do not mind it at all, the time flies fast as I listen to music, podcasts, audiobooks; or read in Instapaper or on my Kindle; watch stuff I have stored offline from Netflix or Plex; or I play my Switch.

I really miss my Mac at work

My setup at work is a fairly good HP laptop running Windows 10. With a lot of junk installed on it, because, enterprice crap.

Some of my issues are that stuff, but that is not the main thing. I really miss my Mac.
The reason is simple, I prefer how a Mac works, and the native UNIX system. It would not work at my current job, because of how stuff are set up. But I know that I’d be much more faster in general, if I typed in Emacs and iTerm2 on a Mac, than in Emacs and Powershell on my Windows thing.

I have spent six months trying to like it, and I just hate it. I hate how Window management is, how horrible everything looks. How much crap can’t be configured.

I love using my Mac, and I tolerate my Windows machine.

Netflix Originals

I love Netflix, not because their content is the best ever. It’s not, what they do is not like HBO who always want to make the stuff that everyone have seen like HBO or Sons of Anarchy. Some of their shit is not in the top tier, but most of their stuff is there or almost in the top.

The thing I like a lot about Netflix is that they just want to make stuff that make their investment make sense.

Like everyone else, they know that it is really expensive to comete with HBO. So instead they play a different games.

A lof of my favourite stuff each year come out of Netflix, but most people would probably hate it. But I like it a lot.

And that is a interesting point. Because you can still make something very interesting from niches.

In the world of streaming most of the incentives that have been driving TV up to this point are turned on their head.

If you have the money, and the ability to make sure it pays off, there are no limits to how many shows you can produce per year.

In the old world of TV, ther were some limits, like the times when people actually watch TV and the number of channels you had.
Your main goal in a streaming world is to keep people subscribed, while your main goal in the TV world would be to make sure it made sense to have you in their cabel packages.

Links of the week

New photography workflow one week later

The process of getting rid of Lightroom from my photography workflow started a week ago, and today I imported and processed my first round of images using the new workflow end to end. I could not be happier. The photos looks great, and it was really qucik. I just copied both SD cards into my Mac while reading some e-mail. Then I started the import of the JPEG’s to photos and by the time I had walked Luna and done some yoga I could process them on the phone.

My photopraphy process for as long as I have owned a camera that can shoot raw files have been to shoot raw, and then import it into Lightroom. Then waiting for it to do its thing before processing them. And then export it into Photos or Dropbox back in the day.

The problem with this workflow is that it only really works on my Mac. And all of it is slow. Also: I never have the time to do anything that justifies dealing with raw files.

So my solution now is to shoot JPEG+RAW on my Fuji. JPEG’s on one card and raw on the other. I keep the raw files just in case, and then I import the JPEG’s as is into Photos.

I love this process this far because:

  • It’s fun and easy
  • Really fast
  • And I kind of prefer the look of Fuji’s film simulations to what I have ever managed to get out of Lightroom.

I'm replacing Lightroom with out of Camera JPEG's

What started as a exploration into alternatives to Lightroom ended in a place I did not expect. I checked out Luminar and Capture One. Capture One wasn’t really for me, and Luminar is impressive, but the app itself is worse than CC. I enjoy what both Lightroom CC and Luminar can do with their AI technology in terms of tuning the image into something a lot better than the out of camera RAW file. But the apps are horrible. I have given CC close to two years, and I’ve had enough.

The thing I have decided to do is to shoot JPEG+RAW. Store the RAW’s for later, if I need or want to. And just put the JPEG’s into Photos. I’m not going to touch the RAW’s; except for when I want to change film simulations, and then I’ll use the Fuji RAW Studio.

What I have done this weekend is to export all my RAW files out of Lightroom, export all my JPEG’s out of Lightroom (I’m about 50% done with that), then I’ll delete my library and delete all the Adobe apps from my stuff and cancel my account.

How I use the Neo 2

I have written about this thing a few times over the half ish year I have owned it.

The way I use my Alpha Smart Neo2, is that I leave it in the living room. And when I feel like writing and is not in my office I just turn it on and start writing.

I just write in file 1 until it’s full, then I move over to the next one and so on. And I try to tranfer stuff into my Mac at least once a week.

My system is that I just place a markdown “h1” and a title, and that marks a new “document”.

I use it for all kinds of stuff, everything from planning to regular notes and drafts for blog posts. And like I have written about before, everything that started out on paper first gets transcribed into this bad boy.

I really like it because it is a thing that does one thing really well, kind of like my Kindle. I take my Neo if I want to type something out and I take my Kindle if I want to read.