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
32
results
Andrew Fletcher
•
This article assumes that you are running Docker and Lando already. Don't meet this... have a read through the following page "Building a Drupal or Laravel instance on OSX using Lando and Docker" for more.
I'll be using the following: .lando.yml file:
name: alpha
recipe: drupal9
config:
webroot: web
Lando info
Lando provides a suite of useful tools, but for now I will focus on one command info
lando infoThis command exposes information about our running containers or “services”...
Andrew Fletcher
•
Running Docker and attempting to install a web proxy environment where I'm...
Andrew Fletcher
•
Working on an Azure server I ran a mysqldump command to generate a copy of the...
Andrew Fletcher
•
When attempting to backup mysql using the mysqldump command
mysqldump -u root...
Andrew Fletcher
•
How to Create New MySQL User
Before you can create a new MySQL user, you need to...
Andrew Fletcher
•
The generally accepted answer to a mysqldump is:
mysqldump -h [host] -u [user] -p [database_name] [table_name] > [file].sqlOr a variant there of... Of course if you are logged in to the server and working from it you don't need to express the -h [host]
mysqldump -u [user] -p [database_name] [table_name] > [file].sql
But no not for me. I wasn't seeing the success story of a downloaded database file. Instead I was warmly embraced by error land:
mysqldump: Got...
Andrew Fletcher
•
I had been running a few Centos 6 servers just past their EOL (30th November...
Andrew Fletcher
•
I need to set the default php-version of a subscription to php7.3. The...
Andrew Fletcher
•
(104)Connection reset by peer: mod_fcgid: error reading data from FastCGI...
Andrew Fletcher
•
To add ejabberd and run MYSQL to the server I needed to update the server...
Andrew Fletcher
•
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 the image to cover the entire device, so scale aspect fill will be required.
self.backgroundImage = UIImageView(image: UIImage(named: "bgkMain"))
self.backgroundImage.contentMode = .scaleAspectFill
self.view.insertSubview(self.backgroundImage, at: 0)
Set the tint layer
With the background in place, next construct the tint layer. To make...
Andrew Fletcher
•
Working on formatting the date in Xcode, and you come across the situation where...
Andrew Fletcher
•
Adding a floating decimal point for n number of places is quite easy to achieve....
Andrew Fletcher
•
The starting point is to read through and follow the notes outlined on the...
Andrew Fletcher
•
During the process of building the app, there are warnings about the code....