News for hackers. Stuff that matters.
Re:The Norway Problem by lainga on Saturday April 03, 2021 @10:58AM (#26681548)
We had a Grafana dashboard where one of the columns was a short Git hash. One day, a commit got the hash `89e2520`, which Grafana's frontend helpfully decided to display as "+infinity". Presumably it was parsing 89E+2520.
Re:The Norway Problem by rootusrootus on Saturday April 03, 2021 @11:40AM (#26681893)
Ha, that reminds me of some work I was doing just yesterday, implementing a custom dictionary for a postgres full text search index. Postgres has a number of mappings that you can specify, and it picks which one based on a guess of what the data represents. I got bit by a string token in this same format, because it got interpreted as an exponential number.
Re:The Norway Problem by BlueTemplar on Sunday April 04, 2021 @09:45AM (#26689328)
Sounds like the core issue is that an hexadecimal number was encoded as a string ?