frankel, to random
@frankel@mastodon.top avatar

The first rule of is "Don’t distribute your system". Designing distributed systems right is infamously hard for multiple reasons.

Imagine that the client sending a request sends a unique key along. The server keeps track of key-request pairs.

It’s precisely the idea behind the The -Key HTTP Header Field.

https://blog.frankel.ch/fix-duplicate-api-requests/

researchbuzz, to random
@researchbuzz@researchbuzz.masto.host avatar

"The site... builds upon work that was begun by YouTuber 'Owenergy' who, in 2018, uploaded a video that compiled every Reeves whoa that had occurred so far. That video, which is nearly six minutes long, catalogues Reeves’ whoas from 1986 until what was then the present day. Now, [the site] has updated these whoas and made them accessible via JSON APIs which can be embedded into websites."

https://gizmodo.com/keanu-reeves-whoa-in-movie-history-website-1851369377

ewen, to test French
@ewen@mastodon.fedi.bzh avatar

usebruno/bruno: Opensource IDE For Exploring and Testing Api's
https://github.com/usebruno/bruno

https://ewen.korr.bzh/liens/shaare/gO4M2Q

sanjaymenon, to BugBounty
@sanjaymenon@mastodon.social avatar

OWASP OFFAT (OFFensive Api Tester) is created to automatically test API for common vulnerabilities after generating tests from openapi specification file.

https://github.com/OWASP/OFFAT

minioctt, (edited ) to internet Italian

Credo che fare quello che volevo fare riguardo le #PWA, a maggior ragione ora che mi sto informando un po’, è più complicato di quanto credevo… ecco perché ai tempi cercai vie apparentemente più impegnative. Il lavoro di ieri è comunque valido e meglio di nulla, ma ho paura che la mancanza del supporto offline si possa sentire, perché quel metodo non la aggiunge magicamente, e riuscire a farlo appunto non è una passeggiata. 😤️

Per poter “funzionare #offline”, un sito web deve registrare un Service Worker che risponde ad un particolare evento restituendo risorse precedentemente cachate. Sarebbe abbastanza semplice, se non fosse che, per una scomodissima combinazione di requisiti di sicurezza e mancanza di #API nei browser, non c’è letteralmente alcun modo pratico di registrare uno di ‘sti cosi tramite estensioni, figurarsi userscript. Nello specifico, gli script per i ServiceWorker devono essere necessariamente serviti su protocollo https: (quindi niente blob: o data:, cosa che ci taglia via immediatamente gli inject con gli userscript, ma nemmeno file: o http:), per forza dallo stesso dominio della pagina (e quindi non si scappa ospitando per conto proprio solo quel file senza clonare il #sito), e come ho detto non ci sono API per iniettarne da #estensioni. 😨️

Ovviamente, andando per la strada di creare un’estensione, in pura teoria non servirebbe nemmeno preoccuparsi di usare questo metodo, perché a quel punto si potrebbe direttamente usare l’estensione per intercettare il traffico, salvandolo quando è nuovo, per poi servirlo da una cache quando non c’è Internet. Le API sembravano proprio adatte, quindi mi sono messa a fare varie prove, per poi scoprire che… non riesco in alcun modo a visualizzare il contenuto restituito per una pagina se non c’è #Internet: la schermata di errore del #browser prende precedenza, e nessuna delle cose che ho provato riesce a sovrastarla. E anche potenziali #workaround, come usare le API per modificare il contenuto della pagina di errore pur rimanendo sull’URL desiderato, col piffero che funzionano! (E no, sembra proprio che io non possa usare le richieste #web dell’estensione per servire una risposta fake ad un path da registrare come worker, l’evento viene triggerato ma il navigatore non si beve il risultato.) 😭️

