Impression: Steven Soderbergh

I recently discovered Steven Soderbergh, even though I never realised he was the directory of the Oceans Eleven/Twelve/Thirteen movies.

What he won or was nominated for an academy award for wasn’t either of that, but the below video on YouTube gives an interesting perspective on what he’s trying to do with his work and how he finds different angles on telling a story, which was pretty cool to watch:

Continue reading “Impression: Steven Soderbergh”

Quick Tip: Keep ‘Find Next Word’ with Vim Mode

A common annoyance when setting up atom on a new machine is that one of my favourite packages, vim-mode-plus keeps overriding a native setting, that I want to use. The nice select the next occurence of this word or variable feature is overridden by vim-mode-plus:scroll-half-screen-down, which honestly isn’t that useful at all.

All you need to do to revert the plugin from occupying a key binding is to open your keymap.cson and to insert the following:

'atom-text-editor.vim-mode-plus:not(.insert-mode)':
    'ctrl-d': 'native!'

Continue reading “Quick Tip: Keep ‘Find Next Word’ with Vim Mode”

Mental Health Simulation Videos by Katarzyna Napiórkowska

Understanding mental health issues is a struggle for everybody not-affected or not affected in the same way. The super awesome videos by Katarzyna Napiórkowska put you closer to what people experience, because she started a series about different mental health issues.

Continue reading “Mental Health Simulation Videos by Katarzyna Napiórkowska”

Golang: Arrays of Strings

This post is going to be about Golang, arrays and strings. In Go we have more than simple arrays that we know from JavaScript or PHP. They are basically divided into the following:

  • arrays
  • slices
  • maps

This was confusing to me at first, because in basically every language I knew I could change the length of an array by just pushing things to it. Not so; in Go.

Continue reading “Golang: Arrays of Strings”

history.pushState and IE SCRIPT5022: SecurityError

I stumbled upon this error in Internet Explorer when I wrote my Redirect Checker and discovered that JavaScript Errors that imply an attempted security violation, that on top of that are not wrapped in a try-catch block, will totally disable your whole script execution.

I had code that looked something like this:

Continue reading “history.pushState and IE SCRIPT5022: SecurityError”

Google Webmaster Tools: Add HTTPS as separate property

Google Webmaster Tools tracks http and https on separate properties. God knows why. I had a small heart attack when I visited the dashboard and saw that my domain seemed to have vanished from search result pages and that the only thing people found my site on was a post about mining bitcoin.

It’s been a while since I switched a couple of domains to https through the awesome people at Let’s Encrypt, but I absolutely forgot that the Google Webmaster tools would not pick up search engine traffic to my pages after making use of the new URLs.

I just added https://jonathanmh.com to the tracking and voilà:

Everything seems alright again 😉 I’m off to doing that to a bunch of other domains now.

Webpack Sass / Scss compiling to separate file

Webpack is an amazing tool for transpiling and bundling JavaScript, but it can also take care of compiling Sass or Scss to static files.

get the code on github

I came across this issue while developing a prototype and not a single page app, that I needed to have a .scss file include some other files and output a .css file. I didn’t need inlined and scoped CSS like one would probably do with a single page app.

Continue reading “Webpack Sass / Scss compiling to separate file”