User Profile
Collapse
-
unfortunately yes and Django v1.8.5 returns a empty list if i try that option -
DJANGO HTML Multiple select
Inside my form tags of test.html i have this code
...Code:<select id="PairedSelectBox" name="target_objects" multiple size="15"> <option value="MD_1">MD_1</option> <option value="MD_2">MD_2</option> <option value="MD_3" selected="selected">MD_3</option> <option value="C_1"selected="selected">C_1</option>
-
Unable to create executable - error: invalid command 'py2exe'
Python version 2.7.1
py2exe installed successfully
version - py2exe-0.6.9.win32-py2.7
py2exe in python path
setup.py
Code:from distutils.core import setup import py2exe setup(console=['helloworld.py'])
...Code:C:\Python27\Lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'console' warnings.warn(msg) usage: setup.py [global_opts]
-
Calling a web service using python
I am using soapUI to make web service calls. i need to use python so that i can change the request parameters on the fly.
I have been given the endpoint URL and the wsdl file path.
the wsdl has so many operations defined in it
how should i take it forward to make a specific service call. -
If you recieve it as a string in JS from your server
you could try using the eval(variable); method, which will return JS object. or you could try the JSON.parse instead of eval.Leave a comment:
-
Replace on java class files
There was a search for a string usring grep in binary mode on a class file, and a replace for a corresponding entity using sed. this change was not effective and the file did not respond. wat could be possible point of failure, is this a wise method to do or recompile the source file and put it back. -
The other option that i tried was
but this actually resulted in the desired file being empty.?Code:cat $file | sed -e 's/$pattern/$desired/g' >$file
Leave a comment:
-
Sed replace
I run this script in the bash environment GNU bash, version 3.00.15(1)-release (x86_64-redhat-linux-gnu) and sed GNU sed version 4.1.2, which has this line
this does the desired replace in the command line but not when run in a script.Code:sed -i 's/$pattern/$desired/g' $file
what possibly could be the reason.? -
Yes there is ...
the redirection is not proper to get the desired output
so what would be the best wat to use the redirection to get my desired output...Leave a comment:
-
Yes it is the problem and --version is also an illegal option
-w does not work as expected in this grep.
this does not integrate any version information....Leave a comment:
-
Is it that your are look for the performance metrics of the loop that you are running ? there are a lot of profiling tools that are available for getting the runtime states of the python program.Leave a comment:
-
Just got curious on this reply, how does grub play a role in this issue ?
or was that a typo...Leave a comment:
-
There was no version information attached to the grep.
but the STANDARDS CONFORMANCE
grep: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
...Code:hp:/preyan->grep -V grep: illegal option -- V usage: grep [-E|-F] [-c|-l|-q] [-bhinsvx] -e pattern_list... [-f pattern_file...] [file...] usage: grep [-E|-F] [-c|-l|-q] [-bhinsvx] [-e pattern_list...] -f pattern_file... [file...]Leave a comment:
-
code differences
I am interested to know why the ip are not listed with the -w option in grep
It works fine on my ubuntu 8.04 version(bash) but not in my HP-UX Release 11i (ksh)
...Code:mysys:/tmp/x->find . -type f -print | xargs grep -n -w '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' mysys:/tmp/x->find . -type f -print | xargs grep -n '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' ./test/myfile.txt:2:this line -
Input Redirection
I have a small problem with the input redirection.
to search for a particular pattern in all files i have used this command
this would give me the output in the formatCode:find $dir -type f -print | xargs grep -E -n -w <pattern> | tee my res.txt
filename : line number : matching line
I would like to have something like this in my output file
filename : line... -
range(num) starts from 0. if u specify range(5) its value would be [0,1,2,3,4].
modify the range args to get your desired output, and you need not really set the variable test in your case. the other error is that you are printing the num that you want to find the factors for and not the factors themself.Leave a comment:
-
GUI form Builders
All these years i used to code GUI in wxpython, but recently i am beginning to use form builders to reduce complex coding. I started good with wxFormBuilder but then there have been a few unexpected breakdown of the application, its then when i heard people praising wxGlade. From the usage point i found wxFormBuilders to be simple but then i just wanted to know which form builder could replace it effectively. -
could you input the actual error ?
If setuptools is the problem you could get it from here
BTW what is the operating system that you are using ?
http://peak.telecommunity.com/DevCenter/setuptools/...Leave a comment:
-
algorith coded
boxfish algorithm coded :).
...Code:>>> l=[["asdf",4.0],["fdsa",8],["abcd",98]] >>> def return_value(key,list_): ... for entity in list_: ... if entity[0] == key: ... return entity[1] ... >>> return_value('asdf',l) 4.0 >>>Leave a comment:
-
Trouble finding error?
Hey where is the error, the script runs fine for me
I removed the clear to visualize the output of #1 and #2
and for #3 I ran the program the way it wanted it to be run
and i don get an error ?Code:./case.sh 1 + 5
Leave a comment:
No activity results to display
Show More
Leave a comment: