199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for EclipticalD

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 …

Member Avatar for Santanu.Das
0
147
Member Avatar for nadiam

Hi. so i have a div/form like this: ![957d3e17b3579941c6bf92e594745d43](/attachments/large/4/957d3e17b3579941c6bf92e594745d43.jpg "957d3e17b3579941c6bf92e594745d43") 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 = …

Member Avatar for mangel.murti
0
272
Member Avatar for Waldis_1

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?

Member Avatar for Santanu.Das
0
458
Member Avatar for infiniteloop56

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 …

Member Avatar for jwenting
0
122
Member Avatar for bitwiseboredom

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 …

Member Avatar for bitwiseboredom
0
757
Member Avatar for bro_1

how to make like the picture below with jquery and php ![8f44abc169cde7f28b0640f162a17cee](/attachments/large/4/8f44abc169cde7f28b0640f162a17cee.png "8f44abc169cde7f28b0640f162a17cee")

Member Avatar for bro_1
0
137
Member Avatar for nadiam

Hi. so i have this div like so: ![d69e97a4413c033f6390ecaea54c6c8d](/attachments/large/4/d69e97a4413c033f6390ecaea54c6c8d.jpg "d69e97a4413c033f6390ecaea54c6c8d") see the "Add Spouse" link, when clicked will display another div: ![99b4077223bdea75c7de5b15af9b634b](/attachments/large/4/99b4077223bdea75c7de5b15af9b634b.jpg "99b4077223bdea75c7de5b15af9b634b") 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 = …

Member Avatar for gabrielcastillo
0
1K
Member Avatar for DeanMSands3

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 …

0
135
Member Avatar for spiderling

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 …

Member Avatar for Isaac_4
0
7K
Member Avatar for aluhnev

//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." << …

Member Avatar for tinstaafl
0
242
Member Avatar for BibhutiAlmighty

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 …

Member Avatar for castajiz_2
0
132
Member Avatar for badmofo

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 …

Member Avatar for Ali_40
0
876
Member Avatar for rose_2

#include <iostream> #include <conio> void main () { cout<<"rose mary"; getch(); }

Member Avatar for tinstaafl
0
151
Member Avatar for lilita
Member Avatar for BibhutiAlmighty

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 …

Member Avatar for ddanbe
0
165
Member Avatar for LianaN

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!

Member Avatar for stultuske
0
19K
Member Avatar for cemonica

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 …

Member Avatar for Schol-R-LEA
0
199
Member Avatar for myk45

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 …

Member Avatar for Banfa
0
454
Member Avatar for BibhutiAlmighty

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 …

Member Avatar for BibhutiAlmighty
0
219
Member Avatar for Rashmi_1

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

Member Avatar for Banfa
0
347
Member Avatar for Beggersewen

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?

Member Avatar for veedeoo
0
565
Member Avatar for pritaeas

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 …

Member Avatar for Ketsuekiame
0
292
Member Avatar for Gobble45

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 …

Member Avatar for Mary Grace_1
0
3K
Member Avatar for hbelle.28

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 …

Member Avatar for stultuske
0
485
Member Avatar for jhamill

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?

Member Avatar for stultuske
0
3K
Member Avatar for Orgest

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 …

Member Avatar for stultuske
0
255
Member Avatar for Subin raj

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.

Member Avatar for slate
0
149
Member Avatar for liphoso

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% } …

0
100
Member Avatar for nadiam

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 …

Member Avatar for diafol
0
1K
Member Avatar for nadiam

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 …

Member Avatar for nadiam
0
230
Member Avatar for VUEKID

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 …

Member Avatar for Santanu.Das
0
551
Member Avatar for lyndata

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!

Member Avatar for danielpeterson
0
197
Member Avatar for gregarion

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

Member Avatar for gregarion
0
206
Member Avatar for bernardo.mclobo

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; …

Member Avatar for bernardo.mclobo
0
666
Member Avatar for lloyd.farrell.7

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 …

Member Avatar for lloyd.farrell.7
0
327
Member Avatar for Programmer629

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 …

Member Avatar for dternity
0
622
Member Avatar for samsons17

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

0
110
Member Avatar for razar63

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 …

Member Avatar for razar63
0
335
Member Avatar for Jack_9

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 …

Member Avatar for Jack_9
0
179
Member Avatar for Joemeister

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 …

Member Avatar for EclipticalD
0
202
Member Avatar for dinkar_1

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 …

0
115
Member Avatar for rayhaneh

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 …

Member Avatar for rayhaneh
0
182
Member Avatar for Hims15

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 …

Member Avatar for gabrielcastillo
0
282
Member Avatar for mgold

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 …

Member Avatar for StefanijaV93
0
451
Member Avatar for larnacode

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: …

Member Avatar for larnacode
0
288
Member Avatar for rjusman90

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 …

Member Avatar for diafol
0
481
Member Avatar for arafath077

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'); });

Member Avatar for arafath077
0
144
Member Avatar for Lilgenski16

//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 …

Member Avatar for Lilgenski16
0
438
Member Avatar for valestrom

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 …

Member Avatar for Gribouillis
0
5K
Member Avatar for Idhar

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 …

Member Avatar for Idhar
0
187

The End.