43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for hanifa

Hi guys i am pretty new to XML. Well I have transform a xml file in format A(let's say) to format B. By surfing the websites, I found that XLST can do this.But these 2 formats dun not neccesarily have easy transforms like tag-to-tag. They can be transformed from tag-to-tag,tag-to-attribute …

Software Development xml
Member Avatar for MattEvans
0
107
Member Avatar for bhavna_816

[COLOR=#0000ff]I am writing a code in VB.NET to access MS Outlook folders.Its giving all the folders and their msgs but when any calender meeting or any other things other than the mails appears any the folders like deleted items ,Inbox etc. then it shows exception in line oMsg = oItems.Item(i) …

0
78
Member Avatar for mattyd

About one month ago or so my Dr. Python compiler (interpreter) died. I had closed Dr. Python to go and eat dinner then came back to re-open and continued where I had stopped and... nothing. This came at a terrible time as I was in the middle of some very …

Software Development gui python
Member Avatar for Ene Uran
0
201
Member Avatar for stevetook

Hello, I have three classes: Circle, Canvas and GameBoard. When I try to compile this I get the error `'cannot resolve symbol - constructor Circle(int,int,java.lang.string)'` I noticed if I delete the parameters of the Circle it will compile. Please could anyone tell me why it doesnt understand the parameters? Do …

Software Development java
Member Avatar for peter_budo
0
203
Member Avatar for sneekula

I know that one has to be careful with mutable arguments like lists applied to function calls, so that things like this won't accidentally happen: [php]def add_item(list2): list2.append(99) return list2 list1 = [1, 2, 3] list3 = add_item(list1) print list1 # [1, 2, 3, 99] oops! print list3 # [1, …

Software Development python
Member Avatar for jrcagle
0
230
Member Avatar for unclepauly

i am using CreateThread to, unsurprisingly, start a thread :p is it possible to return a value? i need to return either true or false at least. ideally i need to return 0, 1 or 2 to indicate the success of certain things that go on inside the thread. I …

Software Development c
0
76
Member Avatar for needs_help

Hi, I am a dev-pascal program maker that wants to know how to read a line for a limited amount of time. Like for example, if I only wanted to give the user 1 second or 1 milisecond to send in data, how do I do it?

Software Development pascal
Member Avatar for needs_help
0
97
Member Avatar for BobbyBB

Im REALLY new to Java Programming and wanted to teach myself java. I download the newest version of the JDK from the website and have run into the javac problem. I keep getting the error that javac is not found or its not a operable program. (Something like that.) I've …

Software Development java
Member Avatar for BobbyBB
0
113
Member Avatar for WhYuLoOkIn

[COLOR=#0000ff][COLOR=black]I am using Visual Basic Express, I hope you all still can help me. This program is used to calculate a cars speed related to speed limit. It has two user inputs, cars speed and speed limit. It will calculate any two digit # and one digit #, but when …

Software Development vb.net visual-basic
Member Avatar for WhYuLoOkIn
0
102
Member Avatar for hiekal85

this question want the calender,with a number of week and days. in germany,the 1st week is started with monday.i have a problem with the year 2000 and the month is in january.when i type it, it shows the 1st week is in 10th.january 2000, it should be on 3rd january …

Software Development c++
Member Avatar for Ancient Dragon
0
131
Member Avatar for babutche

Hi, I am trying to average student GPA. I thought I had this problem solved but then I ran it and the GPA did not come out correct. Can anyone give any suggestions? [CODE]import string import math class Student: def __init__(self, name, hours, qpoints): self.name = name self.hours = float(hours) …

Software Development python
Member Avatar for babutche
0
1K
Member Avatar for sneekula

I took a mixed type list and set out to find the min and max values. The results are very surprising to me: [php]mixed_list = [11, 'Dick', 12, 'Mary', 7, 'Zoe', 9, 700, 777, 'Paul', 13456789] mn = min(mixed_list) mx = max(mixed_list) print mn, type(mn) # 7 <type 'int'> print …

Software Development python
Member Avatar for vegaseat
0
3K
Member Avatar for bhavna_816

I want to parse this expression PFolder=Personal Folders&SFolder=Inbox&Message=3 and want to extract Personal Folders from PFolder,Inbox from SFolder and 3 from Message,so that i can further use this things "Personal Folders,Inbox and 3"in the program. How can I do it?

Software Development perl
Member Avatar for bhavna_816
0
84
Member Avatar for buffy2

i hope to find help pleaz i want to criat a complex Report by geting data from access table database thanks

Software Development visual-basic
Member Avatar for dmetz
0
144
Member Avatar for sneekula

I was experimenting with the nested list example in thread: [URL]http://www.daniweb.com/techtalkforums/post246791-72.html[/URL] and was trying to search a nested list like that: [code]nested_list = [1 ,'Dick', 2, ['Mary', 7, 9, [700, 777, 'Paul']], 13] if 'Paul' in nested_list: print 'found Paul' else: print 'Paul not found' [/code]It always tells me that …

Software Development python
Member Avatar for vegaseat
0
106
Member Avatar for sneekula

I want to make a Tkinter button respond to a left and right mouse click differently. How can I do this?

Software Development python tkinter
Member Avatar for vegaseat
0
8K
Member Avatar for babutche

Hi, I did get the problem fixed with my "break" not working properly but now my ValueError will not work properly. If you enter a number that is not a floating number it should create a value error(as a matter of fact it did before I fixed my other problem …

Software Development python
Member Avatar for babutche
0
147
Member Avatar for sivaslieko++

when I initialize the array in this way: const int size = 10; int myArray[size]; it works well. But I have to initialize it in this way: const int size =pow(2, Depth()+1)-1; int myArray[size]; in this case it throw an error which is "expected constant expression" What should I do??? …

Software Development c
Member Avatar for John A
0
151
Member Avatar for sivaslieko++

Hi everybody, for example I have such a tree in c++: 23 / \ 1 45 \ / \ 2 31 52 \ \ 3 234 \ 5 I can print this tree in this way by using breadthFirst-level method: 23, 1, 45 2, 31, 52 3, 234 5 But …

Software Development c++
Member Avatar for sivaslieko++
0
127
Member Avatar for babutche

Hi, I am trying to extend my "Student with the best GPA" program so that it allows the user to sort a file of students based on gpa, name, or credits. The program needs to prompt for the input and output files and also the field to sort on (gpa, …

Software Development file-system python
Member Avatar for babutche
0
468
Member Avatar for babutche

I am having a problem getting my "break" to work correctly in this program. Can anyone help me see what I am doing wrong? This is my program: [code]import string import math class Student: def __init__(self, name, hours, qpoints): self.name = name self.hours = float(hours) self.qpoints = float(qpoints) def getName(self): …

Software Development perl python
Member Avatar for babutche
0
115
Member Avatar for peter_budo

Just have small program to practice with Calendar. However I come accross something unusual. Once you set date for 1st April 2007 or 1st June 2008 for example you get wrong number of the week. example bellow show code set to date 1st June 2008 [code] import java.util.*; import java.text.DateFormat; …

Software Development java
Member Avatar for peter_budo
0
108
Member Avatar for JoBe

Hello ladies and gents, Was wondering if any of you could help me out with the following, sometime ago I had to reinstall MS V++ EE and ever since then, when I enter for instance 'std::' or 'cin.' I don't get a list with all the possibilities it has, normally …

Software Development c++
Member Avatar for JoBe
0
123
Member Avatar for sneekula

How can I make a Tkinter window take up all my display screen area?

Software Development python tkinter
Member Avatar for sneekula
0
12K
Member Avatar for jan1024188

hi I am new to C++ and I want to vrite some kind of "virus" for windows. The problem is, I dont want that command line opens when program runs. Its actualy unfinished loop, which beeps all the time. Now i want to know how to make "hidden" program. I …

Software Development c c# c++ windows-virus
Member Avatar for jan1024188
0
203
Member Avatar for Matt Tacular

I'm going to have to include a lengthy bit of code, but its every necessary part for you to see what I need. [php]import random availableCountries = range(20) # <--- Used at games start, player's countries taken from here firstTurnsCountries = [] # <--- Player one's country possesion secondTurnsCountries = …

Software Development python
Member Avatar for Matt Tacular
0
163
Member Avatar for chris99

My program won't read the listbox correctly. The output from the print statements are as follows: [QUOTE]Dronfield Sheffield 2.20 ('1',)[/QUOTE] I want the list item "B-line" to = 1, but due to the wierdness of the value, it reads it as ('1',) It is meant to read from the passinfo.txt …

Software Development python tkinter
Member Avatar for chris99
0
1K
Member Avatar for stan yost

The following code comes up with a number that has 13 digits past the decimal point. How can I cut this down to 2 decimal places? [Let drivetimeexpense = (rstdrivinginfo.timefromhome * rstdrivinginfo.numberoftrips * 2 / 60) * 20]

Software Development visual-basic
Member Avatar for stan yost
0
160
Member Avatar for Berniceazzopard

how can i validate if a month has 30 or 31 days and febraury havin 29 days if leap yr and 28 if not

Software Development pascal
Member Avatar for radu84
0
97
Member Avatar for gamesnmore

Hi There, I am in the process of creating a game based around the board game Diplomacy. anyway, I keep getting the following errors, and I have no idea of how to solve it. AlliedConflict error LNK2022: metadata operation failed (80131187) : Inconsistent method declarations in duplicated types (types: frmGameScreen; …

Software Development c++
Member Avatar for Xorn27
0
2K
Member Avatar for mattyd

My current GUI program, in part, will display a button which the user may choose to press (or not, in some cases): [code] btn1 = Button(root ,bg="Black", text="HIT", image=image01,command=show_image2) btn1.configure(state=NORMAL,background='red' ) btn1.pack() [/code] This is basic and works fine. The issue I am having is that after the button is …

Software Development gui python tkinter
Member Avatar for mawe
0
3K
Member Avatar for kimbokasteniv

I've never actually ran a CLI based program outside of bluej. And after exporting one of my programs to a jar, I noticed I was not able to get any results when double clicking the jar. So, I'm guessing CLI based programs are run by a different method, or require …

Software Development java
Member Avatar for Colin Mac
0
115
Member Avatar for trihaitran

My *.py script has some non-ASCII characters in comment lines and when I run it I am getting the following warning: sys:1: DeprecationWarning: Non-ASCII character '\xe5' in file /Users/haitran/Documents/Sophomore UCB/Python/cedict.py on line 118, but no encoding declared; see [url]http://www.python.org/peps/pep-0263.html[/url] for details The thing is I went to the indicated page …

Software Development python
Member Avatar for trihaitran
0
162
Member Avatar for babutche

Hello, I am trying to create a program that uses a dictionary to associate American states with their capitals. It has an interactive loop that exits when the user enters "quit". The user types the name of the state and the program responds with the state's capital. I will show …

Software Development python
Member Avatar for babutche
0
6K
Member Avatar for sneekula

How can I best center a Tkinter window on my display screen?

Software Development python tkinter
Member Avatar for Ene Uran
0
13K
Member Avatar for Shefali

hello all i m having a really silly problem. i have written some codes with mscomm, but i dont know why all of a sudden i m having this problem. the problem is: [CODE] Private Sub Form_Load() With MSComm1 .Commport=1 .Settings="19200,N18,1" .InputLen=0 .PortOpen=True '(Here the error message says that the …

Software Development visual-basic
0
80
Member Avatar for Siva_sbj

I am writing a C program using Dev-CPP. It uses a 3 dimensional array to store around 350 values as shown below. [code=c] db[2][0][1]=3278; db[2][0][4]=2368; db[3][0][3]=6686; db[2][0][6]=7224; .. .. .. [/code] I get a valid output when I read the array with the following code [code=c] zone = db[2][0][1]; printf("%d",zone); …

Software Development c
Member Avatar for Siva_sbj
0
126
Member Avatar for wandie

I have made a list of names and everytime i want to select a value in the listbox it should give me a result in the Entry box can someone please help me. This is my listbox values [code] musicfolder = [ ["CollegeRock/"], ['RnB/'], ['HipHop/'], ['Build/'], ['Buy/'], ['Techno/'], ['Jazz/'], ['Classic/'] …

Software Development python tkinter
Member Avatar for wandie
0
5K
Member Avatar for mattyd

Simply, I need to understand the basics of button binding. I have researched [URL="http://www.pythonware.com/library/tkinter/introduction/events-and-bindings.htm"]this[/URL] already and have decided just to ask for instruction. For example, one of the programs I am building currently will require, at a certain point, user input; I want to be able to know when a …

Software Development python tkinter
Member Avatar for sneekula
0
94
Member Avatar for babutche

Hi, I cannot figure out why my fib problem is giving me the output below. I just want it to print when the fib is called and the value of n, when it returns and with what value of n, and the return value. This is what I have so …

Software Development python
Member Avatar for babutche
0
129
Member Avatar for babutche

Hi, I am trying to figure out how to print tracing information for Fibonacci numbers. output = Computing fib(4) Leaving fib(4) returning 3 Can anyone steer me in the right direction? This is what I have: [code]import math def fib(n): if n < 3: return 1 while n >= 3: …

Software Development python
Member Avatar for woooee
0
111
Member Avatar for sTorM

I just writing the simple twenty one card game...now evth work and fine. And I put cards from 2 to A with concerning value.But when the debug step coming '0'comes to input with value '10'(K is worth 10 etc). It make me so confused. here is my code: [code]#include <iostream> …

Software Development c
Member Avatar for sTorM
0
104
Member Avatar for Matt Tacular

is there an easy way to detect if the entire contents of one list are in another? if I have a list like this: li = [1,2] and I have another which will have random values, I want the program to do something only if every value of li is …

Software Development python
Member Avatar for vegaseat
0
174
Member Avatar for sbswhatever

im going to be programming on a server using masm32 should i get the server sdk on microsoft.com web site or the normal one? does it matter?

Software Development assembly web-server
Member Avatar for Evenbit
0
224
Member Avatar for mattyd

Hello: [I]** I have been researching and experimenting with this with tutorials from many sources but can not even begin it to get it to work it seems.[/I] I have a very small yet important Python program that I must make into an executable file within a week's time or …

Software Development laptop python video
Member Avatar for vegaseat
0
293
Member Avatar for babutche

Hi Everyone! I need a little help with this problem. I am trying to import a class -- Student with object makestudent but I keep getting this error: [CODE]This program sorts student grade information Enter the name of the data file: p2sortin.py Traceback (most recent call last): File "C:\Python23\p2sort.py", line …

Software Development python
Member Avatar for Ene Uran
0
141
Member Avatar for babutche

This is what I have come up with but it seems like there should be a more simple way of programming it. [CODE]import string import math class Student: def __init__(self, name, hours, qpoints): self.name = name self.hours = float(hours) self.qpoints = float(qpoints) def getName(self): return self.name def getHours(self): return self.hours …

Software Development python
Member Avatar for babutche
0
118
Member Avatar for stan yost

From the posts in this website I see how to open an Excel spreadsheet from VB 5.0 but I don't see any examples of moving data (not an array) from vb to excel. Can anyone show me an example? Do you know of any books that would have this information? …

Software Development visual-basic
Member Avatar for QVeen72
0
99
Member Avatar for tech291083

Hi, I am using Fedora core 5 32 bit Linux. Just wrote this small C++ prgram and saved it as test.cpp on the [URL="http://forums.devshed.com/#"]desktop[/URL] and then tried to compile it using the terminal with the following command [B]gcc test.cpp - o test [/B] but it is showing the following message …

Software Development c++
Member Avatar for tech291083
0
188
Member Avatar for jrcagle

Hi all, I know there have been several threads about getting card images into a GUI, but I'm flustered trying to understand why some things work and some things don't. Here's the code: [php] import random from Tkinter import * import Image, ImageTk class Card(object): suits = ["C","D","H","S"] values = …

Software Development data-structure gui python tkinter
Member Avatar for vegaseat
0
2K

The End.