64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for William Connery

Hi, I have a small python program with e-mail capabilities that I have pieced together from code snippets found on the internet. The program uses the smtplib module to successfully send an e-mail with an attachment. I want to give users an indication of the percentage of the e-mail that …

Member Avatar for William Connery
0
185
Member Avatar for FireSBurnsmuP

Alright, people. I am writing a simple, command based program simulatin minesweeper, using a txt file for the map. I am getting characters and stuff in from the file, and converting them to integers to determine the size of the map. Now all this is going alright, but I am …

Member Avatar for Infarction
0
3K
Member Avatar for vegaseat

sharky_machine Offline Posting Whiz in Training Join Date: Oct 2006 Location: New York City Posts: 253 Rep Power: Re: Starting Python Today, 1:41 pm | Add to sharky_machine's Reputation | Add Infraction | Flag Bad Post | IP | #86 -------------------------------------------------------------------------------- Vegaseat: I have been reviewing this code you had …

Member Avatar for mattyd
0
306
Member Avatar for assgar

Hello I am working on a search page. When you type the person's name insted of displaying a listing I want to be redirectd to the user information. I am getting a warninig: Warning: cannot modify header information - headers already sent( at start of D:\search.php: 108) in d:\search_play.php on …

Member Avatar for Dani
0
100
Member Avatar for sofianos

