Work in progress: 181,232 of 181,233 sites checked so far, more every week · updated 2 Nov 2026Missing a blog? Tell us

Top all-time · #4164

M

Matthew Petroff

Personal blog · mpetroff.net · on HN as mpetroffsciencehardwaredesign

Matthew Petroff's personal blog at mpetroff.net covers science, hardware and design. Since 2012, 19 different Hacker News readers have linked it 27 times, most often “New Amazon Dash Button Teardown (JK29LP)”. It is still writing: the last post was on 2025-06-29, and you can follow it by feed.

Visit the blog
27mentions?
19HN people?
2012–2024first – last linked?
Links on Hacker News per year · peak 6 in 2019

Too few sampled comments (13) to say how often HN recommends it.?

Why HN links it

HN readers link Matthew Petroff's posts on Amazon Dash button teardowns, a Kindle e-ink weather display, and pre-calculated Knuth-Plass line breaks for web pages. Commenters cite them as sources.

Summarised by Claude from a sample of 13 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.

A postdoc in cosmology at CfA, Matthew Petroff's interests include photography, cartography, embedded electronics design, and robotics.

The author on HN?

mpetroff · 116 karma · member since 2015

https://mpetroff.net/

From their public HN profile, which links to this site.

Most-linked posts?

  1. New Amazon Dash Button Teardown (JK29LP)
    4 people · 5 mentions · first linked 2016-07-26
  2. /2020/05/pre-calculated-line-breaks-for-html-css/
    4 people · 4 mentions · first linked 2020-05-25
  3. /2015/05/amazon-dash-button-teardown/
    2 people · 2 mentions · first linked 2016-05-12
  4. Scanner Modifications to Scan Large Documents (2013)
    2 people · 2 mentions · first linked 2019-11-19
  5. /2012/09/kindle-weather-display/
    2 people · 2 mentions · first linked 2016-06-13
  6. Kindle Weather Display [2012]
    2 people · 2 mentions · first linked 2015-06-17

