Replace all your files indented with 4 spaces to 2 spaces

sed -e 's/^/~/' -e ': r' -e 's/^\( *\)~    /\1  ~/' -e 't r' -e 's/~//' -i *

Select last day of the month for a specific date

CordovaError: Requirements check failed for JDK 1.8 or greater

If you have a Cordova Error after updating to Ubuntu 18.04, the easiest way to resolve this issue is removing openjdk-11 and reinstalling openjdk-8.

sudo apt purge openjdk-11-jdk-headless openjdk-11-jre-headless
sudo apt install openjdk-8-jdk

There is not support for the new java versions yet in Cordova/Android (at the post date)

Basic Optical Character Recognition with Tesseract

Choose an image with some text written to start detection.

Get local html files (views/widgets) and insert them into your Cordova Single Page Application

Approach to load different views into an Android SPA.

  1. An index.html file with all the scripts, styles and so on.
  2. HTML, CSS and JS files at least as many as views in folders called view, css and js respectively and with the same names to not mess around. Ex: page.html, page.css and page.js
  3. We can use Axios to load views instead of the typical XMLHttpRequest that follows: