bolha.us is one of the many independent Mastodon servers you can use to participate in the fediverse.
We're a Brazilian IT Community. We love IT/DevOps/Cloud, but we also love to talk about life, the universe, and more. | Nós somos uma comunidade de TI Brasileira, gostamos de Dev/DevOps/Cloud e mais!

Server stats:

255
active users

#json

5 posts5 participants0 posts today

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 :)

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

File format building blocks: primitives in digital preservation


by @beet_keeper

A primitive in software development can be described as:

a fundamental data type or code that can be used to build more complex software programs or interfaces.

– via capterra.com/glossary/primitiv (also Wiki: language primitives)

Like bricks and mortar in the building industry, or oil and acrylic for a painter, a primitive helps a software developer to create increasingly more complex software, from your shell scripts, to entire digital preservation systems.

Primitives also help us to create file formats, as we’ve seen with the Eyeglass example I have presented previously, the file format is at its most fundamental level a representation of a data structure as a binary stream, that can be read out of the data structure onto disk, and likewise from disk to a data structure from code.

For the file format developer we have at our disposal all of the primitives that the software developer has, and like them, we also have “file formats” (as we tend to understand them in digital preservation terms) that serve as our primitives as well. 

I can't really complain about the functionality of my brain synapses. It's just that with languages, they don't work the way I want them to. This also applies to programming languages – unfortunately.

My upcoming project requires data output. Of course, I'm familiar with the combination of #PHP and #MySQL, without being able to create both of them. I'm concerned about the how, since I won't be using any of the common monsters (WordPress, Drupal, etc.). I've heard of #frameworks and read various things about them, but – this is where it gets embarrassing – I just don't understand how to use them. However, I have a feeling they can help me [1]. Does anyone have any ideas how I can overcome my lack of understanding? #Linux #Programming #Database #json

[1] For example, the recently discovered #Flight

docs.flightphp.com/de/v3/

docs.flightphp.comÜber - Flight - An extensible micro-framework for PHPFlight is a fast, simple, extensible framework for PHP. Flight enables you to quickly and easily build RESTful web applications.

Ich kann mich wahrlich nicht über die Funktionalität meiner Gehirnsynapsen beschweren. Nur bei Sprachen wollen sie nicht so, wie ich es mir wünsche. Das gilt auch für Programmiersprachen – leider.

Für mein kommendes Projekt sollen Daten ausgegeben werden. Natürlich ist mir die Kombination #php und #mySQL bekannt, ohne beides selbst erstellen zu können. Mir geht es um das wie, da ich keines der verbreiteten Monster (Wordpress, Drupal usw.) einsetzen werde. Ich habe schon von #Frameworks gehört und diverses dazu gelesen, aber – jetzt wird es peinlich – ich kapiere einfach nicht, wie sie anzuwenden sind. Jedoch ahne ich, dass sie mir helfen können [1]. Hat jemand eine Idee, wie ich meine Begriffsstutzigkeit überwinden könnte? #Linux #Programmierung #Datenbank #json

[1] Z.B. das frisch entdeckte #Flight

docs.flightphp.com/de/v3/

docs.flightphp.comÜber - Flight - An extensible micro-framework for PHPFlight is a fast, simple, extensible framework for PHP. Flight enables you to quickly and easily build RESTful web applications.

found, not really a bug, an interesting behavior in C# and @godotengine

When parsing JSON, an int gets parsed to a float. Which probably makes sense, since everything in JavaScript is a float anyways.
But that then breaks the ulong parsing with a wrong format. Don't know if this is a new 4.4 behavior or if it was always this way. In any case it took me a while to find this bug in my code.

#csharp #godot #gamedev #indiedev #Godot4 #programming #programmingtips #JavaScript #json