199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for DemonGal711

Ok, it's a little weird, but I'm basically trying to write a piece of code that would determine how many letters are different between two words, like cat and cot are off by one yet cat and dog are off by three. So, I have a vector that contains all …

Member Avatar for DemonGal711
0
104
Member Avatar for spec80

Hi I have the following classes: Home.java Away.java Other.java In Home.java i have a declaration like: [CODE]private Away away; private Other other; other= new Other(AN ARRAY); away = new Away(AN ARRAY , other); //where AN ARRAY is just an array, and other [/CODE] I then have code to pass AN …

Member Avatar for verruckt24
0
94
Member Avatar for bushman_222

Hey y'all I'm making the first steps into java from VB. I'm reading a book about how java works and I'm only a few chapters in. Just so you know how 'fresh' I am, I managed to write 2 classes, one main and another one, I passed a int to …

Member Avatar for verruckt24
0
166
Member Avatar for bugmenot

Please correct the error in my program. When i run the program on turbo c++ 3, it output 3 times. Also When i enter more than 1 entry only the last entry is outputted. Also it is outputted 3 times. [CODE]#include<fstream.h> #include<iostream.h> #include<conio.h> class student { int rollno; char name[20]; …

Member Avatar for r.stiltskin
0
187
Member Avatar for shadiadiph

can you include arrays[] in header urls? I have the following but it doesn't work so I am thinking it might not be possible. [code] $name = strtolower($_POST["name"]); $name = stripslashes(ucwords($name)); $email = strtolower($_POST["email"]); $emailx ="/^[a-z0-9]+([_.-][a-z0-9]+)*@([a-z0-9]+([.-][a-z0-9]+)*)+\\.[a-z]{2,4}$/"; $alphaspace ="/^[a-zA-Z]+((['\,\.\- ][a-zA-Z ])?[a-zA-Z]*)*$/"; if ($name=="") { $error[] ="Name is a required field please …

Member Avatar for shadiadiph
0
131
Member Avatar for bvaz

I have downloaded CF successfully and have been successful in connecting to my own database. However, I am following the Developer Center Tutorial for creating a record set and table to display the query in DreamWeaver. It all works as advertised however I am only getting the first entry in …

Member Avatar for bvaz
0
133
Member Avatar for tmoney7566

I am trying to write an applet that receives 2 inputs from a user then opens a window and displays the 2 numbers that were input, along with a message of either "the numbers are equal", or "this number is the largest". My problem--my program never returns "the numbers are …

Member Avatar for tmoney7566
0
138
Member Avatar for julseypart

