March 23rd, 2023
Hello everyone and welcome to our second edition of the Confluent DevX Newsletter! If you happen to live in participating states in the U.S., we hope daylight savings wasn’t too rough. Wherever you live, we hope that your Pi Day was filled with mathematical joy. We’ve got all sorts of goodies this week ranging from Apache Kafka® migration tips to animals crocheted with patterns devised by ChatGPT. So let’s dive in…
You might have heard of the jq utility to transform JSON data, but what about XML? Enter python-yq. Installing it allows you to use xq, which formats XML to JSON like so:
curl --show-error --silent \
https://tfl.gov.uk/tfl/syndication/feeds/cycle-hire/livecyclehireupdates.xml \
| xq -c '.stations.station[] + {lastUpdate: .stations."@lastUpdate"}'
Result:
{"id":"850","name":"Brandon Street, Walworth","terminalName":"300060","lat":"51.489102","long":"-0.0915489", [...] "lastUpdate":"1677702601270"}
Here you see that bicycle rental data, expressed as XML, is transformed into JSON objects by the xq utility. Neat!
Kafka Summit London is happening soon, May 16-17! Register at the conference home page. By the way…
We hope you enjoyed our curated assortment of resources! If you’d like to provide feedback on what type of content you’d like to see, or you want to submit your own resource for consideration, send us an email at info@confluent.io!
If you’d like to view previous editions of the newsletter, visit Confluent Developer. P.S. If you want to learn more about Kafka or Confluent Cloud, visit our developer site at Confluent Developer.
March 9th, 2023
Welcome to our inaugural edition of “Confluent DevX Newsletter”! We’ll share many types of content in this newsletter, including: Kafka-related content from the community, tips and tricks for managing Apache Kafka® projects in your terminal, and links to fun nerdy content from around the broader web.
To view the output of a command in bytes, use a pipe and ‘hexdump.’ For example, if I were to want the output of viewing a topic using kcat to be in bytes, I’d type:
❯ kcat -Ct purchases -c1 | hexdump
0000000 0000 8601 00a1 0308 0612 7567 7469 7261
By the way…
We hope you enjoyed our curated assortment of resources! If you’d like to provide feedback on what type of content you’d like to see, or you want to submit your own resource for consideration, send us an email at info@confluent.io!
P.S. If you want to learn more about Kafka or Confluent Cloud, visit our developer site at Confluent Developer.
We will only share developer content and updates, including notifications when new content is added. We will never send you sales emails. 🙂 By subscribing, you understand we will process your personal information in accordance with our Privacy Statement.