-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
I tried today to install a dvb-card on my Ubuntu 12.04 (Linux blauhai-linux 3.2.0-25-generic #40-Ubuntu SMP Wed May 23 20:30:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
). The installation failed with an error. After that, i tried to install python (it was already installed but i got this error):
linux:~$…
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
I installed sikuli-ide with
sudo apt-get install sikuli-ide
Everything was fine until I tried to start it from the terminal. I typed
sikuli-ide
But the only response I got was
[info] locale: en_US
The application was not started, furthermore there is no desktop file and sikuli-ide does not…
>>> More
-
as seen on Super User
- Search for 'Super User'
I can't import some python libraries (PIL, psycopg2) that I just installed with MacPorts. I looked through these forums, and tried to adjust my PATH variable in $HOME/.bash_profile in order to fix this but it did not work.
I added the location of PIL and psycopg2 to PATH.
I know that Terminal is…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I want to pass a chunk of Python code to Python in R with something like system('python ...'), and I'm wondering if there is an easy way to emulate the python console in this case. For example, suppose the code is "print 'hello world'", how can I get the output like this in R?
>>> print…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
I am currently struggling to call a non python program from a python script.
I have a ~1000 files that when passed through this C++ program will generate ~1000 outputs. Each output file must have a distinct name.
The command I wish to run is of the form:
program_name -input -output -o1 -o2…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
I am creating a Zip file from a folder (and subfolders). it works fine and creates a new .zip file also but I am having an issue while using glob.glob. It is reading all files from the desired folder (source folder) and writing to the new zip file but the problem is that it is, however, adding…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
/Users/smcho/Desktop/bracket/[10,20] directory has "abc.txt", but when I run this python code
import glob
import os.path
path1 = "/Users/smcho/Desktop/bracket/\[10,20\]"
pathName = os.path.join(path1, "*.txt")
print glob.glob(pathName)
It returns empty list.
Can't python's glob doesn't handle…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
To run a command on a single file, I recently realized I can do this:
hg log relglob:UniqueFilename
instead of:
hg log some/really/deep/directory/hierarchy/UniqueFilename
I'd like to take this one step further and make relglob the default matching syntax. Is this possible?
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a folder with subfolders that are all in the pattern YYYYMMDDHHMMSS (timestamp).
I want to use glob to only select the folders that match that pattern.
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm using glob function for a autocompletion function. I'm showing you the problem because it's difficult to explain:
matched = ~/.tcsh
glob(matched, 0, NULL, &pglob);
glob put all matched files in a char ** and when I print it I have:
case[0] = .tcshrc
case[1] =
I should have .tcshrc~…
>>> More