Posts

Laravel scheduling: How to run the scheduler with proc_open disabled?

Afbeelding
We are working on a Laravel 8.x project, developed it locally with Sail (Docker dev environment) and wanted it to release on production. All OK.. Until we reached the task schedulers, where the party started. To prevent other from debugging, searching and coming to the conclusion that the PHP function proc_open is disabled on there shared host. To prevent other from the same issues, we want to share the simple but stable solution without re-writing existing commands and reuse existing logic. What is a Laravel Command? For our project we have created several commands which accept input arguments. This works ideal if you want to verify a command is functional. As examples we are re-using example code from laravel.com . if you are already familiar with Laravel Commands, you can skip this part

WSL2: Linux on Windows 10

Afbeelding
With this post we are talk about WSL2, Linux on Windows, Windows Terminal and more Are you looking to run a terminal session for your WSL2 Linux operating system, use Linux on Windows or just want to play around? Continue reading! For this post we are using the following software: Windows 10, version 20H2 Ubuntu 20.04 LTS, version 2004.2020.812.0 Windows Terminal, version 1.4.3243.0 Docker Desktop, version 3.0.4 with WSL 2 What is WSL2 WSL stands for Window Subsystem for Linux, so it can run Linux on directly Windows. Yes we could do this already with VMWare or Virtualbox, but with support of WSL2, we can run it without the traditional overhead of a virtual machine or dualboot. With the release of WSL 2, they have increased the pe

Android and SonarQube with code coverage

Afbeelding
With this post we are going to walkthrough how to setup SonarQube with code coverage for a Android project. During this walkthrough we make use of the following system and software: Android Studio, version 4.1.1 Gradle, version 6.5 JDK / java, java 15.0.1 2020-10-20 JaCoCo, version 0.8.6 SonarQube, version 8.5.1 SonarQube scanner, version 2.7.1 Example Android project For this walkthrough there is an example project based on the template Navigation Drawer Activity where we added a data class Car.java with some unit tests in CarTest.java. This project is available on GitHub project with all code already inside! All important code changes can be found in below gradle files: Project build.gr

Setup SonarQube with Docker

Afbeelding
With this post we are going to walkthrough how to setup SonarQube using Docker. During this walkthrough we make use of the following system and software: Windows 10, version 20H2 Docker Desktop, version 3.0.4 with WSL 2 SonarQube, version 8.5.1 Install Docker Docker desktop can be downloaded from docker.com/get-started , after downloaded Docker Desktop Installer.exe run it and follow the instructions. If request to install and configure WSL2, follow the instructions. After the installation you are ready to start Docker for the first time. Probably a shortcut is added to your desktop, else you can find it in the default location C:\Program Files\Docker\Docker\Docker Desktop.exe . When starting Docker for the first time it can take a while before

How to parse JSON in Android?

Afbeelding
How to parse JSON in Android? Always having troubles when you want to JSON in Android. How I download the .json file from the internet? How can i parse the JSON into a java model? How can we build this on a stable way? With this post we hope to answer all those questions! As JSON API we are using content from jsonplaceholder.typicode.com , an free fake Online REST API. Before we start we first need to prepare the Android project with the libraries we are using: RxJava, RxAndroid, OkHttp and GSON. Any information about RxJava, RxAndroid or OkHttp is not needed to follow this how to, for any background information several other posts are already available. For this example we are downloading the JSON data from the internet. Step #1 for any i

AdMob and pre-launch reports

Afbeelding
AdMob and pre-launch reports Over the past years multiple posts are created to highlight issues with AdMob in combination with the pre-launch reports for the Google Play Console. In the beginning Google just clicked ads during the pre-launch run which were reported as illegal clicks, which could ban Google accounts delivering the adds [ 1 ]. Now a days Google is filtering those IP's to prevent false clicks, but is this really a solution? It feels more like a duct tape fix! Okey, so no more false clicks in Admob, but the pre-launch report also has some failures with AdMob ads. In the pre-launch report it can generate Stability issues like Non-SDK api: makeOptionalFitsSystemWindows()V or Non-SDK api: isTagEnabled(J)Z . Or Accessibility issues like Low contrast or Touch target size . To prevent that the pre-launch report is filled with noisy AdMob issues, we want to focus on

Google Play: In-App review

Afbeelding
Google Play: In-App review App publishers are always searching for better ways to improve get user feedback and collect 5 star reviews. Every day the Android users rate millions of apps, but how can you get those Android users to rate you're app? App developers can create a button "Rate me", which links towards the Google Play store. This process is fine, but its navigates the user away from the app and into the Google Play store. To prevent this app switch Google has developed a new In-App Review API . This In-App Review flow creates an overlay within the app where the user can leave his review quick and fast. How to implement the In-App Review API? The In-App Review API is listed within Play Core library , add the package com.google.andr