Отримуй палітру кольорів із зображення за допомогою PHP-бібліотеки ColorThief. Простий приклад, автоматичне сортування й баланс яскравості.
#Back_end, #PHP, #Веб_розробка, #Робота_із_зображеннями
https://ivaniura.org.ua/web/php-html-css/colors-palette-from-image-on-colorthief
One day, one decomposition
A230044: Nonnegative numbers k such that k plus a perfect square is a triangular number
3D graph, threejs - webGL https://decompwlj.com/3Dgraph/A230044.html
2D graph, first 500 terms https://decompwlj.com/2Dgraph500terms/A230044.html
Laravel vs. Symfony: A Comprehensive Comparison of #PHP #Frameworks
This article provides a guide concerning #Laravel vs. Symfony: a comprehensive comparison of PHP frameworks.
Laravel vs. Symfony: A Comprehensive Comparison of PHP Frameworks
Laravel and #Symfony are two of the most popular PHP frameworks, widely used for building modern web applications. Both have strong communities, rich ecosystems, and are frequently chosen by ...
Continued https://blog.radwebhosting.com/laravel-vs-symfony-a-comprehensive-comparison-of-php-frameworks/?utm_source=mastodon&utm_medium=social&utm_campaign=ReviveOldPost #websitedevelopment
I have published a new blog post:
An oddly interesting story about a custom PHP framework
Read it here:
https://www.danielbrendel.com/blog/31-an-oddly-interesting-story-about-a-custom-php-framework
A je to
Pár týdnů a mám jak CLI parser, tak i knihovnu pro CLI aplikace.
https://github.com/Lawondyss/ParexCommander
To vše za vydatného přispění #AI Claude a Gemini. Musím říct, že za poslední rok se hodně zlepšili. I když mám pořád raději Claude, Gemini už mu šlape na paty.
Každopádně už se nemůžu dočkat, až ParexCommander použiju pro svůj jiný projekt. Ten už je pěkně uleželý, jak čekal přesně na tenhle nástroj
#developer #php
From the archive! Colour Sorting In PHP: Part 6
This the final part (so far) of a series of posts from @philipnorton42 about how to sort colours.
In this part Phil creates a very simplified 3D engine in PHP in order to show the RGB values of a number of colours in a 3D space, using the RBG values as coordinates in the scene.
This results in drawing a cube of colours and then rotating it to show the cube corner on.
https://www.hashbangcode.com/article/colour-sorting-php-part-6
Claude is halucinating about PHP features that don't exist:
"PHP 8.2 introduced 'standalone type declarations' which is the closest thing to C++ `using`."
I think standalone type declarations would be great to have, Claude, but quit making shit up.
I like coding convenience, so I always try to promote unpacked parameters when it's feasible, especially strings.
The dev uses multiple parameters
The dev uses a single array
The dev unpacks an array
When I need the function to accept two types of parameters, I never use unpacked parameters (because these SHOULD be the same type).
Great article about problems with datetime operations and day light saving changes in #php and how #Nette framework is solving it. https://phpfashion.com/en/100-minutes-is-less-than-50-php-paradoxes-during-time-changes
Managing AI Bots+ w/ Apache MPM, FPM, & Fail2Ban: https://tech.haacksnetworking.org/2025/04/06/managing-ai-bots-w-apache-mpm-fpm-fail2ban/ There's been a lot of continued discussion on this topic, so I decided to investigate some of the common reports, compare those to my own hardware, theoretical ceilings and caps, and then adjusted my LAMP stack and fail2ban as per this blog entry. Let me know what yall think or if you find any errors or questionable claims. -oemb1905 #ai #scraping #apache #opensource #freesoftware #floss #ddos #php
Wer obige Meldung beim apt upgrade bekommt, führt diese Befehle als root aus.
[edit: Erste Version war Murks!]
curl https://packages.sury.org/php/README.txt -o keyupdate.sh
chmod +x keyupdate.sh
./keyupdate.sh
apt upgrade
Handling large array without going over memory limit
https://github.com/halaxa/json-machine
Discussions: https://discu.eu/q/https://github.com/halaxa/json-machine
So I've been cooking this WE, and got a basic implementation of associated types for #PHP interfaces done.
One SQL Query That Could Destroy Your Entire Database (And How Hackers Use It). #SQL #PHP
Posted into SYMFONY FOR THE DEVIL @symfony-for-the-devil-mobileatom
やっぱ手抜きの書き方するとすぐ Warning が出るな、 8.x は。
#php
One day, one decomposition
A227916: Primes that remain prime when the leftmost digit is removed
3D graph, threejs - webGL https://decompwlj.com/3Dgraph/A227916.html
2D graph, first 500 terms https://decompwlj.com/2Dgraph500terms/A227916.html
How to Install Centmin Mod on #AlmaLinux #VPS Here's a detailed step-by-step guide on how to install Centmin Mod on AlmaLinux VPS server.
What is Centmin Mod?
Centmin Mod is a shell-based, menu-driven installer that automates the deployment of a LEMP (Linux, Nginx, MariaDB/MySQL, PHP-FPM) stack on CentOS, AlmaLinux, and Rocky Linux servers. Designed for efficiency and performance, it streamlines the installation and ...
Continued https://blog.radwebhosting.com/how-to-install-centmin-mod-on-almalinux-vps/?utm_source=mastodon&utm_medium=social&utm_campaign=ReviveOldPost #php #centminmod #letsencrypt #csf