Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+6
Strength to Decrease Rep
-1
78% Quality Score
Upvotes Received
12
Posts with Upvotes
11
Upvoting Members
9
Downvotes Received
3
Posts with Downvotes
3
Downvoting Members
3
3 Commented Posts
~172.14K People Reached
PC Specs
Lenovo IdeaPad Y460 Intel Core i5 M430 2.2GHz 2GB DDR3 RAM ATI HD 5650 Windows 7 Home Premium
Member Avatar for ultimatebuster

Is it possible to store a certain function as a variable? If not, is it okay to make a class, and define a function. Store the class as the variable and invoke that function?

Member Avatar for tomas_petricek
1
31K
Member Avatar for frankinaround

Yo whats up. I need help building a chat bot in python. I put together a 'special engine' (terms I found while searching the web- special and matrix engine(they translate user input)) basicly the special engine is a bunch of sentences that each have a few responses attached to them. …

Member Avatar for magnus.wootton
0
392
Member Avatar for vegaseat

Scientists and deficit spenders like to use Python because it can handle very large numbers. I decided to give it a test with factorials. Factorials reach astronomical levels rather quickly. In case you can't quite remember, the factorial of 12 is !12 = 1*2*3*4*5*6*7*8*9*10*11*12 = 479001600, that is 479 million …

Member Avatar for sneekula
2
5K
Member Avatar for linux

01010100 01100001 01101100 01101011 00100000 01101001 01101110 00100000 01000010 01101001 01101110 01100001 01110010 01111001 00100001 AKA: Talk in Binary! Don't post the translation of your binary text unless someone asks you too :cheesy:.

Member Avatar for vinnitro
2
1K
Member Avatar for ultimatebuster

What are some good JavaScript project for beginners? I have a decent understanding of programming itself, I familiarize myself with JavaScript for the past couple of days, but don't exactly know what I can write for it. Any ideas?

Member Avatar for stultuske
0
778
Member Avatar for TrustyTony

Inspired by discussion in [url]http://www.daniweb.com/tutorials/tutorial238544.html[/url] (test cases are from there) I used my magic pattern matching function transformed from numbers and adding the parts length checking loop. I like my own solution better, I do not know about you.

Member Avatar for TrustyTony
0
2K
Member Avatar for Tech B

This will allow you to login a website with python. After logging in, you now have access to all the pages for "members only" accessed with python. Could be handy for a myspace update program, webcrawlers, facebook(not recommended, facebook doesn't like scripts), and other things. Some knowledge of HTML is …

Member Avatar for python.crawling
0
3K
Member Avatar for ultimatebuster

How come unittest.TestCase doesn't exist for me? [CODE] Traceback (most recent call last): File "D:\My Projects\TAGEngine\TAGEngine\trunk\unittest.py", line 1, in <module> import unittest File "D:\My Projects\TAGEngine\TAGEngine\trunk\unittest.py", line 4, in <module> class CheckStructureAcceptance(unittest.TestCase): AttributeError: 'module' object has no attribute 'TestCase' [/CODE]

Member Avatar for Utopia_Tz
0
5K
Member Avatar for GeoBob

I want to create a function or a class method that will create a dictionary named by a variable that is passed in. By way of example, I'm creating a class method to read data from a table (in this case it's an ArcGIS table, but that's not critical) and …

Member Avatar for JoshuaBurleson
0
428
Member Avatar for ultimatebuster

Are there designer + IDE that's kind of like the Visual Studio suite for PyGTK or PyQT? [B]Again, don't clutter up the sticky with questions. Ask question in the regular forum.[/B]

Member Avatar for vegaseat
0
128
Member Avatar for e-papa

HI guys, I want to create and encryption system that converts a character to encrypted data, I'm thinking about using the ord() and chr() functions in python then slice the sting into characters implement the encryption on each character and bring them back together what do you think, Is there …

Member Avatar for vidur
0
194
Member Avatar for magnetpest2k5

Hello, I have been using the python dictionary to create a multidimensional array. I recently stumbled upon the numpy module's array which creates a multidimensional list. Can we store string variables in this array module? or is there other ways in python to create a multidimensional list? Thanks

Member Avatar for vegaseat
0
2K
Member Avatar for jarograv

I have a code designed to show the different spaces a knight can move to in a standard chess game. It needs to be a function created that outputs the possible spaces in tuples. I can't figure out how to make the output in tuples and I would appreciate it …

Member Avatar for TrustyTony
0
1K
Member Avatar for kacieh80

My boss says we are going to be creating "some cross platform windows type apps that will be used for utilities and some user things" and he is interested in using Python. I have used Python and love it, but only with a web framework and low level scripting. I …

Member Avatar for e-papa
0
403
Member Avatar for rebo544

Hi I'm new with Python (I'm a genetics major who took a computing course as an elective) and I have an assignment that requires me to write a simple text based game. Its an exercise an working with lists, if, elif, and while statements. It also has to be able …

