199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for elapse0308

/** * 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; // …

Member Avatar for javaAddict
0
111
Member Avatar for druveen

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 …

Member Avatar for metalix
0
625
Member Avatar for server_crash

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 …

Member Avatar for brkurre
0
220
Member Avatar for jackabascal

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 …

Member Avatar for Geekitygeek
0
356
Member Avatar for dandixon

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 …

Member Avatar for chintan@dani
0
119
Member Avatar for LevyDee

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 =)

Member Avatar for Geekitygeek
0
2K
Member Avatar for CreativeCoding

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"> …

Member Avatar for chintan@dani
0
590
Member Avatar for yeturbumi

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 …

Member Avatar for Geekitygeek
0
210
Member Avatar for Venom Rush

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 …

Member Avatar for Venom Rush
0
121
Member Avatar for prem2

Hi, Can any one say what is the difference between the implicit and explicit? Thank you, With Regards, Prem

Member Avatar for tong1
0
10K
Member Avatar for Allophyl

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 …

Member Avatar for yash_792
0
154
Member Avatar for jellybeannn

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=" + …

Member Avatar for Lusiphur
0
177
Member Avatar for lwaterfo

Hi again all, Can anyone see what is wrong with the code below? [CODE] if ($s>=1) { $prevs=($s-$limit); print "&nbsp;<a href=\\"$PHP_SELF?s=$prevs&q=$var\\">&lt;&lt; Prev 10</a>&nbsp&nbsp;"; }[/CODE] I keep getting an error message: Parse error: syntax error, unexpected T_VARIABLE ...referencing the print line.

Member Avatar for cwarn23
0
408
Member Avatar for krab-man

[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

Member Avatar for AndreRet
0
83
Member Avatar for eldeingles

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.

Member Avatar for TrustyTony
0
323
Member Avatar for mahdi68

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 …

Member Avatar for newbi in jme
0
299
Member Avatar for xirosen

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

Member Avatar for AndreRet
0
246
Member Avatar for mani_1991

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

Member Avatar for javaAddict
0
265
Member Avatar for TwijoO

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 …

Member Avatar for GeekByChoiCe
0
687
Member Avatar for xheavenlyx

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 …

Member Avatar for stevephillips
0
218
Member Avatar for sebcbien

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 …

Member Avatar for sebcbien
0
408
Member Avatar for hellkosmos

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 …

Member Avatar for hellkosmos
0
129
Member Avatar for indianscorpion2

this code is to find the factorial of a number by the recursion principle. trace the control flow in this program very carefully.

Member Avatar for Adak
0
176
Member Avatar for swornavidhya_m

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 …

Member Avatar for tesuji
0
162
Member Avatar for georgegra

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 …

Member Avatar for dnanetwork
0
373
Member Avatar for jon.kiparsky

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 …

0
161
Member Avatar for benjaminTribe7

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 …

Member Avatar for peter_budo
0
2K
Member Avatar for AdventGamer

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 …

Member Avatar for AdventGamer
0
119
Member Avatar for rcplguy15

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 #_#_#_ _#_#_# #_#_#_ _#_#_# #_#_#_ …

Member Avatar for sfuo
0
135
Member Avatar for jemz

[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 : …

Member Avatar for jemz
0
6K
Member Avatar for steven

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

Member Avatar for dbeura
0
840
Member Avatar for prem2

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

Member Avatar for prem2
0
103
Member Avatar for fasharlht

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 …

Member Avatar for madCoder
0
596
Member Avatar for shahaz

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

Member Avatar for sainigks
0
143
Member Avatar for seularts

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 …

Member Avatar for seularts
0
124
Member Avatar for err1100

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 …

Member Avatar for jcao219
0
133
Member Avatar for steelnaaz

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

Member Avatar for steelnaaz
0
371
Member Avatar for agent7

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> …

Member Avatar for agent7
0
223
Member Avatar for BlackNinja

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 …

Member Avatar for cwarn23
0
162
Member Avatar for ellenski

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 …

Member Avatar for abhimanipal
0
165
Member Avatar for hazeeel

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 …

Member Avatar for hazeeel
0
110
Member Avatar for Sunshineserene

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?

Member Avatar for NormR1
0
242
Member Avatar for aditya027

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 …

Member Avatar for java_programmer
0
95
Member Avatar for frances07
Member Avatar for glamourhits

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 …

Member Avatar for Anyzen
0
181
Member Avatar for personx1212

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 …

0
63
Member Avatar for furtaker

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) …

Member Avatar for furtaker
0
458
Member Avatar for bobbuilder67

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 …

Member Avatar for sarah_10
0
2K
Member Avatar for supersoup

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 …

Member Avatar for tesuji
0
168
Member Avatar for jwebbo

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.

Member Avatar for jwebbo
0
102

The End.