Can someone explains what specific "0x30" does in the decimal to binary function below: void dec2bin(long decimal, char *binary) { int k = 0, n = 0; int neg_flag = 0; int remain; char temp[80]; // take care of negative input if (decimal < 0) { decimal = -decimal; neg_flag …

Member Avatar for Rashakil Fol
0
5K
Member Avatar for MattEvans

is it possible, to use, or otherwise import and access the class in a .pm file by a suggested name (this would be after compilation)... here's the lowdown, I've been working on a project for a while now, it is an XML processor. One of the parts of a process …

Member Avatar for MattEvans
0
416
Member Avatar for mikki2

hi, i think i have overwritten ActionListener from my compiler( dont know if it is possible). i accidentally saved a file as ActionListener.java and now anything i try to compile that need ActionListener doesnt work. is there a way i can get it back? i already uninstalled and reinstalled my …

Member Avatar for mikki2
0
80
Member Avatar for mattyd

I am interested in learning if it is indeed possible to sort a Python dict. What I have researched tonight points to that it is [B]not[/B] possible, although snippets were posted inferring that you can sort a dict; I tried some of this code and it did not seem to …

Member Avatar for jrcagle
0
82
Member Avatar for Matt Tacular

I would post this in my other thread, but I marked that as solved so I think less people would look at it. I want to say this: [code]if list1 is empty: do this elif list1 has any value in it: do this[/code] How do I word that in python?

Member Avatar for Matt Tacular
0
82
Member Avatar for nnobakht

hi guys, I have an assignment that is due on december first and i cant seem to get a wrap around it and was wondering if someone could help. I have been given a Robot module with 17 testboards and some predefined functions such as sensor, move, currentPosition, boardSize and …

Member Avatar for nnobakht
0
114
Member Avatar for cambrian

Hi, I tried to run following script of drawing a sin/cos curve using python 2.4 , there is error: [B][COLOR=red]Traceback (most recent call last): File "", line 6, in ? File "C:\Python24\Lib\lib-tk\Tkinter.py", line 1564, in __init__ baseName = os.path.basename(sys.argv[0]) AttributeError: 'module' object has no attribute 'argv'[/COLOR][/B] [B][COLOR=blue]Can anybody tell me …

Member Avatar for vegaseat
0
1K
Member Avatar for aznballerlee

My task is this, and I'm having trouble finishing up the code: [LIST=1] [*][QUOTE] Write a function named deleteS that accepts one character pointer as a parameter and returns no value. The parameter is a C string. This function must remove all of the upper and lower case 's' letters …

Member Avatar for Dani
0
677
Member Avatar for speterson

I am having problems trying to create arrays from text files. The text files created from the program I am working on is like this: Name Test1 Test2 Test3 Avg Grade =================================== Student 999 999 999 999 X The first two lines in this are headings that are added into …

Member Avatar for speterson
0
256
Member Avatar for Teachingmyself

Hey whoever was good enough to take a look at this thread I have to stress I am a complete noob! I picked up "Java programming for the complete beginner" five days ago and here I am with 50% less hair and stuck on a challenge at the end of …

Member Avatar for Teachingmyself
0
107
Member Avatar for Brent.tc

I have recently began programming in the windows api rather than the command prompt\ms-dos environment. I am still using windows 98 and bloodshed dev-cpp 4.9.9.2. I need to know how to disable the START MENU, TASK BAR, and the little boxes in the top right hand corner of the application …

Member Avatar for Ancient Dragon
0
113
Member Avatar for sguy

I've did a program using vb6 to connect to oracle9i, i can establish the connection, the problem is when i execute the query in oracle sql*plus, it can execute successfully, but when run in vb application, the records affected return 0, it do nothing for this query, any setting need …

Member Avatar for sguy
0
159
Member Avatar for snedan

Can someone point me to one, because our high-school library is way too old. And it wont work with Dev-C++(we using in it in CS class). Thank you. [code=c]/* Lawrenceville Press Random Library */ /* October 1997 */ /* The following code works correctly under BOTH */ /* Borland and …

Member Avatar for snedan
0
347
Member Avatar for assgar

Hello I have a search page where you select the letter of the alphabet and the person's information who's name beginning with that letter is displayed. This function is placed on the web page to search and display the information. Everything works except one thing. The problem is if there …

Member Avatar for assgar
0
100
Member Avatar for Matt Tacular

When coding in Tkinter, you can make a button, then when the button is pressed, it refers to something that you defined, or whatever its called when you use the def statement. What I'm wondering, is if there is a way to do this in non Tkinter programing. I am …

Member Avatar for Matt Tacular
0
209
Member Avatar for Corum

For a program I'm making the user needs to enter a string and then it will be checked to see if it is a palindrome. So far I've managed to reverse the ordering of the string entered so that I have the original string and the reverse version of it. …

Member Avatar for mathematician
0
171
Member Avatar for mattyd

Hello: I am trying to use the Python Sleep Function via [I]import time;[/I] I get results but not the results I am looking for. What I am trying to do is rather simple and only for visual effect in a Python GUI: [B]Display GIF --> Sleep (pause) 5-seconds --> Display …

Member Avatar for mattyd
0
426
Member Avatar for kobi

Hello , i have in a director c:\files_t several files t1 t2 t3...t300 i need to analize each on-the analize operation is not importent how can i [B][U]open each file in a loop[/U][/B] and analize them?-in [U][B]C[/B][/U]code thanks ahead

Member Avatar for ~s.o.s~
0
191
Member Avatar for mattyd

Last night I took the advice of a DaniWeb member and looked at some posted Python code; this code was based around a card-type game and involved creating a GIF deck, shuffling, then displaying it. My original question had to do with using a Python dict for my GIF images. …

Member Avatar for Ene Uran
0
6K
Member Avatar for titotoms

Hi, I am new to shell scripting.So someone please do help me out.I have stored two dates in the given format below. cur_time=`date '+ %b%e%T'` time=`ls -lu f1 | cut -d "" -f6` I hope both these will show the dates in this format. for eg. Dec 23 10:10 Now …

Member Avatar for jim mcnamara
0
108
Member Avatar for limergal

I have a code, and this is another problem, that's not working; Given: an int variable k , an int array currentMembers that has been declared and initialized, an int variable nMembers that contains the number of elements in the array, an int variable memberID that has been initialized, and …

Member Avatar for Nick Evan
0
681
Member Avatar for aznballerlee

I've read my book, and there's some topics where I feel weak about: - inline functions - static members - this pointer - copy constructor I've read some tutorials online, but they use some complicated code, and I'm a beginner programmer, so I can't understand their explanations. Just wondering, if …

Member Avatar for oRg
0
154
Member Avatar for ForestTech

Ok, basically I have this giant, great, big, long variable and I still haven't learn the syntax for this sort of thing. How would I break this up? Basically, the variable is information that is being displayed in a tooltip that hovers after a mouseover. [code]var msgBrackenRidge = '<b>Eco-Friendly Residence</b><br><br>51 …

Member Avatar for ForestTech
0
112
Member Avatar for noople

Hi all, I'm working in the C language. I've been stuck for 2 weeks trying to figure out how in the world to populate arrays after reading in an input FILE. the input file has numbers and words, I need to write a loop that grabs the integers and stores …

Member Avatar for noople
0
2K
Member Avatar for Matt Tacular

I am writing a program that has two lists set up, and then the user is prompted for input. I want to tell the program to do one thing if the users answer is found in one list, and do another thing entirely if the variable is in the second …

Member Avatar for Ene Uran
0
89
Member Avatar for dmmckelv

I am having some trouble with the logic for my constructor. The constructor is supposed to open a object of class Rational. The constructor is also supposed to check to make sure the denominator is not zero, the denominator is not negative, and either reduce the fraction or make it …

Member Avatar for dmmckelv
0
381
Member Avatar for Lost in Code...

I've lost my will and need some guidence, yes this is homework, i'm not going to lie about that. I know I could probably figure out how to get the answer she's wanting, but not with what she's provided as a code template below. I'm guessing that I need to …

Member Avatar for Ancient Dragon
0
272
Member Avatar for dunderhead

Hello, I'd like to set a custom style for a textctrl that includes custom tab positions. The script below works on xp and displays custom tab positions for the textctrl, as coded. However, the script fails to set custom tab positions on linux (fedora 5), though it does set custom …

Member Avatar for dunderhead
0
1K
Member Avatar for sneekula

I have a directory with many subdirectories. Each subdirectory contains a small number of image files (.jpg). I would like to accumulate all these image files in a Tkinter listbox, sort them and be able to select blocks of files and send them to another listbox. Ultimately I would like …

Member Avatar for Ene Uran
0
3K
Member Avatar for iwlu

actually I went the wrong way I think, below is the the partial code area and the bold shows what needs tobe, but I know I didnt do it right, can anyone show me an example or where to find help? [code] if (myFields[c_shapeNameField].equals(ShapeName.circle)){ [B][COLOR=red]//ASSIGN a new Circle object to …

Member Avatar for jwenting
0
121
Member Avatar for mattyd

I am a programmer but have just recently ventured into the realm of graphics programming using Python; what I have learned so far is fascinating. It is so thrilling to see a coded design appear on the screen in full color. But, I find, making an image appear is one …

Member Avatar for mattyd
0
137
Member Avatar for mattyd

Is it possible to use files such as GIF files as a value in a Python Dict; that is, is it possible to use GIF files in a Dict and access them directly, rendering them to the screen via Tkinter. I have a group of GIF files I plan to …

Member Avatar for vegaseat
0
130
Member Avatar for ForestTech

Hi, I'm trying to validate a checkbox in the form and I'm not sure which property to use. At the moment, I have a checkbox called "termsandcond" and I'm trying to write a javascript validation script that checks to see if it is ticked or not. [code] function validate(){ var …

Member Avatar for MattEvans
0
116
Member Avatar for danizzil14

Ok, so I'm gonna work on a program, and I want to enable a gui for it. I have a few questions though... Question: Are there any out there that wont need a class structure? (I;ve never gotten them, and I'm working on them right now...) Question: How about easily …

Member Avatar for Ene Uran
0
219
Member Avatar for bala24

Hi all, I would like to know some links that could help me get a hang of using a database instead of the plain old file handling with C. Can somebody help !! Thanks

Member Avatar for bala24
0
104
Member Avatar for shabam

Hello, I'm a newbie and have just spent about 4 hours making the attached code work. The only problem is that it works the opposite of how it should. I have an image map and i loop through and place images to the images that i want to showup when …

0
103
Member Avatar for JoBe

Hi, Got another question concerning an array of strings: I did it this way: [code] int main() { const std::string myArray[] = { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}; for (size_t i = 0; i < 12; i++) std::cout << myArray[i] << '\n'; std::cout …

Member Avatar for JoBe
0
612
Member Avatar for dunderhead

Hello, I am having a problem showing a popup menu in my wxpython script on fedora 5 (fc5); this problem does not occur on xp. I am using wxPython-2.6.3.2-1.fc5, unicode version. I need to add an item to a popup menu after the user selects a file using wx.FileDialog, and …

Member Avatar for vegaseat
0
459
Member Avatar for jam7cacci

Hi! anyone who could help me fix this code for it to work? i need your help very badly. :) i'm having a hard time debugging my program for it to work... i dont know how to use the function rand() properly.. :rolleyes: tried everything i can but it just …

Member Avatar for jam7cacci
0
240
Member Avatar for JoBe

Hello ladies and gents, Was wondering if any of you could check this exercise out, I finished it, but, I'm not sure whether Ive got it exactly right, especially the last two definitions. The exercise is as follows: - Use typedef to define the types unsigned char, const unsigned char, …

Member Avatar for JoBe
0
380
Member Avatar for newtoocsharp

I have successfully got the data reader connected but i cannot figure out how to write the values to an array or variables on a windows form created in Visual C# Express edition all examples use the console. Can someone show me an example of how to write these values …

Member Avatar for JerryShaw
0
95
Member Avatar for fixyourdns

Hello all and thanks in advance, I am attempting to get a PHP mail form to work “send a URL” I must be missing something. I a trying to do something like this page [url]http://www.willowcreek.org/events/evite.asp?ID=6[/url] they are using a third party company looks like SQL back end. So I found …

Member Avatar for fixyourdns
0
77
Member Avatar for laffer

Hello everyone, I'm new to python, but I do have some c and c++ experience, although not extensive. I was looking through the challenges for new people that is stickied at the top of the forum, and was going to work on the * box challenge. I'm going to have …

Member Avatar for laffer
0
230
Member Avatar for Goldfish691

Hi there, Im trying to create a simple program that creates an 2D array of numbers and prints them to the screen via a function. I think i have got most of the way however, I cant seem to get the print function to print correctly. It's been a while …

Member Avatar for Goldfish691
0
116
Member Avatar for Nick Evan

I found some old floppies with some of my early basic programs on them. I made them in vb3 (.bas .frm) but I'd like to open them in VB.NET is there a way to do this? I saved all my files in ASCII. p.s. please don't post [URL="http://www.daniweb.com/techtalkforums/www.advantageware.com/VBAD_free_tools.htm"]this[/URL] link, because …

Member Avatar for Nick Evan
0
244
Member Avatar for ChadW

Hi all. I am building an automated login program for my work scheduler (which is a website already existing online). I have created a form with a timer, that when the computers system time reaches a certain time, another form containing a web browser control launches and goes to the …

Member Avatar for ChadW
0
122

The End.