1071 Specified key was too long;

If you use an older Version of mySQL or MariaDB Laravel throws an error on the first migration on your database. Thats cause the defaultStringLentth needs to be set to a maximum length of 191 characters.

Add this to your AppServiceProvider.php File and rerun your migration

Dont forget to add

How to install Audirvana if the ms-appinstaller fails.

A friend recommended Audirvana and I wanted to try this music management and player system. Unfortunately the download of the app didn’t work because the system on which I wanted to install it doesn’t have an installation of the Microsoft App Store. Audirvana doesn’t offer a proper .EXE, so there is nothing left to do but to trick something.

ms-appinstaller doesnt open the install-routine

Nevertheless, the appinstaller file with the name “AudirvanaSetup.appinstaller” is downloaded. Open it ini a texteditor and you will get something like this:

de

copy and paste the Uri to any browser to download the appxbundle-file to your computer. In this example it is https://audirvana.com/delivery/windows/AudirvanaSetup_3.5.37.0_Test/AudirvanaSetup_3.5.37.0_x64.appxbundle

Right-Click on the powershell and use “run as administrator”

Start PowerShell in Administator mode and use this command. Sure the path to your AudirvanaSetup must be changed.

After this you will have installed Audirvana on your Windows 10 System

Adding a command to laravel deleting all unwanted users :-)

As spammer start flooding my users table with fake-accounts i startet to develop a command for laravel to run in a cron job for deleting all users which didnt verified their email within the last 24 hours.

A nice how-to do a laravel console command for cron can be found at: https://tutsforweb.com/how-to-set-up-task-scheduling-cron-job-in-laravel/

This is my routine to select all users which haven’t confirmed their email and their register date is older than 24 hours.

Added the following command to the crontab by crontab -e on the webserver to execute the command:

Set Laravel-Project to “down” during updates

Everytime i start an update of the whole project it takes hours to upload all the new updated files to my web server.

To avoid a massive downtime for the user without informing them about the status and displaying any errors i just touch a file within the project:

project->storage->framework

there i add a file called “down” and the site goes into “down-mode” – atfer i finished my work i rename the file to “down-” to bring up the site agein. I configured the Error 503 page to display a nicer version of the error.

Error Class ‘Illuminate\Database\Grammar’ not found

Today i updated RolandRadio.net because i had some new packages i wanted to use. On my local Laravel instalation everything worked fine but after uploading the new changed files i got an error:

Error Class ‘Illuminate\Database\Grammar’ not found

I didn’t figured out how to fix this and suggested that it has soething to do with updates of laravel that occured during my development and so the local laravel version and the version on my webserver where different.

After uploading all the files again completely instead of only the different ones the website worked again. Maybe my FTP-Client has messed up some files. As the Upload of those files takes about 2,5 hours i should think about using GIT to avoid those long downtime and commit my changes more often to the GIT repository then.

How to disable the Cache in Laravel

Sometimes its necessary to disable the caching in Laravel. To do so a new cache-driver “none” must be added to the cache-configuration-file in config/cache.php

After that you have to set this cache-driver in your .env-File and you Cache is disabled

Edit .env and change the line
CACHE_DRIVER=file
to
CACHE_DRIVER=none

Clearing some Caches in Laravel

Clear Application Cache:

Clear Route Cache

Throws an error if CACHE_DRIVER=none

Clear Configuration Cache

Throws an error if CACHE_DRIVER=none

 Clear Compiled Views Cache

Throws an error if CACHE_DRIVER=none

I work hard on RolandRadio

Because of the Corona pandemic I finally have time to take care of my little RolandRadio and since the beginning of March the project is making great progress. New servers, new homepage and the complete development from one source. If I used to use WordPress I now use Laravel and the possibility to implement new functions by myself. And I learn programming on the side.

Check it out @ https://rolandradio.net

Working on the RolandRadio network

Today i was in the Radio studio checking the network and adding a new WLAN Access Point. After searching for the equipment for a while I remembered that we put everything under the ceiling. And there we now also placed the new (but old) access point. After some stress with its configuration it is working fine and now we can use WLAN and also will have a guest network for visitors in the studio.

RolandRadio2020 – my new hobby :-)

I am rebuilding the whole RolandRadio-System. New Server, new radio automation software, new homepage, new functionality. New everything.

First we have bought a completely new radio automation hardware. Some nice “games-pc”. All this modern stuff like SSDs, HDMI, 8.1 soundcard and everything build in an very very old 19 inch full-metal rack-case from the late 90s. Heavy stuff but horrible fast. Running Windows 10 and mairList 6.2 Professional for the radio automation. And a new monitor, keyboard and mouse. Total cost for this setup? Roundabout 600 euros for the hardware and about 1400 euros for the software. 2000 euros in total.

Old Server-Case, but ultra-fresh hardware and software: RolandRadio2020

Thats what i call a nice hobby 🙂 But hopefully this invest will help run RolandRadio for the next ten years or so. The old system runs 24/7 since 2013 and is still running, but the mainboard is weak and reboots are kind of gamble. So new hardware is needed.

I’ve set up the hardware a few days ago and today i temporarily installed mairlist, the license, imported the database of the old (and still running) RolandRadio and started to clean things up to have a nice and stable chiptune-radio-station.

Cleaning up the Database of the radio automation software – takes its time.

Also i have tested the stream and set up a new beta streaming-mountpoint on streaming.rolandradio.net called rolandradio2020. My own streaming server is running since the beginning and I should also update this server and add some https-protocol to it. But that’s hopefully the last thing i will do on this project later thisor next year.

So thats it for the moment. If you want to participate in any way on RolandRadio i will be happy to hear from you,