Fehler: No application encryption key has been specified. 

Wer ein neues Projekt mit Laravel aufsetzt, stößt gleich zu Beginn auf einen Fehler, wenn er das Projekt aufruft:

Das Kommando php artisan key:generate erzeugt diesen benötigten Schlüssel. Dieser Schritt ist weit mehr als reine Formalität: Er sorgt dafür, dass die Anwendung einen eindeutigen Application Key (APP_KEY) erhält, der in der .env-Datei gespeichert wird. Ohne diesen Schlüssel würde Laravel beim Start warnen, dass kein gültiger Key vorhanden ist – und genau dieser Key ist entscheidend für die Sicherheit der gesamten Anwendung.

Laravel nutzt den APP_KEY, um sensible Daten zu verschlüsseln. Dazu gehören unter anderem Session-Daten, Cookies oder Tokens für die „Remember Me“-Funktion beim Login. Nur mit einem starken, eindeutigen Schlüssel ist gewährleistet, dass diese Daten nicht einfach ausgelesen oder manipuliert werden können.

Die Anwendung des Befehls ist denkbar einfach: Man wechselt im Terminal in das Hauptverzeichnis des Projekts und führt php artisan key:generate aus. Daraufhin erzeugt Laravel automatisch einen 32 Zeichen langen, sicheren Schlüssel und trägt ihn in die .env-Datei ein. Damit ist die Basis für eine stabile und sichere App gelegt. Wichtig zu wissen: Dieser Key sollte nach der ersten Generierung nicht mehr geändert werden, da sonst bestehende Sitzungen ungültig werden.

Kurz gesagt: Ohne APP_KEY läuft kein Laravel-Projekt sicher. Mit einem einzigen Kommando schafft man die Grundlage für Verschlüsselung, Vertrauen und Stabilität – und kann sich anschließend ganz auf die eigentliche Entwicklung konzentrieren.

Problems adding two Lenovo Displays to MacBook Pro Mx via Lenovo ThinkPad Docking Station

I’ve bought a ThinkPad Docking-Station from Lenovo and two Lenovo 27″ Displays but if I connected the USB-C Cable of the Docking Station to the MacBook Pro the displays keep black. No Singnal 🙁 – Direct Connection of one of the Displays to the HDMI-Port of the MacBook worked fine,m so I expected to have a problem with the Docking-Station.

After searching around I’ve found this software from Synaptics called DIsplayLink. Check the details on their page.

After installing and giving access to the system the displays are working and everything is fine. as long as I have seen, the software is free.

Getting a 1 TB MicroSD-Card into your Bambu Lab X1C

Bambu Labs MicroSD-Card-Slot at the lower right of the display can handle 1 TB MicroSD-Cards but will fail to format them in the machine itself, so the MicroSD-Card needs to be formatted outside of the 3D-Printer itself. You’ll run into an timeout if you try and nothing can fix this at the moment.

I took my MicroSD-Card and inserted it into my Macbook Pros SD-Card-Slot with the MicroSD-Card to SD-Adapter which was delivered with the MicroSD-Card. Format the Card with FAT! No ExFAT or other formats. FAT only!

Insert the MicroSD-Card into your 3D-Printer and it will show you the free space on the card. So now you have a 1TB storage space for your models and videorecordings.

How to install Image Magick on Windows

Download the fitting Imagick-Packet from this source: Install the ImageMagick PHP extension in Windows | mlocati – Michele Locati

Be sure to select the fitting Verson Thread Safe or Not.

Unzip the Package.

Copy php_imagick.dll into your php-root/ext-Directory. Copy all the other DLL-Files directly to your /php-root directory.

Add extension=imagick to your php.ini file. Restart your WebServer or your comand shell. Enter php -v in your command shell and check that there are no errors.

Updated streaming.rolandradio.net and added cronjob for SSL Cert

After such a long time i now found the time to update the streaming,rolandradio.net server and added a cron job to update the SSL certificate on a monthly base, so it shall not happen anymore that the streaming server is running out of its https capabilities and mini player on www.rolandradio.net doesnt streams audio in chrome and other paranoid browsers 😀

curl does not work on laravel with php 8

first be sure you have activated the curl-extension in your php.ini file.

After that get the cacert.pem file from curl – Extract CA Certs from Mozilla and safe it o your computer. i saved it into my php-directory. after that edit php.ini again and modify the following entry to point to the .pem.file:

