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

The android development world is new to me, but I failed to find a good location mocker when I needed one recently. I tried a few of the popular ones. They were either filled to the brim with spam or broken in different ways (un-scrollable UI, generating then immediately swallowing their own permission prompts, and/or broken travel simulation).

I would pay for an app that works properly, if only I could find one. Next time, I'll probably give this one a try.


You can use the android emulators. There you can define a fixed point or also a route which it will follow (and give you location updates). But maybe this project is interesting for real devices.


Picom has an awesome feature [0] that, for the sake of all our eyes, should come by default on every device with a screen. It can continuously adjust the brightness of individual windows by averaging all the pixels in that window. It's great for defending against "flashbangs" (when a new tab burns your eyes with a blank white screen).

0: https://github.com/yshui/picom/blob/ae73f45ad9e313091cdf720d...


Interesting feature! Wish I had that option on my devices, combined also with something similar for sounds.


Yes! It annoys me when a scene with characters shouting is much louder than a scene where characters are talking with hushed voices, as an example.

We know a shout was louder at the source, but the decibel level at our ears is proportional to 1/distance squared, meaning hushed voices aren't necessarily any quieter "in real life". I'd prefer suspenseful and dramatic scenes both play at similar, comfortable levels. I don't want to have to adjust the volume up and down so I can understand one scene and then not have it be disturbingly loud in the next. In practice, I just use subtitles to circumvent the "difficult to understand" problem.


What you're describing is called dynamic range compression, and mpv can be configured to do this in multiple ways.

Back in the physical media days, it was pretty common for DVD/Bluray players to include this feature. Unfortunately it's not something that streaming app developers thought twice about. Your TV or streaming box also may or may not have the feature.


It's a problem for me between being half deaf anyway and Google not adjusting source streams to any sort of minimum decibel level. So listening to the local Pacifica station with no adjustment is about half the loudness of the local NPR station. Pleas to correct the audio level have fallen (heh) on deaf ears, so my donations and my listening has moved elsewhere. Sorry, local radio. I'd support you if you'd support me.


Doesn't that depends in the sound system setup ie hardware? I tried vehemently to fix it once with JamesDSP with no avail. My understanding then was the need for hardware support like Dolby or something. It was always an issue with music and dialog.


Unfortunatly cinemas either don't use MPV or don't use this feature, so while dialog is audible, gunfire is often way too loud for me


Huh, I actually want this when I'm at the cinema, for immersion. Just not when I'm watching a movie at home at 11pm.


It's interesting that even podcasts, which you'd think would be more focused on audio considerations, don't do this, either. I'm mostly thinking of Dan Carlin's podcasts, where sometimes he goes a weee bit quiet. (And Shadows of Utopia, which I have to jack up the volume for the entirety of)

(insert caveats about: artistic effect; I have zero audio engineering experience; podcasters definitely do some things in this vein e.g. https://www.reddit.com/r/podcasting/comments/10oqvpm/podcast...)


I'm watching a tv show, and while I'm sure a crying baby is appealing to a parent to the point they'll run at it, I'm now sufficiently annoyed that I'm just skipping past the crying baby storyline.


Part of this is psychoacoustics... Our hearing sensitivity is peaked near a crying baby frequency regardless of dBa.


Poor audio systems are also to blame for this

You want a 3.1 system (at least) and increase the center channel


I have a 3.1 system and it's still terrible on many movies made after 2010ish.

P.S.

Even properly mastered content will not work well in a noisy environment (e.g. a car or if you have a dozen fans going because it's summer). Here's my ffmpeg filter for such situations (including a stereo downmix, for those without a center channel):

   aformat=channel_layouts=stereo, compand=0 0:1 1:-90/-900 -70/-70 -30/-9 0/-3:6:0:0:0


No: The problem is directors who love mumbling, audio people who have no idea how to record and balance audio properly, and media players that can't or aren't configured to properly downmix audio tracks as appropriate.

It is absolutely possible and honestly standard fare to have properly balanced audio playing on the $1 tin cans found in TVs and laptops.


No, you'd be surprised at all the random crap they put on the center channel nowadays. You just need an equalizer and use it to boost the frequencies of human speech. A lot of AVRs call this "dialogue enchancer", but you can do it easily in software


There is a preset for EasyEffects which can handle that: https://github.com/Digitalone1/EasyEffects-Presets

I haven't tried it for music, but for videos it works pretty well.


Behold this monstrosity: devDbUrl

Madness. The only thing worse that developers willingly tolerate is prettier's sacrilegious linebreaks [0].

0: https://prettier.io/playground/#N4Igxg9gdgLgprEAuc0DOMAEBXNc...


42 columns, eh?


JFC preach! This shits me to tears, I need to figure out a way to turn those line breaks off.


The best solution I've found is to not use Prettier and instead use ESLint Stylistic for formatting:

https://eslint.style/guide/why


FWIW there's an existing issue for "firefox support" which you can subscribe to in order to be notified when this feature lands.

https://github.com/cezaraugusto/extension.js/issues/5


> we need to easily be able to see diffs between different versions

Can git attributes help in this case? It allows you to teach git how to diff binary files using external tools. Here [0] is a demonstration for teaching git to produce an "image diff" for *.png files using exiftool. You can do something similar for *.sqlite files by adding these 3 lines [1] [2]. The sqlite3 cli needs to be installed.

Alternatively, there's a tool that might also fit the bill called datafold/data-diff [3]. I'm pretty sure I originally heard of it on a HN thread so those comments may offer even more alternative solutions.

[0]: https://youtu.be/Md44rcw13k4?t=540 [the relevant timestamp is @ 9:00]

[1]: https://github.com/kriansa/dotfiles/blob/7a8c1b11b06378b8ca8...

[2]: https://github.com/kriansa/dotfiles/blob/7a8c1b11b06378b8ca8...

[3]: https://github.com/datafold/data-diff


> not as bad as Twitter

Can't help but feel that's what we're moving towards.


I like them too. Creating one with d3 + svelte is not very difficult, which then allows you to apply your own customization. I've found the demo at the bottom of this page a good place to start.

https://pancake-charts.surge.sh/


I was in this boat. Now I'd really like to get off. The UI is bad but I got used to bad. But I've been asked to change my password *checks email* 10 (!) times in the last few months. I don't share my password with anyone, but I do use a VPN.

Anyways, I can't seem to find a suitable alternative that will keep track of my listening progress across both linux and iOS.


> my history is so noisy I had to find another way

The fzf search syntax [1] can help, if you become familiar with it. It is also supported in atuin [2].

[1]: https://github.com/junegunn/fzf#search-syntax

[2]: https://docs.atuin.sh/configuration/config/#fuzzy-search-syn...


This is useful, the search especially.

There's a bug that only happens on this page [1]?

    Uncaught TypeError: Failed to execute 'observe' on 'MutationObserver': parameter 1 is not of type 'Node'
[1] https://tsdocs.dev/docs/svelte/4.2.8/functions/_svelte_compi...


Consider applying for YC's first-ever Fall batch! Applications are open till Aug 27.

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

Search: