199,124 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for hao90

I suppose to write the records to a text file. However every time i re-log in and add a record.The previous record will be rewrite. >.<'' [CODE]public void addRecords(){ getInfo(); FileWriter fWriter = null; BufferedWriter writer = null; try { fWriter = new FileWriter("PassengerInfo.txt"); writer = new BufferedWriter(fWriter); writer.write(name); writer.write(";"); …

Member Avatar for hao90
0
181
Member Avatar for dennis.d.elston

I am trying to modify a tax program so that I only have one line that start with the variable "tax = ...". The original statements are commented out so that you may see what the original program looked like. What I don't know how to do is to put …

Member Avatar for dennis.d.elston
0
193
Member Avatar for muzikhera

I have Database name LoginUser with corresponding fields name such as User, Login and Logout. Im done in inserting data once the user Log to the system. Heres the sample layout once the user tried to log. User................Login............................Logout Abigail.........12/29/2010 3:08:42 PM James..........12/29/2010 3:09:45 PM Abigail.........12/29/2010 3:30:45 PM PROBLEM: 1) I …

Member Avatar for kvprajapati
0
93
Member Avatar for dos_killer

i need to convert an image to ascii text so that the image is still visible somethigng like [URL="http://asciiconvert.com/"]http://asciiconvert.com/[/URL] any ideas as to how i can go about it ?

Member Avatar for jkon
0
583
Member Avatar for eline83

Hello guys, I'm struggling at my assignmnet. I need your help. for(int i=1; i<N; i++) for(int j=1; j<N; j++) for(int k=1; k <= i*j*log(j); k*=2) x=i+j+k; Calculate runtimes using these inputs N = 10, 20, 40, 100, 200, 400, 1000, 2000, 4000, 10000, based on the results, conjecture the complexity …

Member Avatar for eline83
0
120
Member Avatar for moroccanplaya

i have this to check for numeric inputs, which returns then menu if a number is entered less or grater than 5 but how would you do this with alphabets ? for any alphabet or any other charterer apart from numbers should return the menu [CODE] while (select < 1 …

Member Avatar for TomaCukor
0
94
Member Avatar for brown23

Hey Guys, So, I've successfully created my own little CMS ... but, I'm stuck on something. I want to be able to manage other users, but more specifically want to know WHEN they are online and WHEN they aren't online. This is the session I'm creating to authenticate the user: …

Member Avatar for chrishea
0
127
Member Avatar for triumphost

Using Windows Form Application from Visual Studio 2010. KK The big problem... When I compile it and run the program, Enter a value into the textbox, it automatically changes to a value the program has defaulted. I'll attach the Program/Project Folder incase anyone wants to compile/run it.. Example: Two textboxes.. …

Member Avatar for triumphost
0
253
Member Avatar for oree

Hello, I am getting this error message on Google chrome but not on fire fox. Warning: mail() [function.mail]: SMTP server response: 503 5.5.2 Need Rcpt command. in \\address....... [CODE] $mail = mail($to,$subject,$body,$headers); if($mail) { session_destroy(); header("location: sendemail.php?verify=ok"); } [/CODE] These are the variables: [CODE] $buyeremail = "email@email.com"; $headers = "From: …

Member Avatar for oree
0
529
Member Avatar for Frederick2

What is the difference between size_t and size_type? size_type seems to be related closely with the C++ Standard String Class. Couldn't they have just used size_t instead? I don't understand the difference. Could anyone elaborate please?

Member Avatar for Frederick2
0
154
Member Avatar for mrnutty

If I use ProcessBuilder or Runtime.exec function, in a JApplet, does that applet needs to be signed or is there a way to get around this? I need to communicate with a C++ executable using java JApplet.

Member Avatar for mrnutty
0
92
Member Avatar for ebookstores

gud day to everyone..im just new in web development..i just want to ask whats the problem if this error occurs: Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /www/zymichost.com/e/p/u/epurchasing/htdocs/index1.php:7) in /www/zymichost.com/e/p/u/epurchasing/htdocs/library/config.php on line 2 Warning: session_start() [function.session-start]: Cannot send session cache limiter - …

Member Avatar for rififi
0
107
Member Avatar for f_atencia

Say I have an element <pets animals="dogs, cats, donkey, turtle, rabbit" /> How can I break the long string to when it hits the comma, it separates the animals into substrings? An example output is shown below: dogs cats donkey turtle rabbit Help is appreciated. Thanks

Member Avatar for f_atencia
0
114
Member Avatar for Infame

Hi! I have a problem with a winsock code. I want it to connect to a irc server, but it won't recieve any readable data... Just alot of "jibberish"... [CODE] #include <string> #include <iostream> #include <WinSock2.h> #pragma comment(lib, "ws2_32.lib") using namespace std; //class lam0rZ { ~lam0rZ() { system("pause"); /*sleep(5000)*/ } …

Member Avatar for thelamb
0
135
Member Avatar for HDRG

When I press the print Button, all it prints is a blank page. This is my code: [CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; import java.util.*; import java.awt.Color; import javax.swing.JFrame; import javax.swing.JPanel; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.print.PageFormat; import java.awt.print.Printable; import java.awt.print.PrinterException; import java.awt.print.PrinterJob; public class OptionWindow extends …

Member Avatar for Ezzaral
0
205
Member Avatar for AhmedGhazey

why return type is not a part of function signature i.e. I can't make such this code [CODE] int x (int y){ return 0; } float x(int y){ return 0.0; } [/CODE] while i can make such this code: [CODE] int x (int y){ return 0; } int x(String y){ …

Member Avatar for AhmedGhazey
0
103
Member Avatar for discovery-power

Hi All, Hope evryone is well. I have a program I have created for booking out conference rooms, I want to code a print button so the user can print the booking they have created on the booking form. I have been stuck on this for about a week and …

Member Avatar for discovery-power
0
306
Member Avatar for eefh01

Hi, I am working on submitting a form with various info to update on db using jquery, ajax. The db is updating perfectly when I disable JS on firefox. When enabled, a few fields (adID, userID, comments) are not updating on the db. The field userID updated as zero, but …

Member Avatar for Airshow
0
161
Member Avatar for novice20

hi... using pysnmp, an 'snmp get' varBinds gives me an 'octet string' of values like: 1+1 Protection; East-West; Spiral Search; ODU Enable/Disable I need to loop through these strings and see whether a particular string say, 'East-West' is present. I am not finding way to do this. can this octet …

Member Avatar for LoveMyPadres
0
2K
Member Avatar for MaddTechwf

I've noticed running in a PE environment and seeing the "Nerd Herd" MRI software, I was wondering if anyone can tell me now to recreate this using VB.NET. I want to show the system info over the background if possible. You can see an example at this address [URL="http://maddtechwf.com/gsmri.jpg"]here[/URL].

Member Avatar for MaddTechwf
0
90
Member Avatar for Boubakr

Hi... I want ti contril the while loop, just make it looping just for x times, ex: loop for 5 times and pass to the next code :)

Member Avatar for -ordi-
0
92
Member Avatar for taurus3

The combinations function C(n, k) is usually defined in terms of factorials, as follows: C(n, k) = n!/(k!*(n-k)!) The values of C(n, k) also leads to the Pascal Triangle: C(0, 0) C(1, 0) C(1, 1) C(2, 0) C(2, 1) C(2, 2) C(3, 0) C(3, 1) C(3, 2) C(3, 3) C(4, …

Member Avatar for MosaicFuneral
0
474
Member Avatar for brynFlew

Hello, thanks for your time. Jsp + javaBean will not run in tomcat on local host [url]http://localhost:8080/is/scannerForm/process.jsp[/url], when i run it in eclipse though my local tomcat it actually does work and i can step through the jsp page as-well as the .java pages and i can see where they …

Member Avatar for brynFlew
0
245
Member Avatar for andrewliu

I'm trying to create a shopping cart but I need help with arrays. [CODE]if(!isset($_SESSION["cart_array"])||count($_SESSION["cart_array"])<1){ // RUN IF THE CART EMPTY OR NOT SET $_SESSION["cart_array"]=array(1=>array("item_id"=>$pid,"quantity"=>1, "item_size" => $size, "item_color" => $color)); //quantity => $quantity (can be applied) }else{ // RUN IF THE CART HAS AT LEAST ONE ITEM IN IT foreach($_SESSION["cart_array"] …

Member Avatar for andrewliu
0
150
Member Avatar for Kimmi

If RGB(170,255,213) gives a pastel green color display then what is the color code I should use if I want a deeper green color tone display? Is there a list of the color display codes for C++? or where I can lookup for sample color displays? ;)

Member Avatar for Moschops
0
205
Member Avatar for tape enterprise

I am building a simple CMS for a website, Instead of having a simple texarea box I want it to have different buttons on it for the users to edit the code without knowing html or css. I would like it to be like Daniweb's Toolbar above the textbox on …

Member Avatar for jkon
0
99
Member Avatar for ans2007kumar

My java script of validation is not working don't know why here is the code Header php file [code]<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <link rel="stylesheet" type="text/css" href="c.css" /> <title>simple document</title> <script src="validate.js;cart.js"> </script> <script type=" text/javascript"> <?php session_start(); ?> </script> …

Member Avatar for diafol
0
148
Member Avatar for johnbo100

Hi All I have creating a database table that will store configuration values so that php knows whether to show a field within a html form or not. I know that the PHP code connects to the table within the database as there are now errors when the webpage is …

Member Avatar for johnbo100
0
136
Member Avatar for imolorhe

I am writing a program where one part of the program gets some data while the other part gives in new data at intervals for the first part to work on. This two tasks are to be done independent of each other and concurrently. The time one part stops does …

Member Avatar for mike_2000_17
0
196
Member Avatar for Mr.BunyRabit

I have no idea why i get bombarded with Inferior Small irritating bugs.... uh... Please help this poor, Form struggling guy. To simplify, i have 2 forms. FormA and FormB. At startup, FormA is displayed now i would like to go to FormB. I use this and it works. [CODE] …

Member Avatar for IdanS
0
101
Member Avatar for Frederick2

Here is the full code relating to my performance problem I’m having with my operator+= which I described in this adjacent thread…. [url]http://www.daniweb.com/forums/thread340734.html[/url] As a quick review, I’m finding that the operator+= function in the Standard C++ Library’s String Class, i.e., <string>, is performing almost impossibly fast compared to the …

Member Avatar for Frederick2
0
556
Member Avatar for Brickmack

I've been trying to find information on this for a while, but I can't seem to find anything. I want to use python to send a command to the command prompt, then instead of sending the output to the console window, put the output into a variable that I can …

Member Avatar for richieking
0
173
Member Avatar for mossa

I've built a Counter (which is not implemented for python 2.6) for reading a sequence file of strings to a dictionary and trying to return those sequences are unique for that file/a number of files. I use sequences with a length of X-characters as key in my dictionary and put …

Member Avatar for richieking
0
287
Member Avatar for caterpillar

Hi, I have to insert fields in a table. I am using VB.net & SQL Server database. The code is: Dim userid As Int32 = Me.classname.UserID Dim strSQLD As String = "Insert into table1 (userid) values (Me.classname.UserID)" userid is of type int While debugging, i can see that variable userid …

Member Avatar for shlimeel
0
253
Member Avatar for gioe

Hello everyone, I am a newbie (started learning ruby 3 weeks ago) :icon_redface: and I can not get out from this comiling error. when I try to run this sample program: [code] #!/usr/bin/ruby # ZetCode Ruby GTK tutorial # # This program centers a window on # the screen # …

Member Avatar for gioe
0
734
Member Avatar for dexter88

HI Guys!! I'm working on the project on how to create intelligent traffic light... the aim is to minimize the traffic around the city!! in my project i have used microchip p16f628a.. the problem comes with how to program it!! and what sensors can i use to detect which side …

Member Avatar for griswolf
0
82
Member Avatar for docmccoy

Hi all, I'm facing strange error. I defined a class: [CODE] class MyClass : public MyAbstractClass { public: MyClass() : myList(myList) {} ~MyClass() {} void AddList(list<MyObject>& myNewList) { myList = myNewList; } private: list<MyObject>& myList; }; [/CODE] And in the main I do: [CODE] // myObject is initialized here and …

Member Avatar for arkoenig
0
114
Member Avatar for johnathanr

i everyone, I'm a complete novice to javascript and have been looking around for a few days now trying to figure this one out. If you have any advice or ideas, I'd GREATLY appreciate it! Here is what I'm trying to do. I run a review site with multiple cities. …

Member Avatar for johnathanr
0
435
Member Avatar for MrCapuchino

Hello, Another thing, I posted another problem a minute ago, but I have another one but I think both should have simple solutions. This problem is that I have a button that I want to add an accelerator, so I use an ampersand (&) before the key I want to …

Member Avatar for MrCapuchino
0
107
Member Avatar for Jazerix

Hey everyone ^^ I'm making a little program that gathers the player coordinates from World of Warcraft via memory reading, the only problem I'm having so far is that I have no idea how to convert my hexes to floats, and it's honestly driving me nuts :P. [url]http://i53.tinypic.com/2rhs1zo.png[/url] <-Picture As …

Member Avatar for Jazerix
0
156
Member Avatar for AndrewSD

Well what this code is supposed to do is create a session when you log in successfully. Then direct you to the member page. Which it does ok. Then when you click logout it destroys the session. My code should, if you are not logged in and go to the …

Member Avatar for madCoder
0
104
Member Avatar for boshu

Hi all, I have been using a macro definition to copy a set of files to different locations and FTP servers. But copying seems quite slow so I want to compress the bundle using 7z and copy all into FTP as one single file. Can it be done using 7z? …

Member Avatar for Ezzaral
0
211
Member Avatar for ello

Hey, just got this contact form working, but had an email from the guy with the server, and he says he got the emails as well...which I thought was quite odd. Now I have no idea why it'd do this so I was wondering if one of you guys could …

Member Avatar for ello
0
380
Member Avatar for Smashed Badger

Hi there, I'm generally looking for some advice on how a game could be developed. I have no skills in game development whatsoever at the programming aspect. I do have an idea though that I am writing and drawing and all that jazz for a game that requires massive online …

Member Avatar for ajst
0
145
Member Avatar for DJSAN10
Member Avatar for dietdew12z

I'm editing someone else's code and I have a vague idea of what it does, but if anyone has seen this kind of thing and can explain it to me. [CODE] function mkdir_recursive($pathname, $mode) { is_dir(dirname($pathname)) | mkdir_recursive(dirname($pathname), $mode); return is_dir($pathname) || @mkdir($pathname, $mode); } [/CODE] I don't understand why …

Member Avatar for dietdew12z
0
111
Member Avatar for atutor

Hello All, I need your input on how I can get an HTML form that uses PHP to submit via email, to be able to print the results to be formatted exactly like the original form including font spacing and graphics. I am willing to redo the form. Even use …

Member Avatar for mschroeder
0
104
Member Avatar for CrankyMero

Hello Everyone, I'm still new at programming, and im having problems with the project i was assign, so im supposed to make like a retail store POS, where i look for the articule and add how much did they take and the price. [B]SORRY IF ITS IN SPANISH[/B] So this …

Member Avatar for CrankyMero
0
286
Member Avatar for danny4444

Hi there, I am having trouble with making an inner join whilst concatenating two of the fields. I can do both separately but have not yet mastered both at the same time. Here is what I have. It does work, however not in the intended way. It produces the only …

Member Avatar for danny4444
0
8K
Member Avatar for salvador01

hi! i'm beginning to like C, i find it very challenging. and i have this problem, that confuses me here: Construct a C that will accept 5 digit number, determined the reversed number and display the message "equal" if the original 5 digit number and the reversed number is equal, …

Member Avatar for jonsca
0
109

The End.