• 2 Posts
  • 113 Comments
Joined 1 year ago
cake
Cake day: June 27th, 2023

help-circle
rss
  • I don’t like how vs code thinks the world revolves around itself either. If I’m working on something, then checkout a different branch from a terminal, vs code sometimes undoes the “changes” on disk for open files and marks them as modified, infuriating. I never use the built in git functionality, as I find it more annoying than just using the command line in the first place, so thankfully it hasn’t deleted random files for me yet.




  • Might be related to those sleep state stuff that microsoft keep pushing. I think LTT has a video about how it causes battery to drain while off. I think the solution was either shutting it down while unplugged, or while plugged in or something. If you always shut the laptop down with the charger plugged in try to unplug the charger before shutting it down and see if it makes a difference. Or the opposite. I don’t remember which it was.



  • I fail to see why this is bad advice. Sure you could just disable the firewall on your computer on a local network. But that’s under the assumption that you can trust everything on your local network. What if it’s a laptop? Do you also trust any public networks you may connect to on the go? Having firewall both on the router and on your computer provides an additional layer of security, and I think that’s good advice in general. You can for example set it up to only allow incoming connections when connected to your home network for example.




  • I think the author of the article just haven’t understood how to use the ? operator yet, and don’t think they deserve being called “utterly incompetent” for it. Whether something is a monad or not is not necessarily something a programmer should have to think about on a daily basis IMO.

    I just think of rust errors as a tagged enum with either a value or an error. And the ? operator as syntax sugar for returning if something was an error. IMO that simple understanding is sufficient to do error handling in Rust. I don’t think we should gatekeep programming behind some intellectual barrier of whether or not you understand category theory. I certainly don’t understand what a monad is, but I can still write working software and do error handling without unwraps.





  • I use a custom kernel on my laptop. I just modified the PKGBUILD of the official arch kernel package, and added my patch as a file. Then I could build a proper package with makepkg. I’m planning on setting up my server to automatically build the patched kernel and serve it in a private arch repository, so I don’t have to compile the kernel on my laptop regularly. I’m waiting on forgejo (git forge I host on my server) version 9 to be released first, as it should support arch package hosting by then.




  • I wished tiling windows would work like snapping of floating windows, but more powerful. For example instead of snapping only to the edge of the screen, I would for example hold alt while dragging a window and would get a preview of where the window would snap to depending on where I’m hovering. And that it would resize the other windows accordingly.

    Having to remember or customize a billion keyboard shortcuts for switching between windows and rearranging the grid, makes tiling window managers DOA for me. I don’t have the time/energy to set it up or practice the shortcuts.




  • I don’t know specifically about the T470, but if you have an nvidia GPU, you might have issues depending on how the display outputs are connected to the GPUs. I had a T420s at some point with an nvidia GPU, and it was a PITA to get the display output to work on linux. I had to permanently enable the nvidia GPU for that to work (cutting battery life in half), because the display output was connected only to the nvidia GPU. I swore to never buy an nvidia product ever again after that experience.