How to fix C# Auto complete in VS Code and Emacs.

24.05.2018 02:00

There are times when the auto complete for C# and .NET Core stops working in editors that use the OmniServer auto complete engine. For me it is Emacs and Visual Studio Code.

Visual Studio Code will give you a hint when it starts, while Emacs will just fail. The problem is that they can’t locate the “dotnet” command. The place you need to start is that you start a Terminal with your shell of choice and make sure that it works there. If it does type “which dotnet” and copy the output.

Then you type sh and enter. Test it there, this is the place where it should fail. There are two ways you can fix it, either by adding the folder where the dotnet binary is located in to the path, or if you are lazy like me by doing something like “ln -s /usr/local/share/dotnet/dotnet /usr/local/bin/dotnet”.

And that should do the trick. As long as you can run the command “dotnet” in sh it should be available anywhere.


23.05.2018 02:00

New camera bag

OmniFocus vs Things

23.05.2018 02:00

The big GTD question on a Mac is Things or OmniFocus?

They are both very good, and I think which one is the right for you depends a lot of your personal preferences. It was a time in the middle where it was a very easy pick because Things used a shit load of time to get their sync act together.

Things is a little bit easier to get started with, while OmniFocus is a power tool. I have used both, multiple times over the years.

Things look a lot better. But it is a little bit too far in the eye candy over usability in some areas. It does for example drive me nuts that it takes noticeable longer to add a task to Things versus OF.

OmniFocus on the other side is a little bit more nerdy, and it takes a while to get into it. But when you do, it is a power users dream. It is awesome.

Python rant.

22.05.2018 02:00

Python is solid language, with a lot of good libraries, framework and a lot of great documentation. This makes it an obvious choice for a number of things, everything from command line programs to Web Development because of stuff like Flask, Django and Jinja.

But there are a number of problems with the language that makes it a poor fit for larger things, even with the addition of type hints. Because Python is a language where developer productivity is very important. But you have almost no validation of the code before loading it into the runtime. Like types and pre flight checks. This means that you need to write way more unit and integration tests than you would with a typed language.

I’m probably going to continue with Python for some stuff, because it is so easy. But I’m not going to write any work stuff in it. Because of types, and because Python almost makes it a priority to make sure it is impossible to follow functional programming concepts.

The reason I often go with Django for a little bit larger stuff at home is that it is so easy to put together some models, add unit testing to them and get something that works. And flask is perfect for some small api’s. But I think Clojure is the future for my Projects.

Bye Facebook

21.05.2018 02:00

The 29th of March was the day I finally did something I should have done a long time ago.

I deleted my Instagram accounts and my Facebook account.

The only thing I used Facebook for was to chat with a handful of people, and I just moved those conversations over to other venues like SMS, Keybase and E-mail.

It will be long go by the time I publish this, and it feels great. To delete it might not be much, but it is the most drastic thing I can do to show Facebook that I do not like what they are doing. And it is not just the recent scandals. Google and Facebook does a lot of the same stuff. But they seem to be better about not crossing the line and surprising us as much. And you can use them without having an account.

Goodbye DayOne

21.05.2018 02:00

I finally moved the rest of my stuff out of Day One. It’s a great app, but not for me anymore.

If others like me would like to do so, but want to maintain the creation date as exif data in the image, you can use this python script.

Dont use Git like a glorified Dropbox

18.05.2018 02:00

We have probably all done it a few times or a few times a day. Taken all the changes that aren’t committed and given it the message “Stuff” and pushed it. But what is the point with a source code management if you just use it as a glorified Dropbox?

I have a few rules I try to follow in order to avoid it:

  • Only one change per commit; if you changed a bug and refactored it because it was a mess, then it should be two commits.
  • Every commit should leave the repo in a working order
  • Use proper commit messages, that explain what you did

The idea is to select what files should be included in the commit manually, and not just take everything; and then to the same for the lines in the diff.


17.05.2018 02:00

Okay. I have tried a few times to go back to twitter and to follow a few people I miss here on Micro.blog. But I can’t stand it. I’m not sure what it is. But it feels so toxic. I’m not sure what it is.


17.05.2018 02:00

I think my neighbors are judging me for not bothering to putting on a suit for 17th of May.


17.05.2018 02:00

It should be illegal to put “chilli” on something if it isn’t even a little bit spicy 😫😤🙄