43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for lllllIllIlllI

Hi, Im using wxPython for my latest project and i was wondering, how do i make the window go to the best size, so it includes all of the objects on screen? I used to be able to remember... but i forgot :P

Software Development python
Member Avatar for lllllIllIlllI
0
87
Member Avatar for Ishaniwp

Hi! I'm having a problem with my coding. I have initialized a 2d array (String), but when I try to print a value from it, it gives me null. this is how I initialized my array. [code]String phone[][] = { {"A", "B","C"}, {"D", "E", "F"}, {"G","H", "I"}, {"J", "K", "L"}, …

Software Development java
Member Avatar for Ishaniwp
0
98
Member Avatar for whouton

Hi guys, I'm trying to make a function that allows the user to enter in a file name and access that file; if the file name is wrong or the file is not there, I want to allow the user to enter in another file name. For some reason the …

Software Development c++ file-stream file-system
0
78
Member Avatar for Ying_Yang

Hi, I like the modularity of java but I wonder what low level custom functions it has, since I' am considering to create an OS, and we all know in high level its imposible to control the hardware eficiently. :-/ so I wonder if there is a way to use …

Software Development java operating-system
Member Avatar for Ying_Yang
0
214
Member Avatar for leegeorg07

Hi I have this code currently: [code] dict = open("dict.txt", "r").readlines() print dict LETTERS={'a':1, 'b':2, 'c':3, 'd':4, 'e':5, 'f':6, 'g':7, 'h':8, 'i':9, 'j':10, 'k':11, 'l':12, 'm':13, 'n':14, 'o':15, 'p':16, 'q':17, 'r':18, 's':19, 't':20, 'u':21, 'v':22, 'w':23, 'x':24, 'y':25, 'z':26} word_value=0 lettersv=[] letterss=[] def main(): word=raw_input('what is the word?') word=word.lower() for …

Software Development perl python
Member Avatar for leegeorg07
0
116
Member Avatar for A_Dubbs

Hey guys, I was wondering if you could clear up some things on classes for me. I have had a semi-easy time understanding python and programming concepts up to this point but now am having a real tough time on classes. I think it is because my book uses long …

Software Development python
Member Avatar for bumsfeld
1
232
Member Avatar for sanchitgarg

suppose i have 10 different functions. i generate a random no. between 1 to 10. depending on its value i want to call the fucntion. eg. no. 3 call func, no. 8 calls func 8... etc. how do i do it using a loop without using the if else statement …

Software Development python
Member Avatar for sanchitgarg
0
244
Member Avatar for Rishi_Hamza

