last week's weekpost
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
6c61f2fbc6
commit
7cd851e008
|
@ -0,0 +1,42 @@
|
|||
---
|
||||
type: note
|
||||
title: "Weeknote 2023 Week 7"
|
||||
date: 2023-02-25T10:14:55Z
|
||||
description: It's late but its here
|
||||
url: /2023/2/25/week-7
|
||||
type: post
|
||||
mp-syndicate-to:
|
||||
- https://brid.gy/publish/mastodon
|
||||
- https://brid.gy/publish/twitter
|
||||
tags:
|
||||
- personal
|
||||
---
|
||||
|
||||
---
|
||||
type: note
|
||||
title: "Week Note (Week 7 2023)"
|
||||
created: 1676892271.012
|
||||
updated: 1676892271.012
|
||||
tags:
|
||||
- personal
|
||||
---
|
||||
|
||||
|
||||
## Activity
|
||||
|
||||
- This week has been pretty busy as we attended a friend's wedding up in the North West of the country. We took friday off to make a 6 hour road trip up to [Tarpoley](https://www.visitcheshire.com/explore/tarporley-p283701) (pronounced Tar-plea or Tar-pleh with a cheshire accent) where we stayed in a cute old-timey hotel called The Swan. The wedding itself was in [Peckforton Castle](https://en.wikipedia.org/wiki/Peckforton_Castle), a stately home built up on the Cheshire hillside in 1800s but in the style of a Gothic, medieval castle.
|
||||
- Now that spring is starting to kick in and the sun is rising earlier in the morning, things are starting to feel less dark and gloomy day-to-day. I'm starting to think about and make plans for our garden this year and what food I plan to grow. I don't have room (or time + energy) to grow enough food for us to be self-sufficient, but I hope to supplement out regular food shop with some home-grown goodies later in the year.
|
||||
- I finally finished [Cytonic by Brandon Sanderson](https://notes.jamesravey.me/Lifestack/books/books.brandon-sanderson.cytonic/). For some reason it's taken me a little while to read even though I normally love a good brando-sando. I have his new Novel "The Lost Metal" to start reading next, set in era 2 of the Mistborn saga. I'm also making my way through [Kris Nova's Hacking Capitalism](https://www.amazon.co.uk/Hacking-Capitalism-Modeling-Humans-Computers-ebook/dp/B0BG696331/).
|
||||
- I spent most of Wednesday and Thursday trying to get the contents of a Google [BigQuery](https://cloud.google.com/bigquery) table out and into a MySQL database. The reason is that BigQuery's pricing model is based on how much data your query processes as a proxy for how much compute you use. This makes it quite efficient if you do single queries with large batches of results and very inefficient if you want to lookup a value (e.g. for a given company in this table, what was their revenue last year?). Each time BigQuery reads the full table we were essentially processing 10GiB of data - and at the price of $5 TiB it would cost $5000 to extract the information we wanted for 600k companies via individual lookups. Even with indexing this kind of operation is quite expensive in bigquery - it would have cost $189 to extract the information we wanted to access by querying row-by-row. BigQuery has a CSV export function and Google's CloudSQL (MySQL and PostgreSQL hosting) has a CSV import function so I figured - how hard can it be. As it turns out, hard. I might write a longer post about what I got up to but suffice to say after 2 full days of my time we can now repeat this process in an automated way and host the full dataset in a traditional DB for about $45/month (plus the extraction of the data from BigQuery which is fractions of a penny if we do it once a month).
|
||||
|
||||
|
||||
## Blog Posts
|
||||
|
||||
This week I posted about how [scientific journalism is a bit like a blurry photo of science](https://brainsteam.co.uk/2023/2/18/science-journalism-is-a-blury-jpeg/) - a kind of spiritual response to [Ted Chiang's recent piece for The New Yorker](https://www.newyorker.com/tech/annals-of-technology/chatgpt-is-a-blurry-jpeg-of-the-web) which I thought was a great metaphor but which received some stick from the scientific community for being inaccurate.
|
||||
|
||||
|
||||
## Interesting Links
|
||||
|
||||
- [GitHub - mhgolkar/Weasel: WebSocket Client / Console](https://github.com/mhgolkar/Weasel) - a client for testing websockets that I saw [Aral](https://ar.al/) recommend on Mastodon. I don't do a huge amount with websockets but an upcoming product feature at work is likely to make use of them so I've bookmarked it for future reference and added it to my digital garden.
|
||||
- Some really interesting case studies about how Bing's GPT assistant Sydney [cannot be trusted](https://dkb.blog/p/bing-ai-cant-be-trusted)
|
||||
- As I mentioned above, I spent far too long this week trying to move data between two database systems. I found [this article](https://towardsdatascience.com/3-data-backed-ways-to-significantly-speed-up-your-mysql-bulk-inserts-28e20b42d51e) about efficient ways to bulk insert data into MySQL quickly.
|
Loading…
Reference in New Issue