- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 7
- Posts with Upvotes
- 6
- Upvoting Members
- 5
- Downvotes Received
- 5
- Posts with Downvotes
- 3
- Downvoting Members
- 4
I know Java, Python, PHP, HTML and other variations (XHTML,HTML5,XML), CSS and other variations (CSS3), and a teeny bit of JavaScript
I am fluent in English, sarcasm, irony. I also know some Japanese.
I am allergic to stupid.
- Interests
- Programming, Administration
- PC Specs
- AMD Phenom 9850 Quad-Core 2.50 GHz, 4 GB DDR2 RAM, 640 GB HDD (Soon to be 2.64 TB), 64-Bit Windows 7
Re:
This 'sticky' thread is for working examples of Python GUI code. Note that most wxPython examples have their own thread. Please use comments in your code to help the reader. The example code should be usable as a template, so folks get a feel for the toolkit and can use … |
|
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); … |
|
Re:
Hi everyone. I am just learning Python on class so I am really at the basic. I need to write a python program that will flip a coin 100 times and then tell how many times tails and heads were flipped. This is what I have so far but I … |
|
Re:
If anyone knows Java and is semifamiliar with modding it, can you interpret this error code. == MCP v4.3 == > Recompiling client... javac.exe -g -verbose -classpath "lib/;lib/*;jars/bin/minecraft.jar;jars/bin/jin put.jar;jars/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath src/minecraft -d bin/minecraft src/minecraft\net\minecraft\client\*.java src/minecraft\net\minec raft\isom\*.java src/minecraft\net\minecraft\src\*.java conf/patches/*.java fai led. Return code : 1 == ERRORS FOUND == src\minecraft\net\minecraft\src\ItemChain.java:6: invalid … |
|
Re:
Hi i m having problem... i want to give each random number to each month.. but it gives erros [CODE] public class a { public static void main(String[] args) { float average = 0f; String[] Year = {"Jan","Feb","Mar","Apr","May","Apr"}; int[] values = new int[5]; for(int i=0; i<values.length; i++) { values[i] = … |
|
Re:
How do I call the function in the button section?? I tried doing target(); and got when the program ran, it gave me some exception thing.. [CODE] package smart; import java.applet.Applet; import java.awt.AWTEvent; import java.awt.BorderLayout; import java.awt.Canvas; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.GridLayout; import java.awt.Point; import java.awt.event.ActionEvent; import … |
|
Re:
Ok so I'm new at programming java(well not that new) but I do tend to hit a lot of wall and give up out of frustration. I need help. Can anyone suggest a book for beginners or something. I'm actually doing a computing course but I really don't wanna ask … |
|
Re:
i) Create a class called Complex for performing arithmetic with complex numbers. ii) Write a driver program to test your class. Complex numbers have the form realPart+imaginaryPart *i Where i is: √-1 Use floating point variables to represent the private data of the class. Provide a constructor method that enables … |
|
Re:
I am working on a snake game. I have posted about it before. It is going well, and now I would like to implement a high score option, that saves the score online, so that everyone can see it. I am planning to make a menu, that will have a … |
|
Re:
[code]import java.util.*; public class SelectSort { // instance variables - replace the example below with your own public int x; public ArrayList<Integer> a; public int n; public SelectSort(int b) { a = new ArrayList<Integer>() ; n = a.size(); for(int i = 1; i < n; i++) { SortNow(); //tried everything … |
|
Re:
I've been looking at this too long and just cannot figure out what's wrong here :( [code] <?php $config['name'] = 'admin'; $config['password'] = 'xxxxxxxx'; $config['email'] = 'admin@rltz.com'; $config['db_user'] = 'ephrils'; $config['db_pass'] = 'xxxxxxxx'; $config['db_data'] = 'addv2'; $config['db_host'] = 'addv22.rltz.com'; $con = mysql_connect('addv22.rltz.com','ephrils','xxxxxxxx'); if (!$con) { die('Could not connect: ' . … |
|
Re:
I am still rather new to the Linux OS and need some detailed advice on the installation of Python3.1 on my Ubuntu machine. Python3.1 is not in the Ubuntu package repository yet. |
|
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 … |
|
Re:
Yeah so I was bored in class cuz I didnt know the test wasn't today, so I made part of a Python game. The battling works so far, and I might need some help later on so if anyone could could help me I'd appreaciate it. Norbert Quest: [code=python]import random … |
|
Re:
My question is :' if my "[2009'07'12 @ 22'49'47] main page.jpg" store in "C:\image folder\", but the timestamp [2009'07'12 @ 22'49'47] will be inconsistent, so i wan use behind "main page.jpg" to find "[2009'07'12 @ 22'49'47] main page.jpg", and print the link like "C:\image folder\[2009'07'12 @ 22'49'47] main page.jpg" as … |
|
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 … |
|
Re:
Sorry for the noobish question, but I'm trying to write a function that accepts strings as inputs. Here's what I've got: def backwards(x): word = "x" index = 1 while index < len(word)+1: letter = word[-index] print letter index = index + 1 Whenever I call the function, such as … |
|
Re:
I am writing a ping app for my networking class. I have the ping part of the code working perfectly, my issue is in shutting down my "ping" server. If I run it with while True, not even ctrl-C will shut it down till the next ping request. I can … |
|
Re:
I've just started in Python and I'm still feeling my way around, I tried to create a quick program to display "Welcome to Python!" without the quotes. The entirety of the code is this: [code]print('Welcome to Python!')[/code] However, when I double-click on the .py file Python opens up for less … |
|
Re:
Are there python commands to achieve the following : 1. Create new text files 2. Write certain text to these file (similar to DOS Echo> command ???) |
|
Re:
how do I trigger a function after x seconds in pygame?? i have seen the "pygame.time.set_timer(event,ms), but i want to trigger a function instead of an event. hoping for a quick reply thanks... |
|
I am writing a dice rolling simulation and i need help redefining a variable inside a loop. |