In poche parole: ennesimo #rabbithole #JavaScript che mi sta completamente consumando, e anche molto velocemente, perché più trovo ostacoli alla mia #idea più cerco di andare veloce per superarli, ma più ne incontro sempre di nuovi e più il cervellino ammuffito deve elaborare, ma ci sono aspetti del #webdev che sarebbe meglio non elaborare proprio. A questo punto, tutte le strade che posso prendere per risolvere il #problema sono in ogni caso #hack: ne ho in mente qualcuna rimanendo con un’estensione, che comporterebbe comunque un dietro le quinte estremamente bizantino ma nessun particolare compromesso di sicurezza o usabilità… oppure, ben due soluzioni ancora peggiori (e in parte simili), che spero vivamente di non dover usare; sarebbe anche peggio. Comunque, che cavolo, questa piattaforma di #sviluppo è piena di risorse, una maniera prima o poi si troverà. ☠️

https://octospacc.altervista.org/2024/03/26/pwtorturaaaa/

#API #browser #estensioni #hack #idea #Internet #JavaScript #offline #problema #PWA #rabbithole #sito #sviluppo #web #webdev #workaround

davidbisset, to webdev
@davidbisset@phpc.social avatar

Interesting experiment.

"invertornot" is an #API that determines if an image should be inverted for optimal dark-mode rendering.

https://invertornot.com/

https://github.com/mattismegevand/invertornot/

#webdev #frontend

5am, to security
@5am@fosstodon.org avatar

Need an easy and secure way to send a password to someone (typically as a one-off)? I wrote about a solution, the Password Pusher tool:
https://www.samhowell.uk/posts/2024/03/sending-passwords-securely/

echo_pbreyer, to random German
@echo_pbreyer@digitalcourage.social avatar

The LIBE Committee in the EU Parliament voted to tighten surveillance of air travellers. Airlines are to collect and report machine-readable passenger data even for national and intra-EU flights without border controls - disproportionate and unacceptable!

More: https://www.patrick-breyer.de/en/eu-tightens-surveillance-of-air-travelers/

echo_pbreyer, to random German
@echo_pbreyer@digitalcourage.social avatar

Der LIBE-Ausschuss im EU Parlament hat für eine verschärfte Überwachung
von Flugreisenden gestimmt. Außereuropäische Flüge stehen schon unter Generalverdacht, jetzt sollen auch in der EU Airlines Passagierdaten sammeln und melden - unverhältnismäßig und inakzeptabel!

Mehr: https://www.patrick-breyer.de/eu-verschaerft-ueberwachung-von-flugreisenden/

KarkDixNeuf, to php French
@KarkDixNeuf@mastodon.online avatar

Simple, so don't forget that about the 403 Forbidden HTTP status code desire

From RFC 9110 about HTTP and 403

'An origin server that wishes to "hide" the current existence of a forbidden target resource MAY instead respond with a status code of 404 (Not Found).'

lordmatt, to php

This morning I wrote a PHP implementation of the Open Heart Protocol. It was refreshingly easy.

Next up: A nicely behaved AJAX front end.

janriemer, to rust

JSON Patch

https://jsonpatch.com/

"JSON Patch is a format for describing changes to a document. It can be used to avoid sending a whole document when only a part has changed. When used in combination with the PATCH method, it allows partial updates for HTTP in a standards compliant way."

JSON Patch crate:

https://lib.rs/crates/json-patch

xeophin, to random
@xeophin@swiss.social avatar

Gave my website a fresh coat of paint, just in time for spring: https://xeophin.net

xeophin,
@xeophin@swiss.social avatar

And now also with a portfolio: https://www.xeophin.net/works/

