HNHacker News
TopNewBestAskShowJobs

scott113341

183 karma · joined March 13, 2016

https://www.scotthardy.me https://github.com/scott113341
submissionscomments
scott113341··on Researchers achieved 1,270 Wh/L in an anode-free lithium metal battery
One I'm familiar with (but don't know deeply about) is Iron-air batteries [1]. Form Energy [2], an interesting grid-storage startup uses them. They're not energy-dense whatsoever, but very cheap, which makes them economical for that application.

[1]: https://en.wikipedia.org/wiki/Metal%E2%80%93air_electrochemi...

[2]: https://formenergy.com/technology/battery-technology/

scott113341··on Show HN: Unregistry – “docker push” directly to servers without a registry
Neat project and approach! I got fed up with expensive registries and ended up self-hosting Zot [1], but this seems way easier for some use cases. Does anyone else wish there was an easy-to-configure, cheap & usage-based, private registry service?

[1]: https://zotregistry.dev

scott113341··on Glubux's Powerwall (2016)
"I made 14 kWh more during lockdown"

https://secondlifestorage.com/index.php?threads/glubuxs-powe...

^ has a wild picture of full setup

scott113341··on HeyWhatsThat – Calculate viewshed and panorama for any point on Earth
If you thing this is cool, also check out CalTopo (my favorite mapping software for backpacking):

- https://caltopo.com/map.html#ll=40.10094,-105.61557&z=15&b=m...

- Right click and select "Simulated View"

- Change to "WireImagery" in the upper right

scott113341··on The voice of Utah's arches – Ambient seismic vibration sped up 25x
You reminded me of this scene from Battlestar Galactica that has stuck with me since I watched it (spoiler alert). Conversely, the character laments the sensory limitations of the human body :)

https://www.youtube.com/watch?v=mPnx3zO3SDc&t=73s

scott113341··on First gene therapy for Tay-Sachs disease successfully given to two children
I was actually thinking about Tay-Sachs this morning on a walk, after I passed by a church with a billboard out front that says "Christ died for all, even babies in the womb".

I learned about Tay-Sachs in high school biology. I think we watched a short documentary on it, as an example of genetic inheritance, and the importance of enzyme function. I remember being so surprised that something so simple (absence of one protein) could be so horrible. A beyond-grim prognosis, and immeasurable/unavoidable suffering for everyone involved. Since then, it's been something that I can't reconcile with the existence of a higher benevolent being. I'm no expert, but it made a lasting impression on me.

I'm so uplifted that researchers have made progress on curing this senseless disease.

scott113341··on Index bloat reduced in PostgreSQL v14
I’m a huge fan of Postgres. This one is “user error”, but we still got bit pretty hard.

A query plan changed, on a frequently-run query (~1k/sec) on a large table (~2B rows) without warning. Went from sub-millisecond to multi-second.

The PG query planner is generally very good, but also very opaque. The statistics collected during an ANALYZE and used by the planner are subject to some significant caveats. Essentially, the planner would sometimes wildly mis-estimate costs due to under-sampling, and would choose a bad plan. We fixed it in two different ways: 1) lower the auto-ANALYZE threshold; 2) increase the number of rows sampled when collecting statistics for the relevant column.

Again, this was “user error”. That said, it will probably happen again on the same or another query, because it’s hard to know if/when a query plan is about to change, and pg_hint_plan and similar are very heavy-handed solutions.

scott113341··on Software estimation is hard – do it anyway
One strategy I've found useful when asked for an estimate is to ask back: "What do you need the estimate for?" Often, this leads to a useful discussion, and we can discover things like:

- They don't actually need to estimate, because the task can very obviously be completed by the previously window

- They're simply trying to prioritize two different features, so the estimate doesn't need to account for who will be working on the project, known vacations, meetings, etc.

- The business is trying to use the estimate for strategic planning, so high-confidence, or multiple estimates (optimistic/normal/conservative) are actually needed.

It's similar to when someone comes to engineering and asks "Please build this button for me" - it's always crucial to ask "Why?" and understand the problem they're trying to solve, since often what they've asked for is not what they need.

scott113341··on Open Source Smartwatch
I've been loving my COROS. It's quite simple, and the battery life is astonishing. No music functionality though, if that's a dealbreaker for you. I got the APEX 42mm about 5 months ago.

https://coros.com/compareChartPage.php

scott113341··on My Life Countdown (2007)
I've been kicking around a related idea for a while. A static "death day" is great because you can internalize, and countdown towards it, but it loses the distribution behind life expectancy. A single day is probability's expected value, but there's a huge range of days that could be your last - even today!

My idea is a daily (or weekly/monthly/etc) notification that re-computes a "death day" for you, on that recurring basis. Each notification would include a day, and together, they'd form a distribution that faithfully represents the variance in days you're likely to die.

For example: me; 28-year-old male. I'd regularly get "death days" that are ~50 years out. Occasionally, maybe they'd be 25, or 55 years away. And very rarely, they'd be things like 10, or even 5 years away. A perfect reminder to play hooky, or call up a friend, or tick off a bucket list item every once in a while!

Anyone interested in this? I'm kind of fishing for an excuse to build it...

