tanin

Joined 12 years ago

Karma
706
Submissions
344
Member since
Oct 22
https://superintendent.app, SQL spreadsheet app

https://programmabletooltip.com, Programmable Tooltip for Mac

https://bookofrevenue.com, open-source revenue recognition and analytics for Stripe and Metronome

View on Hacker News

Recent submissions

Comment · 7 days ago
I wish people should just avoid talking about using tablets on flights altogether.

It's a non-issue. Toddlers/kids maybe fly once a month max. Using tablets during that time is negligible.

Comment · 10 days ago
I generally avoid using UUID unless there's a strong reason for it.

I know the conventional wisdom says that the collisions are extremely rare <<insert some sort of cosmis analogy>>. Then, some reddit users reported encountering a collision: https://www.reddit.com/r/webdev/comments/1kvkxte/comment/mud...

Ultimately, we'd have to design the system to handle collision anyway. Might as well design a system to avoid collision in the first place. Then, if we have a system that avoids collision, then whether UUID is used is irrelevant.

Comment · 1 month ago
At least not 20 characters. My generated password isn't insane. It is 4 words with delimiters, so the length varies between 20-28 characters.
Comment · 1 month ago
My 1password actually generates 4 random words with symbols and numbers as delimiters. A generated password is often ~24 characters.
Comment · 1 month ago
I didn't know trailing slash didn't on my website. I'll fix this. Thank you for pointing it out.
Comment · 1 month ago
Author here

Wow, thank you for testing it. I did test it on my own laptop (Seattle).

> date_add(b.month_start, interval '1 month', 'UTC')

I didn't know this. Thank you.

Comment · 1 month ago
I'm working on an open-source, self-hosted revenue recognition and analytics for Stripe.

Here: https://bookofrevenue.com

To my surprise, I think it's the first open-source revenue analytics for Stripe.

I worked at Stripe building both revenue recognition and analytics, and I always wanted to build an open-source version of those. Finally, I had the time to do it.

Bonus: Revenue is not MRR nor payments: https://medium.com/@tanin47/revenue-is-not-mrr-nor-payments-...

Comment · 3 months ago
I'm offering a consulting service for integrating with Stripe Revenue Recognition.

I'll help set it up correctly including improving your billing integration that will work well for both revenue recognition and tax integration.

Email: tanin (at) nanakorn.com

Comment · 4 months ago
With DST, there are actually 2 new concepts: ambiguous time (if the clock rolls back) and invalid time (if the clock jumps forward).

Java and Ruby work differently. Java would simply round the invalid time to the closest valid time IIRC. Ruby would accurately raise the InvalidTime exception. Same behaviors for an ambiguous time.

Chile is actually the country that will cause tricky issue in a system because they adjust DST at midnight... so there is one day a year where its midnight is considered invalid time. If we are building a system that depends on a day's boundary, then we will encounter this nightmarish issue where one of the days must start at 1am instead of midnight.

I really hope DST is going away soon.

Comment · 4 months ago
Thank you!

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton