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
14
results
Andrew Fletcher
•
By default the maximum file upload size is set to 2MB. It is not a Drupal issue, instead a php issue as upload_max_filesize is set in your php configuration (php.ini file). Therefore it is a server-side configuration. If you have access to the php configuration file, I would recommend to make the changes directly in it. Yet, on some occasions you cannot access the server configuration (on a shared hosting, for instance) and if you wish to alter some of your server...
Andrew Fletcher
•
Installing PHP on OSX and it installed PHP 8.2.x. However, for my...
Andrew Fletcher
•
Regular commands for brew
Brew update
This updates Homebrew itself....
Andrew Fletcher
•
ERROR Error: Uncaught (in promise): TypeError: undefined is not an object...
Andrew Fletcher
•
Working through an app project I inherited using Ionic, Angular and ngx-leaflet...
Andrew Fletcher
•
The issue
Text through the app is being rendered as
<p>Depletion estimates, Age and size composition, Catch, Effort, Catch rates, Fishing mortality</p>Therefore, in this instance the HTML p tags are being displayed along with the text.
The code
Currently the code outputting this is written as:
<ion-item lines="full">
<ion-label class="ion-text-wrap">Indicators:</ion-label>
<ion-text class="right ion-text-wrap">{{ status.Indicators |...
Andrew Fletcher
•
In terminal I ran a regular command - compose update. Something I've...
Andrew Fletcher
•
Updating to PHP 8.1, I found this interesting code stop...
Deprecated function:...
Andrew Fletcher
•
Working in Laravel, I needed to loop through an array and know whether the...
Andrew Fletcher
•
Step 1: Install Homebrew
Homebrew is the missing package manager for macOS.
As...
Andrew Fletcher
•
Setting up the mail configuration in October CMS is a quick progress. Depending on which mail method you use there are up to eight fields to complete:
Sender name;
Sender email;
Mail method: (PHP mail, Sendmail, SMTP, etc...). I elected to go with SMTP;
SMTP address - such as smtp.your-domain.com or mail.your-domain.com;
SMTP port - 587;
SMTP encryption protocol - TLS or SSL;
Authorization required - boolean response;
Username - email account; and
Password -...
Andrew Fletcher
•
Common commands
Themes and plugins have similar command lines. So rather...
Andrew Fletcher
•
At times while developing in October CMS, you will perform a step that kills the...
Andrew Fletcher
•
Using October CMS to migrate your site and update the tables with the plugins...