What Hacker News says?

  1. The comment is invalid CSS to apply the Knuth-Plass algorithm in rendering an HTML article. Knuth being a perfectionist’s perfectionist, TeX uses this algorithm to determine optimal line breaks to provide for better text justification. Here’s a discussion of hacks to achieve the algorithm’s results on web pages and an upcoming CSS feature as of 2020. https://mpetroff.net/2020/05/pre-calculated-line-breaks-for-...

    Comment linking /2020/05/pre-calculated-line-breaks-for-html-css/

    on “ArXiv now offers papers in HTML format”
  2. Submitted Kindle Weather Display as a story · 12 points

    HN discussion
  3. This had me wondering about whether it was possible to use pre-calculated line breaks to implement improved text justification in current browsers. I was able to come up with a demo [1][2] that does so, although it falls back to default line breaks in Safari due to lack of support for `text-align-last`. [1] https://mpetroff.net/files/pre-calculated-line-breaks-demo/ [2] https://mpetroff.net/2020/05/pre-calculated-li…

    Comment linking /2020/05/pre-calculated-line-breaks-for-html-css/

    on “Show HN: LaTeX.css – Make your website look like a LaTeX document”
  4. Submitted Hilbert Curve Cake as a story · 3 points

    HN discussion
  5. Here's an analysis of the colorblind-friendliness of Turbo and other colormaps: https://mpetroff.net/2019/08/discernibility-of-rainbow-color...

    Comment linking /2019/08/discernibility-of-rainbow-colormaps/

    on “Turbo, an Improved Rainbow Colormap for Visualization”
  6. Submitted New Amazon Dash Button Teardown (JK29LP) as a story · 3 points

    HN discussion
  7. Yeah, I find it hard to believe this device could be sold for $4.99 at a profit, if you count up BOM, assembly and logistics related to sending it. But given that some posters mention Amazon actually gives you $4.99 back for the first purchase, they must not be caring. Anyway, here's a teardown I found: https://mpetroff.net/2015/05/amazon-dash-button-teardown/ Now a surprising thing that I didn't know before - this…

    Comment linking /2015/05/amazon-dash-button-teardown/

    on “3-D printed plastic objects that can communicate with WiFi devices”
  8. Submitted Kindle Weather Display [2012] as a story · 3 points

    HN discussion
  9. The issue isn't with referring to colors on a chart by name but with using a color name as the sole identifier. Referring to parts of a chart by color is fine, and provides additional information, as long as a line style or shape identifier is also used, e.g., the "blue solid line" and the "orange dashed line" in the case of a line plot or the "blue circles" and the "orange squares" in the case of a scatter plot. Id…

    Comment linking /2019/11/figure-caption-color-indicators/

    on “Color blindness”
  10. Submitted Scanner Modifications to Scan Large Documents (2013) as a story · 2 points

    HN discussion
  11. Sounds cool, easy, and cheap. Not sure what I would do with it. Here is a tear down: http://mpetroff.net/2015/05/amazon-dash-button-teardown/ I can't find how long the battery lasts and with only one AAA, it might not be that long.

    Comment linking /2015/05/amazon-dash-button-teardown/

    on “How I Hacked Amazon’s $5 WiFi Button”
  12. Submitted Scanner Modifications to Scan Large Documents (2013) as a story · 1 points

    HN discussion
  13. This is interesting, since from teardowns it looks like there's literally just a AAA battery in there: https://mpetroff.net/2015/05/amazon-dash-button-teardown/

    Comment linking /2015/05/amazon-dash-button-teardown/

    on “AWS IoT Button”
  14. Submitted Color cycle survey: preliminary order ranking results as a story · 1 points

    HN discussion
  15. This guy did that (sort of, but he keeps the Kindle running): https://mpetroff.net/2012/09/kindle-weather-display/ , does the Kindle have a power-on timer?

    Comment linking /2012/09/kindle-weather-display/

    on “E-ink wifi display project”
  16. Submitted Preliminary Color Cycle Set Ranking Results as a story · 1 points

    HN discussion
  17. Note that Amazon rolled out a second revision of the Dash button that is 4x more energy efficient: "I measured the new Dash Button’s energy usage to be 4.3±2.2 J per activation and the original Button’s energy usage to be 16.4±0.1 J per activation." Source: https://mpetroff.net/2016/07/new-amazon-dash-button-teardown... Although the Dash is still much over-engineered: for every activation it has to establish (I beli…

    Comment linking /2016/07/new-amazon-dash-button-teardown-jk29lp/

    on “Why I stopped hacking the Amazon Dash button and learned to solder”
  18. Yes and yes https://mpetroff.net/2016/07/new-amazon-dash-button-teardown... New one also uses 4x less power, cheaper battery lasts twice as long

    Comment linking /2016/07/new-amazon-dash-button-teardown-jk29lp/

    on “Why I stopped hacking the Amazon Dash button and learned to solder”
  19. It's possible, but the markup is very, very messy. I made a proof-of-concept by hand a couple months ago [1], but it would require quite a bit more work to automate it. It's probably best to just wait for browsers to implement CSS Text Module Level 4, which includes a property for enabling use of better line breaking algorithms. [1] https://mpetroff.net/files/pre-calculated-line-breaks-demo/

    Comment linking /files/pre-calculated-line-breaks-demo/

    on “Perfect Edition: A lightweight, responsive web e-book template”
  20. I remember a similar looking project from a few years ago fwiw: https://mpetroff.net/2012/09/kindle-weather-display/ Another, inspired by that: https://shkspr.mobi/blog/2020/02/turn-an-old-ereader-into-an... A little off topic, but for anybody interested in doing something for themselves, there are various "smart mirrors" that aren't e-ink, but use a tablet screen behind a mirror. Eg. https://www.instructables.com/h…

    Comment linking /2012/09/kindle-weather-display/

    on “Paperd.Ink – A hackable e-paper display”
  21. > The key would be to spend an absurd amount of time carefully cataloguing good colors – by hand – and training it to extrapolate from that information. It's a bit more nuanced than that. Not only do you need to catalog good colors (and color combinations), you need to have it done by a large number of people, since different people perceive color differently and have different aesthetic preferences. This is somethi…

    Comment linking /2020/01/color-cycle-survey-update/

    on “Show HN: AI color palette generator for Tailwindcss”
  22. For anyone interested in weird low cost embedded devices, I suggest googling for Amazon dash button teardowns. There's some interesting choices made in their components and spec. https://mpetroff.net/2016/07/new-amazon-dash-button-teardown... https://www.edn.com/design/consumer/4460866/Teardown--Design... There is also this thing, the Amazon wand: https://www.edn.com/design/consumer/4460319/Teardown--Amazon...

    Comment linking /2016/07/new-amazon-dash-button-teardown-jk29lp/

    on “Amazon will pull the plug on dash buttons”
  23. Neat, reminds me that I want to turn an older one into an uptime / analytics monitor sorta like this: http://mpetroff.net/2012/09/kindle-weather-display/

    Comment linking /2012/09/kindle-weather-display/

    on “Kindle Paperwhite”
  24. Possibly this: https://mpetroff.net/2020/05/pre-calculated-line-breaks-for-...

    Comment linking /2020/05/pre-calculated-line-breaks-for-html-css/

    on “Knuth and Plass line-breaking Revisited”
  25. gwern · 2024-04-02Recommends
    One immediately wonders about using it in browsers, but I looked into this a fair bit and concluded that there doesn't seem to be any viable approach still if you have real web content (rather than short toy blog posts), care about performance, and want Knuth-Plass: https://gwern.net/design-graveyard#knuth-plass-line-breaking But props to https://mpetroff.net/2020/05/pre-calculated-line-breaks-for-... for a cool hac…

    Comment linking /2020/05/pre-calculated-line-breaks-for-html-css/

    on “Knuth and Plass line-breaking revisited (2007)”
  26. That's what Amazon's IoT button is. A more expensive Dash button that you can control. https://aws.amazon.com/iotbutton/ "Control", though, doesn't mean source code for the device, but rather, programmatic control over the endpoint (Lambda, etc). "You can code the button's logic in the cloud " The first gen STM32 based Dash buttons were hackable[1], but Amazon changed to a different platform (ATMEL[2]) and locked th…

    Comment linking /2016/07/new-amazon-dash-button-teardown-jk29lp/

    on “Show HN: Send a slack msg with AWS IoT button”

Search all of HN for mpetroff.net

Linked by the same people?