User Profile

Collapse

Profile Sidebar

Collapse
kaarthikeyapreyan
kaarthikeyapreyan
Last Activity: Jan 5 '16, 09:03 AM
Joined: Apr 21 '07
Location: India
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • kaarthikeyapreyan
    replied to DJANGO HTML Multiple select
    unfortunately yes and Django v1.8.5 returns a empty list if i try that option
    See more | Go to post

    Leave a comment:


  • kaarthikeyapreyan
    started a topic DJANGO HTML Multiple select

    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>
    ...
    See more | Go to post

  • 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]
    ...
    See more | Go to post

  • kaarthikeyapreyan
    started a topic Calling a web service using python

    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.
    See more | Go to post

  • 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.
    See more | Go to post

    Leave a comment:


  • kaarthikeyapreyan
    started a topic Replace on java class files

    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.
    See more | Go to post

  • kaarthikeyapreyan
    replied to Sed replace
    The other option that i tried was
    Code:
     cat $file | sed -e 's/$pattern/$desired/g' >$file
    but this actually resulted in the desired file being empty.?
    See more | Go to post

    Leave a comment:


  • kaarthikeyapreyan
    started a topic Sed replace

    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
    Code:
    sed -i 's/$pattern/$desired/g' $file
    this does the desired replace in the command line but not when run in a script.
    what possibly could be the reason.?
    See more | Go to post

  • kaarthikeyapreyan
    replied to Input Redirection
    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...
    See more | Go to post

    Leave a comment:


  • kaarthikeyapreyan
    replied to code differences
    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....
    See more | Go to post

    Leave a comment:


  • kaarthikeyapreyan
    replied to Python run times
    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.
    See more | Go to post

    Leave a comment:


  • kaarthikeyapreyan
    replied to code differences
    Just got curious on this reply, how does grub play a role in this issue ?
    or was that a typo...
    See more | Go to post

    Leave a comment:


  • kaarthikeyapreyan
    replied to code differences
    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...]
    ...
    See more | Go to post

    Leave a comment:


  • kaarthikeyapreyan
    started a topic code differences

    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
    ...
    See more | Go to post
    Last edited by kaarthikeyapreyan; Oct 27 '09, 12:18 PM. Reason: updated info

  • kaarthikeyapreyan
    started a topic Input Redirection

    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

    Code:
    find $dir -type f -print | xargs grep -E -n -w <pattern> | tee my res.txt
    this would give me the output in the format

    filename : line number : matching line

    I would like to have something like this in my output file

    filename : line...
    See more | Go to post

  • kaarthikeyapreyan
    replied to Need a hint with problem
    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.
    See more | Go to post

    Leave a comment:


  • kaarthikeyapreyan
    started a topic GUI form Builders

    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.
    See more | Go to post

  • 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/...
    See more | Go to post

    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
    >>>
    ...
    See more | Go to post

    Leave a comment:


  • kaarthikeyapreyan
    replied to nested case statements in linux
    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
    Code:
    ./case.sh 1 + 5
    and i don get an error ?
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...