64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for SoulMazer

So, I have a script that needs to "clean up" when it is exited: it needs to clear a special logging file and other small things that affect the next startup of the script. The script has a GUI written in Tkinter, if that is relevant at all. Is there …

Member Avatar for SoulMazer
0
103
Member Avatar for willygstyle

Hello all, I have been trying for a few days now and done quite a bit of reasearch on the internet and this website to find out how I can authenicate to a website. It could very well be that this particualar web server is picky I'm not to sure. …

Member Avatar for willygstyle
0
184
Member Avatar for Eternity[LK]

Hello :) This is my first post on daniweb forum and I hope this site will help me improve. I'm a first year college student in computer science, and I've only recently started C++. This means that code posted by me might seem very lousy and /or unprofessional. I have …

Member Avatar for Eternity[LK]
0
97
Member Avatar for aBenjamin

this is a small example that, i hope reflects the larger project that i am working on. i am making a board game that uses a combination of mouse listener and jbutton action listener for the player to move. when it is time for the computer to take its turn, …

Member Avatar for Ezzaral
0
2K
Member Avatar for shenberry

I have a simple time tables that goes from 1 - 100. It takes like 6000 seconds to run. I figured I could break this down into a a multi thread program main thread for(int c = 1; c < 101; c++) { cout << c << "| "; for(int …

Member Avatar for shenberry
1
154
Member Avatar for Snippset

Hi, I need to make a program, which I think should be simple if you know what you are doing. You have an array of integers A(m, n) and B(m). Delete an element from A array, which index is in the B(m) array. Print original and modified arrays. I don't …

Member Avatar for Snippset
0
99
Member Avatar for MRWIGGLES

Hi, I'm having trouble just printing particular strings out of a sentence. <h1>hi my name is</h1> if i just want the program to print out <h1> </h1> and ignoring the text in between, how would i do that? i have tried converting everything to ascii and printing within the range, …

Member Avatar for MRWIGGLES
0
95
Member Avatar for vsagarmb

i am not able to figure out why python throws an error when i call this function. In the code snippet below when i call set_greyLevel() python throws an error. If i comment the function call it works fine. Please help. Thanks in advance. [code=python] def set_greyLevel(self, grayScale): if grayScale …

Member Avatar for willygstyle
0
166
Member Avatar for maomaohui

i got some homework for a program in python [CODE]''' Function that haven't been achieved. ============================================ Maxium Number. No number bigger than 2147483648 or less than -2147483648; Proper 'd' function - Accept the result or only input. - Proper 'd' substitution calculate. .Gets the function of '=' .Has it's own …

Member Avatar for Ene Uran
-2
75
Member Avatar for roshini.johri

hey i am a beginner as far as python is concerned..i am having diff in understanding this code..i am supp to do it in python..if anyone can tell me wht it does it wud be really helpful [code] for qid,query in "as2.qrys": for word in query: docs = set(index[word]) for …

Member Avatar for Ene Uran
0
134
Member Avatar for AndrewYY

I've got a large array of coordinates (a struct containing x and y, among other things) and for each pair of coordinates, I'm trying to find another pair that's closest to it from that array. [code] int i, j, d = 0, cd = 0, closest; for(i=0;i<size;i++){ closest = 0; …

Member Avatar for mrnutty
0
114
Member Avatar for daryll1

Hi, for one of my projects at uni i have to create a PHP based text game, i am basing mine on the colossal cave game. i am trying to use the explode function to split my string up into variables to check against my database but am getting the …

Member Avatar for daryll1
0
832
Member Avatar for grib

First off, I'm a complete and absolute programming newbie and a bit of an old fart to boot, so I'd appreciate a gentle-but-firm correction if I'm pushing the wrong buttons here. I'm slowly working through a used copy of Prata's C++ 5th edition, but something's not working in my version …

Member Avatar for Nick Evan
1
133
Member Avatar for kevinn

So here is the problem. This won't compile. It always gives an error like : d.cpp:24: error: ‘string’ was not declared in this scope d.cpp:24: error: expected ‘,’ or ‘;’ before ‘{’ token Compilatie failed. [CODE=C]#include <iostream> #include <string> #include <stdlib.h> #include <time.h> int d(int amount, int dots){ // d(X,Y) …

Member Avatar for kevinn
0
175
Member Avatar for Darth Vader

I have searched for a way before what the most effective way and in this case important the fastest way is to seek backwards in a file to read the very last line in a file. Like in this case I want to search from the end and backwards to …

Member Avatar for Darth Vader
0
3K
Member Avatar for Damon88

I am writing a application where i need to know which games are installed on a system. I have 3 ways by which i think i can detect the games 1: Scan specific parts of registry and look for key names that match with a List of Publishers. The list …

Member Avatar for Damon88
0
673
Member Avatar for PoisonedHeart

Hi to all and good day... I'm still studying about vb 6's data report designer and the data environment...but what i need to know is how can i make or [B]generate[/B] a report at [U]run time[/U]... for example, generate report for the employee names. (names of the employees will populate …

0
85
Member Avatar for pinsickle

I wanted to get some opinions on a good visual c++ book to buy. I am intermediate level when it comes to programming. I have already been through a class on C and almost done with my class on C++. So I want a book that is heavy on the …

Member Avatar for zortec
0
89
Member Avatar for Jennifer84

I am trying to get a value from a specific cell in a dataGridView. I know how to choose a Row / Column but not at the same time. I have tried to get the value from row 3 in column 2 like below. But I cant find a Column …

Member Avatar for milind morey
0
110
Member Avatar for sleign

ok I've been looking all over the net and I cannot find anything about this issue anywhere, other than the same problem is mentioned once in a great while, but never shown how to rectify this. I'm at a point where I can't do anything else and I could use …

Member Avatar for sleign
0
97
Member Avatar for _dragonwolf_

I'm trying to create a boggle game. I have it so it will setup the board and accept user input. What I am trying to do now is get rid of the "[" braces "]" and the commas to give it a cleaner look and to hopefully make it easier …

Member Avatar for ~s.o.s~
0
112
Member Avatar for Nepenthe

Hi, I have to write a function in Visual Basic within Microsoft that takes customer type and number of books purchased as inputs and returns the discount that should be given. Calculate the total sum after deducting discount that is to be paid and that the interface shows the total …

Member Avatar for Nepenthe
0
118
Member Avatar for cellus205

Ok we have been creating this calendar in our intro to programming class for about a week or so, and right now I am stuck on getting the start day of each month. I was thinking it should be total days (days in month + total days from 1800 - …

Member Avatar for midgetchris
0
115
Member Avatar for sreejithbabu

The problem in this is that the program accepts a string with spaces [B]only for the first input[/B] and not for the rest of the inputs. It seems that getline only works for the first input. How can you make the vector store string with spaces (as elements of the …

Member Avatar for sreejithbabu
-1
888
Member Avatar for pankaj.garg

i created a VB-6 program using reference "DAO 3.51 object library" on XP OS....works ok on my system...but does not work on my friends system...gives error - "Runtime-error 429 : active x component cant create object" friend's system is Windows XP with Office 2007 installed... Pl help to resolve this... …

Member Avatar for AndreRet
0
294
Member Avatar for little marine

Hello, I am a student in a VB2008 class. I am using this code to copy data in a textbox to a text file. I have several forms to copy data from. Can this be done or do I need to do each form seperately?[CODE]Dim FILE_NAME As String = "C:\test2.text" …

Member Avatar for GeekByChoiCe
0
139
Member Avatar for cemoyer

I can't get any of my attempts to validate the radio button to work. If either of the buttons is clicked it works. But, if no button is clicked an the submit button is click by itself I get an error on my action page. I'm out of ideas and …

Member Avatar for muralibobby2015
0
87
Member Avatar for little marine

I am creating a message box in VB8 for an error. I created the message box and everything works. The message box returns a value of 0 which is the default one. Where does it return 0 to. Or do you have to tell it where to return it.

Member Avatar for PARGES
0
336
Member Avatar for Iam3R

Hi i have written a program to check the precision of float and double values. i read that the precision of float is 6 digits and double is 10. but it is showing only 6 for both. do we need to make any arrangement for the system to print the …

Member Avatar for Iam3R
0
496
Member Avatar for wmsigler

I'm having difficulties thinking through the logic of my natural mergesort program. I think I have the split working correctly, but my merge doesn't seem to be working at all, and the pseudocode in my book and what I've found so far on the web is fuzzy. This is a …

0
72
Member Avatar for codewalkz

I am having this error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''3'' at line 1 The $get1 value is 3. I tried enough but to no avail. I don't see any …

Member Avatar for codewalkz
0
65
Member Avatar for qk00001

I have a small problem with string. How can I make the output str to be every single string i.e: string str="You are a good writer"; to be: str1="you"; str2=“are"; str3="a"; str4="good"; str5="writer"; //---------my_test_code,but not working yet. #include <iostream> #include <string> using namespace std; int main () { string str; …

Member Avatar for qk00001
0
112
Member Avatar for thesinik

Alright so I want to write a program that will compute trig functions (sin, cos, tan, arcsin, etc.). Basically I'm ignoring the included math library in python and hard coding it myself. My issue is that I'm fairly new to programming and not sure how to go about coding a …

Member Avatar for thesinik
0
4K
Member Avatar for Yeen

I understand the basic principle of recursion, but I'm having trouble implementing it in practice. I understand this first case perfectly fine. It works because n is constantly getting closer to 0. [CODE]def faculty(n): # Base case if n == 0: return 1 # Recursive call else: return n * …

Member Avatar for Ene Uran
0
127
Member Avatar for SoulMazer

Okay, so I'm having a little trouble. Let's say I run "scriptA.py" and it has a GUI (Tkinter) and it is running in its mainloop. I want to create a "scriptB.py" that can end "scriptA.py"; would there be a way to do this regardless of the OS it is on …

Member Avatar for SoulMazer
0
269
Member Avatar for DeadJustice

I have a seg fault I can't seem to be rid of. Basically I'm building an AVL tree and I'm stuck on the insert method. gdb says it is occuring on the line with: while( temp != NULL && temp->key != k ){ Would someone please help? Thank you in …

Member Avatar for DeadJustice
0
201
Member Avatar for sexyzebra19

I have 2 main if statements inside this for loop (lines 7 and 56). I'm trying to get so that if after all the iterations are complete, i.e. j = 51 the first and second if statements are not satisfied, then it will print out an error message. I have …

Member Avatar for GrubSchumi
0
101
Member Avatar for Mitja Bonca

I did an application, published and installed it. In my User`s Start Menu there is created a new folder with y shortcut to my application.exe inside. What`s bothering me is the name if this folder. It has a name, that I don`t know how and where to change it. I …

Member Avatar for Mitja Bonca
0
87
Member Avatar for LucarioWill

[CODE]import java.util.Scanner; public class MathTutor { Scanner input = new Scanner(System.in); int numQuestions; int choice; int numCorrect; public MathTutor (){ numQuestions = choice = numCorrect = 0; } public int getNumQuestions(){ { System.out.print("How many questions? "); numQuestions = input.nextInt(); if (numQuestions < 1) { System.out.println("Invalid - must ask at least …

Member Avatar for LucarioWill
0
3K
Member Avatar for blahbla

i have a problem : Write the definition of a function, isReverse , whose first two parameters are arrays of integers of equal size, and whose third parameter is an integer indicating the size of each array. The function returns true if and only if one array is the reverse …

Member Avatar for blahbla
0
220
Member Avatar for Darth Vader

If I have two dates like this, I wonder how it will be possible to count how many of these days that are: Monday,Tuesday,Wednesday,Thursday,Friday The dates are for example: 11/01/2009 11/18/2009

Member Avatar for Darth Vader
0
121
Member Avatar for Clawsy

Hi, I first convert the image on the server application in bytes: [code] //server public void sendImage(File file) throws IOException { ByteArrayOutputStream baos=new ByteArrayOutputStream(1000); BufferedImage img=ImageIO.read(new File(file.getAbsolutePath())); ImageIO.write(img, "jpg", baos); baos.flush(); os.write(baos.toByteArray());// this is a "new DataOutputStream(clientSocket.getOutputStream());" System.out.println("Done! Length is:"+baos.toByteArray().length); baos.close(); } [/code] Then my application freezes when trying to …

Member Avatar for Clawsy
0
223
Member Avatar for Behi Jon

Hi, When I want to run a program in eclipse, I get "Binary not found" error . I have MinGW in c: root and I have added C:/mingw/bin to environment path .

Member Avatar for Behi Jon
0
75
Member Avatar for kira4

May I know how to fix the frame in my system so that they will not shift their position? When I open my system in other computer or when I zoom it, the frames in my system will move. May I know how to fix it? I use <table>, <div> …

Member Avatar for nileshgr
0
96
Member Avatar for hanntaa

im using a JFileChooser to find a file from anywhere on the system and load it but i also need to be able to export the data within my program to an unknown location, how would i go about doing that?? is it simular to the JFileChooser? any help would …

Member Avatar for hanntaa
0
106
Member Avatar for achiman

Hi please can anybody tell me if it is possible to write a code in php that will change the image being display on my website every second. In others I want three different images to display at my homepage but at intervals. Thanks

Member Avatar for achiman
0
104
Member Avatar for Darth Vader

I am looking for how it is possible to calculate the difference in minutes for a date and time. This example will cover the problem. [B]20091118 18:15 20091125 01:35[/B] I know this is possible using Date functions and TimeSpan but trying to find examples but cant find an example of …

Member Avatar for Darth Vader
0
108
Member Avatar for veledrom

Hi, I want to show the image as well as printing the id, name, time etc with it. How can I do it? First code prints all the data as it is without showing image. Second code shows image without other info. Thanks This code returns binary code of image. …

Member Avatar for programmersbook
0
221
Member Avatar for ffs82defxp

Its not running [CODE]import math import os cls = os.system("cls") title = os.system("title Pythagorean Theorum Solver") def MainLoop(): cls print "Enter 3 coordinate plane points (x - y) format" print "" firstPair = input("--> ") SecondPair = input("--> ") MathPart() def MathPart(): '''structure of the formula: squareRoot of --> (x-y)^2 …

Member Avatar for vegaseat
0
143
Member Avatar for hanntaa

Hey guys iv got this project to make an address book that has all kinds of functions and iv got them all working apart from one bit, it needs to be able to read a file when it opens as well as import other data from other files. The data …

Member Avatar for hanntaa
0
212

The End.