How to create a date range widget?
Steps to get the Solr date range widget working.
Steps
Enable the Facets Range Widget sub-module.
Install the jQuery-ui-Slider-Pips library, as described in the README.txt file in that sub-module's folder. After playing with this for sometime to get it working, I found the best way to install is via composer.
How to Install Tika to be used for Solr Search API Attachments
Following is a series of steps to install Tika and have it running for your Solr Search API Attachments.
Java is it running on your server
To begin you must have Java installed on your server/machine. To check if Java is installed use the command
java -version
Performing the above command will output something similar to:
Unknown collation: ‘utf8mb4_0900_ai_ci' Error
Working on an Azure server I ran a mysqldump command to generate a copy of the db. No issues, the file downloaded on to the serve without cause.
The Problem
On my local environment, using Sequel Ace I imported the file, but it suddenly it stopped with a red message “Unknown collation: ‘utf8mb4_0900_ai_ci‘”
Migration is busy with another operation
The migrate process saves the status of each running migration in the database. Any error in the code will abnormally terminate the process so the database won't be updated properly and will keep saying that "something is still running". In Drupal I had a look through the error log and came across the following message:
How to create SOLR cores on Azure hosted SOLR service?
We are going to work through two methods of creating the SOLR cores.
Variables for reference used in this article:
{ip_address} - your server IP Address
{name} - name of the instance you are creating
{dir} - name of the instance directory you are creating
Access denied; you need (at least one of) the PROCESS privilege(s) for this operation
When attempting to backup mysql using the mysqldump command
mysqldump -u root -p database_name > backup.sql
However, it is throwing an error:
mysqldump: Error: 'Access denied; you need (at least one of) the PROCESS privilege(s) for this operation' when trying to dump tablespaces
What to do?
How to remove all files from a directory?
To remove all the contents from a directory, you need to ask yourself:
Do I want to remove everything including the directory itself?
To remove a directory with all its contents (including all interior folders):
rm -rf /path/to/directory
Do I want to keep the directory, but delete everything else?
Need to remove all the contents of the directory (including all interior directories) but not the directory itself:
Adding a Git repo to a server
git clone git@bitbucket.org:{username}/{repo}.git
And I was unceremoniously delivered the following error
fatal: could not create work tree dir '{project}
': Permission denied
My initial thought was the error due to server permission... being sudo. This was tested by running the command
sudo git clone git@bitbucket.{username}/{repo}.git
Which generated the error
How to Create New MySQL User
How to Create New MySQL User
Before you can create a new MySQL user, you need to open a terminal window and launch the MySQL shell as the root user. To do so, enter the following command:
sudo mysql –u root –p
or rather than typing sudo each time you can enter:
sudo su mysql -u root -p
In either scenario next type in the root password and press Enter.
The prompt will change to
mysql>
How To Update All Packages Linux
In the terminal type, the following command:
sudo apt update
After typing the above command, enter your password.