HNHacker News
TopNewBestAskShowJobs

nyanpasu64

3,935 karma · joined March 24, 2020

trans rights are human rights

denying self-determination is the root of hierarchy and fascism

submissionscomments
nyanpasu64··on Varda's drug-cooking Winnebago will be remembered as a space pioneer
Is the lab in space not contaminated with the same undesirable crystals?
nyanpasu64··on Motion blur all the way down (2022)
Moving objects can become even sharper if each frame is displayed in a fixed location for a shorter period of time (reduced MPRT), preventing eye-tracking motion from smearing each displayed frame. This can be achieved through CRT/OLED scanout (often rolling) or LCD backlight strobing (usually full-frame by necessity). Unfortunately displaying each frame for a short time is unbearably flickery at 24 Hz (so movie projectors would show film frames 2-3 times), just barely tolerable at 50 (to the point some European CRT televisions frame-doubled 50 Hz video to 100 Hz, causing objects to appear doubled in motion), and ideally needs 70-75 Hz or above for optimally fluid motion and minimum eyestrain (which can't show 60 FPS recorded video without judder and/or tearing).
nyanpasu64··on Varda's drug-cooking Winnebago will be remembered as a space pioneer
Is this related to ritonavir's multiple crystal structures (https://en.wikipedia.org/wiki/Ritonavir#Polymorphism_and_tem...)?
nyanpasu64··on Sampling: What Nyquist didn't say, and what to do about it (2018) [pdf]
One possible issue is that if sampling is even slightly biased, it can incorrectly estimate the relative frequency of different points/functions in tight inner function calls (which can't happen with infrequently called functions with a long runtime)?
nyanpasu64··on A lock-free ring-buffer with contiguous reservations (2019)
>In Andrea's implementation of the lock-free ring-buffer, spsc-bip-buffer, some of the orderings are relaxed for performance. This has the downside that it can introduce subtle concurrency bugs that may only show up on some platform (ARM, for example): to be a bit more confident that everything's still fine, Andrea's has continous integation tests both on x86 and ARM.

It might be worth testing/forking the library to test on Loom (https://github.com/tokio-rs/loom), which can model atomic orderings and check for concurrency errors to some degree (though I last used it years ago). TSAN might be able to check for ordering errors in visited execution traces (though I haven't tried using it in the past).

nyanpasu64··on Frugly vs. Freemium
Is there some dynamic equivalent of document.querySelectorAll("section") JS-based DOM filtering, that listens to websites building new UI elements through dynamic loading and applies the filter on newly added (or modified?) DOM elements (much like how CSS rules automatically cascade when HTML elements are added and removed)?
nyanpasu64··on What Restoring a 30-Year-Old Nintendo Taught Me About Right to Repair
Aren't motherboards substantially more expensive than CPUs? I tried looking for a replacement Haswell Dell Inspiron 15 3542 motherboard (almost as old) for someone with a broken laptop, and saw results in the range of $90.
nyanpasu64··on Show HN: Reverse-Engineering a Switch Lite with 1,917 wires
PCB information is useful for, among other things, doing board-level diagnostics and repairs of broken electronics to avoid turning it into e-waste.
nyanpasu64··on What Restoring a 30-Year-Old Nintendo Taught Me About Right to Repair
I can buy a decent desktop i5-3570K on eBay for $10, or two lower-tier laptop i5-3320M for $10 (my laptop came with a 3230M which ruins 100 MHz slower). I'm finding Core 2 Duo mobile CPUs for $12-24 (higher-tier CPUs may cost more, not sure what you're looking for).
nyanpasu64··on What Restoring a 30-Year-Old Nintendo Taught Me About Right to Repair
Laptops with soldered CPUs require replacing the entire mainboard when the CPU dies, while older socketed CPUs can be replaced for the cost of a new processor (as little as $10 on eBay for lower-spec CPU models, but prices rise exponentially as you get to higher-tier SKUs with more cores or clocks).
nyanpasu64··on What Restoring a 30-Year-Old Nintendo Taught Me About Right to Repair
Medium says "Create an account to read the full story." The full article does not load in Scribe either.
nyanpasu64··on Recognizing the limitations of cloud drives
I've never had to delete a Syncthing database, but I have had issues where computers don't always see each other (for one thing, you need to run as root on Android or it can't discover computers using mDNS) and a constant stream of sync conflict files.
nyanpasu64··on Headphone and Amp Impedance (2011)
This is also why cheap resistive 3.5mm "volume knobs" sound like shit; they produce a high source impedance (as seen by the headphones), which causes frequency-dependent amplitude (and phase?) shifts of output sound (even before the potentiometer starts failing, causing the sound to crackle).

A few years ago, I've built attenuators out of voltage dividers (using around 2-20 ohm resistors). Unfortunately at any given attenuation factor, there's a limit to how high of an impedance you can expose to the audio source, along with how low of an impedance you can expose to the headphones. Additionally, to compensate for stray ground-line resistance causing inverted crosstalk between the stereo channels, I also add a crossfeed resistor or potentiometer of 500 ohms or so, ideally tuned based on the headphone impedance. If you use a potentiometer you can take one side of your headphones/earbuds off, send loud noise to that side alone, and turn the potentiometer knob until no sound is audible in your remaining ear. (To determine the correct fixed resistor value, you can send quiet noise to the remaining ear and adjust its volume until it cancels out crosstalk.) Also since I use TRS cables/sockets, this breaks headphone mics.

I've been meaning to make a PCB version of my attenuator with SMD resistors to reduce space, but don't know where to find a reliable PCB-mount headphone jack (or 3.5mm dongle cable). If anyone has suggestions for a PCB-mount headphone jack (available in the US), let me know!

nyanpasu64··on Bypassing the WiFi Hardware Switch on the Lenovo X201 (2023)
It's possible that thinner kapton tape would be easier to cut into a narrow sliver and place over a pin, while having the card still fit in the socket without being too thick?
nyanpasu64··on You are what you love
Socially I'm more worried about targeted harassment, legal threats to safety, and murder than indifference to my existence.
nyanpasu64··on Let futures be futures
I've also seen https://trio.discourse.group/t/structured-concurrency-kickof... which comments on an edge case of this article:

> His claim is that structured concurrency is the only way to make Ctrl+C handling work in a way how users naively expect it to work.

> And it’s easy to see why: If the exceptions are propagated up the call tree, freely crossing the thread boundaries, the KeyboardInterrupt exception is eventually going to reach the top of the call three (main function) and exit cleanly.

> However, there’s a hidden race condition involved: Imagine two threads in a scope, one gets KeyboardInterrupt and the other one raises an unrelated exception. If the latter exception bubbles up to the parent thread faster it will cancel the thread that’s processing KeyboardInterrupt and Ctrl+C would get lost.

I wonder if progress has been made since 2019.

nyanpasu64··on Let futures be futures
Does synchronous Rust (with no runtime and no tokio) have a cross-platform way for a parent thread (eg. a GUI) to wait for messages either from user input or a child thread (eg. audio device changed), and/or a child thread to wait for messages either from IO (eg. audio buffers ready to fill) or other sources (eg. audio timeout or cancellation as you mentioned)? In C++ on Windows you'd use WaitForMultipleObjects, on Unix you'd use poll on hardware/event file descriptors, Crossbeam channels have a select macro but I'm not sure if it's as real-time as WaitForMultipleObjects (officially recommended for WASAPI) or poll (officially recommended for ALSA), and it probably doesn't work outside of channels?
nyanpasu64··on Show HN: The classic Minesweeper on an irregular grid
I'm used to double-clicking to perform the same action.
nyanpasu64··on The VAE Used for Stable Diffusion Is Flawed
TBH I think this is the case for even classical heuristic algorithms.
nyanpasu64··on Reverse-Engineering a Scoreboard Display
>Please excuse the horrendous SMD soldering work. I haven’t done any SMD soldering in quite a while, and this was my first time ever trying to hand-solder teeny-tiny 0603 components. It won’t be my last time, either - I ordered 50 of them, and I only needed 10 to assemble this board.

You should touch up the joints with external flux.

nyanpasu64··on Developmental timing of trauma associated with depressive symptoms in adulthood
> However, a more novel observation from this study was that there appeared to be two developmental stages when trauma exposure was associated with elevated levels of subsequent psychopathology. First, participants exposed to child maltreatment during early childhood (ages 0–5) had both depression and PTSD symptoms that were up to twice as high as those exposed during later developmental stages. These effects were detected even after controlling for sociodemographic characteristics, exposure to other types of traumas, and the number of occurrences of child maltreatment (i.e., the frequency of exposure). Such findings are consistent with several prospective 15–17 and retrospective studies 18,31 also showing an elevated risk for subsequent depression, in particular, among those first exposed in the first five years of life. Although the mechanisms linking early trauma exposure to subsequent psychopathology risk are not well known 56, early trauma exposure may be more damaging than later trauma exposure because it compromises a child’s ability to successfully master stage-salient developmental tasks (e.g., self-regulation, secure attachments) 57 and damages the foundation of brain architecture and neurobiological systems involved in regulating arousal, emotion, stress responses, and reward processing 58–61, which are all implicated in the onset and persistence of stress-related disorders like depression and PTSD.

> Second, we also found that participants first exposed during middle childhood (ages 6–10) to other types of interpersonal violence, including witnessing a friend or family member being murdered or being attacked with or without a weapon, had depressive symptoms scores that were about twice as high as those first exposed during adulthood. Similar results were also detected for PTSD, but were not statistically significant after adjusting the frequency or number of occurrences of child exposure. These results are consistent with at least some prior studies suggesting that trauma during middle childhood, including severe illness 41, or natural disasters 34–36 is associated with an elevated risk for PTSD relative to exposure in other periods. Although the mechanisms driving this association are unclear, exposure to interpersonal violence events during middle childhood may be more harmful than exposure in adulthood for a number of reasons: school-age children may be in a unique developmental stages where they do not benefit as much from parental buffering 62, when demands from the social environment increase (i.e., relating to peers, participating in school activities) 63, and when adaptive coping capacities are still developing 64.

Guess I'll die...

nyanpasu64··on My daily driver is older than I thought; it's positively vintage
unfortunately the laptop still sometimes (not always) dies after shutting down, and cannot be powered back on. maybe dies during sleep too? i don't know.
nyanpasu64··on My daily driver is older than I thought; it's positively vintage
i found why the laptop was crashing

it wasn't an obscure hardware issue related to corrupted firmware, but just the laptop (Windows 7) dies when it tries to go from sleep to hibernate after 6 hours

nyanpasu64··on The bane of my existence: Supporting both async and sync code in Rust
Can you create separate modules for sync and async user-facing APIs?
nyanpasu64··on Losing my son
It's AI-generated. Beyond the style/composition being typically AI, the filename says:

>DALL-E-2023-12-02-15.50.18---A-serene--contemplative-scene-inspired-by-Elder-Sophrony-of-Essex-s-quote.-The-image-depicts-a-peaceful-landscape-with-a-deep--dark-abyss-in-the-backg

nyanpasu64··on My daily driver is older than I thought; it's positively vintage
My (project machine) Dell Inspiron 15R SE 7520 laptop has started hanging while powered off or sleeping, with the power LED still blinking but the machine not responding to any external inputs (opening the lid, pressing the power button, holding it down). I assume the EC microcontroller is hanging, but I don't know why that is. I took the laptop apart, took the coin cell battery out and put it back in, and the problem stopped for a month or so but has returned.

What's causing the issue? Perhaps the coin cell battery is drained (and I didn't know the right way to test CR2032s at the time, so I thought it was good)? Or is the EC fried or corrupted, perhaps because I did a botched BIOS reflash which corrupted the EC, and had to reprogram the EC in flashrom over multiple passes while skipping "hung" flash blocks (the pin to hold the EC in reset didn't make flash properly writable)? Afterwards the laptop would boot, but dumping the EC flash again revealed the image was changed again. Or did the EC die due to flash corruption that occurred afterwards (either from flaky chips or because I damaged it earlier)?

nyanpasu64··on Unusual basis types in programming languages
Are union/sum types another "basis"? Some languages include syntax for them at the level of structs, others require they be painfully hacked together out of libraries and template metaprogramming (std::variant, though bare unions exist without carrying a tag).
nyanpasu64··on Big Tech's role in enabling link fraud
Was the previous submission at https://news.ycombinator.com/item?id=38916266 a draft for this article? That article has formatting errors (Helvetica text) and is not in the site's article index.
nyanpasu64··on Big Tech's role in enabling link fraud
Look up gilimp, among many other examples. There was a malicious ad which used the real gimp.org display domain but redirected to a malicious gilimp.org when clicked.
nyanpasu64··on QMK and Keyboards
Couldn't they use GPL with a linking exception, LGPL, or MPL to retain copyleft protection?
← PreviousPage 8 of 34Next →