Hacker Newsnew | past | comments | ask | show | jobs | submit | getfacl's commentslogin

I think the concern here is that nothing you are doing relies on SSH at all. You are using TUI techniques that have been around for ages.

Did you make every word in the title misleading on purpose?


I love this font.

I use it for all my terminals and editors. With this font I can easily read text 1 size smaller than any other font. This is hands down the most easy to read font I have ever used.


The title is clickbait. There are no GUI features in ssh.

Extending a terminal protocol to include advanced graphics makes it compete directly with X, Wayland, VNC, Moonlight, etc. Even if it's not technically part of SSH itself.

Yes, and running interactive, mouse-aware, full-screen terminal interfaces over a remote connection on unix and linux has been standard practice for decades. So literally nothing new here.

You could switch to telnet and everything in this article would still work.

Yes, the authors TUI program would also work just as well over RS232.

Because those are transports, the terminal [emulator] at the end, responsible for interpreting what the TUI program on the other end outputs (and vice-versa), are separate things. They live at different places in the OSI stack.


> quiet and loud parts play at a similar level

This is never what I want. A composition has a dynamic range for a reason.


I listen to most of my music (instrumental) these days with loudness equalizing on. Used to be a big audiophile, now when I play music it's just background. High dynamic range works against having a pleasant sound for background music as either the loud parts are too loud or the quiet parts imperceptible. Compressing the dynamic range increases enjoyment.

Exactly. If you have a dedicated space with silence and excellent acoustics, high dynamic range can equate to quality. But as soon as you add noise and dampening, that changes.

If you listen to music in the car, super high dynamic range means either blowing your ears out or missing half of the music below the noise floor.


Sometimes I'll listen to a piece on a sound system of some kind and just wish I could go back to when I heard it played by a live orchestra and it shook my soul. That missing range matters sometimes.

Oh, a well used dynamic range is something great.

But the GP's point stays, you just can't have it if you have noise. Trying to keep it just makes the entire experience horrible.


Just give me a simple slider in the volume control. If KDE Plasma can give me sliders popping out for all the Output Devices I'm not currently using (and will never use), I can have a slider for loudness equalisation.

When it comes to enjoying media with non-audiophiles, you are right. But it still makes me a little sad.

I worked hard on my home theater system, amp and speaker selection, tuning every audio and video setting so that everything's dead on, and I have all that wonderful dynamic range. When I play a piece of music for myself, it's glorious! Then, my wife, kid, and I sit down to watch a movie, and all night it's "I can't hear the dialog! Turn it up!" and "Now the explosions are too loud! Turn it down!" and then "Is there any sound? Turn it up! I thought this was a good stereo!" over and over, and I just sit there like a dummy, adjusting the volume control for two hours.


Turn it up for the dialogue. Stay for the explosions. Hands off the volume control.

Except: Not everybody enjoys that.

