graz.social ist einer von vielen unabhängigen Mastodon-Servern, mit dem du dich im Fediverse beteiligen kannst.
Ein Mastodon-Server für Graz und Umland betrieben durch den Verein graz.social - Verein zur Förderung ethischer Digitalkultur: https://info.graz.social

Verwaltet von:

Serverstatistik:

262
aktive Profile

#json

1 Beitrag1 Beteiligte*r1 Beitrag heute

#Blogger so: Hübscht eure #Blogs auf und optimiert sie für #AI mit #JSON.

Andere Blogger so: Hört mit dem Bullshit und den ausgedachten JSON-Formaten auf.

Blogger früher so: Liebes Tagebuch, heute war ein Scheißtag.

Wo sind wir Blogger denn falsch abgebogen? Wir wollten auf SEO verzichten und machen nun AI-O? Wozu? Um dem Ami Google noch mehr Daten zum Fraß vorzuwerfen? Wer sagt denn, dass mir das mit meinem Blog irgendwas bringt?

Today is rest day, in all dimensions.

So why not computing the administrative areas around the world I've visited while running and cycling with @duckdb #SQL and a bit of #Java

github.com/michael-simons/biki

Doing all the #spatial stuff directly from within the db, working on temp tables.

Eventually getting a deeply nested #JSON structure out of it:

github.com/michael-simons/biki

Thanks @lukaseder for inspiration, @hannes for that piece of tech :)

GitHubbiking3/bin/collect_administrative_areas.java at main · michael-simons/biking3Database schema and Flask application for tracking mileages on bikes - michael-simons/biking3

Mastodon-Client-API

Auch wenn sich im #Fediverse viel um #ActivityPub dreht und hier durchaus auch eine #Client-Schnittstelle skizziert ist, nutzt #Mastodon eine eigene Client-API, die (zumindest teilweise) auch von anderer fediversaler Serversoftware unterstützt wird (z.B. #Friendica, #Firefish, #Mammuthus).

Diese #API (application programming interface, eine #Schnittstelle zur #Programmierung von Anwendungen) dient Apps und Clients dazu, entsprechende Funktionen auf einer #Instanz durchzuführen. Diese API ermöglicht die Entwicklung von Apps wie #Tusky, #Fedilab & Co.

Man kann diese API auch nutzen, um Konten etwa (teil)automatisiert zu betreiben.

Oder Statistiken zu sammeln... oder... oder... ;-)

Die API ist soweit öffentlich dokumentiert und steht frei zur Verfügung.

Allgemeine Dokumentation zu #Mastodon (auf Englisch):
https://docs.joinmastodon.org/

"Getting started with the API":
https://docs.joinmastodon.org/client/intro/

Wer mit dem Gedanken spielt, die API zu nutzen, sollte sich mit #HTTP, #JSON & Co. anfreunden können. Und Englischkenntnisse sind in diesem Bereich grundsätzlich von Vorteil...

docs.joinmastodon.orgMastodon documentationWelcome to the Mastodon documentation!

Finally! My #Javascript planning module can access data from the German electronic AIP.

🙂 💪

Behind the scenes it downloads the current metadata from aip.dfs.de, updates the local AIXM files if necessary, and uses XSLT stylesheets to translate the original XML into JSON-compatible text.

*sigh*

XSLT 1.0 is rather... awkward... unwieldy. And JSON is not forgiving when it comes to control chars and dangling commas. Had to develop JSON building block templates.

Antwortete im Thread

3/

ActivityPub & ActivityStreams are based on JSON-LD — a format that is not (non-programmer) human-legible & human-writable

Maybe we need an alternative way of encoding ActivityPub & ActivityStreams in situations where (non-programmer) humans might read it or write it

Maybe the INI file data format? Or something else that is friendly to (non-programmer) humans?

Antwortete im Thread

@p2501 @Venty @xtaran das liegt ja an #YAML.

Lustig dazu: als ich yaml2jsn verwendete, um meine GitHupenAktionen-Dateien schreibbar (#JSON-Subset, das YAML-Parser verstehen, denn YAML kann niemand schreiben, ohne wahnsinnig zu werden, wegen der unklaren Einrückungs- und Quotingregeln) zu machen, wurde aus on: push tatsächlich { "1": "push" }🤦 mit "on": tut es (bspw.) aber auch.

Was ich dann noch anprangere ist die von #GHA vorgegebene Dateierweiterung, denn #YML ist was ganz anderes (was ich tatsächlich schon im Berufsleben einsetzen durfte).

Have you ever asked yourself how the BSD Café Mastodon instance was built?

Stefano has written here what he has done. You should have at least rudimentary knowledge of what a jail is in order to follow everything and at least a simple manner.

In short a jail is much more efficient than a VM, uses much less resources and it's easier to control

If you take the time to Study all the subjects, you will be a will to build a freeBSD instance of Mastodon yourself; all the information necessary Is provided Here and Deep to very Deep details you can dig up yourself

wiki.bsd.cafe/bsdcafe-technica

🖋️ #bash #sh #zsh #ksh #csh #tsh #programming #JavaScript #Mastodon #freeBSD #ngix #json #POSIX #SocialMedia #webfinger

Just started a new project, `betterer-json`. It's like JSON Patch, except it's javascript.

You write your script match like a JSON Patch - use JSONPath to select values to process, each value is sent to a callback, and its result is put back in the JSON document.

This example changes '"format": "datetime"' to '"format": "date-time"' across json document

```
replace('$..format', value => {
if(value === 'datetime')
return 'date-time';
return value
})
```

github.com/python-lapidary/bet

GitHubGitHub - python-lapidary/betterer-json: Programmatically replace fragments of JSON while keeping the overall structureProgrammatically replace fragments of JSON while keeping the overall structure - python-lapidary/betterer-json
#typeScript#javaScript#JSon

New @small-web/kitten release (version 5.2.0)

Adds missing types on `KittenRequest` and `KittenResponse` interfaces (the missing request and response helpers).

• `is()`: check for request type. e.g., `request.is('html')` or `request.is('json')` (you can also use the full mimetype).
• `json()`: JSON.stringify passed data and end response with inline JSON.
• `jsonFile()`: JSON.stringify passed data and end response with JSON attachment and optional file name.
• `file()`: end response with passed file data and optional file name and mime type.
• `withCode()`: end response with passed status code and optional body.

Kitten request and response helpers documentation:

kitten.small-web.org/reference

Kitten type safety tutorial:

kitten.small-web.org/tutorials

Enjoy!

:kitten:💕

#Kitten#SmallWeb#SmallTech