CLI using drush to drop tables in your db and reload
This is a relatively quick process, beginning with dropping the database tables
lando drush sql-drop -y
Import a MySQL database
lando db-import {filename}
such as
lando db-import riverdev.2022-10-03-1664769553.sql.gz
Rebuild cache
lando drush cr
Finally, export your config
Docker issue
Selecting a search methodology
Currently, we are upgrading a site from Drupal 7 to Drupal 9. During this upgrade, we have the opportunity to the site's search functionality and select a tool that is most suited to the website's requirements.
Android Studio error when running app through emulator
Only a month ago, running an app through the Android Studio emulator was running fine. Now I'm warmly greeted by
Error
Installation did not succeed.
The application could not be installed: INSTALL_PARSE_FAILED_NO_CERTIFICATES
The complete error is
Running Drupal 9 locally with lando using remote files and db
Import a database
lando db-import doj.sql
Enter the MySQL database
lando mysql -h database
This action will change the prompt as you are now in mysql. The prompt will start with
mysql>
Now change to the database that you want to use
use doj;
If you want to know what databases exist, then run
Uninstalling Microsoft Remote Desktop from OSX
To completely remove Microsoft Remote Desktop from OSX you need to perform the following
Bin the MRD app
Drag the Microsoft Remote Desktop app to the bin.
In Finder, select Go > 'Go to Folder', and enter the following path:
/private/var/db/
Locate the RemoteManagement folder and bin it.
Back to Finder, again select Go > 'Go to Folder', and enter the following:
How do you clear caches on Ubuntu?
At first, I attempted
echo 1 > /proc/sys/vm/drop_caches
Response
-bash: /proc/sys/vm/drop_caches: Permission denied
Adding sudo in front of the command was met with the same result. What about if I execute the shell as root
sudo sh -c 'echo 1 > /proc/sys/vm/drop_caches'
Success. Caches cleared.
CKAN templates base verses location of themed
Location of the base templates
cd /usr/lib/ckan/default/src/ckan/ckan/templates
Whereas as the location of the plugin that displays the new template
cd /usr/lib/ckan/default/src/ckanext-{project}/ckanext/{project}/templates
To alter the home main page, edit the
flask_debugtoolbar module doesn't exist
Error when running ckan.ini init
from flask_debugtoolbar import DebugToolbarExtension
ModuleNotFoundError: No module named 'flask_debugtoolbar'
Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
Then check your location is
cd /usr/lib/ckan/default/src