ChatGPT: Convert JSON to CSV, and generate some code to automate.

The Goal was to have a go program that converts JSON data i have on a project to a CSV file. Looks like that was easy for ChatGPT so did a few extra steps to generate some Golang code, first naively, then streaming through the input json file. What follows is the ChatGPT conversation. You: turn this json snippet into csv: [ { “Id”: 0, “Date”: “2022-11-01T09:00:00+09:00”, “Project”: null, “Cost”: 5000, “Estimate”: 6000, “Updated”: “0001-01-01T00:00:00Z” }, { “Id”: 0, “Date”: “2022-10-01T09:00:00+09:00”, “Project”: null, “Cost”: 4000, “Estimate”: 5000, “Updated”: “0001-01-01T00:00:00Z” } ]

How to use AWS S3 for persistence in Kubernetes

We recently deployed a Kubernetes cluster based on KubeSpray at a client. Since there is no out of the box cloud storage, one of the first task to clear for the cluster deployment is the data persistence. We gave sshfs a try, and then thought we could actually also manage the distributed persistence using Goofys. Goofys allows you to simply mount an AWS S3 bucket as a file system. In effect, all the S3 data is synchronized between the different nodes of the cluster.

Shipping Go [Manning]

Thanks to the (very friendly) reviewers team at Manning I just got my hands on the newly released Shipping Go, and first of all I had a great time reading from start to finish which hasn’t happened in a long time as far as IT books go. I was actually pleasantly surprised. the amount of code in the book is kept to a minimum the focus is on keeping the product to a minimal set of features, shows how to push a quality code out, and to a various set of plateforms and environments (and why both production and developpers environment should be kept as close as possible to each other ) The book focuses and explores the lifecycle of go projects in particular, but the techniques presented can be easily reused in the scope of other languages.

Primitive Hats

Autumn is coming ! A piece of magic is a hat - Martha Sliter Heart Hat Space Hat Camera Hat Flower Hat Pumpkin Hat Nipple Hat Avocado Hat Egg Hat Generative Art Pictures were generated using Primitive and the below bash script. for i in `ls hat*` do ~/GO/bin/primitive -i $i -o output$i.png -n 30 done Original Images and Art Concept from Anna Devis Benet and Daniel Rueda Cuerda.