Tagged Questions

0
votes
1answer
24 views

pipe data into python debugger and write the python program interactively

Lets say you have a large file containing LETTER,NUMBER comma-delimited tokens. You want to write a program that reads from standard input and prints out NUMBER+1 for each line. Very trivial program, ...
1
vote
1answer
27 views

when django invoking java, why utf-8 chars outputing is not ok?

When I use django, I write a method can be invoked by http:// myhost/XXX/testIndex def testIndex(request): res = os.system('java -jar test.HelloWorld' > /tmp/log) ... ... and the ...
2
votes
2answers
23 views

How to check if pdf printing is finished on linux command line

I have a bunch of files that I need to print via PDF printer and after it is printed I need to perform additional tasks, but only when it is finally completed. So to do this from my python script i ...
0
votes
0answers
39 views

how to change the python's stdin buffer size?

I use python's stdin to recv message from other process but want to change the stdin buff size for fast recv message I know the subprocee can set the stdin buff when open a subprocess process but ...
0
votes
7answers
65 views

Automate whitelisting ip addresses in iptables via bash

I am looking for the best way to automate whitelisting IP addresses into iptables. The list of ip addresses and ports comes from a JSON file /accept-rules.json which is formatted like: [ { ...
2
votes
1answer
53 views

python generator invalid literal for int()

i am using the field-map generator function from http://www.dabeaz.com/generators/fieldmap.py #!/usr/bin/env python def field_map(dictseq, name, func): for d in dictseq: d[name] = ...
0
votes
0answers
24 views

Python pyqt Dialog screen is running in background

I see a strange behavior in my Python pyqt Dialog, when I run the code I can see the screen (Dialog) being created and I can see it in the taskbar, when I hover around it I can also see the miniature ...
1
vote
2answers
79 views

Scripting a bash script from inside python

I have a little test.sh script that I run from the command line ./test.sh and it will ask me for input to 2 questions that I enter, then it loops till I ctrl-c out of it. I want to write a little ...
1
vote
1answer
28 views

Proxy servers resolve requests to themselves

I am trying to make some HTTP request using a HTTP proxy server over Tor. So far, I have experimented with Privoxy, Tinyproxy and Polipo. But whenever I make a request through any of these proxy ...
0
votes
1answer
53 views

Speech Recognition for Linux-Python

I searched google and this site too. I could find Dragonfly is the best suited! But I couldn't find any perfect installation for this on Linux. And it seems it has no support as the last release date ...
0
votes
1answer
40 views

synchronizing file names across servers

I have a development & production server and some large video files. The large files need to be renamed. I don't know how to automatically change the file names in the production environment when ...
0
votes
2answers
39 views

Process memory usage output [closed]

I am wondering how to get the resident memory usage of a process in MB in all cases. Sometimes I get it in MB however other times it comes in GB. I did look around for a solution however most of them ...
0
votes
4answers
71 views

Unix `at` scheduling with python script: Permission denied

I'm trying to create a scheduled task using the Unix at command. I wanted to run a python script, but quickly realized that at is configured to use run whatever file I give it with sh. In an attempt ...
-6
votes
0answers
47 views

Back end programming [closed]

I am new to python, I want to make a GUI from which we do automatic installation instead of a manual install.My question is: do we need to write a back end script for wxpython ? I thought of using ...
0
votes
2answers
40 views

Is there a function in python similar to calling `initctl list`?

I need to get a list of all possible running processes(whether they are stopped currently or not) from the system, without keeping a record myself. I was wondering if there is a better way to get a ...

1 2 3 4 5 135
15 30 50 per page