Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
3
Posts with Upvotes
2
Upvoting Members
3
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
5 Endorsements
Ranked #341
Ranked #1K
~36.4K People Reached
About Me

i'm 20 years old and i'm studying computer science in college.

Interests
poetry, python, c++, games, gaming
PC Specs
BTO gaming grade laptop
Favorite Tags

38 Posted Topics

Member Avatar for adam291086

Just make sure they are both in the same directory (probably c:/python or something like that). Then you can just import the other file and use it like it is a module. [code="python"] import test.py #just imports the file from test.py import * #brings every class and function from the …

Member Avatar for chethan_2
0
14K
Member Avatar for James19142

Imagine your screen being a cube. The x and the y values give you the position at the very front of the screen/cube. y determines how high a point is, and x determines how far a point is from the edges. The z axis then adds a depth to this. …

Member Avatar for James19142
0
272
Member Avatar for iamthwee

Depending on your amount of ram this can make a big difference. I had a similar experience with a windows laptop which had >4 GB ram. Everything above this amount could not be used by the 32bit version of the operating system. This meant changing over to the 64bit version …

Member Avatar for iamthwee
0
275
Member Avatar for dsushmareddy

You should give us some code, and some information about what you are doing. It's hard to say anything about just the error without any context. If the code is too much to post, then consider posting a part of it, or at least explain what you are trying to …

Member Avatar for vegaseat
0
371
Member Avatar for itsnauman

The dot operator is used to acces methodes and variables that are part of a class. It's saying from class abc i'm using the upper function. This function still takes it's parameters in between the brackets. You are just saying that you want to use the upper function from the …

Member Avatar for snippsat
0
388
Member Avatar for java786

just have a loop that handles a turn for each play in order. Something like : while(playing) player1.doTurn() player2.doTurn() if(end) playing = false

Member Avatar for mathijs
0
4K
Member Avatar for nhrnjic6

Your array is made of Person objects. To select the ith object you would use `person[i]`. Then you would like to get to the name of this person which would be `.name`. Combing those you adress your ith name as `person[i].name`. The same goes for your days. The reason for …

Member Avatar for mathijs
0
186
Member Avatar for RikTelner
Member Avatar for srao1

To skip the header lines, just read them in but don't do anything with them. Or look into fseek() to move the file pointer past them. To read in the columns you seem to be on the right track, if they are seperated by tabs you should probably use \t …

Member Avatar for Ancient Dragon
0
6K
Member Avatar for mathijs

Hello, For a hobby project i'm working on i'd like to be able to generate some text based on some random inputs. Now i'd like this text to seem like it was writting by a human. I realise this is pretty hard but i was wondering if anyone could point …

Member Avatar for mathijs
0
124
Member Avatar for karlicek

What is the difference between line 19 and 21 ? Why `**file**` one time and just `file` the other time ? You should also take a look at your code for the binary_tree. Normally when you use a class you would make the members private and use functions to acces …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for andreas.petrou.967
Member Avatar for kplcjl
0
363
Member Avatar for Qazi_1

It's hard for us to know what your teacher put emphasis on. I would say that in general it is always very important to know the connections between the different parts of your theory. Don't just study it by heart, know how it relates to itself. Speaking for my experience, …

Member Avatar for mathijs
0
257
Member Avatar for nkwaga

There is no question here. Please start working on it yourself and when you run into a problem, then ask a question.

Member Avatar for Paul.Esson
0
126
Member Avatar for 26bm

You should probably tell us what you are doing for us to give any tips. For example posting the code you use to draw each frame. Maybe this code could be optimalised, you could be redrawing too many things per frame which would make it impossible for your cpu to …

Member Avatar for 26bm
0
246
Member Avatar for bryann

Well, how do you propose to read the whole file and process every letter without using a for loop ? I think using a for loop here is indeed the right way to go, and if you want to make a function for the whole text, just put a for …

Member Avatar for mathijs
0
252
Member Avatar for becraxie

on line 115 and line 132. I presume you are trying to create a function but you don't define it correctly. If the function takes no arguments you should put ( void ) behind it, and not just a ; (or like you did in output() on line 149 ).

Member Avatar for mathijs
0
534
Member Avatar for mathijs

Hi, i'm running a server in my basement. ubuntu running xampp. And i was wondering if anyone can point me to some good uses of python to use on my server. i'm a bit low on inspiration. I know there's Django and also mod_python. But it doesn't have to be …

0
83
Member Avatar for mathijs

Hey I've got an old server in my basement and i want to host a forum on it. I know there are also online free forum hosting but i want to learn what i'm doing. I want to use this thread to ask for advice. Right now my plan is …