[curl]
; A default value for the CURLOPT_CAINFO option. This is required to be an
; absolute path.
curl.cainfo = "C:\php\php80\cacert.pem"

Install Bootstrap in Laravel 8

run those commands in your project:

npm install bootstrap
npm install sass
npm install sass-loader

If not exists, create the file

resources/sass/app.scss

and add this:

@import '~bootstrap';

and last add the compilation in the file webpack.mix.js:

mix.sass('resources/sass/app.scss', 'public/css')

After that compile it with npm run dev and you’ll see public/css/app.css

After that you can add this code to your template to import bootstrap:


<link href="{{ asset('css/app.css') }}" rel="stylesheet">

iGITt iGITt – Initiales

Git global setup
git config --global user.name "User Name"
git config --global user.email "user@example.com"
Create a new repository in Git
git clone https://gitlab.abc.de/username/project.git
cd bmln
git switch -c main
touch README.md
git add README.md
git commit -m "add README"
git push -u origin main
Push an existing folder
cd existing_folder
git init --initial-branch=main
git remote add origin https://gitlab.abc.de/username/project.git
git add .
git commit -m "Initial commit"
git push -u origin main
Push an existing Git repository
cd existing_repo
git remote rename origin old-origin
git remote add origin https://gitlab.abc.de/username/project.git
git push -u origin --all
git push -u origin --tags

How to install PHP 7.3 on Windows 10

First of all download the PHP-Version you want to install. In my case it will be the PHP 7.3 x64 Thread Save versio. This is the link to the download section on php.net: https://windows.php.net/download#php-7.3 In my case i downloaded the ZIP-file of VC15 x64 Thread Safe (2020-Oct-27 16:52:12). Unzip the ZIP archive to a new folde which will be your php installation folder. So choose wisely 🙂 I used c:\php\php73 for that. After you have unzipped the PHP-Archive you need to locate the file php.ini-development and rename it to php.ini.

Open the php.ini file in any texteditor and change the extension_dir settings to the choosen directory, followed by an /ext. In my case its c:\php\php73\ext. Or you can set it like below:

; On windows:
extension_dir = "ext"

After that you need to add your path to the php-directory (in my case: C:\php\php73) to the Windows PATH variable. Search for “PATH” in the Windows Search-Bar to edit the environment variables.

Edit Environment Variables

Search in the system variable for the Path entry and edit this to add your PHP-path

After you have added your line click ok on all Windows to save your settings

To verify everything worked correctly open your command shell by typing cmd into the windows search bar

and type php -v in your command shell. You shall get the version information of your php installation. And now everything is done.

The same procedure is for every other php version like 7.x or 7.4. To install php in different directories (in my case C:\php\phpVERSION) gives you the chance to use different php version on Command Line Interface by setting the direct pth to the executable CLI.

Lasercutting from hell

I’d like to have an so called “Alien Cube” as a lamp hanging from my ceiling. And on Thingiverse there is a template for lasercutting one. Link: https://www.thingiverse.com/thing:1805216

But the template is for 10x10x10cm and i want it BIIIIG! My version should be 38cm side length. This Box should then be illuminated by LED stripes and LED-powered light strings. A nice idea. So i redsigned the whole thing added some roundings to the 90° lines and made my template “Kangaroo style” 🙂

Lastly i cut some poplar plywood with a thickness of 3mm. And it took 5 rounds for the lasercutter to get through the material. And as described on Mr. Beam’s Homepage this lasercutter can cut poplar up to a thickness of 4mm and birch multiplex up to 3mm. So i thought: This will be a fast and nice project with the more stable birch wood. I was so wrong.

My lasercutter is cutting that bloody birch multiplex 3mm plate sind 25 hours now 🙂 Its the 35 time the laser is going around and around and around 🙂 I am cutting 10 Hours a day and it seems that 10 hours are similar to 1mm of cutted wood. I hate birch so very much, i ordered a bunch of poplar hoping those plates will arrive soon 🙂

Damn. It takes hours and hours and hours.

But i want to know how birch multiplex 3mm is cutted, so i stay patient. Normally i demo-cut a few circles on a new material to check how many rounds a cut-through will take. But i forgot this totally. So now i have to wait until i can be sure everything is cutted through. After each cutting-session i open the lid and try to move the cutted pieces but thes still stay in place. Hopefully this gets to an end on the weekend 🙂

After that i will proceed the cut tests with a circle of 1cm and different speeds and power-settings, so i can provide the best setup for cutting birch multiplex with 3mm thickness.