User Profile

Collapse

Profile Sidebar

Collapse
PythonNewbie
PythonNewbie
Last Activity: Apr 7 '08, 01:57 PM
Joined: Nov 29 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • PythonNewbie
    replied to Question for image manipulation
    Thanks a lot! Now I can easily find a free program for it :)
    See more | Go to post

    Leave a comment:


  • PythonNewbie
    started a topic Question for image manipulation

    Question for image manipulation

    Ok, usually I would use the search function to find an existing solution but the problem is that I have no idea what keywords to use. I am hoping someone can point me to the right direction. Here is my problem:

    I have an image. I want to have a rollover tool tip for multiple things in that image. For instance, if you move your mouse over a book in the image a yellow tool tip would come up and give you the title of the book. I remember...
    See more | Go to post

  • PythonNewbie
    replied to Strange behavior while using glob?
    I got it figured out. I had started a separate post for it. Someone suggested using raw string when I get input which works like a charm. Thanks a lot - my code is lot cleaner now.
    See more | Go to post

    Leave a comment:


  • PythonNewbie
    replied to Going crazy because of \
    Aha, I was not aware of that functionality. I love this forum :) Thanksalot
    See more | Go to post

    Leave a comment:


  • PythonNewbie
    replied to Strange behavior while using glob?
    Thank you that works. Now, if I could only figure out how to deal with \
    See more | Go to post

    Leave a comment:


  • PythonNewbie
    started a topic Going crazy because of \

    Going crazy because of \

    Hello, I am having so many issues with \

    In a directory with a path like:
    "F:\somefolder\ 2007\somefolder \2007\somefolde r\*.txt files"

    I have been trying to make a path out of this to access the files with glob but \2007 keeps messing things up. It turns into \x807 when saved as string.

    Some of the solutions I can use to work around this are:
    1) I can work around it is by using...
    See more | Go to post

  • PythonNewbie
    replied to Strange behavior while using glob?
    Err, my windows version is Windows XP Media Center Edition. It works on that.

    Anyhow, can someone suggest how I can fix this? Maybe, some alternative to glob?
    See more | Go to post

    Leave a comment:


  • PythonNewbie
    started a topic Strange behavior while using glob?

    Strange behavior while using glob?

    Hello, so I needed to write a quick code that lets me merge whole bunch of text files in a given folder into one text file.

    So, I wrote this up after reading about glob
    [HTML]
    import glob
    #########Enter the directory where your files are located #######

    dirpath ='C:/All_Spot_Spectr a/Spots/*'
    ############### ############### ############### ##########
    w=open('C:/All_Spot_Spectr a/merge.txt','w')...
    See more | Go to post

  • PythonNewbie
    replied to Organizing python code
    Thanks as always! Time to clean it up - hopefully I wont break it beyond fix!
    See more | Go to post

    Leave a comment:


  • PythonNewbie
    replied to Organizing python code
    Well, let me be little more precise.

    This program basically takes a big input files and sends it to different servers that host different analysis program by posting on forms. Then it submits the reports in a local database. It works fairly ok but it has absolutely no comments and I need to add some functionality to it.

    Right now the code is:

    class 1

    class 2
    .
    .
    ....
    See more | Go to post

    Leave a comment:


  • PythonNewbie
    started a topic Organizing python code

    Organizing python code

    Hello, I am trying to organize code that a student had written. Currently it is one really long file of different classes which makes it very tough to follow things. I would prefer to have meaningful groups of classes in different files. Can someone suggest a solution.

    Sorry, a rather simple question.
    See more | Go to post

  • PythonNewbie
    replied to String handling
    Ok, I think your solution for line 2 is better than mine even though its same concept. I think, unlike my solution, yours would work even if other fragment is only one or two letters long.

    Added later: Although, a more robust solution would be better. I might want to expand the tolerance on proximity and might want to look six spaces - which would mean more if conditions. But for now it works...
    See more | Go to post
    Last edited by PythonNewbie; Jan 11 '07, 03:41 PM. Reason: added comment

    Leave a comment:


  • PythonNewbie
    started a topic String handling

    String handling

    Hello, I need some specific string related functionality and I find string functions in Python to be bit lacking. I am not sure if their are other functions that I can use. I did manage to write some code that seems to work but I am afraid it might not work as expected in all cases.

    Lets say, I have following variables,

    myString="RLFEG DNALIR" #some string
    myFrag="NALIR" #known substring of...
    See more | Go to post

  • PythonNewbie
    replied to String to binary and back
    Well their are few reasons for writing to a file but the primary reason is that I want to take the data I am interested in to another computer for data mining purposes. The hardware that has the DB is used by lot of other people and it is not part of a network for security reasons. If I have the data on a file I can give it to some of my students for their projects in the future too. Unfortunately, no one knows the password for the OMS to the...
    See more | Go to post

    Leave a comment:


  • PythonNewbie
    started a topic String to binary and back

    String to binary and back

    Hello, so now that I am getting the data from the db - I have another problem to tackle. I need to save the data in binary format in order to save space as normal text files are getting to be in order of gigs.

    However, I am having issues related to this. I discovered the binascii module and it seemed to be what I needed - especially a2b_uu() function. However, that only takes lines of 45 bytes long and that seemed to complex to...
    See more | Go to post

  • PythonNewbie
    replied to AttributeError help
    I fear I will be visiting a lot.

    Thanks!
    See more | Go to post

    Leave a comment:


  • PythonNewbie
    replied to AttributeError help
    Well, this is embarassing but I figured out my problem:
    curs=orc1.curso r

    should be
    curs=orc1.curso r()

    I am surprised the original statement did not return an error but it works now!
    See more | Go to post

    Leave a comment:


  • PythonNewbie
    started a topic AttributeError help

    AttributeError help

    Hello folks, I wrote this code for connection module yesterday to extract data from an Oracle db and it worked - I was happy and went home for the evening thinking today I will write the rest of the program. However to my dismay, the same code does not work today and I am not sure what is the problem. Here is the code and the error:
    >>> import cx_Oracle
    >>> orc1=cx_Oracle. connect(connStr ing)
    >>> curs=orc1.curso r
    ...
    See more | Go to post
No activity results to display
Show More
Working...