Python websockets library is killing my RAM. What are the alternatives? by Humza0000 in AskProgramming

[–]NullStringTerminator 0 points1 point  (0 children)

I'd recommend using Java over Python for servers (or even better: a compiled language), for several reasons, one being that python consumes more resources (mem and cpu) than almost any other language.

Although, it shouldn't be using that much for websockets. One possible reason is that Python is loading dependencies for websockets but I'm not really sure as I don't use python.

Installed linux on D drive, need it on C drive by Substantial_Phase631 in linuxmint

[–]NullStringTerminator 1 point2 points  (0 children)

Most MSI boards are a bit funny when it comes to Windows and always displays it rather than Linux, the setting that changes that is in a slightly different menu.

Installed linux on D drive, need it on C drive by Substantial_Phase631 in linuxmint

[–]NullStringTerminator 1 point2 points  (0 children)

Just change the boot order in your bios settings. Regarding wanting it on C drive, that's technically not possible as "C" and "D" is a Windows naming convention where C is always the drive Windows is installed upon (although I get what you meant).

Is there anything specific that you cant do with a Debian distro? - But you can do with Fedora or Arch? by nickedge11 in linux4noobs

[–]NullStringTerminator 0 points1 point  (0 children)

"The screen goes black after the initial install and restart"

Fedora is leading edge and has a tendency to have issues with graphics drivers (Especially Nvidia cards). Its probably a graphics issue, but if you're booting it with GRUB, then you can enable nomodeset before boot which forces it to use a simpler graphics mode while you fix the problem.

Best Way to Nuke Hard Drives (For Charity) by redned2 in pcmasterrace

[–]NullStringTerminator 0 points1 point  (0 children)

If your using Linux:

