64,152 Solved Topics
Remove Filter ![]() | |
Hello, I'm having issues with my final total for charges. When I run my program, it either comes up with "0" or if I don't declare my variable, it comes up with a long string of numbers. My total hours works great, but not my charges. Can someone take a … | |
I have created a project using Jython (there was no bug in compling it by my IDE) I also have read the topic named [B]Py2exe help [/B](Ene Uran---Oct 23rd 2006 6:43 pm) and I can tell you that it really helped me so much. But in this project, I cannot … | |
Hi Can you see somthing I am missing? My form is passing arrays to the process and the process is producing some errors. I cannot see any problems. In fact I have two other simular foreach loops that are not creating errors. Thanks [php] <?php $fee2_choice = strip_tags(trim($_POST['fee2_choice'])); $fee2_choice = … | |
Now I am looking for the best way to reverse the digits in an integer. For instance x = 12345 should become y = 54321. | |
hello there i want to send an email in which user has selected an attachment to send. below is the code for it: [code=asp.net] [COLOR=#0000ff] Imports[/COLOR][COLOR=#000000] System.Web.Mail[/COLOR] [COLOR=#0000ff]Public[/COLOR][COLOR=#000000] [/COLOR][COLOR=#0000ff]Class[/COLOR][COLOR=#000000] WebForm1[/COLOR] [COLOR=#0000ff]Inherits[/COLOR] System.Web.UI.Page #[COLOR=#0000ff]Region[/COLOR] " Web Form Designer Generated Code " [COLOR=#008000]'This call is required by the Web Form Designer. [/COLOR]<System.Diagnostics.DebuggerStepThrough()> … | |
My fiance is having a birthday in less than 20 days. I am therefore trying to create a program for her (trust me, it is not intended to be the only gift) to play around with, and hopefully enjoy. The only problem I am having so far, is that when … ![]() | |
Hi, I have a card class and deck class. The cards are in suitList rankList. I call the cards from a file cards.txt and split them into the above. I need to import the cards.txt and then shuffle them. I have the following code: def shuffle(self): import random nCards = … | |
I am trying Vegaseat's suggestion in one of my threads to use shuffled lists for combat in my text adventure. He suggested creating two lists, myhit_list[1, 0, 2, 0, 3, 0, 0, 1] and monsterhit_list[1, 0, 2, 0, 3, 0, 0, 1] and using random.shuffle(myhit_list) and random.shuffle(monsterhit_list) iterated with "I … | |
Hi, I finding difficult to execute this program. The wx.Notebook i created is coming on the splitted frame(self.p2). How do I that. I am started to learn wxPython, and when I run the code, the code doesnot close gracefully, it throughs me an error. "pythonw.exe has encountered a problem and … | |
Hey guys, I'm making a CMS for my website with python. I was wondering if anybody could give me some insight on (perhaps) an OS function that will copy a file from one folder and 'paste' it in another. thanks!:cheesy: Alright...I couldn't find anything as far as the os module … | |
Hi guys! Im new to this forum so go easy on me :-) I've got a background in C programming and have recently moved to Python for a GUI project im working on. So far im loving it - compared to VC++ wxPython is pure bliss. Im having a slight … | |
Hi there, I'm new to this sqlserver package. Is VB6 can able to work with this package like connectivity issues?. Can somebody advice me about this because my previous experience is purely on ms access database as backend front end vb6. thnx in advance.. newvbguy | |
![]() | I'd like to flip the keys and the values in a dictionary. Say I have this dictionary: [php] positions = {'secretary' : 'Jessica', 'IT manager' : 'Matt', 'sales worker' : 'Linda', 'boss' : 'Chris'} [/php] and I want this: [php] employees = {'Jessica' : 'secretary', 'Matt' : 'IT manager', 'Linda' … |
Hello I need to work out some parallel port output signals. I found a short program to test bits on that port. It tells I need to set the permission with ioperm() as this: [CODE] #include <asm/io.h> #include <iostream> #include <cstdlib> #include <unistd.h> #define base 0x378 /* printer port base … | |
Hi, I have a class for Cards, that the suits and ranks are placed in suitList = ("Hearts","Diamonds"... rankList = ("","Ace","2"... however I need to read these values from a file instead. Once I read the file I need to be able to sort the suits and ranks then print … | |
Hi, I need some help on how to read a file 2 h 3 s 6 d Ace s ... Importing this into Python and then sorting and printing in order. I have done some work, yet I can never seem to get the data to Python and split it … | |
Hi, I have the following code working fine. What I would like to try is when n cards are randomly selected, to print the cards in a graphics window. I want to add a new class draw(self,win,center) that displays the card. I have a set of bmp cards. [php]# Import … | |
What is the most efficient way to spell a string in reverse, for instance s = "banana". ![]() | |
Hi Developemnt on win2003 server. Final server will be linux Apache,Mysql and PHP is being used. I use 2 scripts(form and process). The form displays multiple dynamic rows with chechboxs, input box for units of service, description of the service and each row has its own dropdown list of unit … | |
i get this error when trying to run my program. Traceback (most recent call last): File "C:\Python24\secretgarden.pyw", line 12, in -toplevel- denaystart() File "C:\Python24\secretgarden.pyw", line 7, in denaystart prompt_login() NameError: global name 'prompt_login' is not defined | |
well i have done asp coding in asp but when i want 2 run in internet explorer it does not work [URL]http://localhost:8080/UCComplain/UserComplain.asp[/URL] well i have copied folder to wwwroot and iis 5 is also running but how i run asp file to see result in ie5 what is the problem | |
Hey guys Just joined up the forum, I've been looking for a good community of python users! I'm 17 and I'm in colleg right now getting my transfer degree so I can go major in software development. I've worked with mostly web based langauges for the last couple of years … | |
If I have an integer like x = 12345, how do I separate that into individual integers 1, 2, 3, 4, 5? | |
I hope this thread does not offend anyone. I get the impression that most of us are college age prog5rammers, so this might be easily solved. I am attempting to make a menstrual cycle calculator for my fiance. To begin with, I thought about going about it in the following … | |
![]() | So if I want to store a list of items (such as a bunch of instances of a class), what's better to use: tuples or lists? I understand that lists are mutable, so what are the advantages to tuples? |
I need to format a 4 byte numeric value that decodes results = (byte1 * 256 * 256 * 256) + (byte2 * 256 * 256) + (byte3 * 256) + byte4 can it be done :?: /jondo | |
i wanna know how to draw text over picture box in multiple lines using print method if i used label control over picture box to draw text in multiple lines then i dont know how to save picture with label if anybody hve solution of my problems then pls reply … | |
Enter the miles driven, use -1 to end: Enter the gallons : The miles / gallon for this tank was Enter the miles driven, use -1 to end: Enter the gallons used (-1 to end) : The miles / gallon for this tank was Enter the miles driven, use -1 … | |
hi guys i need a little hint on how to break an integer into its component so if you have like 1567 i need to get 4 integers with 1,5,6,7. Thank you | |
I have created a simple online form using Access with ColdFusion using Dreamweaver. It works perfectly while my testing server is on my computer but when I upload it to the server it comes up with error message: [B]'Error Executing Database Query. [/B] [COLOR=black][Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft Access Driver] … | |
I have a question about manipulating an array in C++. In my program, a cstring is entered. The string is printed. Finally, the string must be printed in reverse and displayed. The final part is where I am having my problem. I have the strlen function determine the legnth of … | |
Hey guys, I'm just about done with a program and I need to know how to launch an IE window (or any browser I suppose) from the command prompt. Can anybody help me? thanks!:cheesy: | |
Hi all, I'm new to C++ and am having a problem with a piece I am writing for an assignment. The problem area is below. [code] //arrival process on the corporate links if (clock % 4 == 0) { double randomno randomno = randgen; // Generate random number if (randomno … | |
i m opening rthe project in visual interdev when at the time server mode it shows message that which server u want to connect i m writning p4 my computer and also localhost it does not correct so i cannot work in interdev what shouled i do if i want … | |
The problem is that when I enter the choice, nothing happens and the answer remains 0. Please help I'm new at this and I tried everything!! Thanks [code=c] #include <stdio.h> #include <conio.h> main () { int a,b; float answer; char choice; clrscr(); printf ("\nEnter a number: "); scanf ("%d",&a); printf … | |
In the following code, how do I change the line under [code] cout << "\nThe value of bogus in num1 is " << num1.bogus;[/code] to get it to compile correctly. I know its calling for theValue which is private. Not sure what to change to make it work: [code] #include … | |
Hi all, I need help turning this: W = 35.74 + 0.6215t - 35.75 (v0.16) + 0.4275t(v0.16) into code. I guess the real problem is the how to turn v to the .16th power using this function: double pow(double [I]x[/I], double [I]y[/I]) I know how to open a file with … | |
Hi, Once I had a similar problem when I tried to read a binary file on a pc and I failed, but I was able to read it in Linux (there were actually different versions of the file), so I figured it's a corrupted file, thou the hex dump looked … | |
All I'm trying to do is write a very simple loop program in C to enter the ages of four sprogs between 5 and 7. To display their total and average age using do, while and if statements. I also need to display an error message if an invalid number … | |
Alright, so far, what I think the problem begins with is not having a full understanding of syntax, and tabs versus spaces. I have my tab set to four spaces. When I run the following code, the Python GUI (the black ms-dos looking thing, right?) flashes for only a few … | |
I need help with using the cin command\function. Any time I try to use it outside of the main function it does not work what am I doing wrong? | |
Hi, A simple question I think. I want to create a function that updates variables if a certain condition is met. For example def main(): c=d=e=0 if c[1] == 0: c=c+1 d=d+1 e=e+1 I want to create a function that adds the 1 to c,d,e automatically. def BB(c,d,e) Add 1 … | |
![]() | hey... I wasn't able to find much information on these class methods other than __init__ ... could you explain what these (and maybe some others) do or perhaps just give me a link to a page that explains them: def __repr__ def __str__ def __cmp__ ![]() |
Alright, I cannot get the getline function to work. I have iostream included, using namespace std, and here is the syntax I have down: [inlinecode]cin.getline(playerOne, 21);[/inlinecode] with playerOne declared previously as a string, and I want its max input to be 20 characters. What's going on here? It's not working … | |
![]() | I searched the forum and couldn't find anything on this, so I guses I'll give this tiny topic its own thread. What's the point of creating a main() function and calling it at the end of your program? Are there advantages to this method in comparison to just writing the … |
![]() | say you have a list: [php] list = [1,a,2,b,3,c,4,d,5,e,6,f,7,g,8,h,9,i,10,j,11,k,12,l,13] [/php] What's the easiest loop set up if I want to store each number (every other slot) into another list? The above list is actually text from a file read and then split with "1 a" and such on each line … |
Hi When i place this in my script import time.sleep (2) i would like my script to wait for 2 seconds then continue. But when i run it the left bracket is highlighted in red then when iremove the left bracket as i assume that is not supposed to be … | |
Write a program that accepts a number and produces a pattern as shown in the following sample outputs. Line = 3 *.* .* * Line = 8 .*.*.*.* *.*.*.* .*.*.* *.*.* .*.* *.* .* i've just learnt to use the setw() command..... but how do you fill up the alternate … | |
![]() | ok, well i know sql well but i am new to MySQL, learned that(mysql) few months back. however i have installed a new software called Altova DatabaseSpy to make my work much easier. Its working with all other databases Oracle, MSACCESS and all but not running or connecting with MySQL. … ![]() |
Hi Im looking for a time delay code so my script runs to certain line waits for the time specified then continues.Ive found some but they seem to long and complicated. any ideas or links, books ect... Many Thanks HlA91 STAY COOL AND DONT GET STRESSED!:cool: ![]() |
The End.