Hjertnes.blog

#

January 28, 2018

One of my goals in 2018 is to ship a iOS app

#

January 28, 2018

Love this line from a GitHub profile bio “Proud owner of 50 terrible public repos.” Share your crappy code. Someone might love it.

#

January 27, 2018

<a href='https://hjertnes.blog/fcd72e7b75d54084ac07e3bfb9a16219-jpg/'><img class="img-fluid" width="150" height="100" img src="/fcd72e7b75d54084ac07e3bfb9a16219.jpg" class="attachment-thumbnail size-thumbnail" alt="" /></a>

A new picture of an old friend.

#

January 26, 2018

Found out that I added a former incarnation of my blog in DayOne. Wrote a small python script and imported it into the Hjertnes.blog WordPress install.

Superstruct

January 26, 2018

I stumbled upon this GitHub project a few days ago. It’s called Superstruct, and it looks like an awesome way to validate data in Javascript.

Let me explain. You probably want to make sure that you get the kind of data you expect as input in Javascript, either from your backend API or validating the data that comes as body in your API. But doing so by hand can be very cumbersome. And I thought adding something like TypeScript is a little bit heavy handed.

Superstruct is a simple but compassable way to validate some object, you can add simple values or more complex validation code. And it throws and error if there is any issues with the data.

#

January 26, 2018

@eli how did it go with Spacemacs?

Future MacBook Pro

January 26, 2018

I don’t think it’s a huge secret that I’m not the biggest fan of the current incarnation of the MacBook Pro. But there are also stuff I love about it.

Let’s begin with what I don’t like:

  • Keyboard. I don’t care if they make the kind of keyboard I prefer. But I do want a keyboard I know will work reliably all the time. All my MacBooks up until this one have given me that. Apple got to either fix their current keyboard, or go back to the old one and make sure that they are reliable.

  • SD slot. This is not a must. But my life and the life of everyone that owns some kind of camera would be better if it was built into the machine.

What I like:

  • USB-C. I love that thing. I can use the same brick to charge my iPhone and my Mac. And I can also get power over the same cable I use to connect an external screen to my Mac. (I use the LG 27″ USB-C screen; I have one at home and one at the office).

  • Screen. It’s awesome.

  • Function key row versus Touch Bar. This should not be a separate model, but rather an option.

#

January 25, 2018

2017-12-11

<a href='https://hjertnes.blog/c9656978e74846dd94b8cbb629db7d46-jpg/'><img class="img-fluid" width="113" height="150" img src="/c9656978e74846dd94b8cbb629db7d46.jpg" class="attachment-thumbnail size-thumbnail" alt="" /></a>

Grainy as fuck, but a great black and white film.

2017-12-31

<a href='https://hjertnes.blog/cb519301f38c4051b85a4b124fde00ac-jpg/'><img class="img-fluid" width="113" height="150" img src="/cb519301f38c4051b85a4b124fde00ac.jpg" class="attachment-thumbnail size-thumbnail" alt="" /></a>

My analog kit. Nikon FM and Series E 50mm f/1.8