199,114 Archived Topics
Remove Filter ![]() | |
/** * Class BankAccount - a simple model of a bank account * designed to illustrate the concepts of classes, objects, and methods. * * @author Man Hin Wong * * @version 2010.08.12-version */ class BankAccount { // These are the instance variables private int balance; private String accountName; // … | |
Resolved UPLOAD_ERR_CANT_WRITE Value: 7; Failed to write file to disk. Introduced in PHP 5.1.0. This error will happen in this case image size is shown as zero 0. 1.In php first file is written in temp folder and then it is uploaded required folder , so check your tem folder … | |
I may not be understanding private inheritance right, but I thought when you inherited privately that you could still access public member data/functions, but the child class of the derived class would not. For some reason it is saying the public print() method is not accessable in this context....Is there … | |
I am developing software in which I needed to do more elaborate visual styles to a listbox than usual and I used some sample code online. As a good learning programmer should I tried to understand the code when I edited it and for the most part I did, but … | |
Hi all i need to generate a 10 digit (at least) alphanumeric id when a customer submits a form, it has to be unique. Is there an easy way of doing this or do i just use the uniqid function and then check against the database that it doesnt already … | |
Hi guys, I just thought I would add this because it was a pain for me to muster up due to the lack of information through google and msdn on the topic. Enjoy =) | |
Well, I have no idea whats going on... But here is the problem: I have these files: [CODE]$file2 = "password_protect.php"; $newfile = $newDir . "/password_protect.php"; if (!copy($file2, $newfile)) { echo "Creation failed."; } else{ chmod($newfile, 0777); chmod("passProcess.php", 0777); echo "Step 1/2 completed.<br />" ?> <form action="passProcess.php?var=Users/<?PHP echo $projectname ?>/" method="post"> … | |
I am currently trying to code an Operating System using the Cosmos user kit (Milestone 4). It's currently a console interface, and I am trying to allow parameters to the commands. The one I seem to be having trouble with is "Help". It's supposed to spit out available commands of … | |
Hi all I'm having a hard time selecting data from my database. What I want to do is when I view the page that allows me to edit a team name (team1 for instance) I want to list all the product types and then check the checkboxes of the product … | |
Hi, Can any one say what is the difference between the implicit and explicit? Thank you, With Regards, Prem | |
I'm going into my last year of a computer science degree, and after looking around at job postings for software developers I've noticed that *many* of them require knowledge of Oracle - something that I haven't yet learned very much about. So I was wondering if anyone could point me … | |
I'm creating a Content Management System. Users must be able to delete content from a database. This does not delete or give an error message, it just does nothing. [code] protected void deleteBut_Click(object sender, EventArgs e) { string A_ID = Request.QueryString["A_ID"]; string sel = "DELETE FROM acomodation WHERE A_ID=" + … | |
Hi again all, Can anyone see what is wrong with the code below? [CODE] if ($s>=1) { $prevs=($s-$limit); print " <a href=\\"$PHP_SELF?s=$prevs&q=$var\\"><< Prev 10</a>  "; }[/CODE] I keep getting an error message: Parse error: syntax error, unexpected T_VARIABLE ...referencing the print line. | |
[CODE]BACKUP DATABASE [DATABASE NAME] TO DISK=’\\SERVERNAME\PATH.BAK’ RESTORE DATABASE database_name FROM backup_device WITH RECOVERY[/CODE] i dont know wheather i should create a query file for the code | |
Would like to be able to replace every [I]nth[/I] word in a text file with a blank space. I'm sure python is so capable. | |
Hi i want to use mobile device bluetooth , i use this code but there is probleam with this method getDiscoveryAgent() . this error shown : [QUOTE]Null pointer java/lang/nullpointer exeption[/QUOTE] this is my code : [CODE]/* * To change this template, choose Tools | Templates * and open the template … | |
How can i copy file with 60GB of size with much faster than usual copy (OS-Windows XP) using VB6.. any help plz.. thanks... xirosen | |
hello....sir i have to access image from mysql database using java program and display it on the window please any one can tell me solution for this problem thanks in advance | |
Okay so my problem is that the server (accessed through filezilla) wont allow .exe extensions to be uploaded as a result i have added a .new to the end and that allows it to be uploaded. Thus when i download it i simply remove the .file from the end. That's … | |
Before I ask the question I realize that selection of a programming language depends on the context of a problem at hand. Related to this I would like to know (if anyone) how many of you use which language for programming microcontrollers, embedded systems and even generally on PC. Here … | |
Hi, I've got some trouble opening files saved by The Gimp in BMP 16bits 565. I've test some various bmp they all work except those saved from The Gimp and I really don't know why the format might be different from the one found there:[URL="http://wvnvaxa.wvnet.edu/vmswww/bmp.html"]http://wvnvaxa.wvnet.edu/vmswww/bmp.html[/URL] Bleu.bmp and Mire.bmp are some … | |
first off my knowledge in C # is at a begginer's level.. and im done at loops and some basic more in my course..i was learning well due to a great proffesor.But he was replaced and i'm not learning any. -.- but my problem is about classes... i can't seem … | |
this code is to find the factorial of a number by the recursion principle. trace the control flow in this program very carefully. | |
Hai, [B]Problem we are Facing Currently[/B]: Records getting inserted as only one during the process of updating the server. Previously, all the given records get inserted into the database table during the updation process. "updateprice" is the .mdb exists locally in the same folder where the calling file for updating … | |
Let me try to explain my situation. I have a database table which contains, among other things, a boolean column called PermissionSlipRequired. I have a repeater on my page, and before each row in the database is shown in the repeater, I want to use my code behind to check … | |
Anyone played with the jxl API before? It's a tool for read/write access to Excel spreadsheets - a little bit dodgy, but it works. I wrote a piece of code for my brother using this a few months ago, and now he's starting to see a warning message, which is … | |
I'm working on an Image editor for a class project. I am stuck trying to display the image onto the panel with a button. My action listener is working fine. I don't know if the paint component is working right. help please. Here is my code for an Image Viewer … | |
I'm currently working on a program with linked lists. The program asks you to enter five integers, and every time you enter one that integer is added to the front of the list. My issue is that for each input, i need to insert the node at the beginning of … | |
Write a C++ program that takes 2 characters (c and d), and a positive integer (n) and outputs the following drawing of size n n made of the characters c and d, as shown below: Enter two characters and an integer: # _ 6 #_#_#_ _#_#_# #_#_#_ _#_#_# #_#_#_ … | |
[CODE][/CODE]hello can you help me please my program will generate error it says can't find symbol Class Node please help me hoping for your positive responds... here's the error... D:\SinglyLinkedList.java:16: cannot find symbol symbol : class Node location: class SinglyLinkedList private Node head; ^ D:\SinglyLinkedList.java:17: cannot find symbol symbol : … | |
Hello , I am using web matrix and c#. I want to open a new browser from a button click. How can I do that? Thanks in advance. Steve | |
Hi all, What is the differnce between the xmpp server Vs jms.? Using jms we can perform the message transfer. Using xmpp server also we can transfer the message. Thank you, With Regards, Prem | |
Hi, I am developing a simple application mailing system in which i need to place a check box in a listbox,which having emails id from database. How do i do it?...For example in the mailing system application , when i have to send a email, it displays all the emails … | |
Hai All i want a code that fetches a row in a sql database named student and display the result in a table format.........i am a newbie in php................please Help me | |
Here is a dub question. If this code is supposed to restrict files other than jpg, png and gif, why does it do it? This is for a file browser aplication. The image has to be one of the 3 accepted file extensions. [code] $ext - is the var that … | |
![]() | Hello all - I've been coding in Python for a couple of months now, and I recently ran across the following piece of code (where x is a set or list): [CODE]f = lambda x: [[y for j, y in enumerate(x) if (i >> j) & 1] for i in … |
i am using MS-visual studio 2005 and VB.NET language in that. my ques is tht i am unable to load a crystalreport. all fields are shown from database (SQl SERVER 2005) but data is not shown so can anyone plz help??????????itz urgent | |
This is my EmployeeList.jsp <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html:html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>List of Employee</title> </head> <body> <table border="1" cellpadding="1" cellspacing="1" align="center"> <tr> … | |
Hi folks, i am having a little trouble with sessions and would appreciate any help. What i am trying to do is have the user login and save the password that they enter into a session so i can use the variable in the next page. But for some reason … | |
Hi, In this "tree" code, what I am having trouble with is for example i inputted 2 numbers ( 7 and 5 ) an 7 is the root. if i wanted to delete 7 which is the root, it should be deleted and replaced by 5 making 5 the new … | |
Hi guys, For multi dimentional arrays, i know the amount of columns- 3. But I do not know the amount of rows because each input file has a diff. no. of rows(which can go up to a few thousands). So how do I make an array out of it? Thank … | |
I have a program with arrays declared in the main function. However, when I want to use that array in my init() function, it doesn't work. May I know what must be done so that I can use my arrays in the init() function? | |
import java.util.*; class Data { int num; String name; Data(String na) { name=na; } public int hashCode() { return 5; } public boolean equals(Object o) { if(o instanceof Data && ((Data)o).name==this.name) return true; else return false; } } public class Sandeep { public static void main(String[] args) { HashMap map=new … | |
HII ... i was doing this program where i can enter student grades and the program will tell me like the over-roll grade .. and stuff .. i am almost done i think but i am stuck now soo plz if u can make this work plz help .. THANK … | |
hi, i want to be able to intercept IE connections and get the URL before the contents are downloaded, either when clicking on a link or entering the address directly in the Addressbar, i found some examples on the web and made some changes but still some things are not … | |
I am trying to edit this program to pass two variables to the function call using a passing-by-reference. I need help as to how to modify what I have. Any help would be appreciated. #include "stdafx.h" #include <iostream> using std::cout; using std::endl; int incr10(int& num); // Declare function int main(void) … | |
Hello everybody, I am trying to communicate with a Vitamin Scanner from a computer, which connects via Comm port. It should do the equivalent thing of opening up 'Hyper Terminal', typing in 'a', hitting enter, then typing in '?I', enter, 'S', enter, and a long list of integers shows up … | |
I have one table METER with the primary key serial, another table TC with the primary key tc, and a third table History with the primary consisting of the 2 foreign keys serial and tc along with week and create_date. Every TC has 0 or more METER's. How do I … | |
Hey everyone, i am new to the Pic 16f877 microcontroller and am having trouble doing analogue to digital conversion. can any one help me or even give me the codes. i would be very grateful. |
The End.