HNHacker News
TopNewBestAskShowJobs

wwalexander

1,206 karma · joined February 10, 2016

submissionscomments
wwalexander··on Anime Video Encoding Guide for X265 (HEVC) & AAC/Opus (2019)
x265 [1] is licensed under the GPLv2.

[1] https://bitbucket.org/multicoreware/x265_git/src/master/

wwalexander··on Safari 15 on Mac OS, a user interface mess
The MacPorts project has existed for 7 years longer than Homebrew, and is a much more sane experience similar to FreeBSD ports. In fact, Jordan Hubbard, the co-founder of FreeBSD and the original author of FreeBSD ports, was involved in the MacPorts project (along with other Apple employees).

I’m always baffled that Homebrew is seen as the standard macOS package manager. MacPorts has existed for many more years. It behaves more similarly to package managers on other operating systems without weird symlink tricks. It doesn’t send analytics to Google. It has over 25,000 active ports (Homebrew doesn’t seem to publish its formulae count but SO threads seem to indicate something in the region of 4,000). To each their own, but I highly recommend anyone reading this to give MacPorts a try.

wwalexander··on Yamaha MOTOROiD
If you can’t find a way to sit in front of the AC and listen to the radio without clogging roads, burning fossil fuels at a double or triple rate, and impeding your visibility so much that you regularly endanger the life of your neighbors, maybe it’s time to find a new mode of relaxation.

The USA is one of the few countries where motorcycles are uncommon and seen as a surprising choice, probably due to our laughably simple drivers test that doesn’t even require knowledge of how to drive a manual. Motorcycles burn less gas, cause far less traffic, and cause far less damage to others when accidents occur. The single reason why motorcycling is dangerous is because of 4-wheel drivers, who constantly:

* Change lanes/cut you off without signaling * Slam on their brakes without signaling * Try to merge into your lane when they are next to you * Read their phones and do all of these things

When I say constantly, I mean (in my city) every block or two of riding. Motorcycling is an exercise in constant scanning for the next person who is going to intentionally or unintentionally try to kill you, and having a loud exhaust is a way to quickly get them to realize they’re about to do so. It’s hard to see car drivers constantly put us in danger by (illegally) not paying attention for their own comfort, and then insinuate that it’s the motorcycle riders who are the problem.

One last note - I think most HNers are talking about loud sport bike exhausts like Yoshimura here, not Harley exhausts that sound like thunder every time you let off the clutch. These exhausts are normally at an acceptable, sociable noise level but can get much louder when you rev high, which is nice for blipping the throttle to get the guy next to you scrolling Spotify to look up before he sideswipes you.

So, even though I’m recovering from the multiple fractures I received after going over my handlebars, to avoid hitting a car that turned left in front of me in an intersection, who may never have seen me at all, I think I’ll stick with my mode of transportation. And you can stick with yours, and turn the radio up if you find the noise of motors on a motorway that unacceptable. I certainly do think a lot of riders take it too far, or just do it for attention. But I don’t think it’s fair to blame them in general for doing anything they can to counteract the lack of care and attention paid by people in cars.

wwalexander··on Apple Design Resources
The Internet Archive shows Photoshop, Sketch, and XD templates going back to at least June 2017 [1]. I definitely remember using the Photoshop icon templates in 2019.

[1] https://web.archive.org/web/20170606171244/https://developer...

wwalexander··on What3Words – The Algorithm
A standard for global addressing should not rely on a proprietary algorithm or wordlist, as it means that there is no legal method for using the standard besides using (paying for) What3Words’ API. This fits the common definition of rent-seeking behavior.

This couples with the technological issues outlined in the article above. I believe the vitriol against W3W is fueled by the combination of rent-seeking behavior on a standard of poor technical quality.

I’m also bothered that one of the main use cases W3W’s marketing highlights is for specifying locations in emergencies, a totally non-commercial/public-good application. W3W presents itself convincingly to laymen as this sort of public-good open standard, but they’re just another startup with a proprietary product they’re hoping to monopolize.

wwalexander··on FFmpeg 4.4
Back in 2004, someone released an unauthorized fan dub/narration of the the first Harry Potter movie called Wizard People, Dear Reader that hilariously butchers the entire plot, character names, and motivations. This narration is (loosely) synced to the movie and its scenes, and for a long time I watched it via clips uploaded to YouTube. But when Sorcerer’s Stone got a 4K release, I decided it was time to rip it and create my own canonical copy.

The original audio files of the dub were at this point still available on archive.org. The problem is that the second audio file is not meant to play directly after the first - this was back in the days of CD players, so halfway through the movie the dub instructs you to begin playing the second CD once the next scene starts. The other problem is that the second file is louder than the first.

Most sources I saw online said to insert a gap of three seconds to account for the delay, and didn’t have a solution for the difference in volume. I wanted to be more precise.

First, I found the exact start time of the scene where the second audio track begins:

    ffprobe hp.mkv
    ...
        Chapter #0:18: start  4428.882000, end 4817.521000
        Metadata:
          title           : Chapter 19
    ...
Then I compared this with the duration of the first audio track:

    ffprobe wiz1.mp3
    ...
      Duration: 01:13:45.33, start: 0.000000, bitrate: 66 kb/s
    ...
The difference between these time stamps gave the actual delay of 3.582 seconds.

I then compared the maximum audio levels of the two audio tracks to determine the level to increase the first track’s volume by (there are more advanced features in FFmpeg for volume normalization, but I just wanted to remove the potential for eardrum damage when beginning Chapter 19 and keep things as similar as possible otherwise):

    ffmpeg -i wiz1.mp3 -af volumedetect -f null -
    [Parsed_volumedetect_0 @ 000001ecf871c1c0] max_volume: -11.1 dB

    ffmpeg -i wiz2.mp3 -af volumedetect -f null -
    [Parsed_volumedetect_0 @ 000001858b881880] max_volume: -3.6 dB
