Live data from Hacker News

Ask HN: What small library or tool do you want that doesn’t exist?

news.ycombinator.com

71–80 of 145 posts

Re: Ask HN: What small library or tool do you want that doesn’t exist?

#71
post #51

A very simple tool for transferring files between two computers. Linux Windows should just work, uPnP handling, etc - just a crazy simple way to transfer a file without setting up Dropbox, ftp servers or whatnot!

https://github.com/schollz/croc

Re: Ask HN: What small library or tool do you want that doesn’t exist?

#72
post #17

Earlier quoted context omitted.

I think this is what the OP refers to with "fiddle around for ages". I know the problem not with subs, but when audio is off related to the image. And of course the problem is rare enough that I am never "in training", and have to find a remarkable spot first (e.g. door slam shut or a suitable spot in dialogue), then think about going backwards or forwards, guess the amount, etc. etc. :)

If the whole subtitle file is out of sync (e.g. every line is late 2s), one shortcut is all it takes. In that 1/10 case, you do need to 'fiddle around for ages', but given that all other options (e.g. SubtitleEdit[1]) are way more complicated and time consuming, mpv is all I could suggest. For the problem with audio and image being out-of-sync, I have no idea :) --- [1] https://www.nikse.dk/subtitleedit

For AV sync you can do this in the receiver (and some devices with e.g. Bluetooth support for speakers) because it's not really a problem with the source material (typically anyway) it's just something that does need tuning to the room & hardware.

Re: Ask HN: What small library or tool do you want that doesn’t exist?

#73
post #16

A library of person-to-person communication snippets for those of us on the spectrum like this tool https://news.ycombinator.com/item?id=31224996 but curated by well intentioned community.

I would suggest not using those ones by the way - most of them sound pretty passive aggressive to me (British) and no better (worse in some cases/contexts) than just being forthright.

Re: Ask HN: What small library or tool do you want that doesn’t exist?

#74

I wish I had a tool which measures the trend of every line code in my codebase in production, and shows me on IDE on the background of each line of code which code is mostly used (dark green background or such) and which code is barely used (in light green), and in gray unused code in production (based on the trend of last few months. The benefits : - I will understand during development which code is mission critica…

What about code that is super important but rarely used like once a year - just when it fails you are in big trouble?

Re: Ask HN: What small library or tool do you want that doesn’t exist?

#75

I wish I had a tool which measures the trend of every line code in my codebase in production, and shows me on IDE on the background of each line of code which code is mostly used (dark green background or such) and which code is barely used (in light green), and in gray unused code in production (based on the trend of last few months. The benefits : - I will understand during development which code is mission critica…

I would want something slightly different. I care a lot about how recently code has been changed. I usually don't care how much code is run in production, unless it isn't run at all, and then I care a lot. So:

Code that was changed within the last week: red

Code that was changed within the last month: yellow

Code that hasn't been changed in over a month: normal

Code that hasn't been touched in over a year: green

Dead code: blink tag, DOOM music plays

Re: Ask HN: What small library or tool do you want that doesn’t exist?

#76

Earlier quoted context omitted.

If you develop on Chrome given that it's the largest, then you have the following issues: - Firefox will render stuff wrong - Safari will render stuff wrong and something will break

Generally browsers these days are pretty good. There are some dark corners where there are still differences but these are not in the "I just want to build a website"-level of complexity IME, and are more in the "I am building a large XXX,XXX lines-of-code enterprise SPA used for hours at a time for thousands of users as their primary job across varied OS and browser combinations" level of complexity. E.g. I recently…

I unknowingly relied on undefined behaviour in JavaScript Array.sort; worked fine/as expected in Firefox but then got bug reports that turned out to be Chrome/Safari.

Not just dark corners IMO.

Re: Ask HN: What small library or tool do you want that doesn’t exist?

#77

Almost every data exploration tool requires a date range to work, and yet there's no standard language for expressing these. I want a parser that: - Undertands simple ranges (e.g. "2022-04-01 to 2022-05-01"). - Understands relative ranges (e.g. "4 weeks ago to 2 weeks from now"). - Understands ranges to be expressed by omitting components (e.g. "2022" means "2022-01-01 to 2022-12-31"). - Has equivalent parsers for ot…

[deleted]

Re: Ask HN: What small library or tool do you want that doesn’t exist?

#78

A simple app (e.g. a wordpress plugin) that would load some nice elements of a web page above the fold ... then load the rest of the web page after ... something that would lower time to first byte, first contentful paint and time to interactive.

I think best approach sounds like a theme given the specific nature of loading assets and unknown nature of content layout.

Re: Ask HN: What small library or tool do you want that doesn’t exist?

#79

I was looking for a tool to post video tweet threads. I couldn't find any so I built my own https://clippost.io/ . Currently, its very basic tool to convert YouTube, Instagram, TikTok videos to twitter video tweet thread. If I get some users i will definitely add more features to it.

Thanks for posting this. I'm gonna start using it for my Youtube channel: Better Sheets. Been meaning to post more on Twitter from the YT channel and this looks so great!
Post reply on HN