Better HN
topnewbestaskshowjobs
Log inSign up

victorstanciu

719 karma · joined Aug 1, 2013 (13y ago) · 104 submissions

https://tegowerk.eu
Submissions

comment 9mo ago · link · parent

> tldr.sh is a community maintained database of examples, for example you can run it as tldr grep. Lots of people have told me they find it useful.

+1 for tldr. For example, here's the output of `tldr ffmpeg`:

  ffmpeg

  Video conversion tool.
  See also: `gst-launch-1.0`.
  More information: https://ffmpeg.org/ffmpeg.html#Options.

  - Extract the sound from a video and save it as MP3:
    ffmpeg -i path/to/video.mp4 -vn path/to/sound.mp3

  - Transcode a FLAC file to Red Book CD format (44100kHz, 16bit):
    ffmpeg -i path/to/input_audio.flac -ar 44100 -sample_fmt s16 path/to/output_audio.wav

  - Save a video as GIF, scaling the height to 1000px and setting framerate to 15:
    ffmpeg -i path/to/video.mp4 -filter:v 'scale=-1:1000' -r 15 path/to/output.gif

  - Combine numbered images (frame_1.jpg, frame_2.jpg, etc) into a video or GIF:
    ffmpeg -i path/to/frame_%d.jpg -f image2 video.mpg|video.gif

  - Trim a video from a given start time mm:ss to an end time mm2:ss2 (omit the -to flag to trim till the end):
    ffmpeg -i path/to/input_video.mp4 -ss mm:ss -to mm2:ss2 -codec copy path/to/output_video.mp4

  - Convert AVI video to MP4. AAC Audio @ 128kbit, h264 Video @ CRF 23:
    ffmpeg -i path/to/input_video.avi -codec:a aac -b:a 128k -codec:v libx264 -crf 23 path/to/output_video.mp4

  - Remux MKV video to MP4 without re-encoding audio or video streams:
    ffmpeg -i path/to/input_video.mkv -codec copy path/to/output_video.mp4

  - Convert MP4 video to VP9 codec. For the best quality, use a CRF value (recommended range 15-35) and -b:v MUST be 0:
    ffmpeg -i path/to/input_video.mp4 -codec:v libvpx-vp9 -crf 30 -b:v 0 -codec:a libopus -vbr on -threads number_of_threads path/to/output_video.webm

comment 1y ago · link · parent

> The pair, wearing only flat-soled sneakers [...]

I appreciate a good "AI" hate session as much as the next man, but these people would have had to be rescued no matter what tool they used to plan their trip, as long as the one tool they should have used--their brain--was apparently already on vacation ahead of them.

comment 1y ago · link · parent

@tete called it: https://news.ycombinator.com/item?id=44262324

4.

Reinventing the Box(tegowerk.eu ↗)

1 points · by victorstanciu · 1y ago · discuss

comment 1y ago · link · parent

Shame on the author. I clicked the "cats" link in the header only to find out it's short for categories. Boo.

comment 1y ago · link · parent

It is! For the latest incarnation of my blog I forwent comments in favor of a simple mailto: link at the bottom of each post which prefills the email subject with the post's title. I've had significantly fewer interactions with readers this way, but they've also been much more meaningful and insightful. There is a performative nature to public forums of any kind--and HN is not immune to this--that stifles any genuine discussion, or drowns it in a sea of attention-seekers.

Yes, I am aware of the hypocritical irony of complaining about online comments in an online comment.

7.

Erika 10(tegowerk.eu ↗)

6 points · by victorstanciu · 1y ago · discuss

comment 1y ago · link · parent

You can use two integers, one that represents the entire number including decimals, and one that represents the precision, to know how many decimals are there. For example, you'd represent "123.45" as 12345 and 2. That's often how monetary amounts are stored in databases, to avoid a lot of common floating-point arithmetic pitfalls.

comment 1y ago · link · parent