So... Compress it. Some media players and audio systems have that dynamic range compression functionality built-in, and it can often be added to systems that use things like Kodi or VLC. Compression can essentially run the volume control up and down on your behalf. (Turn that stuff back off again when the wife and kids aren't home. Or don't. It's your audio system; please use it however it is most pleasing.)


Hopefully they'll use AI to reverse engineer a checkbox later that lets you toggle this on and off.

It's probably worth seeing if you can setup presets. Your current settings and then a 'theater mode' where there's some light compression, the center channel is boosted and the subwoofer(s) are limited.

And then for some films, you'll need to turn down the sub a bit more, cause I dunno, some mixes are rediculous... shake my house for a rocket launch, sure; shake my house cause a compact car is rumbling down the street is a bit much.


> A composition has a dynamic range for a reason.

People get rid of dynamic range for more immediately compelling reasons. Here's my favorite filter. I never had much luck with perceptual loudness normalization, and brick wall limiters are too sensitive to transient pops. https://github.com/DaveFlater/DRD


The range should be adjustable depending on consumer preference.

Your hearing system compresses audio when it is loud so the perception of what you are hearing is different when the volume is low, which is what loudness is compensating for.

This is what you want, when that composition is based on multiple, discrete, individual applications generating audio, though.

Sure, if you're listening to a mastered recording - turn this off and/or simply don't use it.

But if I've got multiple applications going on, I don't want my system beep to completely overpower the audio those applications are generating, independent of each other - I want all the sounds in my system, whether effects or audio streams, to 'sit in the pocket'. Its great that this has made its way to those of us using Linux for high performance audio applications.


But I do multiple things at once. I don’t want notifications to be undisturbing if I’m listening to background music and booming if I’m watching a movie, I want them to be an appropriate volume for notifications. Sometimes, mostly based on environment, I do want everything quieter or louder, but then I adjust the system volume, not the volume of random apps.

If you have system alerts at 80% and movie sounds at 40% and chat alerts at 15%, you're going to not hear things if you turn master volume to 30%.

This fixes that.

But of course - you don't have to use it!


> But if I've got multiple applications going on

I guess this is not something I do. I can't think of any situation where I would want to be listening to audio from multiple application at once.

I mostly listen to music and I put a lot of effort into getting bit perfect playback. I use visual alerts rather than sound effects where ever possible. If I'm on a call or gaming them I'm not listening to something else at the same time.


A lot of people play games with their friends while communicating together in another application.

This is easily adjusted by individual volume sliders on friends in discord etc. No need to have an algorithm ruin musical dynamics to achieve this.

It sounds as if neither this product, nor the setting in Windows are a good choice for you.

It's never been an OS designed for power users.


Both are brilliant solutions that work great for me.

Yes I also do that sometimes. I guess I've never run into such mismatched audio levels that it needed an adjustment.

Didn't Microsoft move away from this feature and make it much harder to activate though, since they realized this isn't usually what you want?

For a couple of years, my hearing was extremely sensitive (for being an ignorant musician that didn’t wear hearing protection), and watching Youtube videos was really annoying, since some idiots put jumpscares with loud noises in their videos.

During those years, I had to use a loudness normalizer whenever I used headphones.


Did that affliction go away on its own?

Partially.

My ears are still significantly more sensitive than the average person's. I have to wear earplugs whenever I'm close to live music, or in loud subways, etc.

But I don't need to use an audio normalizer anymore. I just wear headphones and watch videos normally.


Unless you're listening to a speaker setup that's capable of the dynamic range need for an orchestra, you need some level of high pass, limiting and compression. I can imagine why they optimised for the tinny pc and laptop speakers people were connecting to their computers.

> a speaker setup that's capable of the dynamic range need for an orchestra

This speaker setup does not actually exist.

There are instrument geometries that produce output that simply cannot be reproduced artificially via whatever normalized loudspeaker geometry.

The piano and cymbals being strong examples. The initial transient of a cymbal crash is beyond hopeless to deal with. Plasma tweeters are probably as close as you can get on this one.


Fascinating. The cymbals I can intuitively understand, but why the piano?

The piano's soundboard is an absolutely massive acoustic radiator. You can emulate the piano accurately if the pianist is playing something gentle and in the middle registers. If the pianist is playing Rachmaninoff, I think it might actually be worse than the cymbals in some ways.

It seems to me we need to delineate the reproduction of sound as it actually exists vs reproduction of what a human ear hears. Setting aside the full-body response to sound for a moment (I mean, you're going to feel the 1812 cannons as much as hear them), at what point is this approximation taking place and how much fidelity is lost? A piano's soundboard may produce incredibly complex overtones and harmonics, but how much does a human actually hear? And how much of that human-discernible fidelity is lost when going through microphones and speakers?

Thanks for the reference to plasma tweeters, this is a rabbit-hole.


It is more of a mixed case issue. You may be listening to music, then watching a youtube video, then playing a movie in vlc, then opening a audio message on whatsapp web.

Or you could be watching a movie that has annoying jumps like dune?


mr christopher nolan, I am a big fan of your movies but I wish you used this fucking algorithm in them

Nolan makes no movies for puny setups. I always watch his movies with subtitles on because dialogues -- in Tennet for instance -- are inaudible.

I’ve got a 5.1 setup (not a very expensive one) and I can say that the inaudible part of Tennet are basically irrelevant. The dynamic range part is a big part of the feeling of movies, even when purposefully manipulated and not realistic. But having a specific speaker for dialogs and important sound is great because your brain can tune itself to it.

I've originally said in the comment that a soundbar goes a long way. I have a 3.1.2 soundbar, the one that has two front speakers aimed to the ceiling so it simulates surround sound without rear speakers.

It's really good, way better than regular TV speakers. I calibrate the audio for regular dialogues and let the loud parts get loud.


God I can't believe the replies to this comment. People begging for the loudness war to be brought back.

Brought back? I think it is still going on. Watch any modern series and you have that issue of tiny bit of dramatic moment, and they will blast your ears off with loudness, forcing you to decrease volume, while leaving you scrambling to increase volume when 2 people have a conversation, so that you can actually hear the words.

I used to have a music player, that let me regulate the volume of each track separately, in 10% steps. Wish that could be brought back to some modern music players. I don't mean just in some metadata, but a property of a playlist, that I change live in my player.


What you're describing is dynamic range, where loud things are loud and quiet is quiet. The loudness wars is the opposite, where dynamic range is crushed to increase the perceived loudness. You can always correct this with a "night mode" usually found in your TV or sound bar but you can never get back the lost dynamic range.

For your second bit, while it's not quite the same, does your player not have a loudness leveling option?


I am not watching on a TV. I don't own a TV. I don't have a sound bar, I believe. Not really sure what that exactly is.

I am often using Audacious or VLC. Nor sure if they have a loudness leveling thing. If so, I have never noticed it in the primary UI buttons and such. Might be hidden somewhere.

I guess my complaint is, that movies shouldn't simply assume to be run on some fancy pants audio system to get leveled back to normal volume for various parts of the audio (talk/conversation VS gunshots/explosions, etc.) I shouldn't have to hectically reach for volume down shortcuts, when the scene suddenly gets some action, so that I don't wake up my neighbors.


Since you're watching on those players, I can guess where you got your media. While eg Netflix will have multiple audio streams, almost all pirate releases don't. So while there does exist a 2.1 stereo mix in the world, you're not going to see it. That's your initial problem. But it's entirely solvable with software. You need a dialogue boost, to fix the missing center channel, as well as a night mode to crush the dynamic range. Or at least one of the two.

Your complaint is entirely solvable with simple software. However removing dynamic range is a one way path, and if it's removed then it's impossible to get it back. So then people that do have decent speakers and want a good listening experience can't.

It's possible for Blu-ray to include a stereo mix, they can have multiple audio tracks, but realistically most people buying physical media have speakers or at least a soundbar.


This happens a lot when you're listening to an audio stream that isn't mixed for your speaker setup. If you're listening on a laptop, you've got 2.0 stereo setup. If whatever audio player you're using is playing the 5.1 audio stream, it's going to have to do some software downmixing to 2.0 and that isn't going to perform as well as a specifically mixed 2.0 stereo track that usually is available on the disc/stream the media was distributed on originally.

To further this point, they often drop channels altogether let alone doing anything clever. You may be losing the center channel entirely. Otherwise th downmixing should be additive so you get LCR etc.

I'm running a 2.0 and 2.1 setup myself; went deep with this while working on https://pixelbrite.site


If you want a good hearing experience: switch to German dubs, their audio mix is made to make speaking voices better recognizable

No, we're begging for it to be under the user's control.

For produced content, sure, but if you're listening to podcasts, livestreams, or just voice chats live normalization can be quite useful

> A composition has a dynamic range for a reason.

This is meant for movies or for listening to music at lower volumes, for which it wasn't mixed for.


A lot of musical doesnt actually these days, including remastered versions of older music, since we all now listen through YouTube and Spotify on phones and laptop speakers.

I also rarely take time for listening but I do keep my Flacs and specific remasters around. But for TV I hate dynamic range, we always have it on low anyway with subtitles on because we actually do not like the cinema experience at all.


Then this isn't for you, is it? This is exactly what I want, because the audio mixing on movies is such that on stereo speakers, the spoken dialogue is whisper quiet and anything beyond that blows out my ears if I turn up the volume to be able to understand the dialogue.

I don't really understand takes like this. You realize that not everything is meant for you or for every demographic, right? Things are allowed to be for some people and not for others.


> This is exactly what I want, because the audio mixing on movies is such that on stereo speakers, the spoken dialogue is whisper quiet

You probably want a proper stereo mix or a dialogue boost option. Movies are mixed such that the dialogue comes through the center speaker which you don't have, so you need that problem fixed.


"this is never what I want" is a data point, just like yours.

No, it's just complaining. Which is weird, because this is something somebody did in their free time because they wanted it and because they felt some other people might want this particular functionality, and they're providing it for free to others. Which from my point of view is commendable, even if it didn't appeal to me personally.

But that's par for the course for Hacker News, I guess. We can't ever just not be negative about everything. Everything sucks. Everything is wrong because it's not for me, because everything should be catered to me in particular and anything that doesn't is wrong.


As someone who gets into negative headspace sometimes, maybe just notice that the original commenter didn't say any of that.

> No, it's just complaining.

So what are you doing if not complaining about their post/take?


The best answer for more than a handful of servers and the one arrived at by Google, Netflix, and Uber is to not put the keys on the servers at all and instead sign short lived (30-60 min) versions of them instead.

SSH CA is built into the openssh server for a long time and there are multiple opensource management platforms. You can even sign use limitations into the key.


I'll go out on a limb here and say that if your bug backlog is currently deep it might be because of general disorganization. We've all seen shops where there are no standards other than ship something "on time" and the result is a spaghetti mess that only gets worse as time goes on. This is a management problem that AI doesn't fix.

I've been an Amazon customer since they only sold books. However, I have cut way back on my shopping with them.

One of my resolutions this year is to always search for independent sellers (online or brick and mortar) to compare before buying products on Amazon. In nearly all cases I have found a webshop with a better selection and a lower price, even after paying shipping.


I would love to buy from more small businesses. The biggest hurdle that usually pushes me away is they don’t have a clean 30 day return policy like the big box stores.

So you have to be REALLY sure that you want that product and/or be ready for the hassle of trying to get your money back.

Credit card companies are also not nearly as ready to back you up as they used to. So when the store violates its own terms, you’re going to have to go through a whole process to “prove” it to the credit card company.

So much hassle, I still try here and there but that’s what steers me clear of smaller shops.

Unfortunately this is starting to filter in on Amazon too. So now I need to look for sold/shipped by Amazon to make returns easier.


Something tells me you would like the EU. It's 14 days minimum instead of 30 but for me that has always worked (if I don't have a chance to even look at the product in the next weeks, it would be silly to buy it now and start the 2y warranty timer etc.). Never needed a credit card to get money back either, not sure if that's backed up by any legislation though. Save for scam store websites (though I have yet to come across one when not specifically looking for it), you can shop with these baseline expectations at any store in I think the European Economic Area but definitely at least the Union countries

I feel like people who argue it is easy to leave Amazon for other options may simply have a different kind of lifestyle and likely don't have the same shopping habits as others.

Especially in Canada for me, other online options often are terrible compared to Amazon. Often even when a company has their own website for their product, it will still be much cheaper to buy it via Amazon. And when I buy their product via Amazon, I get all the added protections that you're talking about like the easy refunds.

I've ordered when I can on websites that are not Amazon, and it has burnt me in some cases. Even if a website offers a refund policy, a lot of the time you're also having to at least pay the shipping cost to return the item. Which is on top of the shipping cost you already had to pay to get the item.

Overall the experience is often just worse. More expensive shipping, slower shipping speeds, slower processing times before the shipping, no support for pickup points, etc....


> Often even when a company has their own website for their product, it will still be much cheaper to buy it via Amazon.

At least at one point it was a requirement for sellers who list on Amazon and their own website to have the Amazon price be cheaper.


How often are you actually returning things? I almost never do this. What reasons do you have to return stuff? It sounds like you may be better working with more local sellers that can help you find what you need before you buy it anyway.

Doesn't have to be that they do returns often. It's nice to have the peace of mind that the money given will result in satisfaction, that you're not potentially risking it on junk (defective or otherwise) that you'll end up not wanting.

Approaching Christmas, one may buy an alternative gift, delay the decision up to the 25th, then return (or not) the item not gifted. That's likely the whole reason why Amazon makes the return window larger in the Holidays. If you don't return it, out of laziness or from not wanting to part with it, the policy results in you having bought more than you otherwise would, to Amazon's benefit.


I don't return that often, but keep in mind that it only takes one bad return experience to open your mind up to this.

There are many reasons to return items. Wrong size and fit, they packed and shipped the wrong item, it arrived damaged, it was a gift but the receiver didn't want it, the product listing overpromised and under delivered, you needed it for a special occasion and now the occasion has passed because it was shipped from China and you weren't expecting it to take a month.

In one case I bought a nice gift for my wife for when we go out somewhere. Having given birth recently, she didn't feel like going out anywhere until close to the end of the return window. That's when she picked it up for the first time and decided she didn't want it. She went to return it on day 29, not 30, not 31.

The store gave her a hard time about it and flat out refused to return it, violating their own policy. We tried escalating, back and forth with management, etc. Finally we had to dispute it with the credit card.

After three months we finally got it resolved with the card giving us the refund, but we had to go through so much to get to this point when all they had to do was accept the item back. (Which was unused, still in it's original packaging tags and all).

Now after a recent move, I've run into a similar type of situation. I bought a furniture item off amazon, but it's not "Sold / Shipped" by amazon, meaning it's going through this little seller's return policy.

It arrived in two boxes. I assembled one, the finish doesn't really look like the picture and it's a lot bigger in person than we expected. Now I'm trying to return it and here we go with this bull shit. First they want an explanation as to why I'm returning it. Then they want me to pay for shipping. Then they only give me one shipping label...

When you look at smaller businesses, they will often have ridiculous policies around returns, but it will often come with a lot of hassle regardless (you pay for shipping, you need to give a good enough reason, it can't be returned unless it's damaged and then it's only replaced not refunded, etc.).


It’s so funny seeing other peoples points of view on this. I thought the same thing, it’s such a consumerist lens. What the heck are these people even buying? I can’t even imagine? I hate to say but I see it as such non-thinking, sheep behaviour at this point wish people would wake up a bit.

I've had items arrive damaged before, which then required extended haggling to get them to offer a reshipment or store credit. After requesting a reshipment, they delayed long enough until they claimed it was then too late for a return. Generally stores with lenient return policies won't play games like this.

Standing up to companies that are happy to fleece you for every penny they can get is not a consumerist lens. They sold you an item that under delivered and you need a refund and it's as simple as that.

Honestly, you don't have to imagine what people spend their money on to want a society where commerce is an enjoyable experience.


That and time to discovery.

You will find you save quite a lot of money by eschewing Amazon in many cases.

Out of curiosity, was using PowerDNS with CloudSQL (fed from a spanner stream) considered?

There are always trade offs of course but it would have the advantage of DNS spikes not impacting spanner.


We run PowerDNS with MariaDB replication on the backend

Zero problems for last 15 years. Near-instant propagation.

Scaling options are great, as the amount of changes in records per second is generally small even if you have hundreds of domains


I'll admit that we haven't looked at using a Spanner stream with PowerDNS. We did try Spanner and their stale reads feature: https://docs.cloud.google.com/spanner/docs/samples/spanner-r..., however the records were not available instantly after our API said the basin was created. Will investigate.

Yeah, that was my first thought. The only requirements mentioned in the post had to do with control plane stuff (updating records, mostly).

PowerDNS lets you plug in whatever data source you want, so you can build the control plane of your dreams. Meanwhile, you’ve got a performant and battle-tested piece of software handling actual DNS traffic.


I run Alpine on hardware. I was not effected by this as while I do use ssh keys, there are no user accounts without passwords on my server.


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

Search: