Ionic – No provider for t! …

$ ionic info

Ionic:

ionic (Ionic CLI) : 4.10.2 (/home/tanguy/.nvm/versions/node/v8.11.3/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.0.0
@angular-devkit/build-angular : 0.12.4
@angular-devkit/schematics : 7.2.4
@angular/cli : 7.2.4
@ionic/angular-toolkit : 1.3.0

Cordova:

cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : android 7.1.4, browser 5.0.4, ios 4.5.5
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 3.1.2, (and 19 other plugins)

System:

Android SDK Tools : 26.1.1 (/home/tanguy/Softwares/android-sdk/Sdk)
NodeJS : v8.11.3 (/home/tanguy/.nvm/versions/node/v8.11.3/bin/node)
npm : 6.5.0
OS : Linux 4.15

 

I was building for production, on Android a project using Push native plugin.

I encountered an error “No provider for t! white screen”

The problem was caused because I forgot to add Push to the providers of my app.module.ts and the documentation say nothing about it on the plugin page.

However, it was stated here: https://ionicframework.com/docs/native/#angular

Import the plugin in a @NgModule and add it to the list of Providers. For Angular, the import path should end with /ngx. Angular’s change detection is automatically handled.

Advertisements

Linux Mint – Cinnamon – Launch Expo View from command line – Launch Scale (Overview) View

Here is my config

flameshot_2019-01-03_13:14:57

Because I use Workspace grid (2D) and switcher to have my workspaces as a grid, I cannot use the shortcuts to show Expo view and Scale view. (The applet override the shortcuts to navigate through workspaces).

So I added my own custom keyboard shortcuts !

Expo view command

sh -c 'dbus-send --dest=org.Cinnamon --print-reply /org/Cinnamon org.Cinnamon.ShowExpo >/dev/null'

 

Scale view command

sh -c 'dbus-send --dest=org.Cinnamon --print-reply /org/Cinnamon org.Cinnamon.ShowOverview >/dev/null'

 

References:

Megajump – How to have full MPs

  1. Get the apk
  2. Run this script to https://gist.github.com/seza443/f3f4ce91344ba26654f8518951f27d08
    a. Unpack APK
    b. Add debug flag
    c. Repack APK
    d. Sign APK
    e. Verify APK
  3. Install the debug APK to your phone
  4. Create on our computer a file named GSGPrefs.xml with this content: https://gist.github.com/seza443/637f814bff1c01d9751b9029f921804a
  5. Using Android Studio, Device File Explorer, go to “/data/data/com.getsetgames.megajump/shared_prefs”
  6. Delete the existing GSGPrefs.xml if any
  7. Right-click the folder, upload your own GSGPrefs.xml file

You now have a lot of MPs

Apache2.4 – Enable SSL and HTTP to HTTPS redirection

On clean Ubuntu 18.04 installation:

Initial installation: PHP & Apache2


sudo apt-get update

sudo apt-get upgrade

sudo apt-get install php

sudo apt-get install apache2

Enable mod_ssl and mod_rewrite then restart apache


sudo a2enmod ssl

sudo a2enmod rewrite

sudo systemctl restart apache2

Create your site, enable it


sudo nano /etc/apache2/sites-available/my_site.conf

sudo a2ensite my_site

sudo systemctl reload apache2

The content of the site looks like:



  RewriteEngine On
  RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]

  ErrorLog ${APACHE_LOG_DIR}/error.log
  CustomLog ${APACHE_LOG_DIR}/access.log combined


  ServerName my_site.pro
  SSLEngine on
  SSLCertificateFile "/etc/ssl/my_site/certificate.crt"
  SSLCertificateKeyFile "/etc/ssl/my_site/private_key.key"

  ServerAdmin info@my_site
  DocumentRoot /var/www/html