• Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Starting Python

    Sometimes it pays to read the manual ... ''' integer_bitlength.py how many bits does a given integer have tested with Python27 and Python33 ''' # denary 12 --> binary 1100 …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Projects for the Beginner

    * *** ***** ******* ********* *********** | Write Python code to print a little tree like this.
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for Confusing Error

    class stdout(object): def __init__(self,realout,prefix): self.file = realout self.at_start_of_line = True self.prefix=prefix def write(self, text): if len(text): if self.at_start_of_line: text = self.prefix + text self.file.write(text) self.at_start_of_line = (text[-1] == '\n') sys.stdout=stdout(sys.stdout,"OUT …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for TypeError: input expected at most 1 arguments, got 3

    num_trades = int(input("Number of trades for today?")) for i in range(1, num_trades + 1): action = input("Trade number", i ,"(buy/sell)?") num_shares = int(input("Number of shares to buy?")) price_per_share = float(input("Price …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for best approach zip file under 3MB

    I am still new to programming and hoping someone can point me in the best direction. I am creating a script that monitors a directory and creates a zip file …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for Find specific line in file and print following line

    Hi, I am very new to programming but am hoping it will be able to speed a few things up for me. However I am struggling to work out how …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for How to do a save feature in a python game

    I am trying to make a save feature in a game so that a player could save, then quit the game, then open the window again to select proflie and …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for how to create a web browser in python

    hi guys !!! i want to make an web browser in python , as my college project . what i'm looking for is guidance , on how to make it …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for Read the tasklist (taskmanager data) of other systems connected in a networ

    I know to access tasklist of our machine can be done through os.popen('tasklist').read(). Is there any way to read the tasklist (taskmanager data) of other systems connected in a network …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for issues installing rpy2 on Cygwin64 under Windows

    I'm experiencing a few issues trying to install rpy2-2.3.7 under Cygwin64 on Windows7 using R 3.0.1 and python 2.7 $ python setup.py install finds R version to be 3.0.1 at …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for Pyhton

    i am using cherrypy and i want the list itemes in new line like a=['abc','def','ghi'] abc def ghi in browser
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for help me with this problem

    i am a beginner in python and still got a whole lot to learn.i have this exercise that seem too difficult to crack. check it out and see if you …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for Hi, please help with this modifications.

    @Gribouillis and other gurus in the house, i just did this code but seem i ssem to be having difficulties in modifying it to work the way i want it.Its …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for File System Project Help Using PYTHON - URGENT

    I need some urgent help in the Python programming project. In this project I am implementing the file system which provides the capability to store and retrieve data on the …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for convert while to for

    I have an assignment that is very similar to a past assignment. I have to create a for loop to find gpa. The previous assignment was to use a while …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for Python - Project euler question #19 Wrong answer

    hi i recently found an interesting problem(#19) on the project euler website - projecteuler.net The real answer is 171 and i am getting 175 What is wrong with this code- …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for assertRaises test fails

    import unittest import filterList class TestFilterList(unittest.TestCase): """ docstring for TestFilterList """ def setUp(self): self._filterby = 'B' def test_checkListItem(self): self.flObj = filterList.FilterList(['hello', 'Boy', 1], self._filterby) self.assertRaises(filterList.ItemNotString, self.flObj.checkListItem) def test_filterList(self): self.flObj = …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for Using ModemDriver.py

    Hi Guys I want to use ModemDriver.py (v2.0.13) to send and receive SMS via a Mobile Broadband modem. Please don’t tell me to use Wammu/Gammu etc. I have wasted weeks …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for Unable to install Pyhook?

    Hello everybody~! I'm trying to install the latest version of pyHook for my Python 3.3.2 shell. I am a new coder in Python, all though I am rather experienced in …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for returning Namespace(filter='b', list="['hi','by']")

    how do I make a class return as `Namespace(filter='b', list="['hi','by']")` class NameSpace(object): """Mock for argparse's NameSpace """ def __init__(self, lst=None, flter=None): super(NameSpace, self).__init__() self._filter = flter self._lst = lst Is …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for repetitions

    create a program that gets the marks the user has for their classes this year. Tell them how many classes they are failing (despite what many o f you think …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for Help With Python Ideas

    I am recently new to python and as part of my college work i need to design and implement a python program relating to computer system administration. I would be …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for Payroll for Python

    f = open("program0.4.txt", "w") done = input('Enter done for last name when finished') Last_Name = input("Enter Last Name: ") while Last_Name != 'done': First_Name = input("Enter First Name: ") Hrs_Wrkd …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for Trapezium rule for exp(-x*x)

    Hello, i'm currently trying to write some code to find the integral of exp(-x*x). I have been given code for one trapezium rule (trap0) which is imperfect, and a second …
  • Member Avatar for vegaseat
    vegaseat

    Created Decorator debugging help (Python)

    If you decorate a function, then some of the information is lost during the debugging process. Python supplies another decorator @wraps to help out. A decorator for a decorator, very …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Tkinter Image Slide Show (Python)

    It is my understanding that you use Linux or the Apple OS X?
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Python GUI Programming

    Here is a typical PySide/PyQt designer project. First the XML file generated by the Designer program (saved as ps_listview_match2.ui) ... <?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>Form</class> <widget class="QWidget" name="Form"> <property …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Tkinter Image Slide Show (Python)

    Thanks a lot, here we go ...
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Tkinter Image Slide Show (Python)

    For some odd reason I don't remember how to upload gifs on DaniWeb. Any help?
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Starting Python

    One good use of the ternary if/else ... ''' func_recursion1a.py recursion calls the function itself from within the function with its parameter(s) adjusted, an exit condition has to be given …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in NameError: name Tk is not defined

    Did you by accident create a file tkinter.py in your working directory (where your program code is)? It would be imported first.
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for Garbage collection

    If there's a class called `foo` and you do `d = foo().someboundmethod`, will the instance of foo stil be there?
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for A Game of Go Fish: The If and Else are not working

    I'm trying to create a game of Go Fish in Python. But I've stumbled onto a little problem that I can't seem to figure out how to deal with. There …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for os.system()

    I want to start a command in command prompt, but os.system() can only do one command, and I want it to start from a url. Example: import os,getpass print "Altline …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for homework help

    I will donate $10 on paypal for a few python assignments to be completed
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for change python forum desc.

    It says interpeted and OOP but it's also functional and dynamic
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for Using HUGE numbers?

    If you use the same HUGE number many times: * import sys * sys.maxint = sys.maxint+sys.maxint * This is because if you have the INFINITE(or lower) refrence to the same …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for Penetration testing in python

    Hi. I want to learn penetration testing in python.but i am entirely clueless where to start. I have read about some famous tools like SCAPY and pycap.So,the thing is that …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for What Python commands and functions would I need to learn to create a MUD?

    Hi, I was wondering how I could create a MUD (Multi-User-Dungeon) game using Python. It would be a dream come true if I could make one on my own so …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for Hard syntax error

    def mu_cache(func,maxsize=128): "Most Used Cache decorator" cname = "__"+func.__name__+"_Cache" rname = "__"+func.__name__+"_Rankings" exec("global "+cname) exec(cname+" = {}") #here exec("global "+rname) exec(rname+" = {}") def wrap(*args,**kwargs): cache = eval(cname) rankings = …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for Remove Duplicates Python Circular Linked List

    Duplicate occurance of the same value has to be removed. If the (linked)list traversed from head contains sequence 3,2,8,8,8,5,2,3 after calling last = Node(3) head = Node(2, last) head = …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for I need some help with pygame. im a noob just saying

    I'm creating a shooting game and I don't want to allow unlimited bullets to be shot on the screen, so how can I limit the amount of bullets fired. heres …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for yelp.com and <html><body><h1>400 Bad request</h1>\nYour browser sent an inv

    def GenContent(address,what): return urllib.urlopen("http://www.yelp.com/search?find_desc="+what+"&#find_loc="+address).read() I am using python to do this. It works prefectly in my browser.
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for execfile return

    Suppose you have this file named func.py: def func(x): y = raw_input(x) return y func(z) And then you have this calling code: z = raw_input('Type a request for input and …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for Estetik

    I started learning about Python 15 days ago and I'm a little bit confused whether it is a programming language or scripting language. I am thinking it is a programming …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for Displaying image in different tkinter windows

    Hello , I am making tries to display images in different tkinter windows , in every window displaying a different image , for this i made this code : # …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for How to play a url for a wav file from the internet

    I tried downloading the file and playing it using `winsound` to play it with the flag `SND_MEMORY`, but it only accepts `str` instead of the `bytes` object I got from …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for Class within a class (Tkinter) woes...

    So! I'm building a GUI for an application I'm currently developing and I'm having a bit of trouble figuring out an issue. I'll try to explain it as best as …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for Confused about reading files

    I have a series of (~950KB) '.txt' output files from a computational chemistry program; Each file will contain the line '****optimisation achieved****' at least once and, depending on the result …
  • Member Avatar for vegaseat
    vegaseat

    Marked Solved Status for Beginner needs help with assignment

    A GPA, or Grade point Average, is calculated by summing the grade points earned in a student’s courses and then dividing by the total units. The grade points for an …

The End.