199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for muusa

hey friends i m using servlet in order to write the output to jsp but i m getting output as something BufferedReader.io.inpitstreamreader@somenumbers i want to return the string output to jsp back .i need help stuck i this thing [code=java] try { String line; // String path="/home/muzammil/apache-tomcat-6.0.18/work/Catalina/localhost/remote_compile/"+filen[0]; Process p = …

Member Avatar for muusa
0
284
Member Avatar for cjay175

Hi there I'm trying to use jquery to load some content on a page but cannot seem to find anything through google. I have about 10 checkboxes, once 4 are selected I want to get their ids, than load 4 divs with textareas depending on the ids of the checked …

0
76
Member Avatar for eikal

hi, i just learned how to use the while code and put it in a simple program im working on, i however am stumped on how to use it in a part of it here is a snippet of the program code [code=java]String classname, faction; Scanner inputDevice = new Scanner(System.in); …

Member Avatar for peter_budo
0
126
Member Avatar for venky9589

hey, my name is venkatesh and m an final yr information science student. i needed some help for ma project.I wanted to know how can i access all the errors generated by the OS.I wanted to make an .NET application that reads out all those errors..do you think its possible??? …

Member Avatar for venky9589
0
95
Member Avatar for makan007

"I am trying to display an array of digits using rand. My final result need to be: 1) Output all digits <=40 to the left side of array 2) Output digits > 40 to the right side of array Prob: The random digits does seems to change & result incorrect …

Member Avatar for kvprajapati
0
102
Member Avatar for cloud09

I have a form at the bottom my website's homepage. I was wondering if there was a way, when you clicked the submit button, especially if there were errors with the form, to send you directly to the bottom of the page with either, javascript, php, or html. The code …

Member Avatar for Lsmjudoka
0
104
Member Avatar for torokun

[URL="http://img686.imageshack.us/img686/3380/hw1.jpg"]http://img686.imageshack.us/img686/3380/hw1.jpg[/URL] Okay so I got homework from my IT programming. I am completely oblivious in programming so I need a bit of help getting me into the right direction. Here is the question to understand my flowchart: Above is the link to my flowchart. Consider N students receiving the marks …

Member Avatar for tedroger
0
86
Member Avatar for deftech69

I have a question about handling binary files. I am trying to create a method called read in a user defined class called Record that will handle the data from the file. Each record has 84bytes and the first 20bytes is a String, and the rest, 64bytes is for 16 …

Member Avatar for ~s.o.s~
0
145
Member Avatar for haseeb1431

i have three integers per line in a text file but when i read a file it prints four integers Code: [code] #include<iostream.h> #include<conio.h> #include<fstream.h> void main() { int clas; ifstream inf; inf.open("kash.txt"); do { inf>>clas; cout<<clas; } while(!inf.eof()); } [/code] here is the file kash.txt (no enter after the …

Member Avatar for vmanes
0
153
Member Avatar for thehivetyrant

Hi there, using TKinter Is it possible to change a buttons text after you've clicked it? So if a button has text of "hi" and when clicked has text of "Goodbye"? [icode] button_switch = True def click(): global button_switch if button_switch: button_switch = False else: button_switch = True [/icode] This …

Member Avatar for thehivetyrant
0
12K
Member Avatar for jaybstory

Hello, I am new to perl and I would like to parse a csv file in perl. The current code I have opens a file and prints new output to the terminal. I'm wondering how to write to print this information into the file instead of to the terminal. I …

Member Avatar for jaybstory
0
103
Member Avatar for Ghost

Hi, I was wondering if there was a way to compare two images for similarity (i.e. checking to see if signature is same as signature on a credit card). Thankx in advanced. -- C++

Member Avatar for JavaHelper
0
2K
Member Avatar for rkulp

This function is suppose to randomly chose 2 out of 16 dice, swap their positions, and then chose what side of the dice is facing up. The problem is, when I run the function (I loop it 250 times). It only changes a few dice and the board looks close …

Member Avatar for hag++
0
247
Member Avatar for trevorthecat

Hi, I have to create a program that takes 20 random numbers between 0 and 100 and sorts them in order from smallest to largest. Then, I have to used File I/O to output the list into a .txt file.My code is compiling, and I'm getting the random numbers, but …

Member Avatar for WaltP
0
130
Member Avatar for Ap0ca1ypse

Hello all, I am creating a project for myself to practice Database connectivity, updating, deleting and adding items. I am having an issue updating one of the tables i have added, within a table there is a column called Today's Date which will contain the date the last time the …

Member Avatar for Ap0ca1ypse
0
127
Member Avatar for Avner .H.

Hello everyone! I want to use bash from python, however the os.system([I]command[/I]) seems to act only on one command at a time. I want to use complete commands, also containing control flow statements, like If and While, and to call them from python. something like this code in bash: T1="foo" …

Member Avatar for sneekula
0
862
Member Avatar for Grovespaz

Hi all, a friend told me to take a look at this board whenever I got in trouble coding. At the moment I'm studying a game, disassembling it, mapping out parts of the scripting engine, etc. I have a proxy dll which I use to hook certain functions (d3d8.dll), and …

Member Avatar for Grovespaz
0
69
Member Avatar for arva

Hey, I have a big problem. I want to do a program which will get a part of the screen of a program. After that It will show this small rectangle in Image component in BCB. But the problem is, it has to refresh it at least 10 times in …

Member Avatar for arva
0
188
Member Avatar for NatalyC

Hello everyone I have a problem using a "search" statement in mysql, using c#, here is my code: [CODE] private void btnBuscar_Click(object sender, EventArgs e) { SearchBook(txtBuscar.Text); } private void SearchBook(string bookID) { String connStr = "Server=localhost; Port=3306; Database=biblioteca;Uid=root;Pwd= -----;"; DataTable dt = new DataTable(); const string query = "SELECT …

Member Avatar for NatalyC
0
193
Member Avatar for Adami

I wrote an Ansi C# code that finds the smallest number in a several unknown function calls. You can see the code, it is very clear. just need help with how to make the program to not ignore always the first number in the list of each argument list... and …

Member Avatar for Adami
0
121
Member Avatar for jonnybgood

Hi, I need your help. I'm searching for very tough C++ tests over the net. Can you send me links of such a tests. Thank you!!!

Member Avatar for Narue
0
118
Member Avatar for Excizted

Hello. I'm needing to store the IP adress as a variable in my application. I was then wondering, what the most efficient way of doing this would be? I would simply make 4 integers, and then in a setter function, read four arguments, and pass them into those four integers, …

Member Avatar for Excizted
0
207
Member Avatar for gamerchick

Hi, i have to create a algorithm called find2D, to find an element x in an n × n array A. The find2D function iterates over the rows of A, and it calls the algorithm findArray shown below, on each one, until x is found or it has searched all …

Member Avatar for abdelhakeem
0
129
Member Avatar for sehsa6

Hey frenzz I wanna make a Web content filter as my project. I have been looking for some help from past one month. I want ur help in making my project. Please help me explaining about its implementation or provide me with some links If u can. Any kind of …

Member Avatar for sehsa6
0
248
Member Avatar for Lukezzz

I wonder how the try, catch, finally function works. I know how try and catch works. What I wonder is if the try block is successful then I know that the catch block doesn´t execute. Is it true that the finally block doesn´t execute either ? [code] try { } …

Member Avatar for Lukezzz
0
133
Member Avatar for wisefool

Hi. Hoping someone can help. From what I've researched I think I need to use a multidimensional array but I'm not getting my head around this problem so there might be another way. I'm building a basic web app. It's a mysql database of links to county record offices nationwide. …

Member Avatar for wisefool
0
63
Member Avatar for Draculaboy1014

I have to do this simple project: (a) A new project named LetterCountExample (b) A main class for the project named the same of the project. (c) A class called LetterCounter, with the following members: i. A eld of type char named letter. ii. A method of return type int, …

Member Avatar for tux4life
0
118
Member Avatar for chaienbungbu

As I see in some code having something like "[b]ClassName[u]&[/u][/b]". For example: [code] // this demo // check if a parameter passed to a member function is the object itself #include <iostream> using namespace std; class CDummy { public : int isitme ([b]CDummy[u]&[/u] param[/b]); }; int CDummy :: isitme ([b]CDummy[u]&[/u] …

Member Avatar for jbennet
0
228
Member Avatar for filch

I have the following files: 1. a PHP page that is loaded first and includes a number of functions. It calls a couple of other pages: 1a. a template file that has the following function in the head: [CODE]function checkForm( what ) { var ret = false; if( isBlank( document.getElementById('firstname') …

Member Avatar for filch
0
120
Member Avatar for Gonbe

Hello Daniweb, I'm trying to create a very simple shell for practicing purposes, but i'm a little bit puzzeled about the usage of execve, the function i use to execute a file. The code fragment underneath shows my usage: [CODE="C"] childPID = vfork(); if (childPID == 0) { execve(input.process, input.parameters, …

Member Avatar for gerard4143
0
273
Member Avatar for aparnesh

I am developing an intranet application, in which, in some pages, when the user selects an option, I am using a pop-up window to retrieve the data and displaying it in the main page. The pop-up opens, fetches data, puts in main page and closes itself. Since the user is …

Member Avatar for bapjg
0
6K
Member Avatar for Phil++

Hey, I'm to work on GUI interfaces with C++ but I have loads of classes that I want to use, will I have to re-code the whole classes or can I still use them? + Are they hard to implement and use? Thanks

Member Avatar for Ancient Dragon
0
96
Member Avatar for makan007

I would like to know how can the swapping function be implemented using pointers, void swap (int*, int*) [CODE] //function prototypes void swap(int& a, int& b); //function (passing by ref) void swap(int& a, int& b) { int t = a; a = b; b = t; }[/CODE] Is this correct? …

Member Avatar for problemkid
0
468
Member Avatar for nathanurag
Member Avatar for Ancient Dragon
0
152
Member Avatar for jfrojasdelrio

Hi there. I am using the slideshow along with the singlegalery.js happily. Now I want to know if you have a version of slideshow that accept width as a percentage as opposed to now that just accept pixels. I know we could modify the singlegalery.js to make this possible but …

Member Avatar for jfrojasdelrio
0
86
Member Avatar for malloc84

Hello. I am still a beginner in C# and FileWriting is my new learning step. I created a project. Among other complicated things It needs to do the following: 1. Open EXE file 2. Click a button 3. Write&Save EXE information to a TXT file Explanation: There is a program …

Member Avatar for malloc84
0
110
Member Avatar for jogendar

i have used the following code to save the text in a textpane into a file [code] final RTFEditorKit kit = new RTFEditorKit(); jta.setEditorKit(kit); jfr.setTitle(fname.getName()); OutputStream out = new FileOutputStream(fname); kit.write(out,doc,0,doc.getLength()); out.close(); [/code] where jfr is the main frame,jta is the textpane,fname is the filename given by the user,doc is …

Member Avatar for jogendar
0
74
Member Avatar for eikal

hi, this is a program where you type a name of a class and it gives a brief description, what i want to do is after it gives the description of a class it goes back to the beginning of the script and asks you to enter another one. How …

Member Avatar for verruckt24
0
241
Member Avatar for GregPeters

Hi all. I have another problem. Basically I have a project where I need to create a number of folders in one go. This is the code I have: [CODE] program create_folders; uses crt, sysutils var value, name : string; i : integer; begin for i := 1 to 10 …

Member Avatar for finalist
0
196
Member Avatar for jemz

hello please help me on this i have txtaddress.text . it can accept number only in the beggining but not in the last i dont know how to trap in the last ...and also it will not accept special character specially the period sign..example.... this is okey...23street complexsub division example …

Member Avatar for vb5prgrmr
0
78
Member Avatar for Nubie2001

Hello all together first of all sry for my bad english Well i got a problem with some of my application. First of all i had to write an application which can drag rooms from a source window to 4 destination windows. That works fine . But if i drag …

Member Avatar for Nubie2001
0
110
Member Avatar for Namrata.Bibodi
Member Avatar for Chosen13

My website is [url]http://www.stickmin.com/[/url] (Please Register!) I have it so when a user Logs In it updates their status to "Online" and if a user clicks Logout it updates their status to "Offline"... The problem I have is that some users just click the exit button on their browser and …

Member Avatar for CJesusSaves
0
4K
Member Avatar for Consus

so this is my first homework ever in Java so heres what I need to do: 1)a project named LetterCounterExample(done) 2)a main class for the project of the same name as the project (done) 3)a class called LetterCounter (done) with the following members: i. field of type char named letter …

Member Avatar for javaAddict
0
116
Member Avatar for makan007

'a' was not declared in this scope. I can't spot the error. Pls advise. [CODE] #include <iostream> #include <cstdlib> #include <ctime> using namespace std; const int MAX = 10; void constructArray_2 (int*, int); int main () { srand (time (NULL)); constructArray_2 (a, MAX); } void constructArray_2 (int *a, int size) …

Member Avatar for makan007
0
238
Member Avatar for webbee

Hi Friends, I need to create an application that will open a popup when the user closes a window. I can do that easily via onUnload event of javascript but the catch is that the popup must open only when we close the window and not when we submit a …

Member Avatar for freelancerquest
0
146
Member Avatar for zakir123

i want programme in c++ a car stand 3hours in 2$ then another car stand 24hours in 10$

Member Avatar for adcodingmaster
0
133
Member Avatar for problemkid

Hi I am a beginner in C++ programming. I am required to use the power function for one of my programs and keep getting the error message. Below is my program [CODE] 1 #include <iostream> 2 #include <cmath> 3 using namespace std; 4 5 int main(){ 6 7 //Declare and …

Member Avatar for adcodingmaster
0
142
Member Avatar for tqmd1

Dear Experts DataGridView has 3 columns as Sno----name----marks While entering data, if sno column is empty and user press Enter or Tab then Focus must go to me.textbox1 Please help

Member Avatar for kvprajapati
0
906
Member Avatar for cascade3891

Hello Python community, I have a basic question about the wx.DirDialog method/event handler system and how it works. I had a problem today, but solved it. Basically what I'm trying to do is have a frame, then use event handler wx.DirDialog to open up another dialogue where I can choose …

Member Avatar for Stefano Mtangoo
0
437

The End.