88 Topics

Member Avatar for
Member Avatar for jeffrey o

What i'm trying to do here is just place the values in my text file into variables the txt file contains: 1111 50 2222 60 3333 70 4444 80 5555 90 i get the error :[COLOR="red"]Exception in thread "main" java.lang.NullPointerException at udptry2.m.readfiless(m.java:41) at udptry2.m.main(m.java:68)[/COLOR] [CODE] package udptry2; import java.io.BufferedReader; import …

Member Avatar for javaAddict
0
203
Member Avatar for SSully

So simple problem. I need to have a division by zero validation in my constructor in this class. It is painfully simple, but I am just starting to learn classes and I just cannot figure out what I have to do. Would it be easier to just put the validation …

Member Avatar for Kanoisa
0
256
Member Avatar for MasterBerd
Member Avatar for abelLazm
0
81
Member Avatar for s1Lolz0rz

I know there is a lot of threads already on this website, but I cant find any that remotely looks like it'd be help to me. I am getting frustrated over this bit of code error. Any help would be appreciated. php line 64 [CODE] $emails = $_REQUEST['email']; $data = …

Member Avatar for diafol
0
217
Member Avatar for VTrookie

Hello All, I am a freshman at Virginia Tech and am currently stuck on an assignment our professor has given to me. We need to create a simple calculation output determining the high noon point of the day determined by the input of the sunrise and sunset. I was looking …

Member Avatar for TheChozen
0
133
Member Avatar for Igor Vinícius

Hello World, I'm a c++ beginner and i've diced to study. So this is my first code: [CODE] #include <iostream> using namespace std; double d = 2.2; int i = 7; void some_function() { d = d + i; i = d * i; printf("%d\n", d); printf("%d\n", i); } int …

Member Avatar for Igor Vinícius
0
152
Member Avatar for showbaba

Hi All Please i need help with a simple network software, i will prefer if its built original cos most of the ones out there dont do exactly what i want, i need a network software that can do the following 1. add systems through wireless tech. thereby creating a …

Member Avatar for showbaba
0
284
Member Avatar for TrustyTony

Here is my newest version of the pretty printer I posted earlier. Not doing all that fancy stuff of printing looped recursive structures, but if you put one deeper structure inside flat one, works better for me than pprint module. I do not use often object oriented structures though. Dedicated …

0
657
Member Avatar for nooony

I've been learning python during one semester, and pygame in one week... Im making a simple kid guessing game where random images appear with one word. click on the correct image that the word describes and a little green right image appears and a red cross 'wrong' if it is …

Member Avatar for nooony
0
473
Member Avatar for kiranking

The process is as fallows 1. getwords.php which contains [LIST] [*]two input text fields [*]submit button [*]results div [/LIST] sends(post with ajax) the min and max integer value to do_search.php 2. do_search.php will process the post variable get the words from from database which as fields [LIST] [*]eng_id [*]eng_text [/LIST] …

0
92
Member Avatar for Spiffy P Mcgee

I've gotten stuck on my assignment. The compiler says that the code is fine, but the program doesn't work properly. [CODE]#include <iostream> #include <iomanip> #include <fstream> using namespace std; void display_days (int []); void total_days (int []); void average_days (int []); void maximum_days (int []); void minimum_days (int []); int …

Member Avatar for jonsca
0
138
Member Avatar for cwarn23

Hi, I'm writing a large program but require Multithreading for this software. I've searched the web for just over an hour and now is just after midnight but still can't find anything simple. The only thing I saw that came close to what I need was at [URL="http://www.computersciencelab.com/MultithreadingTut1.htm"]http://www.computersciencelab.com/MultithreadingTut1.htm[/URL] but I …

Member Avatar for Ancient Dragon
0
694
Member Avatar for scripter_tmrage

Hello World! Im doing a simple program that runs a JFrame and has some JButtons etc etc but id like to put a simple sound to one of my buttons, when i quit the program i want it to play a simple melody how can i put it in this …

Member Avatar for scripter_tmrage
0
141
Member Avatar for alexandra03

Hi, I have static website with 10 pages and I need to include articles on one of them. I need script that is easy to install on my PHP/MySQL server and to publish news through administration page. Also to customizable for front-end. 10x

Member Avatar for ilyons
0
238
Member Avatar for scarcella

