Skip to main content

Common Ionic and Capacitor CLI's

Run the NPX commands to update the app

npm run build && npx cap sync

Run app with live reload

ionic cap run {platform} -l --external

Replace {platform} with Android or iOS depending on your environment as follows

How to set up password authentication with Nginx on Ubuntu 20.04

Goal: Restrict content access through username and password entry on an Nginx server.

1: Apache Utilities Package

First, update your server’s package index:

sudo apt update

Check if the utilities package exists in your environment by executing the command

dpkg --get-selections | grep apache

Response:

CKAN extensions

Reviewing CKAN extensions and listing the extensions that have been created / modified in the past three years/

Android Studio Run/Debug configuration error: Module not specified

Approaches to resolving “Module not specified” Error in Android Studio

When attempting to run or debug the application on Android Studio you can come across the error “Module not specified” in the Android Studio.  This article will outline approaches I took to get a resolution to this issue.

 

CKAN adding an extension

CKAN extensions - adding to your installation

 

Following the information on the CKAN site

Use the CKAN create command to create an empty extension:

Activate your CKAN virtual environment, for example:

. /usr/lib/ckan/default/bin/activate

Then check your location is

How to set up password authentication with Apache or Nginx on Ubuntu

Securing sensitive content is essential for protecting data integrity and user privacy. One effective way to implement security is by restricting access to specific directories or resources using either Apache or Nginx authentication tools. This provides a comprehensive reference for configuring password protection on both Apache and Nginx web servers using the htpasswd utility.

CKAN managing your database - initialise, clean and export/import

Before you can run CKAN for the first time, you need to run db init to initialise your database:

ckan -c /etc/ckan/default/ckan.ini db init

If this fails due to a permission issue, then the user and group assigned are incorrect.  Or if you are a root user, you can use sudo

sudo ckan -c /etc/ckan/default/ckan.ini db init

If you forget this step you'll see a 500 server error:

Xcode NullInjectorError

In Xcode and executing a run command, the response error was:

{
    "name": "NullInjectorError",
    "ngTempTokenPath": null,
    "ngTokenPath": ["Ee", "fe", "Ne", "Ne", "Ne"]
}

This was a result of me attempting to incorrectly import the AppComponent from inside a service.

import { AppComponent } from './app.component';

 

Subscribe to