Are you over 18 and want to see adult content?
More Annotations
A complete backup of www.artofzoo.com
Are you over 18 and want to see adult content?
A complete backup of www.topboard.org
Are you over 18 and want to see adult content?
A complete backup of www.thecandidforum.com
Are you over 18 and want to see adult content?
A complete backup of www.www.streamray.com
Are you over 18 and want to see adult content?
A complete backup of www.www.zenra.net
Are you over 18 and want to see adult content?
A complete backup of www.www.nanabook.com
Are you over 18 and want to see adult content?
A complete backup of www.dvdgayonline.com
Are you over 18 and want to see adult content?
Favourite Annotations
داونلود ون - موقع التØميل العربي الاول
Are you over 18 and want to see adult content?
Opel Singapore - Opel new cars, vans & commercial vehicles, Opel offers, Opel news
Are you over 18 and want to see adult content?
Awesome Home Design Ideas and Decor -
Are you over 18 and want to see adult content?
Site officiel de l'Aveyron - Conseil départemental
Are you over 18 and want to see adult content?
Sign in to your account
Are you over 18 and want to see adult content?
Creating Health, Changing Lives | Previnex
Are you over 18 and want to see adult content?
GaveFabrikken | Landets største firmajulegaveleverandør
Are you over 18 and want to see adult content?
ShopAlike.it | Tutti i negozi di Moda & Arredamento ad un solo indirizzo
Are you over 18 and want to see adult content?
Filminebandim - Ä°zlenmesi Gereken Filmler ve Fragmanlar
Are you over 18 and want to see adult content?
A complete backup of lospiratasandroid.blogspot.com
Are you over 18 and want to see adult content?
Text
TALKS | ANDY CARTER
The Dramatic History of the Web Browser. Brighton Web Development Meetup (Online) – November 2020 WordPress North East (Online) – July 2020 dotnet Sheffield – February 2020 dotnet York – October 2019 Umbraco Leeds – September 2019 McrFRED – June 2019 A BEGINNERS GUIDE TO PACKAGE MANAGER BOWER AND USING GULP The Bower bird. Package managers like Composer for PHP and NPM for Node have become essential tools for simplifying a developer’s life. A package manager is a tool for keeping track of what you’ve installed, as well as installing and upgrading packages. USING SCALABLE CSS UNITS FOR FONT SIZES WHAT ARE PHP HEREDOC & NOWDOC? CONNECTING TO SFTP WITH PHP (USING EITHER A PASSWORD OR If you need to connect to SFTP using PHP then the simplest approach I’ve found is to use phpseclib, a library of functions for secure communications.. The library is a Composer package so you will need to have Composer installed, then just require the package as usual:- $ composer require phpseclib/phpseclib. The library provides what it refers to as a “pure-PHP implementation of SFTP VARIABLE SCOPE IN MODERN JAVASCRIPT WITH VAR, LET ANDSEE MORE ONANDY-CARTER.COM
ESSENTIAL VISUAL STUDIO CODE EXTENSIONS FOR PHP DEVELOPERS VS Code. Visual Studio Code is hot stuff right now and is quickly becoming the editor of choice for developers worldwide. It’s available for Mac, Windows and Linux and best of all it’s free.. Personally I was a little skeptical when I first learnt of Microsoft’s latest editor. HOW TO FIX 'IMAGICKEXCEPTION: NOT AUTHORIZED' How to fix 'ImagickException: not authorized' errors when generating images from PDF files using ImageMagick. KEEPING A VAGRANT VIRTUAL BOX'S TIME SYNCED Whilst working on a site I’ve been developing using a Laravel Homestead Vagrant box I discovered that the box’s clock had drifted out of sync with my laptop by about 10 minutes. Normally this wouldn’t be much of an issue for me, but in my case I was trying to authenticate via an API using OAuth and that time difference was causing the authentication to fail. DISABLE MULTIPLE FORM SUBMITS WITH VANILLATALKS | ANDY CARTER
The Dramatic History of the Web Browser. Brighton Web Development Meetup (Online) – November 2020 WordPress North East (Online) – July 2020 dotnet Sheffield – February 2020 dotnet York – October 2019 Umbraco Leeds – September 2019 McrFRED – June 2019 A BEGINNERS GUIDE TO PACKAGE MANAGER BOWER AND USING GULP The Bower bird. Package managers like Composer for PHP and NPM for Node have become essential tools for simplifying a developer’s life. A package manager is a tool for keeping track of what you’ve installed, as well as installing and upgrading packages. USING SCALABLE CSS UNITS FOR FONT SIZES WHAT ARE PHP HEREDOC & NOWDOC? CONNECTING TO SFTP WITH PHP (USING EITHER A PASSWORD OR If you need to connect to SFTP using PHP then the simplest approach I’ve found is to use phpseclib, a library of functions for secure communications.. The library is a Composer package so you will need to have Composer installed, then just require the package as usual:- $ composer require phpseclib/phpseclib. The library provides what it refers to as a “pure-PHP implementation of SFTP VARIABLE SCOPE IN MODERN JAVASCRIPT WITH VAR, LET ANDSEE MORE ONANDY-CARTER.COM
ESSENTIAL VISUAL STUDIO CODE EXTENSIONS FOR PHP DEVELOPERS VS Code. Visual Studio Code is hot stuff right now and is quickly becoming the editor of choice for developers worldwide. It’s available for Mac, Windows and Linux and best of all it’s free.. Personally I was a little skeptical when I first learnt of Microsoft’s latest editor. HOW TO FIX 'IMAGICKEXCEPTION: NOT AUTHORIZED' How to fix 'ImagickException: not authorized' errors when generating images from PDF files using ImageMagick. KEEPING A VAGRANT VIRTUAL BOX'S TIME SYNCED Whilst working on a site I’ve been developing using a Laravel Homestead Vagrant box I discovered that the box’s clock had drifted out of sync with my laptop by about 10 minutes. Normally this wouldn’t be much of an issue for me, but in my case I was trying to authenticate via an API using OAuth and that time difference was causing the authentication to fail. DISABLE MULTIPLE FORM SUBMITS WITH VANILLATALKS | ANDY CARTER
The Dramatic History of the Web Browser. Brighton Web Development Meetup (Online) – November 2020 WordPress North East (Online) – July 2020 dotnet Sheffield – February 2020 dotnet York – October 2019 Umbraco Leeds – September 2019 McrFRED – June 2019ANDY CARTER
Website of Andy Carter, senior developer at Evoluted New Media in Sheffield. Andy develops with PHP and JavaScript using Laravel andCakePHP.
USING LARAVEL'S BOOTABLE ELOQUENT TRAITS In this blog post we’ll take a look at using PHP traits with Laravel’s Eloquent models, hooking them up with events and making them configurable.. Traits are a useful means of writing DRY code. They provide a way of horizontally sharing logic between classes. USE CAKEPHP 2'S UPDATEALL() METHOD WITH CAUTION! I’ve recently noticed a number of people trying to use CakePHP 2’s updateAll() method very badly.. Let’s first get one thing straight: updateAll() is not the intended way of updating a record in CakePHP, use save() for that! In many of the cases I’ve seen recently save() would have been a more suitable choice for saving the data. As long as you pass the record’s primary key in the KEEPING A VAGRANT VIRTUAL BOX'S TIME SYNCED Whilst working on a site I’ve been developing using a Laravel Homestead Vagrant box I discovered that the box’s clock had drifted out of sync with my laptop by about 10 minutes. Normally this wouldn’t be much of an issue for me, but in my case I was trying to authenticate via an API using OAuth and that time difference was causing the authentication to fail. THE DANGERS OF PHP'S $$ A PHP question I particularly like to ask candidates at a job interview is to explain a bit of code that includes the $$ syntax for variable variables.It’s great if the candidate is already familiar with this feature of PHP; but what’s more important to me is that once the candidate understands how this syntax works that they can describe potential issues with using it. SIX LESSER KNOWN COMPOSER COMMANDS YOU SHOULD KNOW Composer is the go to package manager for PHP.If you’re a PHP developer you more than likely use it every day and run the commands require, install and update ENFORCING A PHP VERSION FOR INSTALLED COMPOSER PACKAGES If your development and production environments don’t match you can easily get tripped up when the time comes to deploy to the live server. It’s not too uncommon for developers to find themselves working with one version of PHP and using another in an app or website’s final destination. If you use Composer to manage PHP packages it would be nice to be able to take this into account to JOINING RELATED SALESFORCE OBJECTS IN SOQL Objects in Salesforce can be related to one another via a parent-child relationship. For example, the Account object is the parent to the child Contact object; an Account record can have one or many Contactrecords.
DISABLE MULTIPLE FORM SUBMITS WITH VANILLA Earlier this week I was helping a colleague write some vanilla JavaScript to prevent a form from being submitted multiple times by an overzealous button clicker. USING SCALABLE CSS UNITS FOR FONT SIZES A BEGINNERS GUIDE TO PACKAGE MANAGER BOWER AND USING GULP The Bower bird. Package managers like Composer for PHP and NPM for Node have become essential tools for simplifying a developer’s life. A package manager is a tool for keeping track of what you’ve installed, as well as installing and upgrading packages. ESSENTIAL VISUAL STUDIO CODE EXTENSIONS FOR PHP DEVELOPERS VS Code. Visual Studio Code is hot stuff right now and is quickly becoming the editor of choice for developers worldwide. It’s available for Mac, Windows and Linux and best of all it’s free.. Personally I was a little skeptical when I first learnt of Microsoft’s latest editor. WHAT ARE PHP HEREDOC & NOWDOC? CONNECTING TO SFTP WITH PHP (USING EITHER A PASSWORD OR If you need to connect to SFTP using PHP then the simplest approach I’ve found is to use phpseclib, a library of functions for secure communications.. The library is a Composer package so you will need to have Composer installed, then just require the package as usual:- $ composer require phpseclib/phpseclib. The library provides what it refers to as a “pure-PHP implementation of SFTP AN INTRODUCTION TO USING SALESFORCE'S REST API WITH PHPSEE MORE ONANDY-CARTER.COM
VARIABLE SCOPE IN MODERN JAVASCRIPT WITH VAR, LET ANDSEE MORE ONANDY-CARTER.COM
HOW TO FIX 'IMAGICKEXCEPTION: NOT AUTHORIZED' Finally, we need to restart PHP-FPM (or nginx/apache) for the policy change to be implemented: sudo service php7.4-fpm restart. This resolved our issue. ImagickException was no longer being thrown and ImageMagick was generating our thumbnails once more. PHP. SIX LESSER KNOWN COMPOSER COMMANDS YOU SHOULD KNOW KEEPING A VAGRANT VIRTUAL BOX'S TIME SYNCED Whilst working on a site I’ve been developing using a Laravel Homestead Vagrant box I discovered that the box’s clock had drifted out of sync with my laptop by about 10 minutes. Normally this wouldn’t be much of an issue for me, but in my case I was trying to authenticate via an API using OAuth and that time difference was causing the authentication to fail. USING SCALABLE CSS UNITS FOR FONT SIZES A BEGINNERS GUIDE TO PACKAGE MANAGER BOWER AND USING GULP The Bower bird. Package managers like Composer for PHP and NPM for Node have become essential tools for simplifying a developer’s life. A package manager is a tool for keeping track of what you’ve installed, as well as installing and upgrading packages. ESSENTIAL VISUAL STUDIO CODE EXTENSIONS FOR PHP DEVELOPERS VS Code. Visual Studio Code is hot stuff right now and is quickly becoming the editor of choice for developers worldwide. It’s available for Mac, Windows and Linux and best of all it’s free.. Personally I was a little skeptical when I first learnt of Microsoft’s latest editor. WHAT ARE PHP HEREDOC & NOWDOC? CONNECTING TO SFTP WITH PHP (USING EITHER A PASSWORD OR If you need to connect to SFTP using PHP then the simplest approach I’ve found is to use phpseclib, a library of functions for secure communications.. The library is a Composer package so you will need to have Composer installed, then just require the package as usual:- $ composer require phpseclib/phpseclib. The library provides what it refers to as a “pure-PHP implementation of SFTP AN INTRODUCTION TO USING SALESFORCE'S REST API WITH PHPSEE MORE ONANDY-CARTER.COM
VARIABLE SCOPE IN MODERN JAVASCRIPT WITH VAR, LET ANDSEE MORE ONANDY-CARTER.COM
HOW TO FIX 'IMAGICKEXCEPTION: NOT AUTHORIZED' Finally, we need to restart PHP-FPM (or nginx/apache) for the policy change to be implemented: sudo service php7.4-fpm restart. This resolved our issue. ImagickException was no longer being thrown and ImageMagick was generating our thumbnails once more. PHP. SIX LESSER KNOWN COMPOSER COMMANDS YOU SHOULD KNOW KEEPING A VAGRANT VIRTUAL BOX'S TIME SYNCED Whilst working on a site I’ve been developing using a Laravel Homestead Vagrant box I discovered that the box’s clock had drifted out of sync with my laptop by about 10 minutes. Normally this wouldn’t be much of an issue for me, but in my case I was trying to authenticate via an API using OAuth and that time difference was causing the authentication to fail. USING SCALABLE CSS UNITS FOR FONT SIZES Using em Units. A more suitable CSS unit for font sizes is the em. The em is a scalable unit, 1em is equal to the current font size; so if the parent’s font size is 16px, 1em is 16px and 2em is 32px. The important thing to remember is that the em unit is relative to its parent. By setting the base font size and then defining the font sizesof
A BEGINNERS GUIDE TO THE TASK RUNNER GULP We’ll add some tasks to this file in a moment, but first it is perhaps worth just quickly introducing the four Gulp methods that we will be using:-. gulp.task (name, fn) – registers a function with a name. gulp.watch (glob, fn) – runs a function when a file that matches the glob changes. USING LARAVEL'S BOOTABLE ELOQUENT TRAITS The trait’s boot method works just like an Eloquent model’s boot method. So you can hook in to any of the Eloquent events from here. The boot method of each associated trait will get called at the same time as the model’s boot method. Under the hood Laravel is using the PHP method class_uses which returns an array containing the names of HOW TO ENABLE AUTO-CORRECT FOR GIT COMMANDS git config --global help.autocorrect 20. This will enable auto-correct and suggested commands will run after 2 seconds. The --global flag enables it for all your local Git repositories. If you only want it enabled on a specific repository just emit this flag. So if I was to mistype the Git commit command as say cmmit Git would usually respond USE CAKEPHP 2'S UPDATEALL() METHOD WITH CAUTION! I’ve recently noticed a number of people trying to use CakePHP 2’s updateAll() method very badly.. Let’s first get one thing straight: updateAll() is not the intended way of updating a record in CakePHP, use save() for that! In many of the cases I’ve seen recently save() would have been a more suitable choice for saving the data. As long as you pass the record’s primary key in the SIX LESSER KNOWN COMPOSER COMMANDS YOU SHOULD KNOW First up is the show command. It lets you view all the installed packages of a project (including the dependencies) as well as view information about a specific package. All of this information can be found in the Composer lock file, but using show provides an easier and more convenient way of extracting the information. DISABLE MULTIPLE FORM SUBMITS WITH VANILLA Disable the Submit Button. The simplest thing to do is disable the submit button the first time the form is submitted so the button cannot be clicked again. We do this by listening for the form being submitted using addEventListener and then adding the disabled attribute to the form’s submit button:-. var form = document.querySelector('form EXPORTING DATA TO A DOWNLOADABLE CSV FILE WITH CAKEPHP 24/02/16: If you’re looking for a CakePHP 3 solution check out my updated article Exporting Data to a Downloadable CSV File with CakePHP 3 and CsvView. 22/04/14: As pointed out by Mark in his comment generating CSV s in CakePHP can be easily done using the csvView plugin.However, the method described below is still useful to know as it can be extended for other types of file downloads. SETTING NEGATIVE NUMBERS TO ZERO IN PHP A simple little trick in PHP for when you need to make sure that a value doesn’t drop below zero. For example, you might be subtracting a discount from a basket total and not want the amount to be paid tobecome negative.
LOADING CAKEPHP MODELS INSIDE OTHER MODELS AND CONTROLLERS Oh shit m8, thank you so much for that vital information! VinÃcius – 27 Oct 2016 12:06pm WHAT ARE PHP HEREDOC & NOWDOC? A BEGINNERS GUIDE TO PACKAGE MANAGER BOWER AND USING GULP The Bower bird. Package managers like Composer for PHP and NPM for Node have become essential tools for simplifying a developer’s life. A package manager is a tool for keeping track of what you’ve installed, as well as installing and upgrading packages. USING SCALABLE CSS UNITS FOR FONT SIZES ESSENTIAL VISUAL STUDIO CODE EXTENSIONS FOR PHP DEVELOPERS VS Code. Visual Studio Code is hot stuff right now and is quickly becoming the editor of choice for developers worldwide. It’s available for Mac, Windows and Linux and best of all it’s free.. Personally I was a little skeptical when I first learnt of Microsoft’s latest editor. AN INTRODUCTION TO USING SALESFORCE'S REST API WITH PHPSEE MORE ONANDY-CARTER.COM
VARIABLE SCOPE IN MODERN JAVASCRIPT WITH VAR, LET ANDSEE MORE ONANDY-CARTER.COM
CONNECTING TO SFTP WITH PHP (USING EITHER A PASSWORD OR If you need to connect to SFTP using PHP then the simplest approach I’ve found is to use phpseclib, a library of functions for secure communications.. The library is a Composer package so you will need to have Composer installed, then just require the package as usual:- $ composer require phpseclib/phpseclib. The library provides what it refers to as a “pure-PHP implementation of SFTP SIX LESSER KNOWN COMPOSER COMMANDS YOU SHOULD KNOW HOW TO FIX 'IMAGICKEXCEPTION: NOT AUTHORIZED' How to fix 'ImagickException: not authorized' errors when generating images from PDF files using ImageMagick. KEEPING A VAGRANT VIRTUAL BOX'S TIME SYNCED Whilst working on a site I’ve been developing using a Laravel Homestead Vagrant box I discovered that the box’s clock had drifted out of sync with my laptop by about 10 minutes. Normally this wouldn’t be much of an issue for me, but in my case I was trying to authenticate via an API using OAuth and that time difference was causing the authentication to fail. WHAT ARE PHP HEREDOC & NOWDOC? A BEGINNERS GUIDE TO PACKAGE MANAGER BOWER AND USING GULP The Bower bird. Package managers like Composer for PHP and NPM for Node have become essential tools for simplifying a developer’s life. A package manager is a tool for keeping track of what you’ve installed, as well as installing and upgrading packages. USING SCALABLE CSS UNITS FOR FONT SIZES ESSENTIAL VISUAL STUDIO CODE EXTENSIONS FOR PHP DEVELOPERS VS Code. Visual Studio Code is hot stuff right now and is quickly becoming the editor of choice for developers worldwide. It’s available for Mac, Windows and Linux and best of all it’s free.. Personally I was a little skeptical when I first learnt of Microsoft’s latest editor. AN INTRODUCTION TO USING SALESFORCE'S REST API WITH PHPSEE MORE ONANDY-CARTER.COM
VARIABLE SCOPE IN MODERN JAVASCRIPT WITH VAR, LET ANDSEE MORE ONANDY-CARTER.COM
CONNECTING TO SFTP WITH PHP (USING EITHER A PASSWORD OR If you need to connect to SFTP using PHP then the simplest approach I’ve found is to use phpseclib, a library of functions for secure communications.. The library is a Composer package so you will need to have Composer installed, then just require the package as usual:- $ composer require phpseclib/phpseclib. The library provides what it refers to as a “pure-PHP implementation of SFTP SIX LESSER KNOWN COMPOSER COMMANDS YOU SHOULD KNOW HOW TO FIX 'IMAGICKEXCEPTION: NOT AUTHORIZED' How to fix 'ImagickException: not authorized' errors when generating images from PDF files using ImageMagick. KEEPING A VAGRANT VIRTUAL BOX'S TIME SYNCED Whilst working on a site I’ve been developing using a Laravel Homestead Vagrant box I discovered that the box’s clock had drifted out of sync with my laptop by about 10 minutes. Normally this wouldn’t be much of an issue for me, but in my case I was trying to authenticate via an API using OAuth and that time difference was causing the authentication to fail. USING SCALABLE CSS UNITS FOR FONT SIZES Your posting clarified why I haven’t been able to prevent our 0.8em font from creating progressively smaller nested bullet item fonts. Our department uses IE 8 and produces both printed and online documentation from the same source which uses 0.8em for font size. USING LARAVEL'S BOOTABLE ELOQUENT TRAITS In this blog post we’ll take a look at using PHP traits with Laravel’s Eloquent models, hooking them up with events and making them configurable.. Traits are a useful means of writing DRY code. They provide a way of horizontally sharing logic between classes. A BEGINNERS GUIDE TO THE TASK RUNNER GULP You’ve possibly heard of the task runner Grunt.If you’ve not used it it’s basically a tool for automating tasks like minification, compilation, unit testing, etc..However, a newer task runner has emerged and is picking up speed, Gulp. What is a Task Runner SIX LESSER KNOWN COMPOSER COMMANDS YOU SHOULD KNOW Composer is the go to package manager for PHP.If you’re a PHP developer you more than likely use it every day and run the commands require, install and update USE CAKEPHP 2'S UPDATEALL() METHOD WITH CAUTION! I’ve recently noticed a number of people trying to use CakePHP 2’s updateAll() method very badly.. Let’s first get one thing straight: updateAll() is not the intended way of updating a record in CakePHP, use save() for that! In many of the cases I’ve seen recently save() would have been a more suitable choice for saving the data. As long as you pass the record’s primary key in the HOW TO ENABLE AUTO-CORRECT FOR GIT COMMANDS Did you know that if you mistype a Git command you can automatically run the suggested fix? I’ve been using Git for many years now and only just come across this feature today. EXPORTING DATA TO A DOWNLOADABLE CSV FILE WITH CAKEPHP 24/02/16: If you’re looking for a CakePHP 3 solution check out my updated article Exporting Data to a Downloadable CSV File with CakePHP 3 and CsvView. 22/04/14: As pointed out by Mark in his comment generating CSV s in CakePHP can be easily done using the csvView plugin.However, the method described below is still useful to know as it can be extended for other types of file downloads. DISABLE MULTIPLE FORM SUBMITS WITH VANILLA Earlier this week I was helping a colleague write some vanilla JavaScript to prevent a form from being submitted multiple times by an overzealous button clicker. LOADING CAKEPHP MODELS INSIDE OTHER MODELS AND CONTROLLERS Oh shit m8, thank you so much for that vital information! VinÃcius – 27 Oct 2016 12:06pm SETTING NEGATIVE NUMBERS TO ZERO IN PHP A simple little trick in PHP for when you need to make sure that a value doesn’t drop below zero. For example, you might be subtracting a discount from a basket total and not want the amount to be paid tobecome negative.
USING SCALABLE CSS UNITS FOR FONT SIZES A BEGINNERS GUIDE TO PACKAGE MANAGER BOWER AND USING GULP The Bower bird. Package managers like Composer for PHP and NPM for Node have become essential tools for simplifying a developer’s life. A package manager is a tool for keeping track of what you’ve installed, as well as installing and upgrading packages. VARIABLE SCOPE IN MODERN JAVASCRIPT WITH VAR, LET ANDSEE MORE ONANDY-CARTER.COM
WHAT ARE PHP HEREDOC & NOWDOC? ESSENTIAL VISUAL STUDIO CODE EXTENSIONS FOR PHP DEVELOPERS VS Code. Visual Studio Code is hot stuff right now and is quickly becoming the editor of choice for developers worldwide. It’s available for Mac, Windows and Linux and best of all it’s free.. Personally I was a little skeptical when I first learnt of Microsoft’s latest editor. AN INTRODUCTION TO USING SALESFORCE'S REST API WITH PHPSEE MORE ONANDY-CARTER.COM
CONNECTING TO SFTP WITH PHP (USING EITHER A PASSWORD OR If you need to connect to SFTP using PHP then the simplest approach I’ve found is to use phpseclib, a library of functions for secure communications.. The library is a Composer package so you will need to have Composer installed, then just require the package as usual:- $ composer require phpseclib/phpseclib. The library provides what it refers to as a “pure-PHP implementation of SFTP ENFORCING A PHP VERSION FOR INSTALLED COMPOSER PACKAGES composer config platform.php 5.6.1. This will set the platform option in the composer.json file for us. In this example it would add PHP 5.6.1 to the JSON file just like in the previous example. You can also use the -g flag to set this globally. On a Composer package platform requirements are added just like package dependencies. HOW TO FIX 'IMAGICKEXCEPTION: NOT AUTHORIZED' Finally, we need to restart PHP-FPM (or nginx/apache) for the policy change to be implemented: sudo service php7.4-fpm restart. This resolved our issue. ImagickException was no longer being thrown and ImageMagick was generating our thumbnails once more. PHP. DISABLE MULTIPLE FORM SUBMITS WITH VANILLA USING SCALABLE CSS UNITS FOR FONT SIZES A BEGINNERS GUIDE TO PACKAGE MANAGER BOWER AND USING GULP The Bower bird. Package managers like Composer for PHP and NPM for Node have become essential tools for simplifying a developer’s life. A package manager is a tool for keeping track of what you’ve installed, as well as installing and upgrading packages. VARIABLE SCOPE IN MODERN JAVASCRIPT WITH VAR, LET ANDSEE MORE ONANDY-CARTER.COM
WHAT ARE PHP HEREDOC & NOWDOC? ESSENTIAL VISUAL STUDIO CODE EXTENSIONS FOR PHP DEVELOPERS VS Code. Visual Studio Code is hot stuff right now and is quickly becoming the editor of choice for developers worldwide. It’s available for Mac, Windows and Linux and best of all it’s free.. Personally I was a little skeptical when I first learnt of Microsoft’s latest editor. AN INTRODUCTION TO USING SALESFORCE'S REST API WITH PHPSEE MORE ONANDY-CARTER.COM
CONNECTING TO SFTP WITH PHP (USING EITHER A PASSWORD OR If you need to connect to SFTP using PHP then the simplest approach I’ve found is to use phpseclib, a library of functions for secure communications.. The library is a Composer package so you will need to have Composer installed, then just require the package as usual:- $ composer require phpseclib/phpseclib. The library provides what it refers to as a “pure-PHP implementation of SFTP ENFORCING A PHP VERSION FOR INSTALLED COMPOSER PACKAGES composer config platform.php 5.6.1. This will set the platform option in the composer.json file for us. In this example it would add PHP 5.6.1 to the JSON file just like in the previous example. You can also use the -g flag to set this globally. On a Composer package platform requirements are added just like package dependencies. HOW TO FIX 'IMAGICKEXCEPTION: NOT AUTHORIZED' Finally, we need to restart PHP-FPM (or nginx/apache) for the policy change to be implemented: sudo service php7.4-fpm restart. This resolved our issue. ImagickException was no longer being thrown and ImageMagick was generating our thumbnails once more. PHP. DISABLE MULTIPLE FORM SUBMITS WITH VANILLA AUTOMATING NPM AND COMPOSER WITH GIT HOOKS If you regularly work with package managers like NPM, Yarn or Composer you’ve probably forgotten at one time or another to update the packages after checking out another branch or pulling from a remote Git repository.There can be noticeable differences between the required packages of two different branches that mean you need to fetch the relevant files when you switch between them. A BEGINNERS GUIDE TO THE TASK RUNNER GULP We’ll add some tasks to this file in a moment, but first it is perhaps worth just quickly introducing the four Gulp methods that we will be using:-. gulp.task (name, fn) – registers a function with a name. gulp.watch (glob, fn) – runs a function when a file that matches the glob changes. USING LARAVEL'S BOOTABLE ELOQUENT TRAITS The trait’s boot method works just like an Eloquent model’s boot method. So you can hook in to any of the Eloquent events from here. The boot method of each associated trait will get called at the same time as the model’s boot method. Under the hood Laravel is using the PHP method class_uses which returns an array containing the names of USE CAKEPHP 2'S UPDATEALL() METHOD WITH CAUTION! I’ve recently noticed a number of people trying to use CakePHP 2’s updateAll() method very badly.. Let’s first get one thing straight: updateAll() is not the intended way of updating a record in CakePHP, use save() for that! In many of the cases I’ve seen recently save() would have been a more suitable choice for saving the data. As long as you pass the record’s primary key in the DISABLE MULTIPLE FORM SUBMITS WITH VANILLA Disable the Submit Button. The simplest thing to do is disable the submit button the first time the form is submitted so the button cannot be clicked again. We do this by listening for the form being submitted using addEventListener and then adding the disabled attribute to the form’s submit button:-. var form = document.querySelector('form OVERRIDING & EXTENDING A PHP TRAIT METHOD PHP traits provide a convenient means of sharing methods between classes. There are times though that we may need to override or extend a method defined in a trait attached to a class. Let’s take a look at how we can achieve this. SIX LESSER KNOWN COMPOSER COMMANDS YOU SHOULD KNOW First up is the show command. It lets you view all the installed packages of a project (including the dependencies) as well as view information about a specific package. All of this information can be found in the Composer lock file, but using show provides an easier and more convenient way of extracting the information. LOADING CAKEPHP MODELS INSIDE OTHER MODELS AND CONTROLLERS Oh shit m8, thank you so much for that vital information! VinÃcius – 27 Oct 2016 12:06pm JOINING RELATED SALESFORCE OBJECTS IN SOQL Joining Related Salesforce Objects in SOQL. Objects in Salesforce can be related to one another via a parent-child relationship. For example, the Account object is the parent to the child Contact object; an Account record can have one or many Contact records. Much like in SQL, the child has a field that acts as a foreign key to the parentrecord.
KEEPING A VAGRANT VIRTUAL BOX'S TIME SYNCED Whilst working on a site I’ve been developing using a Laravel Homestead Vagrant box I discovered that the box’s clock had drifted out of sync with my laptop by about 10 minutes. Normally this wouldn’t be much of an issue for me, but in my case I was trying to authenticate via an API using OAuth and that time difference was causing the authentication to fail. USING SCALABLE CSS UNITS FOR FONT SIZES A BEGINNERS GUIDE TO PACKAGE MANAGER BOWER AND USING GULP The Bower bird. Package managers like Composer for PHP and NPM for Node have become essential tools for simplifying a developer’s life. A package manager is a tool for keeping track of what you’ve installed, as well as installing and upgrading packages. WHAT ARE PHP HEREDOC & NOWDOC? VARIABLE SCOPE IN MODERN JAVASCRIPT WITH VAR, LET ANDSEE MORE ONANDY-CARTER.COM
ESSENTIAL VISUAL STUDIO CODE EXTENSIONS FOR PHP DEVELOPERS VS Code. Visual Studio Code is hot stuff right now and is quickly becoming the editor of choice for developers worldwide. It’s available for Mac, Windows and Linux and best of all it’s free.. Personally I was a little skeptical when I first learnt of Microsoft’s latest editor. AN INTRODUCTION TO USING SALESFORCE'S REST API WITH PHPSEE MORE ONANDY-CARTER.COM
CONNECTING TO SFTP WITH PHP (USING EITHER A PASSWORD OR If you need to connect to SFTP using PHP then the simplest approach I’ve found is to use phpseclib, a library of functions for secure communications.. The library is a Composer package so you will need to have Composer installed, then just require the package as usual:- $ composer require phpseclib/phpseclib. The library provides what it refers to as a “pure-PHP implementation of SFTP ENFORCING A PHP VERSION FOR INSTALLED COMPOSER PACKAGES composer config platform.php 5.6.1. This will set the platform option in the composer.json file for us. In this example it would add PHP 5.6.1 to the JSON file just like in the previous example. You can also use the -g flag to set this globally. On a Composer package platform requirements are added just like package dependencies. HOW TO FIX 'IMAGICKEXCEPTION: NOT AUTHORIZED' Finally, we need to restart PHP-FPM (or nginx/apache) for the policy change to be implemented: sudo service php7.4-fpm restart. This resolved our issue. ImagickException was no longer being thrown and ImageMagick was generating our thumbnails once more. PHP. DISABLE MULTIPLE FORM SUBMITS WITH VANILLA USING SCALABLE CSS UNITS FOR FONT SIZES A BEGINNERS GUIDE TO PACKAGE MANAGER BOWER AND USING GULP The Bower bird. Package managers like Composer for PHP and NPM for Node have become essential tools for simplifying a developer’s life. A package manager is a tool for keeping track of what you’ve installed, as well as installing and upgrading packages. WHAT ARE PHP HEREDOC & NOWDOC? VARIABLE SCOPE IN MODERN JAVASCRIPT WITH VAR, LET ANDSEE MORE ONANDY-CARTER.COM
ESSENTIAL VISUAL STUDIO CODE EXTENSIONS FOR PHP DEVELOPERS VS Code. Visual Studio Code is hot stuff right now and is quickly becoming the editor of choice for developers worldwide. It’s available for Mac, Windows and Linux and best of all it’s free.. Personally I was a little skeptical when I first learnt of Microsoft’s latest editor. AN INTRODUCTION TO USING SALESFORCE'S REST API WITH PHPSEE MORE ONANDY-CARTER.COM
CONNECTING TO SFTP WITH PHP (USING EITHER A PASSWORD OR If you need to connect to SFTP using PHP then the simplest approach I’ve found is to use phpseclib, a library of functions for secure communications.. The library is a Composer package so you will need to have Composer installed, then just require the package as usual:- $ composer require phpseclib/phpseclib. The library provides what it refers to as a “pure-PHP implementation of SFTP ENFORCING A PHP VERSION FOR INSTALLED COMPOSER PACKAGES composer config platform.php 5.6.1. This will set the platform option in the composer.json file for us. In this example it would add PHP 5.6.1 to the JSON file just like in the previous example. You can also use the -g flag to set this globally. On a Composer package platform requirements are added just like package dependencies. HOW TO FIX 'IMAGICKEXCEPTION: NOT AUTHORIZED' Finally, we need to restart PHP-FPM (or nginx/apache) for the policy change to be implemented: sudo service php7.4-fpm restart. This resolved our issue. ImagickException was no longer being thrown and ImageMagick was generating our thumbnails once more. PHP. DISABLE MULTIPLE FORM SUBMITS WITH VANILLAANDY CARTER
Website of Andy Carter, senior developer at Evoluted New Media in Sheffield. Andy develops with PHP and JavaScript using Laravel andCakePHP.
WEB DEVELOPMENT BLOG Debunking the Web Development ‘5 Minute Fix’ Myth. I recently wrote this piece for the Evoluted blog to debunk the false perception that quick fixes can be done in 5 minutes. As developers, we often underestimate our own processes and devalue the work we do. I wanted to highlight the many stages of the development process for bug fixes. A BEGINNERS GUIDE TO THE TASK RUNNER GULP We’ll add some tasks to this file in a moment, but first it is perhaps worth just quickly introducing the four Gulp methods that we will be using:-. gulp.task (name, fn) – registers a function with a name. gulp.watch (glob, fn) – runs a function when a file that matches the glob changes. USING LARAVEL'S BOOTABLE ELOQUENT TRAITS The trait’s boot method works just like an Eloquent model’s boot method. So you can hook in to any of the Eloquent events from here. The boot method of each associated trait will get called at the same time as the model’s boot method. Under the hood Laravel is using the PHP method class_uses which returns an array containing the names of DISABLE MULTIPLE FORM SUBMITS WITH VANILLA Disable the Submit Button. The simplest thing to do is disable the submit button the first time the form is submitted so the button cannot be clicked again. We do this by listening for the form being submitted using addEventListener and then adding the disabled attribute to the form’s submit button:-. var form = document.querySelector('form OVERRIDING & EXTENDING A PHP TRAIT METHOD PHP traits provide a convenient means of sharing methods between classes. There are times though that we may need to override or extend a method defined in a trait attached to a class. Let’s take a look at how we can achieve this. LOADING CAKEPHP MODELS INSIDE OTHER MODELS AND CONTROLLERS Oh shit m8, thank you so much for that vital information! VinÃcius – 27 Oct 2016 12:06pm SIX LESSER KNOWN COMPOSER COMMANDS YOU SHOULD KNOW First up is the show command. It lets you view all the installed packages of a project (including the dependencies) as well as view information about a specific package. All of this information can be found in the Composer lock file, but using show provides an easier and more convenient way of extracting the information. JOINING RELATED SALESFORCE OBJECTS IN SOQL Joining Related Salesforce Objects in SOQL. Objects in Salesforce can be related to one another via a parent-child relationship. For example, the Account object is the parent to the child Contact object; an Account record can have one or many Contact records. Much like in SQL, the child has a field that acts as a foreign key to the parentrecord.
KEEPING A VAGRANT VIRTUAL BOX'S TIME SYNCED Whilst working on a site I’ve been developing using a Laravel Homestead Vagrant box I discovered that the box’s clock had drifted out of sync with my laptop by about 10 minutes. Normally this wouldn’t be much of an issue for me, but in my case I was trying to authenticate via an API using OAuth and that time difference was causing the authentication to fail.ANDY CARTER
Website of Andy Carter, senior developer at Evoluted New Media in Sheffield. Andy develops with PHP and JavaScript using Laravel andCakePHP.
TALKS | ANDY CARTER
Speaking at dotNet Sheffield (2020) Since 2018, I have been speaking at numerous local user-groups in the North of England on a variety of subjects. Details of the talks I have given so far can be found below. USING SCALABLE CSS UNITS FOR FONT SIZES A BEGINNERS GUIDE TO PACKAGE MANAGER BOWER AND USING GULPHOW TO USE BOWERBOWER PACKAGE MANAGERBOWER PACKAGE MANAGER VISUAL STUDIOHOW TO INSTALL BOWERBOWER DOWNLOADVISUAL STUDIO BOWER The Bower bird. Package managers like Composer for PHP and NPM for Node have become essential tools for simplifying a developer’s life. A package manager is a tool for keeping track of what you’ve installed, as well as installing and upgrading packages. ESSENTIAL VISUAL STUDIO CODE EXTENSIONS FOR PHP DEVELOPERSVISUAL STUDIO CODE INSTALL PHP VS Code. Visual Studio Code is hot stuff right now and is quickly becoming the editor of choice for developers worldwide. It’s available for Mac, Windows and Linux and best of all it’s free.. Personally I was a little skeptical when I first learnt of Microsoft’s latest editor. VARIABLE SCOPE IN MODERN JAVASCRIPT WITH VAR, LET ANDSEE MORE ONANDY-CARTER.COM
CONNECTING TO SFTP WITH PHP (USING EITHER A PASSWORD ORHOW TO SFTP A FILEHOW TO ACCESS AN FTP SITEHOW TO USE FTPCONNECT TO SFTP COMMAND LINECONNECT TO SFTP FILEZILLACONNECT TO SFTP SERVER If you need to connect to SFTP using PHP then the simplest approach I’ve found is to use phpseclib, a library of functions for secure communications.. The library is a Composer package so you will need to have Composer installed, then just require the package as usual:- $ composer require phpseclib/phpseclib. The library provides what it refers to as a “pure-PHP implementation of SFTP HOW TO FIX 'IMAGICKEXCEPTION: NOT AUTHORIZED' Finally, we need to restart PHP-FPM (or nginx/apache) for the policy change to be implemented: sudo service php7.4-fpm restart. This resolved our issue. ImagickException was no longer being thrown and ImageMagick was generating our thumbnails once more. PHP. KEEPING A VAGRANT VIRTUAL BOX'S TIME SYNCED Whilst working on a site I’ve been developing using a Laravel Homestead Vagrant box I discovered that the box’s clock had drifted out of sync with my laptop by about 10 minutes. Normally this wouldn’t be much of an issue for me, but in my case I was trying to authenticate via an API using OAuth and that time difference was causing the authentication to fail. DISABLE MULTIPLE FORM SUBMITS WITH VANILLAANDY CARTER
Website of Andy Carter, senior developer at Evoluted New Media in Sheffield. Andy develops with PHP and JavaScript using Laravel andCakePHP.
TALKS | ANDY CARTER
Speaking at dotNet Sheffield (2020) Since 2018, I have been speaking at numerous local user-groups in the North of England on a variety of subjects. Details of the talks I have given so far can be found below. USING SCALABLE CSS UNITS FOR FONT SIZES A BEGINNERS GUIDE TO PACKAGE MANAGER BOWER AND USING GULPHOW TO USE BOWERBOWER PACKAGE MANAGERBOWER PACKAGE MANAGER VISUAL STUDIOHOW TO INSTALL BOWERBOWER DOWNLOADVISUAL STUDIO BOWER The Bower bird. Package managers like Composer for PHP and NPM for Node have become essential tools for simplifying a developer’s life. A package manager is a tool for keeping track of what you’ve installed, as well as installing and upgrading packages. ESSENTIAL VISUAL STUDIO CODE EXTENSIONS FOR PHP DEVELOPERSVISUAL STUDIO CODE INSTALL PHP VS Code. Visual Studio Code is hot stuff right now and is quickly becoming the editor of choice for developers worldwide. It’s available for Mac, Windows and Linux and best of all it’s free.. Personally I was a little skeptical when I first learnt of Microsoft’s latest editor. VARIABLE SCOPE IN MODERN JAVASCRIPT WITH VAR, LET ANDSEE MORE ONANDY-CARTER.COM
CONNECTING TO SFTP WITH PHP (USING EITHER A PASSWORD ORHOW TO SFTP A FILEHOW TO ACCESS AN FTP SITEHOW TO USE FTPCONNECT TO SFTP COMMAND LINECONNECT TO SFTP FILEZILLACONNECT TO SFTP SERVER If you need to connect to SFTP using PHP then the simplest approach I’ve found is to use phpseclib, a library of functions for secure communications.. The library is a Composer package so you will need to have Composer installed, then just require the package as usual:- $ composer require phpseclib/phpseclib. The library provides what it refers to as a “pure-PHP implementation of SFTP HOW TO FIX 'IMAGICKEXCEPTION: NOT AUTHORIZED' Finally, we need to restart PHP-FPM (or nginx/apache) for the policy change to be implemented: sudo service php7.4-fpm restart. This resolved our issue. ImagickException was no longer being thrown and ImageMagick was generating our thumbnails once more. PHP. KEEPING A VAGRANT VIRTUAL BOX'S TIME SYNCED Whilst working on a site I’ve been developing using a Laravel Homestead Vagrant box I discovered that the box’s clock had drifted out of sync with my laptop by about 10 minutes. Normally this wouldn’t be much of an issue for me, but in my case I was trying to authenticate via an API using OAuth and that time difference was causing the authentication to fail. DISABLE MULTIPLE FORM SUBMITS WITH VANILLAANDY CARTER
Website of Andy Carter, senior developer at Evoluted New Media in Sheffield. Andy develops with PHP and JavaScript using Laravel andCakePHP.
TALKS | ANDY CARTER
Speaking at dotNet Sheffield (2020) Since 2018, I have been speaking at numerous local user-groups in the North of England on a variety of subjects. Details of the talks I have given so far can be found below.ABOUT | ANDY CARTER
About | Andy Carter. My name is Andy, and I’m a web developer living in the steel city of Sheffield in the North of England. I currently work as a senior developer at Evoluted New Media. I generally develop in PHP and JavaScript as well as producing semantic and valid HTML andCSS. I
WEB DEVELOPMENT BLOG Debunking the Web Development ‘5 Minute Fix’ Myth. I recently wrote this piece for the Evoluted blog to debunk the false perception that quick fixes can be done in 5 minutes. As developers, we often underestimate our own processes and devalue the work we do. I wanted to highlight the many stages of the development process for bug fixes. WEB DEVELOPMENT BLOG I’ve written an introduction to inuit.css — the object oriented CSS framework from CSS guru Harry Roberts — over on Think Tank.. inuit.css is an Object Oriented CSS (OOCSS) framework that uses Sass and a BEM-style naming convention.It comes with a powerful library of objects and abstractions that you can opt-in to (so there’s little CSS bloat from unwanted objects). A BEGINNERS GUIDE TO THE TASK RUNNER GULP We’ll add some tasks to this file in a moment, but first it is perhaps worth just quickly introducing the four Gulp methods that we will be using:-. gulp.task (name, fn) – registers a function with a name. gulp.watch (glob, fn) – runs a function when a file that matches the glob changes. ENFORCING A PHP VERSION FOR INSTALLED COMPOSER PACKAGES composer config platform.php 5.6.1. This will set the platform option in the composer.json file for us. In this example it would add PHP 5.6.1 to the JSON file just like in the previous example. You can also use the -g flag to set this globally. On a Composer package platform requirements are added just like package dependencies. DISABLE MULTIPLE FORM SUBMITS WITH VANILLA Disable the Submit Button. The simplest thing to do is disable the submit button the first time the form is submitted so the button cannot be clicked again. We do this by listening for the form being submitted using addEventListener and then adding the disabled attribute to the form’s submit button:-. var form = document.querySelector('form SIX LESSER KNOWN COMPOSER COMMANDS YOU SHOULD KNOW First up is the show command. It lets you view all the installed packages of a project (including the dependencies) as well as view information about a specific package. All of this information can be found in the Composer lock file, but using show provides an easier and more convenient way of extracting the information. RECURSIVELY REMOVE A DIRECTORY IN PHP A simple method for recursively deleting a directory and all itscontent in PHP.
ANDY CARTER
Website of Andy Carter, senior developer at Evoluted New Media in Sheffield. Andy develops with PHP and JavaScript using Laravel andCakePHP.
TALKS | ANDY CARTER
Speaking at dotNet Sheffield (2020) Since 2018, I have been speaking at numerous local user-groups in the North of England on a variety of subjects. Details of the talks I have given so far can be found below. USING SCALABLE CSS UNITS FOR FONT SIZES A BEGINNERS GUIDE TO PACKAGE MANAGER BOWER AND USING GULPHOW TO USE BOWERBOWER PACKAGE MANAGERBOWER PACKAGE MANAGER VISUAL STUDIOHOW TO INSTALL BOWERBOWER DOWNLOADVISUAL STUDIO BOWER The Bower bird. Package managers like Composer for PHP and NPM for Node have become essential tools for simplifying a developer’s life. A package manager is a tool for keeping track of what you’ve installed, as well as installing and upgrading packages. ESSENTIAL VISUAL STUDIO CODE EXTENSIONS FOR PHP DEVELOPERSVISUAL STUDIO CODE INSTALL PHP VS Code. Visual Studio Code is hot stuff right now and is quickly becoming the editor of choice for developers worldwide. It’s available for Mac, Windows and Linux and best of all it’s free.. Personally I was a little skeptical when I first learnt of Microsoft’s latest editor. VARIABLE SCOPE IN MODERN JAVASCRIPT WITH VAR, LET ANDSEE MORE ONANDY-CARTER.COM
CONNECTING TO SFTP WITH PHP (USING EITHER A PASSWORD ORHOW TO SFTP A FILEHOW TO ACCESS AN FTP SITEHOW TO USE FTPCONNECT TO SFTP COMMAND LINECONNECT TO SFTP FILEZILLACONNECT TO SFTP SERVER If you need to connect to SFTP using PHP then the simplest approach I’ve found is to use phpseclib, a library of functions for secure communications.. The library is a Composer package so you will need to have Composer installed, then just require the package as usual:- $ composer require phpseclib/phpseclib. The library provides what it refers to as a “pure-PHP implementation of SFTP HOW TO FIX 'IMAGICKEXCEPTION: NOT AUTHORIZED' Finally, we need to restart PHP-FPM (or nginx/apache) for the policy change to be implemented: sudo service php7.4-fpm restart. This resolved our issue. ImagickException was no longer being thrown and ImageMagick was generating our thumbnails once more. PHP. KEEPING A VAGRANT VIRTUAL BOX'S TIME SYNCED Whilst working on a site I’ve been developing using a Laravel Homestead Vagrant box I discovered that the box’s clock had drifted out of sync with my laptop by about 10 minutes. Normally this wouldn’t be much of an issue for me, but in my case I was trying to authenticate via an API using OAuth and that time difference was causing the authentication to fail. DISABLE MULTIPLE FORM SUBMITS WITH VANILLAANDY CARTER
Website of Andy Carter, senior developer at Evoluted New Media in Sheffield. Andy develops with PHP and JavaScript using Laravel andCakePHP.
TALKS | ANDY CARTER
Speaking at dotNet Sheffield (2020) Since 2018, I have been speaking at numerous local user-groups in the North of England on a variety of subjects. Details of the talks I have given so far can be found below. USING SCALABLE CSS UNITS FOR FONT SIZES A BEGINNERS GUIDE TO PACKAGE MANAGER BOWER AND USING GULPHOW TO USE BOWERBOWER PACKAGE MANAGERBOWER PACKAGE MANAGER VISUAL STUDIOHOW TO INSTALL BOWERBOWER DOWNLOADVISUAL STUDIO BOWER The Bower bird. Package managers like Composer for PHP and NPM for Node have become essential tools for simplifying a developer’s life. A package manager is a tool for keeping track of what you’ve installed, as well as installing and upgrading packages. ESSENTIAL VISUAL STUDIO CODE EXTENSIONS FOR PHP DEVELOPERSVISUAL STUDIO CODE INSTALL PHP VS Code. Visual Studio Code is hot stuff right now and is quickly becoming the editor of choice for developers worldwide. It’s available for Mac, Windows and Linux and best of all it’s free.. Personally I was a little skeptical when I first learnt of Microsoft’s latest editor. VARIABLE SCOPE IN MODERN JAVASCRIPT WITH VAR, LET ANDSEE MORE ONANDY-CARTER.COM
CONNECTING TO SFTP WITH PHP (USING EITHER A PASSWORD ORHOW TO SFTP A FILEHOW TO ACCESS AN FTP SITEHOW TO USE FTPCONNECT TO SFTP COMMAND LINECONNECT TO SFTP FILEZILLACONNECT TO SFTP SERVER If you need to connect to SFTP using PHP then the simplest approach I’ve found is to use phpseclib, a library of functions for secure communications.. The library is a Composer package so you will need to have Composer installed, then just require the package as usual:- $ composer require phpseclib/phpseclib. The library provides what it refers to as a “pure-PHP implementation of SFTP HOW TO FIX 'IMAGICKEXCEPTION: NOT AUTHORIZED' Finally, we need to restart PHP-FPM (or nginx/apache) for the policy change to be implemented: sudo service php7.4-fpm restart. This resolved our issue. ImagickException was no longer being thrown and ImageMagick was generating our thumbnails once more. PHP. KEEPING A VAGRANT VIRTUAL BOX'S TIME SYNCED Whilst working on a site I’ve been developing using a Laravel Homestead Vagrant box I discovered that the box’s clock had drifted out of sync with my laptop by about 10 minutes. Normally this wouldn’t be much of an issue for me, but in my case I was trying to authenticate via an API using OAuth and that time difference was causing the authentication to fail. DISABLE MULTIPLE FORM SUBMITS WITH VANILLAANDY CARTER
Website of Andy Carter, senior developer at Evoluted New Media in Sheffield. Andy develops with PHP and JavaScript using Laravel andCakePHP.
TALKS | ANDY CARTER
Speaking at dotNet Sheffield (2020) Since 2018, I have been speaking at numerous local user-groups in the North of England on a variety of subjects. Details of the talks I have given so far can be found below.ABOUT | ANDY CARTER
About | Andy Carter. My name is Andy, and I’m a web developer living in the steel city of Sheffield in the North of England. I currently work as a senior developer at Evoluted New Media. I generally develop in PHP and JavaScript as well as producing semantic and valid HTML andCSS. I
WEB DEVELOPMENT BLOG Debunking the Web Development ‘5 Minute Fix’ Myth. I recently wrote this piece for the Evoluted blog to debunk the false perception that quick fixes can be done in 5 minutes. As developers, we often underestimate our own processes and devalue the work we do. I wanted to highlight the many stages of the development process for bug fixes. WEB DEVELOPMENT BLOG I’ve written an introduction to inuit.css — the object oriented CSS framework from CSS guru Harry Roberts — over on Think Tank.. inuit.css is an Object Oriented CSS (OOCSS) framework that uses Sass and a BEM-style naming convention.It comes with a powerful library of objects and abstractions that you can opt-in to (so there’s little CSS bloat from unwanted objects). A BEGINNERS GUIDE TO THE TASK RUNNER GULP We’ll add some tasks to this file in a moment, but first it is perhaps worth just quickly introducing the four Gulp methods that we will be using:-. gulp.task (name, fn) – registers a function with a name. gulp.watch (glob, fn) – runs a function when a file that matches the glob changes. ENFORCING A PHP VERSION FOR INSTALLED COMPOSER PACKAGES composer config platform.php 5.6.1. This will set the platform option in the composer.json file for us. In this example it would add PHP 5.6.1 to the JSON file just like in the previous example. You can also use the -g flag to set this globally. On a Composer package platform requirements are added just like package dependencies. DISABLE MULTIPLE FORM SUBMITS WITH VANILLA Disable the Submit Button. The simplest thing to do is disable the submit button the first time the form is submitted so the button cannot be clicked again. We do this by listening for the form being submitted using addEventListener and then adding the disabled attribute to the form’s submit button:-. var form = document.querySelector('form SIX LESSER KNOWN COMPOSER COMMANDS YOU SHOULD KNOW First up is the show command. It lets you view all the installed packages of a project (including the dependencies) as well as view information about a specific package. All of this information can be found in the Composer lock file, but using show provides an easier and more convenient way of extracting the information. RECURSIVELY REMOVE A DIRECTORY IN PHP A simple method for recursively deleting a directory and all itscontent in PHP.
* Blog
* Code
* About
This is the website of Andy Carter a PHP and jQuery web developer in the Steel City. Working with CakePHP (and a bit of Textpattern andDrupal too).
LATEST ENTRIES
RESOLVING POST-INSTALL ISSUE WITH MARIADB INSTALL VIAÂ HOMEBREW11 Mar 2020
I have been attempting to install MariaDB on a new MacBook with Catalina installed using Homebrew. However, I hit an issue with the post-install step failing which meant the installation didn’t work. I’m sharing how I managed to successfully install MariaDB here for anyone else that hits a similar problem. JOINING RELATED SALESFORCE OBJECTS IN SOQL29 Feb 2020
Objects in Salesforce can be related to one another via a parent-child relationship. For example, the Account object is the parent to the child Contact object; an Account record can have one or many Contact records. Much like in SQL, the child has a field that acts as a foreign key to the parent record. One way of thinking of this is with the analogy that a child has the DNA of the parent that we can use to relate the child back to them.HAPPY NEWÂ YEAR
01 Jan 2020
Ten years ago I started working full-time as a web developer, leaving behind my career in Physics. It is a decision I have never regretted. For the last decade I have been able to spend my days working on what, for a long time, was mostly a hobby. My passion for developing websites continues today. SORT GIT TAGS BY ASCENDING AND DESCENDINGÂ SEMVER04 Dec 2019
Semver is a popular way of versioning applications and software libraries. However, if you use git tag to list out all your tagged versions of a Git repository you’ll probably find the tags returned are not listed in the expected order. That’s because by default Git uses lexicographic order, also known as dictionary or alphabetical order. Therefore, 1.10.0 will come before 1.2.0 when listing the tagsin ascending order.
__ VOID IN JAVASCRIPT ANDÂ TYPESCRIPT09 Sep 2019 #
Nice little runthrough of what void means in JavaScript and TypeScript by Stefan Baumgartner.FEATURED ENTRIES
ESSENTIAL VISUAL STUDIO CODE EXTENSIONS FOR PHPÂ DEVELOPERS30 Jul 2018
Visual Studio Code is hot stuff right now and is quickly becoming the editor of choice for developers worldwide. It’s available for Macs, Windows and Linux and best of all it’s _free_. These are what I consider the essential Visual Studio Code extensions for PHP developers to improve your productivity. VARIABLE SCOPE IN MODERN JAVASCRIPT18 Jul 2018
A look at how modern JavaScript scopes variables and a look at declaring variables using var, let and const. USING LARAVEL'S BOOTABLE ELOQUENTÂ TRAITS20 Feb 2018
A look at using PHP traits with Laravel’s Eloquent models, hooking them up with events and making them configurable.LATEST TWEETS
* Thanks to my great boss at @evolutednm , the whole team have been sent out some beers from @HopHideout to help us ge… twitter.com/i/web/status/1…20 March 2020
* RT @github : We’re excited to announce that @npmjs will be joining GitHub. Millions of JavaScript developers rely on npm, and we’re honored… 16 March 2020 * If you're struggling to comprehend how quickly Corona Virus is spreading then I recommend this excellent interactiv… twitter.com/i/web/status/1…16 March 2020
* Due to the increasing Corona virus crisis I have asked to postpone my talk at this week's @SheffieldPHP. It is disa…
twitter.com/i/web/status/1…16 March 2020
* I was going to be speaking at @wpleeds next month, but sadly it has been cancelled due to the continuing situation… twitter.com/i/web/status/1…13 March 2020
__ Follow Me
© 2020 Andy Carter, Sheffield (UK).* __
* __
* __
* __
* __
* __
Details
Copyright © 2024 ArchiveBay.com. All rights reserved. Terms of Use | Privacy Policy | DMCA | 2021 | Feedback | Advertising | RSS 2.0