Skip to main content
developer resources
Codebales holds an ever growing number of solutions to problems that we have experienced in our day to day code writing

Terminal

29 articles

Wanting to create a new repository on GitHub, add in a few of the available options that can come with an initial repository such as: .gitignore for the platform you are
17 03 2021 | 1 week 6 days
16 03 2021 | 2 weeks
15 03 2021 | 2 weeks 1 day
11 03 2021 | 2 weeks 4 days
25 02 2021 | 1 month
07 02 2021 | 1 month 3 weeks

Drupal

20 articles

Load testing verifies the system performance under the expected peak load. The peak load needs to set by a series of parameters that you have benchmarked targets. For example, these
29 03 2021 | 23 hours 32 minutes
29 03 2021 | 23 hours 33 minutes
29 03 2021 | 23 hours 35 minutes
16 03 2021 | 2 weeks
15 03 2021 | 2 weeks 1 day
08 01 2021 | 2 months 3 weeks

SwiftUI

17 articles

Whilst working through an edit person view in a SwiftUI project, I experienced the following two errors: Return from initializer without initializing all stored properties Cannot convert value of type 'String' to
12 03 2021 | 2 weeks 3 days
12 03 2021 | 2 weeks 4 days
05 03 2021 | 3 weeks 4 days
02 03 2021 | 4 weeks
24 02 2021 | 1 month
16 02 2021 | 1 month 1 week

Swift 5

15 articles

Wanting to create a new repository on GitHub, add in a few of the available options that can come with an initial repository such as: .gitignore for the platform you are
17 03 2021 | 1 week 6 days
29 12 2020 | 3 months
28 12 2020 | 3 months
08 12 2020 | 3 months 3 weeks
28 10 2020 | 5 months
04 08 2020 | 7 months 3 weeks

Xcode

10 articles

I attempted the run command and the response I had was succeeded, but then nothing else happened! I usually have this problem when a dependency is not updated. The following steps usually
16 02 2021 | 1 month 1 week
08 02 2021 | 1 month 3 weeks
29 01 2021 | 2 months
28 01 2021 | 2 months
28 12 2020 | 3 months
05 11 2020 | 4 months 3 weeks

REST

9 articles

If you are receiving the following 403 errors: "message": "The used authentication method is not allowed on this route." "message": "This route can only be accessed by anonymous users." Then keep reading for
03 02 2021 | 1 month 3 weeks
23 11 2020 | 4 months
23 11 2020 | 4 months
12 11 2020 | 4 months 2 weeks
31 05 2020 | 9 months 4 weeks
27 05 2020 | 10 months

apache

9 articles

A recent attempt to run an updatecomposer (regular activity for many of us), I had a memory limit issue. This was surprising becausethe memory setting via Plesk is set to
15 03 2021 | 2 weeks 1 day
07 02 2021 | 1 month 3 weeks
20 01 2021 | 2 months 1 week
20 01 2021 | 2 months 1 week
13 01 2021 | 2 months 2 weeks
13 01 2021 | 2 months 2 weeks

Swift 4

8 articles

iOS localization on the fly If you have addedlanguages to your app... shortly afterwards you'll be getting yourself knee deep in changing the language on the fly. Followed by the question
08 12 2020 | 3 months 3 weeks
18 03 2019 | 2 years
16 08 2018 | 2 years 7 months
15 08 2018 | 2 years 7 months
21 07 2018 | 2 years 8 months
11 05 2018 | 2 years 10 months

iOS

8 articles

Localization is the process of showing other languages inyour app and is surprisingly painless in iOS. For most of us the base version of the app will be written in
05 11 2020 | 4 months 3 weeks
18 01 2019 | 2 years 2 months
16 08 2018 | 2 years 7 months
15 08 2018 | 2 years 7 months
21 07 2018 | 2 years 8 months
11 05 2018 | 2 years 10 months

ejabberd

7 articles

