199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kesh1000

hi can anyone give me a suggestion as to how i could replace data in dat file. the problem is that if i put the data into a string buffer and call replace it will not change the data in the file but i need that to hapen and the …

Member Avatar for stultuske
0
127
Member Avatar for AdRock

I'm trying to help someone out with some javascript that works in IE but not in firefox. It's basically a filter so you select some options from select boxes and the javascript hides or shows any table cell that is not needed. The html is shocking and the javascript doesn't …

Member Avatar for theighost
0
213
Member Avatar for MaristBrandi

Hi all! I am trying to get a JavaScript date selector to work for a front end I'm writing. I've seen a lot of problems related to JavaScript and IE vs. Firefox but I've yet to find a solution to my issue. I have a simple form - when you …

Member Avatar for theighost
0
370
Member Avatar for domingo

hi i tried to search from a dataset but when i try to add from a dataset to a datagridview it is not adding to the datagridview. here is my code. moreover if i try a messagebox the result found is being displayed. [CODE]con.Open(); cmd = new SqlCommand("sp_getUsersDetails", con); cmd.CommandType …

Member Avatar for domingo
0
108
Member Avatar for Colin454

Hi all I am enrolled in abeginners class and am having problems with methods. I keep getting a .class expected and do not know how to fix this. It is at this line that the message appears `total = Circle.area(int radius);`. import javax.swing.JOptionPane; public class Circle { public static void …

Member Avatar for Colin454
0
119
Member Avatar for Rmitboy

I write a C program that reads a text file and copies it to standard output, adding to the start of each line the line number and the number of characters in the line. For example, if file contained the following: Hello Daniweb forum How are you today? Good day …

Member Avatar for Salem
0
156
Member Avatar for baseballfury

Hello, I am currently working on a function that will allow the user to search for an event by date and category. I've been using the w3schools exercise as an example but i wish to pass 2 pieces of data instead of one and am not sure how to do …

Member Avatar for thonz
0
2K
Member Avatar for rizzi143

13. What is the output of the following code? int x; int *p; p = new int; *p = 14; x = *p; *p = 65; cout << x << ", " << *p << endl; a. 65, 65 c.14, 14 b.65, 14 d.14, 65

Member Avatar for Salem
0
295
Member Avatar for drbrown3

Ok, using Jgrasp I was given a problem that asked me to design a GUI program to find the weighted average of four test scores. The four test scores and their respective weights are give in the following format....testscore1 weight1 This is what I have so far, the code will …

Member Avatar for masijade
0
462
Member Avatar for zerioni

Ok, so i am quite new to JSP. Working on a big database project, and I'm left scratching my head here. The ugly code below calls the chemical name and chemical id properly, and links the chemical name to a page where the chemical with that id will be viewed, …

Member Avatar for peter_budo
0
84
Member Avatar for Neo1969

Hi all, I'm new to PHP and am doing a project with a php generator called PHPRunner and I have a design of the database in which the first table is the master of the second, the second of the third and the third of the quarter as follows: Categories …

Member Avatar for Neo1969
0
1K
Member Avatar for scrappy57

Hi friends, can any one let me know what hash algorithm is used by linux system for its shadow passwords. I'm totally confused some say MD5 and some SHA-512 which one is true and can give the source for answer if got them. Thanks linux learner

Member Avatar for jephthah
0
81
Member Avatar for sanbal

Even I installed asp_regiis . I am using Visual Studio 2008 v3.5 I am facing an issue while building a web project. I have added the controls in the design window as [code]<td align="left" valign="top"> <asp:DropDownList ID="ddlCategory12" runat="server" CssClass="dropDownList" AutoPostBack="true" OnSelectedIndexChanged="ddlCategory12_SelectedIndexChanged"> </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" InitialValue="----Select----" CssClass="validator" ErrorMessage="Please Select Category" …

Member Avatar for sanbal
0
101
Member Avatar for mksafi

Can you please give me sample code of a Win32 console application that will hook to Windows through the API and listen for mouse clicks (all mouse clicks in the OS; not just the clicks on the app's window)? I looked high and low for this, but couldn't find it …

Member Avatar for mksafi
0
258
Member Avatar for kiranbvsn

I am having two dropdownlists that are interrelated, in which one is vertical ddl and the other department ddl in a grid view if we select the vertical ddl then corresponding departments have to appear in department ddl. I've written the code like this In footer of gridview i successful …

Member Avatar for Sals
0
103
Member Avatar for c++student01

This is a school project. I need to read jokes from multiple files and show them in separate threads. It complies but I keep getting IndexOutOfBoundsExceptions. Any tips or help you can give would be greatly appreciated. [code] import javax.swing.*; import java.awt.*; import java.io.File; import java.io.*; import java.io.FileNotFoundException; import java.awt.event.*; …

Member Avatar for vchandra
0
143
Member Avatar for nwalser

so my assignment is: For this assignment, your job is to create a program that reads in multiple lines of text, and then produces the translation of that text into the English language variant known as "pig latin". Pig latin works this way: if a word begins with a vowel …

Member Avatar for kvass
0
227
Member Avatar for fumnimda

hi there i am trying to use php-openid-2.1.3 . it seems just works with yahoo but gmail and facebook is needed too. would some body help me in this issue?

Member Avatar for fumnimda
0
102
Member Avatar for mani_singh

hey guys, i need help with understandind this code-actually just some parts of it. can you explain to me what the purpose of this is: *(float*) variable = 34; i can understand the variable = 34 part just not the *(float*) part. what does it do? also what is the …

Member Avatar for nezachem
0
264
Member Avatar for adarshcu

[CODE=python ]while 1: tracking.update() for obj in tracking.objects(): allobjs=[] allobjs.append(obj.xpos) allobjs.append(obj.ypos) allobjs.append(obj.xmot) allobjs.append(obj.ymot) allobjs.append(obj.sessionid) aobjlist.append(allobjs) [/CODE] In the above snippet of code tracking.objects() returns a list of objects with above mentioned properties. tracking.update() continuously updates obj attributes and adds new objects. Our requirement was to have an Multi dimensional list …

Member Avatar for adarshcu
0
203
Member Avatar for prabooh

i want to connect an vb6 form with oracle9i so that i can insert update n delete ,what are all the ways i can connect to db , anyone help me with code , form one has four fields student name , id dept, year n college, if i click …

Member Avatar for jhai_salvador
0
86
Member Avatar for marcel25

[code]import java.awt.*; import java.awt.event.*; import javax.swing.*; public class tictac2b1 implements ActionListener { /*Instance Variables*/ private int[][] winCombinations = new int[][] { {0, 1, 2}, {3, 4, 5}, {6, 7, 8}, //horizontal wins {0, 3, 6}, {1, 4, 7}, {2, 5, 8}, //virticle wins {0, 4, 8}, {2, 4, 6} //diagonal …

Member Avatar for BestJewSinceJC
0
93
Member Avatar for vishy1618

Well, I am currently learning Qt and I develop on two systems, a Mac OSX 10.5 and Ubuntu. I decided to make a small app with the default template in QtCreator (Qt4 GUI app). I put some menubar entries, and the last entry "Exit" is separated by a separator. While …

Member Avatar for vishy1618
0
116
Member Avatar for miskeen

Hello, I have a file where the data layout is known. Suppose it's like this: image1 SomeData ... image1000 SomeData ... I want to get an access to the line I want without the necessity to move across all the lines. Let's say I wanna access directly to the line …

Member Avatar for miskeen
0
101
Member Avatar for spdbump08

Hello, I'm having a bit of trouble figuring out how to get C++ to output something to a text file. Any help would be very appreciated. Here is the code: [code] //THIS PROGRAM IS INTENDED TO GENERATE THE SQUARE ROOT OF AN INPUTTED NUMBER USING A WHILE LOOP AND A …

Member Avatar for Ancient Dragon
0
129
Member Avatar for big_ch98

I converted a program from vb6 to vb.net, I used a propertybag to clone my recordsets and after I would filter them to navigate threw my data and then show the result in a gridview, but I have a problem in vb.net with my filter. In vb6 the program would …

Member Avatar for big_ch98
0
906
Member Avatar for Unitaren

Hello, This is my first post to the community. I have never really been one to ask of much help but I am stumped. I was asked to asked to write a word count program that received input from a scanner object. The input could consist of one or more …

Member Avatar for Unitaren
0
5K
Member Avatar for adobe71

I want to generate non-repeated random number. I tried the following code but it generates repeated random number. [code] protected void Button1_Click(object sender, EventArgs e) { Random rnd = new Random(); int n = rnd.Next(1, 100); Label1.Text = n.ToString (); } [/code]

Member Avatar for Freon22
0
194
Member Avatar for JohnPhilipps

Good evening everyone, I have been working on a base\derived class C++ program in which I am trying to compare the areas of a couple of Rectangles, and once I get past the errors I am currently having, I wouldn't mind comparing the Square to the rectangle, but first things …

0
84
Member Avatar for dragos13

[CODE]<?php $link=mysql_connect("localhost", "root","parola") or die("Could not connect: " . mysql_error()); print ("Connected successfully");print "</br>"; mysql_select_db('energiesolara',$link) or die ('Can't use energiesolaradb: ' . mysql_error()); $x=mysql_query("SELECT umiditate FROM parametrii"); $y=mysql_query("SELECT temperatura FROM parametrii"); $info1 = mysql_fetch_array($x); $info2 = mysql_fetch_array($y); $xi=array($info1['umiditate']); $yi=array($info2['temperatura']); include('phpgraphlib.php'); $graph=new PHPGraphLib(500,280); $graph->addData($xi,$yi); $graph->setTitle('Grafic'); $graph->setTitleLocation('left'); $graph->setLegend(true); $graph->setLegendTitle('Module-1', 'Module-2'); $graph->setGradient('green', 'olive'); …

Member Avatar for metalix
0
145
Member Avatar for Conielo

Hi, I can't solve this problem: I have a query which fetches the contents of the page meta tags from a database. It works fine when I have the query on page but when I turn it into a function (which is placed in my functions file) and call it …

Member Avatar for johny_d
0
178
Member Avatar for Schottenhemir

I'm supposed to output a program that comes out like this: [URL="http://img638.imageshack.us/img638/4135/screen3t.jpg"]http://img638.imageshack.us/img638/4135/screen3t.jpg[/URL] And here is the top part of the code. It is supposed to read a .txt file that has the numbers of the: flight; passengers; and miles; [CODE]int flight, passengers, miles; float income, cost, profit, base, fuel; ifstream …

Member Avatar for Schottenhemir
0
221
Member Avatar for Leon1958

Hi guys, I need to change my static HTML page (i.e. [url]http://www.mypage.com[/url]) with a link (<a href="http://www.mypage.com/form.php"> to a page with dynamic link - if user's URL for my page is [url]http://www.mypage.com/?123456789[/url] this 9-digit number from URL should appear in the link to the form - [url]http://www.mypage.com/form.php?123456789[/url] Thanks in advance.

Member Avatar for metalix
0
142
Member Avatar for apo

how can a make the floating variable show just 4 digits i mean : 8.6540098 to just 8.654 i guess what i'm trying to say is "less decimals" :D

Member Avatar for jonsca
0
130
Member Avatar for niths

hi, i am new to php. i had a query about how to get the file name and file size of the uploaded file. so that i can display it in a table. thank u.

Member Avatar for metalix
0
87
Member Avatar for johndoe444

Hi, I have written this piece of code: [CODE] public class testAssert { 2 public static void main(String[] args) { 3 int x = 5; 4 int y = 7; 5 assert x != y; 6 } 7 } [/CODE] I am not sure how to make use of this …

Member Avatar for johndoe444
0
198
Member Avatar for phpDave

HI, I am trying to insert the current date into mysql when a user submits their info. I cant use timestamp for this one. I am using datetime. It works when a user updates but not for creating. I get all 0's in the date column. Here is the code …

Member Avatar for phpDave
0
91
Member Avatar for daemion

Hi, I was wondering if there was a way to set a directory in python code when I read/write files. For example, if I have [CODE] import scipy def test_io(): scipyArray1 = scipy.array([[1.0,2.0],[3.0,4.0],[5.0,6.0]]) outFile = file('tmpdata1.txt', 'w') scipy.io.write_array(outFile,scipyArray1) outFile.close() inFile = file('tmpdata1.txt', 'r') scipyArray2 = scipy.io.read_array(inFile) print 'type(scipyArray2):', type(scipyArray2) print …

Member Avatar for vegaseat
0
159
Member Avatar for spacecowboy123

Hi All, I am using ImageIcon to display an image, however, the image does not appear. See the code i am using below. Can you see what the problem is? The receivedImage will be taken out of an object it is stored in, and then i want to display it …

Member Avatar for Abdelr7man
0
199
Member Avatar for baseballfury

Hi there, I'm trying to compare 2 arrays at the moment. There are 2 tables, the first (Category) holds a list of categories, e.g. Electricians, Plumbers, Builders and each has an ID number. The second table (Company) is a list of companies e.g. JonTheElectrician, GaryThePlumber and of course BobTheBuilder. Each …

Member Avatar for baseballfury
0
173
Member Avatar for johndoe444

[CODE]find . -name 'my*' [/CODE] The quotes avoid the shell expansion - without them the shell would replace my* with the list of files whose names begin with my in the current directory. What thus the above statement mean? Isn't it doing the same thing I mean looking for file …

Member Avatar for Fest3er
0
140
Member Avatar for Swingjohn

I have done a mortgage calculator program. it builds and run but I think tje GUI must be wrong because I cannot see it. I am very new to this and I am so lost. I do not know if this is the right forum. [code]import javax.swing.*; import java.awt.*; import …

Member Avatar for Swingjohn
0
226
Member Avatar for jackthechemist

Greetings, So, I've studied sockets, and studied TCP, and enjoy a beginner-intermediate understanding of each. However I desperately need clarification regard some fundamental concepts. Any help would be greatly appreciated: 1) Do sockets implement TCP? When I uses a socket to send data to another computer, are the computers using …

Member Avatar for jackthechemist
0
378
Member Avatar for moqbel

[CODE] #include<iostream> #include<fstream> #include<string> using namespace std; void main() { //decleration ifstream source; ofstream target; char * box; int width, height, numlevel; string s; int amount= 100; //-------------------- source.open("1.ppm",ios::binary); while(source.fail()) { cout<<"can not open the file"<<endl; // to make sure the file is opened } source>> s; if ( s …

Member Avatar for moqbel
0
96
Member Avatar for jrw89

In order to make sure my site works for a user I need to check that both JSON and XMLHttpRequest() are defined as objects by their browser. Rather than if/else I thought I'd use the ternary operator:[CODE=javascript]condition ? true : false.[/CODE] I tried the following and it doesn't work correctly. …

Member Avatar for jrw89
0
139
Member Avatar for Mestika

Hi everyone, I’m having some difficulties with a query which purpose is to give users with more than one thread (called CS) in current year a 5% point “raise”. My relational schema looks like this: Thread = ([B]threadid[/B], threadname, threadLocation) threadoffering = (threadid, season, year, user) user = ([B]name[/B], points) …

Member Avatar for drjohn
0
358
Member Avatar for aig3

I have created a form in which there are various values such as Name, Address, Date of Birth etc. The user is also allowed to select an image in a picture box. I want to insert these values along with the Image into database in appropriate columns. Any help is …

Member Avatar for fatihpiristine
0
410
Member Avatar for onsir

how to change database at runtime, i use hibernate and spring. i have make like this hibernate.cfg.xml [code] <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <mapping class="com.model.Person" /> <mapping class="com.model.Group" /> </session-factory> </hibernate-configuration> [/code] spring.ctx.xml [code] <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context" …

Member Avatar for keerthi166
0
1K
Member Avatar for vbx_wx

heelllo i am trying to upload a file to a ftp server,here i smy code: [CODE] HINTERNET internet; HINTERNET ftp; internet = InternetOpen(NULL , INTERNET_OPEN_TYPE_DIRECT , NULL , NULL , 0); ftp = InternetConnect(internet , "127.0.0.1" , INTERNET_DEFAULT_FTP_PORT , NULL , NULL , INTERNET_SERVICE_FTP , 0 , 0); bool x …

Member Avatar for vbx_wx
0
157
Member Avatar for gregarion

Hey guys, i am having a problem in getting to store data in a text file. I have a certain text file which contains data in this format... [CODE]Jimeno Rames James Kimon[/CODE] what i am tryng to do is to store each line into a seperate value. The problem i …

Member Avatar for jonsca
0
91

The End.