68 Discussion / Question Topics

Remove Filter
Member Avatar for rahul8590

I am able to write a java program to access a particular url , and get the data , but the data is in raw format and the complete source is printed in the terminal . import java.net.*; import java.io.*; public class URLConnectionReader { public static void main(String[] args) throws …

Member Avatar for invadev
0
298
Member Avatar for rahul8590

i have written many programs using stack , but how do i write a program to find whether the stack is progressing in forward or reverse direction . ?

Member Avatar for gurumukhi
0
182
Member Avatar for rahul8590

I want to make a user profile , where in the people can login and fill in profile details . Well basically i am wanting to make a connection between the alumni of my college with the existing students. So , i initially thought of making the alumni registered and …

Member Avatar for diafol
0
7K
Member Avatar for rahul8590

Well i intended to develop a sohisticated java server client program . but just couldnt push myself so far so ust had to satisfy myself with it. Well , i have created a simple chatting interface . i would not call it a chatting interface actually cuz i had something …

Member Avatar for rameshccet015
0
183
Member Avatar for rahul8590

i have a csv file from where in i read the data and store individual coloumns in list , but for the last coloumn i am getting \n in the list . i want to get rid of that . [CODE] f = open('datagen.txt') for lines in f: line = …

Member Avatar for TrustyTony
0
201
Member Avatar for rahul8590

The program is fetching me the right output but still i am getting a warning #include<stdio.h> #include<string.h> int main() { char *p,*q; p=(char *)malloc(25); q=(char*) malloc(25); strcpy(p,"hello" ); strcpy(q,"hi"); strcat(p,q); printf("%s",p); } Warning test7.c: In function ‘main’: test7.c:6: warning: incompatible implicit declaration of built-in function ‘malloc’ wat exactly is the …

Member Avatar for rahul8590
0
253
Member Avatar for rahul8590

[CODE] #include <stdio.h> #include <unistd.h> int main() { while(1) { fprintf(stdout,"hello-out"); fprintf(stderr,"hello-err"); sleep(1); } return 0; } [/CODE] why is that i am getting heelo-err instead of hello-out

Member Avatar for Narue
0
140
Member Avatar for rahul8590

Honeslty have no idea on how is the output being generated ? [CODE] #include <iostream> int main(int argc, char** argv) { int i=1,j=-1,k=0,l=2,m; m=i++||j++&&k++; printf("%d %d %d %d %d",i,j,k,l,m); return 0; } [/CODE] output : 2 -1 0 2 1 evwn though j++ is is present that value is not …

Member Avatar for kings_mitra
0
113
Member Avatar for rahul8590

[URL="http://www.daniweb.com/forums/thread305436.html"]http://www.daniweb.com/forums/thread305436.html[/URL] accidentally i posted in the wrong forum.

Member Avatar for AndreRet
0
116
Member Avatar for rahul8590

I have a search a particular filename in my msaccess file . if i search through ID no , i am able to fetch the output . but if i am searching by comparing filenames then i am getting error [CODE] Private Sub cmdSearch_Click() Dim key As String, str As …

Member Avatar for AndreRet
0
287
Member Avatar for rahul8590

i did go thru a google search and found some functions .. but those results where horrifying , i guess i am using a wrong method of finding time . [code] def test(): "Stupid test function" L = [] for i in range(100): L.append(i) if __name__=='__main__': from timeit import Timer …

Member Avatar for Beat_Slayer
0
845
Member Avatar for rahul8590

I have various list being generated by a mapper function in this format >>> mapper("b.txt" , i["b.txt"]) [('thats', 1), ('one', 1), ('small', 1), ('step', 1), ('for', 1), ('a', 1), ('man', 1), ('one', 1), ('giant', 1), ('leap', 1), ('for', 1), ('mankind', 1)] >>> mapper("c.txt" , i["b.txt"]) [('thats', 1), ('one', 1), ('small', …

Member Avatar for ultimatebuster
0
259
Member Avatar for rahul8590

Well i have a small code snippet which is a basic http server. Well its running fine , but i am unable to catch the feedback and store it in a log file of my own for further analysis. code snippet : [URL="http://codepad.org/MppnYU9n"]http://codepad.org/MppnYU9n[/URL] just in case wondering on how to …

0
106
Member Avatar for rahul8590

I have a couple of input boxes where the user will be entering his/her data . for example: Name:------------- Fathers name:----------- mothers name:------------ when the user enters the data , i need the xml to be generated something like this <family> <name> users name </name> <fname> fathers name </fname> <mname> …

Member Avatar for rahul8590
0
905
Member Avatar for rahul8590

Well i need to change my banner of the website alternatively , like once user experiences the pic1 which would be incorporated in my CSS. But the point is i want that pic to change . for example when user 1st time logs in , he see pic1 as a …

Member Avatar for rahul8590
0
170
Member Avatar for rahul8590

Well this might sound a bit ridiculous , i request the user to enter the no of names field to be generated and then i am successfully able to generate , but dont know how to go about saving those many names in the name column of my db. initial …

Member Avatar for rahul8590
0
107
Member Avatar for rahul8590

I have written a small script in order to check the browser of the user and find that the code isnt working , even if i open the php page in IE its still outputting Mozilla [CODE] <?php $browser = $_SERVER['HTTP_USER_AGENT'] ; echo $browser. "\n\n"; ?> [/CODE] Output in Mozilla: …

Member Avatar for almostbob
0
99
Member Avatar for rahul8590

i have a basic script where in i check if the content is inputted or not . If the content is not present i redirect to the same page also echoing a statement that u have not entered any data , but the echo message is not being printed. the …

Member Avatar for rahul8590
0
113
Member Avatar for rahul8590

Well i have been working on linux for a while , eventhough i am stuck to ubuntu only . Well i am planning to venture out a little and understand more about how os is made and may be build os from scratch .. i mean not to code it …

Member Avatar for kad1r
0
180
Member Avatar for rahul8590

For example , As i registered in daniweb.com , a mail was sent to my email id and after clicking on that link , i could complete my registration . i want to develop a similar module in php , where the users after signing in , i sent this …

Member Avatar for diafol
0
328
Member Avatar for rahul8590

I recently herd the buzz about JSON and stuff was also saw the coding style , but still i am not able to appreciate it . Well i am working in python web framework (not Django) and also using templating language. when i wrote a program to just to add …

Member Avatar for samaru
0
192
Member Avatar for rahul8590

i have a very simple program which takes in file name as argument and print the content of the file , but for some reason it isnt working here is the code [code] import sys ,os def Cat(filename): f = open(filename) text = f.read() print '----', filename print text def …

Member Avatar for rahul8590
0
195
Member Avatar for rahul8590

i have written a small code to store the checkbox values into the db. But its showing me a parse error . Unable to figure out what it could be . [CODE] <?php $dbc = mysqli_connect('localhost', 'root', '', 'test') or die('Error connecting to MySQL server.'); if(isset($_POST['language'])) { $language = $_POST['language']; …

Member Avatar for rahul8590
0
194
Member Avatar for rahul8590

i was just trying the new DBMS , herd it was kinda faster than MySql in some case. the below is the code i have taken (Standard example) and still i am getting error. [code] <?php // create new database (OO interface) $db = new SQLiteDatabase("db.sqlite"); // create table foo …

Member Avatar for jmoli
0
157
Member Avatar for rahul8590

How to restrict the size of image thats to be uploaded . I am creating a small social network and have space constraints . So , i dont want to restrict the image size to be confined to certain limit.

Member Avatar for Froger93
0
163
Member Avatar for rahul8590

I have an array, which i want it common to both the f1.cpp and f2.cpp . since f1.cpp will be used to store some values in it and f2.cpp has to use it for some other computations , is there any way i can share these 2 variables . well …

Member Avatar for WaltP
0
267
Member Avatar for rahul8590

Well i got some weird problem here . We have a web team and we disributed our work equally , where i mainly created the web application in php and i am glad its working file . But for simplicity purpose i used basic html tags and created the web …

Member Avatar for rahul8590
0
96
Member Avatar for rahul8590

i have written a code for the user to select his area of expertise with respect to fields. i am able to display selected checkboxes for those fields. But when i want tio process further like when the user clicks on the particular checkbox and then submits i am not …

Member Avatar for Fest3er
0
227
Member Avatar for rahul8590

i want the user to enter the name in the query and only after entering the name the next input text appears. Unfortunately it doesnt work the way i want it to. here is the code [code] <?php // formtest2.php $flag = 0; if (isset($_POST['name'])) { $name = $_POST['name']; $flag …

Member Avatar for rahul8590
0
136
Member Avatar for rahul8590

I have been working with opengl for past 2 months and find in very difficult to manage with it . The actual code for rendering the image is very less , compared to the code written to handle the view and other opengl attributes / controls. Is there any library …

Member Avatar for mrnutty
0
151

The End.