Skip to content
Advertisement

Tag: python

Grouping and deleting Files

I have to come up with a solution to delete all files but the newest 2 in a directory stucture of our owncloud. The be exact – its the file versioning folder. There are files in one folder with the following structure: Filename.Ext.v[random_Number] The hard part is that there are different files in one folder I need to keep. IE:

No module named objects [bokeh]

Note from maintainers: This question is no longer relevant. The bokeh.objects module has not existed for years I’m trying to run this script: from: https://www.continuum.io/content/painless-streaming-plots-bokeh but at this line: I got: The version I’m using is 0.11.1 On linux mint 17.1 Answer Note from maintainers: This answer is no longer relevant. The bokeh.objects module has not existed for years did

How to open new bash terminal using Python

I am trying to open a new terminal window in Tkinter application. I’ve used os.system(“/bin/bash”) but it works in current bash only. Which stops runnning code and causes application freeze. I want to open new Terminal. How to do that? gedit like programs work fine without disturbing current apllication. Answer Try this:

Rabbitmq remote call with Pika

I am new to rabbitmq and trying to figure out how I can make a client request a server with information about memory and CPU utilization with this tutorial (https://www.rabbitmq.com/tutorials/tutorial-six-python.html). So the client requests for CPU and memory ( I believe I will need two queues) and the server respond with the values. Is there anyway to simple create a

improperly configured at /accounts/login/

In order to simulate sdn networks i downloaded the mini net 64 bit version and imported it in vmware Workstation pro 12 and through github all the project related stuff have been installed but the thing is when i wanna run it i encounter an error , do you think it’s because of the mysql not being configured with Django?

G++ cannot resolve paths when called from subprocess

I am writing a small python script to for automatic student homework evaluation. I have a skeleton, where submitted homework is unzipped into a temporary folder and my script is called with path to the temporary folder as an argument. My script first copies over some extra files I need and then tries to compile c++ code roughly like this:

how to identify source of frequent process startup

Some months ago I used to play around with Python and Django, finally setting up a Django web service running python manage.py … on a RaspberryPi. Now, I’d like to use the Linux device for other things. Unfortunately, there seems to be a frequent startup of some process (every couple of seconds) that eats up the available processing power. And

Advertisement