Monthly Archive: February 2019

JavaScript check if file is image

When dealing with files in JavaScript, you may want to check whether or not a file is an image. This tutorial will show how to JavaScript check if file is image with pure JavaScript function...

More

Jaxb marshal to String

When working with JAXB, sometimes you want a String representation of your XML. This tutorial will show how to JAXB marshal to String. Below the code of marshaling to String.

   

More

Angular compress image before upload

In the previous tutorial, we discussed the file upload from a Angular Client to a Spring Boot back-end server. Most uploaded files on web are images. It’s always wise to compress and minify before...

More

Bootstrap Uncaught SyntaxError: Unexpected token export

You may encounter the following error when using Bootstrap popper with Angular : Bootstrap Uncaught SyntaxError: Unexpected token export Solution The problem is due to the Javascript import. Most certainly your imports looks like

You...

More

java: invalid source release: 8 on IntelliJ

When try to compile your Java code on IntelliJ, you may get the annoying java: invalid source release: 8 error. The complete error is as follows

The reason is that your project/module JDK...

More