1,887 karma · joined Mar 27, 2012 (14y ago) · 743 submissions
comment 1w ago · link · parent
I had a very similar problem with my t14 AMd gen2. It took me month to find the freeze pattern. At some point I realized it was most likely to occure during or shortly after moving the laptop between desks. And holding the laptop from the bottom right edge had a higher chance of triggering a freeze later on. Of course Lenovo support was helpless.
I eventually added kapton tape below the fingerprint reader and the problem disappeared.
My guess is when the case is flexing the gap between the fingerprint reader and the motherboard acts like a variable capacitor. And that somehow interacted with something important on the motherboard. And because kapton tape increase significantly the capacitance, the variance becomes less relevant.
That's just a guess though. And I shouldn't have to deal with this.
At least it goes to sleep and stays asleep. Though the battery will deplete in only 24h. It's like they don't even try.
comment 1w ago · link · parent
And you don't have to have 1:1 type to enum discriminant:
trait Payloads {
type Read;
type Write;
}
enum FileOp<P: Payloads> {
Flush,
Read(P::Read),
Write { data: P::Write },
}
struct Inputs;
impl Payloads for Inputs {
type Read = ();
type Write = u8;
}
type Request = FileOp<Inputs>;
// enum item construction
Request::Flush;
Request::Read(());
Request::Write { data: 42 };
You can also make an item impossible to exist using the never type: struct WriteOnly;
impl Payloads for WriteOnly {
type Read = !;
type Write = u8;
}comment 1w ago · link · parent
pub trait Payloads {
type Read;
type Write;
}
pub enum FileOp<P: Payloads> {
Read(P::Read),
Write(P::Write),
}
pub struct Inputs;
impl Payloads for Inputs {
type Read = ();
type Write = u8;
}
pub type Request = FileOp<Inputs>;
pub struct Outputs;
impl Payloads for Outputs {
type Read = u8;
type Write = ();
}
pub type Reply = FileOp<Outputs>;
pub fn execute(request: Request) -> Reply {
match request {
Request::Read(()) => Reply::Read(42),
Request::Write(_) => Reply::Write(()),
}
}comment 4w ago · link · parent
comment 1mo ago · link · parent
The DACs/amps you linked are bigger than the Sony mp3 player I had in 2004. It had two jacks and a user replaceable battery. And it was water resistant.
I could go on and on.
comment 1mo ago · link · parent
Instead I have to buy the shitiest locked full of crapware android phone and hack it with an LLM to make it usable because apparently that's what I deserve for wanting a headphone jack.
comment 1mo ago · link · parent
Maybe I may officially old now, but I recall I could converse on IRC, not full screen, on a 800x600 15" monitor. Yes I know today we have tons of pictures and emojis and so we obviously need a bit more room. But common. Even slack takes slightly less room that discord for the same amount of information.
And yes, I enabled compact mode.
comment 1mo ago · link · parent
So maybe it is more of a smart completion engine than a SQL answer.
comment 2mo ago · link · parent
Sadly less and less true nowadays. I always try to turn off any animations. On Android the settings is not respected, not even by Google owns app. On KDE itseld, it respects it pretty well, but applications don't always do, and not consistently. Firefox has its own animation settind on Android, linux, and windows (never tried on mac), and firefox doesn't even respect it in some case when scrolling even though i turned off everything.
I hate animations. I want everything instant, my time is precious, my ability to suffer shit moving all over the place is limited.
comment 2mo ago · link · parent
comment 2mo ago · link · parent
I know some ipkvm can interface with the ATX header, but that's usually an extra addon. It also requires have some access to the ATC header during installation.
I have a tiny "NAS" where the mobo is the size of credit card and very difficult to access. The power supply is external. The USB doesn't stay powered when turned off.
I cobbled together a bare NanoKVM running debian, a relay normally closed to interrupt mains power to the target, and a tiny little power supply into a 3D printed case. I have also added a diode so that the ipkvm can also be powered by the target USB for flexibility. Note that the sg200x boots with its pin pulled high with a ~50kΩ resistor (pullup). So you need to pull it down with a 1kΩ resistor. This also renders the system more robust to transient voltages anyways.
https://wiki.sipeed.com/hardware/en/kvm/NanoKVM/introduction...
comment 2mo ago · link · parent
Decoding video/audio and talking to the right OS APIs and GPU is far from simple. It is reasonable to implement a http1 client from scratch by hand. For decoding, you need libraries/dependencies. And suddenly you have to find the intersection of dependencies that play nice in your async model of choice.
comment 2mo ago · link · parent
Obviously, the number of uniquely different users has an influence, and users most often do not truly know what they need, but that's our job to tease appart.
Turns out the users most often benefits from small changes that reduces friction toward achieving their goal. Any time saving will be appreciated, but only if it can be trusted to work. Nothing worse than the dread of knowing an action might or might not work randomly.
I use most software today with a constant sense of fear that the next action will break something and waste my time. Undo probably doesn't work properly anyways
comment 2mo ago · link · parent
I have no words.
comment 3mo ago · link · parent
Taking the alacritty project and modifying the source files to pretend something happened:
> cargo clean
Removed 1602 files, 545.8MiB total
> cargo check
[...]
Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.12s
> cargo build
[...]
Finished `dev` profile [unoptimized + debuginfo] target(s) in 23.04s
> find alacritty_terminal/ -name "*.rs" | xargs-I{} sh -c 'echo >> "{}"'
> cargo check
[...]
Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.00s
> cargo build
[...]
Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.37s
I wish it was faster, but I will take the speedup that I can!comment 3mo ago · link · parent
$ time journalctl > /tmp/all.log
real 1m11.364s user 0m52.299s sys 0m6.540s
$ time wc -l /tmp/all.log 3659597 /tmp/all.log
real 0m0.152s user 0m0.056s sys 0m0.096s
$ time journalctl | grep sshd | wc -l
12944
real 0m53.973s user 0m49.535s sys 0m5.210s
$ time grep sshd /tmp/all.log | wc -l 12944
real 0m0.429s user 0m0.332s sys 0m0.100s
https://github.com/systemd/systemd/issues/2460#issuecomment-...
comment 3mo ago · link · parent
Combined with how slow modern website are, I feel a sense of dread opening any website. Asking an LLM feels lower friction... but at what cost...
comment 4mo ago · link · parent
PE sticks to itself and not much else. Packing tape is PE and adhesive. Apply PE tape to the printer bed before printing.