Let Jasmine loop to array of data to validate (Email Validation JavaScript example)

Writing a lot of Jasmine tests for each email I wanted to test, is a waste of time! You can loop trough an array of all emails. So for each email there will be an test! Find out how I did it! (included Jasmine code and code of my Email Validation JavaScript Module)

JavaScript addEventListener onblur doesn’t work in Firefox, this is the fix!

For a cool project is was building an Email validation script. But Firefox got some weird thing with the “onblur” event. Since I’ve decided to leave jQuery behind, and make more use of (Vanilla) JavaScript, i got this problem that my code wasn’t working. Example 1: Doesn’t work: // HTML Enter your name: <input type=”text” … Continue reading JavaScript addEventListener onblur doesn’t work in Firefox, this is the fix!

How to combine multiple Gulp tasks and add multiple destination locations

For my frontend work i use Gulp a lot, because it is easy to use and super-fast! But in the past i created a lot more tasks that was needed. For example: For concatenate an app.js from multiple .js files and minify them. For that i created these tasks: gulp.task(‘js’, function() { return gulp.src([ ‘src/scripts/polyfills/*.js’, … Continue reading How to combine multiple Gulp tasks and add multiple destination locations

How to deploy your website with Git to your web-hosting and use Github or Bitbucket instead!

For a long time, i was searching for a good solution to automatically deploy my websites to my web-hosting (Webfaction) via Git. I use Git (Github or Bitbucket) with all my Web-Dev projects, i was searching for a solution to setup my personal Continuous Deployment/Delivery work-flow.

Git error: Updates were rejected because tag already exists in the remote! (Sourcetree)

A while ago i worked at a big project with a big team. But for Git i use Sourcetree. And when i wanted to push my changes, i got this error:
! [rejected] folder-name/folder-name-1.3 -> folder-name/folder-name-1.3 (already exists)
updating local tracking ref ‘refs/remotes/origin/master’
error: failed to push some refs to ‘https://username@git.domain.com/gitrepo.git’
hint: Updates were rejected because the tag already exists in the remote.