I'm writing these steps primarily for myself as a reference. However, if someone else finds them useful to great. Adding XMPP framework to your server. Initially I was going to add
27 11 2020 | 4 months
23 11 2020 | 4 months
26 08 2019 | 1 year 7 months
12 07 2019 | 1 year 8 months
10 04 2019 | 1 year 11 months
18 01 2019 | 2 years 2 months

entity field

7 articles

I'm writing these steps primarily for myself as a reference. However, if someone else finds them useful to great. Adding XMPP framework to your server. Initially I was going to add
27 11 2020 | 4 months
23 11 2020 | 4 months
26 08 2019 | 1 year 7 months
12 07 2019 | 1 year 8 months
10 04 2019 | 1 year 11 months
18 01 2019 | 2 years 2 months

error

7 articles

When you are in the status report of the admin area are you finding the following issue: ENTITY/FIELD DEFINITIONS Mismatched entity and/or field definitions The following changes were detected in the entity
23 11 2020 | 4 months
23 11 2020 | 4 months
12 11 2020 | 4 months 2 weeks
11 05 2018 | 2 years 10 months
11 05 2018 | 2 years 10 months
26 09 2017 | 3 years 6 months

App

6 articles

How to apply a gradient tint over a background image? Set the background image The first step is to set the background image. I wanted theimage to cover the entire device, so
20 03 2020 | 1 year
16 08 2019 | 1 year 7 months
08 08 2019 | 1 year 7 months
14 05 2018 | 2 years 10 months
11 05 2018 | 2 years 10 months
11 05 2018 | 2 years 10 months

comments

5 articles

The magicallydescriptive error401 Forbidden "message": "Access denied on creating field 'uid'.". You probably can sense the love I have for this error. This was a painful error that took a
23 11 2020 | 4 months
12 11 2020 | 4 months 2 weeks
15 07 2017 | 3 years 8 months
29 04 2017 | 3 years 11 months
28 04 2017 | 3 years 11 months

October CMS

5 articles

