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”
Continue reading “Atom vs Brackets”
I thought I’d start a series about job inverview questions I get asked that I found hard or interesting. This post is going to be about
Jonathan, are you a rockstar developer?
Now, job interviews are all unique, even if they have similar parameters. You sit in front of one or multiple people and they try to get to know you and test you a little. As I wrote in How to get a Job in Tech I think job interviews are fun and they’re a chance to sit in a room with people that make a lot more money than you, which doesn’t make them good people, but it makes their time valuable in the eyes of someone!
Continue reading “Job Inverview Question: Jonathan, are you a Rockstar Developer?”
In this post we’re going to have a look at how to have a close look at HTTP requests processed by Go and how to prevent automatic redirection through
302 or similar redirects. This is useful both for investigating tracking links from twitter, buffer, bit.ly or email marketing, or to make sure your tools to generate them actually work 😉 For a demo, check out the Redirect Checker Tool
Continue reading “Tracing or Preventing HTTP Redirects in Golang”
This post will present the best light or bright atom editor themes I’ve found so far. Usually I pick one of the dark atom themes, but the light ones are usually a little more subtle and often relaxing to look at.
For the screenshots I used the One Light UI theme, which I also use with the light / bright themes in my everyday coding adventures.
No matter if you prefer bright background themes or if you just need to turn up your screen brightness in order to get through winter without a depression, I’ve compiled a list of some themes you might enjoy!
Continue reading “Best (light) Atom Editor Themes”
Recently I set up a project with the laravel PHP framework and hit a little bump right away. After cloning my project on my computer at home, I encountered an error message about the AES key length.
Luckily I wasn’t the only one with that issue and running the following and conveniently available artisan commands fixed it already:
php artisan key:generate
php artisan config:clear
Continue reading “[Solved] Laravel: The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.”
I’m a big fan of oh my zsh, but recently I had a small problem upgrading it. The error message I got indicated that I had a changed file that couldn’t be overwritten automatically. My suspicion is that I installed some docker autocomplete plugin that I somehow didn’t install quite correctly.
Updating Oh My Zsh
error: Cannot pull with rebase: You have unstaged changes.
There was an error updating. Try again later?
Continue reading “[Solved] Upgrading Oh My Zsh: Cannot pull with rebase”
Few weeks ago we decided to switch our static site to GHOST and write a theme for it. Now, GHOST isn’t an optimal choice for a photography portfolio and we’ll get into why that’s the case in a bit, but we both like blogging to, so we wanted to give it a shot.
Continue reading “Node.js / GHOST theme development and deployment”
In the last post we had a look at how to create an express app with jwt authentication.
Why No Framework?
I wanted to write a post simply illustrating how everything works and how easily this can be achieved without any frameworks in place. It’s just another layer of abstraction you have to learn if you’re just trying to build some sort of login for your web app.
This post is going to be about creating an authentication with JSON Web Tokens for your project, presumably an API that’s going to be used by Angular, Vue.js or similar frontend frameworks. We’re going to send the jwt with every request, meaning that we don’t rely on sessions, but simply put the token on every request we make to the API. This way you don’t have to worry about cookies, but you can save it in
localStorage or other places on the frontend.
In essence this tutorial will go through:
- creating a
/login route to acquire a token
- creating a
/secret route, that only is available to logged in users with a JSON web token
If you’re curious about the final result and don’t want the step by step guide, check out the final jwt express gist.
Continue reading “Express, Passport and JSON Web Token (jwt) Authentication for Beginners”