User Profile

Collapse

Profile Sidebar

Collapse
jumperbl
jumperbl
Last Activity: Sep 18 '08, 12:43 PM
Joined: Mar 24 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • jumperbl
    started a topic how to use post method in python?

    how to use post method in python?

    I want to execute the query that this code is generating. I know how to open IE and go a page. But it there a way to go directly to the results page of this form?

    Code:
    <form name="test1" method="post"
    action="http://ExternalSQLQuery.asp">
    <input type=hidden name="database" value="bugs">
    <input type=hidden name="sql" value="
    ...
    See more | Go to post

  • jumperbl
    started a topic Python and USB

    Python and USB

    Has anyone worked with PyUSB or any other module that works with USB?

    I did what this site asked me to do:
    http://wiki.erazor-zone.de/wiki:projects:p ython:pyusb:set up:win32

    And when i run the test with usbenum or

    $> python
    >>> help()
    help> usb

    I get this:
    help> usb
    problem in usb - AttributeError: 'module' object has no attribute 'bus...
    See more | Go to post

  • jumperbl
    replied to Comparing Columns in the excel
    got it! No need to respond :-0
    See more | Go to post

    Leave a comment:


  • jumperbl
    started a topic Comparing Columns in the excel

    Comparing Columns in the excel

    I want to look at two columns lets say B1 to B8 and C1 to C8. I want to compare those ranges and if the columns don't match i want to color the cell. Here is how much i have figured out.
    Code:
    import win32com.client
    xlApp = win32com.client.Dispatch("Excel.Application")
    xlApp.Visible=1
    xlWb = xlApp.Workbooks.Open(r"C:\Template_Rev_3.2.xls")
    print xlApp.Worksheets("sheet1").Name
    ...
    See more | Go to post

  • jumperbl
    started a topic How to handle Extended ASCII characters

    How to handle Extended ASCII characters

    I am converting hex to ASCII and one of the words has a dot in the middle, which is in the extended ascii characters.

    when i do this i get the ascii chars.

    binascii.unhexl ify(''.join(val ue4.split()))

    Is there a way to print the extended characters as well. I currently get garbage where the dot is.
    See more | Go to post

  • jumperbl
    started a topic help with list element parsing

    help with list element parsing

    I have an element in a list which equals='42 61 73 73 20 43 6f 6d 70 65 6e 73 61 74 69 6f \n\r6e '

    Sometimes this element has \n\r in it and sometime it doesn't. how do i make it get rid of it when it is there so it would look like this:

    '42 61 73 73 20 43 6f 6d 70 65 6e 73 61 74 69 6f r6e '

    thanks for the help
    See more | Go to post

  • jumperbl
    replied to Writing to and Reading from Excel
    Is there something bad about using win32com.client ? If not, then I will use this script. Seems to work fine.

    import win32com.client
    xlApp = win32com.client .Dispatch("Exce l.Application")
    xlApp.Visible=1
    xlWb = xlApp.Workbooks .Open("Read.xls ")
    print xlApp.Worksheet s("Sheet1").Nam e
    xlApp.Worksheet s("Sheet2").Ran ge("A1").Value = "yellow"...
    See more | Go to post

    Leave a comment:


  • jumperbl
    replied to Writing to and Reading from Excel
    My bad I meant I could read it, but I don't know how to write to it. I have never worked with CSV. Is there an example?...
    See more | Go to post

    Leave a comment:


  • jumperbl
    started a topic Writing to and Reading from Excel

    Writing to and Reading from Excel

    Hi,

    I did some searching online and I found that I could use

    xlrd and win32com.client

    It seems that I could use win32com.client to read and write to excel. However, I didn't see xlrd do that. Is there a way to do that?
    See more | Go to post

  • jumperbl
    replied to How to build a tk game
    but how would i accomplish the transition from one question to another?
    See more | Go to post

    Leave a comment:


  • jumperbl
    started a topic How to build a tk game

    How to build a tk game

    As a learning example i wanted to build a gui that would ask questions and you answer.

    Example:

    Question: what is 2+2
    A. 2
    B. 3
    C. 4

    When the user chooses the correct answer it would take you to next question and so on. If the user answers it wrong it will give me the correct answer and take you to next question. During this I wanted to keep track of the score. What is the best...
    See more | Go to post

  • jumperbl
    started a topic GUI tk question

    GUI tk question

    what is the purpose of of this line "makemodal = (len(sys.argv) > 1)" in this script:

    #!/usr/bin/env python
    import sys
    from Tkinter import *
    makemodal = (len(sys.argv) > 1)

    class Yoli(Frame):

    def __init__(self, master):
    Frame.__init__( self, master)
    self.grid()
    self.createwidg ets()

    def loveyoli(self):
    win = Toplevel()
    ...
    See more | Go to post

  • jumperbl
    started a topic GUI tk question

    GUI tk question

    what is the purpose of of this line "makemodal = (len(sys.argv) > 1)" in this script:

    #!/usr/bin/env python
    import sys
    from Tkinter import *
    makemodal = (len(sys.argv) > 1)

    class Yoli(Frame):

    def __init__(self, master):
    Frame.__init__( self, master)
    self.grid()
    self.createwidg ets()

    def loveyoli(self):...
    See more | Go to post

  • jumperbl
    replied to Random numbers and alphabet mixture
    Thanks that helps. Makes sense now....
    See more | Go to post

    Leave a comment:


  • jumperbl
    replied to Random numbers and alphabet mixture
    [QUOTE=jlm699]How about this list comprehension:
    [code=python]
    >>> ''.join([chr([random.randrang e(48,58),random .randrange(65,9 1)][random.randint( 0,1)]) for x in xrange(17)])
    '3E4F8F756F584Z 8XU'
    [/code]

    I am trying to understand this. So, you have a chr range of 0-9[48,58] and A-Z[65-91], but what is random.randint( 0,1) is that step by one? I don't understand this. I like how this is written,...
    See more | Go to post

    Leave a comment:


  • jumperbl
    replied to Random numbers and alphabet mixture
    thanks guys for the help.
    See more | Go to post

    Leave a comment:


  • jumperbl
    started a topic Random numbers and alphabet mixture

    Random numbers and alphabet mixture

    Hi,

    I am a noob and I was wondering if there is way to generate random mixture of alphabets and numbers? For example:

    1234567890ABCDE FG
    or
    4BA92ABD293BC38 90

    the length needs to be 17 characters long.
    See more | Go to post
No activity results to display
Show More
Working...