1,822 karma · joined Feb 3, 2019 (7y ago) · 645 submissions
comment 1y ago · link · parent
At two meters tall and 93kg, by necessity I own an Ohm (by Edelrid), which buys an extra 20kg or so of margin.
comment 1y ago · link · parent
I agree that it’s clear we need more nuclear, but could you explain why solar and wind are dangerous compared to nuclear? Did you mean that all the attention on solar and wind, which can’t be scaled fast enough and must be paired with grid storage, has screwed us when it comes to addressing climate change?
Also, calling solar and wind inefficient isn’t precise enough. By what metric are you judging them to be inefficient?
comment 1y ago · link · parent
In 2023, I wrote another script that appends a line to a csv file every 5 minutes. The line includes the focused window class, command line, title, name of the git branch that’s currently checked out, system idle time, and WiFi access point name. So I know pretty much how long I was working on everything vs other stuff like slack.
I’m finally starting to write tools to visualize and analyze this data. Is it going to change how I work? Not really, but for some reason I like seeing at a glance how I spent my time.
comment 1y ago · link · parent
Previously I was using Daylio, but that only allows you to make one entry per day.
comment 1y ago · link · parent
comment 1y ago · link · parent
Could a rogue engineer inject whatever code they want into an app update? Possibly yes, but 1) that code will get shipped to every phone at the same time, 2) that code has to do its thing without anyone noticing, which is tricky at scale (this is how malware gets discovered), and 3) there’s an audit trail so that engineer will be exposed to legal risk.
The difference here is that with Eight Sleep, an engineer can remotely access the customer device in real time and poke around the network the bed is connected to, and there may be no audit logs. They can exfiltrate sensitive data with much less effort and less legal risk than with an app update.
comment 1y ago · link · parent
What are you doing with that JSON? What’s the reason why you can’t get a representative sample of rows onto your dev machine and hack on that?
comment 1y ago · link · parent
I recently fed it into ChatGPT and asked it to do the assignment. It did it perfectly -- I read the code in detail and couldn't find any issues.
So custom questions are off the table now, too. We'll be using a code review instead for the next round.
comment 1y ago · link · parent
What does your testing strategy look like with bigquery? We use snowflake, but the only way to iterate and develop is using snowflake itself, which is so painful as to impact the set of features that we have the stomach to build.
comment 1y ago · link · parent
Any sense if ClickHouse can scale to several TB of data, and serve giant queries on the last hour’s data across all sensors without getting OOMKilled? We’re also looking at some hacked together DuckDB abomination, or pg_duck.
comment 1y ago · link · parent
This video by Adam Neely was helpful: https://youtu.be/QRaACa1Mrd4
comment 1y ago · link · parent
I’ve had the pleasure of finding a few of these over my career.
comment 1y ago · link · parent
comment 1y ago · link · parent
I finally caved a few months ago when I got tired of fighting with the awful backup storage UI that makes it difficult to determine why the backup is failing even though it’s smaller than 5GB.
Apple has every incentive to make that UI as bad as possible while still being functional.
comment 1y ago · link · parent
Effectively, there's no difference between writing the code first and updating the OpenAPI spec, and updating the spec first and then doing some sort of code gen to update the implementation. The end state of the world is the same.
In either case, modifications to the spec will be scrutinized to make sure there are no breaking changes.
comment 1y ago · link · parent
(and this is how ChatGPT, a sort of average of all opinions on the Internet, understands it)
So if you say REST and mean something other than that, then you're committing to being misunderstood by most people.
comment 1y ago · link · parent
That threw me off too. What the article calls REST, I understand to be closer to HATEOAS.
> I've open sourced a Go library for generating your clients and servers from OpenAPI specs
As a maintainer of a couple pretty substantial APIs with internal and external clients, I'm really struggling to understand the workflow that starts with generating code from OpenAPI specs. Once you've filled in all those generated stubs, how can you then iterate on the API spec? The tooling will just give you more stubs that you have to manually merge in, and it'll get harder and harder to find the relevant updates as the API grows.
This is why I created an abomination that uses go/ast and friends to generate the OpenAPI spec from the code. It's not perfect, but it's a 95% solution that works with both Echo and Gin. So when we need to stand up a new endpoint and allow the front end to start coding against it ASAP, the workflow looks like this:
1. In a feature branch, define the request and response structs, and write an empty handler that parses parameters and returns an empty response.
2. Generate the docs and send them to the front end dev.
Now, most devs never have to think about how to express their API in OpenAPI. And the docs will always be perfectly in sync with the code.