64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for king13

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 …

Member Avatar for king13
0
994
Member Avatar for Gorilla

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 …

Member Avatar for bumsfeld
0
179
Member Avatar for assgar

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 = …

Member Avatar for assgar
0
168
Member Avatar for sneekula

Now I am looking for the best way to reverse the digits in an integer. For instance x = 12345 should become y = 54321.

Member Avatar for ghostdog74
0
466
Member Avatar for Dhruv Shah

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()> …

Member Avatar for web_developer
0
185
Member Avatar for mruane

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 …

Member Avatar for Mouche
0
312
Member Avatar for macca1111

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 = …

Member Avatar for macca1111
0
183
Member Avatar for mruane

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 …

Member Avatar for vegaseat
0
112
Member Avatar for katharnakh

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 …

Member Avatar for vegaseat
0
144
Member Avatar for DarkFlash

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 …

Member Avatar for Ene Uran
0
94
Member Avatar for MarkWalker84

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 …

Member Avatar for MarkWalker84
0
435
Member Avatar for NewVBguy

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

Member Avatar for NewVBguy
0
90
Member Avatar for Mouche

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' …

Member Avatar for Ene Uran
0
302
Member Avatar for slacke

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 …

Member Avatar for slacke
0
205
Member Avatar for macca1111

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 …

Member Avatar for macca1111
0
107
Member Avatar for macca1111

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 …

Member Avatar for macca1111
0
319
Member Avatar for macca1111

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 …

Member Avatar for Zonr_0
0
1K
Member Avatar for sneekula

What is the most efficient way to spell a string in reverse, for instance s = "banana".

Member Avatar for Mouche
0
126
Member Avatar for assgar

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 …

Member Avatar for assgar
0
1K
Member Avatar for mruane

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

Member Avatar for vegaseat
0
155
Member Avatar for irfan.motiwala

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

Member Avatar for katarey
0
325
Member Avatar for DarkFlash

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 …

Member Avatar for DarkFlash
0
278
Member Avatar for sneekula

If I have an integer like x = 12345, how do I separate that into individual integers 1, 2, 3, 4, 5?

Member Avatar for sneekula
0
122
Member Avatar for mruane

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 …

Member Avatar for vegaseat
0
89
Member Avatar for Mouche

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?

Member Avatar for vegaseat
0
141
Member Avatar for jondo

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

Member Avatar for Comatose
0
70
Member Avatar for naheed

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 …

Member Avatar for naheed
0
183
Member Avatar for vickzbrit

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 …

Member Avatar for vickzbrit
0
112
Member Avatar for snedan

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

Member Avatar for ~s.o.s~
0
100
Member Avatar for taya74

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] …

Member Avatar for taya74
0
205
Member Avatar for Juggler

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 …

Member Avatar for Juggler
0
227
Member Avatar for DarkFlash

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:

Member Avatar for DarkFlash
0
353
Member Avatar for spacecowboy123

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 …

Member Avatar for spacecowboy123
0
2K
Member Avatar for irfan.motiwala

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 …

Member Avatar for katarey
0
91
Member Avatar for s88

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 …

Member Avatar for s88
0
300
Member Avatar for matrimforever

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 …

Member Avatar for matrimforever
0
108
Member Avatar for matrimforever

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 …

Member Avatar for matrimforever
0
168
Member Avatar for waldis

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 …

Member Avatar for waldis
0
96
Member Avatar for kissiwat

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 …

Member Avatar for Lerner
0
144
Member Avatar for mruane

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 …

Member Avatar for vegaseat
0
173
Member Avatar for Brent.tc

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?

Member Avatar for WaltP
0
111
Member Avatar for macca1111

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 …

Member Avatar for Ene Uran
0
83
Member Avatar for Mouche

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__

Member Avatar for Mouche
0
108
Member Avatar for FireSBurnsmuP

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 …

Member Avatar for WolfPack
0
153
Member Avatar for Mouche

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 …

Member Avatar for vegaseat
0
137
Member Avatar for Mouche

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 …

Member Avatar for vegaseat
0
164
Member Avatar for HLA91

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 …

Member Avatar for vegaseat
0
178
Member Avatar for ReDeViL

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 …

Member Avatar for ReDeViL
0
137
Member Avatar for GreenDay2001

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. …

Member Avatar for GreenDay2001
0
69
Member Avatar for HLA91

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:

Member Avatar for Mouche
0
345

The End.