Better HN
topnewbestaskshowjobs
Log inSign up

tanin

706 karma · joined Oct 22, 2014 (12y ago) · 347 submissions

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

Submissions

1.

Show HN: Minimal and self-hosted website monitoring(github.com ↗)

1 points · by tanin · 1w ago · discuss

comment 3w ago · link · parent

Facebook Groups has tons of private room and sublet listings which are difficult to find elsewhere.

We support various useful filters like nearby train stations, locations, female only, price, furnishing. We also supports sorting e.g. sorting by the distance to the nearest BART station.

This might save you many hours from painfully scrolling through 10+ FB groups.

3.

Private rooms, apartments, and sublets extracted from Facebook Groups for SF(summerarea.com ↗)

1 points · by tanin · 3w ago · 1 comment

4.

Set Up Stripe Data Pipeline for ClickHouse(bookofrevenue.com ↗)

1 points · by tanin · 3w ago · discuss

comment 1mo ago · link · parent

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 1mo ago · link · parent

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 1mo ago · link · parent

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 1mo ago · link · parent

My 1password actually generates 4 random words with symbols and numbers as delimiters. A generated password is often ~24 characters.

9.

<input type="password" maxlength="20"> prevents me from logging into Vanguard(tanin.nanakorn.com ↗)

67 points · by tanin · 1mo ago · 99 comments

comment 1mo ago · link · parent

I didn't know trailing slash didn't on my website. I'll fix this. Thank you for pointing it out.

comment 1mo ago · link · parent

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.

12.

The Stripe Subscription Downgrade Loophole(bookofrevenue.com ↗)

3 points · by tanin · 2mo ago · discuss

13.

Show HN: Open-source revenue recognition and analytics for Stripe and Metronome

4 points · by tanin · 2mo ago · discuss

14.

A simple way to identify slow Postgres SQLs(bookofrevenue.com ↗)

3 points · by tanin · 2mo ago · discuss

comment 2mo ago · link · parent

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 3mo ago · link · parent

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 4mo ago · link · parent

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 5mo ago · link · parent

Thank you!

comment 5mo ago · link · parent

Please let me know if you have questions or suggestions.

comment 5mo ago · link · parent

I had to check whether this was some kind of an april fool joke.

It looks like a legit attempt. Wow. This is insanely innovative.

comment 5mo ago · link · parent

Thank you!

My thesis is that an intermediate layer would eventually end up being equivalent to the docx format, so I've decided not to have any intermediate representation.

We convert docx to html and send it AI. When AI rewrites the HTML and it back, we diff the rewritten HTML against the docx's document.xml and make the modification. This is a simplistic explanation of it. There are a bunch of validations and processing going on.

Regarding the tracked changes/comments, we simply invent new HTML tags for those things e.g. <ins>, <del>, <commentRangeStart> and etc.

22.

Show HN: Cowork/Codex DOCX plugin. Uses 2x fewer tokens than the docx skill(github.com ↗)

5 points · by tanin · 5mo ago · 6 comments

comment 5mo ago · link · parent

I'm working on a Cowork/Codex plugin for reading and manipulating docx files. It uses 2-5x fewer tokens compared to the Anthropic's docx skill and is much faster.

The main target users are lawyers who redlines and drafts legal documents, and they almost always use docx.

It can be used together with Claude For Legal; The combination is pretty magical.

Here's the plugin: https://github.com/LegalRabbit-AI/legalrabbit-docx-claude-pl...

comment 5mo ago · link · parent

The AI probably can figure out. However, Claude Code and other tools are built to support MCP. This means MCP is probably more reliable than using REST API + llms.txt.

comment 5mo ago · link · parent

If you build connectors for yourself or your team, you probably can skip MCP because you can tell your friends to install CLI or whatever and provide extra prompts for your CLI.

If you have external users, then you have to use MCP, which comes with how to use each endpoint and etc. MCP is what their current apps e.g. Cowork, Cursor support out-of-the-box.

In that sense, MCP is very much not dead

comment 5mo ago · link · parent

DOCX or OOXML takes it to another level.

Instead of making something an attribute, they make it a child element...

comment 5mo ago · link · parent

Yeah, I try to avoid 3rd party libraries unless it comes from credible sources/companies or vetted by famous frameworks e.g. Rails uses it.

Not just for NPM but for Intellij plugin, VSCode extension, and etc.

If Node has officially pre-vetted libraries, that would be really awesome.

comment 5mo ago · link · parent

I forgot to provide the link in the tldr at the top. I'll do that. Thank you for the feedback.

comment 5mo ago · link · parent

(The author of the blog here)

To clarify this: we don't intend to open-source it. There's no source code.

The only reason we need a github repo is because Claude Code/Cowork requires a plugin to be a github repo, which contains the plugin configuration.

Moreover, our users are lawyers. They don't have Node/Python runtime i.e. unable to run code. They need a single-file executable.

30.

Ruby vs. Java vs. TypeScript: Building Claude Cowork Docx Plugin(tanin.nanakorn.com ↗)

2 points · by tanin · 6mo ago · discuss

12345
12