HNHacker News
TopNewBestAskShowJobs

embeng4096

340 karma · joined February 18, 2020

Electrical/computer engineer by training and trade
submissionscomments
embeng4096··on Ask HN: How do you sync or migrate KDE settings?
Awesome, nix + home-manager or system-manager might be the solution I'm looking for, thank you!
embeng4096··on Ask HN: How do you sync or migrate KDE settings?
Nice, I didn't know nix could be used on any distro; I only knew about it from my friend who's a nixos enthusiast.

Few links I found, for anyone else encountering this for the first time:

https://rasmuskirk.com/articles/2024-07-24_dont-use-nixos/

https://tech.aufomm.com/my-nix-journey-use-nix-with-ubuntu/

https://jeancharles.quillet.org/posts/2023-02-07-The-home-ma...

https://www.reddit.com/r/NixOS/comments/16tdugd/nix_without_...

https://www.reddit.com/r/NixOS/comments/1lbv8hn/ive_avoided_...

embeng4096··on Upgrade your desktop: Ubuntu 26.04.1 LTS is now available
I installed Kubuntu on a laptop for work, since I use KDE at home. It was slightly annoying to have to re-configure stuff like the DE settings, Dolphin etc though.

Anyone have suggestions for syncing/version controlling KDE Plasma 6 configurations?

