hjertnes.blog

#

09.05.2018 02:00

I’m starting to feel the itch to read philosophy again

Going back to 1Password

09.05.2018 02:00

I have pass a real shot, because I thought the idea behind it was interesting: a command line program that is a front end to a folder of GPG encrypted files. But I have gone back to 1Password because I felt like it was a little bit too much friction. And my experience is that password manager is an area where you want to workflows to be as easy as possible to make sure that you actually use it.

The problem with pass was not the app itself, or the iOS app, both of them was good enough. But the browser extensions was very unstable. I’ll probably check it out again in the future though. fi

The Python 2 to 3 transition.

08.05.2018 02:00

The process of going from Python 2 to 3 have taken forever. It seems like Python 3 finally is the standard now. But it was not until the latest version of Django where Python 2 was deprecated. There are many different reasons for it. But it has taken way too long.

Part of the reason it has taken such a long time was that Python 2 continued to be supported alongside with Python 3, and the end of life for Python 2.7 will be in 2020. My view is that this have taken much longer than needed because of the Python 2.7 version continued to be a up to date version of Python for as long as I did. This have meant that developers of libraries and frameworks postponed adding support, and users postponed starting to use it because none of their libraries supported it.

I get why they continued to support the 2.x branch, but I think it would have been a much faster transition if it was a little bit more forced.

#

07.05.2018 02:00

The memory upgrade and new SSD for my Thinkpad arrive tomorrow 😬

#

07.05.2018 02:00

How to optimise.

07.05.2018 02:00

The basic idea behind making something fast is to take what your program does now, and then figure out the easiest way for you computer to get there. Or the way I usually say it: how do we do X by doing the least?

There are stuff that will always be slow like network operation, file system operations and input / output. For example only committing updates to the database when you have to is one way to optimise. Another is to figure out if you can run parts or all of it in parallel. And do it.

But the most important thing is that you use a profiler or a debugger to identify what parts are taking up the time and then try to make them faster. The way I usually deal with optimising is that I only start doing it after the functionality is done. And then you optimise by shaving off a second here and there in the beginning until it’s fast enough.

In some cases, though, where it being more important to be fast than everything else, you make it a policy to never commit changes before they don’t make anything slower. Like the Safari team have.

#

04.05.2018 02:00

@hjertnes You don’t have a freaking drivers license and you’re listening to a trucking podcast?!?

AIrPods First Impressions

04.05.2018 02:00

I write this around 24 hours after I got them.

The AirPods are the perfect Apple Product. You just unpack them open the lid next to your iPhone, tap connect and put them in and start listening to Motorhead. They sound great, don’t fall out of your ears and just work. Some in ear plugs are not comfortable to use hours after hours, these are. They also strike the perfect balance in many ways, the battery life are not the best, but you just stick them in the case for a while and you have more battery life.

There are some stuff I don’t like about them though. It seems like the case will get really dirty very fast. And I wish it was easier to see the battery status of everything on my iPhone.

And I want to buy the person who came up with “AirPods” and “EarPods” a beer.

Travel mugs

04.05.2018 02:00

I’m a travel mug person. They have been a regular part of the stuff I bring with me outside the house for a very long time. The reason is that I like to drink coffee on my way to work. No matter if it is five minutes or 30.

My view is that most if not all travel mugs suck. You have those that are built well and then you have the rest. Those who are built well are expensive, but they don’t leak or anything like that. But they don’t last forever. The way most of the good ones work is that they try to make sure that the temperature of the coffee remains as close to what it was when you put it into the cup as long as possible.

I’m not a huge fan of steaming hot coffee. I like the cold enough to drink it without having to worry too much about burning my lips off. The way I solve this is by putting a few ice cubes in my cup after brewing pour over straight into my travel mug.

Then you have the lid. I don’t think the lid problem have been solved yet. Because it so easy to burn yourself if the coffee in your mug is too hot. The reason is that the angle your are pouring versus how much coffee are coming is off compared to a regular cup or a mug. The typical: nothin nothing and then way too much. What I would love to see, even though I have no idea how it would work, is a dual compartment cup, one upper compartment where you could leave some coffee to cool off and then drink it. Again no idea how it would work.

I use a Contigo mug at the moment. It uses a auto seal system, where you have to press while drinking. It work well enough. But you need to make sure to cool the coffee off in advance. I’ll probably get another one the next time I’m buying a mug. Most good travel mugs either come as one you need to open and close or some kind of “press to unlock” system. I prefer the latter.

#

03.05.2018 02:00

This looks really interesting: Bitwarden