Better HN
topnewbestaskshowjobs
Log inSign up

bombela

1,887 karma · joined Mar 27, 2012 (14y ago) · 743 submissions

{username}@gmail.com
Submissions

comment 3d ago · link · parent

In summary: Removing friction for an increase in efficiency.

comment 1w ago · link · parent

> I had to apply isolation tape between part of the main board and the casing bottom so they don't touch, which caused the issue.

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

Yes, all correct. "()" the unit type, is a zero sized type (zst).

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

You can use one generic enum with a trait holding the payload type. I posted an example as response to your first comment.

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 1w ago · link · parent

I unplug what I can, and cut what I must.

comment 1w ago · link · parent

The word or acronym BAR is mentioned 34 times but never defined.

comment 4w ago · link · parent

After fermentation and roasting the seeds and removing the shell around the seeds it start to taste like chocolate. But even then it is still very bitter, and the texture is not great at all. It really needs to be finely ground to become palatable, otherwise it's a bit like a bitter chocolate flavored chalk. Extra cocoa butter is usually added for taste and melt in the mouth effect. Leaving extra raw defatted chocolate as a side effect, which is what is sold as cocoa cooking powder, to which you better add a lot of fat for taste.

comment 1mo ago · link · parent

DAC have been more than good enough since the maturation of mp3 players in the early 2000s. The smartphone has a DAC and amplifier for its various speakers already. Heck the computer inside usb-pd power converter in the phone is many times more hardware and work and EMI constraints to respect than a DAC + amplifier for a headphone output.

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

If only the Motorola Signature 27 had a headphone jack, so that I could listen to high quality music with my quality headphones.

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

The fact that it requires a very specific sequence of state change to unlock is the issue.

Plenty of cars have automatic fuel door locks that work seamlessly.

comment 1mo ago · link · parent

It's the too much completely useless information flying at my face that I despise. So much empty space, the UI is so weirdly verbose for everything but the actual content. You need discord in full screen to manage reading messages properly. It's also slow switching channels and server.

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

I don't know for you, but it would take me more than 30s to find and translate the open source code implementing the formulae/algo into small usable program. The more hesoteric the optimisation in the original code, the more time I need.

So maybe it is more of a smart completion engine than a SQL answer.

comment 1mo ago · link · parent

its hidden behind the background image on firefox android for me.

comment 1mo ago · link · parent

What about ki-editor?

https://ki-editor.org/

comment 2mo ago · link · parent

> You're always free to disable animations if you think they're making you slow.

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

I find kde file copy pretty nice. It shows up in the systray as a queue of work in progress easy to both keep track of and ignore.

comment 2mo ago · link · parent

I have a very similar setup on kde. I used to run the tilling window manager i3, but since using more manufacturing software (kicad, freecad, slicers, etc), I wanted more traditional window management. kde with custom shorcuts gives me enough tilling management. I also like asign a sticky topic to numbered desktops.

comment 2mo ago · link · parent

How do you reboot the target machine and stay powered?

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...

https://github.com/slcpcom/sophgo-sg200x-debian

comment 2mo ago · link · parent

Agree with your post except the adjective "simple" for a network video player.

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

less work is always cheaper. no matter what.

comment 2mo ago · link · parent

Talking to the users, allowing them to show you what they are trying to do with your software, almost feels like cheating, because of how easy things suddenly appear to be when uncertainty fades away.

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

Yep, on my aging phone it takes quite w noticable amount of time to go through. But on my more recent laptop wnd workstations, it's a quick flash of a manga lolita.

comment 2mo ago · link · parent

https://en.wikipedia.org/wiki/Saint%27s_triad

I have no words.

comment 2mo ago · link · parent

You can set your own shortcuts in KDE. And there is a setting in the screenshot tool to auto copy to the clipboard.

comment 3mo ago · link · parent

And the difference is more useful in the more common scenario of editing code and checking it. Though those days, language servers like rust-analyzer do essentially replace cargo check.

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

It's the compilation that is slow, not the checking. You can observe this by comparing "cargo check" and "cargo build".

comment 3mo ago · link · parent

I have been complaining about journald abysmal performances for almost as long as I can remember. Here is my latest documented benchmark from 2023, which was slightly better than the one I ran in 2020.

$ 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

I get this so often too. And on so many websites, the verify your are a bot comes back after what feels like only a few minutes.

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

I would 3D print (FDM) standoffs in PE with integrated pockets to insert magnets. You can even insert the magnets during the print if you fancy. Though my preference goes to a slide in pocket.

PE sticks to itself and not much else. Packing tape is PE and adhesive. Apply PE tape to the printer bed before printing.

12345
25