199,114 Archived Topics
Remove Filter ![]() | |
I have been working on this code for quite a while and have not been able to figure it out. I looked online and through the forums and could not find something that showed how to fix it. This program takes in the julian date ie. 12df234(first two # are … | |
i need a solution... create a web page using send mail option. so mail send to mail id as well as to mobile. also i login through mobile. when i enter using mobile automatically enter my area of web page. is this possible? for example..im client of one website. using … ![]() | |
Hi , I have a 2 D matrix which is a vector <vector> type. I wan to find out the unique rows. To use std::unique the rows have to be sorted. I tried using std::sort with a predicate. But sorting does not work . Could someone help me [code] typedef … | |
Hi, my question is simply but a little bit tricky; let assume that there are two array array1 = (2, 5, 6, 1, 7) and array2 (3, 2, 6, 8) and after function setUnion new array or use pointer return (2, 5, 6, 1, 7, 3, 8). Below my code … | |
Hello! I am currently looking for some help or ideas in a specific area of Python programming. The project I am having problems with pertains to python print drivers, and printing in a Linux OS. I had originally wanted to find a way (if possible) to write a python print … | |
[CODE] System::String ^name_string; SqlCeConnection ^sqlConnection = gcnew SqlCeConnection("Data Source=Northwind.sdf"); sqlConnection->Open(); SqlCeCommand comSelect = gcnew SqlCeCommand("SELECT * FROM tablo WHERE id = 33 ", sqlConnection); SqlCeDataReader ^reader = comSelect->ExecuteReader(); name_string = reader["name"]->ToString(); sqlConnection->Close(); [/CODE] What's the mistake on the code above ? :?: | |
Hey Guys my goal for this multi dimensional array is to document the answers (right or wrong) for a test that the user is taking. In the beginning the test array is set up. as the user goes throught the questions the app should add to the array. Note: the … | |
Hi, I'm using SAS regular expressions to read a large text file with numbers and characters, and may be up to 500 lines of text in the file. I would like to extract certain key words, specifically, weight quantaties and measures, i.e. kilos or lbs. Each line of text is … | |
Hi, I have installed Turbo C compiler on windows vista (32 bit). Set the PATH variable to properly point to tcc.exe under C:\TC\BIN; I created some C files under C:\TC\myfolder I tried compiling using [CODE]C:\>cd TC\myfolder C:\TC\myfolder>tcc -P-c file.c[/CODE] Sometimes it says file not found while other times it compiles … | |
I'm writing a project in xlib and have a problem concerning the colors.I use unsigned long type variables for storing the color values.does anybody know how can i take the red green and blue values of each color? | |
Hey, DW. I really need to know how to combine two images, into one image, but I don't want to draw it to the screen, and I don't want to save it to a file. It should look something like this [CODE] Image img1 = new ImageIcon("C:\\flying.png").getImage(); Image img2 = … | |
Hello, I want to know if I am doing a list of students, which are executed from database (mysql), does the number of data influence in the speed of the page load? if yes: What to do ? And for how much data should I start to think for a … | |
Please tell me how to print invoice using Epson TM-U210 printer using c sharp.I can print invoice using normal usb printer such as hp injeckt pinters. I used [CODE] printDocument1.Print();[/CODE] command to print. But Epson printer is serial port printer. There for is there any need of using port command … | |
Hi I am trying to store the filepath of uploaded files in a sql server database using vb.net. I have run the code at it uploads fine but nothing is being added to the database. Any help will be greatly appreciated. [CODE]Protected Sub btnUpload_Click(ByVal sender As Object, ByVal e As … | |
Hi, I am working with a web application with MySQL as the backend in asp.net. I need to insert values in a table called ACS. The code is working fine and i am able to insert values. But the problem i am facing is the values are getting stored as … | |
I'm working on a program that takes 5 integers from input and then prints out the smallest and second smallest of those integers. The program correctly outputs the smallest number but the program often outputs the second smallest number incorrectly because of ordering. For example, if I enter 33, -6, … | |
Write a program that launches 100 threads. [COLOR="Red"]Each thread adds 1 to a variable sum that initially zero. You need to pass sum by reference to each thread. In order to pass it by reference, define an integer wrapper object to hold sum[/COLOR]. Run the program with and without synchronization … | |
Dear Friends, I'm developing a website that can show online users, When ever a user logged we can update the status to "Online" On our database. Now i'm using AJAX. Is it possible to show the online users without refreshing a page ? That means timed interval for a ajax … | |
Hello all, I have a text file set up as follows. 1 1 1 2 2 2 The program below is not reading the first line. The code below will only read 2 2 2. What am I missing here? main.cpp [CODE]#include <iostream> #include <limits> #include <cmath> #include <cstdlib> #include … | |
Hi, I'm about to start making some little program with input of type string which'll later be converted into numbers, but it has to pass the check is there any non-digit character. Considering I was lazy to search for functions like that I decided to make my own header for … | |
this is my code but i couldnt get phase 2 to print out can anyone help me please? thank you! [CODE] import sys import string NUM_ARGS = 3 GLOBALSTACK = [] TAG_STACK = [] # getFile() Gets a valid file name # Input: None # Output: fileName, the name of … | |
Hello everyone. I have a problem using strtok in C. I get a user input from the command line and I want to tokenize it with pipe ("|") as the delimeter and put the result in a double pointer variable. Here's my code: [CODE]char** argv; char *token; token = strtok(userInput, … | |
I am trying to store the numbers of a text file into a 2D array.. Here's the text file: 1 2 3 2 3 4 4 5 6 But i get the error: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 2 at BankerAlg.main(BankerAlg.java:30) Process completed. Here's the code i made: [CODE] import … | |
i want to make a pharmacy control system, please help me to do this, this system is for small pharmacy, help me with samples. | |
My professor has given us the fifo algorithm program and asked us to modify it to become the clock algorithm by using reverse_map to find a page table entry and then checking its reference bit. If the reference bit is set, clear it and go on. I am just completely … | |
[CODE]#include <iostream> using namespace std; template<class L> class LEST { L *date; int first; int last; public: LEST(int last); L dele(); bool Full(); bool Empty(); bool Add(L value); bool search(L value); void print(); }; template<class L> LEST<L>::LEST(int last) { this->last = last>0 ? last:100; first-1; date = new L(this->last); } … | |
Hi I have a script in PHP prepared by a third party some time ago, and when I open it up in Dreamweaver, it just looks a mess. I am not so familiar with Dreamweaver, but is this just a setup issue? Do I need to import all the files … ![]() | |
I am trying to use FMOD library in a console application Visual c++ project.... But I can't really get it to work I will tell u exactly what i did... First, I added the following files to the project folder: [B]fmod.h , fmod.dll, fmod_errors.h , fmoddyn.h , fmodvc.lib , wincompat.h … | |
My assignment is to write a program that outputs the following columns of numbers using mathematical operators and the loop index. This is what I want the program to output: [CODE]1 10 0 1 1 0 2 20 1 4 2 0 3 30 2 9 3 0 4 40 … | |
I have created a window containing only one button(park1). All I need is a new dialog(with "OK" and "Cancel" buttons to open when I click on park1. Thanks in advance. [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; class MyWin extends JFrame implements ActionListener { JButton park1; MyWin() { setSize(450, 500); … | |
Hey guys, only new to Daniweb, so pardon me, if i seem too "nooby" for you guys. I am building a website, and currently am working on the "members area" i have a database named "users" with fields "name", "username", "email", and "password". i am running a php script, and … | |
Hey guys, Im trying to code a body shape calculator using PHP maths functions, its giving me a headache:confused:. I have tried coding the body shape calculator with the following values, but it jus gives undesirable results:yawn:. Is it my code or the problem is with the ratios? [B]Apple:[/B] 0.8 … | |
hello i am a student ane new to php i have a code here i want to pass the data from one page to another but i m not able to do so plz check both the code and please help [CODE] <html> <head> <title>update_tanenet</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link … | |
i have one list and one database. The list is made after i've decided a number in a numbericUpDown. So for an example i can get the list fj1Section: 1 34 33 32 31 20 19 18 17 16 each of this sections exists in the database in the 2. … | |
Hi All, I've this problem with cookies. I am lost as I can't understand why this code does not work as expected. Please help!! [CODE] $rq =$_REQUEST['r'] ; $value = $_REQUEST['v']; setcookie("XYZ",$value, time()+60*60*24*30) ; echo "Value is ".$value; if ($rq =='showdata'){ print_r($_COOKIE); echo "Cookie is".$_COOKIE['XYZ']; exit; } [/CODE] Output: when … ![]() | |
hello, all! I am an absolute rookie in the world of C++ language, and not a good one either... I have an assignment to create a random number guessing game, and I am struggling with it. I have most of it done, but we have to generate the number of … | |
Hello I have a question regarding linked list: The assignment I was given was rather large so I'm not going to go into the full details of what exactly it does and give you just what is needed to answer the question. First we have a student records structure [CODE]typedef … | |
Hello, I am currently working on a project for human body detection and recognition. I am using OpenCV. So far I've concentrated on the facial detection and recognition. The detection works well using the haarcascade classifier provided from OpenCV. However I'd like to create my own classifier, I tried but … | |
Am using date time picker control in vb 6 to show time but when i try to store that in a access database it stores the default can somebody help me make it modify to store only time... | |
Hello. I trying to solve this problem. The user inputs 4 numbers to each array (they are 2). I must output the common elements. So this is the problem i'm stucking with . Let's say p = 1,2,2,3 p1 = 3,5,1,2 the output is 2 1 3 1 2 but … | |
Dear Experts, New to C# , My page is in ASP.Net with C# coding, I am getting this error, while debuging. Your help would be appriciated. ---------- System.NullReferenceException was unhandled by user code Message="Object reference not set to an instance of an object." Source="App_Web_print.aspx.c0a41cfd.e1sjotnx" StackTrace: at ASP.soft_reports_print_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) … | |
I m not sure if thats right section, but I m pretty sure it's done with PHP. So the question is, how can I change a conetent inside a division without navigation to new page. For instance I have 4 division. Header, links, content, footer. Now if i click some … ![]() | |
![]() | Hi, New to wordpress and php so please bear with me. I am using WAMP as a testing server and Dreamweaver CS5 as a text-editor to manipulate the theme files. I have successfully set up a live local connection between WAMP, WP and DW and can view the live index.php … ![]() |
Probably a stupid question but why does the following loop works ? There is nothing wrong with it I just want to understand how does this code know how many entries I have in database. [CODE=PHP] $result = mysql_query("SELECT * FROM post_categories"); while ($row = mysql_fetch_array($result)){ echo $row['Name']; } [/CODE] … | |
Hello forum, Vaironl here. I believe this questions has been answered before, but I cannot find the answer.. weird. I have a class which is called panel and extends a JPanel and a paint method. For some reason my Jlabel is not appearing, I read common painting problems, and tried … | |
Hello, I want to display all data from database (repeat) and not only the last one: In classic php I do this using: [CODE]... $row_record = mysql_fetch_assoc($record); do { echo 'Record <br />'; }while($row_record = mysql_fetch_assoc($record))[/CODE] In advanced php (using class) I decided to create my own way, so here … | |
Hi all- I'd like to change the buttons below used to change images to links/images instead. Any help would be appreciated! Thanks. [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <style> </style> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> <script type='text/javascript'> onload = function() { var buttonData = [ {src:'fareast.gif', href:'http://google.com'}, … | |
I am almost finished reading one of my tutorial books on C++. I made this program a little while back. The comments explain what the program does. There are still a few errors, like if you enter a character instead of a integer you'll be stuck in an endless loop. … | |
I have save formulas and variables in a database and when I retrieve them I want php to calculate the value like so [CODE] $x = .0832; $y = .0673; $z = 1.5; $formula = '$x -(($x-$y)*($z-1.0))'; $newformula = str_replace('$x', $x, $formula); $newformula = str_replace('$y', $y, $newformula); $newformula = str_replace('$z', … ![]() | |
With rstp If NewRecord = True Then .AddNew !slno_ID = txtslno.Text !DepartureDate = txtdate.Value !Departuretime = txttime.Text !PlaceofVisit = cmbpov.Text !ApproximateDistance = txtdistance.Text !NoofDaysofStay = Txtstay.Text !BusinessExpected = txtbusiness.Text !Remarks = txtremarks.Text .Update .Requery End With arrtime = (CCur(txttime.Text) + CCur(txtdot.Text)) fm = (CCur(txtdistance.Text) * CCur(txtmr.Text)) arrtime1 = arrtime + … |
The End.