199,114 Archived Topics
Remove Filter ![]() | |
Hi guys: I'm developing a small desktop app in c# and i was wondering if there was a way to set a specific user for a specific deployment of the app (eg. software on pc A has user 1 and software on pc B has user 2). I'm wondering if … | |
Hi. so i have a div/form like this:  depending on the drop down value chosen that number of forms will appear like if value 2 chosen then 2 forms will appear if 4 then 4. the code is this: $("select[name=children]").on("change", function(){ var num_forms = $(this).val(); var form = … | |
How can I populate a listview from another form passing the SQL statement from this form to the other form with the listview showing the result of the query? | |
Hi Community, I have a problem that I am trying to solve. Essentially, the run down is that Integers have a limit to the size of the number in which you can store in such a data type. To get around that I have to take a number and put … | |
So I have this programming assignment I'm doing for my structured programming class (using the C language) that gives me a segmentation fault error. I rewrote the assignment in C++ and it worked fine, but since the class uses C, I must get to the bottom of this and submit … | |
how to make like the picture below with jquery and php  | |
Hi. so i have this div like so:  see the "Add Spouse" link, when clicked will display another div:  the edit spouse works by submitting the data wihtout refresh using `$.post`: $(document).ready(function(){ $("#submitSp").live("click", function() { var id = $("#contactid").val(); var ssalut = $("#spouse-salute").val(); var sfname = … | |
I'm struggling with a side-scroller platformer game engine I'm working on. I want to provide Actors (primarily monsters) with state machines to follow, but I'm worried about how best to implement them. Right now, Actors extend Entities (I'm still torn on whether passive Entities like items/scenery should have states) and … | |
I am trying to find out if it is possible to [B]edit/add to[/B] an existing PDF file with PHP. I have a PDF agreement document that needs to have the client's name inserted on the blank field. The document will then be printed for their signature. I've created PDF's with … | |
//Hi,can someone explain the meaning of [size -2],why not [size -1],if we narrowing the string int palindrome(char str[], int size); int main() { cout << "Enter a string: "; char str[20]; cin.getline(str,20,'\n'); cout << "The entered string " << ( (palindrome(str,strlen(str)+1))? "is":"is not" ) << " a Palindrome string." << … | |
Hello, I want to create an application that downloads a table (containing a schedule) from a specific website and stores it in a text file. Then it reads the text file and performs some calculations of the schedule's time. I tried by downloading the source code of the website but … | |
I have an assignment to write a recursive function that takes one integer variable and output the integer in reverse order to the screen. I've tried converting it to a char array(c++ "string" class not allowed) but could not get a counter to work. I can reverse an int array … | |
#include <iostream> #include <conio> void main () { cout<<"rose mary"; getch(); } | |
i am creating program that checks if the path is valid or not | |
Hello, I am trying to make a hangman game and i've almost completed it except the main part. When a user clicks a botton containing an alphabet, how to show that specific text on the blank part. ------------------------------------------------------------------------------- Here's an example: _D_N_W_B ----->EDANIWEB so, when the user clicks the button … | |
Hi! I'd like to check if a string contains spaces: [CODE]System.out.println(text2.getText().matches("\\s+"));[/CODE] This code returns 'false' for both "My string" and "MyString". But I need 'true' for "MySpace". How could I do this? Thanks! | |
Hello everyone. I am having a lot of trouble in a class, and I am wondering if I can get some input/advice with my part one inventory program. I have already submitted this assignment, but I am going to have to modify it on Wednesday. My instructor has not graded … | |
I have a horizontal layout inside which i have added a group box. The group box is split using a QSplitter and contain a QListWidget and a QTextBrowser. I want to add two push buttons at the bottom right corner of the window to navigate inside the QTextBrowser. I'm adding … | |
Hello, I am making a checkList program in c# and it's almost complete. I used the "StreamWriter" and "StreamReader" class to read and write the texts. But after closing it once when i reopen the application and add a new task in the CheckList the prrvious one gets erased from … | |
prog6.h #include "340.h" #include "binTree.h" #ifndef H_PROG6 #define H_PROG6 const vector < int > A{ 1, -2, 3, -4, 5, -6, 7, -8, 9, -10, 11, -12, 13, -14, 15 }; const vector < float > B{ 0.5, 1.75, -3, 4.25, 5.50, -6.75, 8, 9.25, -10.5 }; const vector < … | |
A client of mine wants his site done using php-nuke, I was wondering if this is a good idea as it seems like there's not much using it and the support community is almost non-existent. Anybody here is using or have used it? | |
I have two servers in different locations (not within the same LAN). Both have a WCF client and WCF server. The WCF client on one server connects to the WCF server on the other, and v.v. What would be the best way to secure this communication, other than using SSL … | |
Hi fellow members of Daniweb. I've been working on project for the past few days now, and have come across a bump, that i am unable to pass. The project, when finished, will do the following: 1. Select DBF file from computer location (Default C:) 2. Import the database file … | |
Hi, I am taking my first Java class this semester, and I have run into an assignment that just has me stumped: I am to write a program that will count the number of occurrences of each letter in a string the user inputs. It is in a section discussing … | |
I'm trying to write a program that checks if a input string value contains any capital letters. Is there a way to do this in java? | |
Hello I have write some code to read a specific word from a text file. The file is located in a specific folder. In the folder there are multiple files, i want to read first the file that is upload first in the directory. After I have read file, I … | |
You are given N integers that are arranged circularly. There are N ways to pick consecutive subsequences of length M (M < N). For any such subsequence we can find the “K”-value of that subsequence. “K”-value for a given subsequence is the Kth smallest number in that subsequence. | |
Please assist, I am trying to get get one page out of three to load a google map once its loaded. the code i have is below. <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="refresh" content="600"/> <title>Pollutions App</title> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <style type="text/css"> html { height: 100% } … | |
hello. so my boss gave me these cfm files to convert to html. i have zero knowledge of coldfusion. could someone help me out? a link or something that has a list of html/cfm equivalents? though from the few pages i opened the only tag i see different from html … ![]() | |
i have an rsvp page where the table is populated by guests according to event selected in the drop down list. the rsvp table has 2 columns: guest names and status. status(radio button) is divided into 3: unconfirmed(default status), attending and not attending. user has to choose either one. but … | |
Using: Visual Studio Language: Visual Basic I already loaded a xml file to my datagrid already, what i am trying to do is have the option to save the datagrid data back as an xml file. I have the code, but how do I close the original xml file that … | |
I want to start reading and learning on my own the different programming languages. I will be going into MIS degree soon. What is the easiest language to begin learning... and after that? Thanks! | |
Hello All, I am facing a problem coming up with a SQL query for a certain issue: Table 1 ------------------- Client ID|Name of Client|Customer Type|Account Type| 01| A | AB | 30 | 02| B | AB | 30 | 03| C | CD | 30 | 04| D | … | |
Hi. I'm trying to implement a stack in C++, but i got stuck Here's my code #include<iostream> #include<cassert> #include<cstdlib> using namespace std; template<class Type> class stackTDA { public: virtual void initializeStack() = 0; virtual bool isEmptyStack() = 0; virtual bool isFullStack() = 0; virtual void push(const Type& newItem) = 0; … | |
Hi Everyone, I am trying to allow only numbers and dashes into one of my text inputs on a form. For example: 1-1, 1-0, 2-3 etc And I have the following to validate numbers only function validate_cscore($variable) { return is_numeric($variable); } the above works great with the following error checking … | |
hey guys! im making this program for myself called shourtcut keys(so far, so good) :) so anyway i was wondering if there was a code to turn off the monitor by pressing a key on the keyboard and to turn it on. i keep on searching on google and here … | |
I have this XML data which basically to add/minus/multiply the two numbers. And I have this Xquery function that suppose to convert this XML data into a readable string format. For example, let say XML file has in this form : <expr> <add> <number>2</number> <number>3</number> </add> </expr> <expr> <divide> <number>7</number> … | |
Hi I'm built a fairly basic add to shortlist function on my website similar to a session based add to cart. Here is the code for my add to shortlist button. <a href = "http://www.website.com/cart.php?action=add&id=' . $id . '" <b>Add to Shortlist<b> </a> Here is the code for my cart … | |
Hello ladies and gentleman of Daniweb.com. I wanted to ask a question about publishing an application, or a program to put online. But all of my code is neatly organized (PY) modules which canc only urn if you have python installed and I don't want to make people install python … | |
Hello, I was wondering if you can supply me with information regarding the following. I have two forms - form A and form B. In form A I must choose two teams using two comboBoxes for each. When I click "Continue" which is a button - I want to be … | |
I have a multiselect dropdown which has 8 colors in a hash %all_colors: my %all_colors = ( 1 => 'Red', 2 => 'Yellow', 3 => 'Orange', 4 => 'Blue', 5 => 'Black', 6 => 'Brown', 7 => 'Green', 8 => 'White', ); I have put it in a dropdown like … | |
I dont know how to writ this program at first: I should write whith "function" which is definition of this function is : fk(n) for e.g-----> 10 ! =3628800 "the lowest non zero degit value" of 10 ! is "8" 12 !=479001600 "the lowest non zero degit value" of 12 … | |
I am trying to send email which contains password of the user. i want to retrieve email id from database. and my password field and email field are in different tables. I have tried but mail is not going to the email id. Here is the code: HTML: UserName: <input … | |
I'd like to find an algorithm book that's either meant to be or good to use as a reference. By "reference" I mean that it contains all the basic algorithms (machine-learning algorithms especially) like QuickSort, Logistical Regression, Clustering. Preferably, including both the mathimicatical definition as well as psuedo code, or … | |
Hi there. Complete beginner on Java and OO principles. Having a little trouble in trying to figure out how to make objects move across the screen. Eventually, this will be a model of the solar system. So I have a planetObject class that represents a planet in the solar system: … | |
update code if(isset($_POST["type"]) && $_POST["type"]=='add') { $product_id = (int) $_POST["product_id"]; $product_qty = (int) $_POST["product_qty"]; //product code $product_size_id = $_POST["product_size"]; //product size $prosize=mysqli_query($connection,"SELECT * FROM size where SizeID = $product_size_id"); $prosizename=mysqli_fetch_array($prosize,MYSQLI_ASSOC); $product_size=$prosizename['Name']; if(isset($product_size_id)){ $product_size=$prosizename['Name']; }else{ $product_size="default"; } $return_url = base64_decode($_POST["return_url"]); //return url //MySqli query - get details of item from db … ![]() | |
How to validate Jquery UI auto complete filed. Im using [bootstrapvalidator](http://bootstrapvalidator.com/) to validate filed.I tried with this code its not working. $('#f_flying_from') .change(function (e) { $('#flights-tab-form').bootstrapValidator('revalidateField', 'f_flying_from'); }); | |
//Mad lib // Creates a story based upon user input #include <cstdlib> #include <iostream> #include <string> using namespace std; string askText(string prompt); int askNumber(string prompt); void tellStory(string name, string noun, int number, string bodyPart,string verb); int main() { cout << "Welcome to Mad Lib.\n\n"; cout << "Awnser the following questions … | |
Hey, I'm trying to figure out how to get this kind of program to work, it's supposed to be a UNIX style program in the sense that everything is command line driven. What I'm trying to get it to do is when the function is called it takes the input … | |
Hallo every bodies, i've problem that when i execute a form for update, that there is one of many fields as url input. Then response is forbidden, but when url's field is empty, all script are fine. I think it's so strange, I don't know how to do. Or is … |
The End.