OpenCV 4 + Windows + Mingw + VSCode

Installing OpenCV 4 on Linux is difficult, but can be done. On Windows it took me hours to get it working. Download [VS Code][1] [mingw-w64][2] [OpenCV 4.1.1 (mingw edition)][3] [set_env.bat][4] Installation install opencv extract opencv[…].zip copy to D:\OpenCV\ install vscode VSCodeUserSetup-[...].exe install cpp-tools in vscode ctrl + shift + x search for: “c++” install “c/c++” from Microsoft install mingw mingw-w64-install.exe – install to D:\mingw\ (IMPORTANT: don’t use spaces in name) options: (version: 8....

September 8, 2019 Â· 1 min Â· Anton Bracke

Make your Blog: Harder, Better, Faster, Stronger

These interests are the main reasons for many blog authors to switch to static site generators like Jekyll or Hugo. Performance and security is always a thing you should be aware of when hosting a website, but I am feeling comfortable with the WordPress right now and my guest authors like to write posts with the Gutenberg editor as well. After reading a post by Delicious Brains about their suggestion in caching WordPress by directly serving cached html files with Nginx before running PHP, I started to improve my setup by something similar with WP-Super-Cache....

August 24, 2019 Â· 4 min Â· Anton Bracke

VS Code personalizations

This list contains some of my personal settings and optimizations I normally use in VS Code. Show whitespaces VS Code 1.6.0 and Greater As mentioned by aloisdg below, editor.renderWhitespace is now an enum taking either none, boundary or all. To view all whitespaces: "editor.renderWhitespace": "all", Before VS Code 1.6.0 Before 1.6.0, you had to set editor.renderWhitespace to true: "editor.renderWhitespace": true Source: https://stackoverflow.com/questions/30140595/show-whitespace-characters-in-visual-studio-code Lint .vue files Add the following part to your settings....

July 9, 2019 Â· 1 min Â· Anton Bracke

JavaFX 8 on Ubuntu

If you want to use JavaFX with OpenJDK 8 on Ubuntu you have to install an older version of OpenJFX and its dependencies. sudo apt install openjdk-8-jdk openjfx=8u161-b12-1ubuntu2 libopenjfx-java=8u161-b12-1ubuntu2 libopenjfx-jni=8u161-b12-1ubuntu2 Hold the package, so they wont be upgraded on system updates. sudo apt-mark hold openjfx libopenjfx-java libopenjfx-jni Tested on Ubuntu 18.04.2

May 13, 2019 Â· 1 min Â· Anton Bracke

Regex collection

This is a collection of regex expressions I often use. They are not perfect and 100% correct, but will catch most errors a user normally makes. Email addresses /^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/ Phone number /^(\+|0{1,2}?)[1-9][\d -]+\/?[\d -]+$/ Matches: +49301234567 00 49 30 123 – 456 – 7 030 / 123 45 67 030/1-2-3-4-5-6-7 German postalcode / ZIP /^([0]{1}[1-9]{1}|[1-9]{1}[0-9]{1})[0-9]{3}$/ Regulärer Ausdruck für Deutsche Postleitzahlen Date (dd.mm.YYYY) /^\d{2}\.\d{2}\.\d{4}$/

April 20, 2019 Â· 1 min Â· Anton Bracke

Browsersync

Stop reloading your browser by hand anytime your css, js or template re-renders. Try using Browsersync. I really started loving this tool. Everytime your sass or js gets compiled or you simply changed one thing in your template, browsersync detects the file change and simply reloads your page. One nice extra is that css is reloaded without reloading the complete page. To use it just install it via npm: npm install -g browser-sync I just created a small helper script for my Silverstripe projects, but you could simply change the folder and use it with everything else:...

August 8, 2018 Â· 1 min Â· Anton Bracke