Some of my notes through learning Golang by conversing with ChatGPT

I have not messed around with Golang yet and figured why not try to learn this through just chatting with ChatGPT? Not a full conversation below , but just using this to jot down some notes. And most of the code examples I’m pasting below are from ChatGPT. Error handling is very different in Go So no exceptions like Python. Instead, you can give a return tuple type from a function like this and the second term will be a error code....

December 23, 2023 · (updated January 7, 2024) · 10 min · 2115 words · Michal Piekarczyk

Exporting messages from Apple imessages

The problem Messages have been clogging up my iphone for a while now and at this point, they are taking up maybe 15Gigs. Most of this is photo attchments. I thought an options was to manually go through the phone UI, deleting photo attachments to save space, but I did a bit of this tedium and the storage space did not seem to clear up. Maybe it is delayed? The other alternative is to hit a button that says “only keep messages up to a year old”....

December 9, 2023 · (updated December 10, 2023) · 5 min · 885 words · Michal Piekarczyk

test drive chat gpt data analysis

blog-date:: 2023-11-18 So lets try out Chat GPT’s new Data Analysis functionality I passed in my multi-year food log dump from Carb Manager and thought, can I plot the protein data. Here is more or less what transpired. In the Analysis tool, I upload a csv file that I exported from Carb Manager and I opened with this question below. Me Can you plot the calories per day over time ?...

November 18, 2023 · (updated December 24, 2023) · 15 min · 3088 words · Michal Piekarczyk

Help diagnose no coffee coming out of your Kamira Espresso Machine

I have loved using the Kamira stove top espresso machine for five plus years now, but here is one interesting thing I learned I did not know about until now. What is coffee soup? I might be making this term up, but this is what comes to mind if I cannot get any coffee to drip out of my Kamira Espresso stove top machine and after giving up, finding that there is a pool of coffee water in the filter holder....

September 24, 2023 · (updated September 30, 2023) · 2 min · 394 words · Michal Piekarczyk

Odd pyspark window function behavior

I was working through some odd window function behavior Analyzing some feature drift data, I wanted to obtain min, max and mean drift values for features, partitioning on the compare_date here. I would have just done a group by, but I also wanted to get the baseline_date relevant to the largest drift score and so I went with the below approach. But I ended up with some strange results. from pyspark....

September 23, 2023 · 6 min · 1275 words · Michal Piekarczyk