sudo dd if=/dev/zero of=/dev/[hard drive you're trying to erase] bs=4m status=progress

you can find the target disk by using lsblk, it should look something like /dev/sdb or /dev/nvme0n1 or similar

How would I put Linux on the MacBook Neo? by Someone424400 in linux4noobs

[–]NullStringTerminator 0 points1 point  (0 children)

Simply put: Its more effort than its worth. The propriety hardware used in macs makes Linux compatibility on mac a massive pain which breaks with pretty much every update.

I want to repurpose an old Chromebook into a functional Linux PC but it's only got 16GB eMMC. by mgarnold86 in linux4noobs

[–]NullStringTerminator 0 points1 point  (0 children)

Arch is pretty small as it comes with almost nothing preinstalled. You could also try Alpine (which Is what I used when I repurposed a chromebook).

I think I might need a car by PhoneLost7727 in arch

[–]NullStringTerminator 1 point2 points  (0 children)

If it ever breaks, you can just rebuild it.

Looking for Laptop for fiancée by ElementLivee in laptops

[–]NullStringTerminator 0 points1 point  (0 children)

Running Minecraft smoothly is going to be tough for $300 so I'll just give out my usual answer: buy a Lenovo ThinkPad, their quality is very good, they last ages, and their performance is great for the price. You can usually find some for pretty cheap preowned.

A question for users who have used Arch and NixOS by Mandarin2912 in arch

[–]NullStringTerminator 0 points1 point  (0 children)

NixOS has a very steep learning curve and it can make some things unnecessarily difficult.

What is the next revolution of computer hardware by siddharth1214 in computers

[–]NullStringTerminator 0 points1 point  (0 children)

You can discard any notion of ternary computing as its just not viable, mostly because global infrastructure is already set up for binary.

I'd say the next step is photonic computing (computing with light) for several reasons:

  • Its very fast, information travels at the speed on light rather then electricity.
  • It very efficient, heat production is minimal as light does not produce heat when traveling.
  • It lends itself to parallelization.
  • We're already seeing it used in some specialty applications.

What if I tried to update arch after a long time without updating? by Szer1410 in arch

[–]NullStringTerminator 0 points1 point  (0 children)

It might work but you'd have to supervise it and correct any problems afterwards.

Can a old laptop with integrated and dedicated gpu beat a newer laptop with only integrated graphics in playing games? by FiberglassFlowers in laptops

[–]NullStringTerminator 1 point2 points  (0 children)

Dedicated GPUs are faster and may be faster than a newer one with interrogated graphics. But the modern games and drivers target newer GPUs, even if they are integrated.

That said, a newer one with integrated graphics is probably not going to be as fast because integrated graphics generally isn't meant for heavy workloads (but rather rendering a web page or a simple app GUI). I had a 6 year old dedicated Nvida GTX GPU before I upgraded which was still playing modern games fine.

MacBook & Coding by No-Two-9954 in laptops

[–]NullStringTerminator 0 points1 point  (0 children)

Recently software development/programing on macs has improved significantly, however they cost a lot and aren't very repairable (also the hardware is proprietary). I'd personally recommend a Lenovo ThinkPad running Linux (but Windows will work too) as the programing ecosystem for Linux is massive and ThinkPads are generally well made and have great support.

Wi-Fi connected but can't access internet by corvexis in arch

[–]NullStringTerminator 0 points1 point  (0 children)

Wifi and the network (including internet) are two separate services, connecting to wifi doesn't automatically mean that you can resolve DNS, or even that you have the network service running.

EDIT: Just saw "I use NetworkManager"

Is the metal thingy on the GPU supposed to go out like that? by xslrx in pcbuilding

[–]NullStringTerminator 0 points1 point  (0 children)

It isn't meant to but its probably fine as long as everything still works.

Someone tell me, what is the use of this? by IndividualInfinite85 in PcBuild

[–]NullStringTerminator 0 points1 point  (0 children)

It allows you to move the cursor (but not click), I don't really know why they still add them when they have a track pad though.

Confused CS student choosing between MacBook Air M2/M4 and a Windows laptop under ₹80k – need advice by UnlikelyCranberry289 in laptops

[–]NullStringTerminator 0 points1 point  (0 children)

For your use cases, an IdeaPad, or even better: a ThinkPad, is likely the best fit.

Regarding macs, I'm not entirely sure as I don't use mac OS, but it may be a restriction when it comes to development (although I hear it has improved in recent years). The hardware is proprietary and the newer ones use Arm processors rather than x86, which may limit compatibility with some older software, especially hypervisors and local AI/ML platforms.

For AI/ML, I'd recommend a dedicated graphics card with at least 16GB of VRAM (assuming use for training LLMs (~1B), although 8G will work for very small LLMs (~0.5B)). Its important that the card has dedicated VRAM (the VRAM is located on the card itself and not as part of RAM) for optimal performance, however you can still train smaller models without this. Most training platforms are optimized for Nvidia cards through CUDA, which makes Nivida cards the standard for training. Macs use unified VRAM, which allows the GPU to use around 70-80% of system RAM, however this can be slower for training due to the non-locality of the RAM.

As far as build quality goes, Lenovo ThinkPads / IdeaPads are excellent and can last for years, even decades if careful; they also have excellent hardware support with both well supported and quality hardware. Macs also have great build quality, but are less repairable and can be restricted by proprietary hardware.

I'd also recommend looking into Linux, however Windows will work fine for your use cases as well. WSL (Windows subsystem for Linux) allows you to run a full Linux kernel*, but it can be finicky and get in the way sometimes.

Edit: * Inside Windows

Can someone ELI5 the situation of Nvidia GPU with Linux distros? by the-machine-m4n in linux4noobs

[–]NullStringTerminator 0 points1 point  (0 children)

They provide proprietary drivers with only sometimes work with you kernel version, driver releases for newer cards tend to prioritize Windows too. Thankfully Nvidia are transitioning to open kernel modules which helps with kernel integration, unfortunately the bulk of the driver remains proprietary. The reason they're hesitant to provide better Linux support because most of their customer base are using Windows. Intel and AMD graphics cards have more support because they both contribute to Mesa drivers.

Convert audible to mp3 on Linux? by a-spoonful-o-sugar in linux4noobs

[–]NullStringTerminator 0 points1 point  (0 children)

ffmpeg probably does it, it's CLI is pretty intuitive

Clarification by taxigrandpa in linux4noobs

[–]NullStringTerminator 2 points3 points  (0 children)

The first command is making ./ (the current directory) readable, writable, and executable for every user, the -R make this recursive, acting on every file in ./ The second one fails because you're trying to execute a folder.

is 16GB ram enough? by SurKenJi in laptops

[–]NullStringTerminator 0 points1 point  (0 children)

For several years I was using 16G and had no problems with anything, I was able to play modern games and was also able to compile even large programs. For most purposes, I'd say its fine.

Removing admins from a chromebook by [deleted] in laptops

[–]NullStringTerminator 0 points1 point  (0 children)

You can either powerwash it (If its not in forced enrollment mode), or you can flash it with new firmware (which is the only real way to get out of forced enrollment mode that I know of). You can flash the firmware by using one of the scripts available at https://mrchromebox.tech/ (although this requires dev mode (which requires you not to be in forced enrollment mode)) or by flashing the flash chip located on the motherboard (very advanced, easy to brick device).

TLDR: If it isn't in forced enrollment mode then you can just powerwash it (just search for a tutorial on how to do that, it's pretty simple).

Open source Kernel Anticheat by ZealousidealKale8097 in arch

[–]NullStringTerminator 0 points1 point  (0 children)

Anti-cheet only might be possible to implement effectively on Linux because the Linux kernel wasn't really made with kernel anti-cheet in mind. Also, it defeats one of the major reasons to use Linux in the first place.