starbreaker, to random

I wanted to create a "jukebox" page for my where I list albums in my collection.

I could just write in but if the page gets big enough it'll be a pain.

Besides, I'm a techie by trade, I can automate this. I figure I'll use a and a that looks for two files:

"${BAND}.tsv": tab separated, 2 fields: band name, band description
"${BAND}.psv" pipe separated, 4 fields: year, album, label, MusicBrainz link

Then I can update my .

testing my "jukebox.sh" shell script in a terminal window. It prints Markdown text to standard output and appears to work.

starbreaker,

@beekir I could dump my #QuodLibet library to #JSON and then process that with #jq to generate my jukebox page, but I'd have to update each album to get accurate label/release information from MusicBrainz.

brunty, to random
@brunty@brunty.social avatar

Deployed a tool for a personal / #SelfHosted thing recently and it was configured using #XML

There was much rejoicing, no #YAML, no #JSON!

david_megginson,

@brunty I think they all have their place. Coders love #JSON because it looks like code (non-coders hate it for the same reason). #YAML is great for config files, but gets awkward for more-advanced data. Nobody loves #XML, but I find that non-coders hate it slightly less than JSON, just because it looks a bit like HTML (many more people know HTML than know how to write code) and handles mixed content elegantly.

Still, complex data is complex, regardless of the representation.

david_megginson,

@brunty OK, I'll admit, I love #XML too: I wrote two books about it and was a member of the original #W3C XML WG and chaired the XML Core WG afterwards. 🙂

But all the same, when I was chairing XML 2007, I did invite @douglascrockford to give a closing keynote about #JSON, just to remind the aficionados that there was more to #markup than XML.

khalidabuhakmeh, to random
@khalidabuhakmeh@mastodon.social avatar

Spent the morning answering a #JetBrains #dotnet blog reader's question about filtering on a #JSON collection using #EFCore and #sql

Any folks have some thoughts? It turns out this is such a new use case that there isn't query support yet for arrays through LINQ.

https://blog.jetbrains.com/dotnet/2023/02/14/getting-started-entity-framework-core-7-json-support/#remark42__comment-db104e2f-baec-4801-9b33-334fe2586753

ctietze, to random
@ctietze@mastodon.social avatar

Is it at all possible to use jq to replace JSON values with the output of a custom command?

Example: parse the value as a date, then add 3 days, then make this a string; replace the old value with this one.

The replacing itself with #jq is simple, but I can't figure out how to "pipe" values

ctietze,
@ctietze@mastodon.social avatar

Maybe this is a case for #jq to pretty-print the #JSON, then #sed/#awk to replace values?

codidact, to programming

A community member is looking for #codereview on a #JSON log formatter for #Python. Is this approach sound? You can post an answer addressing some or all of the (small) body of code shown; this isn't conventional Q&A where you need to have "the answer". Can you help? https://software.codidact.com/posts/288091

bagder, to random
@bagder@mastodon.social avatar

All existing #curl CVEs are now available as #JSON: https://curl.se/docs/vuln.json

All individual issues are also available as JSON, like for example CVE-2023-27538 like this: https://curl.se/docs/CVE-2023-27538.json

Enjoy!

patrick_h_lauke, to random
@patrick_h_lauke@mastodon.social avatar

whenever somebody talks about #json my mind goes to this...

backupbear, to random

Diving back into #Perl after a couple of years away from code and because I'm a masochist I'm finally tackling #JSON with it.

qmacro, to random
@qmacro@hachyderm.io avatar

New post: Improving my interactive workflow with ijq, and .

I'm a big fan of ijq and how it allows me to explore data interactively with jq expressions. With a small script I have improved my workflow by being able to capture the jq expression from ijq and use it easily on the command line.

https://qmacro.org/blog/posts/2023/04/27/improving-my-interactive-jq-workflow-with-ijq-bash-and-tmux/

Share & enjoy!

maartenballiauw, to random
@maartenballiauw@mastodon.online avatar

What do you do when you need to inspect HTML, XML, JSON, or a JWT while debugging? 🐞
.
.
.
👀
.
.
.
Use Rider 2023.1's new debugger visualizers of course!

Find out more in this post by @khalidabuhakmeh https://blog.jetbrains.com/dotnet/2023/04/27/html-xml-json-and-jwt-visualizers-in-rider-2023-1/ #dotnet #jwt #json

oraclebase, to random
@oraclebase@techhub.social avatar
rafaelcaricio, to random

Someone knows where I could download #WikiData in #NTriples format using #BitTorrent? I can only see a fairly recent torrent for #JSON format.

@wikidata any idea?

jdecool, to random
@jdecool@phpc.social avatar

RT @brunoborges
#JSON

  • Allows shitty formatting
  • No comments
  • Poor schema support
  • Poor IDE support

#YAML

  • Formatting's like shitty white men on Twitter
  • Supports comments
  • No schema
  • No IDE usability

#XML

  • Just works
  • Great IDE usability
  • Comments
  • Any formatting

Pick your markup

mjgardner, (edited ) to programming
@mjgardner@social.sdf.org avatar

This is hilarious. A engineer invented to make command line scripting easier with , because at a certain point scripts get too complicated and you need a Real Language.

https://github.com/google/zx/

This is exactly ’s use case from thirty-six years ago. But the kids want everywhere and would rather it take more work to convert their ascended scripts to a vastly different syntax.

https://github.com/google/zx/issues/581#issuecomment-1516573139

mjgardner,
@mjgardner@social.sdf.org avatar

@ndw Reading your bio. I’m almost reluctant to point out that the same “worse is better” cycle applies to #markup languages. #JSON was a reaction to #XML, #Markdown was a reaction to #HTML, and both have since acquired layers to add back what they threw away.

to3k, to mastodon Polish
@blog.tomaszdunia.pl avatar

🇵🇱 Nowy wpis na blogu! / 🇬🇧 New blog post!

Mastodon API – followers and following list [ENG 🇬🇧]

Autor: @to3k

https://blog.tomaszdunia.pl/mastodon-api-followers-following-eng/

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