A Blog Of Random Coding Techniques & Experiments Robert Askam

MySQL query to group by month

1 week ago MySQL query to group by month mysql

A simple query that may save some time. To count all data in a table and group by a month this year...

PHP unit Globally with Xampp and Windows

1 week ago PHP unit Globally with Xampp and Windows phpunit, xampp

To use PHP Unit globally and with XAMPP and Windows follow this. Using Git bash run composer global...

Where to keep my TRX and make money off the storage

2 weeks ago Where to keep my TRX and make money off the storage tron, crypto

The great thing about Tron (TRX) is you can make money off storage, how you I make money off this st...

What is Decred (DCR) and how do I buy it

1 month ago What is Decred (DCR) and how do I buy it crypto

Decred is a multi-platform digital currency with support for Windows, macOS, and Linux. Easy-to-use...

What is Tron (TRX) and how do I buy it!

1 month ago What is Tron (TRX) and how do I buy it! crypto

Tronix (TRX) is the official currency of TRON, which aims to be a decentralized entertainment co...

[SOLVED]iTunes could not restore the iPhone because the backup was corrupt or not compatible with the iPhone being restored

6 months ago [SOLVED]iTunes could not restore the iPhone because the back iphone, itunes

An issue arose when I was trying to restore an old iPhone backup. iTunes could not restore the iPhon...

[SOLVED] Line Split Issues when Copying Data from SQL Server to Excel

7 months ago [SOLVED] Line Split Issues when Copying Data from SQL Server MSSQL, Excel

IssueRecently while running a query in SQL Server Management Studio I needed to export the data to c...

Setting Up Golem Mainnet with a Sky Router on Windows 10

8 months ago Setting Up Golem Mainnet with a Sky Router on Windows 10 Golem

Setting Up Golem Mainnet with a Sky Router on Windows 10After trying to set this up multiple times a...

postdrop: warning: uid=0: File too large; sendmail: fatal: root(0): message file too big

8 months ago postdrop: warning: uid=0: File too large; sendmail: fatal: r sendmail, php

I received two errors when trying to send an attachment over SendMail PHPMailer. postdrop: warning:...

Using CURL to POST Images to a Server

9 months ago Using CURL to POST Images to a Server CURL, php

cURL is a computer software project providing a library and command-line tool for transferring data...

Useful Linux Commands to sort, list and find in directories

9 months ago Useful Linux Commands to sort, list and find in directories Linux

A list of some useful Linux commands to sort, list and find in directories. Top 5 largest directori...

How to recursively delete empty directories in a directory

9 months ago How to recursively delete empty directories in a directory Linux

The find command is a tool allowing you to run recursive file system operations. To only search for...

How to Create a PEM File for Push Notifications for your Website

9 months ago How to Create a PEM File for Push Notifications for your Web Apple, PHP

How to Create a PEM File for Push Notifications for your Website Login into the iOS Developer...

Top extensions available for Laravel - make the most of your project

10 months ago Top extensions available for Laravel - make the most of your Laravel

Laravel is a free, open-source PHP framework created for developers to use when creating web applica...

[SOLVED] Unable to locate phpcs. Please add phpcs to your global path.....

10 months ago [SOLVED] Unable to locate phpcs. Please add phpcs to your gl PHP, phpcs

How to install phpcs in Visual Studio Code on Windows 10 also remove the error phpcs: Unable to loca...

How to add Captcha to the Laravel 5.5 Registration Process

11 months ago How to add Captcha to the Laravel 5.5 Registration Process Laravel, Captcha

This will help you stop spam registrations on your site. A simple Captcha Registration process.Termi...

How to upload images using Laravel to your public folder

11 months ago How to upload images using Laravel to your public folder Laravel

Here is a simple tutorial to quickly upload images to the public folder on your site.>Blade File<...

How to Set up Large File Uploads with Laravel on Nginx Server

11 months ago How to Set up Large File Uploads with Laravel on Nginx Serve Nginx

You may need to allow large file uploads on you Laravel Project. here is how you set up your server....

Upgrade Bootstrap 3 to Bootstrap 4 in Laravel 5.5

11 months ago Upgrade Bootstrap 3 to Bootstrap 4 in Laravel 5.5 Bootstrap, Laravel

Bootstrap 4 has now been released and its time to try it on your Laravel projects so here is the sim...

Installing Laravel 5.5, Bootstrap 3, Vue.js and a component From Scratch

11 months ago Installing Laravel 5.5, Bootstrap 3, Vue.js and a component Laravel, Bootstrap, Vue.js

