Skip to content
Advertisement

Tag: python

Excessive disk writes when using numpy.memmap

I have implemented a file-backed HashTable using numpy.memmap. It appears to be functioning correctly, however, I notice that on Linux both KSysGuard and SMART are reporting ridiculous IO Write amounts. About 50x the amount of data that should be written. I have not tested this on other operating systems. This is the code that creates the internal memory map And

A flask website, when it delete a file (os.remove(“abc.txt”)), the file is removed but the space is not reclaimed

The program is a standard flask program, and it does some cleanup as part of the initialization. In the cleanup() procedure, using os.remove(“abc.txt”), I noticed that the file is removed, but not reclaimed by the OS. I use both “python website.py” and “gunicorn website:app” to run the application and both have the same problem, in Linux environment. In MacOS, I

How to list all concurrent python processes in my CLI?

I have opened several terminals in parallel: And in two of those terminals, I have launched a python file, which includes iterations, to keep the process running. And I would like to have the list of all python processes running. When I type: $ ps -ef | grep python or $ps -elf | grep python I only get the current

How should I deploy a web application to Debian?

Ideally I’d like to build a package to deploy to Debian. Ideally the installation process would check the system has the required dependencies installed, as well as configure Cronjobs, set up users etc. I’ve tried googling around and I understand a .deb is the format I can distribute in – but that is as far as I got since I’m

how to kill bottom n procceses in linux [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question

Which Anaconda Installer to choose for my Linux system?

I want to install Anaconda on my machine with the following features: OS: Ubuntu 20.04.2 CPU: Intel i7-8550U (8) @ 4.000GHz But the installers on the Anaconda website are the followings: 64-Bit (x86) Installer (544 MB) 64-Bit (Power8 and Power9) Installer (285 MB) 64-Bit (AWS Graviton2 / ARM64) Installer (413 M) 64-bit (Linux on IBM Z & LinuxONE) Installer (292

How can I automatically change my desktop background every day?

I am interested in having my desktop background automatically change every day. Perhaps taking the “picture of the day” from some website. Is this something I could do with a Python script? I can code pretty well but I only really do numerical work, so I’m just looking for an overview of the process and then I can figure out

Advertisement