Member Avatar for ultimatebuster
0
379
Member Avatar for ub007

Hi, I got this code snippet with the following usage: [CODE] def main(): # sample usage manager = LoadManager() manager.msg = ('www.example.com', '/') manager.start(threads=5, interval=2, rampup=2) if __name__ == '__main__': main()[/CODE] Works fine,but i would like to supply the following arguments through command line: msg threads interval rampup Plz could …

Member Avatar for richieking
0
224
Member Avatar for Geemon

I am sorry, I had a thread similar to this, but I have encountered a different bug. [CODE=python]def rm_b(acts): print("DINING ROOM") print(descriptions.dining) acts={"north":no_exit, "east":rm_c, "south":rm_e, "west":rm_a, "sandwich":'inv_add(sandwich, acts)'} prompt(acts)[/CODE] The "sandwich":'inv_add(sandwich, acts)' will not work. Same for all of the items I wish to allow the player to pick up. …

Member Avatar for griswolf
0
109
Member Avatar for Archenemie

I would like to destroy the second button by clicking the first I have also tried "return but2.Destroy() but everything returns an error message. Can anyone help? [CODE]import wx class DestroyButton(wx.Frame): def __init__(self, parent, id): wx.Frame.__init__(self, parent, id, "title") panel = wx.Panel(self) but1 = wx.Button(panel, label = "click me") but2 …

Member Avatar for Archenemie
0
121
Member Avatar for D3BuG

Hey guys, So me and my friend are starting up a simple Text-Based-Post-Apocalyptic-Role-Playing-Game. Both of us have had 2 or so months of experience, we are no experts. So, I will appreciate any tips. I have been lurking these forums for a little while now, and decieded this is the …

Member Avatar for D3BuG
0
163
Member Avatar for ramesh125
Member Avatar for bumsfeld

Just curious how you got started. For me it was science class that used Python as the main tool.

Member Avatar for vegaseat
1
124
Member Avatar for LadyRelm2

So I'm new to python, although not terribly new to programming. I am going through some tutorials, but am having some trouble. I am trying to execute a program from the python shell (using Python 3.1). Right now, I have the >>> prompt. I can't seem to get any program …

Member Avatar for snippsat
0
1K
Member Avatar for jamd200

This program allows one to use many different sorting algorithms to sort an iterable. [code=python] from time import* from random import* #GNOME SORT def gnome_sort(lst): pos = 1 while pos < len(lst): if lst[pos] >= lst[pos-1]: pos = pos+1 else: temp = lst[pos] lst[pos] = lst[pos-1] lst[pos-1] = temp if …

Member Avatar for jamd200
0
330
Member Avatar for ultimatebuster

I currently operate 2 access point with the same SSID to spread wifi coverage. They're both protected via WPA2-PSK. One is a router, the other is a windows 7 laptop running Connectify. DNS IP Address for the router is 192.168.0.1 DNS IP Address for Connectify is 192.168.2.1 My android phone …

Member Avatar for ultimatebuster
0
141
Member Avatar for fredfredfred

hi i am a bit of a noob at python but am trying to make a desicsion making game (a bit like zork). i was wondering if anyone knew how i could get the palyer to go to a previouse part of the game without writing it all out again? …

Member Avatar for TrustyTony
0
138
Member Avatar for SoulMazer

I should begin by stating that XML and I don't seem to get along very well. I've just about finished the interface on the level editor for a game I've made, and the next step is generating a XML file so that it can be read into the game dynamically. …

Member Avatar for ultimatebuster
0
154
Member Avatar for felix001

I currently have an XML (pasted below) that I want to place into a dictonary. With each dictonary key being the content of the XML`s <TITLE> markup and the values containing the content of the XML`s <ARTISTS*> markup. [CODE]<EXAMPLE> <CD> <TITLE>TITLE1</TITLE> <ARTIST1>ARTIST-ABC</ARTIST1> <ARTIST2>ARTIST-DEF</ARTIST2> </CD> <CD> <TITLE>TITLE2</TITLE> <ARTIST1>ARTIST-XYZ</ARTIST1> </CD> <CD> <TITLE>TITLE3</TITLE> …

Member Avatar for griswolf
0
131
Member Avatar for novice20

can anyone suggest a simple method to define an enum in python. as some examples floating on net, i used class Animal: DOG=1 CAT=2 print Animal.DOG but it doesn't seem to be working...

Member Avatar for novice20
0
123
Member Avatar for raden1

I am making a simple python game. I would like to be able to restart the game based on user input. You have a certain amount of guesses to guess which way to coin falls. If you lose you would get the option of restarting, instead of just breaking the …

Member Avatar for ultimatebuster
0
131
Member Avatar for ultimatebuster

I currently have Win7 64bit installed. I know it's possible to install python 32bit, GTK32bit and PyGTK 32bit and use it, but is there a way to get python 64bit, gtk 64 bit, and pygtk64 bit working on 2.6.6 without compiling myself?

0
81