(You know what's nice? Using a tool like are.na which has a lovely , so you can just pull the data out and turn it into a website)

andy47, to random
@andy47@aus.social avatar

Dear lazyweb, I struggle with Postman for testing APIs (for various reasons, not least the cloud bias) and see that there are a huge range of newer alternatives, any suggestions for a simple, straightforward, non-cloud app for testing REST APIs?

cliffwade, to fediverse
@cliffwade@allthingstech.social avatar

Good morning and happy Sunday to the

How's your day going so far? Tell me what you've accomplished or what you hope to accomplish.

For me, I'm starting the day off my usual S'mores flavored iced coffee and just going to rest and relax. Yesterday was a very lazy day and I hope to do more of the same today.

Osunderdog,
@Osunderdog@allthingstech.social avatar

@cliffwade I am finally rested up from a week of work related travels. Got all my home chores done.

Today I'm going to brew some wonderful coffee and go exploring OAuth2 and the Google Photos API.

Exciting stuff.

omegarecordingstudios, to AudioEngineering
@omegarecordingstudios@mastodon.social avatar

This student is doing their individual API mix in Studio C! #audioengineering #audioengineer #music #studio #school #recording #mixing #analog #API #musictech #rockvillemd

omegarecordingstudios, to AudioEngineering
@omegarecordingstudios@mastodon.social avatar

Class Mix time in Studio C! Engineer Max takes the students through the process and teaches them basic mixing techniques #audioengineering #music #studio #school #recording #mixing #musictech #audioengineer #rockvillemd #analog #API

video/mp4

ampache, to random
@ampache@fosstodon.org avatar

6.3.0 is out now!

Over 60 pulls were merged this release which is definitely a record.

Work on the with lots of new methods and updates with testing on a blank database starting all the way back on Ampache 3.9.0!

https://github.com/ampache/ampache/releases/tag/6.3.0

zenitram, to random
@zenitram@hachyderm.io avatar

There was only a single bank that I knew of, Wise, that let a customer use their APIs to read your account transactions... but not anymore, because of regulation 🫠

In the EU, that's how PSD2 forces you to "buy" API access to your own personal bank account transaction data through a third-party🤦‍♂️

mathdatech1, to foss French
@mathdatech1@hostux.social avatar

Bruno is a Fast and Git-Friendly Opensource API client, aimed at revolutionizing the status quo represented by Postman, Insomnia and similar tools out there.
https://www.usebruno.com/

image/png

davidbisset, to opensource
@davidbisset@phpc.social avatar

Bruno is a "fast and #git friendly #opensource #api client" that is an alternative to Postman. All local, no cloud storage for privacy.

https://www.usebruno.com/

#webdev

schizanon, to node
@schizanon@mas.to avatar

Node.js now has a built-in API for styling text

(similar to chalk, picocolors, etc)

https://nodejs.org/docs/latest/api/util.html#utilstyletextformat-text

fusiondirectory, to opensource French
@fusiondirectory@pouet.chapril.org avatar

@fusiondirectory is happy to be again at the wednesday 6 march at if you want to be part of a small company that redefine with free software 😉 come talk to us 😎

https://opensourcejobfair.be

@ulyssis

bthalpin, to mastodon
@bthalpin@mastodon.social avatar

I've had a little process running for the past year or so, totting up Mastodon "active monthly users". Occasional bumps up (one outstanding one last summer when Elon did something particularly idiotic) followed by long slow declines.

Was somewhat disappointed to see recent growth of about 250k turning out to be a phantom instance (telling lies via the API).

tagestipp, to fediverse German

#Fediverse-Client #Elk

Elk ist ein Fediverse-Client als alternative #Weboberfläche und nutzt die #Mastodon-#Client-#API, um sich mit Konten auf kompatiblen Instanzen zu verbinden.

Nach eigenen Angaben befindet sich Elk im #Alpha-Status. Bugs und fehlenden Funktionen sind zu erwarten.

Website des Projekts:
https://elk.zone/

Elk im Fediverse:
@elk

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • cisconetworking
  • DreamBathrooms
  • InstantRegret
  • mdbf
  • khanakhh
  • magazineikmin
  • Durango
  • Youngstown
  • slotface
  • rosin
  • everett
  • kavyap
  • Leos
  • megavids
  • ngwrru68w68
  • tacticalgear
  • osvaldo12
  • GTA5RPClips
  • ethstaker
  • thenastyranch
  • cubers
  • anitta
  • tester
  • modclub
  • normalnudes
  • provamag3
  • lostlight
  • All magazines