developer resources
Codebales holds an ever growing number of solutions to problems that we have experienced in our day to day code writing
Selected filter
117
results
Andrew Fletcher
•
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.
composer require "bower-asset/jquery-ui-slider-pips:^1.11"However, calling this command could produce the following error
[InvalidArgumentException] ...
Andrew Fletcher
•
Following is a series of steps to install Tika and have it running for your Solr...
Andrew Fletcher
•
Working on an Azure server I ran a mysqldump command to generate a copy of the...
Andrew Fletcher
•
The migrate process saves the status of each running migration in the...
Andrew Fletcher
•
When attempting to backup mysql using the mysqldump command
mysqldump -u root...
Andrew Fletcher
•
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/directoryDo 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:
rm -rf /path/to/directory/*What about the hidden files and directories?
Wanting to...
Andrew Fletcher
•
How to Create New MySQL User
Before you can create a new MySQL user, you need to...
Andrew Fletcher
•
This short guide explains to you how to extract/unzip .zip archive files to a...
Andrew Fletcher
•
I prefer htop over top on my Linux server. Running a Solr index got...
Andrew Fletcher
•
The generally accepted answer to a mysqldump is:
mysqldump -h [host] -u...
Andrew Fletcher
•
Working in Twig, I had to add classes to a pre-existing array. Whilst I've grown used to the patterns in PHP, these cannot be applied in Twig. Instead I had to merge the new array elements.
Non associative arrays
Working from a base level, I'll begin as if the original array hasn't been set. The merge filter expects as first argument an array whose content will be merged with the assigned variable:
{% set myArray = [] %}
{% set myArray = myArray|merge(['tw-flex-inline'])...
Andrew Fletcher
•
Wanting to create a new repository on GitHub, add in a few of the available...
Andrew Fletcher
•
On a git pull from remote dev environment to a staging environment running off...
Andrew Fletcher
•
I needed the check if a file existed in a directory as the migrate script wasn't...
Andrew Fletcher
•
Joining a new company / team there is always a lot of new items to...