Here is a short video that shows you how to quickly get a Laravel 5.5, Vue.js and Bootstrap project...

How to use moment.js in Vue.js and Laravel 5

11 months ago How to use moment.js in Vue.js and Laravel 5 Vue.js, Moment.js, Laravel

In this project I wanted to show when how old the post was since I uploaded it. To do this I wanted...

How to dynamically show images and links in Vue.js v-for loop

11 months ago How to dynamically show images and links in Vue.js v-for loo Vue.js

When using Vue.js I often get asked about displaying images and dynamically changing URL’s. To do th...

Create Directory List by FTP & PHP then move files between servers using FTP

11 months ago Create Directory List by FTP & PHP then move files between s FTP, Windows

I was doing a project where I had to scan a directory on a server and list the files in there, I wou...

How to Buy and get Free Crypto Currency, Litecoin, Bitcoin, Ethereum

11 months ago How to Buy and get Free Crypto Currency, Litecoin, Bitcoin, Crypto, Coinbase, Poloneix

This is just a quick post to allow users to get into the cryptocurrency market ASAP as the prices ha...

How to Buy IOTA using Coinbase and Bitfinex

1 year ago How to Buy IOTA using Coinbase and Bitfinex IOTA, Crypto, Bitfinex

IOTA is a revolutionary new Crypto Currency, a block-less distributed ledger which is scalable, ligh...

Insufficient permission for adding an object to repository database .git/objects

1 year ago Insufficient permission for adding an object to repository d GitHub

Not sure how it happened unfortuantly so I cannot replicate it but found some information on the web...

How to Integrate Litecoin (LTC) Payments Into Your Online Business

1 year ago How to Integrate Litecoin (LTC) Payments Into Your Online Bu Litecoin, Payments

Online Businesses can now accept a whole range of payments but the most exciting ones are Crypto Cur...

How to use Laravel Queues to speed up your site

1 year ago How to use Laravel Queues to speed up your site Laravel, Email

This tutorial will show you how to use Queues in Laravel 5.5 For Email Verification's, this tutorial...

6 Practices for a Secure PHP Application

1 year ago 6 Practices for a Secure PHP Application PHP, Security

To ensure you have a secured your web app you should make sure you have focused on coding your PHP c...

How to access the Dark Web

1 year ago How to access the Dark Web Dark-Web

First thing to note is that if you want to access the dark web you must dress in a hoody in a dark r...

Buy Bitcoin and Trade Crypto Currencies using Coinbase and Poloniex

1 year ago Buy Bitcoin and Trade Crypto Currencies using Coinbase and P Crypto, Coinbase, Poloneix

