Hacker Newsnew | past | comments | ask | show | jobs | submit | LCoder's commentslogin

Jumped to the bottom and the page locked up. Console shows:

  Uncaught Error: Index out of range - must be less than 2^122


oh hm, i thought I had fixed every case where that popped up. I can't reproduce the issue on any browser on my machine - how did you jump to the bottom (hotkey, scrollbar, scrolling for a trillion years) and what platform are you on (if you don't mind sharing)?


Chome on Windows. Grab the right scroll bar and pull to the very bottom. Once at the bottom try to scroll down with mouse scroll wheel. Screen goes blank and the error appears in the console.


OH! Thanks for the precise reproduction steps, I had done my testing with a trackpad and had missed that! Writing a little fix now (I'd hate for you to not be able to see the last UUID)


> I'd hate for you to not be able to see the last UUID

No spoilers, but the last one's a doozy!


Number #553752677 will surprise you!


It's actually number #5316911983139663491615228241121378304 if you were keeping count.


alright, a fix that I think covers this crash and a few others I found as a result is rolling out now.

for a while I thought I had an off by one error, which was pretty funny to think about in the context of trillions of items. but in fact I was just doing some bad react state management.


fixed for me! Brave MacOS


Same for me on Firefox windows


use the scroll bar to get to the "end" then use scroll wheel. that's how I managed to hit it reliably.


Every uuid dot com except if greater than 2^122 -1 doesn’t have the same ring ;)


There aren't more than 2^122 UUIDv4s.


This reminds me of some code I stumbled on recently, where someone had implemented a custom exception they could throw if their 32-bit loop counter was greater than the maximum value of a 32-bit integer.


It's the void that comes after the last particle in the known universe.


I spent years in a previous job developing acute care pressure pads like these utilizing pressure-sensitive conductive ink. The simple open/closed circuit pads shown here work well above the mattress but (depending on your mattress weight and bed frame structure) can provide false positives when placed below. We had fun stories with our first home testers where many people (me included) planted our elbows and lifted when we turned during the night. This movement was enough of a weight lift over the pad to cause the first iteration of our sensors to trigger. The ability to adjust your bed's unoccupied zero point using an analog measurement, deciding how much weight should be added (or removed) to determine a state change, and over how much time the movement occurred makes a big difference in reliability.

Near the end of my grandmother's life, she was living with my parents and a fall risk. I did this same ESPHome implementation to HomeAssistant to provide us with alerts when she got up on her own in the middle of the night, and it helped my mother sleep much better.

Side note: those other two wires the author says they "have NFI what they do" are most likely wired into the pad as a permanently connected loop. Most monitoring equipment will look for a closed circuit on those wires to detect that a sensor pad is connected correctly and the sensor wire hasn't been broken (ripped, torn, cut, etc).


I'm actually starting this right now with my two teenage kids who are interested in going to college for CS. We are using an esp32 instead of a Raspberry Pi, but I'm having them work through all the hardware and software requirements to get sound (I2S) output, display, WiFi, etc.

My end goal is to have them create a backend api server for syncing data to the alarm clock, and then a mobile app so they can change settings remotely. I figure it is a good learning project for them to touch a lot of disciplines (hardware, embedded firmware, circuit design and layout, 3d modeling, web services, mobile apps) to see what they gravitate towards.


I've been working on a phone check-in system to help small businesses social/physical distance their customers by having them wait in their cars instead of sitting in waiting rooms or standing in lines.

https://lobbly.com


I'm currently working on a medical product which uses pressure sensitive ink in paper thin sheets to detect presence and movement through a mattress. I think I need to grab a piece of my scraps and put this together myself to monitor our office coffee.


I'd be interested in getting some of that kind of pressure sensitive ink for a DIY MIDI controller project, or a custom PCB manufactured that uses pressure sensitive ink (I haven't found a PCB maker that does that yet).

Do you have any links or info that could help?


I don't have much that can help. We started with pressure sensitive foam for our first proof of concept since it was much easier to obtain. Soon after we worked with a Chinese manufacturer to source a replacement ink. They silkscreen and cure the ink for us into the sheets we need as a component in the final assembly.

One thing I can caution you on is how finicky the inks are. Ink thickness, curing time and temperature, and abrasions to the ink can have large impacts on the responsiveness of the ink to pressure. We do a lot of software and hardware work to mitigate these inconsistencies.


Sounds a bit too finicky, hmm. From looking at teardowns of, eg, the Ableton Push 2, it looks like a gold-plated pcb with fingers that the conductive sheet sits on.


I own a domain which a lot of people on the Internet like to randomly type in when they are signing up for things. It is ridiculous how many services accepted those fake email addresses over the years and therefor how many accounts I could reset passwords for.


What is it?


On the topic of cheap oscilloscopes, I was looking for a cheap logic analyzer when I found the Saleae Logic. Not an oscilloscope, but if you put an input into analog mode you can visualize the waveform nicely. They have a discount for non-commercial use and startups.

https://www.saleae.com/


Or you can buy a Chinese clone off aliexpress instead.


Your getting downvoted, but you can do this without advocating actual piracy.

The Saleae hardware doubles as a license for the software. Using a "knock off" with open source free software is perfectly fine.

https://sigrok.org/ Is a great tool that works with a great selection of hardware. Including most of the knockoffs.


Yes that’s what I was intending. Should have been clear there.

I actually own a genuine Saleae for ref. Although I blew it up :(


Both of my local universities still have glasses available. One is giving them away free and the other is charging $1 per.


At the bottom of the post it does state:

In the interest of responsible disclosure I did try and contact the dev multiple ways, I was either ignored or not replied to and I feel users deserve to know what’s happening with their data.


campbx.com within the United States. They do 2 day ACH withdraws for $2 and same day domestic wire transfers for $20. After bitfloor closed down I switched and have been very happy.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: