HackerTrans
TopNewTrendsCommentsPastAskShowJobs

thenbe

no profile record

comments

thenbe
·قبل سنتين·discuss
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.
thenbe
·قبل سنتين·discuss
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...
thenbe
·قبل سنتين·discuss
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...
thenbe
·قبل سنتين·discuss
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
thenbe
·قبل سنتين·discuss
> 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
thenbe
·قبل سنتين·discuss
> not as bad as Twitter

Can't help but feel that's what we're moving towards.
thenbe
·قبل سنتين·discuss
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/
thenbe
·قبل سنتين·discuss
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.
thenbe
·قبل سنتين·discuss
> 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...
thenbe
·قبل 3 سنوات·discuss
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...
thenbe
·قبل 3 سنوات·discuss
You can roll your own or use a utility library. A simple zero-dependency library would be something like just-* [1]. Although I now prefer remeda [2] as it seems to have the best typescript support, especially the strict variants such as `groupBy.strict`.

[1] https://github.com/angus-c/just#just-group-by

[2] https://remedajs.com/docs#groupBy
thenbe
·قبل 3 سنوات·discuss
By default, eslint only lints files with a .js extension[1]. Eslint plugins are what allow eslint to support more languages. A list can be found here[2].

For the record, prettier can also be extended to support more languages[3].

[1] https://eslint.org/docs/latest/use/command-line-interface#--...

[2] https://github.com/dustinspecker/awesome-eslint#plugins

[3] https://prettier.io/docs/en/plugins#official-plugins
thenbe
·قبل 3 سنوات·discuss
The deprecated style rules have been ported by a new project: https://eslint.style/guide/why
thenbe
·قبل 3 سنوات·discuss
While it's always great to see performance gains, my largest pain point with prettier was never performance. Instead my only gripe with prettier is the "line wrapping noise" it creates, illustrated here by Anthony Fu: https://antfu.me/posts/why-not-prettier#the-line-wrapping-no...

Would it be realistic to expect a solution for this issue now that "prettier needs to step up it's game"?
thenbe
·قبل 3 سنوات·discuss
I'm in the same boat, currently using Raindrop and looking to switch. I'm currently eyeing Linkwarden as the alternative, but I'm not sure how painless the migration will be.

https://github.com/linkwarden/linkwarden
thenbe
·قبل 3 سنوات·discuss
Meanwhile, Mazda is sending cease and desist letters to open-source contributors.

Previous discussion: https://news.ycombinator.com/item?id=37874220