199,114 Archived Topics
Remove Filter ![]() | |
Hi there, can you explain to me in the easiest way what is an Architecture n-tier ??? And how to apply to a ASP.NET page or project, whit an example of code if is possible. Thanks a lot for your help!! | |
Hi there, I am working on an accordion, I am more interested in the way it works, but I am having some problems. I worked on something similar sometime ago, and got some help in here, but I thought I will try to do it again on my own..and ehm, … | |
Hello everyone,I need some good practise problems in java programming so that i can apply concepts in solving the problems.So any help would be much appreciated.Please refer me to any link or suggest me some book for the same and also I am new to this website so forgive if … | |
This is not working..:( RadioButtonList1.Text=reader["Type_Of_Purchase"].ToString(); | |
![]() | Hi, I have made a code where I write a recipe to a file and then I can read from the file and it is output in a listbox. I need to allow the user to change the amount of people served and then the quantities change to suit the … |
hey guys i have done my codes and its working properly the only thing that's bothering me is that' when i input 52 and 'a' as my name, it wont ouput the right answer (it should be 'a' also) i hope you guys can help me thanks! public static void … | |
This is driving me crazy. I downloaded netbeans and love it but for the last 5-6 hours i have been trying to figure out why my java programs is not showing images. When i open it with jGrasp the images and everything loads perfect. With netbeans it will not show … | |
Hi, I am writing a script which will run a process in a while loop, i.e., user will execute `sh test.sh ` and the script will run a set of processes, I want to know how to kill the script which is having a infinite while loop in its contents. … | |
![]() | if I have a function with 1 param that is default, meaning if it isn't sent in the function call it get's it's value from the value I put in the function definition- like this: function func(a$, $b, $c=null){} I can call this function like this: func(1,2); //$c get's null … |
The code i used in JGrasp to show the image is not working in Netbeans The code i used in JGrasp is final ImageIcon icon1 = new ImageIcon("image/money.gif"); JOptionPane.showMessageDialog(null, " blah blah", "Text", + JOptionPane.INFORMATION_MESSAGE, icon1); And if i wanted to show an image in JOptionPane.showInputDialog would it be the … | |
You are required to write an application called Customer Billing System. This system will calculate water usage charges for a month that has been imposed by Syarikat Air Melaka Berhad. This system will categorise users into residential users and industrial users and calculate the charges based on data entered by … ![]() | |
To Check Wether the 3 Points are Collinear or Not. | |
Hi! I've encountered another problem, The code below is just the part of the code where the error occurs int FindStr(FILE *f, char *str) { int s_pos; //string position in the text int c_pos; //char position in the text char *string; char ccnt; //char count s_pos = -1; c_pos = … | |
Hello, I have this code which grabs url from a webpage, when i add multiple urls, sometimes some of the webpages does not have images in the div that i mentioned in this php code so it returns with this error : Fatal error: Call to a member function find() … | |
I want to start a collaboration with just 1 Java programmer (intermediate or pro) for building our own graphics library . I have tools for real-time collaborative code editing (a plugin for eclipse), so you don't have to worry about uploading your code on internet and then I have to … | |
How do I make 6 labels and next to those labels there are 6 different times. And each time u click the label the time next to it goes down. I'm working in VB 2010. | |
Hello, I'm trying to convert some code from BASIC to C++.. But, I'm stuck on a particular part.. REM CREATE A MATRIX C WITH (COS(DN) , -SIN(DN)) : DIM C(NE, NS, 2) FOR N = 0 TO NE / 2 FOR E = 0 TO NE - 1 DC = … | |
i have programe where i use serial number for each document number. now i want to start serial number with one againe in new financial year, but restarting number with one result in duplication of reference number in database. how to get this. | |
class Student { // data members private String _studentNumber; private String _studentName; private int _markForMaths; private int _markForEnglish; private int _markForScience; // Set Student Name public void setStudentName(String studentName) { _studentName = studentName; } // Set the student number public void setStudentNumber(String studentNumber) { _studentNumber = studentNumber; } // getNumber() … | |
Hi, I'm trying to make a simple applet that will display battery status using gtk+ . For that purpose I have written code given below. It continously check for battery status using acpi command and display it. Do you think that I have done things in proper way? I want … | |
I am creating my purchasing system for my game at the moment, but I am struggling on a part of it and wondered if any of you could offer me some guidance? The problem I am facing is adding X amount onto a value but if that means it goes … | |
Hi, I've never used bash before, but am creating a file. Here's the skelton: while read line; do if [ -e "$line" ] then else cat > $name << EOF EOF cat > rails << EOF EOF fi command $name & done < projects.txt The error is: "line 55: syntax … | |
Hi, I am having trouble with this chunk of PHP script: <?php $deny = array("Example IP"); if (in_array ($_SERVER['REMOTE_ADDR'], $deny)) { header("location: http://www.google.com/"); exit(); } ?> It works fine, its just when I try to link to a file that has the $deny var, it wont work. I tried using … | |
Why does the following code skip the initialization of values of the temporary created? Box::Box() : X1(0), Y1(0), X2(0), Y2(0), W((X2 < 0 ? -X2 : X2) - (X1 < 0 ? -X1 : X1)), H((Y2 < 0 ? -Y2 : Y2) - (Y1 < 0 ? -Y1 : Y1)) … | |
Good Afternoon, I'm having some problems with a problem that deals with raising the power of an integer. So far I have this code. #include <iostream> #include <cmath> using namespace std; int main() { int num, bigNum, power, count; cout << "Enter an integer: "; cin>>num; cout << "What power … | |
Hi, I trying to let the user input how many numbers that they want to average and outputting the average of those numbers. I have this code, but not working as aspected. #include <iostream> using namespace std; int main () { int numCount, total; double average; cout << "How many … | |
I need code for iframe for the replacement of frameset. My frameset code is <frameset rows="14%,*"> <frame src="logout.html" scrolling=no> <frameset cols="25%,75%"> <frame src="Players Name.html"> <frame src="Dhoni.html" name="secondframe"> </frameset> </frameset> I need it in iframe. I cant able to nest iframe which i did in frameset. Is it possible to write … | |
Hello, I would like to tie a dropdown list to my dataset that i have populated from my database. however, there are repeated values in the datatable. my table is as below... BMNO CellName 123 office 242 office 678 production 290 production 101 productiom 890 stores 512 Goods In 514 … | |
![]() | I'm trying to add the int values of Integer objects within an ArrayList, using a recursion (for the first time). Here's what I have so far: import java.util.Scanner; import java.util.ArrayList; public class SumArrayList { private static int calculateSumArrayListHelper(ArrayList<Integer> duplicate) { if (duplicate.size() == 0) { return 0; } int lastNum … |
I'm a bit confused atm, I don't know when to use const T& or T& or T as a parameter. Currently I'm doing: void Resize(std::vector<T> &Vec, const size_t &NewLength) //Ahh edited the function as a result of Lucaci's answer. { Vec.resize(NewLength); } //But thinking of doing: void Resize(std::vector<T> &Vec, size_t … | |
Hi all! Is my first post here and well, im very new with python (just aroun 10 days). I did the famous "Guess my number" game. (Python pick up a number and user must guess it). All right, i have not problems with this. But now im trying in the … | |
![]() | Hi again, I posted last week about a Go Fish game that I was trying to write - well I've sorted out my past issues and now I'm trying to rewrite my CardPile class (that defines such things as the deck or a player's hand) to consist of an ArrayList … ![]() |
Ok i think i'm getting closer to what I need.. Here's the error msg i'm getting. Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'table WHERE id = Stef Longo' at line … | |
Well this is not so much of a need, but i really want to learn how to do error handling assembly language[TASM] Basically if the user just types or presses enter the code will go back to the same question with probably a message box or writing stating that they … | |
Hey, Iv been looking around google for the past few days to find ways to embed python 3.2 into my c++ application. I however want interpeter to be compiled into my application, so i can merely distribute one exe file without relying on the user to install python. However the … | |
What does main() function do in?wtz da difference between void main() and int main()?why should I use? extra two questions :- what first two lines, #include <iostream> using namspace std; do? thanks | |
Good Afternoon, I'm having trouble process 2-D arrays to store and process data. I have problems with implementing the void grading function and void showgrades function So far I have this code: Cpp file: #include <iostream> #include <fstream> #include <string> #include <cstring> #include <cmath> #include <cstdlib> #include <iomanip> #include "lab_20_head.h" … | |
I was told you can access the index of an array and save it in a variable. Like, as you know, every element is referenced by an index number. 0,1,2,3,4 etc.. I don't want to save the content, I need the index number. I will need to know the position … | |
I have a file info.txt like below NAME ID=karan PLACE=Mumbai AGE=23- PHONE=1234 HANDICAP=No- OCCUPATION=Student NAME ID=Ravi PLACE=Goa AGE=25- PHONE=4567 HANDICAP=Yes- OCCUPATION=Employee I want to read the file with make them into record strings as below "NAME ID=karan PLACE=Mumbai AGE=23 PHONE=1234 HANDICAP=No OCCUPATION=Student" "NAME ID=Ravi PLACE=Goa AGE=25 PHONE=4567 HANDICAP=Yes OCCUPATION=Employee" Please … | |
Hi, Code below works fine up to **hr**. For some reason, html code appears as is in textarea. It should first appear as notmal text. Anyone know why? Thanks <!DOCTYPE html> <html> <head> <style> p { margin:8px; font-size:20px; color:blue; cursor:pointer; } b { text-decoration:underline; } button { cursor:pointer; } </style> … | |
**Dudearoo** *Useing Code::Blocks* ok, ive got a somewhat simple error that i cant crack, First heres my code. #include <iostream> #include <cstdlib> #include <stdio.h> #include <time.h> #include <conio.h> #include <stdlib.h> #include <iomanip> #include <windows.h> // so to use strcmp #include <cstring> #include <fstream> using namespace std; int main() { ofstream … | |
I have created a page myfunction.php and added two functions: function AppNotify ($Uid,$ Message,$ Data) { return; } function AppNotifyUnfriend($Uid,$ Message,$ Data) { return; } After that I created another page and include “myfunction.php” on these page then create code $done= AppNotify (‘12’,’hello’,’Delete’); $done2= AppNotifyUnfriend(‘12’,’hello’,’Delete’); The problem is when i … | |
0 down vote favorite I am currently making an application to store employee details such as name, id and email address. I am doing this using a HashMap. I am currently having difficulty with a searchByName,id and email address methods. How would i go about writing one ? Here is … | |
Could someone explain in the most simplistic terms possible why this doesn't work: var cell00501=row005.insertCell(-1); cell00501.align="center"; cell00501.width="8%"; cell00501.onclick="RadioClicked(0)"; cell00501.innerHTML="<IMG SRC='RadioOn.jpg' BORDER='0' NAME='Spangle0'>"; By doesn't work I mean the onclick event doesn't result in the RadioClicked() function being called. I have come up with the following workaround: var cell00503=row005.insertCell(-1); cell00503.align="center"; cell00503.width="8%"; … | |
Create a class named Student (class definition program). The class contains: • Private attributes to store values of Student name, Student university and Student mark. • A method named initialize() to assign initial value to the Student name, Student University and Student mark as specified in the parameter. • A … | |
I recently left Python behind to pick up Java. In Python, a variable defined in a function could not be called outside of the function. But you could at least let the function return a value, which could be a variable defined in the function. When a variable is defined … | |
I know zilch about electronics, that is why I am on this site, because I have a problem. I do R & D in the world of Metaphysics, and my specialised subject is Subtle Energies. Normally in this field we have to use things like Pendulums, stick pads, muscle testing … | |
The first problem is this: I want to create a LinkedList of type_A. type_A will contain a LinkedList of type_B. The below code fails at compile saying: Node_B does not name a type. The only way i see around this is to create different LinkList.cpp files for each type (such … |
The End.