photog.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A place for your photos and banter. Photog first is our motto Please refer to the site rules before posting.

Administered by:

Server stats:

245
active users

#code

11 posts11 participants5 posts today

PRIVACY FOLKS: Stop fucking forgetting about accessibility. People with disabilities deserve privacy too - and in fact probably need it more than you do.

Signed,
So fucking tired of not being able to use privacy focused alternatives to apple and google, their native aps for various things from email to navigation, and suchlike.

»Over 600 Laravel Apps Exposed to Remote Code Execution Due to Leaked APP_KEYs on GitHub:
Cybersecurity researchers have discovered a serious security issue that allows leaked Laravel APP_KEY's to be weaponized to gain remote code execution capabilities on hundreds of applications.«

Never store your access keys in Git, especially not in the code – do programmers need to be taught this?!??

🔓 thehackernews.com/2025/07/over

I know I'm late to the party on this, but when people say "headless CMS" do they kinda mean the database part of the "database publishing" of 20 years ago?

Like it is storing content separately from the HTML/CSS or app interface so one doesn't have to munge that stuff when making content, or munge content when making a site or app or something, right?

Or is there some new magic in "headless CMS" I'm missing?

"We ran a randomized controlled trial to see how much AI coding tools speed up experienced open-source developers. The results surprised us: Developers thought they were 20% faster with AI tools, but they were actually 19% slower when they had access to AI than when they didn't."

bsky.app/profile/metr.org/post

Bluesky Social · METR (@metr.org)We ran a randomized controlled trial to see how much AI coding tools speed up experienced open-source developers. The results surprised us: Developers thought they were 20% faster with AI tools, but they were actually 19% slower when they had access to AI than when they didn't.

PHP people,

I'm trying to convert some python that I wrote many years ago to #PHP. The code takes a word (string) and converts it into IPA(International Phonetic Alphabet) based on an alphabet character=>IPA dictionary (array).

In Python every string is an array, but in PHP it's not.

How do I iterate over a string not just seeking for individual characters but also for groups of characters? For instance the word 'light' I'd want to seek for 'igh', which would be converted to 'aɪ'

TIA

#Programming #Python #ConLang #Code

Edit: With loads of help from lots of people, especially @inguin, I now have this sorted (I think). Thanks to everyone.

i had a really bad #code #interview last week because i was beyond nervous. i am really bad at coding while people watch me.

i'm thinking about some exposure therapy. i might try to figure out how to livestream to #peertube or #twitch and just repeatedly do codewars or build something stupid. thinking about it makes my heart race in panic so i think it might help.

alternatively, i might reach out to some folks and see if they wanna do the same thing by way of #jitsi.

The Sequencer: Detect one-dimensional sequences in complex datasets

The Sequencer reveals the main sequence in a dataset if one exists. To do so, it reorders objects within a set to produce the most elongated manifold describing their similarities which are measured in a multi-scale manner and using a collection of metrics. To be generic, it combines information from four different metrics: the Euclidean Distance, the Kullback-Leibler Divergence, the Monge-Wasserstein or Earth Mover Distance, and the Energy Distance. It considers different scales of the data by dividing each object in the input data into separate parts (chunks), and estimating pair-wise similarities between the chunks. It then aggregates the information in each of the chunks into a single estimator for each metric+scale.

github.com/dalya/Sequencer

sequencer.org/

An algorithm that detects one-dimensional sequences in complex datasets - dalya/Sequencer
GitHubGitHub - dalya/Sequencer: An algorithm that detects one-dimensional sequences in complex datasetsAn algorithm that detects one-dimensional sequences in complex datasets - dalya/Sequencer
#space#tech#science
Continued thread

2️⃣ `feColorMatrix`: swap channels ☆ interactive demo, adaptive layout - check it out on @codepen codepen.io/thebabydino/full/QW

An interactive, responsive demo illustrating how `feColorMatrix` can be used to swap channels. Another very special one.

#SVG #filter #svgFilter #JS #interactive #javascript #code #coding #frontend #CSS #web #dev #webDevelopment #webDev #cssGrid #cssLayout

Behind the demo mastodon.social/@anatudor/1122

#php #code
Well, today I improve a little bit with the exploration with AST (the concrete extension php-ast).
Basically I refactor the analysis logic to be more modular and readable and clarified the base skeleton of this subproject. I use generators for better performance, and handle edge cases and added some support for loading PHP code to analyze from a file instead of hardcoded it. Just remember my first feature was to sniff the PHP code to remove unexpected dumps. 💟