tsegers
Re:Show HN: I built a little browser game to practice Vim commands
on Tuesday November 03, 2026 @04:51AM (#50349987)
I still vividly remember a peer watching me carefully record a vim macro, thinking I was just editing. Right as he said "Why are you so slow?!?", I ran `100@q` to apply the edit to the whole file. Just "oh." after that.
Re:Disney Raising Prices Days After Confirming Ads Will Now Show Up on...
on Friday October 23, 2026 @12:02PM (#50211193)
> You can buy
No, you cannot. You can license them temporarily.
Re:Replacing the Kobo Libra H2O Battery
on Monday August 03, 2026 @06:03PM (#49162071)
The housings are not sealed. At least not on the older Aura H2O models. That model's water proofing achieved by a coating on the PCB. I googled this in a panic when a significant amount of water came flowing from the USB port as I removed it from the bath.
Re:Samsung Embeds IronSource Spyware App on Phones Across WANA
on Saturday June 21, 2025 @04:59AM (#44335906)
I believe that the top-level comment you replied to is making the point that there should not be any authority that either allows or disallows what a user can do with the device they own. Purchasing a device should make one that authority, free to decide how much security to trade for how much privilege.
Re:How to Copy a File From a 30-year-old Laptop
on Friday May 31, 2024 @01:30PM (#40537954)
I still use it regularly in 2024 to load data onto embedded devices running U-Boot. It saves me a network cable if one is not otherwise required.
Re:Post-mortem for last week's incident at Kagi
on Wednesday January 17, 2024 @04:44AM (#39025578)
As another paying user of Kagi I wonder what prevented you from using another search engine for the six hours that Kagi was unavailable. Search engines are not like your email provider or ISP in that you're locked in.
Re:Hacking ADHD: Strategies for the modern developer
on Thursday November 16, 2023 @04:10PM (#38295587)
Here's what I cobbled together for Arduino [1]. It ain't pretty, but it's short and it works.
[1] https://paste.sr.ht/~tsegers/53adaecd734e7159352f152ac1dcc85...
Re:C uses "&" for the address-operator because 'ampersand sounds like ...
on Tuesday October 10, 2023 @07:53AM (#37830931)
I'd argue @ is more suitable for a dereference operation than an "address of" one. It functions that way in an email address too.
Re:GOTOphobia Considered Harmful (In C)
on Sunday February 26, 2023 @02:36PM (#34948603)
Would you say that the Linux kernel is written by mostly "100% subpar C programmers"? Because it's an extremely common pattern to have multiple goto labels at the end of a function.
Re:How we got grifted by a multi-billion dollar grocery distributor
on Friday December 30, 2022 @02:35PM (#34189015)
How are they possibly not the victims after the distributor orders a vast quantity of product, goes MIA for months, and then proceeds to go "whoops, just kidding, here's your stale product back"?
Re:EmailTriager
on Tuesday December 27, 2022 @02:40PM (#34152821)
Whats the actual difference between sending ten identical low-effort auto-generated emails and ten unique low-effort auto-generated emails?
Re:Wikipedians are rebelling against “unethical” Wikipedia fundraising...
on Tuesday November 15, 2022 @12:20PM (#33612126)
> So FreeSoftware/OSS people don't work hard?
That's not a fair conclusion from the parent comment at all. Software developers _do_ have the right to prevent their work from being given away for free. Them _choosing_ to develop FOSS is them voluntarily waiving that right.
Re:Idiot Proof Git
on Wednesday November 09, 2022 @10:14AM (#33532730)
Sourcehut's tutorial on send-email is pretty good: https://git-send-email.io/
Re:Open source sustainment and the future of Gitea
on Wednesday October 26, 2022 @09:39AM (#33343528)
Using software in accordance with the terms of its licence is not shameful.
Re:Ace, CodeMirror, and Monaco: A comparison of browser code editors (...
on Monday March 14, 2022 @02:12PM (#30675874)
That's exactly what a lot of users that do development on a beefy remote machine from a light machine they use as a terminal want. Ssh+vim+tmux is a pretty common setup. That network request might add 20ms of lag, but means that anything that requires CPU power will be an order of magnitude faster. The unhappy path (a bad or absent connection) is bad, but the happy path is pretty damn happy.
Re:Littlefs – A little fail-safe filesystem designed for microcontrollers
on Saturday February 19, 2022 @07:08AM (#30396507)
The Uno has a _giant_ ecosystem behind it going back over a decade and it's more than enough for most beginner mcu projects. That's the appeal. Other than that, it's a pretty weak chip.
Re:Littlefs – A little fail-safe filesystem designed for microcontrollers
on Friday February 18, 2022 @09:07AM (#30385799)
Compiling their example with the Arduino toolchain seems to fill up about 90% of an Uno's 32k flash space. I think that rules it out as usable on anything that doesn't have a larger amount than that.
Re:Group of monkeys kill over 250 dogs for 'revenge' in Indian town
on Saturday December 18, 2021 @10:21AM (#29605076)
And neither would you see headlines about a human child learning to read, yet if a monkey were to do the same it'd be up here in no time. The noteworthy thing here is not the activity performed, but what entity the activity was performed by.
Re:Sorry, but you're already living in the “Squid Game”
on Tuesday November 30, 2021 @07:17AM (#29391310)
If someone claims that not a single actor failed to deliver it's a perfectly valid response to use the worst actor as a example to the contrary.
Re:European Parliament Calls for a Ban on Facial Recognition
on Wednesday October 06, 2021 @12:08PM (#28774779)
Using basic statistical methods to determine effective policies can result in policies that a lot of people would consider unfair and unethical.
Re:Cryptographers unearth vulnerabilities in Telegram's encryption pro...
on Sunday July 18, 2021 @02:01PM (#27874978)
I think that the linked article described that messages that arrive out of order can still be decrypted despite the decryption keys being generated in a strict order. As far as I know, the order of the keys that are used to decrypt incoming messages also indicate the order in which the decrypted messages were sent.
Re:Gooey: Turn almost any Python command line program into a GUI appli...
on Monday June 14, 2021 @07:06AM (#27501239)
> Why would anybody need this?
Because they have no experience using a terminal, entering commands and finding documentation
Re:Ask HN: How to sell apps on Linux?
on Monday April 05, 2021 @03:18PM (#26703343)
> and much of the software you will no doubt use to create your premium software was made with this philosophy.
Even the FSF considers selling software a good thing [1]
Re:Again on 0-based vs. 1-based indexing
on Wednesday January 20, 2021 @07:17AM (#25845536)
While that is true, ranges and intervals are not native constructs in quite a few languages.
Re:Again on 0-based vs. 1-based indexing
on Wednesday January 20, 2021 @06:59AM (#25845359)
The -1 with 0-based indexing occurs very frequently when using the amount of elements in some collection to derive boundaries of the indexes, which will range from 0 up to and including n-1. Grepping for "- 1" in my code folder returns mostly expressions that look like 'length/len/size - 1'.
Re:Sentimental Versioning
on Monday October 12, 2020 @11:17AM (#24755255)
No, it works. It's just non-obvious that it does due to the reliance on 4 levels of braces.
It is equivalent to the following:
lhs.Major < rhs.Major
or (lhs.Major == rhs.Major and lhs.Minor < rhs.Minor)
or (lhs.Major == rhs.Major and lhs.Minor == rhs.Minor and lhs.Patch <= rhs.Patch)
Deduplicating (lhs.Major == rhs.Major) decreased readability enough to be confusing.
Re:Dropbox silently installed new file manager app on users’ systems
on Friday July 19, 2019 @11:35AM (#20479480)
That's still one action more than is required for using a synchronization service. The killer feature is not having to do anything at all. I save my file on one computer, and it's available on all my other machines, my phone and anything with a web browser without a conscious thought at all.
Re:Florida programmer arrested for gaining unauthorized access to kern...
on Saturday September 03, 2016 @10:13AM (#12419267)
I'm not quite sure if that's a silver lining, as it's usage in such a way might do to the word "programmer" what it did to the word "hacker", namely turn an innocent word into one with connotations people would rather not associate themselves with.