Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
65% Quality Score
Upvotes Received
8
Posts with Upvotes
7
Upvoting Members
6
Downvotes Received
5
Posts with Downvotes
3
Downvoting Members
4
2 Commented Posts
0 Endorsements
Ranked #2K
~74.9K People Reached
This member's community profile is only visible to logged in members until they have earned 15 reputation points.

22 Posted Topics

Member Avatar for Steph102

if you want a program that tells you the total heads, tails, the percentage of both of these, prints the results in a easy format such as: H T H T and allows you to export this data to a .txt file previously created i have already programmed such a …

Member Avatar for Reverend Jim
2
16K
Member Avatar for vegaseat

I just recently wanted to dabble in GUI programming so I took one of my older programs and added a GUI to it. By the way: I'm using python 3.1 and the tkinter that comes with it... they changed the module name from Tkinter to tkinter in 3.1... [code=python] import …

Member Avatar for vegaseat
9
45K
Member Avatar for Arrorn

I'm working on a site that on the homepage it rips posts off of a certain forum in the forums... That works perfectly. I am now trying to parse bbcode from the posts. [CODE] function BBCode ($string) { global $globals; $search = array(); $replace = array(); $con = mysql_connect($globals['forum']['host'].':'.$globals['forum']['port'],$globals['forum']['user'],$globals['forum']['pass']); mysql_select_db($globals['forum']['db'],$con); …

Member Avatar for anjali.munish.chauhan
0
1K
Member Avatar for sear899

I recommend reposting this on the Minecraft forums: [URL="http://www.minecraftforums.net"]http://www.minecraftforums.net[/URL] or finding help on the Bukkit forums: [URL="http://www.bukkit.org"]http://www.bukkit.org[/URL] Bukkit forums specializes in minecraft modding with many of the staff or developers working with MCP or on the MCP project so that may be the place to post.

Member Avatar for NormR1
0
217
Member Avatar for Farhad.idrees

Also what you are referring to is not an Array at all. Many languages say an array is a key => value which is what you are saying you want. In Java there is a distinction between an Array (list) and a Map (Array in other languages, so on). So …

Member Avatar for Farhad.idrees
0
150
Member Avatar for triumphost

My line numbers that I'm getting from your code is not lining up with that of your exception. Could you highlight or comment or do something to line 155 so we can see it in context?

Member Avatar for triumphost
0
303
Member Avatar for yazz110

I found an AP Computer Science A book extremely helpful. It takes the stance that you know nothing about programming. I got a 5 on the test so its fairly easy to learn and understand. I suggest going to your local Barnes & Noble and looking in their reference section …

Member Avatar for peter_budo
0
285
Member Avatar for ericwalter

Fairly straight forward [CODE=java] class ComplexNumber{ private double real; private double imaginary; public ComplexNumber(double r, double i){ setReal(r); setImaginary(i); } public ComplexNumber(){ setReal(0); setImaginary(0); } public double getReal(){ return real; } public double getImaginary(){ return imaginary; } public void setReal(double r){ real = r; } public void setImaginary(double i){ imaginary …

Member Avatar for peter_budo
0
6K
Member Avatar for sirlink99

I recommend using a simple MySQL database. You can find MySQL libs online for free and either rewrite one or find one with a lenient license. You just need a online MySQL database, this can be solved with a web host, or install MySQL on a local comp thats on …

Member Avatar for Ezzaral
0
688
Member Avatar for yazz110

Very simple solution, get an IDE that error checks. I recommend Eclipse or NetBeans. I personally use Eclipse and threw your code into a new class and it found several errors that have not yet been addressed. Also one error that eclipse will not catch because it cannot catch Intention …

Member Avatar for yazz110
0
159
Member Avatar for AlmostRambo

you have not defined the function db_single... meaning that function doesn't exist in this code.

Member Avatar for Arrorn
0
313
Member Avatar for sneekula

Ok what you do is download the python 3.1 .tar.bz2 file [URL="http://sites.google.com/site/theunofficialguide/Home/Programs"]here[/URL]. extract it to your desktop. this is my website and its unfinished... enter this in your terminal.. [CODE] cd ~/Desktop/Python-3.1/ ./configure [/CODE] if this turns up no errors continue else your missing some dependencies. [CODE] make sudo make …

Member Avatar for pdxwebdev
0
1K
Member Avatar for Arrorn

How do I run a .py file from another python file.... I want a program depending upon the option you choose to run a different python program... Ho do i do this... I have tried: [CODE=python] import os if os.path.isfile('file.py'): exec(open('file.py').read) [/CODE] and it requires everything to be global.... only …

Member Avatar for Arrorn
0
113
Member Avatar for Norbert X

if you post what y our having problems with on the save function i could take a look at it... not making any promises though...

Member Avatar for Norbert X
0
652
Member Avatar for denniskhor

dude... he may not be from an English speaking country and using a translator or what little knowledge they have to type in English... there are people like that on this site... and when have you known a translator to translate text in grammatically correct English... be a little more …

Member Avatar for denniskhor
0
236
Member Avatar for Arrorn

How do I import a variable from another function in the same class [code=Python] class W(object): #my class def variable(self): #one of my functions f = 5 def printf(self): #what do i put here to import f from the function variable... #I'm currently working with python 3.1. #I know its …

Member Avatar for Arrorn
0
315
Member Avatar for murnshaw

also for the last line of your code [code=python] index = index + 1 #you could simplify this to index += 1 [/code] this does the exact same thing and is simpler to write...

Member Avatar for Arrorn
0
1K
Member Avatar for toadzky

yes some more details would be more useful... such as what you are trying to shut down... a server or your program... and some snippets of code that you are having trouble with... that way we can see what you have attempted and what you have included in your program...

Member Avatar for vidaj
0
191
Member Avatar for BlueNN

yes to compile the answers into one post there are three ways that me and my associates can think of: putting: [code=python] #code here input('Please press enter to close: ') #raw_input() on any IDLE except 3 #or import time #code here time.sleep(10) #put the time in sec you want it …

Member Avatar for BlueNN
0
156
Member Avatar for JeyC

don't know about creating a .txt but you can write in one, read one, and several other things i normally go about writing in one similar to vegaseat: [code=python] yourface = 1 f = open('randomfile.txt', 'w') write = ' if you have integers in your code you want to write …

Member Avatar for Arrorn
0
138
Member Avatar for harrykokil

you could also write a function such as: [code=python] import time def function(self): while : time.sleep(1) #you put the time to wait in seconds here #rest of function [/code] you could use time.sleep() in a number of scenarios...

Member Avatar for Arrorn
0
63
Member Avatar for Arrorn

I am writing a dice rolling simulation and i need help redefining a variable inside a loop.

Member Avatar for woooee
0
104

The End.