64,152 Solved Topics
Remove Filter ![]() | |
Why do I get a Null Pointer in my test whenever I run it from the ant?My Test class Is: package com.MySelf.exchangerate.exchange; import static org.junit.Assert.assertEquals; import org.apache.log4j.BasicConfigurator; import org.apache.log4j.Logger; import junit.framework.Test; import com.MySelf.exchangerate.application.ExchangeRateApplication; import junit.framework.TestSuite; public class ExchangeRateApplicationTestCase extends AbstractTestCase{ public static final Logger logger=Logger.getLogger(ExchangeRateApplicationTestCase.class); private static final double delta … | |
Hello people, I am future web designer and want to learn PHP and javascript, i already know a little javasctipt but i have never touched PHP. I need 2 books: one for PHP and one for javascript, money is not a problem... I saw some books "PRO JS for web … | |
I have a problem. If the text is too long in the text file...the program crashes. How to solve it? | |
If the user inputs 1 the program will automatically create a new node..How? the maximum that I can do is 2..how to add node? Code blocks are created by indenting at least 4 spaces ... and can span multiple lines def *New(def *pHead){ def *temp; temp = malloc(sizeof(def)); pHead->pNext = … | |
![]() | Hey guys, I'm getting some kind of linker error. Any help would be appreciated. Here is what I have.. Header File: #ifndef _LinkedSortedList_ #define _LinkedSortedList_ #include "LinkedNode.h" #include "SortedList.h" template <class Elm> class LinkedSortedList : public SortedList<Elm> { public: LinkedSortedList(); ~LinkedSortedList(); void clear(); bool insert(Elm newValue); bool getfirst(Elm &returnValue); void … ![]() |
Hi ive developed a code that does 2 things. It is about 20 students doing a test and getting a mark out of 100. First is using the class, it will look in a file, display the names of all the students(20) and their respective test scores.It will also show … | |
I Got STUCK ON PART 7, would appreciate it if someone can help out. I have it due on sunday Thanks we are going to implement a slightly different version of Roulette. In our version there will be only one player and the winner is determined solely by the slot … | |
Hi everybody. I am new to this site and am sure you guys could help me. I am currently writing a pool game using eclipse and need to create an array of objects.I have two balls placed individually onto the screen but I'm not certain how to write an array … | |
Hi all If anyone can provide some light on this one it would be very much appreciated! I have spent a few hours on this one trying to figure out why, when i try and submit a form via HTML to a PHP script it seems to fail and not … | |
i dont know what to do with this codes. when i used this to other forms it runs without error except for the one form. error says : "The ConnectionString property has not been initialized." but then i already initialized it. please help me. Public Sub showmyrecords() Dim lvi As … | |
hi, i have three text boxes tb1 has timeIn tb2 has TimeOut and i have a Button which shows the time duration between them i have used time diffrence method bt it is unable to calculate the duration it only gives the difference which create problem when time is greater … | |
Hi All, How i can restrict the numbers of customer from database? I use adodb with access. I know how to retrieve customers from database but i don't know how to restrict it to spesific numbers. Best Regards. Sturdy | |
It doesn't read the first line of the text file. Why? pFile = fopen(user, "r"); if(pFile == NULL) printf("File doesn't exist!\n"); if(pFile != NULL){ while(fgets(line,80,pFile) != NULL) { fgets(search,1000,pFile); printf("%s\n",line); . . . . . | |
Hi im trying to create a code where it would read from a separate text file some names and grades, then display them. However i am asked to use a class to "store"(if thats the word) them as below: #include <iostream> #include <fstream> using namespace std; class student { private: … | |
I need some help with debugging this problem. I just started learning how to store files at C but I can't seem to check if this code is correct since I can't compile it well. Might anyone help me point out the problems in my code? #include <stdio.h> #include <stdlib.h> … | |
It's been a long while since I've last been here but I've spent the last 2 hours pulling my hair out trying to figure this out and I'm hoping for a bit of help with this one. I have a question/response check (a human verification check) on my page and … | |
I am trying to create clickable textviews in Android. I'm a complete noob when it comes to java and the Android platform, so please take it easy on me. Here's what I have right now: [code=java] public class Hypertension extends Activity { /** Called when the activity is first created. … | |
When I run my bucky.java, the background color is black and not pink. Why? Here is my bucky.java:- import javax.swing.*; import java.awt.*; /** * Created by IntelliJ IDEA. * User: Administrator * Date: 3/30/12 * Time: 3:59 PM * To change this template use File | Settings | File Templates. … | |
hi everyone! below i will be showing you the codes of my scheduling module for an enrollment system..my problem is that on how to set conflict here is the code: Option Explicit On Imports System.Data Imports System.Data.OleDb Public Class Scheduling Dim con As OleDbConnection Dim com As New OleDbCommand Dim … | |
Hi all, I have small problem regarding my student registration form. When i enter data and submit always below message is displayed irrespective of whether the admission_id is exist or not. "Admission numberThis student has been already entered to the system" **newStudentRegistrationForm.php** <form name="form1" method="post" action="newStudentRegistrationFormvalidation.php"> <?PHP $con=mysql_connect("localhost","root",""); mysql_select_db("student_management",$con); ?> … | |
I put a bunch of JButtons in a 2D array into a GridLayout. I want the user to be able to change the size of this grid at run time, but I tried resetting the row/cols, re-adding the buttons, remaking the panel that this grid is in - all to … | |
I am having trouble trying to figure out how to write code so the room number increases by 1 each time it asks for length and width. Here's what the assignment is about.. In this program, you are going to calculate the total square footage of a five room apartment. … | |
Hi all I have created a dynamic signatre system for my site and i would like to add the members avatar based off sig.php?username=USERNAME but when i output the file the avatar is massive how can i resize the image from say 100 x 80 to likes of 24 x … | |
**So i am having trouble with printing as you have noticed with the title** **i need to have 2 things print after the 2 menu choices. it is a smiley face creator** `Inline Code Example Here import time def eyes_menu(): print "These are your choices for eyes:" time.sleep(1) print " … | |
Hi, I'm running a script to bring down the logical ip address . But if the system doesnt have that logical ip addresss then i get the following error print on terminal - SIOCSIFFLAGS: Cannot assign requested address I just want to know whether there is a way to suppress … | |
Hello my fellow DanniWebbers, it is me againg. I have yet another question for you guys and gals. I have a parent panel with child panels that contain images. I am looping through the panels to save the images in the order the panels appear in the parent panel. I … | |
Hi guys, I am toying around with ArrayLists and objects and I created a quick program to add some objects to an ArrayList and print the list afterwards. I ran into an issue, though. I am overriding the toString method in order to display the names of the objects I … | |
This is the criteria i am required to get my program to do. I have looked on google for help but I can't find any. Enhance / modify the program you created in the previous assignment. Create a class ScanArray. This class should have two methods FindMax and FindMin. Class … | |
Hi there, I'm sorry if this is a vague question, but I've just been assigned to create a color animation project with GLSL, and I've never really used it before. The criteria for the assignment is that the animation should depend on object coordinates, vary over time and should use … | |
Hi, I am trying to setup a cron job on my web hosting server. I want the php file to run every 15mins. Can some one tell me if I set it up right or not? Also, since there time is 3 hours behind me I want to use my … | |
How do i go about creating an exception handler when i want to login to my form to access the rest of my forms. The username and password are linked to server.What if it doesnt connect to server? here is coding for me to login: Private Sub btnLogin_Click(ByVal sender As … | |
hey there. (i first posted this question on the wrong forum... idiot.. i know) I want to change the looks of my buttons in netbeans (6.9.1) But when ever i try (when i go to the properties -> icon -> and try to select the images, ONLY a few of … | |
Hey there i have a problem with a program that works on other pc's but not on my laptop. (it connects to access) When i try to run it it gives me the error "AAAjava.sql.SQLException:[Microsoft][ODBC Driver Manager] data source name not found and no default driver specified" I already reinstalled … | |
Hey there I started coding again on my old project in netbeans but i have no idea what kind of a prject it is, for example, is it javaEE or whatever. like in the image attached. How can i find out what my current project type is? Thanx | |
Hey there. Whyy is my netbeans so retarted?! is this a common problem? or is it just with me? Ive attatched two images to show you what it does to my buttons. image one is the actualy program running image two is in the design view Thanx | |
 hi everyone! below i will be showing you the codes of my scheduling module for an enrollment system..my problem is that on how to set conflict. i included a screenshot of the interface for further understanding... i hope you could help me... here is the code: Option Explicit … | |
Hi everyone, I need a wee bit of help with the following. I am calling all country names from a db table and echo-ing out each country name in a list format. $query = "select * from countries order by Country Desc"; $result = mysql_query($query) or die(mysql_error()); while($row = mysql_fetch_array($result)){ … | |
Hi everyone, im programing an agenda in c++ but im having a little trouble erasing an entry. Sorry the code is long, i was too lazy to use call functions... anyways bear with me. i tried setting the value to NULL on the entry i want to erase but that … | |
Hi all i am working on a third party recruitment site in wordpress. Site basically acts as intermediary between candidate and employee. Is there any plugin to manage employees and employers in wordpress?? | |
Hello guys, I'm fairly new to Java. I have been asked to create a simple GUI (JLabel, JTextField and 3 JButtons) I have managed to create the GUI but I'm having trouble with making the buttons work. Here is my actionPerformed method: public void actionPerformed(ActionEvent evt) { if(evt.getSource().equals(printButton)) // This … | |
Hello friends, Its my first thread here. I am lookin for source from where i can learn to change control properties at runtime using VB.NET. Actually I havent started working on the project so I cant mention exactly what I need. So if you can suggest me some source from … | |
I want to call 'n' which is the input number followed by a string. I've been putting it like this: (n 'string') but it is wrong. How do I write it? | |
So I'm working on an assignment where we have to make a deck of cards using a Card class and a Deck class and when I try and test the constructor by testing the size i get this: Running 1 test*** glibc detected *** runner: free(): invalid pointer: 0x00902ff4 *** … | |
Hello my fellow Danniwebbers, I am going crazy here. I have been messing around with the scanning packages(WIA and TWAIN) and have gotten WIA to work, but not as intended. At first I used the common dialog to show a Image Aquisition Wizard, but that did not return desired results. … | |
I am writing a site where I will have a news feed of updates on the front page. I have a table that will store the posts. Its fields are post_id, topic, body, and dateposted. I would like for it to search through the table and get the ten latest … | |
Hey, Ive been working on a program for a while, and once in a while it will crash for an unknown reason. I checked the error log and it says exception 0xc0000005 which means i'm writing somewhere i shouldn't. What are some common causes of this? Also is there anyway … | |
Hello, I'm needing help with a query I've been working on for a week now, I've tried using IEnumerable and tried using the query like a var, to no avail. Basically I'm just trying to query a range using LINQ for example, I need to find the range of invoices … | |
import javax.swing.JOptionPane; public class Login{ public static void main(String[] args){ String username = JOptionPane.showInputDialog("What is the desired username?"); String password = JOptionPane.showInputDialog("What is the desired password?"); boolean unlock=false; while(unlock==false){ String usernameinput = JOptionPane.showInputDialog("What is the username?"); if(username==usernameinput){ String passwordinput = JOptionPane.showInputDialog("What is the password?"); if(passwordinput==password){ System.out.println("access granted"); unlock=true; }else{ System.out.println("denied"); … | |
 i have here below codes of my maintenance module..my problem is that when i click the edit button and search for student number it makes error in saving but when i use the listview to edit it saves successfully...please help me i'll be attaching a sample screenshot here's … | |
Hey guys, sorry I didn't post for long. Now here I am, with a new issue. Here is my code:- import java.applet.*; import java.awt.*; import javax.swing.JFrame; public class HelloWorld extends JFrame { public HelloWorld() { setVisible(true); setResizable(false); setSize(300, 300); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); } public void paint (Graphics g) { g.drawString("Hello World!", 50, … |
The End.