199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kiranpvsr

1.Uses a socket object to open a socket connection to “[url]www.google.com”[/url] on port 80. 2. Constructs a PrintWriter and a BufferedReader from the socket 3. Sends a HTTP request for the page “[url]www.google.com”[/url]. If your PrintWriter is called “out” then you could, for instance use the code: out.write("GET /~rdb/page/index.html \n"); …

Member Avatar for Devoted Hosting
0
145
Member Avatar for valonesal

Ok so I created a small page using smarty, now what I need to do is create a link to the page(s). The set the page up so that it will display information for the individual user and not to everyone, also the pages are created dynamically. So I need …

0
77
Member Avatar for Watti

[code] import java.util.*; import java.io.*; public class testing { public static void main(String[]args) { int NoOfLines=0; int i=0; String fileName = "tingtings.txt"; String line; String[] lines = new String[1000]; try { BufferedReader brStream1 = new BufferedReader(new FileReader(fileName)); while ((line = brStream1.readLine())!= null) { NoOfLines++; } while ((line = brStream1.readLine())!= null) …

Member Avatar for AndreiDMS
0
1K
Member Avatar for coldrain

Hi all, i am new to AJAX, so need some help I want to create simple feedback (comment) form, base on AJAX. So, I have my HTML form, and even have my SQL database, and PHP script. All is working quite ok, but I need to make it AJAX - …

Member Avatar for Njegos
0
94
Member Avatar for ibanez270dx

Hey guys, I'm currently learning JSP and Java using Netbeans, and I was wondering if there was an easy way to create a web template layout. For example, using a single header, footer, and navigation bar for all pages. In Ruby on Rails, there is a "layouts" view, which you …

Member Avatar for ~s.o.s~
0
127
Member Avatar for StaticX

Hi, I have made a small program to check if character arrays are the same(similar to string compare).This is my code so far: [CODE] // string Compare () #include <iostream> using namespace std; main(){ char a[10] = {'a','b','c','d','e','f','g','h','i','j'}; char b[10] = {'a','b','c','d','e','f','g','h','i','j'}; for(int i = 0; i < 10; i++) …

Member Avatar for Dave Sinkula
0
111
Member Avatar for levsha

How do you declare your select menu in the PHP? Does it have to be an array of variables? One single variable? Something else? Let's say this one: [CODE] <select name="search" title="Search Criteria"> <option value="id">ID Status</option> <option value="ip">IP Status</option> <option value="pd">PD Status</option> <option value="nva">NVA Status</option> </select> [/CODE] Thank you!

Member Avatar for violarisgeorge
0
133
Member Avatar for herebutfortea

As many people new to python i seem to have run into a bit of a snag with an alarm program i was making. I wanted to make something that would play a song (.wav) at a given time and would not stop unless you played a little game, guess …

Member Avatar for woooee
0
141
Member Avatar for paru

HI .. any one of you people can help me in asp paging.. Its actually a knowledge base link in which i am displaying the records based on the filtering we want.it dispalys the records but where to include the paging code... i got some code from net.. but its …

Member Avatar for webmstr
0
505
Member Avatar for deftones

Hi, Let's say I have a form full of objects and want to make all of them (or half of them, whatever) invisible. Is there a short way to do that without a need of setting visible to false individually to each object?

Member Avatar for deftones
0
182
Member Avatar for deftones
Member Avatar for deftones
0
149
Member Avatar for beta911

I really need help from you guys... my Insert statement doesn't work in C# but the Update statement was just fine. Possible to guide me on the delete statement as well? Here is my code: [CODE] string ConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\\Inetpub\\wwwroot\\H1N1\\TTH H1N1\\TTH H1N1\\bin\\Debug\\H1N1.mdb"; OleDbConnection conn = new OleDbConnection(ConnectionString); OleDbCommand …

Member Avatar for beta911
0
726
Member Avatar for Lolalola

Hi, I'm trying to create a program which provides a key strength. Visual studio don't show errors, but the program hangs on QuadWordFromBigEndian functions. Whats wrong? Program stop workin on this line: [CODE]01.x = ( (((UInt64)block[0]) << 56) | (((UInt64)block[1]) << 48) | 02. (((UInt64)block[2]) << 40) | (((UInt64)block[3]) << …

Member Avatar for Lolalola
0
125
Member Avatar for nick1188

i hav installed Turbo C++ 3.0 on my pc and whenever i dbl click on TC.exe the screen turns black and after 2-3 secs the screen becomes normal i mean the compiler doesnt start same happens with borland 5.5 C++ builder pls help me as i hav no s/w on …

Member Avatar for alg
0
116
Member Avatar for jaison2

hi basically i have to write a function which draws 4 rectangles next to eachother(consisting of spcaes then hashes then spaces then finally hashes, all of the same height). the rectangles final The rectangles common height,and the width of the four rectangles should be parameters, e.g.(3, 0, 5, 4, 2) …

Member Avatar for jaison2
0
137
Member Avatar for Aamit

[code=c] #include <stdio.h> #include <conio.h> int main(void) { unsigned port = 0; int value; value = outp(port, 'C'); printf("Value %c sent to port number %d\n", value, port); return 0; } [/code] It gives error 8 C:\Dev-Cpp\Abc\... `outp' undeclared (first use this function) How to solve this ?? I write function …

Member Avatar for BobClark
0
593
Member Avatar for Israelsimba

i am trying to make sure that one record is not entered twice into the same database but the code i am using is giving me an error [CODE]Set ri = deSub.conn.Execute("SELECT* FROM individualsubs WHERE firstname = '" & txtfname.Text & "' AND surname = '" & txtsurname.Text & "'") …

Member Avatar for vb5prgrmr
0
156
Member Avatar for adcodingmaster

hi all [COLOR="Red"]i m making chess in java and have a problem. Plz if u can help me out.[/COLOR] [B][I][I][I][U]Problem is[/U][/I][/I][/I][/B] when i add a JPanel to a JFrame it sets the size of JPanel given by me in the code. but when i add another JPanel then it automatically …

Member Avatar for walid faraj ali
0
183
Member Avatar for samsons17

how do i display something like this using for loop? 0 2 4 6 8 10 12 14 18 24 26 28 30 32 thank you for helping...

Member Avatar for Skeen
0
313
Member Avatar for u8sand

Hello guys, I'm creating my own website-it's coming along very well but I'm stuck. There is a login, so that you can login to your account. Each account has an access of 1-10, if your access is 0 you are not logged in. When you put your username and password …

Member Avatar for venkat0904
0
133
Member Avatar for gibson.nathan

im relatively new to trying to program in oop. i have been slowly working through this entire program learning as i go. i have gotten this class to compile. [CODE] /** * Write a description of class CO2Footprint here. * * @author (your name) * @version (a version number or …

Member Avatar for AndreiDMS
0
106
Member Avatar for asexe

I'm trying to write a simple "MSPaintish" program, but I can't handle this one issue. [CODE]case WM_LBUTTONDOWN:{ button = true; //save the start cords and invoke WM_MOUSEMOVE x1=LOWORD(lParam); y1=HIWORD(lParam); SendMessage(hwnd, WM_MOUSEMOVE, wParam, lParam); break; } case WM_LBUTTONUP:{ button=false; break; } case WM_MOUSEMOVE:{ if(button){ HDC hdc=GetDC(hwnd); HDC hdcmem = CreateCompatibleDC(hdc); HBITMAP …

Member Avatar for William Hemsworth
0
481
Member Avatar for Hummdis

I've been writing PHP for about two years now, nothing complex, mostly just HTML form processing scripts. My latest project for a customer has over 40 items in the form. It's a dynamic form using some JavaScript and PHP that displays certain parts of the form based on other options …

Member Avatar for Hummdis
0
178
Member Avatar for Ryujin89

Putting it out there that this is a school assignment. 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. …

0
106
Member Avatar for baheddad

hi everybody ...could anyone tell what is the difference between deny and revoke of privileges from a user.

Member Avatar for whizkidash
0
205
Member Avatar for johnyjj2

Hello :-)! I'd like to create application for mobile phone (maximum price of phone would be about 220USD, it is for Central Europe; I will be testing the application on Sony Ericsson k750i and maybe on Motorola V500). The application must recognize speech and properly react for recognized numbers (calculate …

Member Avatar for johnyjj2
0
188
Member Avatar for maverick405

I am trying to get user input for any ten numbers and then to print them in reverse order below is my code it executes and gives me result but I am not able to get user input... please help me.. #include<iostream> int*ReverseArray(int*orig,unsigned short int b) { unsigned short int …

Member Avatar for tkud
0
110
Member Avatar for Harris68

Hi, I ap posting my Assignment subject here, and hope to get some helps with each Classes, I am not asking that you do all my home works but to give me hints as I want to learn something and as I am new to Java I am block some …

Member Avatar for Harris68
0
182
Member Avatar for mnewsome

I write as the owner of a small IT consultancy for systems administration. We own Visual Studio 2008 Team Suite and thought it might draw independent developers so that we can offer additional services. We now find that a significant number of developers are using 'Subversion' the free developer product. …

Member Avatar for sknake
0
192
Member Avatar for theStruggler

Hey everyone, I am trying to write a code which would read a file and print the number of words and sentences in each of them. I want to take everything step by step; so I am making sure that all my methods work perfectly before proceeding. In the code …

Member Avatar for theStruggler
0
103
Member Avatar for dima shawahneh

hello every one I made setup for an application containing database built by sql server express edition I made the connection string dynamically taken from Application.StartupPath but when trying to install it on a different PC , i got the following exception.. an error has occured while establishing a connection …

Member Avatar for sknake
0
206
Member Avatar for eleal

I'm trying to write an instant messaging program in Java. What I have coded so far, goes like this: Each client connects to a thread created by the server, to which he/she sends the message. My doubt is, how can I kill all the threads that have been created by …

Member Avatar for gangsta1903
0
164
Member Avatar for eleal

I've got the following question about threads in Java: Isn't there a problem if: -There's a main program which creates a series of threads. Each thread needs to have access (and to modify) to the same object of a user defined class, and this object has references to a hashtable …

Member Avatar for Devoted Hosting
0
161
Member Avatar for sleign

I am building a website that's worked out very nicely so far with few problems. It's mainly coded in php and xhtml with css. This site also uses 1 inline frame. I don't know much about javascript - it seems to be such an immense scripting language to me, but …

Member Avatar for sleign
0
115
Member Avatar for RobBrown

I am having a hard time getting my program to execute correctly. it is supposed to take two numbers entered by the user store them in an array, and reverse the array so when added they display correctly. i am to get the numbers using a procedure two seperate times, …

Member Avatar for NotNull
0
173
Member Avatar for whitestream6

This is the echo code from my site: [CODE] <?php $url1 = "http://www.canadiandriver.com"; $url2 = "http://www.chevrolet.com.br"; $autoguide = "Autoweekly"; $autoguide1 = /"<b>"<a href=\"$url1\buyers-guide/2010/volkswagen/passat.php"\>New car of the day</a>"/</b>"; ?> [/CODE] Yet it produces a T_STRING error, and I can't work out how to fix it. The other variables work fine, $autoguide1 …

Member Avatar for SKANK!!!!!
0
230
Member Avatar for kartal

Hi I have started using Eclipse as my ide. I would like to integrate python help into eclipse for convenience. Is it possible to replace internal Eclipse help with Python help? thanks

Member Avatar for patrickwang
0
263
Member Avatar for kirti19tanwar

i need a online exam project on java urgently.so if anyone have this plz send me urgently.also tell how to run this.:)

Member Avatar for shashi7616
0
153
Member Avatar for thebluestar

[CODE=C] #include<stdio.h> #include<conio.h> #include<string.h> //typedef int BOOL; //#define TRUE 1 //#define FALSE 0 int a[3][4]; int Prime(int *x); void input(); void printOut(); void checkPrime(); int Prime(int *x) { int i; for( i=2; i< (int)sqrt(*x); i++ ) { if( *x%i == 0 ) return 0; } return 1; } void input() …

Member Avatar for thebluestar
0
195
Member Avatar for kooben

Hi I intend over the next few months to learnt Java with the purpose of building my own simple web crawler/spider. I have seen a few open source spiders but would like to build my own if possible. What I would like to ask is how would I go about …

Member Avatar for peter_budo
0
326
Member Avatar for amazing_grace

ok, when the user types in a non-exist file name, the program simply shut down. i dont know what happen [ICODE] procedure set_up; begin write('file');readln(file); assign(f,file); reset(f); {$I-}if IOresult<>0 then writeln('NO File....'); close(f);{$I+} end; .... {this is the main program} begin setup; end [/ICODE] this proceure is called in the …

Member Avatar for FlamingClaw
0
199
Member Avatar for jascase901

So far, I have only read about using void functions to take on ifstreams as a parameter. Yet I want to be able to make a single function that takes a file of numbers as a parameter, and do some calculation to each number. I can do this with a …

Member Avatar for alg
0
147
Member Avatar for ezb

I am currently building an online system, it has come to the point to think about securing peoples passwords. How ever, for admin reasons I was wondering if it was possible to decode the encoded password, I believe this is not possible with md5 but hoping there is another method? …

Member Avatar for digital-ether
0
762
Member Avatar for lcyew

Hi all. I have two date input fields. Is there any way to restrict date input from only date picker (users are not allowed to input date through keyboard). The reason I want it this way is to prevent users from entering invalid dates. Any help provided is greatly appreciated. …

Member Avatar for venkat0904
0
84
Member Avatar for .11

I am currently building a Polynomial linked list. Classes [B]Node[/B], that has a Term and a Node next. [url]http://www.boomica.com/Node.java[/url] [B]Term[/B] with a coefficient and exponent. [url]http://www.boomica.com/Term.java[/url] [B]Polynomial[/B] [url]http://www.boomica.com/Polynomial.java[/url] [CODE]public void addTerm(Term nomial) { Node temp = first; Node toAdd; if(isEmpty() || (temp.getTerm().compareTo(nomial) <= 0)) { Node newFirst = new Node(nomial, …

Member Avatar for .11
0
794
Member Avatar for dylank

Hi, I have a program that I am using to convert a string into binary. My current code is as follows: [CODE]int main(void) { string userInput; cout << "Enter a string to be converted:" << endl; cin >> userInput; for (int index = 0; index <= userInput.length(); index++) { cout …

Member Avatar for dylank
0
162
Member Avatar for f3dor4core

how to refresh page one time only? if i using <meta http-equiv=refresh content=\"0;URL=\".... it keep on refresh every according as what in the content was set. wat i want is.. it only refresh one time only before the page was loaded. can anybody help me? thanks :?:

Member Avatar for monstruo
0
11K
Member Avatar for ninreznorgirl2

I've worked with making classes, but I've never had to use a class in code that I write, so I'm having a hard time. [CODE]#include <iostream> #include <string.h> #include <iomanip> #include <ctype.h> #include "String2.cpp" using namespace std; const int MAX_WORD_LENGTH = 254; // The type definition below permits much easier …

Member Avatar for u8sand
0
209
Member Avatar for thegoatboy

Hello Hopefully someone can help me. I am trying to update fields in a mysql database using ruby with dbi, but no matter what I try, i just cannot update the row. I am able to search it, but never update. I search for the right string, then open a …

Member Avatar for thines01
0
230
Member Avatar for Fo_Be_La

Hi everyone, I'm trying to write some code for this question. I believe I have the right answer but it says it isn't. Anyways here is the question. 1) Given that dict1 refers to a dictionary, change the value mapped to by the key 'Boo' to 'Hoo' . My code …

Member Avatar for Fo_Be_La
0
158

The End.