Live data from Hacker News

Ask HN: Did you encounter any leap year bugs today?

news.ycombinator.com

311–320 of 498 posts

Re: Ask HN: Did you encounter any leap year bugs today?

#312
post #268

Earlier quoted context omitted.

Both Feb 28 and Mar 1 are commonly used to celebrate birthdays. AFAIK there is no firm convention. Feb is more natural ("My birthday is in February"), Mar is more logical (the 60th days of the year).

Is March more logical? Feb 29 + 1 year = Feb 28.

By this logic, all birthdays would slowly drift as leap years pass.

Re: Ask HN: Did you encounter any leap year bugs today?

#314
I have a friend who was born on Feb 29, and in Quebec your driver's license fees must be paid on or before your birthday or your license is effectively revoked (It's a convenient reminder). He was on his way to pay them on the 29th and got pulled over for having an expired license... after some awkward common confusion with the police they came to the conclusion that the license bureau moves your "reminder" birthday up by 1 day when the actual day is on Feb 29, instead of back to March 1st, so they don't miss out on 3 years of license payments for leap year birthday citizens.

The cop had never encountered this before (1/1460 chance of occurring * the odds of being pulled over on that day)

I don't think they ever patched this, so watch out if you're a leap day license fee procrastinator in Quebec!

Re: Ask HN: Did you encounter any leap year bugs today?

#315
post #268

Earlier quoted context omitted.

Both Feb 28 and Mar 1 are commonly used to celebrate birthdays. AFAIK there is no firm convention. Feb is more natural ("My birthday is in February"), Mar is more logical (the 60th days of the year).

Is March more logical? Feb 29 + 1 year = Feb 28.

Similar to the recent standup maths video where the town did it's art installation incorrectly - the fence post problem / off by one.

https://youtu.be/FAdmpAZTH_M?si=r_INH_C5j9mbpJSh

Re: Ask HN: Did you encounter any leap year bugs today?

#316
post #270

Earlier quoted context omitted.

ChatGPT is specifically bad at these kinds of tasks because of tokenization. If you plug your query into https://platform.openai.com/tokenizer , you can see that"egregious" is a single token, so the LLM doesn't actually see any "e" characters -- to answer your question it would have had to learn a fact about how the word was spelled from it's training data, and I imagine texts explicitly talking about how words are s…

> If you plug your query into https://platform.openai.com/tokenizer , you can see that"egregious" is a single token That says it's 3 tokens.

The number of tokens depends on context; if you just entered 'egregious' it will have broken it into three tokens, but with the whole query it's one.

Re: Ask HN: Did you encounter any leap year bugs today?

#318
post #274

Saw my bank book every auto-transfers, like utilities, rents etc.. booked for 28th to be again booked on 29th, i.e. twins appeared. But then those disappeared after the mid-day. Not sure if those were caught and fixed by anti-fraud system as double-charging or was just strange bugs somewhere, but happy that they disappeared, as it would be weird to explain to my landlord about why I decided to pay double rent.

Which bank?
Post reply on HN