News for hackers. Stuff that matters.

thenbe

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.

Re:I found an 8 years old bug in Xorg on Sunday June 23, 2024 @12:08PM (#40768427)
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...

Re:CamelCase vs. Snake_case Scientific Studies on Tuesday May 21, 2024 @08:14AM (#40427360)
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...

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

Re:Friends don't let friends export to CSV on Tuesday March 26, 2024 @09:39AM (#39827683)
> 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

Re:Tell HN: GitHub is blocking search unless you are logged in on Saturday February 10, 2024 @07:22PM (#39331558)
> not as bad as Twitter

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

Re:Should I use a pie chart? on Saturday February 10, 2024 @01:39AM (#39324132)
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/

Re:How iTunes Is Changing on PC on Thursday February 08, 2024 @09:32AM (#39302313)
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.

Re:Which command did you run 1731 days ago? on Sunday January 21, 2024 @05:56AM (#39077379)
> 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...

Re:TSDocs.dev: type docs for any javascript library on Tuesday December 19, 2023 @06:09PM (#38703227)
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...
Re:TC39: Add Object.groupBy and Map.groupBy on Tuesday December 19, 2023 @05:39PM (#38702887)
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

Re:Prettier $20k Bounty was Claimed on Monday November 27, 2023 @04:24PM (#38438536)
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

Re:Prettier $20k Bounty was Claimed on Monday November 27, 2023 @12:32PM (#38435242)
The deprecated style rules have been ported by a new project: https://eslint.style/guide/why
Re:Prettier $20k Bounty was Claimed on Monday November 27, 2023 @12:26PM (#38435151)
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"?

Re:Grimoire: Open-Source bookmark manager with extra features on Sunday November 26, 2023 @09:38AM (#38421897)
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