Hacker News new | past | comments | ask | show | jobs | submit | tommyjepsen's comments login

Hello,

I didn't find a decent priced solution to add subtitles to my videos, so I ended up exploring how to use Whisper and FFMpeg to do it and found a pretty decent solution, that is both free and fast.

Hope someone else can benefit from it to


Hi,

To advance my Tailwind CSS skills, I made a little quiz game to help me remember e.g. the height of h-48, how add line height etc.

Thought maybe others would find it funny as well and potentially help them become better at Tailwind :)


Very cool! Isn't the units rem rather than px though? E.g. for h-64



Hey! Yea, for mp4 its just ffmpeg -i and nothing else .. Good idea to optimize this. In general ffmpeg-wasm is a lot slower than FFmpeg run on your desktop, but let me see if I can improve on this.

Performance diff: https://ffmpegwasm.netlify.app/docs/performance


Hey, thanks for the feedback.

Yea makes sense with file naming and button. Let me try to iterate on that.

The mp4 to webm was actually the hardest to get working. Seemed like FFmpeg-wasm would stall at different times with some settings. I've updated it now to produce a bit better quality, but will definitely keep improving on this.


Not 100% sure what you mean, but maybe it is what https://ui.shadcn.com/blocks is doing?


Wow. Thanks so much. Didn't know this existed :).


Hi, thanks! I've tried updating it to make it more user-friendly, so ppl don't have to go to Github to copy the blocks, but can do it directly on the website :)

Makes more sense this way.


Hi, thanks! Yes, I've gotten this feedback from different places now - will definitely iterate on this. Right now you go to the Github repository: https://github.com/tommyjepsen/twblocks/tree/main/components and find the one you need.


i've checked it out,thanks for your work.


Thanks! Had to move them, so they can be found in https://github.com/tommyjepsen/twblocks/tree/main/blocks now, but the website is also available to directly copy the code and inspect each block, so you don't have to go to Github anymore :)


I just upgraded and got 'Failed to load module script: The server responded with a non-JavaScript MIME type of "text/plain".' from my S3 through CloudFront.

Seems like it's not adding 'type="text/javascript"' to <script> in index.html. When adding this manually, everything works.

Just FYI if others upgrade and seem to get the same errors.


My guess is you hit https://github.com/angular/angular/issues/30835. In version 8 we introduced differential loading to allow users on newer browsers to download smaller, modern bundles.

Modules, however, enforce strict mime type checking. As the comment below suggests, you should make sure your static file hosting serves JavaScript with the correct mime type.


Normally type=“text/javascript” is strictly unnecessary. You should try to configure whatever is uploading your site to S3 to set the Content-Type correctly as I believe that will also resolve your issue.


Is "Angular's Popularity Over Time"'s bad stats based on combining Angularjs and Angular2 into one?


In previous surveys we had both Angularjs and Angular, but starting this year we stopped making the distinction. So yes, the "bad" stats include both versions. It's not perfect but we thought it was best to just bite the bullet and combine both going forward.


I think that mixing up AngularJS and Angular (>= 2.x.x) is misleading. They are two different frameworks, so little knowledge can be inferred by combining the data about the two. As an Angular Dev the most frustrating thing when v. 2 came out was precisely the fact that I had to re-study from scratch all the documentation. As a matter of fact I've used AngularJS since v. 1.1.x (2013) and I then switched to Angular (latest release) as soon as v. 2 came out, and I would definitely answer I'd use it again, but then if you asked me if I would use AngularJS, I would say definitely not.


I'd love to see what the stats were for Angular 2+ only - I imagine they'd look a lot different. If they'd chosen a more appropriate name for Angular then I feel like this wouldn't even be an issue.


Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: