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.
Unable to determine application id: com.android.tools.idea.run.ApkProvisionException: ERROR: APK path is not specified for module "android"
Working in Android Studio when attempting to run a project I had the following error
Unable to determine application id: com.android.tools.idea.run.ApkProvisionException: ERROR: APK path is not specified for module "android"
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:
ckan-worker:ckan-worker-00 FATAL Exited too quickly (process log may have details)
Working through a CKAN installation on Ubuntu 20.04
User sees a server 500 error.
syslog shows: ckan-worker:ckan-worker-00 FATAL Exited too quickly (process log may have details)
Information:
syslog
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';