Readit News logoReadit News
drng commented on I hacked my washing machine   nexy.blog/2025/07/27/how-... · Posted by u/JadedBlueEyes
JadedBlueEyes · a month ago
Nex is a cybersecurity student in a house of similar people, they're gonna take every way :3

quote:

> The plan is, in future, since we can't hack something that doesn't have a brain, to instead attach a brain to it. The dishwasher is easy, we can just whack that on a smart plug and monitor when the power use surges and drops. The dryer is a bit more difficult, since they pull a LOT of power, and smart plugs typically either don't support that much power, or are incredibly expensive. So that's likely going to be some fancy vibration sensor-based thingy

drng · a month ago
Vibration sensor is exactly what I did, for exactly that reason. Zigbee sensor + home assistant and a little bit of timer logic to manage the state
drng commented on Ultra high-resolution image of The Night Watch (2022)   rijksmuseum.nl/en/stories... · Posted by u/lhoff
besttof · a year ago
A colleague of mine made this very nice way to explore the (often) high resolution images from their collection:

https://rijkscollection.net/

Highly recommended and easy to fall into a “rijkscollection hole” for a bit :)

drng · a year ago
This is super cool. Thanks for sharing the link
drng commented on Draggable objects   redblobgames.com/making-o... · Posted by u/stefankuehnel
feoren · 2 years ago
Apart from the excellent subject matter, I often pull up this site during UI/UX discussions. Amit clearly has the ability to do really advanced JavaScript visualizations, but he only uses it exactly when necessary. Most of it is a plain document like you might write in Markdown, but when he uses JavaScript, it's illuminating, connected to all the other examples, and clean. Any animation he uses is clearly initiated by the user, and is there not because it looks cool, but because the intermediate frames help the user understand what's happening. It also never moves the rest of the layout around. I go back to this site any time I'm pondering how to do good online documentation, interactive help, tutorials, or even text-heavy presentation of results.
drng · 2 years ago
This almost perfectly describes https://ciechanow.ski/ as well. Worth poking through if you haven't seen it before.
drng commented on Using the mold linker for fun and 3x-8x link time speedups   productive-cpp.com/using-... · Posted by u/ingve
Waterluvian · 3 years ago
Perhaps this is a ridiculous question but is it possible to implement a language twice: both as compiled and as interpreted or JITted, the latter giving you a quicker feedback loop at the cost of runtime performance, size, etc. ?
drng · 3 years ago
GHC (with GHCI) gives you this for Haskell. After moving from Haskell to C++ work, I really miss the interactive feedback loop (among many other things).
drng commented on Signal community: Reminder: Please be nice   community.signalusers.org... · Posted by u/decrypt
Ensorceled · 5 years ago
Ah yes, the classic "if you are being abused it's your own fault". Even have the "grow a spine" trope in there.
drng · 5 years ago
It may be poorly put, but I think there's some truth to it: your most effective strategies for dealing with this kind of abuse are those that involve changes to your own behaviors. Trying to solve the problem The Right Way (i.e. at the source) is high effort and low (or no) reward. I don't think advising the pragmatic approach here suggests that abuse is the fault of the abused.
drng commented on AirPods Max   apple.com/newsroom/2020/1... · Posted by u/css
dkonofalski · 5 years ago
Why would you say something like that when these Apple headphones are not at all aimed at people that want headphones that do the bare minimum job and nothing else? Comparing your $100 Sennheisers to these misses the point completely.
drng · 5 years ago
Top comment was talking about how it's nice to have headphones that "just work" as headphones are expected to. The response that $100 Sennheisers do the same thing is perfectly reasonable. Lest you miss the point completely: This is speaking to the audience who only want the "just works" headphones and not the $400 worth of differentiating features.
drng commented on Wikipedia is getting a new look   diff.wikimedia.org/2020/0... · Posted by u/Amorymeltzer
drng · 5 years ago
If you have an account (and stay logged in) you can get some of the benefits described in the article with an alternative skin (collapsed menu, limited line width, maybe a better font). Check out the options in the Appearance section of your user preferences.

I like MinervaNeue (sample page here: https://en.wikipedia.org/wiki/History_of_Anglo-Saxon_England...)

drng commented on Wikipedia is getting a new look   diff.wikimedia.org/2020/0... · Posted by u/Amorymeltzer
lloydatkinson · 5 years ago
A collapsible side bar and max width are hardly big features you need a whole post for.
drng · 5 years ago
There are several other features they're planning on adding, linked in the article: https://www.mediawiki.org/wiki/Reading/Web/Desktop_Improveme...
drng commented on Efficient string copying and concatenation in C   developers.redhat.com/blo... · Posted by u/beefhash
segfaultbuserr · 6 years ago
Here's a stupid but somewhat relevant case: Recently, I saw a surprisingly insidious variation of the "FizzBuzz" question in C. Like the usual FizzBuzz, but with a twist: You are required to return your answer as "char (star)" with a separator "\n", the memory should be allocated dynamically, assuming the user calls free(). A naive implementation that strcat() / realloc() the string and repeats it a thousand times, a better solution is to overestimate the required memory and malloc(). Adding a different constraint can make the question quickly become effectively "reimplement std::vector in C", and in real applications, something like this occurs daily, all C programmers have their own standard library, so I guess C++ is at least useful for its standard library...
drng · 6 years ago
Am I missing something here? Assuming you're writing `char * fizzbuzz(unsigned n)`, can't you determine exactly how many bytes you need at the outset from `n` and just malloc once?
drng commented on Absolute Beginner's Guide to Emacs (2012)   jesshamrick.com/2012/09/1... · Posted by u/sytelus
sn41 · 7 years ago
You can consider these points:

- Tabs are not present in Emacs, but C-x C-b will list all open buffers

+ Fuzzy file search : you can take a look at the popular Ido-mode

+ eshell is pretty powerful, if you think about it, you have all the emacs search functionality etc. available in a shell inside the editor itself.

I am not trying to popularise emacs, but "inflexible" is not something that you associate with emacs. If anything, it is the bewildering array of choices that is one drawback. Plus, you should really try:

+ org mode : what is the standout feature now a days. You can even do literate programming in the org mode, so can be viewed as an alternative to Jupyter, for example.

The real gripe for me about emacs is that it is single threaded. So a long grep launched off will freeze the entire editor.

drng · 7 years ago
> The real gripe for me about emacs is that it is single threaded. So a long grep launched off will freeze the entire editor.

Are you running grep with `shell-command` (M-!)? Using M-x grep, `async-shell-command` (M-&), and invoking grep directly in shell, eshell, term and ansi-term all leave emacs as responsive as normal for me. shell-command is the only one that seems to hang.

I'll also add ivy[1] and helm[2] as alternatives to Ido which are very popular completion systems with integrations that span the package ecosystem.

[1]: https://github.com/abo-abo/swiper

[2]: https://github.com/emacs-helm/helm

u/drng

KarmaCake day31January 31, 2017View Original