Hjertnes.blog

Back to Spacemacs.

August 06, 2018

I have gone full circle, first Spacemacs, then Doom and finally my own thingø before I went back to Spacemacs.

It was a lot of fun, and I got a lot out of it.

Te mai nreason I went back is that Spacemacs have a lot of really nice tiny details that would be really hard to re+implement by myself. And they have improved some of the problems I had with it since I left.

For example start time is a lot better.

#

August 04, 2018

Text Expander and Emacs doesn’t play that nice together out of the box, because of keyboard input related reasons. The snippet below makes a lot nicer. Not perfect, but better.

Cloud standards

August 03, 2018

I have never written anything of substance for any of the server-less stuff that amazon or microsoft are doing. Or I have used some of the services here and there, but I have never gone “all the way”.

One of the reasons I have never gone in on any of them is that all the stuff are proprietary. If I want to move I have to re-write a significant amount of code. And it also requires a lot of manual configuration for it to work.

What I would like to see is standards. Or at least a standard compliant way to use them. Because a lot of the features exist across the various services; old shit, new wrapping.

I don’t care that much about how, but what I want is some kind of configuration or manifest file plus some code that I can deploy.

Just to tell it what kind of services I need, how I want them to be configured etc.

And if I want to change from Amazon to Microsoft it would just be to update DNS and upload the shit.

Also, if this was done, it would also be possible to run your own version of it, and get some real developer environments locally.

#

August 02, 2018

I finally got arround to ordering a Nintendo Switch about a week ago, and it is awesome. This is the first modern “handheld” Nintendo device I have used that feel modern, both in terms of design and graphics. It is great, but it feels more like an “iPad” than an “iPhone”, unlike the Nintendo 3DS. And I think I would have preffered something a tiny bit smaller, because I mostly use it as a handheld device while communting etc.

Clojure needs its Django / Rails moment.

August 01, 2018

I’m not a huge fan of Django and Rails, I don’t think they are bad either, the languages they use are not a good fit for how I think any more. I also think they have not managed to integrate the whole web app moment in as well as they should.

But that is a blog post for another time.

Both frameworks are very important in the history of web development because they managed to turn a lot of difficult or complicated topics in a way that was very easy to deal with, in a way that felt very native to their respective programming languages.

Having a proper way to deal with databases, database schema changes, login, and solid implementations of the MVC.

The Clojure world might not be into the idea of frameworks, but neither was the Python world. Most of it outside Django are more about putting together various different libraries with your own code to get what Django would give you out of the box.

A bare minimum solution of what Clojure would need is:

  • A solid way to write API’ and the controller side of a server side rendered web page
  • A way to define how the database looks in code
  • A way to query the database you modelled in code.
  • A template language
  • A middleware system (to make it easy to make reusable component to deal with common stuff)
  • A login system that just works without any config, that you can configure if you need to.

And all of this have to feel natural for a Clojure programmer.

Having all the lenses I need.

July 31, 2018

Less than a year after I got this camera, I finally have all the stuff I “need”. While there are still some stuff that I would like to have in addition to what I have, I now feel like I have everything I need.

It would be nice to have a zoom, or to have something wider than a 23, and something longer than 50. But still, if I bring my X-Pro and three primes + plus my Fish eye I have all I need: really fucking wide, kind of wide, normal and kind of long. And my favourite thing about the lenses (except the fish eye) is that they are all usable as my only lens, even though they may not always be the ideal.

I don’t want to add any huge lenses to my kit, because I know myself well enough to say that I would not bring them with me much, if at all. But I would totally love it if Fuji came out with a 16mm f2 and a fast and compact prime between 70-90mm.

Here is the thing, I bring my cameras everywhere. My X-Pro 2 is on my laptop bag with some kind of lens every single day I go to work. And I have a dog. Having a huge lens on my camera would mean that I did not bring it as often with me to work, if at all. And having someting so big that I could not shoot one handed would mean that I could not use that combo when I walk my dog. Shooting while talking the dog is a large portion of my shooting.

When I don’t shoot while walking my dog, I do street shooting or shoot while I hang out with my girlfriend, and in either situation I want as little attention as possible. And walking around with a huge lens brings a lot of attention.

Like I have written many times before: I want the fastest lens I can get that is still light and has fast auto focus. You might not need fast auto focus or light, and should make your own choices based on what your needs are. # Burst shooting on the X-Pro 2.

I’m a burst shooter, and I have been for as long as I can remember.

That doesn’t mean I end up with 70 pictures of every “scene” I shoot. That could be the case if you use the fastest burst mode on the X-Pro 2. Instead I use the slower one. And that works exactly how I want it to be. It is slow enough to control exactly how many frames you want. The problem with some of the faster burst mode is that you get at least three or four frames before you get a chance to lift your finger.

I always shoot more than one image of each thing, because I hate not having something usable. And using a burst mode just makes it easier. My current fear is that the burst modes will become so fast that they aren’t really useful for how I like to use them. Because I’d hate to have to go through like 15 pictures instead of four.