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
13
results
Andrew Fletcher
•
Creating a bash script
Bash scripts are files containing code that tell your computer to do something. In this instance, I want to rename a batch files in a directory. Such as changing:
37351001 - BlueSpotted.jpg
37351008 -SpangledEmporer _ 0133A.jpg
37353003 -Black-Bream_3481 .jpg
37353004 -35 - Yellowfin.jpgInstead having these files appear as:
37351001.jpg
37351008.jpg
37353003.jpg
37353004.jpgHowever, I don't have four files. Wouldn't be worth my time...
Andrew Fletcher
•
Working on a decoupled React / Drupal 9 site.
Aim: Adjust the output of curated...
Andrew Fletcher
•
How to make React calls on a Drupal 9 backend site using the search...
Andrew Fletcher
•
This code is from Drupal 9 back-end for a React front-end via REST API.
Working...
Andrew Fletcher
•
Creating a message log using Drupal watchdog.
Simple log
// Logs a...
Andrew Fletcher
•
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 Prosody, however as I'm working off an Apache server with Centos 6.10 this quickly proved to a goal that was out of reach. Instead, I pivoted and redirected to Erlang.
Is your server hardware running Linux, BSD, OS X, or Windows?
Can you use Java or Python or another language if the server...
Andrew Fletcher
•
I had an issue where logging in from the app disconnected. The error that...
Andrew Fletcher
•
Using October CMS to migrate your site and update the tables with the plugins...
Andrew Fletcher
•
Overview
To update ejabberd you need to remove it, then re-install with the...
Andrew Fletcher
•
The starting point is to read through and follow the notes outlined on the...
Andrew Fletcher
•
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.rpmInstall Erland
yum install erlangCheck that Erland has been installed enter the command (case sensitive)
erlIf the Erland package has been successfully installed terminal will be output something like
Erlang/OTP 21 [erts-10.3.2] [source] [64-bit]...
Andrew Fletcher
•
Adding a pem file to secure ejabbered on the server for chat connection.
Getting...
Andrew Fletcher
•
To access the ejabberd log files, I found them located at the following...