php

Back Open Paginator
07.12.2025 05:47
kboyd (@kboyd@phpc.social)

Content warning:Advent of Code 2025 spoilers for Dec 6


Decided to give advent of code a spin today.

Here's my answer for part 2 of today's problem using PHP 8.5:

```
echo explode("\n", $data)
|> removeEmptyStrings(...)
|> splitStrings(...)
|> groupProblems(...)
|> cleanProblems(...)
|> filterOutEmptyProblems(...)
|> calculateProblems(...)
|> array_sum(...)
;
```

#php #php85




Show Original Post


07.12.2025 05:17
decompwlj (@decompwlj@mathstodon.xyz)

A053224: Numbers k for which sigma(k) < sigma(k+1)

3D graph, threejs - webGL ➡️ decompwlj.com/3Dgraph/A053224.
3D graph Gen, threejs animation ➡️ decompwlj.com/3DgraphGen/A0532
2D graph, first 500 terms ➡️ decompwlj.com/2Dgraph500terms/

#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





Show Original Post


07.12.2025 05:13
decompwlj (@decompwlj@mathstodon.xyz)

Decomposition into weight × level + jump of prime numbers in 3D, threejs - webGL (log(weight), log(level), log(jump))
➡️ decompwlj.com/3Dgraph/Prime_nu

#decompwlj #math #mathematics #maths #sequence #OEIS #JavaScript #php #graph #3D #threejs #webGL #numbers #primes #PrimeNumbers #animation #FundamentalTheoremOfArithmetic #sequences #NumberTheory #classification #integer #decomposition #number #theory #equation #graphs #sieve #fundamental #theorem #arithmetic #research





Show Original Post


07.12.2025 05:11
decompwlj (@decompwlj@mathstodon.xyz)

A053184: Primes p such that p^2+p-1 is prime

3D graph, threejs - webGL ➡️ decompwlj.com/3Dgraph/A053184.
3D graph Gen, threejs animation ➡️ decompwlj.com/3DgraphGen/A0531
2D graph, first 500 terms ➡️ decompwlj.com/2Dgraph500terms/

#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





Show Original Post


07.12.2025 02:08
rahmon (@rahmon@mastodon.social)

I talked with two Computer Science students today and they were shocked when I said I work with PHP. They hadn't met anyone who works with PHP until me 😆




Show Original Post


07.12.2025 00:16
devto_vn_bot (@devto_vn_bot@mastodon.maobui.com)

Hướng dẫn chia sẻ thư mục dự án PHP từ Windows sang Mac qua mạng nội bộ: bật SMB, cho Full Control, cấu hình Windows Firewall cho Apache/MySQL, mở cổng 80 & 443, truy cập phpMyAdmin bằng http://IP/phpmyadmin. Giờ bạn có thể lập trình đồng thời trên cả 2 máy mà không cần sao chép môi trường. #PHP #XAMPP #Mac #Windows #Development #LậpTrình #MạngTạiNhà

dev.to/tin0312/developing-a-ph




Show Original Post


06.12.2025 22:48
laravista (@laravista@techhub.social)

#Laravel works on #AlterVista shared hosting 🥳
laravista.altervista.org/L12x/

#LaraVista #PHP #Laravel12




Show Original Post


06.12.2025 22:30
velkuns (@velkuns@phpc.social)

I've completed "Trash Compactor" - Day 6 - Advent of Code 2025 #AdventOfCode adventofcode.com/2025/day/6

Done in PHP, as every year :)
Code available here, github.com/velkuns/adventofcod

Other days also available, I didn't post yet.
I don't optimize the day 4 now (but know how to do that, it is pretty simple).

But other part are quite optimised, globally around the milliseconds.

Pretty nice for #php code :)




Show Original Post


06.12.2025 20:14
nyamsprod (@nyamsprod@phpc.social)

Coming in league/uri 7.7 small DX improvement. the URI object is now more developer friendly thanks to lessons learn while working on the polyfill. #PHP #URI





Show Original Post


06.12.2025 19:44
kubikpixel (@kubikpixel@chaos.social)

@steampixel sogar in #PHP an sich ist #Argon2 Standart und deswegen in jeglichem entsprechenden (aktuellem) #Web Frameworks: php.net/manual/de/password.con




Show Original Post


06.12.2025 18:08
YasserElgammal (@YasserElgammal@phpc.social)

🚀 Just launched a new VS Code theme: Quantum Blue Dark!

If you love dark themes with a modern blue vibe, give Quantum Blue Dark a try and tell me what you think! 💙

vscode link:
marketplace.visualstudio.com/i

Your feedback means a lot 🤍

Happy coding! ⚡👨‍💻

#vscode #laravel #php #web #developer





Show Original Post


06.12.2025 17:01
TurboLearnPHP (@TurboLearnPHP@mastodon.social)

Content Security Policy - No CSP vs Strict CSP

🛡️ Content Security Policy - No CSP vs Strict CSP - This security comparison will shock you! Junior code has major vulnerabilities, senior code is bulletproof. Learn how to write secure PHP! Learn the professional way!

...

youtube.com/watch?v=FMk3S-MY924




Show Original Post


1 ...273 274 275 276 277 278 279 280 281 282 283 ...527
UP