Laurent Hinoul

“Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live” – John Woods

L

LAURENT HINOUL

Welcome.

Hello there! My name is Laurent Hinoul. I’m a software developer who lives in Belgium. I mainly program in Java and use technologies/frameworks like Spring, Maven, Angular, MongoDB…

Besides developing, I’m interested in home automation and music. I am volunteering as a Firefighter and Paramedic too. But most importantly, I love to be a husband and father.

We as developers sometimes run into problems that takes us some time to resolve. Through this blog, I would like to share mine I took care of. Enjoy reading…

Latest stories

How to fix Chrome that redirects localhost to https

H

I was developing in angular and used url . Suddenly, Chrome gave me the following error: ERR_SSL_PROTOCOL_ERROR SSL? When looking at the url, I saw that Chrome added https… When I changed it back to http, Chrome forces https again… After some research, I found a solution on with the following explanation: I believe this is caused by HSTS – seeĀ  you have (developed) any other...

How to use a JNLP file

H

This weekend, someone asked me for help with a specific file. He has an Audi and wanted to upgrade his GPS maps. But all he has was an 8 KB downloader file with a JNLP extension. When opening the file, he gets an error that says that the extension is not recognized. First, I’ll give you Oracles explanation of JNLP: Java Network Launch Protocol (JNLP) enables an application to be launched on...

God Mode in Windows

G

There is a method to activate a kind of God Mode in Windows Vista and above. With this simple hack, you get a folder that contains all possible control panels and settings in Windows. Follow the next steps to enable God Mode:

How to create a stream from an iterator in java 8

H

Hi guys! In this post I’ll show you how to convert a java iterator to a java 8 stream. The code is really simple: public static <T> Stream<T> iteratorToStream(final Iterator<T> iterator, final boolean parallell) { Iterable<T> iterable = () -> iterator; return StreamSupport.stream(iterable.spliterator(), parallell); } Just copy paste this static method in any class you like...

How to fix Unirest General SSLEngine problem

H

I tried to post data to a rest service using Unirest (unirest.io). But when I tried to post to an HTTPS url, I got the following error: javax.net.ssl.SSLHandshakeException: General SSLEngine problem PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target sun.security.provider.certpath...

How to delete duplicate rows in SQL

H

To find and delete duplicate rows from a table, you can execute the query below. Note that this is for Oracle. You can use it for other databases but you need to change the ‘rowid’ then. delete from table_name A where a.rowid > any ( select B.rowid from table_name B where A.column_name = B.column_name ); You need to change the ‘table_name’ by your table name an the...

How to enable CORS in Solr

H

If you are using Solr with Angular or something like that. The browser can be annoying about cross site scripting. To enable CORS in Solr you just have to add the code below in solr-x.x.x/server/solr-webapp/webapp/WEB-INF/web.xml (x.x.x stands for the solr version). Just after the <web-app> tag.

Tag Cloud

Categories