199,114 Archived Topics
Remove Filter ![]() | |
I wrote a program to compare two text files character by character and its not working probably an easy thing im just not seeing. [code=c++] #include <iostream> #include <fstream> #include <string> using namespace std; int main(int argc, char *argv[]){ string s1; string s2; char c1, c2; if(argc !=3) { // … | |
I perform the following search using regular expression in Python on about 3000 html documents in .txt format and obtain about 600 cases where the following program returns 1 (finds the chain): [CODE]def risk_committee_search1(str): ## get the re object co = re.compile(r""" (?P<nam>:.{300} RISK\W+ (\w+\W+){0,5}? COMMITTEE .{300} | .{300} COMMITTEE\W+ … | |
Hi, I am using C/C++ for 4 years now,solving algorithmic problems only. I see many softwares that do fancy stuffs like windows softwares which automate the installation process , move the mouse automatically and buttons are clicked. Please can anyone tell me what programming language is used in such cases? … | |
Hey guys Ive been working on this problem for standard deviation, and so far ive got it all right accept my declaration in this module, was wondering if anyone can help me see whats wrong with my formula or the decelerations i have made Here is the code for my … | |
I am almost complete this assignment. But I am stuck with line 108 error. Could someone please help me out on this? [CODE] import java.io.*; public class Assignment4 { public static void main(String[]args) throws IOException { //delcare and construct variables int marStatus, status, gross, earn, excess, annual; double fica, medicare, … | |
Hello , i made a form with a button. When i press this button , it open a new form. If i close the new form , and i try to open it again , i recive a error. [code]See the end of this message for details on invoking just-in-time … | |
Hello guys - Need help with a windows batch script that would kill processes by the memory usage but leave the last one. For example if i have 10 java.exe processes running i want to kill the top 9 by memory usage and leave the last one alone. Help appreciated! … | |
In the following program, I am defining two global arrays A and B of length 3 each. In my program, I am outputting the first A[0], A[1], A[2] and A[3]. Note . A[3] does not exist, so I expected the program to output an error or say 1e291 or something … | |
What I am trying to do is compare the contents of array s to the string name (for a filter) but it just continues and prints whatever goes through. I think the problem is with my if statement but I have tried everything that I thought was valid code. [CODE]#include … | |
Hi all I need a javascript code that removes all the title="*" attributes in a page, where the star (*) represents a wildcard for the content of the title attribute. So the following would occur: <a href="#" title="test">test</a> would be replaced with <a href="#">test</a> just like: <a href="#" title="">test</a> would … | |
I am supposed to write a program that asks for the coefficients a, b, and c of a quadratic equation ax2+bx+c=0. It needs to display to the screen one of the following: • two distinct real numbers (when b2-4ac > 0), • two distinct complex numbers (when b2-4ac < 0), … | |
I'm new at Python coding and in DaniWeb. Really nice forum :icon_cheesygrin: Need some help w/ the following code: the content of saldo.txt is the following [CODE]1000[/CODE] The code I was talkin' about: [CODE] # [...] f = open('C:/saldo.txt') print f saldo = f.readline() f.close() if saldo <= 100: a … | |
Hello! So , I got a weird problem.In my code the value of the char N[cn] is ignored when I compare it to a constant value. Here's the code: Code: [code] for ( i = 1; i <= 220; i++ ){ // Generate Numbers itoa (i,Number, (V+1)); sscanf(Number, "%d", &ii); … | |
Does anyone have any suggestions/tips/ideas on the merits of Expression Web? I'm using Visual Studio 2008 but the front end work seems to be lacking. I don't know much about expression web and wondered if anyone used it and if it's worth the money. | |
I have a small problem with a MYSQL select query involving an INNER JOIN. Both tables that I'm joining have a field that have identical names. So when I use[CODE] $array = mysqli_fetch_array($result,1); $field = array['fieldname'];[/CODE] it returns the wrong value from the wrong table. Is there any way around … | |
I will copy stl vector container A to B But not whole. If element of A is proper, I will copy only that to B. Is there any way to do it? I tried to do this way. 1. newA.put_dat(input_stl[j].ino_no) -------- ------------------------ B con A container (ino_no element or whatever) … | |
Hello, im Ant. Forum looks really good. Im currently in the very early stages of learning Java, i have a few books and am doing online tutorials etc so looks like i will be using this place and searching the forums loads in the near future. At the moment im … | |
I was wondering whether anyone could tell em whats wrong with this code. Its trying to get the records where the theorydates (stored in a database as shorttime) are before 2 years ago and return the records in a datagrid but it doesnt. [CODE] Private Sub ExpiredTheoryTest_Load(ByVal sender As System.Object, … | |
I want to set up an smtp server to send mail from an application. i have a newly created gmail account... i just do not know how to hard code it... i have attempted it and got the error: "The SMTP server requires a secure connection or the client was … | |
Hey, this is my first java program. I am trying to print my original list of ages, but I can not figure it out. Please help! I have part b and part c already done. Any help is appreciated a) print original list of ages b) number of occurrences of … | |
how can i save the path of the picture i've browsed. i'm using vb.net as my front-end and ms access as my back-end. thanks in advance :) | |
Hello again. I would like to ask if anyone knows how to use datagrid, that when i clicked or double clicked a data shown in datagrid it will appear in a textbook.. thanks in advance. | |
I have a select menu with many text-based options. However when I submit the form, instead of actually returning the textual item in the POST variable is it possible to set it to return the ID of the selected item? For example I have the following form: [CODE]<select name="dev_stage" id="dev_stage"> … | |
Hey. I'm looking for a solution that will create, fill and display a container in javascript directly beneath a specific element (no whitespace, margins w.e) | |
Hey, i am trying to convert a 2D array to a 1D array and also the reverse. Not sure if i am doing it right so does anyone know how it can be done. below is the code i have for 2D to 1D but now how do i do … | |
I have read about AJAX for a while now, and tryed to use GET and POST, but with not so good results. Code in index.html: [CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Sending data to the maaan and back!</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script type="text/javascript"> //var val = … | |
Why cant I pass variables into a void printPoint function, and not have to return a float ave. I tried just printing the coordinates but I got too errors. so my function looked like this [CODE]void printPoint(float x , float y, float z){ cout << " < " << x … | |
Hello all.. thanks for my last forum..for better solution with fast reply.. I have getting problem with display link button on page aspx.cs .. I have requirement as below..... i am trying to display file name with remove link after attached file.I have done code on aspx.cs as below and … | |
Hey, I am currently using code::blocks and I am basically creating everything by hand here (dialogs and all) I just need to know how I might go about loading up a dialog that I have created in my .rc (that is, getting it to pop up when I click a … | |
hello please help me on this i want to use ascii but all i want i will not use keypress only my cmdadd...is this possible without using keypress?..hoping for your positive responds.... sample public function keytrap(keyascii as integer) if keyascii >=48 and keyascii<=57 then msgbox "invalid input" exit function end … | |
hello . I have a problem. I have a variable DWORD num= 0x1234ABCD i want to convert it to char * for example- char * result[0]= '[the ASCII of 0x1]' result[1]= '[the ASCII of 0x2] result[2]='[the ASCII of 0x3] ... How can i do this?? thank you very much! | |
hi friends i have a project about e-tranction interface in which it will maintain many bank's details and each user may add many bank details and they can make online money transfer . if any one knows any details... please reply me... | |
Hi, I'm new to network developpement but not to c#. I want to create a desktop application in wich the user provide a serial number to validate his acount. This serial number must be sent to a web server for verification purposes. Please, i need your suggestions to start: - … | |
I'm making a photo album with my own CMS, part of it is adding photoalbums to it, but i'm having some trouble linking the "click on album name" to the loading of the correct photo album. my 2 tables are gallery_categories, primary key: id and gallery_assests, primary key: cat_id What … | |
hi all :), i always have a problem in giving a message to the one who register a confirmation or activation link to be enable to use his account. here's my code register.php [CODE]<form name="form1" method="post" action="adduser.php"> <table width="121%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="27%" class="style4"><div align="right" class="style1">Username:</div></td> <td width="4%" … ![]() | |
Hi, I want to read the data from a worksheet in an excel workbook, write it to a new worksheet and save that as a dbf or csv file (one worksheet)...basically extracting worksheets from a workbook and saving them individually, renaming them as the title of the worksheet with the … | |
Hi all, Now, I'm trying practice on c++ basics, since few minutes I tried practice "library functions" especially "sin" function, I wrote this trivial program to calculate angle in console screen, but when I input 90 degree it gave me 0.8939, but with calculator it gave me 1, why console … | |
Hello, I've been looking for information on creating a chat server and client application, just the basics that would include: 1. Connecting to the server. 2. Displaying a "friends list" (like windows live). 3. Open a private conversation with a friend on the list. 4. Send messages from users to … | |
I have a date in the format of YYYY-MM-DD as a string (including the hyphens) How do I split this string just to obtain YYYY, MM and DD separately? Possible use of an array or something? Would really appreciate some help :) Edit: Nevermind, just discovered the explode() function :P | |
Hi all, I have been looking for single function to split strings and seems to me either is not available or I miss it. So I please, help me to know if it is available and if yes where can I get it. Thanks | |
Is this possible to do? I am looking to parse some data out of a file and based on the results of this take names found in the file and create objects out of them. for example... [code] //you have parsed the name Bob out of a file and it … | |
Hey guys at DaniWeb! I have spent a lot of time debugging this PHP/AJAX page, and it finally (sort of) works. Index.php can read and write to processLogin.php so I have a page that can log you in without refreshing the page. However, I cant figure out how to set … | |
hi I'm making a full AJAX site with prototype, and I want that every time a hyperlink is activated, the event is canceled and a AJAX script loads the page instead. This is the code I'm using: [code=javascript]Event.observe(window, 'load', function(){ Event.observe($$('a'), 'click', function(e){ Event.stop(e); window.location.hash = $(Event.element(e)).readAttribute('href'); new Ajax.Updater('main', $(Event.element(e)).readAttribute('href'), … | |
Hi, I am trying to understand the Standard C function "getchar()". I am using CodeBlocks 8.02 in Windows XP. Please compile this code in your compiler and note how it behaves: [CODE]#include<stdio.h> int main() { int i=getchar(); while(i!=9) { printf("%d",i); i=getchar(); } printf("%d",i); return 0; }[/CODE] When I insert Tab, … | |
help needed.... i have 16 values in one row of a table, but i only wanted to retrieve 14 value from that row(FieldValue) the last two values was u-needed. sorry for my bad english... and thank in advance.. [CODE] <?php $con=mysql_connect("localhost","root",""); if(!$con) { die('Could not connect:'.mysql_error()); } mysql_select_db("kiperak",$con); $result = … | |
I'm still new at this.. but I'm trying to create a blog on my website and I'm using blogengine.net. Everything works fine on my local machine but when I upload it to my website I get this error: Configuration Error Description: An error occurred during the processing of a configuration … | |
Hallo everyone.. can anyone assist me on how to disable previous date on the asp.net calender. i create this application using microsoft visual web developer 2005 express edition.. the calender i expected is will automatically disabled the previous date. eg. today is 23/3/2010. the calender will disable the all the … | |
How to update a new image into database by replacing the existing one | |
Hi All, Can anybody see why this code wouldnt update the database? Cheers Paul [code] $me = $_SESSION['user_id']; $user_title = $_POST['user_title']; $user_fname = $_POST['user_fname']; $user_lname = $_POST['user_lname']; $user_add1 = $_POST['user_add1']; $user_add2 = $_POST['user_add2']; $user_city_state = $_POST['user_city_state']; $user_post_zip = $_POST['user_post_zip']; $user_email = $_POST['user_email']; $user_password = $_POST['user_password']; // Connect to server and … |
The End.