That’s what the martians said about Earth
- 5 Posts
- 462 Comments
Nixos, meaning to try Gnuix but I got projects to finish!
mvirts@lemmy.worldto
Programming@programming.dev•How would you design parallel grep for huge JSONL files?
2·2 months agoIf you’re writing a program, definitely multiple threads or processes that each scan a chunk of the file, which basically means seek to the start of the chunk, read lines into the scan code until you hit the end of the chunk. For jsonl each chunk will need an alignment step to not break the jsonl.
For command line trickery, maybe the file could be chunked up by running multiple dd instances with an offset parameter piped into grep. This has many synchronization issues and all the outputs should be captured separately then combined afterwards. I can’t think of a good way to align this method to line edges but maybe you can put some fancy regular expression magic into the grep step to ignore malformed json at the beginning and end and overlap the chunks?
Grep is fast already, maybe test the simple approach and see how long it takes.
Local LLMs and learning CUDA on a machine with 6 1070Ti GPUs… Some of it works out of the box… For other stuff I’m having to explore what will work on the sm61 cuda architecture.
Also getting better at running a pair of old 3d printers.
I’m not one to buy new hardware if you can’t tell :P
mvirts@lemmy.worldto
Linux@lemmy.ml•The Engineer Who Tried to Put Age Verification Into Linux
129·3 months agoWhat is this, open source software for ants!?!
This whole story is ridiculous. Put it behind a compile flag and merge it, we all know first across the finish line gets bonus 5 years of standardization.
It’s the law that’s a problem, not the software.
mvirts@lemmy.worldto
Linux@lemmy.ml•Will I survive the Linux CLI if I only switch because I'm a student and Arch distro speed?
1·3 months agoYes, you’ll be fine
Many fancy motherboards have a button to reset these settings as well. Often the bios settings are referred to as CMOS settings as well.
Definitely friend, especially the spineless variety
mvirts@lemmy.worldto
TenForward: Where Every Vulcan Knows Your Name@lemmy.world•Let's all have a Star Trek wash party
5·4 months agoMy God they need to get it together. The Bath of Kahn was right next to that!!!
mvirts@lemmy.worldto
Linux@lemmy.ml•What's a Linux distro thats breaks the windows mold and is good for testing?
1·4 months agoI second this. I need to try guix, nixos has been my daily driver for years now.
Try using alsamixer, check for channels that are muted.
Also check if your distro is saving and restoring alsa settings every boot and remove the settings file
mvirts@lemmy.worldto
Linux@lemmy.ml•I currently have a dual boot between Windows and Linux but I'm thinking about removing Windows. Would I need to do anything to Grub in order to continue use Linux Mint?
2·4 months agoGrub should be able to boot mint fine, just know where grub is installed and which disk boots the system before formatting anything. To test, unplug the windows disk and see what happens
mvirts@lemmy.worldto
United States | News & Politics@midwest.social•Feds Create Drone No Fly Zone That Would Stop People Filming ICE
7·5 months agoOh so now everyone can track dhs activities by looking at the no fly zone maps?
mvirts@lemmy.worldto
Privacy@lemmy.ml•Facebook is forcing new users to use facial recognition
7·5 months agoUnfortunately it forced all existing users to submit as well, but we already gave it a bunch of photos of ourselves before the beast had revealed itself
Lol as we’ve discussed before, inaccurate but funny.
mvirts@lemmy.worldto
Linux@lemmy.ml•Remote desktop, not sharing desktop, how ?! [solved]
1·5 months agoI think xvnc does this with vnc. If using gnome start gnome-remote-desktop with systemctl --user start gnome-remote-desktop then use grdctl to set it up (or the settings gui). I’ve had luck with rdp on a Wayland session this way.
I get paid by the hour! 😅 But for real though it’s a struggle. Mostly I try to use msys2 for everything but. I still have native git. There are some long standing bugs that make the vim excruciatingly slow to open or close, really I should go try to fix it but it doesn’t feel like a fun problem.
And just like that gold is a proof of work currency. Too bad those economics will change as gold becomes less scarce. Buy mercury now!


The best part of vba is you can record a Macro then edit it. I think you should start by adding a button that shows a message box when you press it, then record a Macro and throw some message boxes in it to see what values are used. Beware, office 365 has some other thing besides vba that I’m not familiar with, you may be better off learning that.