I am trying to import mails from Outlook to my Database during execution of code it is throwing the [COLOR="Red"]"Excepiton ComException unhandeled by User Code"[/COLOR]. it was working fine in the beggening but suddenly start throwing this exception. Here is my code [CODE] for (int i = 0; i <= …

Software Development microsoft-office
Member Avatar for mikiurban
0
136
Member Avatar for mandangalo

I am trying to code for an assignment at school. When I call my addElement() method and input the data to pass that data to my constructor which is used to store the data in certain elements in the array it seems to work ok. However, when I try to …

Software Development user-interface
Member Avatar for ddanbe
0
222
Member Avatar for TheManual

I am trying to create a RPN calculator, the addition and subtraction functions work but it only accepts numbers under 10. How can I fix this so any integers are allowed? Thanks. [code] import sys accepted = '0123456789dr+-*/%^=' numbers = '0123456789' stack = [] while len(stack) <= 20: while True: …

Software Development python
Member Avatar for TheManual
0
92
Member Avatar for Mona1990

Hi I was wondering if someone could help me to figure out how to write a code for : Write a function print_table which consumes two parameters, a list of list of strings, and an integer for the length of the list. The function should print out the strings from …

Software Development python
Member Avatar for Mona1990
0
300
Member Avatar for Dorayaki

Hi, I want to ask about listbox things. I made a Listbox, 3 textbox, and a Database The Database Table is Member The member field has 4 which is MemberID, Name, Address, Phone. I have 2 records and it were display to the listbox which are Adry and Brandy (I …

Software Development vb.net
Member Avatar for TomW
0
183
Member Avatar for Alex_

Hey guys. I am trying to print different messages in dependency of what char you press. In my case i use, F1,F2,F3, escape. The problem is that the first message is printed again after a char input is read, which it shouldn't! This is my code, please tell me where …

Software Development assembly
Member Avatar for Alex_
0
117
Member Avatar for mahela007

What would it take to make graphics show on the monitor without using stuff like tkinter and Qt? (tkinter and Qt are called toolkits right?)

Software Development python qt tkinter
Member Avatar for mahela007
0
261
Member Avatar for XLL

Hi all,I got a issue that how can I run several functions at same time? say [CODE] a=1 def function1(a) a+1 return a def function2(b) b+2 return b def plotGraph(a,b) return graph [/code] how can I just run plotGraph function here?..I am totally newb..hope anyone can help..thanks

Software Development python
Member Avatar for pythopian
0
115
Member Avatar for MattyRobot

would there be anything wrong with making an includes.h which has all of the .h files my project needs to link to. or is it better to link to them when needed?

Software Development c++
Member Avatar for MattyRobot
0
138
Member Avatar for jex89

Hi, I don’t know if anyone would be able to help me with the following problem, I am hoping :D .. I have looked on the internet but no look. I have pickled a document into the pickle object, how can I now search the pickled object to remove a …

Software Development python
Member Avatar for pythopian
0
3K
Member Avatar for deftones

Hey, I faced one tiny problem, but I can't figure it out. What I need is basically "label1 = format(now, "hh:mm:ss")", but I want start counting time from zero: "00:00:00".. Any help?

Software Development visual-basic
Member Avatar for akhileshbc
0
90
Member Avatar for jakesee

Hi matlab experts, I didn't think daniweb has a matlab forum so I went over to another math forum to ask for matlab help. but i think it's either I am too stupid for the mathematicians or they are too smart to realize that it is NOT obvious what i …

Software Development
Member Avatar for Rashakil Fol
0
282
Member Avatar for jaison2

The function should ask the user for the price of the delivery and if the price is less than £10 then it should print a statement saying "the total price including the delivery charge is" + £1.50 or it should just output the normal price if it is more than …

Software Development python
Member Avatar for snippsat
0
224
Member Avatar for feoperro

Hi, I'm trying to create a program where I can monitor when a server running a Tomcat Application Server goes down. I will need to check an IP & PORT every 5 minutes for example and get back a boolean on whether it is up or not. I've tried googling …

Software Development java
Member Avatar for feoperro
0
118
Member Avatar for Garee

I'm having a little trouble with a piece of code im trying to write. I have created a deck of cards and then shuffled them however now I am trying to covert my deck (which is simply a list containing the numbers between 1 and 52) into the form "AS", …

Software Development python
Member Avatar for vegaseat
0
346
Member Avatar for P00dle

I need to read files from a folder(Directory will always be the same) There will at most be 4 files in the dir, but it could be anything from 0-4 files. They will always have the same name. i.e. In the dir "Folder" there will be(Could be any combination of …

Software Development java
Member Avatar for peter_budo
0
115
Member Avatar for LennieKuah

[B]Hullo there,[/B] [B]C#Net 2003 Window Application [/B] I need your help again. I am trying to loop through the DataGrid rows and confirm that FirstColumn which hold Checkbox is TRUE. If it's TRUE, I need to retrieve the Customer FirstName(2nd Column) and LastName (3rd Column) and transfer the data onto …

Software Development c c# c++
Member Avatar for Geekitygeek
-1
308
Member Avatar for Benderbrau

Hi guys, I've searched this, but can't find a solution. Basically what I'm doing is writing a binary search tree (which works) and balancing it with AVL (which almost works). As far as I can tell my AVL tree is implemented correctly, but I'm getting a stack overflow error at …

Software Development data-structure
Member Avatar for Geekitygeek
1
597
Member Avatar for sentinel123

Hello This is like my 4th week using Python and I'm still not familiar with it so I might need some help from you guys. I gotta write a little Connect 4 game in Python, I just got started and boom - I'm stuck! I tried to create a board …

Software Development python
Member Avatar for sentinel123
0
2K
Member Avatar for azapovjednik

Hello, Is it possible to insert the data from dbgrid component into an SQL SERVER database table. The data that is in the grid is imported from Excel worksheet. It may look silly but I need to insert that data into a table. Any help is appreciated, thank you

Software Development pascal sql
Member Avatar for cao
0
2K
Member Avatar for Ryujin89

I have nearly all of the code figured out, but the instructions make getting the output and variables to match up. If anyone can assist in seeing what the instructor intends for us to do, I would greatly appreciate it. This is a multi-class program where an abstract class implements …

Software Development java user-interface
Member Avatar for Ryujin89
0
13K
Member Avatar for rbushlow

I have the following python code to access a MySQL database: [CODE] #!usr/bin/python # server_version.py - retrieve and display database server version import MySQLdb con = MySQLdb.connect (host = "localhost", user = "username", passwd = "password", db = "test") cursor = conn.cursor () cursor.execute ("SELECT VERSION()") row = cursor.fetchone () …

Software Development mysql python
Member Avatar for rajasekhar1242
0
183
Member Avatar for drabsch

I need to get the icon from a drive and put it in a picbox. For example i have an icon on my usb/flash drive and i want to get the icon and put it in a picbox same for my c drive and DVD drive

Software Development flash visual-basic
Member Avatar for drabsch
0
115
Member Avatar for NinjaLink

Hello, I need help reversing elements in a queue using Recursion. My problem is that when I print out the reverse, it does not show the numbers on the screen. However my program compiles and runs. My question is...How come the numbers in reverse are not showing? Thanks for anyone …

Software Development c++ queue
Member Avatar for NinjaLink
0
804
Member Avatar for hanzi_ru

hi! i have created a form which contains two combo boxes. the first one can be used to select the location and the second to filter the floors belong to the selected location. i need to know the coding needed to filter the floors which only belongs to the selected …

Software Development visual-basic
Member Avatar for dzul73
0
307
Member Avatar for DrDeadite

I'm trying to add a memory function, that when you hit the 'M' button, it stores whats in the display into a variable, and when you hit the 'R' button, it retrieves the variable value and displays it and can be used for calculations. Here's my code: [CODE]import javax.swing.*; import …

Software Development gui java java-swing
Member Avatar for DrDeadite
0
122
Member Avatar for Trekker182

If a constructor calls another class with another constructor and both constructors have methods that access the same class, which would be first? First constructor in a method separate from the class [CODE]{ Entry entry(" ", " ", " ", time.Hours(), time.Minutes()); return !(list.IsPresent(entry)); } [/CODE] Second constructor that it's …

Software Development c++
Member Avatar for Trekker182
0
111
Member Avatar for adiaforos

Hello all!! i have to make a program for my university that generates 3000 random numbers and finds the one who are powerful! I have written all of the code but i don't know what condition is wrong! let me show you... :-P [CODE]for (l=4 ; l < COMPUTATIONS ; …

Software Development c
Member Avatar for adiaforos
1
170
Member Avatar for want_to_code

the header file: [code] #include<stdio.h> struct IntArray { int schedule[30000]; int nSize; }; struct IntArray getSchedule(int browsingTime[], int noOfPersons, int timeSlot); [/code] the implementation file: [code] #include"leastremainingtime.h" void sort(int *a,int n) { int i=0,j=0,temp=0; for(i=0; i<n;i++) { for(j=0;j<n-1;j++) { if(a[j] > a[j+1]) { temp=a[j]; a[j]=a[j+1]; a[j+1]=temp; } } } } …

Software Development c
Member Avatar for want_to_code
0
116
Member Avatar for Ryujin89

I have, with the vast assistance of Bazzy on cplusplus as well as a few other programmers, made the code to input a file into a vector. Even after looking over the tutorials on algorithms, I still can't figure out how to sort the data. It's due in [U]4 hours …

Software Development c++ ios
0
79
Member Avatar for kjiu

Hello, I have a problem :icon_confused: which is: [CODE]public void caseUpper() { QTextCursor cursor(textCursor()); String selTxt(cursor.selectedText()); if(selTxt.isEmpty()) { return; } String txt = selTxt.toUpperCase(); insertPlainText(txt); } public void caseLower() { QTextCursor cursor(textCursor()); String selTxt(cursor.selectedText()); if(selTxt.isEmpty()) { return; } String txt = selTxt.toLowerCase(); insertPlainText(txt); }[/CODE] I think the problem is that …

Software Development java
0
80
Member Avatar for NinjaLink

I need help with my print function, so I can print the elements in a queue. The print function, that I have now is the last function in my header file. I tried to do a small simple program to see if it works, but it prints nothing to the …

Software Development c++ queue
Member Avatar for NinjaLink
0
120
Member Avatar for mimi8469

hello every1, pls am new to programming . doin my undergrad dissertation on cd database. cd is manually put into cd drive. cd contents like artist, song, etc, are copied off the cd and then put into a database. right now, am having problems with the copying of cd contents. …

Software Development storage
Member Avatar for mimi8469
0
129
Member Avatar for fatalblade

hi everyone I'm trying to listing files/drives/folders in pc but I couldnt find anything. please help me .. --[ cryptacker ]--

Software Development c
Member Avatar for Ancient Dragon
0
146
Member Avatar for sanchitgarg

I have to write a code for generating random numbers without using random module and its function. How do I do it? I tried using the system time as it keeps on changing (importing milli seconds) but with tht I am able to get random nos in the range of …

Software Development python
Member Avatar for sanchitgarg
0
9K
Member Avatar for denniskhor

I want use MD5 to compare both folder in Python. Following steps that i want to compare both folder by using MD5: 1. After all the files downloaded to folderA. 2. All the files inside folderA will copy to folderB. 3. Then MD5 will compare both folder is correct hash. …

Software Development python
Member Avatar for vansoking
0
1K
Member Avatar for vileoxidation

Hello, and thank you for helping me today! I am working on a scheme procedure that takes a string as its input, capitalizes every letter in the string, and then prints out the result. This is a homework assignment, and we are supposed to use another procedure that we wrote …

Software Development
Member Avatar for vileoxidation
0
206
Member Avatar for blur_guava

Hello, I am unsure of a certain naming convention. Take for instance, I have a file that is called HelloPeople, and I would like to have a dll file. How should I name the dll file: HelloPeopleLib or HelloPeople.Lib? Thanks.

Software Development
Member Avatar for DdoubleD
0
149
Member Avatar for KirkPatrick

I haven't ever messed with any webpages through java and I'm kind of curious as to how it would work. I have a specific question that perhaps someone will be able to answer. How would one go about pulling certain information from a forum? To better understand what I am …

Software Development html-css java
Member Avatar for KirkPatrick
0
429
Member Avatar for ramjeev

Why String comparison with '==' is illegal,eventhough it works fine.Kindly explain?

Software Development java
Member Avatar for ramjeev
0
95
Member Avatar for ihatehippies

Anyone know the developers? Anyone else waiting for 3.x support? This is the only thing keeping me from upgrading to python 3.1 ....

Software Development python
Member Avatar for vegaseat
0
111
Member Avatar for jex89

Hi, I am undertaking a peice of work and may need a bit of help. The problem i need to find a solution for is as follows - I am requesting a Text based document through a http request, and currently have the document i want from the http request. …

Software Development os-x python
Member Avatar for jlm699
0
75
Member Avatar for ihatestarch

I completed a test today that didn't go so well. The last question dealt with binary files. For the review, he told us we had to go over seekg, tellg, and read and write methods. On the test there was a class that could find a record (with a record …

Software Development c++
Member Avatar for ihatestarch
0
101

The End.