199,114 Archived Topics
Remove Filter ![]() | |
I need help with this program. I do not know how I would calculate to find out the gallons as well as the cost as pictured in my output. How would you do this? Here is my output: For each student, you will get the gallon of paint Input the … | |
Hi Need help reading data from a file after a specific point. I need to read the data from this file into a richtextbox after the [HRData] header. This is the contents of the file I'm reading from. [CODE][Params] Version=106 Monitor=34 SMode=111111100 Date=20100926 StartTime=08:45:59.0 Length=00:33:36.6 Interval=1 Upper1=0 Lower1=0 Upper2=0 Lower2=0 … | |
Hi all, Firstly- I've written a PL/SQl procedure to what I'm asking about in this posting. However, I'd like to do it with a single(or nested) SQL selection statement (I don't think its possible, but I'm no expert and was interested to hear if anyone has a solution- or just … | |
Right now, with the manifest file, I am able to create my runnable jar to work with: folder structure: [CODE]libs/thirdpartylib1.jar libs/thirdpartylib2.jar myJar.jar[/CODE] using this manifest: [CODE]Class-Path: libs/thirdpartylib1.jar libs/thirdpartylib2.jar Main-Class: myPackage.myClass[/CODE] Is there any way I can package these jar files into my runnable jar so that I do not need … | |
This is the function in question... What happens is the user opens notepad, if notepad is open then they are required to type a password.. If its invalid, notepad is closed.. if the password is valid, it continues.. else if the user hasn't entered a password within 10 seconds, timeout.. … | |
Hi all, i have been given an assignment asking me to: "The CashRegister class has an unfortunate limitation: It is closely tied to the coin system in the United States and Canada. Research the system used in most of Europe. Your goal is to produce a cash register that works … | |
Hi, I am using the Google Maps API to integrate mapping into a web application. I am using HTML and JavaScript. I am having difficaulty integrating the directions function. I have a form which collects the users address/current location which is supposed to display a set of turn by turn … | |
Please send me the working link of 'free downloading oracle9i' and steps for downloading it. Thank you! | |
Hello, I'm curious as to what the "key" for a DataTable Row collection is. And if there is a better way of executing what I'm trying to do. My situation is this. I have a DataTable populated with different data from multiple databases, for the sake of this thread let's … | |
I tried to make a simple program, draw a 4 sided polygon with 4 mouse clicks. This is the code: [CODE]import acm.graphics.*; import acm.program.*; import java.awt.event.*; public class Pravougaonik extends GraphicsProgram { public void run() { addMouseListeners(); } public void mouseClicked(MouseEvent e) { GPolygon cetvorougao = new GPolygon(); cetvorougao.addVertex(e.getX(),e.getY()); cetvorougao.addVertex(e.getX(),e.getY()); … | |
the code display 2 colunms in one combo box from a table. i have table with 2 columns account_type and account_name. the account_type is an abbreviation(codes) which would be stored in a new table when selected. I want the code when the combo is click, would display the code-account_type and … | |
Hello World! I am new to C and would like to write a C program to accomplish the following: I have an external 600GB USB disk device, Padlock Pro. The device, which can be seeing at: [url]http://www.amazon.com/Apricorn-Encrypted-Portable-External-A25-PLe256-640/dp/B003EYVJTU/ref=sr_1_1?ie=UTF8&qid=1298479333&sr=8-1[/url] has a number pad on it. It uses a maximum key of 16-digit, … | |
I am doing some code challenges from a book and am stumped on this particular challenge. I am supposed to pass an array to a function, use the function to determine the minimum, pass that value back to main and print a response varied by the returned value. The problem … | |
How can I change the image on the picture box when the mouse is over the picture box I know how to end the application when the mouse is over the picture box but what is the code for changing the picture C++ (I need to use mouse enter class) … | |
Hello! I am trying to write a program using recursive functions to identify the path to a given maze. The thing that I am confused about is how to move to the next direction in order to check which way the path goes. For example: 000000 011100 010100 010110 0S00F0 … | |
I wanted to know if its possible to change the text of a JTextArea or JTextPanel from another method and if so how? | |
Hi.. Please help me in creating a script that will show the hidden textbox if a checkbox is checked.. I don't have any idea on how to do this. Thanks in advance.. | |
I am trying to implement a bruteforce check on a loginpage. It logs the logins from a certain ip. If there are more than 10 it will stop saving the logins in the database and will set the $nopage variable to 1. [CODE]$ip=$_SERVER['REMOTE_ADDR']; $res_check_bruteforce=$teste->query("select count(id),max(time) from bruteforce where ip='$ip'"); echo … | |
I am trying to implement a CSS hierarchical unfolding menu on a site. The thing is, it needs to be dynamically populated from the results of a database query. I previously had the menu working but then it was ‘hard coded’ and not built on the fly. Menu description: 2 … | |
i want search ,whene i want search this time show all same information from sql server using by php code case "search": $ID=$_POST['ID']; $bodyInfoText="$ID"; include("db_connect.inc.php"); $SQL="select * from tbl_person where kamal='%$ID%'"; $result=mysql_query($SQL,$con); if($result): if (mysql_num_rows($result)==1): $bodyInfoText="show_user_info.inc.tpl.php"; else: $bodyInfoText="$ID $Pass inValid user"; endif; else: $bodyInfoText="Fail to select :".mysql_error($con); endif; break; but … | |
Dim substr As String = dr.Item(4) if substr is {System.DBNull} substr = "" if substr is "" then do not do substr = substr.Substring(0, 2) else substr = substr.Substring(0, 2) I need this in vb.net | |
hi frens.. i have this piece of code, which is not working the way i thot it would. i want to check if the $key exists in array $rowid, where $key also comes from database. lets say, key exists for the 1st iteration (it prints exist), but if key exists … | |
Hello all, So I am having trouble figuring out a runtime error I am getting in my code. Essentially I read in data and push it into two lists (using the STL list). Then I use the .sort() function to sort the data by average. However I am having a … | |
I have just started learning Gtkmm basics, and I the box widget is doing my headache, and here is the problem: [CODE] #ifndef NEWFILE_HPP #define NEWFILE_HPP #include "gtkmm/window.h" #include "gtkmm/scrollbar.h" #include "gtkmm/adjustment.h" #include "gtkmm/box.h" #include "gtkmm/label.h" #include "gtkmm/scale.h" #include "gtkmm/togglebutton.h" class window:public Gtk::Window{ public: window(); ~window(); private: Gtk::VScrollbar bar; Gtk::Adjustment … | |
Hey guys! So I recently started exploring the InetAddress object, and came across 2 methods which confused me: [ICODE]getHostName()[/ICODE] and [ICODE]getCanonicalHostName()[/ICODE]. I don't fully understand the difference between a canonical host name (fqdn) and a general host name, so if someone could explain the distinction to me in detail that … | |
Hi, Was wondering if anybody could give me his/her opinion about what i am doing. This program i am writing is basically a way to record orders. So i got a bunch of possible components required, which got their textfield(1 for product info, 1 for product price). Those are controlled … | |
Hi There, I create an SQL statement to retrieve some data from DB. However I can not do the third if statement! my code; [CODE] $search = care_query(" SELECT contact_number, role, is_active FROM contact_roles WHERE contact_number='$mn' AND is_active='Y' AND role like 'S%'; "); while($row = care_fetch_array($search)) { $role= $row['role'];echo "<pre>"; … ![]() | |
I have written the following code which works fine But the problem is in the database only 3rows from csv file is reflected and rest is not Following is my code Can anyone help me for the same [code] namespace Test1 { public partial class Form1 : Form { public … | |
So I converting a decimal value into hex, but I need to print it out from an array. I'm not sure where to go from here. [CODE] #include <stdio.h> #include <stdlib.h> #include <string.h> int hexa = 16, deci, quotient, p; void dec2hex(unsigned int x, char hex[]) { for (p = … | |
Hey people, I have a database that is stored on a remote machine. In my application i have used connection string with IP address of that remote machine. Now, the problem is every time the remote machine is turned on it has a new IP address. Is there any way … | |
Hello Anyone can pls provide me with a sample code, whereby if I change a field value in a web form (from a drop-down list for example), the value shown in another field is automatically updated to show the needed value for that selected option? | |
how to connected data base(sql) with c language......? with exampal...? | |
How can this be... Another odd thing is that the error appears on the page but no trace in console This is my code [code=java] package actions; import com.opensymphony.xwork2.ActionSupport; import logic.*; import logic.organizations.Project; public class CreateProjectAction extends ActionSupport{ private Project project =null; private String message = "NULL"; public void setProject(Project … | |
[CODE] <html> <body> <canvas id="example" width="800" height="600"> This text is displayed if your browser does not support HTML5 Canvas. </canvas> <script type="text/javascript"> var example = document.getElementById('example'); var context = example.getContext('2d'); for(var j=0;j<8;j++){ for(var i=0;i<6;i++){ context.fillStyle = "rgb(255,0,0)"; context.fillRect(100*j, 100*i, 50, 50); } } </script> </body> </html> [/CODE] how do i … | |
Hello ppl, I have recently started C# and while going through initial pages of bitwise operators 1 doubt came into mind. v know dat int is of 32 bits in C#. Suppose i take a number and assign some value to it and then after left shifting it by 32,the … | |
Dear Sir/Madam, I have two types of procedure for one/same result. No. 1 procedure is very long without loop and no. 2 procedure is sort with many loops. So I want to check those procedure, which one is taking less time than another. Please guide me. | |
For example i have the following fields in the database name, student number, course then i have multiple data in the database e.g. 25rows = 25 students when i try to edit them, you need to first click the row in the datagrid that you want to edit then ive … | |
Hi, I have a jsp page running under jboss 4.2.2 server. The structure for the page is like : include head ( head is written on another page, like masterpage in aspx. ) <body> ( codded in main page ) include foot ( foot is also written in another page. … | |
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent ![]() | |
i allocate memory for b_edge in function bark_edge and give value to only b_edge[1][1] and try to return b_edge from function. segmentation fault comes? can you please check why? [CODE]//function bark_edge+main program #include<stdio.h> #include<math.h> #include<stdlib.h> double **bark_edge(); main() { double **b_edge; b_edge=bark_edge(); printf("%f",b_edge[1][1]); } //FUNCTION-bark_edge double **bark_edge() { int i=0; … | |
Hello there, I'm trying on Gui exercises. One of them requires a simple GUI class for Vehicle. The GUI should have buttons for creating new SportsCar and new Van objects. and then should display the values of the instance variables of these variables. The GUI should also calculate and display … | |
segmentation fault comes in the program? please help? is there any way i can check in which part of the program is the mistake? Thanks daniweb and members... [ICODE] //function bark_edge+main program #include<stdio.h> #include<math.h> #include<stdlib.h> double **bark_edge(int f_size,int samp_freq); double **transpose(double **x,int M,int N); main() { int f_size=1024; float samp_freq=44100,fcmax=samp_freq/2; … | |
What is wrong here ... as verb_id and item_code is being entered into the database as "0" ... even the date is like 0000/00/00 ... Thanx in advance !! [CODE]<?php $verb_description=$_REQUEST['verb']; $item_description=$_REQUEST['item']; $post_description=$_REQUEST['post_description']; //to fetch verb_id $verb_sql="SELECT verb_id FROM tbl_verbs_master WHERE verb_description='$verb_description'"; $verb_id=mysql_query($verb_sql) or die(mysql_error()); //to fetch item_code $item_sql="SELECT item_code … | |
hi, is there a way to convert from string to long? for eg: i want to concatenate all the arrays into data and make it same type (long) as data1. [CODE] a='0x' array0 = '00000018000004000000000000000000' array1 = '00000000000000000000000000000000' array2 = 'fe000000000000000000000000000000' array3 = '00000000000000000000000000ffffff' data = a+array0+array1+array2+array3 print data print … | |
Hi there, this is my first post here and i hope that im in the right place. as the thread's title explains (at least i hope it does) im trying to analyze a string and filter out valuable data from a Cardrooms Client logfile - to get precise: say i'm … | |
c# interview questions are generic collection faster. I had a argument with the interviewer and my thought is they are not faster please help. | |
Hi Everybody, I want to send Free sms in java without using any modem please help me out,i have been doing this since one week. Any help will be deeply appreciated. Thanks in advance Arpita :) | |
I need some help with checking a process or if a certain window name is open on my project. Right now what I have is: FSXCheck = Timer fsx.exe = Flight Simulator X [CODE]Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load FSXCheck.Enabled = True End Sub … | |
Kindly tell an algorithm to sort a data of 500mb while the memory of the system is just 2 mb. Thanks |
The End.