Working in Laravel, I needed to loop through an arrayand know whether the current loop was odd or even row. To do this add the expression to your Twig file: {%
13 02 2021 | 1 month 2 weeks
07 02 2021 | 1 month 3 weeks
11 11 2020 | 4 months 2 weeks
14 10 2020 | 5 months 2 weeks
19 09 2020 | 6 months 1 week

commands

4 articles

Regular expressions (regex) are extremely useful in extracting information from any text by searching for one or more matches of a specific search pattern. The basic anchors -^ and $
25 02 2021 | 1 month
13 01 2021 | 2 months 2 weeks
03 12 2020 | 3 months 3 weeks
23 11 2020 | 4 months

Plesk

4 articles

I had been running a few Centos 6 servers just past their EOL (30th November 2020) and it was time to kick in to action a plan I had been
11 03 2021 | 2 weeks 4 days
07 02 2021 | 1 month 3 weeks
20 01 2021 | 2 months 1 week
15 01 2021 | 2 months 2 weeks

composer

4 articles

Updating Drupal from 8.7.10 to 8.8.xor 8.9.x has seen a significant change as it has now moved into 9.x. It has integrated more with composer, and you can be caught
16 03 2021 | 2 weeks
15 03 2021 | 2 weeks 1 day
15 03 2021 | 2 weeks 1 day
19 01 2021 | 2 months 1 week

server

3 articles

Well for me it is very slow. Recently, I upgraded from CentOS 6 to Centos 7. CentOS 6 was lightening fast. Since the upgrade CentOS7 has been so slow in
02 03 2021 | 4 weeks
13 01 2021 | 2 months 2 weeks
31 05 2020 | 9 months 4 weeks

nodejs

3 articles

Step 1: Install Homebrew Homebrew is the missing package manager for macOS. As per the Homebrew site, paste the following in a macOS Terminal prompt. $ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" This
12 02 2021 | 1 month 2 weeks
02 02 2021 | 1 month 4 weeks
13 01 2021 | 2 months 2 weeks

images

2 articles

Images For some time, when looking for images online for your app or site I have been going to Unsplash. As I come across more image sites that are noteworthy they
05 01 2021 | 2 months 3 weeks
23 11 2020 | 4 months

Centos

2 articles

To add ejabberd and run MYSQL to the server I needed to update the server version of mysql from 5.5 to 5.7. Fortunately, there are great instructions on the
15 01 2021 | 2 months 2 weeks
12 08 2020 | 7 months 2 weeks

library

2 articles

This a resource library of the Apple developer resources that I have regularly accessed. It will continue to grow as my path to learn app development continues. Library App Guidelines -
10 07 2020 | 8 months 2 weeks
15 05 2018 | 2 years 10 months

MYSQL

2 articles

To add ejabberd and run MYSQL to the server I needed to update the server version of mysql from 5.5 to 5.7. Fortunately, there are great instructions on the
15 01 2021 | 2 months 2 weeks
12 07 2019 | 1 year 8 months

localization

2 articles

iOS localization on the fly If you have addedlanguages to your app... shortly afterwards you'll be getting yourself knee deep in changing the language on the fly. Followed by the question
08 12 2020 | 3 months 3 weeks
05 11 2020 | 4 months 3 weeks

GitHub

2 articles

Wanting to create a new repository on GitHub, add in a few of the available options that can come with an initial repository such as: .gitignore for the platform you are
17 03 2021 | 1 week 6 days
27 05 2020 | 10 months

content

1 article

Time is essential to all of us... and if you are like me there is never enough of it! Anyway, the amount of time to read a piece of content
29 03 2021 | 23 hours 35 minutes

erlang

1 article

To add Erlang repository that also includes the public key for verifying signed package, use the following shell commands: wget https://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm rpm -Uvh erlang-solutions-1.0-1.noarch.rpm Install Erland yum install erlang Check that Erland has been installed
10 04 2019 | 1 year 11 months

speed

1 article

Well for me it is very slow. Recently, I upgraded from CentOS 6 to Centos 7. CentOS 6 was lightening fast. Since the upgrade CentOS7 has been so slow in
02 03 2021 | 4 weeks

spyc

1 article

Using shell access you the site you want to add the Spyc library. Then go to the libraries directory and add the following commands: mkdir spyc cd spyc wget https://github.com/mustangostang/spyc/blob/master/Spyc.php To verify that Spyc
01 05 2019 | 1 year 10 months

SSH

1 article

To connect to your CPanelhostedserver via SSH OSX, please follow these steps: Generate your SSH key Log in to your CPanel account. As firstyou will have to generate an SSH key pair
13 01 2021 | 2 months 2 weeks

Core Data

1 article

Core Data - customising our data model When you are using Core Data, and let's say that you have a requirement to have an attribute where the options available should be
02 03 2021 | 4 weeks

Carthage

1 article

Ha you have read it before, one of those throw away lines that is written "just create a cartfile". So your thinking carthage update, carthage init, create a plain text
11 05 2018 | 2 years 10 months

icons

1 article

Images For some time, when looking for images online for your app or site I have been going to Unsplash. As I come across more image sites that are noteworthy they
05 01 2021 | 2 months 3 weeks

Tailwind CSS

1 article

Tailwind CSS is a highly customisable framework that delivers developers the tools to quickly pull your site together. Initial Configuration The installation and configuration steps are essentially the same as those outlined
23 11 2020 | 4 months

contacts

1 article

Building a contact list using SwiftUI has many challenges. One challenge is having multiple lists displayed on the one screen. For example, known contacts using your app against contacts on the
09 07 2020 | 8 months 2 weeks

TLS

1 article

I had an issue where logging in from the app disconnected. The error that kept popping up was [date time stamp] [warning] <0.1722.0>@ejabberd_c2s:process_terminated:304 (tls|<0.1722.0>) Failed to secure c2s connection: TLS failed:
23 11 2020 | 4 months

twig

1 article

Working in Laravel, I needed to loop through an arrayand know whether the current loop was odd or even row. To do this add the expression to your Twig file: {%
13 02 2021 | 1 month 2 weeks

User

1 article

Registering a user via REST is an important process particularly when the requests come from a mobile device. In working through the process you might have come across error message like: 403
27 05 2020 | 10 months

warning

1 article

The purple warning notification of annoyance recently came my way! I received the following warning: Publishing changes from background threads is not allowed; make sure to publish values from the main
29 12 2020 | 3 months

CocoaPods

1 article

Today while in Terminal, I ran a regular script pod update. However, this time I received the following error [!] CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/d/a/2/Alamofire/5.1.0/Alamofire.podspec.json Response: Timeout was reached I
06 05 2020 | 10 months 3 weeks

image

1 article

Images For some time, when looking for images online for your app or site I have been going to Unsplash. As I come across more image sites that are noteworthy they
05 01 2021 | 2 months 3 weeks

Registration

1 article

Registering a user via REST is an important process particularly when the requests come from a mobile device. In working through the process you might have come across error message like: 403
27 05 2020 | 10 months

push notifications

1 article

To create a .pem file, is quick once you have your .p12 certificate. I won't go through the process regarding p12 file generation as there are many sites that outline
16 08 2018 | 2 years 7 months

programmatically

1 article

A bug bear that I have had for a while with Drupal content is how come the author of an articleis actually their username. I have an array of reasons
29 03 2021 | 23 hours 33 minutes

POST

1 article

Adding an image via RESTUI can be done in a snap... once you know how! I have spent a good amount of time (days) researching how come my scripts weren't
23 11 2020 | 4 months

Filtering

1 article

I had the issue where I needed to filter an array list by a specific column. In my instance, the column is language. To be able to reduce the query
15 08 2018 | 2 years 7 months

PHP

1 article

A bug bear that I have had for a while with Drupal content is how come the author of an articleis actually their username. I have an array of reasons
29 03 2021 | 23 hours 33 minutes

form

1 article

Struggling to hide the SwiftUI separators in a List or Form? The challenge Creating the following form, separation lines appeared betweenNameLayout,FinalPhoto,RawPhoto,ApertureLayout andSubmitButton. var body: some View { GeometryReader { geometry
05 03 2021 | 3 weeks 4 days

node

1 article

A bug bear that I have had for a while with Drupal content is how come the author of an articleis actually their username. I have an array of reasons
29 03 2021 | 23 hours 33 minutes

Guzzle

1 article

While I have posted an article about how to POST an image using REST in Drupal 8... the journey there can be slow. Crawling through the errors to eventually
26 09 2017 | 3 years 6 months

migrate

1 article

Using October CMS to migrate your site and update the tables with the plugins run php artisan october:up
19 09 2020 | 6 months 1 week

mail

1 article

Creating a new account in Mail on OSX Big Sur (11.2) and complete the required information for: Email Username Password Account type: IMAP Incoming mail server Outgoing mail server I receive a message "Unable to verify account
03 02 2021 | 1 month 3 weeks

API

1 article

I had an instance where I needed to move content from a plistto the server database. Toachieve this step, I added a few lines of code where the plist was
31 05 2020 | 9 months 4 weeks

load testing

1 article

Load testing verifies the system performance under the expected peak load. The peak load needs to set by a series of parameters that you have benchmarked targets. For example, these
29 03 2021 | 23 hours 32 minutes

homebrew

1 article

Step 1: Install Homebrew Homebrew is the missing package manager for macOS. As per the Homebrew site, paste the following in a macOS Terminal prompt. $ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" This
12 02 2021 | 1 month 2 weeks

languages

1 article

A list of languages for the iOS app in speech mode: Arabic (Saudi Arabia) - ar-SA Chinese (China) - zh-CN Chinese (Hong Kong SAR China) - zh-HK Chinese (Taiwan) - zh-TW Czech (Czech Republic) -
15 05 2018 | 2 years 10 months

Realm

1 article

Updating Realm and RealmSwift from 5.5.x to 10.0.0 brought in the following error RealmSwift 10.1: framework not found realm-sync The greatest clue I came across to solving this issue was on the
28 10 2020 | 5 months