How Sonos rebooted itself
https://www.theverge.com/podcast/988368/sonos-ceo-tom-conrad-ai-smart-home-fabric-app-redesign?utm_source=flipboard&utm_medium=activitypub
Posted into Tech News @tech-news-theverge
How Sonos rebooted itself
https://www.theverge.com/podcast/988368/sonos-ceo-tom-conrad-ai-smart-home-fabric-app-redesign?utm_source=flipboard&utm_medium=activitypub
Posted into Tech News @tech-news-theverge
« Ne pas utiliser Firefox » : l’aveu caché d’un code mal fichu
Après Bluesky, Goodtech.info s’installe dans le Fediverse et arrive sur Mastodon
If you're reading this, you've probably been hitting your head against a brick wall trying to parse and decipher the new HTTP Signatures sent by Mastodon and other Fediverse servers.
This is a basic and somewhat incomplete guide to accepting these signatures. I'm sure there are various gotchas, but it works with the signatures I've seen in the wild.
OK, wow, no need to be a dick about it! Here's how I validated a real signature that my server received.
PHP
$verified = openssl_verify( data: '"@method": POST"@target-uri": https://example.viii.fi/inbox"content-digest": sha-256=:tFdB/ENGczHMlZMDb66pXoUi2d0OqH2iBHdnN/WV1mc=: "@signature-params": ("@method" "@target-uri" "content-digest");created=1787780262;keyid="https://mastodon.social/users/Edent#main-key"', signature: base64_decode( "sIfmNsM/Q8iG6AJlne1IkZVjQSVFDEYIPsnoSOXQY+W3Eb4+SOn9o4J5SQmFOP+Jecjf3ioFwUdsrFjAGkUUOHPvSbNWkGKtNuGm+C6r3aI3JBCFGPqX3ITgZYV76CF7JJJ5hPGaG8YH/XdmxVIeFfD3M39FQCncMyyq7xJJvwKKP1mzS5s1vNQie8hbQ9owRjtqvoWcmM9GEYCUHNcMPLjZc+CBrj8sfBbNTYgIFI4UtirOaRJvYymxXjmXuzeVYxQujMjAjgobxQ8QFv0zlYsHk+gS5EYyafpJG9zmfCFSoF9+ZwqKNADmuADbISD9LZIH/bmkPoNXhxaeFPqYog==" ), public_key: "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsYMEs4waqk/6gaS+xn1T\nYygElTtNIFNkBcEdEBMaeoGVhyZiVKtSjJCS4z+X+394PKvcfSTcFILIt2GI2jOB\nHD0M2fFgxc8mmdSdCQkgEh9jF3bFI3kopDvzYf726iioYKlHXKpfPKvFt7EJgKH7\naCtS25NQkek3YUd6y3VBcT3R6Xhze9P3QNoZMIsFXklgXDKj+EllfbUqLf1vxt3s\nmD9ETxy2bJi9FheE0uY2WhARn49XAvwczM5Wzt+zqxVEtgpi5v2+ZZAVKhDnJkiC\nCCuI6hrSnKNIx/5mSlX0a0S5h5d03djrCkYsqmwelu01rhOXP2grsz4BXp0y2wrO\n3QIDAQAB\n-----END PUBLIC KEY-----\n", algorithm: "sha256" ); echo $verified;
Copy and paste that into PHP and you should see that $verified is true.
Say please.
Along with the message sent to your server, you will have received HTTP headers like this:
![]()
content-digest: sha-256=:tFdB/ENGczHMlZMDb66pXoUi2d0OqH2iBHdnN/WV1mc=: signature: sig1=:sIfmNsM/Q8iG6AJlne1IkZVjQSVFDEYIPsnoSOXQY+W3Eb4+SOn9o4J5SQmFOP+Jecjf3ioFwUdsrFjAGkUUOHPvSbNWkGKtNuGm+C6r3aI3JBCFGPqX3ITgZYV76CF7JJJ5hPGaG8YH/XdmxVIeFfD3M39FQCncMyyq7xJJvwKKP1mzS5s1vNQie8hbQ9owRjtqvoWcmM9GEYCUHNcMPLjZc+CBrj8sfBbNTYgIFI4UtirOaRJvYymxXjmXuzeVYxQujMjAjgobxQ8QFv0zlYsHk+gS5EYyafpJG9zmfCFSoF9+ZwqKNADmuADbISD9LZIH/bmkPoNXhxaeFPqYog==: signature-input: sig1=("@method" "@target-uri" "content-digest");created=1787780262;keyid="https://mastodon.social/users/Edent#main-key"
The signature-input tells you how to construct a "Signature Base". You have to build a text string which places the various components in the order specified and separated with a newline:
![]()
"@method": POST "@target-uri": https://example.viii.fi/inbox "content-digest": sha-256=:tFdB/ENGczHMlZMDb66pXoUi2d0OqH2iBHdnN/WV1mc=: "@signature-params": ("@method" "@target-uri" "content-digest");created=1787780262;keyid="https://mastodon.social/users/Edent#main-key"
Where @method is the HTTP method used to send data to your server (usually GET or POST), and @target-uri is the URl the message was sent to (usually your inbox).
The publicKey is slightly trickier. As you can see, the signature-input ends with keyid="https://mastodon.social/users/Edent#main-key
If you make a signed request to that URl, you'll get back an ActivityPub Actor document. It will look something like this:
JSON
{ "@context": [ "https://www.w3.org/ns/activitystreams", "https://w3id.org/security/v1", ], "id": "https://mastodon.social/users/Edent", "webfinger": "Edent@mastodon.social", "type": "Person", "name": "Terence Eden", "publicKey": { "id": "https://mastodon.social/users/Edent#main-key", "owner": "https://mastodon.social/users/Edent", "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsYMEs4waqk/6gaS+xn1T\nYygElTtNIFNkBcEdEBMaeoGVhyZiVKtSjJCS4z+X+394PKvcfSTcFILIt2GI2jOB\nHD0M2fFgxc8mmdSdCQkgEh9jF3bFI3kopDvzYf726iioYKlHXKpfPKvFt7EJgKH7\naCtS25NQkek3YUd6y3VBcT3R6Xhze9P3QNoZMIsFXklgXDKj+EllfbUqLf1vxt3s\nmD9ETxy2bJi9FheE0uY2WhARn49XAvwczM5Wzt+zqxVEtgpi5v2+ZZAVKhDnJkiC\nCCuI6hrSnKNIx/5mSlX0a0S5h5d03djrCkYsqmwelu01rhOXP2grsz4BXp0y2wrO\n3QIDAQAB\n-----END PUBLIC KEY-----\n" },
The publicKeyPem is the string you need. There's no need to convert the \n to literal newlines.
Not quite! All we've done so far is verify the headers. It is possible that these are genuine headers but attached to a fraudulent body.
This takes us back to the header "content-digest": sha-256=:tFdB/ENGczHMlZMDb66pXoUi2d0OqH2iBHdnN/WV1mc=:
That says that the body of the message sent has a Base64 encoded SHA256 hash of tFdB/ENGczHMlZMDb66pXoUi2d0OqH2iBHdnN/WV1mc=.
To calculate your own content digest in PHP:
PHP
$input = file_get_contents( "php://input" ); $digestCalculated = base64_encode( hash( algo: "sha256", data: $input, binary: true ) );
Does your digest match the one sent along with the headers? If not, something dodgy is going on.
The steps are:
content-digest extract the algorithm and hash.content-digest.signature extract the base64 encoded signature.signature-input extract the signature-input string.openssl_verify() to verify the Signature Base and the base64 decoded signature, against the Public Key using SHA256.Note, Mastodon only uses SHA256. I think it should explicitly say which algorithm it is using and have raised the issue.
This is how you do it in PHP. Please read this carefully as there are some hard-coded assumptions.
PHP
<?php// Validate the Digest.// It is the hash of the raw input string, in binary, encoded as base64.// The format is content-digest => <algorithm>=:<base64 encoded hash>:$digestString = $headers["content-digest"]; // The Base64 encoding may have multiple `=` at the end. So split this at the first `=`.$digestData = explode( separator: "=", string: $digestString, limit: 2 ); // Hashes are in lowercase, but have a `-` in their name.// This is not what hash_algos() expects.$digestAlgorithm = str_replace( search: "-", replace: "", subject: $digestData[0] ); // The hash is surrounded by `:` characters.$digestHash = str_replace( search: ":", replace: "", subject: $digestData[1] ); // Check if the hash algorithm is one known about to PHP.// If not, reject and record an error.if ( !in_array( needle:$digestAlgorithm, haystack: hash_algos() ) ) { return false; } // Manually calculate the digest based on the data sent.$digestCalculated = base64_encode( hash( algo: $digestAlgorithm, data: $input, binary: true ) ); // Does our calculation match what was sent?if ( !( $digestCalculated == $digestHash ) ) { return false; } // The signature format is signature => <signature name>=:<base64 encoded hash>:$signatureString = $headers["signature"]; // The Base64 encoding may have multiple `=` at the end. So split this at the first `=`.$signatureData = explode( separator: "=", string: $signatureString, limit: 2 ); $signatureName = $signatureData[0]; // The signature is surrounded by `:` characters.$signatureB64 = str_replace( search: ":", replace: "", subject: $signatureData[1] ); // The signature-input format is complicated!$signatureInputString = $headers["signature-input"]; // Get the parameters. Assume there is only one signature.$signatureParamsString = explode( separator: "=", string: $signatureInputString, limit: 2 )[1]; // Get the different elements of the signature.$signatureInputData = explode( separator: ";", string: $signatureInputString ); // Construct the data.$signatureInput = []; foreach( $signatureInputData as $signatureInputParts ) { $partsData = explode( separator: "=", string: $signatureInputParts ); // Strip quotes from keyid and parentheses from sig1. if ( "keyid" == $partsData[0] ) { $partsData[1] = str_replace( search: "\"", replace: "", subject: $partsData[1] ); } if ( $signatureName == $partsData[0] ) { $partsData[1] = str_replace( search: ["(", ")"], replace: "", subject: $partsData[1] ); } $signatureInput[ $partsData[0] ] = $partsData[1] ; } $signatureStructure = $signatureInput[$signatureName]; $signatureKeyID = $signatureInput["keyid"]; // Remove quotes.$signatureStructure = str_replace( search: "\"", replace: "", subject: $signatureStructure ); $signatureStructureData = explode( separator: " ", string: $signatureStructure ); // https://www.rfc-editor.org/info/rfc9421/#section-2.5$signatureBase = ""; foreach ( $signatureStructureData as $signatureStructureParts ) { if ( "@method" == $signatureStructureParts ) { // https://www.rfc-editor.org/info/rfc9421/#name-method $signatureBase .= "\"@method\": " . $_SERVER["REQUEST_METHOD"] . "\n"; } if ( "@target-uri" == $signatureStructureParts ) { // https://www.rfc-editor.org/info/rfc9421/#section-2.2.2 // Change the domain name to your own. $signatureBase .= "\"@target-uri\": https://EXAMPLE.COM" . $_SERVER["REQUEST_URI"] . "\n"; } if ( "content-digest" == $signatureStructureParts ) { $signatureBase .= "\"content-digest\": $digestString\n"; } } // https://victoronsoftware.com/posts/http-message-signatures/#how-the-signature-is-created$signatureBase .= "\"@signature-params\": $signatureParamsString"; // Get the signing user's public key.// This is usually in the form `https://example.com/user/username#main-key`// This is to differentiate if the user has multiple keys.// This may need to be a signed request. You will need to write your own getDataFromURl() function to get the sending user's key.$userData = getDataFromURl( $signatureKeyID ); $publicKey = $userData["publicKey"]["publicKeyPem"]; // Verify the request$verified = openssl_verify( data: $signatureBase, signature: base64_decode( $signatureB64 ), public_key: $publicKey, algorithm: $digestAlgorithm ); // Convert the result to boolean.if ( $verified === 1 ) { $verified = true; } elseif ( $verified === 0 ) { $verified = false; } else { $verified = null; } return $verified;
This blog post was funded in part by the work I'm doing for my NLnet NGI0 grant. Thanks!
#ActivityBot #ActivityPub #mastodon #php #webdevSwitchBot’s retrofit door lock offers 19 ways to unlock it
https://www.theverge.com/tech/989246/switchbot-lock-ultra-max-retrofit-smartlock-ifa-launch?utm_source=flipboard&utm_medium=activitypub
Posted into Tech News @tech-news-theverge
Here’s the first 4K 120Hz UST projector with optical lens shift
https://www.theverge.com/gadgets/986005/awol-visions-4k-120hz-ust-projector-is-first-with-optical-lens-shift?utm_source=flipboard&utm_medium=activitypub
Posted into Tech News @tech-news-theverge
Philips Hue adds more affordable options for syncing smart lights with your TV
https://www.theverge.com/tech/988363/philips-hue-play-screen-sync-entertainment-lighting?utm_source=flipboard&utm_medium=activitypub
Posted into Tech News @tech-news-theverge
Anker put a display on the case of its new sleepbuds
https://www.theverge.com/tech/988265/anker-sleep-earbuds-4-pro-price-date-specs?utm_source=flipboard&utm_medium=activitypub
Posted into Tech News @tech-news-theverge
Now you can tell the Hue app how you want your smart lights to work
https://www.theverge.com/tech/988953/philips-hue-smart-lighting-custom-ai-behaviors-sonos-integration?utm_source=flipboard&utm_medium=activitypub
Posted into Tech News @tech-news-theverge
I want to wrap myself in Hue’s new Liane rope lights
https://www.theverge.com/tech/989014/philips-hue-liane-360-rope-lights-smart-lighting-interior-design?utm_source=flipboard&utm_medium=activitypub
Posted into Tech News @tech-news-theverge
RE: https://mamot.fr/@ploum/117202338350731080
One of the benefits of daily-driving @postmarketOS is that you do have a smartphone but the crappy apps are not available for anything outside the Android/iOS duopoly. It's a great conversation starter about lock-in, sovereignty, software freedom etc.
Anker’s Soundcore is bringing its incredible call quality to more headphones
https://www.theverge.com/tech/986330/soundcore-headphones-earbuds-announcement-ifa-2026?utm_source=flipboard&utm_medium=activitypub
Posted into Tech News @tech-news-theverge
Since the number of levels in the tree is generally small compared to the number of buffers, this paging scheme will ensure that the root page is always present in memory; and if the root has only 2 or 3 children, the first-level pages will almost surely stay there too. Any pages that might need to be split during an insertion are automatically present in memory when they are needed, because they will be remembered from the immediately preceding search.
"the first-level pages will almost surely stay there too" this is not a serious analysis bro you've been riding people's coattails for way too long!!!!
however, completely by chance, i did find this paper from a team led by rui-Xiang ma from wuhan national laboratory for optoelectronics (https://sci-hub.st/10.1007/s11390-021-1247-6) which describes a database in persistent memory that works incredibly closely to my fractal zip file approach, with particular attention to data consistency and write optimization. so i can totally just steal this for anything i haven't figured out yet for the filesystem shit
Tested the recent KDE patch note about "wiggling the mouse for an obscene amount of time" and am pleased to announce that the cursor does, indeed, get huge.
2026 September 2
* Image Credit & Copyright: Javier Castro
https://www.instagram.com/fotojaviercastro/
* Text: Keighley Rockcliffe (NASA GSFC, UMBC CSST, CRESST II)
https://kerockcliffe.com/
Explanation:
Pretend you have never heard of a solar eclipse. The Sun’s behavior has been predictable your whole life. One day, you witness the sky transform as it does in today’s spliced image spanning two hours of the August 12, 2026 solar eclipse. The Sun disappears, leaving behind a bright, empty ring. What would you think had happened? Humans have interpreted eclipses in countless ways throughout history, embedding beliefs about connection, rebirth, or danger into culture. “Eclipse” comes from the Greek word “ékleipsis” meaning “abandonment”. In ancient Greece, the solar eclipse marked the anger of the gods and the Sun abandoning humanity. To the Diné people, this celestial alignment is a time of renewal. Out of respect and to avoid the danger of sunlight, the Diné stay inside until the Sun and Moon separate. The Batammariba people of Benin and Togo believe that the Sun and Moon fight during an eclipse, so the community encourages peace among themselves. Eclipses are an example of the longstanding connection between astronomy and society.
https://www.instagram.com/p/DcBum3zI7YL/
https://apod.nasa.gov/apod/ap260813.html
https://science.nasa.gov/eclipses/history/
https://www.exploratorium.edu/eclipse/eclipse-stories-from-around-the-world
https://www.etymonline.com/word/eclipse
https://www.exploratorium.edu/eclipse/navajo-understanding-eclipses
https://www.metmuseum.org/perspectives/sikien-koutammakou
#space #astronomy #astrophotography #photography #eclipse #nature #NASA #apod #space_related #space_culture_Club #apod
2026 September 3
The Eclipse and the Stork
* Image Credit & Copyright: Włodzimierz Bubak
https://www.instagram.com/trzeci_plan/?hl=en
* Text: Cecilia Chirenti (NASA GSFC, UMCP, CRESST II)
https://science.gsfc.nasa.gov/sci/bio/cecilia.chirenti
Explanation:
How do animals react to a total solar eclipse? The featured image shows a stork roosting on her nest in Poland at a partial phase of the recent total solar eclipse. If you are lucky enough to experience a total eclipse somewhere quiet and close to nature, you may be able to notice unusual daytime animal behaviors. During totality, you may hear nighttime sounds like crickets and frogs and see fireflies. In the dark, most birds are quiet. Thinking that it is time to go to bed, ducks and other waterfowl prepare to sleep on one leg, with their heads turned around and their beaks tucked into their back feathers (they don't really sleep with their heads tucked under one wing). When sunlight returns at the end of totality, songbirds greet the new "morning" with their dawn songs. The crickets and frogs go quiet again. Animals and people resume their lifes, only briefly disturbed by the chance alignment of our Sun and Moon.
https://apod.nasa.gov/apod/ap250612.html
https://www.instagram.com/p/Db9F-0nsklu/
https://apod.nasa.gov/apod/ap260813.html
https://www.fws.gov/story/wildlife-behavior-and-solar-eclipse
https://www.youtube.com/watch?v=sJCoF58ailo
https://apod.nasa.gov/apod/ap250802.html
https://www.scientificamerican.com/article/birds-went-silent-during-the-great-north-american-eclipse-heres-what/
https://www.birds.cornell.edu/k12/do-birds-sleep/
https://apod.nasa.gov/apod/ap240331.html
https://merlin.allaboutbirds.org/the-story/
https://images.unsplash.com/photo-1566938611484-080d628f3c28
https://images.unsplash.com/photo-1566938611484-080d628f3c28
https://science.nasa.gov/eclipses/
https://science.nasa.gov/sun/
https://science.nasa.gov/moon/
#space #astronomy #astrophotography #photography #eclipse #nature #animals #NASA #apod #space_related #space_culture_Club #apod
The Netherlands is moving 86 tonnes of gold out of the US due to “geopolitical unrest,” as experts warn that it is “no longer safe” under Trump. What do you think the US will do when its debt becomes too large? Just rob other states of their gold. https://www.dailymail.com/news/article-16099075/Netherlands-moves-gold-US-geopolitical-unrest.html
So I released something!
My favorite VR game in the world, SUPERHYPERCUBE, has been ported to the Playstation®VR2, by… ~me, actually~ (with support from the original developers)!
It is currently half off if you owned the PS VR1 version.
https://www.youtube.com/watch?v=lwPJOcEoofk
This is an arcade-style spatial reasoning game, kind of like "Tetris" from the perspective of the Tetris block. It is an audiovisual feast and has an incredible sense of presence.
If anyone you know has a PS VR2, please let them know!
I am going to be doing a stream of SUPERHYPERCUBE VR for PS5, this Sunday the 6th at 2 PM ET, to show the game we made off! You will be able to watch it here:
This will be my first Twitch stream in about a year, and maybe my last ever as I'll be switching to https://stream.place once I can figure out how to make it Fediverse inclusive.
Amazon’s AI assistant can now spot fake emails from the company
https://www.theverge.com/tech/988518/amazon-alexa-for-shopping-verify-emails?utm_source=flipboard&utm_medium=activitypub
Posted into Tech News @tech-news-theverge
Anker announces its first over-the-counter hearing aids
https://www.theverge.com/tech/986377/ankers-first-otc-hearing-aids-ifa-2026?utm_source=flipboard&utm_medium=activitypub
Posted into Tech News @tech-news-theverge
New on // foss.events: Berlin FediDay 2026 by Digitale Gesellschaft on 11-13 September 2026 in c-base in #Berlin, #Germany
Find out more on
https://foss.events/2026/09-11-berlin-fediday-2026.html
Follow the official account: @berlinfediday
Connect via official hashtag(s): #FediDay #BerlinFediDay.