hi, i have set a condition on the upload function [code]if (FileUploadControl1.PostedFile == null) { lblResult.Text = "Please select a file first"; } else { //upload a file }[/code] but if i press upload button when no file is selected it still uploads a blank file regardless of the "if' …

Member Avatar for julseypart
0
132
Member Avatar for serkan sendur

hi guys, today i found out that there is a free javascript multithreading library at : [url]http://www.infoq.com/articles/js_multithread[/url] it is under GNU license and free to use. It is a great and very easy to use tool.

0
67
Member Avatar for LakshmiVaidhyam

Hello all, i have SQL 2005 installed. i have written a table-valued function getdepartments() which is as below: [code] CREATE FUNCTION getdepartments() RETURNS @departments TABLE( DNAME VARCHAR(25), DEPTID VARCHAR(10), DBONUS DECIMAL(7,2)) AS BEGIN INSERT @departments SELECT * FROM DEPARTMENT; RETURN END [/code] i need to invoke this statement from java …

Member Avatar for peter_budo
0
265
Member Avatar for BruenorBH

I am trying to create a thread to continually update the time in the textbox. The issue is how do you reference a textbox in that was created in the main section of the program? main.cpp [code=c++] #include <windows.h> #include <ctime> #include "resource.h" static bool keepRunning = true; static HANDLE …

Member Avatar for BruenorBH
0
149
Member Avatar for bugmenot

I have a very similar assignment in which we have been specified that we are NOT allowed to use vectors. Is there any other way in this case to count the number of lines of data within a text file??

Member Avatar for Ancient Dragon
0
136
Member Avatar for puk

Hi i have the following data file: ------------ Data File Created By ActiGraph GT1M ----------- Serial Number: LYN2B35063338 Start Time 05:00:00 Start Date 02/27/2007 Epoch Period (hh:mm:ss) 00:00:02 Download Time 15:22:34 Download Date 03/05/2007 Current Memory Address: 512000 Current Battery Voltage: 3.90 Mode = 3 5 0 0 10 45 …

Member Avatar for LizR
0
89
Member Avatar for men

hi how to solve this eroor ____________________________________________ Class.forName("com.mysql.jdbc.Driver").newInstance(); ___________________________________________________ this is my code ------------------------------------------------------------------------------------ [code=jsp]<%@ page import="java.sql.*" %> <%@ page import="java.io.*" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" > <HTML> <HEAD> </HEAD> <BODY bgcolor="#ffffcc"> <FORM action="p.jsp" method="get" name="f1"> <TABLE style="background-color: #ECE5B6;" WIDTH="30%" > <TR> <TH width="50%">Name</TH> <TD width="50%"><INPUT …

Member Avatar for peter_budo
0
1K
Member Avatar for christiangirl

Hello, I am getting 8 8 8 7 7 8 6 7 8 9 as output when I enter 1 2 3 4 5 6 7 8 9 0 into this program. It is supposed to sort the numbers one through 10. I debugged it, and believe the problem is …

0
82
Member Avatar for gyagyus

Hi! I need to find out the size of an arbitrary file and then binarize it in C. I can do this with txt files, but how could I generalize it? This is how I get the size: [code] const char* filename = argv[2]; ifstream messageFile(filename); beginFile = messageFile.tellg(); messageFile.seekg …

Member Avatar for gyagyus
0
108
Member Avatar for shadiadiph

does anyone know of any good resources for php regex for form validation. I am looking for good regex for name: (including -.' and no spaces in the first space no doubles of ..''-- phone: again no spaces at the start allowing + and - alpha: only lowercase letters no …

Member Avatar for shadiadiph
0
112
Member Avatar for spec80

I have 2 classes, one of which also has a nested class: 1. Home.java (extends JApplet) 2. Away.java (extends JPanel) has nested class, private class ButtonListener implements ActionListener Now in Home.java I have a Vector ( called bankaccount) which i pass to the Constructor of Away.java ( I declared the …

Member Avatar for spec80
0
124
Member Avatar for jamboadams

hey anyone know what the largest value that can be stored in an integer variable is? likewise is there a double / long type of deal that isnt of float type? thanks

Member Avatar for vmanes
0
1K
Member Avatar for MJV

If I have code that is executed by a button statement and I would like this code to be executed at different times from other actions can I use a goto stateent to execute it? If so how. I can't seem to find a correct way or method to label …

Member Avatar for Rashakil Fol
0
100
Member Avatar for TheNational22

Hello all, first time working with PHP, had a question. Working on a friend's website, we thought we'd be wicked cool and add a dynamic photo gallery. I stunbles across this neat pile of code: [code=php] <?php $columns = 2; $thmb_width = 120; $thmb_height = 80; function resizeImage($originalImage,$toWidth,$toHeight){ // Get …

Member Avatar for TheNational22
0
190
Member Avatar for daviddoria

I want to do something like this [code] template <class T> vector<T> DereferenceVector(vector<T*> &PointerVec) { vector<T> ObjectVec; for(unsigned int i = 0; i < PointerVec.size(); i++) ObjectVec.push_back(*PointerVec[i]); return ObjectVec; } [/code] and call it with [code] void TestDereferenceVector() { vector<double*> a(10); vector<double> b = DereferenceVector(a); } [/code] That seems to …

Member Avatar for daviddoria
0
107
Member Avatar for Ossehaas

Hello all, I'm having a problem with sending a serialized object over a NetworkStream. I'm using the BinaryFormatter and the object is serialized and deserialized fine writing to a file. If I use a streamwriter to send text it works fine after the [B]Flush()[/B] [CODE] nStream = _tcpClient.GetStream() Dim sw …

Member Avatar for Ossehaas
0
270
Member Avatar for Stefano Mtangoo

I'm beginner in PHP, and for long have been doing my site in XHTML. Now I want to make a News box and have made PHP code for that function as shown below: [CODE=php] <?php function pop_boxes($words, $class) { $string = "<div $class> $words </div>"; print($string); } ?> [/CODE] And …

Member Avatar for Stefano Mtangoo
0
82
Member Avatar for changeco

I have a small elearning app and I want to check against the DB for the start and end dates (from mysql) and if they meet the criteria, good, else location.redirect to expired.php?? It doesn't redirect, any suggestions? Here's an example below... [code] function Timebomb() { var StartDate = <?php …

Member Avatar for nav33n
0
102
Member Avatar for jhonny_86

Hey everyone! I have a problem when I save using FileOutputStream, ObjectOutputStream... Well, there is no problem saving a file in my java application to specified folder e.g. "C:/folder/" (that is made with JFileChooser) but the problem is that I want to use MY self made icon (that has, lets …

Member Avatar for JamesCherrill
0
566
Member Avatar for ryy705

Hello, I call the imagettfbbox function like so `imagettfbbox($font_size, 0, 'monofont.ttf', $code)` but its generating the following error: 'imagettfbbox() [function.imagettfbbox]: Could not find/open font' monofont.ttf is in the same folder. And the code executes fine on the server. It just won't work on my computer. This leads me to believe …

Member Avatar for mcscreech
0
1K
Member Avatar for marjan_m

Hi, I need to discuss some problems regarding handling of text boxes using php which are as follows: [LIST=1] [*]Can we set focus of a text box when an if condition is true in php? [*]Can we disable a text box when an if condition is true in php? I …

Member Avatar for marjan_m
0
98
Member Avatar for starzstar

Hi I want to print something like this to the standard o/p I am currently doing sys.stdout.writelines("%s %10s %10s\n" %(Folders['Table']['Table'][i]['name'],Folders['table']['table'][i]['data']['Place'],Folders['table']['table'][i]['data']['Age'])) but is not very well formatted how do I maintain column structure here ====================================================== Name Place Age ====================================================== John US 11 Mary UK 12 Mike US 14 How to do …

Member Avatar for jlm699
0
98
Member Avatar for MyRedz

here's my question here Construct a class named Coord that contain two floating –point data member named xval and yval , which will be used to store the x and y values of a point in rectangular coordinates. The function member should include appropriate constructor and display functions and friend …

Member Avatar for siddhant3s
0
134
Member Avatar for magicfun

Hello, I am trying to get my xml to format just the way I need it. A little background. I am using a flash piece which has 'site news' displaying with an xml document. I then have another button below the flash piece that says "view all news items", which …

Member Avatar for magicfun
0
146
Member Avatar for greg022549

I am just learning how to use C++ and I am anxious to do so.. I need help with working with double selection if statements. Here is what I am trying to accomplish with in my program: If a client selects to travel to Japan he is charged a flat …

Member Avatar for vmanes
0
90
Member Avatar for anusumesh

Hi, I have created two web pages say [B]first.asp[/B] and [B]second.asp[/B]. first.asp has a link of second.asp and [B]username is embedded in url [/B]of second.asp.([B]second.asp?username=dvhsdghsdg[/B]) [B]Second.asp [/B]has a link for some [B]https site say securelogin.asp [/B]and i want to access the [B]server variable "referer Url"[/B] to retrieve username in https …

Member Avatar for anusumesh
0
344
Member Avatar for Thamizh Bharat

Hi, I am confused over the link between RGB, YUV and awt.Image. I converted a buffer having RGBFormat data to an awt.Image. I then converted a buffer having YUVFormat data to an awt.Image. I used BufferTo Image.createImage(format) method for the conversion. (RGBFormat and YUVFormat are classes in java for RGB …

Member Avatar for JamesCherrill
0
436
Member Avatar for lonestar23

I am trying to parse the the following xml code below, I need to retrieve only totalhits="376719" in the "resultset_web" child. I also need to use code similar to the following: [CODE]<?php $doc = DOMDocument::loadXML($information); $result_node = $doc->getElementsByTagName('resultset_web'); $tHits = $result_node->item(0)->getAttribute('totalhits); ?>[/CODE] /* XML TO BE PARSED */ [CODE]$information = …

Member Avatar for lonestar23
0
203
Member Avatar for marcux

Hi all! I can not find my way around disabling widgets in pygtk. Is there one way for all type of widgets to disable them? By disabling I mean not being able to edit an entry and it is "grayed out", or the same for a checkbox, combobox and so …

Member Avatar for marcux
0
356
Member Avatar for StarZ

As the title says, I need help on how to generate random numbers. Like say, if the program asks the user "How many random numbers do you want?" and the user enters "4" It would generate 4 random numbers. How do I do that? the programs outputs random numbers on …

Member Avatar for StarZ
0
229
Member Avatar for theod1987

Hey I am trying to practice some recursive function writing for a class I am taking and I am writing this code and I pull up an error that says ".class" expected in the bold, underlined line! [CODE] import java.util.*; /* This class is one in which the program will …

Member Avatar for theod1987
0
5K
Member Avatar for urbandad70

I am working on another thread, but I encountered a problem just testing importing into an array. I use this code and it just hangs. I am stuck, please help. FYI, the scores.txt is in the same location as the source code. [code] #include <fstream> #include <iostream> #include <cstdlib> #include …

Member Avatar for jencas
0
144
Member Avatar for qinise4

I have written the below code in C ,the problem I have one proccessor and I am not sure if it will work, [code=c] /*#include &ltstdio.h> #include &ltstdlib.h> required for randomize() and random() #include &ltconio.h>*/ #include <stdlib.h> #include <stdio.h> #include "mpi.h" #include <math.h> //int N = 8; /*typedef struct { …

Member Avatar for qinise4
0
168
Member Avatar for Stefano Mtangoo

Hi All, Here is my Index code. How can I make footer be at the bottom of other div. In css I floated to left the leftbar and to right the main contents. The header is fine but footer comes just below main content instead of being at bottom of …

Member Avatar for Stefano Mtangoo
0
120
Member Avatar for devilz

Dear reader (s), In my AccessDB, JanuaryDay(Table) having two columns JanDate & JanShift. JanDate contains all the dates of each month and JanShift contains text value for each date. Its like: Id JanDate JanShift 1 1/1/09 SM 2 1/2/09 M ……………………… ……………………… 31 1/31/09 M I Can retrieve the recordset …

Member Avatar for devilz
0
144
Member Avatar for Deepak.G

im not sure if this is the right place to post this doubt.. i have installed this cint interpreter 5.15 think is i dont want those many options and i want to reduce it to the bare minimum...but the thing is im not very strong in c/c++ and this whole …

Member Avatar for ArkM
0
225
Member Avatar for fieroheart

Basically I have made a database that does all of my company's human resources needs. Now I have no training and everything has been learned from trial and error and/or looking up on the internet, but try as I might, I cannot find the answer to this question. Basically on …

Member Avatar for fieroheart
0
97
Member Avatar for brightline

I want to check if the user had selected a node from a treeview or not using javascript. I'm using VS.NET 2.0. Thanks In Advance.

Member Avatar for jaiswarvipin
0
1K
Member Avatar for onyxmethod123

I'm a freshman student in my first computer science class, and I've hit one of many walls in Java development. For a little background, we're working with BlueJ. Our assignment is to implement an ArrayList into a class that calls upon another class "Circle" to create and modify a large …

Member Avatar for stultuske
0
66
Member Avatar for anusumesh

Hi I am using <asp:Gridview> to display my data. I am adding columns and rows dynamically. I am facing following issues: 1. I want [B]scrollbars around the gridview [/B]and for this purpose i used [B]<div style="overflow:auto">[/B] and its working fine. But issue is that the header row also scroll down …

Member Avatar for jaiswarvipin
0
196
Member Avatar for acardiac

I have written this program and i am facing problems in the SearchRec() and DelRec() function.....SearchRec() function is supposed to search for a record on the basis of the pptno provided and if found would return 1 else it would return 0(but it is no working).And the DelRec() function should …

Member Avatar for Ancient Dragon
0
242
Member Avatar for Richy321

Ok so this is probably a stupid quesiton with an easy answer. Im learning directx and trying to create a simple 3d game. I need to move my character in the direction its facing rather than just using by the world axis. I think its some easy maths i feel …

Member Avatar for Richy321
0
192
Member Avatar for mariappan.s

Hi Sir.. I am Using MySQL-Front 5.0 .. I want to create a Trigger n Stored Procedure.. But I Could't Do In MySQL .. It shows an error message n ask Super privilages... My Doubt is .. Can we Do Trigger n Storedprocedure in MySql-Front 5.0 and .. If Possible,, …

Member Avatar for verruckt24
0
97

The End.