69 Topics

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
301
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
184
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
185
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
202
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
254
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
141
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
116
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
119
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
290
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
850
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
262
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
109
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
109
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
102
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
114
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
186
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
330
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
193
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
197
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
195
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
160
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
165
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
270
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
97
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
228
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
138
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
153
Member Avatar for rahul8590

Well ,it may sound a bit preposterous , but i have a pretty weird problem (which i have solved many times , dunno why it isnt working for me this time ) . I have a data file from which i randomly pick up row nos . The data file …

Member Avatar for WaltP
0
201
Member Avatar for rahul8590

Well i have been following the google OS (where in work is still going on ) for a pretty long time and when i have been through their whitepapers where they mentioned about SPDY protocol (which is an extension of TCP/IP and not to mention pretty faster than the conventional …

Member Avatar for vaultdweller123
-1
230
Member Avatar for rahul8590

I have a 160 gb partition in my system and accidentally i have deleted all my movie files using shift + delete . Is there any way i can recover the data back somehow. its mainly all video files .

Member Avatar for Bob_180_Bob
0
170
Member Avatar for rahul8590

I got this silly problem and honestly dunno why it isnt working . The scenario is i got a text file with information and i got to print the ASCII equivalent of the text into the screen . While attempting to do so , i am getting the binary equivalent …

Member Avatar for nezachem
0
200
Member Avatar for rahul8590

Hello everyone , i am trying to create a multi threaded web server, i did the basic part (socket programming ) successfully . Ref: [URL="http://www.daniweb.com/code/snippet217312.html"]http://www.daniweb.com/code/snippet217312.html[/URL] now , the next step , i am trying to establish it by making it multi thread or repetetive polling for client request (yet to …

0
115
Member Avatar for rahul8590

Well for past few months now i have been doing my research on encryption cipher and i have tested on plane text , its not a problem . If i have to test the fastness of the cipher i got to try it on movie and audio files and check …

Member Avatar for rahul8590
0
758
Member Avatar for rahul8590

i am currently working on creating mathematical models for my research and want a non linear equation solver library which i could integrate with my program . i searched the web and found op++ which wasnt a free program .

Member Avatar for sinnerFA
0
218
Member Avatar for rahul8590

i DO have searched the google to do multithreaded programming using c++ and found there were few like the ones supported in BOOST libraries and zthreads .. I would be glad if u guys could help me in suggesting much better ways in doing so .

Member Avatar for rahul8590
1
766
Member Avatar for rahul8590

i was going through many ruby books and found this amazing text editing code (its just 17 lines ) provided u use Shoes toolkit. The code is working fine with no errors . but its only able to read (open) and input file but not save the text u wrote …

0
155
Member Avatar for rahul8590

Its been a while i have been writing sequential programs . I have started working on parallel programming using C++ . Since to run those parallel programs in several machines isn't a feasible idea for me , i was wondering if there exist any parallel program simulator which executes parallel …

0
79
Member Avatar for rahul8590

In many of the forums i have observed that , we can re direct the page like thanks for logging in u will be redirected in 5 secs and eventually the 5 secs decreases to 0 and the page gets redirected. In my php code i could redirect the page …

Member Avatar for Stefano Mtangoo
0
92
Member Avatar for rahul8590

Well , i have created a simple chatting interface . i would not call it a chatting interface actually cuz i had something else in my mind and finally landed on something else . i would like if you guys could excecute it and help me making it a real …

Member Avatar for toyi
0
280
Member Avatar for rahul8590

Is there any distro which has pre built . LAMP JDK and the graphic some wat like Atlantis

0
59
Member Avatar for rahul8590

i have installed mysql , and JDK . I wrote the following code to test jdbc . But it didnt work [code] public class Test { public static void main(String[] args) { try { Class.forName("root.mysql.jdbc.Driver").newInstance(); System.out.println("Good to go"); } catch (Exception E) { System.out.println("JDBC Driver error"); } } } [/code] …

Member Avatar for rahul8590
0
97
Member Avatar for rahul8590

i have currently 3 checkboxes. But the thing is i only want 2 of them to b processed i.e if check box 1 is checked then the 2 one must get blocked thus by preventing the user to check it. similarly vice versa. (this must be applied only to 1st …

Member Avatar for almostbob
0
130
Member Avatar for rahul8590

the follwong is the basic java script i wrote and its not working (giving the desired output as i wanted ) [code] <html> <head> <title>hello </title> </head> <body> <h1 align='center'> Using Arrays </h1> <script language = "JavaScript"> emp = new array(5) emp[0] = rahul emp[1] = rahul1 emp[2] = rahul2 …

Member Avatar for Dukane
0
137
Member Avatar for rahul8590

Well i am using fedora for a pretty long time and i am tired of the fedora looks especially when i see ubuntus latest edition . Are there any themes available or graphic packages which can enhance my OS looks.

Member Avatar for ryuslash
0
109
Member Avatar for rahul8590

there are many key words in java cryptography and none of them is been recognized in my system. Is there any way i can implement java cryptography...?

Member Avatar for rahul8590
0
122
Member Avatar for rahul8590

hello everyone ! , I am creating a form with various check boxes in it. The check boxes represent various type of workshop the person wants to attend. i just dont know how to process the data in check boxes. check.html The html code is : [code] <html> <head> <title>Untitled …

Member Avatar for rahul8590
0
197
Member Avatar for rahul8590

i am planning to upgrade my windows sp2 to sp3 . But i already have fedora installed (dual OS ). will my upgrade from sp2 to sp3 crash my fedora ?

Member Avatar for Chaky
0
82

The End.