scott113341··on Ask and Show HN: Ever coded for love? Willing to share?
Robocalls are super annoying, but kind of an amazing way to ask someone out on a date (not first date - followups where you know they'll say "yes").

Twilio has this thing called "Twilio Studio" [1] that is essentially a UI that can be used to make these fairly easily. I've asked things like cuisine and alcohol preferences, what time is best for them, and even done more creative things like SMS a scammy link for them to send details in order to collect their "grand prize" (the date).

Also, for the same person, I built an online game for her to play with her students, tailored for speech-language pathology. She works in a public school and was having a really hard time adapting curriculum to an online format (due to COVID). She and her co-workers loved it, and since then, we've made a lading page, more games, and thinking about turning it into a business! [2]

[1] https://www.twilio.com/studio [2] https://slpgames.com

scott113341··on Show HN: HN Demetricator – An extension that removes upvote and comment counts
I have a similar script, except that it removes posts that link to domains that I've found to frequently be non-interesting or low-quality.

https://gist.github.com/scott113341/56c03bc7f285eefbea0a6146...

scott113341··on My blog is now generated by Google Docs
Looks interesting, I signed up!

FWIW, I ran into the same issue (Chrome): https://user-images.githubusercontent.com/1910118/81509549-a...

scott113341··on Why Segment Went Back to a Monolith
Previous discussion from her blog post on the same topic: https://news.ycombinator.com/item?id=17499137
scott113341··on Show HN: We made a web app so that our parents can keep reading to our daughter
Awesome idea, and nice work! Is this open source, and if so, would you mind sharing a link to it? I am beginning work on a slightly similar project [1] to help facilitate speech therapy (girlfriend is a speech-language pathologist) over video chat and would be interested to compare with your approach and tech stack.

I saw this [2] Chess + video chat project the other day, and drew heavy inspiration from its approach [3].

[1]: https://github.com/scott113341/slp-memory

[2]: https://news.ycombinator.com/item?id=22790728

[3]: https://glitch.com/edit/#!/rootshirechess

scott113341··on California Live Fire Maps
CalTopo (my favorite mapping software, and originally made for search/rescue/fire [1]) map with overlays: https://caltopo.com/map.html#ll=38.59058,-122.75299&z=11&b=m...

[1] https://caltopo.blogspot.com/2011/12/launching-caltopocom.ht...

scott113341··on Men Arrested at Courthouse Say They Were Sent to Test Its Security
Reminds me of this story posted a while ago:

Story of a failed pentest https://news.ycombinator.com/item?id=18475438

scott113341··on AWS EC2/RDS Outage in us-east-1
I got paged 50 minutes before AWS updated their status page. We are running on AWS's managed Kubernetes offering (EKS), and about one third of our nodes were running in the affected availability zone. We were then able to move all of or traffic out of that AZ, which solved our issues. The main symptom was HTTP requests made by our backend to 3rd party APIs failing, but only on requests originating from that AZ.
scott113341··on How many ways are there to sort GUIDs?
Not strictly related to this article or your question, but generating ordered UUIDs can sometimes bring some performance improvements (at least in Postgres) on index reads/writes [1].

[1] https://www.2ndquadrant.com/en/blog/sequential-uuid-generato...

scott113341··on Ask HN: What are some great personal blogs/portfolios?
https://brandur.org/articles

Very clear technical writing, mostly about web technologies.

scott113341··on Existing laser tech could be used for “porch light” to attract alien astronomers
> such as around Proxima Centauri, the nearest star to Earth, or TRAPPIST-1, a star about 40 light-years away...

I don't think they are asserting that the laser beam travels faster than the speed of light. I think they are referring to Proxima Centauri being about 4 light-years away from Earth [0].

[0] https://en.wikipedia.org/wiki/Proxima_Centauri

scott113341··on Has an uncomfortable truth been suppressed?
I don't think jmcgough made such a claim, just offered an explanation for "why is it so taboo to talk about the differences..."
scott113341··on Markdeep markup language
Monodraw is the best application I've found for ASCII (and Unicode) diagramming: https://monodraw.helftone.com
scott113341··on Showdown: MySQL 8 vs. PostgreSQL 10
> UUIDs are way more painful than serials to recognise, remember, input or transmit...

Completely agree, but I've found this can be a non-technical "feature" too. Serial integer primary keys are much more susceptible to human error when doing any sort of direct database manipulation.

Make a typo on a integer PK? Wrong user gets deleted. UUID typo? Row not found (almost certainly).

Another source of error I've seen is when someone in sales asks "Hey, can you remove User #1234?", but they really meant Customer #1234." With UUIDs, there's no "collision" between the tables.

Clearly there are better process/tool-based ways to prevent these types of mistakes, but it's a useful side effect of UUIDs.

scott113341··on Brutalist Design Is the Bad Influence We All Need
This is a fun website to peruse every once in a while: http://brutalistwebsites.com/

Its submission from 2 years ago: https://news.ycombinator.com/item?id=11517491

scott113341··on Nocode: The best way to write secure and reliable applications
Works perfectly with my favorite test framework: https://github.com/lxe/no-bugs
scott113341··on Southwest Airlines is intimidating our startup
I made an open source version of this. https://github.com/scott113341/southwest-price-drop-bot
scott113341··on A Mac Podcast App You Can't Have
I use PocketCasts in conjunction with BeardedSpice [1] to forward media key commands. It works very well!

[1] https://github.com/beardedspice/beardedspice

scott113341··on Announcing DatHTTPD
The "Configure the variables in this post" is an incredible touch that makes reading the examples so much more instantly relatable and recognizable. I will definitely be stealing this pattern for my own purposes!
scott113341··on Congressional Investigators Warn of SpaceX Rocket Defects
Is there a good way that you're aware of to simulate the acceleration experienced by a rocket?
Page 1 of 2Next →