This guide is to help new users get into the Crypo Market to either buy BTC (Bitcoin), LTC (Litecoin...

8 Free Icon Packs for Web Developers

1 year ago 8 Free Icon Packs for Web Developers Icons, Web

Web Icon packs are an easy way to make your website more intuitive and easy to use also adds a bit o...

Simple Email Confirmation with Laravel

1 year ago Simple Email Confirmation with Laravel Laravel, Email

Here is a simple tutorial to introduce and an email verification to your site. This reduces spam use...

PHP - How to count number of items in a list

1 year ago PHP - How to count number of items in a list PHP, array

Here is a way to sort a list by value and then print it out the count of duplicates. $string = 'one...

How to build a Twitter Bot with Heroku and Twit

1 year ago How to build a Twitter Bot with Heroku and Twit Twitter

You can see the progress here Twitter Bot Github. Start by creating an App in Twitter Application M...

Find largest folder/files on a server

1 year ago Find largest folder/files on a server Linux

The following command will show you the top 10 largest folders on a server. Change [FOLDER LOCATION]...

Select a Dollar sign in the variable name in Visual Studio Code

1 year ago Select a Dollar sign in the variable name in Visual Studio C Visual Studio

Open your Visual Studio Code Editor and find File > Preferences > Settings. The Default settings on...

How to send email from PHP with mail()

1 year ago How to send email from PHP with mail() PHP, sendmail, email

I was unfortunately put on a project where the entire system was using PHP mail function. I would hi...

Installing Laravel on Windows 10 using a VM

1 year ago Installing Laravel on Windows 10 using a VM Windows, Laravel, Homestead

A quick tutorial to run Laravel on Homestead with Windows 10 and Ubuntu 16.04 VM. On WindowsDown...

Vagrant was unable to mount VirtualBox shared folders. This is usually because the filesystem "vboxsf" is not available

1 year ago Vagrant was unable to mount VirtualBox shared folders. This Vagrant, Laravel

IssueWhen I started Vagrant for the first time I received this error. vagrant up ... ... ... Vag...

Vagrant Up Error  - The requested address is not valid in its context. - connect(2) for "0.0.0.0" port 8000 (Errno::EADDRNOTAVAIL)

1 year ago Vagrant Up Error - The requested address is not valid in it Vagrant, Larvel

vagrant up Bringing machine 'homestead-7' up with 'virtualbox' provider... ==> homestead-7: Impor...

The guest machine entered an invalid state while waiting for it to boot. Valid states are 'starting, running'

1 year ago The guest machine entered an invalid state while waiting for Laravel, Homestead

An error when I was installing Laravel 5.4 on an Ubuntu VM is below. vagrant up The guest machine...

bash-3.2$ vagrant up /Users/rbaskam/Homestead/scripts/homestead.rb:26:in read'

1 year ago bash-3.2$ vagrant up /Users/rbaskam/Homestead/scripts/homest Laravel

An Error that occured when I was installing Laravel from Scratch was bash-3.2$ vagrant up /Users/rba...

Runtime Error - File Explorer Crashes After Right Click

1 year ago Runtime Error - File Explorer Crashes After Right Click Windows

I encountered an error after unistalling some programs, this was crashing explorer.exe whenever I ri...

[Fixed] PHP Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined method Illuminate\Events\Dispatcher::dispatch()

1 year ago [Fixed] PHP Fatal error: Uncaught Symfony\Component\Debug\Ex Laravel, Forge

I was upgrading this site to Laravel 5.4 and encountered an issue during the upgrade during a compos...

How to Mine ZCash Using Windows

1 year ago How to Mine ZCash Using Windows ZCash

How to mine ZCash Using Windows, using the CPU to mine to an online wallet.What is ZCashZcash is the...

Ethereum Mining using Linux

1 year ago Ethereum Mining using Linux Ethereum, Linux

Here is how I started mining Ethereum using my Linux PC.sudo apt-get install software-properties-com...

How to move files from Server to Windows with Cygwin and Rsync

1 year ago How to move files from Server to Windows with Cygwin and Rsy Linux, Windows

This guide will show you how to move files from a Linux server to a windows folder and delete the fi...

How to find the size of your drives on Linux

1 year ago How to find the size of your drives on Linux Linux

This is a simple command that will show you the drive space of each of your server drives. df -h

Setup and Run anfederico/Clairvoyant for social/historical cues for short term stock movement

1 year ago Setup and Run anfederico/Clairvoyant for social/historical c Clairvoyant, Stocks

A git project I have been very much interested in at the moment is a way of machine learning Stock P...

Create A Welcome Email with Laravel Events

1 year ago Create A Welcome Email with Laravel Events Laravel

What are Laravel Events?An event is an action recognised by a program that may be handled by Laravel...

How to set up Digits for Machine Learning

1 year ago How to set up Digits for Machine Learning Caffe, Digits

How to use Digits and Caffe to begin machine learningOnce you can open localhost:5000 if you have no...

Setting Up Caffe and Digits for Machine Learning

1 year ago Setting Up Caffe and Digits for Machine Learning Caffe, Digits, Ubuntu

Caffe Installation on Ubuntu 16:04 Step 1Find all the install instructions at Caffe but here I have...

How to password protect a file

1 year ago How to password protect a file 7-Zip

This guide will show you how to password protect a ZIP file. This can be a secure way to send files...

Useful Terminal Shortcuts and Commands

1 year ago Useful Terminal Shortcuts and Commands Terminal

One on my favorites and most useful has to be the search functionality. To use this simply hold down...

Issue with PHP file_put_contents: access denied

1 year ago Issue with PHP file_put_contents: access denied Apache, PHP

I was trying to edit a file using the PHP file_put_contents but I was recieving a permission denied...

cross-env NODE_ENV=development webpack [Fixed]

1 year ago cross-env NODE_ENV=development webpack [Fixed] Laravel, NPM

In Laravel 5.4 there is no gulpfile.js file because everything's moved into the web pack now, the fi...

Laravel: symlink(): No such file or directory

1 year ago Laravel: symlink(): No such file or directory Laravel

I encountered an error while using Laravel and BitBucket. I accidentally pushed up the Public/Sto...

Bash and GNU/Linux Cheat Sheet

1 year ago Bash and GNU/Linux Cheat Sheet Linux

After searching for a cheat sheet for my Bash commands I came across this. Very useful and available...

Convert a string to a slug in Laravel

1 year ago Convert a string to a slug in Laravel Laravel

This can be achieved very easily in Laravel. First create a new column in your table called slug and...

Installing Homestead and Laravel 5

1 year ago Installing Homestead and Laravel 5 Laravel, Homestead

A guide to install Laravel 5.4 on Linux but can be applied to any operating system. Virtual Box In...

What's new in Laravel 5.4

1 year ago What's new in Laravel 5.4 Laravel, Dusk

Laravel 5.4 release is at the end of January, so what’s new and why we should be excited. Larave...

Installing Mailcatcher for use in Laravel Projects

1 year ago Installing Mailcatcher for use in Laravel Projects Laravel, MailCatcher

Using Laravel Homestead is an excellent way to quickly create and maintain Laravel projects. At some...

Full Text Search with Laravel Scout and Algolia and Vue.js

1 year ago Full Text Search with Laravel Scout and Algolia and Vue.js Scout, Algolia

Here we will use Laravel Scout and Algolia to add the instant full text search to your Laravel site....

Setting up Digital Ocean and Forge for a GitHub Project

1 year ago Setting up Digital Ocean and Forge for a GitHub Project Laravel, Forge

Forge Forge is a way to build and deploy servers very quickly and efficiently You can sign up here...

Connecting MySQL Workbench to XAMPP

1 year ago Connecting MySQL Workbench to XAMPP MySQL, Xampp

Trying to navigate through the XAMPP phpmyadmin page can be difficult when you have a large database...

Linking an Access Table to a new SQL Data Source

1 year ago Linking an Access Table to a new SQL Data Source Access, MySQL

Linking an Access Table to a new SQL Data Source Open Windows Run and paste C:\Windows\SysWOW64\o...

Filter your artisan commands for easy reading

1 year ago Filter your artisan commands for easy reading Artisan, Laravel

Here is a simple but useful function within you command prompt allowing you to filter your artisan c...

Calling a Vue function within a v-for loop to change data

1 year ago Calling a Vue function within a v-for loop to change data Laravel, Vue.js

While working on this site I came across an issue with a way I saved the tags that are outputted bel...

How to install gulp Browsersync in your Laravel project

1 year ago How to install gulp Browsersync in your Laravel project Laravel, Gulp, Browsersync

Browsersync makes your browser testing workflow faster by synchronising URLs, interactions and code...

Creating Admin Middleware in Laravel 5.3

1 year ago Creating Admin Middleware in Laravel 5.3 Laravel

Here is a basic guide to creating a Middleware in Laravel 5.3 that will protect your routes to only...

Send emails from XAMPP to Gmail

1 year ago Send emails from XAMPP to Gmail Gmail, Xampp

A guide to sending emails to your Gmail account for local development using XAMPP. Download Send Ma...

Faster Development by using .bashrc and  how to create an alias

1 year ago Faster Development by using .bashrc and how to create an al Bash

This tutorial will show you how to create an alias in Git Bash. This will save you time during you d...

The virtual machine 'homestead-7' has terminated unexpectedly during startup with exit code 1 (0x1)

1 year ago The virtual machine 'homestead-7' has terminated unexpectedl Vagrant, VM

Ubuntu Fix: There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling...

Ubuntu Software Crashes on load

1 year ago Ubuntu Software Crashes on load Ubuntu

A simple fix for this issue. $ sudo apt-get upgrade gnome-software

Installing Cordova on Windows

1 year ago Installing Cordova on Windows Cordova, Windows, Node.js

Installing Cordova Install the latest version of Git Bash Install latest version of Node.js Note:...

Useful & Exciting Github Packages

1 year ago Useful & Exciting Github Packages Git, Laravel, Bitcoin, AI

PHP Brew Phpbrew builds and installs multiple version php(s) in your $HOME directory. Have fun w...

Upgrade Cloud9 PHP to 7.1.14 for Laravel 5.3 installation

1 year ago Upgrade Cloud9 PHP to 7.1.14 for Laravel 5.3 installation Cloud9, Laravel, PHP

When trying to add Laravel 5.3 to Cloud9 composer was failing to run because the PHP version was to...

Fixing fullscreen issue with VMware 12 and Ubuntu 16.04

1 year ago Fixing fullscreen issue with VMware 12 and Ubuntu 16.04 Ubuntu, VMware

I had an issue where the VMware Tools would not expand my Ubuntu to full screen within the player. A...

MySql File to large to import using Windows XAMPP

1 year ago MySql File to large to import using Windows XAMPP MySQL

You probably tried to upload too large file. Please refer to documentation for ways to workaround th...

Laravel Artisan Commands

1 year ago Laravel Artisan Commands Laravel, Artisan

Inside Laravel there is a very useful command that will help you throughout your entire development...