Live data from Hacker News

Ask HN: What API do you wish you had while building your product?

news.ycombinator.com

71–80 of 151 posts

Re: Ask HN: What API do you wish you had while building your product?

#73
post #64

Let me programmatically schedule a task to run at a specific time, just once. E.g. if my user tells me to remind them about something in a day, I want to schedule a task to do that exactly 24 hours from now. I'm sure this exists already but it's hard to find because searching usually points me to a cronjob service. But what I'm looking for is distinct from a that. I don't want to run something every minute or hour or…

The cron alternative that does something only once is 'at'.

The modern at alternative is:

systemd-run --user --on-calendar=23:20 notify-send Example

Or relative with --on-active=60. And you automatically get the normal systemd tooling, e.g. systemctl list-timers.

Re: Ask HN: What API do you wish you had while building your product?

#78

Let me programmatically schedule a task to run at a specific time, just once. E.g. if my user tells me to remind them about something in a day, I want to schedule a task to do that exactly 24 hours from now. I'm sure this exists already but it's hard to find because searching usually points me to a cronjob service. But what I'm looking for is distinct from a that. I don't want to run something every minute or hour or…

I am building a set of Nodejs ipy notebooks to do this kind of stuff: https://github.com/megamindbrian/jupytangular

Eventually I want to wrap it in an Angular interface.

Re: Ask HN: What API do you wish you had while building your product?

#79

Reddit/HN like forum as an API. I want a forum for my site, using my own templates and integrated into my app, but without having to code the forum myself. What buttercms does for blogs, but for forums.

Discourse has an API: http://docs.discourse.org/
Post reply on HN