woooee's Profile User Rating: -----

Reputation: 27 Craftsman
Group:
Active Members
Active Posts:
109 (0.14 per day)
Joined:
21-November 12
Profile Views:
747
Last Active:
User is offline Dec 09 2014 10:41 PM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   woooee has not set their status

Posts I've Made

  1. In Topic: Detecting barcode and getting its coordinates

    Posted 8 Dec 2014

    Most OCR software will detect barcodes but I don't know about location and size. Obviously it has to know some part of the location but may not make that readily available to the user.
  2. In Topic: Earthquake region magnitude

    Posted 4 Dec 2014

    Print "line" after this code to see what it contains and if offset 6 is the region.
        for line in infile:
            line=line.strip().split() 
    
  3. In Topic: Earthquake region magnitude

    Posted 3 Dec 2014

    You don't want the len() but the value that it is pointing to, so it should be
    ## convert from string (format from file) to float
    if float(line[1]) >=8:
    ## we know it is less than 8 because 
    ## the previous line was not true
    elif float(line[1]) >= 7: 
    etc. 
    
  4. In Topic: Second Iteration won't work.

    Posted 3 Dec 2014

    The way you have stated it

    Quote

    but with lis[i] and lis[i+1] removed
    ["CSC148H1", "/", "CSC165H1", "__/__"]
    becomes
    ["CSC148H1", "__/__" ]
    the first slash and "CSC165H1" are removed, so it will continue to find "CSC148H1" as long as the next course has a slash following it.

    Possibly the list should be stated as[ ["CSC148H1", "/"], ["CSC150H1", ","], ["CSC165H1", "/"], ["CSC240H1", "/"] ]
  5. In Topic: Need help with weaving of lists

    Posted 27 Nov 2014

    You can also do something like this but will have to account for two lists that don't have the same length
    for ctr in range(len(list_1)):
        print list_1[ctr]
        print list_2[ctr]
    #
    # and since we know that the second sub-list is longer in this example
    print list_2[len(list_1):] 
    

My Information

Member Title:
D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Private

Friends

woooee hasn't added any friends yet.

Comments

woooee has no profile comments yet. Why not say hello?