Member Avatar for mathijs
0
128
Member Avatar for tlaloc58

python 2.3 is not that different from 2.6. But there are a lot of diferences with the newest version 3.1.

Member Avatar for vegaseat
0
102
Member Avatar for mathijs

the cursus i'm taking on python (free on internet). said i know enough and that i should try creating some simple games like oxo. the problem is that i don't know how the create a framework for such a game any help is welcome. mathijs p.s. my english may not …

Member Avatar for mathijs
0
135
Member Avatar for scripter_tmrage

You should start by learning some programming languages. [url]http://www.freenetpages.co.uk/hp/alan.gauld/[/url] this is a programming tutorial wich learns you the basics of programming using python. It is a totally free tutorial wich i followed myself.

Member Avatar for wildgoose
0
220
Member Avatar for sravan953

Take a look at the great wxpython tutorial on this site. It helped me to create some graphical programs with python. You should probably just bind some functions to a button wich is not too hard. I'm not sure how to link to the tutorial but you can find it …

Member Avatar for Stefano Mtangoo
0
230
Member Avatar for Nidhi G

Maybe you could create some kind of while loop who keeps checking if a user enters something and that breaks after 10 seconds and displays an error. [code="python"] while current_time < error_time #error_time being your first time plus 10 seconds. if user_input : do_something else: current_time = time.ctime(time.time()) #update current …

Member Avatar for Hummdis
0
320
Member Avatar for sciguy77

I'm not that familiar with webservers in python but isn't it normal that the server just keeps running in the shell? You should probably use something else to see the servers output? Like a web browser or something?

Member Avatar for sciguy77
0
161
Member Avatar for ProgrammersTalk

i'm from Belguim too. crazy coincidence ? Toeval bestaat niet (there's no such thing as luck).

Member Avatar for Ezzaral
0
600
Member Avatar for Kezoor

Just wanted to add that in python 3.0 every class wil be an newstyle class so you better use those to make sure you can easy porte your code to that version of the language

Member Avatar for Kezoor
0
130
Member Avatar for tutti

If you make the new code as a function (def ...), you can just add it anywhere near the other def statements (before you start the game). If not you have to look at your main game loop again and see where to insert the code. I think it is …

Member Avatar for Murtan
0
178
Member Avatar for sumzilla

For the GUI take a look at the wxpython tutorial a this forum. It helped me create a gui for my latest program and you could use something like wxglade to help design it if nescesary

Member Avatar for Stefano Mtangoo
0
356
Member Avatar for NekoGráfico

This seems like a great idea to me too. I would like to participate. About the rules : i would like to be able to use python. You probabled shouldent make the time limit to short (but also not to long :D) I just hope this will come trough and …

Member Avatar for MosaicFuneral
0
162
Member Avatar for BmeEng

The problem with the link is that it highlits the words class and average and for some reason that doesn't work but if you just remove that part you do get to the right page. [url]http://www.daniweb.com/forums/thread66974.html[/url]

Member Avatar for BmeEng
0
166
Member Avatar for Stefano Mtangoo

When i started learning python i was working under windows en i just used idle. But now i've switched to linux and i use eclipse with te pydev-bindings

Member Avatar for mathijs
0
239
Member Avatar for mathijs

hey i'm currently working on a simple rpg in python. First i was gonna make it text-based but now i've read the wxpython tutorial and i want to try an create a GUI for it. My sister is gonna make some artwork for me (i'm not good at that kind …

Member Avatar for mathijs
0
601
Member Avatar for Briz

i suggest you start with properly intending your code. that wil allow it to work and make it easier to read

Member Avatar for Freaky_Chris
0
192
Member Avatar for Dekudude

just wanted to point something out. the difference between idle and just executing a program is that idle doesn't shut off at the end. i don't know if your program takes input but if it only prints things it wil look like it doenst work when you just exec it …

Member Avatar for mathijs
0
3K
Member Avatar for mathijs

hey everyone. i'm Mathijs Creemers i'm 16 and i live in Belguim. i'm starting to learn myself python and i'm gonna get my own computer with linux. i was wondering if there are any other people here who speak dutch. hope my english is not to bad :)

Member Avatar for Ancient Dragon
0
101
Member Avatar for mathijs

i have created an oxo game. wich is a game where you try to get 3 in a row in a 9-square field. i got it running but i have one question. for the computer's moves i predicted what the user would do (2in a row) and then made the …

Member Avatar for mathijs
0
108
Member Avatar for mathijs

I'm having a problem trying to create a game. the point of the game is to guess a random number. i'm learning python and i tought it would be a good exercise. everything went fine (if you dont count syntax errors :)) until i tried to save the program. i …

Member Avatar for mathijs
0
147

The End.