A001857: a(1)=2, a(2)=3; for n >= 3, a(n) is smallest number that is uniquely of the form a(j) + a(k) with 1 <= j < k < n
A001857 ➡️ https://oeis.org/A001857
3D graph, threejs - webGL ➡️ https://decompwlj.com/3Dgraph/A001857.html
3D graph Gen, threejs animation ➡️ https://decompwlj.com/3DgraphGen/A001857.html
2D graph, first 500 terms ➡️ https://decompwlj.com/2Dgraph500terms/A001857.html
#decompwlj #math #mathematics #maths #sequence #OEIS #JavaScript #php #graph #3D #threejs #webGL #triangular #numbers #primes #PrimeNumbers #palindromes #animation #FundamentalTheoremOfArithmetic #sequences #NumberTheory #classification #integer #decomposition #number #theory #equation #graphs #sieve #fundamental #theorem #arithmetic #research

Decomposition into weight × level + jump of prime numbers:
- a new classification of primes ➡️ https://decompwlj.com/primedecomp.php
- in 3D - threejs - webGL ➡️ https://decompwlj.com/3Dgraph/Prime_numbers.html
#decompwlj #math #mathematics #maths #sequence #OEIS #JavaScript #php #graph #3D #threejs #webGL #triangular #numbers #primes #PrimeNumbers #palindromes #animation #FundamentalTheoremOfArithmetic #sequences #NumberTheory #classification #integer #decomposition #number #theory #equation #graphs #sieve #fundamental #theorem #arithmetic #research

A001855: Sorting numbers: maximal number of comparisons for sorting n elements by binary insertion
A001855 ➡️ https://oeis.org/A001855
3D graph, threejs - webGL ➡️ https://decompwlj.com/3Dgraph/Sorting_numbers.html
3D graph Gen, threejs animation ➡️ https://decompwlj.com/3DgraphGen/Sorting_numbers.html
2D graph, first 500 terms ➡️ https://decompwlj.com/2Dgraph500terms/Sorting_numbers.html
#decompwlj #math #mathematics #maths #sequence #OEIS #JavaScript #php #graph #3D #threejs #webGL #triangular #numbers #primes #PrimeNumbers #palindromes #animation #FundamentalTheoremOfArithmetic #sequences #NumberTheory #classification #integer #decomposition #number #theory #equation #graphs #sieve #fundamental #theorem #arithmetic #research

How to Create #PHP #Cron Jobs on Linux Server
This guide demonstrates how to create PHP cron jobs on Linux server.
What are PHP Cron Jobs?
Cron is the standard Linux scheduler used to run scripts automatically at defined intervals. PHP cron jobs are commonly used for automation tasks such as backups, billing runs, log cleanup, monitoring scripts, email campaigns, and application maintenance.
READ ALSO: cPanel Shared Hosting Server Specs ...
Continued 👉 https://blog.radwebhosting.com/create-php-cron-jobs-on-linux-server/?utm_source=mastodon&utm_medium=social&utm_campaign=mastodon.raddemo.host #cronjob

Hoy se me ha dado por hacer un bloqueador de bots simple para mi web con PHP y JS (pensando en el bloqueador Anubis).
Ahora, falta por hacer la web, que no la tengo en línea desde hace años
También, al final igual termino usando [Altcha](https://altcha.org)
Phel (#PHP #LISP) runs #Clojure Test Suite without compiler errors now:
Passed: 3835
Failed: 275
Error: 88
Total: 4198
Some work to be done still before can be merged upstream.
CI run with full test report:
https://github.com/jasalt/clojure-test-suite/actions/runs/24940399929/job/73033065383
Le live a démarré !
Développement web
#owncast #streaming #go #php #devop #tech #linux
CakePHP vs CodeIgniter: Which #PHP Framework is Best for Development?
This article presents an in-depth comparison of two of the most popular PHP frameworks: #CakePHP vs CodeIgniter. After reading, you will have a better understanding of these two frameworks, including the features, strengths, and weaknesses of each. Both CakePHP and #CodeIgniter are popular with PHP developers, but which PHP framework is best for your next project? ...
Continued 👉 https://blog.radwebhosting.com/cakephp-vs-codeigniter-which-php-framework-is-best-for-development/?utm_source=mastodon&utm_medium=social&utm_campaign=mastodon.raddemo.host #websitedevelopment
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=mastodon.raddemo.host #websitedevelopment

🆕 blog! “You can parse an .env file as an .ini with PHP - but there's a catch”
The humble .env file is a useful and low-tech way of storing persistent environment variables. Drop the file on your server and let your PHP scripts consume it with glee.
But consume it how? There are lots of excellent parsing libraries for PHP. But isn't there a simpler way? Yes! You…
👀 Read more: https://shkspr.mobi/blog/2026/04/you-can-parse-an-env-file-as-an-ini-with-php-but-theres-a-catch/
⸻
#php
You can parse an .env file as an .ini with PHP - but there's a catch
https://shkspr.mobi/blog/2026/04/you-can-parse-an-env-file-as-an-ini-with-php-but-theres-a-catch/The humble .env file is a useful and low-tech way of storing persistent environment variables. Drop the file on your server and let your PHP scripts consume it with glee.
But consume it how? There are lots of excellent parsing libraries for PHP. But isn't there a simpler way? Yes! You can use PHP's parse_ini_file() function and it works.
But…
.env and .ini have subtly different behaviour which might cause you to swear at your computer.
Let's take this example:
# This is a comment
USERNAME="edent"
Run $env = parse_ini_file( ".env" ); and you'll get back an array setting the USERNAME to be "edent". Hurrah! Works perfectly. Ship it!
But consider this:
# This is a comment
USERNAME="edent" # Don't use an @ symbol here.
It will happily tell you that the username is "edent# Don"
WTAF?
Here's the thing. The comment character for .ini is not # - it's the semicolon ;
Let me give you some other examples of things which will fuck up your parsing:
# Documentation at https:/example.com/?doc=123
DOCUMENTATION=123
# Set the password
PASSWORD=qwerty;789
That gets us back this PHP array:
[
'# Documentation at https:/example.com/?doc' => '123',
'DOCUMENTATION' => '123',
'PASSWORD' => 'qwerty',
];
When the .ini is parsed, it ignores every line which doesn't have an = sign. It also treats literal semicolons as the start of a new comment until they're wrapped in quotes.
My code highlighter should show you how it is parsed:
# Documentation at https:/example.com/?doc=123
DOCUMENTATION=123
# Set the password
PASSWORD=qwerty;789
It gets worse. Consider this:
# Set the "official" name
REALNAME="Arthur, King of the Britons"
That immediately fails with PHP Warning: syntax error, unexpected '"' in envtest on line 1
You can use single quotes in pseudo-comments just fine, but if the ini parser sees a double quote without an equals then it throws a wobbly.
I'm sure there are several other gotchas as well. For example, there are certain reserved words and symbols you can't used as a key.
This will fail:
# Can we fix it? Yes we can!
FIX=true
It chokes on the exclamation point.
How to solve it (the stupid way)
The comments on an .env file start with a hash.
The comments on an .ini file start with a semicolon.
So, it is perfectly valid for a hybrid file to have its comments start with #;
Look, if it's stupid but it works…
What Have We Learned Here Today?
.env parsing..env looks enough like an .ini to pass muster.On next week's show - why you shouldn't store your passwords inside a JPEG!
#phpNothing much to write about #php. Nothing much to write about at work. Much I can't write about right now. I could post some budgie pics though 😄