Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
88% Quality Score
Upvotes Received
8
Posts with Upvotes
6
Upvoting Members
8
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
~32.8K People Reached
Favorite Tags
Member Avatar for Cup of Squirrel

I've skimmed the manual and cant find the answer to this anywhere: In basic, to add an Input function you would do (for example): [CODE] Input "What is your name? " name$ [/CODE] How do I do this in Python?

Member Avatar for Jason_15
1
17K
Member Avatar for Hummdis

I've tried this a number of different ways and I've even downloaded the Regular Expression reference sheet from addedbytes.com, but I just can't figure out how to move this eregi_replace() statement into a preg_replace() statement. I've read and understood the delimiter requirements for preg_replace(), but I think the problem is …

Member Avatar for Hummdis
0
237
Member Avatar for jacksantho

Hi, Please help me out, i am facing this following error: [B]Fatal error: Maximum execution time of 60 seconds exceeded in C:\xampp\htdocs\timetable\exceldownload.php on line 172[/B] How to rectify this error?

Member Avatar for Hummdis
0
6K
Member Avatar for lloydsbackyard

i need to trim a student id below is my php code <?php $stud_id ='MCC-2011-2012-0001' //what is the code to remove the MCC-2011-2012- so that i can retrieve the 0001 //or code to remove the first 14 characters echo $stud_id; ?> //thanks a lot...:)

Member Avatar for lloydsbackyard
0
192
Member Avatar for chaychie

Hi all, I am facing a problem here which would like to seek helps from the experts. I have a table which is able to display all the data in text field format from the database in a table. The users are able to edit the displayed data. I would …

Member Avatar for Hummdis
0
146
Member Avatar for ryan311

please help to validate my username i know its simple but i can't get it i want only to validate the first 4 input of the username should be a letter. i try to use the preg_match function but i can't get it correctly.

Member Avatar for mschroeder
0
87
Member Avatar for nyler01

Hi.. Please help me in creating a script that will show the hidden textbox if a checkbox is checked.. I don't have any idea on how to do this. Thanks in advance..

Member Avatar for Hummdis
0
190
Member Avatar for arthurav

I am trying to implement a bruteforce check on a loginpage. It logs the logins from a certain ip. If there are more than 10 it will stop saving the logins in the database and will set the $nopage variable to 1. [CODE]$ip=$_SERVER['REMOTE_ADDR']; $res_check_bruteforce=$teste->query("select count(id),max(time) from bruteforce where ip='$ip'"); echo …

Member Avatar for Hummdis
0
112
Member Avatar for ewiggin

I am a beginner, and I am trying to run my first script in the windows command line. When I try to open the file I get the following error: >>> script1 Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'script1' is not defined I …

Member Avatar for Hummdis
0
150
Member Avatar for nsutton

Ok so I'm working on an address book app in python. the user writes contacts into a txt file and can search for it and everything.(run the code yourself if you want to see what it does) now for my problem, under "#if editing" i want have the user search …

Member Avatar for nsutton
0
2K
Member Avatar for nsutton

How can i use this code (below) to take the random numbers from the dice roll and change 6 to "A" and 5 to "K" and ect. [CODE]#Poker Dice! Noah Sutton 4/24/10 import random rounds=0 #roll dice def roll_dice(): #Dice variables dice1=random.randint(1,6) dice2=random.randint(1,6) dice3=random.randint(1,6) dice4=random.randint(1,6) dice5=random.randint(1,6) '1'=9 '2'=10 '3'=J '4'=Q …

Member Avatar for Hummdis
0
4K
Member Avatar for joshua91

could someone please help me in forming a loop as i am stuck... [CODE] def numbergen(): randomnumber = random.randint(0,100) print randomnumber def main(): Question = float(raw_input("Do you wish to play the Guess a Number Game?(Y/N)")) for Question: if Question == N: break else: print "randomnumber" main()[/CODE]

Member Avatar for Hummdis
0
154
Member Avatar for Romber

Hi everyone, This is my first time here, so if I don't do everything up to how it should be done, bear with me. Anyways, for a project in my python class I am having trouble generating a webpage with clickable links. I am using Python 2.6.5 and will be …

Member Avatar for Hummdis
0
610
Member Avatar for micka10

Hello, I want to create a client in python that receives mpeg4 stream from an IP camera. I was wondering if there is any rtsp library for python that i can use to send a rtsp request to the server? I'm just starting to learn python, so your help is …

Member Avatar for Hummdis
0
115
Member Avatar for Romber

So what I am trying to do is give a user 4 links of stories that are relating to the topic. (In my specific case, they choose microsoft and I return them 4 top stories about the company). My problem is pairing the description with the link. So far, this …

Member Avatar for Hummdis
0
138
Member Avatar for pythonnewbie10

I have this program that i have been working on which plays rock paper scissors game with the user. [code=syntax] '''play a game of Rock, Paper, Scissors''' from random import randint def firstChooserWins( chooserChoice, otherChoice ): #print chooserChoice, otherChoice if (chooserChoice == "Rock" and otherChoice == "Scissors") or \ (chooserChoice …

Member Avatar for TrustyTony
0
141
Member Avatar for Hummdis

I'm using Python and the Python CGI module to do some web development for a system's administrative access page. The problem I have is that the current features allow you to reboot the system, power off the system and stop/start/restart system services. The system is very limited in what's running …

Member Avatar for Hummdis
0
368
Member Avatar for Hummdis

I have a toaster system that does one thing. I'm looking to provide some network troubleshooting ability to the extremely stripped Linux OS by providing the 'dig' command. However, it appears that 'dig' is only available via the 'bind' package. My questions is: has anyone ever successfully buildt a dig …

Member Avatar for Hummdis
0
160
Member Avatar for Hummdis

I've been going through some PHP code for an open source applications and I've been seeing a lot of use of the "@" symbol in front of functions. For example: [code=php] if (!@copy($_FILE['attachment'], $dest)) { return $error['failed']; } [/code] My question is: what is the "@" symbol in front of …

Member Avatar for Hummdis
0
161
Member Avatar for Hummdis

I've been writing PHP for about two years now, nothing complex, mostly just HTML form processing scripts. My latest project for a customer has over 40 items in the form. It's a dynamic form using some JavaScript and PHP that displays certain parts of the form based on other options …

Member Avatar for Hummdis
0
176
Member Avatar for Millsy013

[code=php]//create and issue the first query $add_topic_sql = "INSERT INTO forum_topics (topic_title, topic_create_time, topic_owner) VALUES ('$_POST[topic_title]',now(),'$_POST[topic_owner]')"; $add_topic_res = mysql_query($conn, $add_topic_sql) or die(mysql_error($conn)); //get the id of the last query $topic_id = mysql_insert_id($mysql);[/code]

Member Avatar for network18
0
81
Member Avatar for valonesal

Ok so I wrote a little script that allows me to call information from my database. Basicly this. <table> <tr> <td id="seal"><?php include("sql.php"); echo "$websiteaddress"; ?></td></tr> </table> All this does is connects to the sql file echoing the users website address thus I type in mywebsite.com/index.php?name=aname and it returns their …

Member Avatar for Hummdis
0
111
Member Avatar for Nidhi G

Hi I wish to write a program that will perform some action on a key press event but if there is no key press in a certain period of time say 10 seconds, it should display an error message and exit. I am working on windows and am using the …

Member Avatar for Hummdis
0
304