#PHP's NAN is 0 as an integer, 'NAN' as a string and not comparable with itself.
Also, there are now warning when using them, so no one can get hurt by this.
https://php-tips.readthedocs.io/en/latest/tips/compare_nan.html

Bootcamp graduate → hired Laravel developer. The strategy:
❌ Don't: Submit AI code you can't explain
✅ Do: Generate scaffold, understand it, extend it, deploy live
Three projects:
→ Live SaaS with unique feature
→ Published Packagist package
→ Documented REST API with frontend
All deployed. All on GitHub. All explainable in an interview.
That's the portfolio that gets you hired. 🎓
WordPress Plugin - LinkGather | https://techygeekshome.info/wordpress-plugin-linkgather/?fsp_sid=24673 | #Blog #Guide #JetPack #php #Plugins #refresh #Shortlinks #Wordpress
https://techygeekshome.info/wordpress-plugin-linkgather/?fsp_sid=24673

WordPress Plugin - LinkGather | https://techygeekshome.info/wordpress-plugin-linkgather/?fsp_sid=24672 | #Blog #Guide #JetPack #php #Plugins #refresh #Shortlinks #Wordpress
https://techygeekshome.info/wordpress-plugin-linkgather/?fsp_sid=24672

How to Prevent preg_match Catastrophic Backtracking
One regex can lock up a worker.
#php #regex #redos #performance #howto #security
https://www.youtube.com/watch?v=bew7qYCVfjE
Tempest, an exciting new PHP framework that’s lightweight and efficient. Check out our latest installation guide here: https://docs.fortrabbit.com/guides/more/tempest #PHP #Frameworks
When I create a #php func that returns an iterable and I don't iterate over it, e.g. to test an edge case, is the func body never executed?
```php
function foo(bool $foo): iterable {
if ($foo) throw new \Exception('edge case');
yield 'foo';
}
// nothing, no exception
foo(true);
```
I've looked into the opcodes of the script via `php -d opcache.enable_cli=1 -d opcache.opt_debug_level=0x10000 iterable_test.php` and besides of the `0001 GENERATOR_CREATE` statement the opcodes look as I've expected them. Or does `GENERATOR_CREATE` return to main's `0001 INIT_FCALL` location under the hood?
```
foo:
; (lines=13, args=1, vars=1, tmps=4)
; (before optimizer)
; /var/www/html/iterable_test.php:3-7
0000 CV0($foo) = RECV 1
0001 GENERATOR_CREATE
0002 EXT_STMT
...
```
Heute Abend findet das Kirby Get Together №5 im Atelier Hund statt! Wir tauschen uns um unser Lieblings-CMS und alle Themen rund um das Web, Entwicklung mit PHP und coole Projekte aus.
Wie immer kostenlos mit Snacks und Getränken auf Spendenbasis.
Klingt gut? Dann meld dich jetzt noch an und komm um 18 Uhr im Atelier Hund direkt in der Bremer Innenstadt vorbei https://bremen.design/events/kirby-get-together-5
#kirbycms #webdev #bremen #php
If someone is running PHPUnit in a docker container and wonders why they can't filter by namespaces....
I finally managed it with
phpunit --filter 'My\\\\\\\Namespace'
Why 7? I have no idea! As long as it works! BTW: The quotes are important! Without them it'll be - - you guessed it correctly - 14 backslashes... 🙈
@davidlohner mal davon abgesehen, das #WordPress immer wieder mit Sicherheitslücken auffällt, ja besonders durch die schlecht programmierten und nicht gewarteten Plugins, bemühe ich immer diesen Vergleich: warum sollte ich mir die Bismark auf meinen Dorfteich stellen, wenn ich eigentlich nur ein Ruderboot brauche?
Man kann je nach Bedarf mit pure #PHP oder #Symfony sehr leichtgewichtige tolle Ergebnisse produzieren.
A201010: Integers that can be written as the product and/or quotient of Lucas numbers
A201010 ➡️ https://oeis.org/A201010
3D graph, threejs - webGL ➡️ https://decompwlj.com/3Dgraph/A201010.html
3D graph Gen, threejs animation ➡️ https://decompwlj.com/3DgraphGen/A201010.html
2D graph, first 500 terms ➡️ https://decompwlj.com/2Dgraph500terms/A201010.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

In the decomposition into weight × level + jump, the Twin Prime Conjecture becomes: "The number of prime numbers with a weight of 3 is infinite"
#decompwlj #math #mathematics #maths #sequence #OEIS #JavaScript #php #graph #3D #threejs #webGL #numbers #twin #primes #conjecture #PrimeNumbers #FundamentalTheoremOfArithmetic #sequences #NumberTheory #classification #integer #decomposition #number #theory #equation #graphs #sieve #fundamental #theorem #arithmetic #research