(I made an Ask HN for it as well: https://news.ycombinator.com/item?id=49910250)

embeng4096··on Ask HN: Diablo 4 on Ubuntu?
tl;dr: go to protondb.com, search for Diablo 4, and then filter the list of results by "Distro" for Ubuntu (and Mint), and try the options that people say worked for them

ProtonDB is a site that aggregates reports from users of Proton, the compatibility layer to let Windows games run on Linux. For lots of games, users will submit reports of their system info (distro, CPU, GPU, driver version, Proton version) and any configuration they needed to do to get that game working on their setup. The usual solutions are switching the Proton version you use and/or commands you add to the custom commands in the configuration for that particular game in the Steam menu.

I just looked at Diablo 4, and specifically filtered for Ubuntu users; I see 22 reports, with the most recent ones being people saying it worked for them. There are also successful reports from people on Linux Mint, which is based on Ubuntu.

embeng4096··on Activation Energy is a good model for a lot of things
re: the sociodynamic portion

Karen Horney (20th-century German psychoanalyst) in her book "Neurosis and Human Growth" talks quite a bit about this failure mode. The relevant bit I want to share is her talking about how a person may be in a state of neurosis due to not feeling like they are living up to their idealized self -- and that a commonly destructive response to that neurosis is trying to force everyone around them to treat and perceive them as if they were that idealized self and not the flawed real self they are (regardless of whether the people around believe or are deceived into believing that, which is where she diverges from your point a bit but I think you're touching on very similar things).

embeng4096··on Seven books I keep close because I love them
Redwall mentioned!

Brian Jacques' other series Castaways of the Flying Dutchman is also very good.

embeng4096··on I am retiring from fulltime writing (& pseudonymity) to launch Guardian Angel
https://xcancel.com/willdepue/status/2084750925013434768
embeng4096··on Apple Upgrade Launches in the United States
Yes, this. I've found good prices on used electronics on Facebook marketplace, as well as eBay, Swappa ("Craigslist for used electronics", cheaper than Backmarket but no QA, is just for coordinating private sales person-to-person), Backmarket (slightly more expensive than Swappa, but has in-house QA and is backed by their business), and Unclaimed Baggage.
embeng4096··on Don't change lanes – the maths of holiday traffic jams
I love doing this, it feels nice to think that I am playing a small part in helping to reduce the propagating wave for people behind me :)

Until the inevitable jerk takes the 1-car length space in front me as an invite to try to find a faster lane, making me hit the brakes and strengthening the traffic wave instead of weakening it :(

embeng4096··on Linux gaming is faster because Windows APIs are becoming Linux kernel features
I switched to Linux for everything but AAA FPS PVP games last year and have had a great experience so far.

Steam+Proton makes everything I play just work: Helldivers 2, Slay the Spire 2, No Rest For The Wicked, FF7 Remake, Stardew, modded Lethal Company (using r2modman) are the main things I've been playing recently, and all worked out of the box with Proton.

My PS5 controller may have needed me to install one package or something but has been working flawlessly after that.

I keep a Windows drive around for stuff like Apex Legends, Battlefield 6, but I pretty much never boot into Windows anymore except for those.

(I probably sound like a shill at this point, having commented something like this on multiple Linux threads now, but I continue to be impressed at how well Linux performs for gaming these days!)

embeng4096··on Ask HN: Can HN ban new accounts? or charge money?
If it wasn’t a spicy take in some way nobody would be commenting on, quoting, or mocking it
embeng4096··on The quiet resurgence of RF engineering
Idk, I'd like to see AI design a schematic and lay out a board. Even the occasional "Show HN" that combines AI+PCB stuff is about analysis and checks. It doesn't seem like anybody is even near any kind of ECAD using AI. People still complain about autorouters. Even frontier models need architecting and guard rails in software to avoid spaghetti, it seems like an even harder problem to get them to choose the correct parts, create accurate footprints and symbols, and wire those all up together.

"This is wrong, fix it" + recompile, can happen twenty times in ten minutes, but "we discovered the layout is wrong, fix it" is precluded by the cost and time of a new board spin.

AI + text (code) seems like a good match but (E)CAD seems a lot harder to interface AI with. If I'm wrong, I'd like to share that with the EEs on my team, though.

embeng4096··on Running Bare-Metal Rust Alongside ESP-IDF on the ESP32-S3's Second Core
I didn’t know about hosted-MCU! I just started using the ESP-AT firmware for an ESP acting as a radio co-processor on a project at work - do you know how hosted-MCU differs?

I did glance at the readme and get the impression that hosted-MCU works for all compatible ESPs and seems more flexible and powerful, where ESP-AT is for select ESP chips and is more limited.

embeng4096··on After three months on Linux, I don't miss Windows at all
I keep saying this under a bunch of Linux-adjacent posts, but I switched to EndeavourOS late last year and have been enjoying it ever since.

I do 99% of my computing needs on it, with the last 1% being a second Windows SSD I only boot into to play games that require heavy anticheat (Apex Legends, Battlefield 6, Rainbow Six Siege).

Otherwise, I've been doing everything else in Linux, including all the rest of my gaming (Baldur's Gate 3, Helldivers 2, No Rest For The Wicked, Slay The Spire 2, Stardew Valley, pretty much anything that's not AAA FPS multiplayer that I've wanted to play so far, even modding games like Lethal Company using r2modman).

It's been great - I told my coworker I only realized how annoying the Windows auto-update and forced reboots were after I got used to my Linux PC always being in the state I left it.

embeng4096··on If America's so rich, how'd it get so sad?
NYC playgrounds closed until July 2020 (a time concurrent with ongoing protests): https://data.cityofnewyork.us/dataset/Parks-Closure-Status-D...

Washington state continues to close park/trail facilities through July 2021: https://www.wta.org/go-outside/social-distancing-hiking-in-t...

I agree with you that some protocols were dumb. Schools should have opened windows, or added UV-C lights, or replaced high-traffic surfaces like doorknobs in large common areas with antiviral materiel, added foot-use mechanisms for opening doors, and so on. Or, if it was too expensive for any of that, asked cleaning staff to spend more time on high-transmission areas like bathroom faucets and doorknobs even if it meant less time elsewhere. But I think there's something more than just outdoor vs indoor going on.

embeng4096··on If America's so rich, how'd it get so sad?
LA County Parks is implementing following changes effective November 30, 2020:

All playgrounds will be closed. Fitness zones and exercise equipment will be closed. Parks and trails remain open for outdoor, passive use for individuals or members of the same household. Masks and physical distancing are required. No group gatherings are permitted

https://covid19.lacounty.gov/covid19-2-2/closures/

Emphasis mine

Edit: and for reference, because I do think you have a point, the George Floyd protests started months before November 2020.

embeng4096··on If America's so rich, how'd it get so sad?
So why were public outdoor areas like skate parks filled with sand to “promote social distancing”?[1] Or parking lots at beaches and state parks closed “to curb the spread of coronavirus”?[2]

[1]: https://www.cbsnews.com/losangeles/news/coronavirus-san-clem...

[2]: https://calmatters.org/health/coronavirus/2020/03/coronaviru...

embeng4096··on France Launches Government Linux Desktop Plan as Windows Exit Begins
I did consider Fedora, just was intrigued by EndeavourOS, being Arch-based but with default settings that work totally fine for a casual like me, not having to fuss about setting up a DE or WM+addons, firewall, WiFi, Nvidia GPU worked out of the box, etc
embeng4096··on France to ditch Windows for Linux to reduce reliance on US tech
Yep, my casual Steam games run well out of the box. I don’t even use a gaming-focused distro like Bazzite, just EndeavourOS. Helldivers 2, No Rest For The Wicked, Slay The Spire 2, even modded Lethal Company with friends using r2modman (also worked OOTB). And of course Discord works, including streaming when friends want to watch

If I really want to play Apex or Battlefield I’ll fire up my dual drive dual boot Windows, and in the meantime, no more Microsoft spying on me, forced Windows updates and reboots at random times, ads in my Start menu, Xbox apps and other bloatware, etc

embeng4096··on What does it mean to “write like you talk”?
Tangentially, this post has stuck with me for years: "How Real Life is Different from Fiction part 2" https://mengwong.livejournal.com/7227.html

As a kid who was a voracious reader, also called a geek by myself (cringily lol) and by others, some quotes that resonated then and still do now:

> Geek kids read many more words than they speak. As a result, when geek kids do talk, they talk like a book.

> They use fully formed sentences, complete with subordinate clauses; if you listen hard, you can almost hear semicolons and parentheses.

> Many geeks, though, speak with "-v" turned on

> In fact, many geeks are so offended by the very idea of telling others what to do that they spend all their lives in the declarative voice, and never use the imperative voice at all. These are the geeks who recoil from moving into management.

embeng4096··on We Study Mass Shooters. Something Terrifying Is Happening Online
I'd recommend Katherine Dee's Substack, Default Friend, for a more in-depth look at this type of thing. The NYT op-ed dips into the usual tropes of the attention economy, true crime, copycat behavior, viral memes and social media algorithms, calls to safeguard the algorithms and AI.

Dee's article "The Nihilism of the Mass Shooter" (written in 2022, even) (https://default.blog/p/the-nihilism-of-the-mass-shooter) provides more specifics than the generalities in this op-ed. I'm a regular reader, so it's easy for me to see, but I believe that her passion about investigating and reporting on these things is visible even to a new reader. It's clear to me that she actually spends time looking at the sources, e.g. there's a link in the article to one of her sources, a pdf of the law enforcement report on a shooter from Parkland.

embeng4096··on Practical Guide to Bare Metal C++
Is there an example of the generic programming that you've found useful?

The extent of my experience has been being able to replace functions like convert_uint32_to_float and convert_uint32_to_int32 by using templates to something like convert_uint32<float>(input_value), and I didn't feel like I really got much value out of that.

My team has also been using CRTP for static polymorphism, but I also feel like I haven't gotten much more value out of having e.g. a Thread base class and a derived class from that that implements a task function versus just writing a task function and passing it xTaskCreate (FreeRTOS) or tx_thread_create (ThreadX).

Typed compile-time computation is nice, though, good point. constexpr and such versus untyped #define macros.

embeng4096··on Practical Guide to Bare Metal C++
I took a brief skim through so apologies if I missed that it was mentioned, but wanted to bring up the Embedded Template Library[0]. The (over)simplified concept is: it provides a statically-allocated subset (but large subset) of the C++ standard library for use in embedded systems. I used it recently in a C++ embedded project for statically-allocated container/list types, and for parsing strings, and the experience was nice.

[0]: https://www.etlcpp.com/

embeng4096··on Practical Guide to Bare Metal C++
+1 to this and your above points (the embedded team I'm on has started using C++ over the last year or so).

I've definitely learned a lot, and I like the portability of CMake for cross-platform use (our team uses all 3 of Windows, Mac, and Linux). My experience sounds much like yours: there've been a lot of times where using the vendor's flavor of Eclipse-based IDE (STM32CubeIDE, Renesas e2studio, etc) would have saved us a lot of discovered work, or extra work adapting the "happy path" to CMake and/or C++.

Using C++ and/or CMake is fine when it's part of the happy path and for simpler things e.g. STM32CubeMX-generated CMake project + simple usage of HAL. For more complex things like including MCUboot or SBSFU, etc, it's forced me to really dig in. Or even just including FreeRTOS/ThreadX, we've created abstractions like a Thread class on top -- sometimes it's nice and convenient, others it feels like unnecessary complexity, but maybe I'm just not used to C++ yet.

One clear, simple example is needing to figure out CMake and Ninja install. In an Eclipse-based IDE, you install the platform and everything Just Works(tm). I eventually landed on using scoop to install CMake and Ninja, which was an easy solution and didn't require editing my PATH, etc, but that wasn't the first thing I tried.

embeng4096··on Smartphone market forecast to decline this year due to memory shortage
AO3 also allows downloads of different formats including epub. I often download the epub (or use fichub for other sites) and read on the Epub Reader app. If I want to read on my Kindle app or my physical Kindle, I'll send the epub to my Amazon library via email.
embeng4096··on Show HN: I made a memory game to teach you to play piano by ear
Former band kid who also just got a digital keyboard. Ime learning to read the staff just came from putting in the time on the instrument, but I’m also looking for ways to speed that up. I had the idea of making flashcards and even putting it into an SRS like Anki to see if I can make the process of (re-)learning the staff faster and make it stick. If you come across anything that would help I’m interested too!
embeng4096··on Ask HN: How to do a Personal Cybersecurity audit
I just came across this checklist the other day: https://andrew-quinn.me/digital-resiliency-2025-checklist/

In addition to the short checklist, the author has a lengthy blog post describing its implementation in his life: https://andrew-quinn.me/digital-resiliency-2025/

embeng4096··on The long wait is over, Ganymede has arrived
I just switched to EndeavourOS for 95% of my home computer needs last week (I left my Windows install on a separate drive for gaming and especially those that require super invasive anticheat, e.g. AAA multiplayer FPS) and it has been a wonderful experience so far.
embeng4096··on Uv is the best thing to happen to the Python ecosystem in a decade
Would creating a `main.py` with the dependencies installed either as a uv project or inline work for you?

One thing I did recently was create a one-off script with functions to exercise a piece of equipment connected to the PC via USB, and pass that to my coworkers. I created a `main.py` and uv add'ed the library. Then when I wanted to use the script in the REPL, I just did `uv run python -i main.py`.

This let me just call functions I defined in there, like `set_led_on_equipment(led='green', on=True)` directly in the REPL, rather than having to modify the script body and re-run it every time.

Edit: another idea that I just had is to use just[0] and modify your justfile accordingly, e.g. `just pything` and in your justfile, `pything` target is actually `uv run --with x,y,z ipython`

Edit edit: I guess the above doesn't even require just, it could be a command alias or something, I probably am overengineering that lol.

[0]: https://github.com/casey/just

embeng4096··on Always Invite Anna
I also feel similarly about owing people things. I think it does tend to bind people together to have a history of giving to each other and receiving but like you mention, it can be anxiety-inducing as well.

Thanks for the advice, I know there's not really a "perfect" solution, I was just curious about how you've approached it in your own life so I appreciate you sharing.

Page 1 of 4Next →