Tagged Questions
0
votes
0answers
27 views
how to make a custom sort for an excel spreadsheet using python
So I have an excel spreadsheet where I need to sort the rows by one column which represents the criticality of the object in the row with the values: Critical, High, Medium, Low, Info. I need ...
0
votes
1answer
12 views
pocketsphinx python gstreamer audio rate
I'm using pocketsphinx on linux, and I've been using the source code from the CMU tutorial. I'm trying to upload the HUB4 dictionary, language model, and acoustic model.
I had it working before when ...
0
votes
2answers
50 views
Run a Python code over a bunch of files in a folder at a time in linux
I have the following code
import sys
import glob
for filename in glob.glob(sys.argv[1]):
file = open(filename)
data = [line.rstrip() + "," + filename for line in file]
...
1
vote
1answer
30 views
system call and signal handler
I have a program that block reading with select,but i want it to return gracefully with sending a SIGINT signal. and process that signal with a handler. unfortunately, the block program does not ...
2
votes
1answer
38 views
Generating Print Version of PDF with specified DPI in Reportlab
I am writing a program to generate PDF files using Python's Reportlab library. Basically I have two requirements:
Web version: RGB color, 150 dpi
Print Version: CMYK color, 300 dpi
So far I have ...
1
vote
0answers
25 views
How to view tree of library files loaded at runtime by Python program in Linux?
In Windows, the Dependency Walker tool shows a tree of DLLs that is loaded by an executable.
In a similar way, is it possible to know the tree of all the shared libraries (*.so) that are loaded by a ...
0
votes
3answers
35 views
chmod with group inheritance rights rwx for user & group only
In order to create a shared folder for a given group of users, I need restricted directory rights with inheritance.
The goal is that only root and users members to the specified group can read & ...
1
vote
1answer
24 views
python qt wait in background for hotkey
I'm building a qt app in python. One of the things that I need to do is wait in the background for a key combo like ctrl+b of something like that and then doing something with the currently active ...
-1
votes
1answer
28 views
Google App Engine when i use in Red Hat Enterprise Linux am i violating license terms?
My server is running RHEL 6.2, where i am running using python 2.7, Google App Engine to allow the web based Python applications ...
1
vote
0answers
13 views
Py2dsc, is it possible to use another name than setup.py for py2dsc?
I am trying to build a python debian package.
it is cross platform, so for windows I use setup.py, for linux I use setuplinux.py.
My question is how to use py2dsc with setuplinux.py?
It seems ...
0
votes
2answers
49 views
How do you manually tell Python which version to use in the script itself, across multiple operating systems?
I have Python 2.7 and 3.3 installed on Windows, and Python 2.7 and 3.2mu installed on Linux.
How would I write a Python script that is able to be used on both Windows and Linux, using version 2.X or ...
-3
votes
0answers
32 views
Monitor visited sites from iptables in python [closed]
I have to make script in python to monitor iptables on port 80 and get URLs of visited websites from it. I was searching for some time and can't get any useful information on the topic.
Is that ...
0
votes
1answer
29 views
Guidence on beginning with packaging
I finished my first Python project, and I have all of the files ready and it's nice and stable. Now I want to move onto creating a binary source file so it'll be installable on linux machines ...
1
vote
1answer
61 views
Why does my script periodically freeze while deleting millions of files?
My goal was to delete 10 million temp files from dir. So, I tried to write a Python script to do this. The first scenario looked like that:
#!/usr/bin/python
import os,sys
dirname = os.getcwd() if ...
0
votes
2answers
74 views
Provide feedback from Python script to PHP
Suppose a python script that performs a large number of operations, and outputs to the user a progress report while it is running:
$ script.py
Doing 1 of 100 operations...
Operation 1 succeeded with ...