Ask HN: What small library or tool do you want that doesn’t exist?
1–10 of 145 posts
Re: Ask HN: What small library or tool do you want that doesn’t exist?
#2It might be nice to have a command line tool which can guess from the arguments what you want it to do. For example, if you run it with no arguments, it would output the current timestamp (to multiple levels of precision, listing the languages/platforms that typically use each one).
Re: Ask HN: What small library or tool do you want that doesn’t exist?
#3I sometimes find myself wanting a Unix timestamp, or to convert one into a human-readable date, and usually it's simpler to go to an online tool than use time(1). It might be nice to have a command line tool which can guess from the arguments what you want it to do. For example, if you run it with no arguments, it would output the current timestamp (to multiple levels of precision, listing the languages/platforms tha…
Re: Ask HN: What small library or tool do you want that doesn’t exist?
#4Re: Ask HN: What small library or tool do you want that doesn’t exist?
#5We have the technology; everything we need to do this exists. It's just not done automatically, and when using slightly off-sync subs, you have to fiddle with sub timing for ages until you find the right sync. Even more so when the subtitles have different off-sync issues for the whole movie/episode.
Re: Ask HN: What small library or tool do you want that doesn’t exist?
#6I sometimes find myself wanting a Unix timestamp, or to convert one into a human-readable date, and usually it's simpler to go to an online tool than use time(1). It might be nice to have a command line tool which can guess from the arguments what you want it to do. For example, if you run it with no arguments, it would output the current timestamp (to multiple levels of precision, listing the languages/platforms tha…
date +%s
To convert a Unix timestamp to local time with GNU date, e.g. date -d @1651483224
With BSD date, e.g. date -r 1651483224Re: Ask HN: What small library or tool do you want that doesn’t exist?
#7Re: Ask HN: What small library or tool do you want that doesn’t exist?
#8I'd move to a command line tool, e.g. a sqlcmd variant or shell voodoo, if it could do that.
Re: Ask HN: What small library or tool do you want that doesn’t exist?
#9I wish VLC, plex, video players in general had the ability to automatically sync subs to audio. ( automatically , not manually) We have the technology; everything we need to do this exists. It's just not done automatically, and when using slightly off-sync subs, you have to fiddle with sub timing for ages until you find the right sync. Even more so when the subtitles have different off-sync issues for the whole movie…
Video players wouldn't want that in their codebase, maybe if it was available as a C library.
Re: Ask HN: What small library or tool do you want that doesn’t exist?
#10I wish VLC, plex, video players in general had the ability to automatically sync subs to audio. ( automatically , not manually) We have the technology; everything we need to do this exists. It's just not done automatically, and when using slightly off-sync subs, you have to fiddle with sub timing for ages until you find the right sync. Even more so when the subtitles have different off-sync issues for the whole movie…