hjertnes.blog

How homebrew is better than most package managers

10.05.2018 02:00

Homebrew is an awesome package manager for Mac OS X. And there is one thing about it that makes it a lot better than most. I deal with what most people expect a package manager to do. Like dependencies and updates etc. But my favourite thing about Homebrew is that all packages are installed isolated from everything else. That means that you can have every version of Python that runs on your operating system installed side by side or both Mono and Chicken scheme installed on the same system(both of them have a command called csi).

The way it works is that you can have all of them installed, and then chose which version you want to “link”. In other works is that everything is installed in “/usr/local/Cellar/PACKAGE_NAME/VERSION” and then if you want to link python 3.6.2 to the python command you can link that to /usr/local/bin/python by using “brew link”.

This is very powerful, because package manager like Pacman (on Arch Linux) will not let you install multiple packages that have the same command.

Awesome and surprisingly powerful package manager.

#

09.05.2018 02:00

Upgraded my Thinkpad today; larger SSD and 16GB of memory. I’m going to experiment more with using it for work this spring / summer.

The process went much faster than I expected because of some dd and file system resizing magic.

Also: got a new ink today.

#

09.05.2018 02:00

I’m probably a little bit late to this but I do not get Gnome3.

#

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.

Ink Review: Diamine Saphire Blue

07.05.2018 02:00

I got this ink from Tudos for the purpose of reviewing it, free of charge.

I just inked all of my pens in rotation up with this ink. And it behaves like the other two Diamine inks I have used in the past. It dries a little bit slower than Iroshizuku inks, but not too bad. And the flow is a little bit slower than Iroshizuku. But not that bad in the scheme of things.

This ink has a lovely light blue colour. It kind of reminds me of the standard blue colour you get with all Pilot fountain opens. But better than that in all ways. Because like everyone who reads this site knows: I can’t stand that colour. It looks

If lighter colours are your thing I would recommend this ink. It is not something I would buy, because I do in general prefer darker colours.

The Diamine inks are great, they have some very interesting colours, and is a great option if you are willing to sacrifice a little bit on inflow and dry time for great colours.