Obligatory mention that if you want to enjoy Half-Life today (in spirit if not exactly the same game), Black Mesa is the best option for doing so: https://store.steampowered.com/app/362890/Black_Mesa/

comment 1y ago · link · parent

This reminded me of a Romanian joke from the communist era.

A son corresponds with his elderly father, who writes that he'd like to dig up the garden and plant potatoes, but the ground is hard and he's old, and can't the son come and help?

The son writes back that under no circumstances should he dig up the garden, that's where the money is hidden. The very next day, the Securitate (Romanian Secret Police) comes and digs up the entire garden looking for money.

A few days later, the son sends another letter: "I believe the garden should have been dug up by now, so you can go ahead and plant the potatoes."

comment 2y ago · link · parent

This is great news, thank you, I was just thinking how much I'd like some affiliate links in my browser. Also many thanks for all the telemetry improvements listed in the changelog, those are also something I've been looking forward to for a long time. If this doesn't solve Firefox's abysmal market share, I don't know what will!

comment 2y ago · link · parent

> Even though they were working on it for the past few years it's still slow, buggy, and super unpolished, it doesn't matter, because they shipped.

> Their mobile app is terrible and it needs 10 seconds to sync. It doesn't matter, they shipped. And I'm looking forward to every single update they release.

> Their backlog of things to do is huge, but it doesn't matter, they ship every single week, and the app is growing along with the community.

Sigh. I agree, and I can empathize, but as a user I am so sick and tired of half-finished crap being shoved out the door just to beat the competition to the starting line. Every day the software we use becomes slower, more bloated, and less stable, and part of it is exactly this attitude of throwing crap at the wall and hoping it sticks. And the sad part is, since everyone is doing it, you can't really not do it, otherwise--as the author discovered--you get left in the dust.

comment 2y ago · link · parent

I guess it shows that no matter how objectively successful you are, your skin can still be see-through thin.

comment 2y ago · link · parent

Beautiful!

comment 2y ago · link · parent

Martin (ETOE) is awesome, his channel is where I learned to paint bikes from too.

comment 2y ago · link · parent

> Now, I have a very unique and beautiful bike (people on the street tell me).

Well you can't just entice us like that without posting a photo! Here's one I painted that I am really proud of how it came out: https://tegowerk.eu/posts/nakamura-shadow-city-bike/

comment 2y ago · link · parent

Uh, what? Did you reply to the wrong post by any chance?

comment 2y ago · link · parent

Interesting point of view, thank you! For me maintenance and repair have enhanced riding rather than diminish it. I find it's similar to how cooking enhances eating, or yard work enhances laying around the yard. Of course I hate having a malfunction while riding as much as the next guy, but I also ride with more confidence because I know I can handle pretty much anything that can go wrong, even on the go.

comment 2y ago · link · parent

> The blog comes very close to quoting ‘zen and the art of motorcycle maintenance’ -I wonder if the author read that…

I did! But I did so long before I started with bike repair, so at that time I couldn't really connect with it. Thank you for reminding me that I should give it a second read!

20.

A love letter to bicycle maintenance and repair(tegowerk.eu ↗)

219 points · by victorstanciu · 2y ago · 168 comments

comment 2y ago · link · parent

> I manually hide them every thirty days

The inability of tech companies to accept that no means no, and not "bother me later" is a dark pattern that I've noticed more and more lately.

comment 2y ago · link · parent

If you use uBlock Origin, you can also just hide them: https://github.com/gijsdev/ublock-hide-yt-shorts

23.

Reject Minimalism(tegowerk.eu ↗)

3 points · by victorstanciu · 2y ago · 1 comment

comment 2y ago · link · parent

> There is no way of effectively repairing the connector other than throwing the motherboard away

You're exaggerating. NorthridgeFix on YouTube has probably dozens of videos of him replacing USB-C connectors. Yes, he sometimes has to replace the traces with pad strips, but that's a long way to throwing the whole board away.

1234