[CODE] /* Login Functions */ function login($usr, $pass) { $sql = "SELECT * FROM users WHERE usrNAME = '$usr' AND usrPASS = '$pass'"; $query = mysql_query($sql); $row = mysql_fetch_assoc($query); if (mysql_num_rows($query) == 1) { // in here is what it should do if successful } else { // in here …

Member Avatar for Stefano Mtangoo
0
305
Member Avatar for qazplm114477

Is it possible to pass arrays into a function and/or return an array from a function? I think it's possible but I don't really know how to go about it. lets say I have a function that returns a bunch of field from a database ex: [CODE]function a($sql){ $result = …

Member Avatar for qazplm114477
0
83
Member Avatar for yup790

I have noticed that there isn't a thread where you are given puzzles. So i going to change that! Your puzzle is to make an exacutable c++ program that outputs "hello world" 20 times (try to be exciting). Rules: it has to be c++ it has to work I look …

Member Avatar for mrnutty
0
215
Member Avatar for artvor

Hello to all Web Developers! I need a simple help here: [CODE]<table class="maxWidth" cellspacing="0"> <form action="update_conditions.php" method="post" > <tr> <td ><input type="radio" name="sex" value="citizenship" checked="checked" /> Accept all citizenships <br /> <div class="paddT5 borderT"></div> <input type="radio" name="sex" value="citizenship" /> We do not accept citizenships from: <textarea name="ud_not_citizenship" class="textarea" rows="5" > …

Member Avatar for Graphix
0
144
Member Avatar for nquinlan

I am looking for an ecommerce solution similar to [URL="http://simplecartjs.com/"]SimpleCart[/URL] in the fact that it is one page and allows PayPal (or Google Checkout ect.) to handle the heavy lifting. However, I need something that can calculate shipping costs and deal with in stock/out of stock items. I would really …

Member Avatar for phillip654
0
137
Member Avatar for bumsfeld

[code]#Blast workbench using biopython from Bio.Blast import NCBIWWW ##result_handle = NCBIWWW.qblast("blastn", "nr", "8332116") fasta_string = "AATTCAGTGGCAAAAAAAAAACTCAAATTTTAGGGAAGGCCCTAATATTATCAAATAATTAGAGGGGGGG" result_handle = NCBIWWW.qblast("blastn", "nt", fasta_string) save_file = open("my_blast.xml", "w") save_file.write(result_handle.read()) save_file.close() result_handle.close() result_handle = open("my_blast.xml") from Bio.Blast import NCBIXML for record in NCBIXML.parse(open("my_blast.xml")) : #We want to ignore any queries with no search results: …

0
318
Member Avatar for newbiecoder

I want my code to take two characters and print them, but this code only takes one character, prints it and terminates, can you please tell me what's wrong with it? Thank you. [code=syntax] #include <stdio.h> int main() { char a, b; scanf("%c", &a); scanf("%c", &b); printf("%c %c\n", a,b); return …

Member Avatar for newbiecoder
0
251
Member Avatar for UberJoker

Hey Guys. I cant actually think of a way to do this. Let me rephrase my question. I essentially want a perl script to run based on something that i am doing in javascript. for example: <javascript> if(x == 1) { then run the perl script. } </javascript> i dont …

Member Avatar for Airshow
0
3K
Member Avatar for ruwanaru

Helloo Im new in Databases. I want to create a simple shopping cart i have a table called product [CODE] CREATE TABLE `products` ( `id` int(11) NOT NULL AUTO_INCREMENT, `category` varchar(150) NOT NULL, `name` varchar(100) NOT NULL, `author` varchar(100) NOT NULL, `details` varchar(10000) NOT NULL, `price` int(11) NOT NULL, `imgpath` …

Member Avatar for Benjip
0
192
Member Avatar for bluewire2000

Hi, i use simple login with a login page where user place u/n and p/w. The data are compared to store data from access db. If matches, open a secure page. So far so goob. In secure page i wanr to show a gridview with user's data, so he can …

Member Avatar for kb.net
0
103
Member Avatar for keyzzz_it

hi!!! im a new member of this organization of the IT's. im a freshmen student ,takig up IMFORMATION TECHNOLOGY and i have a problem regarding how to make a calculator using SWITCH CASE, i've tried to make a program of that using other functions and it made it successfully but …

Member Avatar for xavier666
0
173
Member Avatar for jennwenn25

Hello, I am very new to all of this and I need a little help. I am supposed to create a simple calculator and here is what I have: [CODE]/* Specification: This program is a simple calculator */ #include "stdafx.h" #include <iostream> using namespace std; namespace calculation{ enum menuOptions {Add, …

Member Avatar for jennwenn25
0
132
Member Avatar for mstrlouis

My code is a php search function which is supposed to search from two tables in my database and displays matching results from the two tables in a line after line format. It is supposed to match the two tables with a common key field. However, the primary table has …

0
177
Member Avatar for Bob_180_Bob

A friend has just started an IT course. Her homework the other day was to write a flow chart to display all the odd numbers from 1 to 99. I am no expert but I could see some problems she got wrong in her firs attempt so I assisted her. …

Member Avatar for Vilice
-1
150

The End.