🌉 bridged from @SpiderUnderUrBed@lemmy.zip by Tidepool
SpiderUnderUrBed
@spiderunderurbed.lemmy.zip.ap.tdpl.io
Best way to structure file management routes
Hello, I have made an upload and download route, both take or return streams of the file content to the browser, however I also want to make a file editor, I have been playing around with the idea of having it so as you scroll more, it fetches more of that file content from the backend, except this currently does not use the multipart stream.
I am wondering if it would be better if i had 4 routes, /upload, /download, /getfilecontent, and /patchfilecontent, the last 2 taking or returning json which contains raw text, or if its more standard and proper to just re-use upload and download but add headers so it can take offsets to patch or get file content, note this would require an extra translation step to take from a multipart stream and convert it into text to show in the browser, and some extra steps for the other way around.
What would you recommend?
How to get windows to not do disk checking or ruin my bootloader when i add a linux partition on the same disk?
How to get windows to not do disk checking or ruin my bootloader when i add a linux partition on the same drive. I don't like the windows panicking when there is a linux partition on it and doing a variety of things, even if its not on the same ssd it STILL does disk checking but I have not seen anything worse than that on the same partition, but I need the space.
Dunno if this belongs in the linux subreddit but I mean if there is any way i can hide linux that could also work.
How to check if a new type of charger is harming your laptops battery?
My current charger is broken, but I found another charger which kind of fits, but im suspicious if it will harm my laptops battery in the long run, what commands can I run or what can I look at to see if a new type of charger is harming a laptops battery? as this isnt usb-c or anything really official.
How to lock a HID device to a specific window or screen? (kde/wayland)
How to lock a HID device to a specific window or screen?
On kde/wayland
i want to lock a keyboard and controller so they are only seen by one window, as in inputs only go that window and it cant move elsewhere.
Also using nixos.
How good are attached microphone extensions for headphones verses inbuilt microphone extensions?
How good are attached microphone extensions for headphones verses inbuilt microphone extensions? I don't mean an external mic, I mean some headphones has a drop down extension which goes right in-front of of your mouth, which is what I had for my previous Jabra headphones, now I have Sony which has a microphone somewhere in the headphones, I tested it briefly and you can hear it, but in terms of like, long-time calls or just some stats what might be the pros and cons of each, or is just non-dropdown microphones just better?