Today I Learned #3: Solving Comeonin problems on Windows!

Hello there!

I did some Elixir tutorial back in the day and there was a need for Comeonin lib. It’s used for hashing passwords, so you store them securely. I had enormous problems with mix deps.compile because of it.

Here’s what you do if you stumble with deps error

  1. The long way:
    1. Open cmd
    2. Go to Program Files (x86)\Microsoft Visual Studio 14.0\VC
    3. Type vcvarsall.bat amd64
    4. !important! using THE SAME cmd window go to you project
    5. Compile – you have to redo all the steps everytime 🙁
  2. Easy way:
    1. Use Pbkdf2 algorithm. It needs no C compiler 😀

And I used the second way while developing something mine. Works like a charm. As for me algorithm didn’t really matter (each own has it’s own pros and cons) I went with the least problematic one.

PS: What’s funny for some there’s no need for being in the same console/repeating those steps, but I wasn’t that lucky 🙁

Today I Learned #2

While a back ago I did a little test. I read the Deliberate Vim book, did the exercises and decided to go full Vim. So I installed ViEmu to my VisualStudio 2015. Aaaand had a few struggles. Some shortcuts conflicts that I had to solve manually and still it wasn’t so convenient to use.

I ended up skipping ViEmu for VS2017. But it didn’t last for long – one day I noticed I’m really used to some of the Vim commands and it’s more difficult to work now without them. So I did some research, and got a great recipe!

If you have anything keyboard-changing installed already (like Resharper) – reset all shortcuts to default – so you get only VisualStudio’s default key bindings. After that install ViEmu and let it take all the shortcuts it needs. Finally, install Resharper/apply Resharper scheme. Those are the steps that will provide minimal friction while working with Vim in VS.


Bonus round: For VisualStudio Code – just install a plugin, it works great!