This gave me the volume increase for the first track of 7.5 dB.

Once I had these numbers, it was time for the one-liner to adjust the first track’s volume, concatenate the two tracks with the gap of silence, and mux them with the video from the movie:

    ffmpeg -i hp.mkv -i wiz1.mp3 -i wiz2.mp3 -filter_complex "[1]volume=7.5dB[wiz1];aevalsrc=0:duration=3.582:sample_rate=22050[gap];[wiz1][gap][2]concat=n=3:v=0:a=1,apad[wiz]" -map 0 -map "[wiz]" -shortest -c:v copy -c:a flac -sample_fmt s16 -f matroska wiz.mkv
wwalexander··on NFTs unbundle ownership from enjoyment
Just like the absurdly wealthy buy and sell fine art to launder money and avoid taxes! [1] Blockchain technologies are exceedingly efficient at replicating real-world inequality, privilege, waste, and inconsistency; no wonder they’ve gotten so much traction among the already absurdly wealthy.

[1] https://www.ft.com/content/a5beb8e2-5334-11ea-90ad-25e377c0e...

wwalexander··on In Praise of the Unambiguous Click Menu
The most frustrating part of using Visual Studio Code for me is the hover/scroll behavior for error/warning messages in the code. You have to hover to view the error, and usually the message is out of the hover pane viewport at the bottom, below the type/value documentation. This would be fine, except for the fact that once you have scrolled to the bottom of the hover pane, further scroll events are applied to the code itself, so the hover pane scrolls out of focus and disappear. I spend an inordinate amount of time scrolling one notch at a time hoping for a glimpse of an error message.

I only have in-depth VS Code experience writing Go with gopls so maybe this is a very niche issue but it’s so frustrating seeing so much wasted effort go into making and using and solving the weird inconsistencies of hover-based UI elements. The inevitable mess of hacky state management is an invented problem - the cursor should only affect state when buttons are pressed. I miss Plan 9.

wwalexander··on Interview with CEO of rsync.net: “no firewalls and no routers”
It’s worth reading the rest of the interview, I find Rob Pike has a very interesting/unique take on the current landscape given his involvement with Plan 9:

> Now everything isn't connected, just connected to the cloud, which isn't the same thing. And uniform? Far from it, except in mediocrity. This is 2012 and we're still stitching together little microcomputers with HTTPS and ssh and calling it revolutionary.

wwalexander··on How to open a file in Emacs: a story about Lisp, technology, and human progress
I had the exact same experience, but I feel grateful since it’s what got me into programming. I first learned C in order to customize the dwm tiling window manager on Linux. Over time, my priority became simplicity and overall cohesive design over customization, though still in an entirely impractical way (I moved to BSD and briefly Plan 9/9front). Now I’ve settled on a dead-stock macOS setup and spend zero mental bandwidth on customization, but I think going down the customization rabbit hole taught me a lot about software design, UI/UX, and even philosophy in a weird way.
wwalexander··on El Fuego Viviente Chili Sauce
Tangent: I’m a programmer who currently works as a cook. Kitchens are operating systems and many principles from OS design are applicable if you want to streamline service. Instead of programs, the kitchen must run multiple orders concurrently and efficiently. Containers, lowboys, refrigerators and the walk-in cooler are different cache/memory levels and become smaller the closer they are to your station. Batch processing (cooking, plating, finishing, etc.) will increase throughput, but sometimes latency is more important (you might want to immediately plate and finish an order if the customer has been waiting an hour). If chef says “on the fly” they want that order to preempt any existing orders in progress.

The term “operating system” might seem overly general but I think it’s pretty apt.

wwalexander··on I Broke Rust's Package Manager for Windows Users
You could just hex encode the crate name. No need to hash it too.
wwalexander··on A Constructive Look at TempleOS (2015)
Terry Davis believes that God has instructed him to build a perfect temple. He takes great pride in how many different, complicated parts of the OS he has made. He is very paranoid and frequently mentions the CIA in his rants. Why would he want or need more contributors?
wwalexander··on The Cult of DD
This article is full of Useless Uses of Cat[1] that could just use redirection operators. For instance,

    cat image.iso | pv >/dev/sdb
could be rewritten as

    pv < image.iso > /dev/sdb
A related mistake is the Useless Use of Echo, since any command of the form

    echo "foo" | bar
can be written using here strings as

    bar <<< "foo"
or even

    bar <<WORD
    foo
    WORD
[1] http://porkmail.org/era/unix/award.html
wwalexander··on Nvidia adds telemetry to latest drivers
NVIDIA could release documentation on their hardware that would make it easier for Nouveau developers to do their work, but they don't. Nobody is asking for free labor on a low-marketshare OS.
wwalexander··on Why kernel development still uses email
The complexity of email isn't a problem for the average end user who uses someone else's mail server (like me). It's a problem because anyone who wants to interface with email directly takes on the burden of the complexity, meaning fewer and lower-quality implementations of the protocol(s) and less innovation overall.
wwalexander··on Why kernel development still uses email
Email is tremendously complex, uses multiple protocols to accomplish different tasks (or even the same task), and is fundamentally vulnerable to spam and can only be patched with further complex hacks like SPF. Almost everyone now uses HTML email, an ill-defined and insecure idea, adding to the complexity of implementations.

If you think that email is a good system, trying setting up postfix, dovecot, sendmail, and whatever other hacks are required to make email usable.

← PreviousPage 8 of 8