132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for theweirdone

Hi, I'm trying to take a date, add a day to it, and then convert it to a string. The date's format starts out like: '10/1/2009', and should end like: '2009-10-1'. I can do that part, but then I can't convert it to a date format and add a day. …

Software Development python
Member Avatar for TrustyTony
0
265
Member Avatar for thehivetyrant

Hi there, I have this cube which i rotate around a centre, I'm attempting to make it register when i move a sphere beyond it's x,y,z position. However the cubes x,y,z position seems to be it's origin of rotation and not it's actual current position. I believe this is because …

Software Development c++
Member Avatar for thehivetyrant
0
216
Member Avatar for Imberto

Hello, i'm having trouble getting this program to work. It works when i just directly put in the file name, but when i try to use args and i pass it threw the command line. i can't get it to work. I've been testing stuff but i can't seem to …

Software Development java
Member Avatar for Imberto
0
110
Member Avatar for Tinabaalan_IT

What element to be used to create the boarding tickiet?

Software Development java
Member Avatar for jwenting
0
87
Member Avatar for the_preface

Basically I want my program to change the current price of an object with a new one, but I'm having trouble doing so. Here's my code: [CODE] //----------------------------------------------------------------- // Updates the product's price. //----------------------------------------------------------------- public void setPrice(double newPrice) { this.newPrice = newPrice; } [/CODE] [CODE] //----------------------------------------------------------------- // Changes the price …

Software Development java
Member Avatar for BestJewSinceJC
0
131
Member Avatar for lwschjang

Basically, I have a price quoter that I am working on. The way it should work is: The user selects the quantity of cards from the combo box. In the textfield a price displays once selected. (i.e. 100 = $8.95). (I have this segment working already.) Next the user selects …

Software Development gui java java-swing
Member Avatar for moutanna
0
126
Member Avatar for lotrgandalf

Is there a straight way to compare variables from 2 different C programs in Visual Studio? The only way of variable comparison I can come up with is writing them to the disk using file handling and then comparing them using a third program. Does Visual Studio allow variables to …

Software Development c visual-studio
Member Avatar for gerard4143
0
102
Member Avatar for thehivetyrant

Hi there, I have an OpenGL scene containing a circular plane, ball and box. I'm attempting to set up bounding box's around each for a primative form of collision detection. I am trying to follow a tutorial from here: [URL="http://www.morrowland.com/apron/article/gl/boundingbox/index.php"]http://www.morrowland.com/apron/article/gl/boundingbox/index.php[/URL] But it says i should use TVector3 ... i have …

Software Development c++ opengl
Member Avatar for thehivetyrant
0
95
Member Avatar for jackiejoe

The way my code is now its all basically in one class and I want to move different functions into other classes to organise it a bit. What is the best way to do this as I have been having problems - I was just bringing in a new Main …

Software Development vb.net
Member Avatar for kvprajapati
0
80
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: …

Software Development c++
Member Avatar for StuXYZ
0
106
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 …

Software Development python
Member Avatar for toll_booth
0
206
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) …

Software Development java
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 …

Software Development c
0
79
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 …

Software Development c file-system queue
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 …

Software Development assembly
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 …

Software Development multithreading
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 …

Software Development c++
Member Avatar for godflesh231
0
123
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 …

Software Development java java-swing
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 …

Software Development java
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: …

Software Development python
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 { …

Software Development java java-swing
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 …

Software Development c++
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 …

Software Development algorithm c++ file-system
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. …

Software Development
Member Avatar for Gl0mby
0
107
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 …

Software Development c
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 …

Software Development python
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 …

Software Development
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

Software Development c
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 …

Software Development python
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 …

Software Development c
Member Avatar for jeffhorton1965
0
203
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. …

Software Development c++
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 …

Software Development java
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 …

Software Development open-source sql vb.net
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 …

Software Development vb.net
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...

Software Development image vb.net webcam
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 …

Software Development java
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 …

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

Software Development display java linked-list
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 …

Software Development audio vb.net
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 …

Software Development java
Member Avatar for vchandra
0
351
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 …

Software Development c++ email
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() { …

Software Development java
Member Avatar for beanboy
0
192
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

Software Development c++
Member Avatar for K0ns3rv
0
142
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 …

Software Development assembly
Member Avatar for lee.j.baxter
0
103
Member Avatar for theweirdone

Hi, I'm making something of an RSS reader-ish. I'm using the [URL="http://www.feedparser.org/"]Universal Feed Parser[/URL] to do this. The feed is just a list of TV shows, and the date they air. I'm successful at getting the feed, now what i'm trying to do is split it up into chunks that …

Software Development python xml
Member Avatar for theweirdone
0
129
Member Avatar for MrMee

Hello, I'm having a bit of trouble with inheritance I was hoping one of you could help with. I have a base clase; BaseGameEntity. There are two classes which inherit from this, Drop and DropGuide. I have an entity manager that stores all of the instance of Drop/DropGuide in a …

Software Development
Member Avatar for jonsca
0
86
Member Avatar for cyon

Is there a way to, instead of duplicating code, to either print the desired number of rows from a list (from user input) or print all items in the list? [CODE]print_list( input ): f = open('pickle.dat', "r") L = cPickle.load(f) f.close() for i in range( input=len(L) ): print 'L[i] = …

Software Development python
Member Avatar for TrustyTony
0
127
Member Avatar for lebron

I have something to share with you guys if you can help me out.. Here is an algorithm to print out a pyramid of numbers: [I][B]define totalRows to be how many rows define columnWidth to be how many characters in each column for currentRow in range 0 up to (but …

Software Development algorithm python
Member Avatar for TrustyTony
0
159
Member Avatar for ITGuy2010

How could I add array values and populate the results in a specified text box?Then repeat for each line after. Then get a final total. Any help would be very appreciated. For example: 1 2 3 4 5 (15)-text box 1 2 3 4 5 (15)-text box 2 4 4 …

Software Development vb.net
Member Avatar for ITGuy2010
0
143

The End.