199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for vitroblue

i'm driving insane right now i have a form wich has a lot of stuff in it as you fill it, javascript generates the OPTIONS[] for four SELECT objects at the end of the form. they are generated right and i have no troubles up to this point until... i …

Member Avatar for Airshow
0
141
Member Avatar for bbrradd

my code will read in a file and put the integers in the file into the array. It reads in and displays the integers perfectly, but i am stuck on how to find the factors of each number in the array. when i use my code i get the error: …

Member Avatar for StuXYZ
0
106
Member Avatar for Tops

[CODE]M = [[1,2,3], [4,5,6], [7,8,9]] x=0 for i in range(3): x = x + M[i][i] print x ------- M = [[1,2,3], [4,5,6], [7,8,9]] x=0 for i in range(3): for j in range(3): x = x + M[i][j] print x ---------- M = [[1,2,3], [4,5,6], [7,8,9]] x=0 for i in range(3): …

Member Avatar for Rashakil Fol
0
60
Member Avatar for toll_booth

OK guys, in regards to my [url=http://www.daniweb.com/forums/thread273163.html]last thread[/url], I've decided to give PIL a shot. Trouble is, the setup instructions are as clear as mud. I've got the files downloaded and extracted, but that's as far as I've been able to get. Can someone, IN PLAIN ENGLISH, walk me through …

Member Avatar for toll_booth
0
206
Member Avatar for alafift

I have been trying to connect a database to generate XML File through PHP code, but I still have a problem on this code. Can somebody help me correcting this code? Thanks in advance. <?php @ $db = new mysqli('localhost','622Std1', '622StdDB1', '622stddb1'); if (mysqli_connect_errno()) { echo 'Error: Could not connect …

Member Avatar for alafift
0
419
Member Avatar for pirateninja1111

so all i want to do is roll 1 die repeatedly and add it to a total until the total is equal to or greater than 31 this is what i have got to so far [CODE] import java.io.*; import java.util.*; public class comp { public static void main(String[] args) …

Member Avatar for Sephladaj
0
116
Member Avatar for BestJewSinceJC

How can I create a semaphore using the above functions that will allow [I]any[/I] process access to the semaphore? I've been playing around with global variables for hours thinking I was doing it wrong, but now I believe I was misled. I think the problem is that the other processes …

0
79
Member Avatar for Atomika3000

i've got a program that gets input from a user, and then stores it in a cookie. That bit is fine, what is a problem is that its just overwriting the data each time a new entry is made, i believed this to be something do do with it not …

Member Avatar for Airshow
0
110
Member Avatar for rukshilag

i have used the below function to open a separate page for search results to open up in - althoug it seems that the css seems to get messy what must be the problem? is anyone willing to help? if so please let me know ur skype add so i …

Member Avatar for Airshow
0
153
Member Avatar for R3Slick

Hello everyone, I'm having trouble with a code I need to write, I have never coded in C and I need to do this program in C. I have created my checksum code already and need to implement this: I need to send a complete ASCII file in 128 byte …

Member Avatar for R3Slick
0
207
Member Avatar for R3k

I'm having a problem when declaring a TCPListener in C# 2010 Express, and it is causing me a little hassle. It gives me this error when I declare one and I am not quite sure why? [QUOTE]The type or namespace name 'TCPListener' could not be found (are you missing a …

Member Avatar for R3k
0
207
Member Avatar for kjaved373
Member Avatar for nitin2010

I have a static function that write to a log file . In my project I am already using multithreading , hense I m getting exception that 'process can't access file because it is being used by another process ' I want to mutex that code so that if one …

Member Avatar for powerbox
0
142
Member Avatar for godflesh231

i have been trying to debug this program for about 2 days(not the whole days, just when ive been coding) and i still cant find the source of this bug. i have been trying to create a class factory system for a game that i want to make. first, let …

Member Avatar for godflesh231
0
123
Member Avatar for samlabs821

[code=Java]public class logout extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { process(request,response); } public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { process(request,response); } public void process(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { HttpSession session = request.getSession(); session.invalidate(); response.sendRedirect("index.jsp"); } }[/code] session is …

Member Avatar for lara.harsh
0
130
Member Avatar for lifeworks

Hi Im trying to pull out a list of meetings, and the associated number of comments attached to each meeting. Comments are assigned a category (ie meetings) and a linkid (the uniqe id of the meeting) - Im using this query, buts its cutting out all meetings that don't have …

Member Avatar for d5e5
0
83
Member Avatar for benk1

Hi Guys, I have access to mini linux PCs that can serve up webpages using the Boa webserver. They also house an sqlite db file. What I want to do is install the bare-bones of php with only sqlite and PDO functionality, so I can write to and display data …

Member Avatar for benk1
0
273
Member Avatar for BobbieJean

Hi, I'm supposed to write a program using super and subclasses to calculate monthly payroll for 5 employees. There are 4 types of employees, salaried, hourly, commissioned, and base plus commissioned. Anyway, I've gotten it to build with no errors and it runs almost like it should but since it …

Member Avatar for kvass
0
2K
Member Avatar for BobbieJean

[COLOR="Red"]Hello, I had put this question in another thread and I got a response that seemed to explain it well but I just seem to keep going in circles and I'm still just not getting it. So I need some more help. The other thread started getting pretty lengthy so …

Member Avatar for javaAddict
0
183
Member Avatar for cyon

Given s.ss or seconds accurate to the hundredth place, what is the most effective way to convert it to the string mm:ss.s? Here is my current attempt: [CODE]import time def convert(t): print time.strftime("%M:%S",time.gmtime(round(t,1)))+str((".%01d" % (((round(t,1))-int(round(t,1)))*10))) t = float(raw_input('Enter time in s.ss: ')) convert(t)[/CODE] However, the results don't seem quite right: …

Member Avatar for TrustyTony
0
563
Member Avatar for Old Geezer

Hey Gang; I'm new at this college thing, it's been a while. Need help trying to figure out why I am getting <identifier> errors. Here's my script. would sure appreciate any help you can give. Thanks ///////////////////////////////////////////////////////////////////////////////////// [code] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class TicTacToe extends Frame { …

Member Avatar for Old Geezer
0
119
Member Avatar for Crow13

I cant figure out how to finish this assigment =\ Help >.< Hm.. Sry for the other language used in it =\ This is the language we are being taugh in >.<' Cik skaitlu ivadiisiet? = How many numbers to enter? Ievadiet skaitlus = entered numbers Ievadiitais masiivs = entered …

Member Avatar for Crow13
0
113
Member Avatar for tarheelfan_08

Can someone tell me why my code is not writing to a data file! I get no errors and everything looks great! [code] #include "Account.h" #include <iostream> #include <fstream> #include <cstdlib> // for exit function using std::ofstream; int main() { ofstream outdata; const int SIZE = 6; //Account array Account …

Member Avatar for tarheelfan_08
0
213
Member Avatar for Gl0mby

Hi, I apologise to seemingly plague this forum with different problems but I'm stuck on another project. I've a series of forms setup in my windows form application that deal with deliveries. I've made it so that one can add a new order, edit the order and delete the order. …

Member Avatar for Gl0mby
0
107
Member Avatar for katties

I've got a situation with minibus repair database design, where it looks like in the Repair table I could do with a 3-composite primary key: jobID from the JobType table (types of maintenance with price and time), mechanicID (Mechanic table), minibusID(minibus table). This way, I've got type of job performed …

Member Avatar for katties
0
390
Member Avatar for sgriffin

Hey everyone, I am a brand new member and thought I could learn and get some help at the same time. I have an assignment that implements SECDED on a 16 bit word, storing the 5 checked bits and 1 parity bit in the upper 6 bits (makes a 22-bit …

Member Avatar for sgriffin
0
365
Member Avatar for rasizzle

Hey guys. I just started using portable python and I have to say this module is great. It helped me bypass some problems transferring modules between win32 and win64 cpus. So my question is for all you portable python users is: do you have to install python for each new …

Member Avatar for rasizzle
0
182
Member Avatar for sanz

hi ,can any one help me.actually what i have to do in my project is load a barcode encoded many picture files at once in the picture box one after the other so that its barcode is decoded.as the barcode is decoded of the first picture actually barcode contains email …

Member Avatar for sanz
0
111
Member Avatar for urbangeek

[CODE]#include<stdio.h> #define sqrt(x) x*x int main(){ int x=5; int y=sqrt(x+1); printf("%d\n",y); return 0; } [/CODE] The answer is 11. Can anyone explain why? thanks

Member Avatar for urbangeek
0
91
Member Avatar for soUPERMan

hello, was wondering how to sort a list which has different data types according to the data type, Example if a list containing 'person' objects. a person object wil have a name, gender and age like so: person1 = person(name, gender, age) so if i have 5 objects in a …

Member Avatar for soUPERMan
0
86
Member Avatar for jeffhorton1965

In the following code I am calling a function from a pthread: [CODE]pthread_create(&threads[t], NULL, dnssearch, (void *)buffer)[/CODE] I need to pass the string (buffer) to a function and the have the function pass a string back. What am I doing wrong in the function: [CODE]void *dnssearch (void *buf) { char …

Member Avatar for jeffhorton1965
0
203
Member Avatar for nonshatter

Hey guys, I have been moving and testing my scripts on a different web server, but I am not getting the same results on both computers. Here is the code: [CODE] <?php session_start(); //THIS FUNCTION VALIDATES INPUT function VerifyForm(&$values, &$errors) { if (strlen($values['firstname']) == 0) { $errors['firstname'] = 'Please Enter …

Member Avatar for nonshatter
0
67
Member Avatar for zango

Basically, here is what the program is supposed to do: 1. Create a ResistorClass overloaded assignment (=) operator function which shall do the following: * Overload the assignment operator ( = ) to assign all m_dptrRes data values of an object of class ResistorClass to another object of class ResistorClass. …

Member Avatar for zango
0
130
Member Avatar for alok4u

Hello friend... i'm doing a j2me proj it is "banking application on mobile(using netbeans nd mysql database)" as my final yr proj... as i'm a fresher,i hv no clear idea about j2me.....my proj hv following specification. 1.login 2.balance enquiry 3.fund transfer 4.view mini transaction.. I'm able to login user successfully...bt …

Member Avatar for alok4u
0
81
Member Avatar for BigPandaCake

I've been trying for hours to do this and can't figure it out.. I'm trying to add a new record to a table in my local database.. Heres the SQL code im using at the minute.. I keep getting this error "The data was truncated while converting from one data …

Member Avatar for BigPandaCake
0
249
Member Avatar for Dcurvez

hi all :) Newbie here. Just wanna know if it is possible to make a pop up box, that is actually used for a little note holder instead of a premade message box? and if so..can you tell me how to accomplish this? I am wanting to attach it to …

Member Avatar for Dcurvez
0
114
Member Avatar for mrnileshagrawal

Hi Friend how we can capture webcam image from our vb.net 2005 Application pzl it's really urgent...

Member Avatar for zalmay
0
94
Member Avatar for CSE Dunmond

I am having a problem with my program it has NO syntax errors but when I right click the class the "void main String [] args" option dosent appear so I cannot test my program I have no idea what it wrong PLEASE HELP [code]import java.awt.*; import java.awt.event.*; public class …

Member Avatar for kvass
0
111
Member Avatar for chipbu

Hi guys, I've got this code to assign random values for each dictionary key. Basically, I after I assign the random values, I wanna check that if the value for a particular key is the same as any previous ones then generate new random value and assign it to the …

Member Avatar for ddanbe
0
1K
Member Avatar for NightOwls

Like the title says I need help to display a doubly linked list in a forward order. No matter what I do, I can just get it to display in its regular reverse order. Here's the code: [CODE]public class DoubleLinkedList { private Node h; public DoubleLinkedList() { h = new …

Member Avatar for NightOwls
0
511
Member Avatar for GuruJin

Hello ^^ I have been working on this for a long while now, I have added a Windows media player that I hide in the Background of my application window(form) . and lets say its named "Player" Player. "WHAT" = gets me the Original length of the Audio file being …

Member Avatar for GuruJin
0
183
Member Avatar for the_preface

As the title of the question states, my program is not able to store an integer from a seperate text file provided. For instance, instead of printing the desired output: "$45.00 17 2222 Chuck Taylor All Star" It prints: "$45.00 17 0 Chuck Taylor All Star" So even though I …

Member Avatar for vchandra
0
351
Member Avatar for jrw89

I have the following script saved as 'index.php':[CODE=php]<?php $implementation = new DOMImplementation(); $doctype = $implementation->createDocumentType('html'); $document = $implementation->createDocument('http://www.w3.org/1999/xhtml', 'html', $doctype); $head = $document->createElement('head'); $document->documentElement->appendChild($head); echo $document->saveXML();[/CODE]Now when I run the script, I get nothing at all (i.e. no source XML is being received by the browser). Error reporting is set …

Member Avatar for jrw89
0
135
Member Avatar for Roses89

There are two basic things i need to get help with: 1. A selection from the list in question 3 can only be made if the user selected at least 1 check box in question 2. If the user enters a valid value in the question 5 text box then …

Member Avatar for Roses89
0
167
Member Avatar for nnhamane

[B]Hi friends..I had written a program on solving sudoku in 'C'..But it is not running...My logic is correct..I think that problem is in [I][U]solve[/U][/I] or [I][U]check[/U][/I] function..Plz check my program..it will take few minutes..n plz tell me what is wrong in program?? my id: <email nipped> Thx friends..[/B] [CODE]/*PROGRAM FOR …

Member Avatar for peter_budo
0
2K
Member Avatar for beanboy

hi, I'm trying to insert values from a java page in to a mysql db the foll is the code [CODE] i1=st1.executeUpdate("insert into commissiondtls(CompanyCode,BranchCode,LineNo,PartnerCode,CustomerName,InvoiceNo,InvoiceDate,InvoiceAmount,ReceivedAmount,CommissionPer,CommissionPayable,PaymentRef,PaymentDate,InstrumentNo,InstrumentDate,BankName,BankBranch,CommissionPaid,Narration) values('"+CompanyCode+"','"+BranchCode+"','"+commissionDtlsmaxid+"','"+PartnerCode+"','"+CustomerName[i]+"','"+InvoiceNo[i]+"','"+InvoiceDate[i]+"','"+InvoiceAmount[i]+"','"+ReceivedAmount[i]+"','"+CommissionPer[i]+"','"+CommissionPayable[i]+"','"+Paymentno+"','"+Paymentdate+"','"+chequeOrDdNo+"','"+chequeDate+"','"+bankName+"','"+bankBranch+"','"+Amount+"','"+narration+"')throws SQLException"); [/CODE] this doesnot insert values or shows any exception,. what do u think might be the prob? pls help [CODE] public void CommissionDetailsSaveTransaction() { …

Member Avatar for beanboy
0
192
Member Avatar for LittleMeemz

Help, I'm a php rookie. I have a functioning form to email script, but I can't seem to get it to display checked checkboxes. I am grateful for help on this! Here's the checkbox (three checkboxes) and submit portion of my html form: [code] <label>Check all that apply: </label> <p><input …

Member Avatar for LittleMeemz
0
125
Member Avatar for caro88

Can any1 help!! I am creating a library management and student system, but depending on the 2 set passwords given will open up the next page. Library managers details will be: username: Manager password: books10 and students will be: username:student password:loan so depending on which username and password they enter, …

Member Avatar for genevish
0
183
Member Avatar for godflesh231

What makes pointers different to normal variables, and what is the point of using them over normal variables? I want a long and detailed description please :D

Member Avatar for K0ns3rv
0
143
Member Avatar for ahcfan

Hi, i'm currently learning assembly with the nasm assembler and i'm stuck trying to get a memory address into a register. Here is what I have: [code][bits 32] [org 100h] section .data msg db "Hello", 0 section .text mov si, [msg] ;lea si, [msg] ret[/code] I read the nasm manual …

Member Avatar for lee.j.baxter
0
103

The End.