199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Mar. Na.

Hi , this algorithm diffecult to implement and work ,how can i write code for this because ,i write code for it but isnt work completely to find CBO i.e Eff.size. Input: Any class file Output: Total coupling in the class file /*Eff is set for efferent coupling(set is java …

Member Avatar for Mar. Na.
0
261
Member Avatar for Violet_82

HI guys, as mentioned not too long ago here https://www.daniweb.com/programming/web-development/threads/501668/contact-form-building-my-own-or-already-made I'm building my own php script that is supposed to validate and submit form fields to an email address provided. The problem is that I have no real experience of php so I' just doing some readings, getting bits and …

Member Avatar for cereal
0
1K
Member Avatar for Mattia_1

I'm tryng to read sentence for sentence from an input with python: sentences = raw_input("Insert some sentences here: ") (For example: Hello, my name is Mattia) How i can read sentence for sentence? For example: 1 = "Hello" 2 = "," 3 = "my" 4 = "name" 5 = "is" …

Member Avatar for Onion13
0
3K
Member Avatar for toxicandy

Hello, I do want to start off by saying this is completely out of my area as I've never really worked with any ASP.net sites and hosting off IIS is also new to me. The site we currently have deployed is c#.net and was written back in 2005-2007, I have …

Member Avatar for LaxLoafer
0
326
Member Avatar for Samuel_9

iam using laravel 4 ,am trying to pass a variable to a redirect back return `Redirect::back()->with('message','Message has been sent',compact('account','pageTitle'));` like you would have done with a View ` return Redirect::back()->with('message','Message has been sent',compact('account','pageTitle'));` is that posssible ??.

Member Avatar for diafol
0
7K
Member Avatar for Da_2

I've got a small problem. I'm working on a little package/product-list. If you're watching a Package, my website should show you which products are in there. If a product is more than one time in it, the array should be deleted and the value of the leftover array should be …

Member Avatar for diafol
0
475
Member Avatar for negru

I need some explanation with the logic in the following program: Create a data structure such that it contains of three singly linked lists that are connected to one central node. **i-th** list can only have elements such that **list_element % 3 = i**. First element of every list represents …

Member Avatar for tinstaafl
0
351
Member Avatar for Kenny Robertson

Hi Guys! "can you teach me how to Disable Button Until All Textbox Is Not Empty." in my design form Named login. I have 2 textbox and 2 buttons I want to disable the buttons until all textbox is not empty i try everything i know but its not working …

Member Avatar for JOSheaIV
0
1K
Member Avatar for Sameer_6

I want to make a menu driven program in which I have 4 options 1) input() -Inputs the data WITH A UNIQUE KEY (AND CHECKS FOR REPETION) and writes it to a file 2)output() - Outputs the data using a UNIQUE KEY (WHICH WHEN NOT FOUND GIVES AN ERROR) 3)delete() …

Member Avatar for rubberman
0
320
Member Avatar for negru

Write a program that will read data about **n** movies (data about a movie is defined in structure). Sort data about movies (criteria of sorting is by title of a movie and by surname and name of an actor). Read data about one actor, and print data about all movies …

Programming c c# c++ data-structure
Member Avatar for David W
0
238
Member Avatar for negru

Write a program that reads **n** strings (with blank spaces). For each read string, check if it is a permutation of some other read string. If it is, print the found string and all other found strings that are permutations of the found string. Uppercase and lowercase letter are not …

Programming c c# c++
Member Avatar for David W
0
288
Member Avatar for bsabev

Hey, I am always in need of webhosting for my clients, php & mysql webhosting specifically. Normally I rent a vserver for my clients. Recently I stumbled upon this vendor from Austria, who is offering free domains + free webhosting for 12 months. The cost for the second year seems …

Member Avatar for stultuske
0
422
Member Avatar for Mar. Na.

Hi, I need a simple code to find CBO coupling between classes ,by using bcel API.this code isnt work and i dont no how calculate cbo by using parser and (methods,classname and how pass it to program; in my code i calculate simple cyclomatic complexity but now,i need to find …

Programming api java
Member Avatar for rproffitt
0
333
Member Avatar for Stefce

Why i get these errors when i open the page but when i try to upload it works fine ? <?php function upload_images() { $target_dir = "uploads/"; $target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]); $uploadOk = 1; $imageFileType = pathinfo($target_file,PATHINFO_EXTENSION); // Check if image file is a actual image or fake image …

Member Avatar for Stefce
0
496
Member Avatar for gamebits

Here is the deal, working on a card game using php mysql, I have a very simple way of shuffling the deck and I use array_chunk() to divide the deck into hands, the number of cards in each hand is variable depending of the numbers of players, there is also …

Member Avatar for cereal
0
442
Member Avatar for Hugo_1

pls i have a syntax error here... i have syntax error in line2 .... <?php mysql_query("insert into $s[pr]ad_type_google_dhtml VALUES (5, 'var dhtmlwindow={\r\najaxbustcache: true, //Bust caching when fetching a file via Ajax?\r\nminimizeorder: 0,\r\ntobjects: [], //object to contain references to dhtml window divs, for cleanup purposes\r\ninit:function(t){\r\n var domwindow=document.createElement(\"div\") //create dhtml window div\r\n …

Programming caching mysql php
Member Avatar for Nishant shukla1
0
294
Member Avatar for AntonyRayan

Hi, I am new to framwork, Now I started to learn Codeigniter. I have installed version of CodeIgniter 2.2.6, from the following link https://codeigniter.com/download I want to do a simple registration form with image upload , storing that image in a seperate folder, image name in to database, and with …

Member Avatar for Nishant shukla1
0
4K
Member Avatar for Sophia_1

Hi everyone, tried to display next and previous records using Next and Previous buttons but unable to do so. The record displayed is the current record whenever i click the Next or Previous buttons ie it doesn't move to the next or previous records. Below is the coding. Please advise. …

Member Avatar for Nishant shukla1
0
363
Member Avatar for BobFX

Hi, I have an app that works with Visual Studio 2010, but not with VS2015. Its purpose is to redirect stdout to a thread that reads from a pipe created with: if (FALSE == CreatePipe(&pipeout, &pipein, &sec, 0)) { mes = strdupa("SCRIPT: Unable to create pipe"); goto err; } SetStdHandle(STD_OUTPUT_HANDLE, …

Member Avatar for BobFX
0
558
Member Avatar for analys

Hi, I'm new to perl and I'm stuck at regular expression on which to get the data of deck, super and trial from an array. I have an input file as the following : `deck { @STATE = "this is low"; @ACCESS = "RW"; } [6:0]; super { @STATE = …

0
222
Member Avatar for Ankït

i did creat vb.net code for .aspx files, now i am looking for sql database connection for my project. exapmle: databasename: demo1 table_name: State user id: sa Password: 123 default.aspx - <fieldset> <legend>Table :</legend> <div class="Row"> <div class="textleft">Country Name :</div> <div class="textmid1"> <asp:TextBox ID="TextBox1" runat="server" BorderStyle="Solid" BorderWidth="1" BorderColor="#009933" Height="18px" Width="250px"></asp:TextBox> …

Member Avatar for AleMonteiro
0
205
Member Avatar for pihuu

Hi there, I am trying to get a data from a database using a query and populate it into a list view. Instead of getting a string value, I am getting "[Ljava.lang.Object;@64bba873". I have tried to cast it, but it did not work query1 = em.createQuery("Select e.name, y.surname from REQUEST …

Programming java listview
Member Avatar for JamesCherrill
0
164
Member Avatar for lewashby

I'm trying to align 3-5 items up in a table cell, three are on the top and two are on the bottom. In each of my table cells I want the first item to be at the top left of cell and the third item I want to be at …

Member Avatar for gentlemedia
0
288
Member Avatar for lewashby

http://www.w3schools.com/php/php_forms.asp On the page above I read that GET variables are send via the url and POST variables are sent as an HTTP request. When I tried POST with a simple php script all of my POST variables were still in the URL which is what I was expecting for …

Member Avatar for cereal
0
369
Member Avatar for Gagan_4

I want to show all data of the page in pdf but i have no idea how to do this . I am using php .Please help me to solve that problem.

Member Avatar for LaxLoafer
0
287
Member Avatar for diether.silverious

I try to make a query and it works well, but when i put it in a stored procedure.I can't figure out whats wrong with my code. It says **Procedure or function has too many arguments specified** Stored procedure code ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- …

Member Avatar for rubberman
0
319
Member Avatar for wanglan8498

what is the difference between client-side programming language and server-side programming language? Why javascript is only a client-side programming language, but PHP is a server-side programming language? I am a newbie starting web development and need some advice.

Member Avatar for rubberman
0
187
Member Avatar for shany0786

i have following code first insert is working properly and data in to database but second insert query which depends on last_insert_id() fails.I have tried to find out mistake but failed to do so? <?php namespace Solutions\File; class AddUserData { function __construct($DB_con) { $this->db = $DB_con; } public function insert_detail($productDetails){ …

Member Avatar for cereal
0
2K
Member Avatar for steven.culshaw

Hi when I am trying to use the DataGridViewAutoFilter function in my .net 3.5 windows forms application. I get the following message "Operation can only be performed on cells that belong to a DataGridView control" Can any one help me???? Thank you again in advance. SOURCE CODE *** [code] dataGridViewDowntime.BindingContextChanged …

Member Avatar for Edik
0
989
Member Avatar for ogsirus

Hi All, I have written a program which contains a class 'Numbers' which can hold a set five numbers. I then create 2 List<Numbers> instances which generate a random numbers. I then loop through one list and try to use linq to find if the list has an identical set …

Member Avatar for ogsirus
0
268
Member Avatar for negru

Write a program that reads an array of **n** polynomials and prints their squares using arrays. Example input: n=1 1. polynomial: order: 2 coefficients: 1 1 1 Output: square(x^2+x+1)=2x^3+4x^2+2x+1 The following code gives **SIGSEGV** segmentation fault: #include <stdio.h> #include <stdlib.h> #define MAX_ORDER 10 typedef struct term { int coef; int …

Programming c c# c++
Member Avatar for rproffitt
0
162
Member Avatar for Gajanand
Member Avatar for nebiyu elias

c++ code to count and print the number of lines,words,and word frequencies in the file

Programming c++
Member Avatar for rubberman
0
105
Member Avatar for wikit

I have a working search database and it's query code says $criteria = $_POST['criteria']; $query = "SELECT * FROM table WHERE field LIKE '%".$criteria."%' Order by Appeared asc"; but I want it to omit results that contain the word but are more then the word example the criteria might be …

Member Avatar for drjohn
0
209
Member Avatar for BenWard

Hi Guys, I'm after a user interface element for ionic that operates like a cross between a range slider http://ionicframework.com/docs/components/#range and spinner. Essentially the 'button' or tag that you would drag from side to side in a range needs to stay in the middle, but as you swipe, the scale …

Member Avatar for BenWard
0
564
Member Avatar for negru

I am having problems to figure out how to do arithmetic operations on positive integers represented as strings (addition, subtraction, multiplication, incrementing and decrementing). I did the addition as following: #include<stdio.h> #define MAX 100000 typedef struct { int arr[MAX]; }NUMBER; void read(NUMBER *add_num) { int i,digit=0; char ch[101]; scanf("%s",ch); while(ch[digit]) …

Programming algorithm c c# c++
Member Avatar for David W
0
2K
Member Avatar for alfadil ahmed
Member Avatar for David W
0
277
Member Avatar for David_65

**Question:** Create a message encryption system application that translates every message character to its ASCII equivalent and pads the resultant code with a chosen random key based on an addictive operation. **Answer:** program Encrypt; type tab=array[1..255] of byte; function Sum(T:tab):integer; var i,s:integer; begin S:=0; for i:=1 to length(T) do s:=s+T[i]; …

Programming encryption ide pascal
Member Avatar for David_65
0
376
Member Avatar for abim usman

function EnableDisableTextBox(chkPassport) { var txtPassportNumber = document.getElementById("txtPassportNumber"); txtPassportNumber.disabled = chkPassport.checked ? false : true; if (!txtPassportNumber.disabled) { txtPassportNumber.focus(); } } <html> <body> <label for="chkPassport"> <input type="checkbox" id="chkPassport" onclick="EnableDisableTextBox(this)" /> Tab? </label>Tab Quantity: <input type="text" id="txtPassportNumber" disabled="disabled" /> <br> <script type="text/javascript"></script> <label for="shoes"> <input type="checkbox" id="shoes" onclick="EnableDisableTextBox(this)" /> Shoes? Shoes Quantity: …

Programming java javascript
Member Avatar for kgweb
0
1K
Member Avatar for brispea

Alo All, I am really really tired of searching for a simple file manager for PHP/Code Igniter. I am not looking for advanced one at all: 1. No MYSQL 2. NO user tracking 3. Basic File Operations (copy, move etc) 4. Multi upload (in anyway) I have tried fileman and …

Member Avatar for cereal
0
3K
Member Avatar for Smith5646

I am trying to find information on best practices for json data. I am working on a client server app that will contain family information. For purposed of this question, this is an oversimplification of the database. I have a family table, an address table, and a family members table. …

Member Avatar for AleMonteiro
0
290
Member Avatar for powerade661

Hello Everyone, I am having issues with this current script. I am trying to create a Twitch bot in Python. Any help with this would be much appreciated. The issue that I am having is it is not replying back with the message Hello there, when I type in "Hello" …

Member Avatar for powerade661
0
158
Member Avatar for yaho01

Dim arr1 As String If Left(arr1(i), Len(n) + 2) = n& ": " Then titleBar = String$(100, Convert.ToChar(0)) valid1 = Right(arr1(1), Len(arr1(1)) - 13) how to convert vb6 to vb.net ? Left String$ Right Private Declare Function ObjectFromLresult Lib "oleacc" (ByVal lResult As Long, ByVal riid As Guid, ByVal wParam …

Programming vb.net visual-basic
Member Avatar for Reverend Jim
0
250
Member Avatar for AntonyRayan

I use this code to find time difference, alert(( new Date("1970-1-1 12:42 ") - new Date("1970-1-1 9:42") ) / 1000 / 60 / 60 ); it works in chrome, but in firefox it shows NaN error. How to solve this?

Member Avatar for cereal
0
118
Member Avatar for negru

I need help with the following program: Define a structure **VEHICLE** which contains **producer, model and chassis number**. Store the content of a structure in binary search tree such that the **key** for storing contains all fields of a structure (**producer** has the highest priority, and **chassis number** has the …

Programming c c# c++ data-structure
Member Avatar for tinstaafl
0
241
Member Avatar for andreas.petrou.967

hey,i jave this code. how to check the textbox (mname) to accept only letters? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <link rel="stylesheet" type="text/css" href="mystyle.css" /> <!--- call my style --> <head> <title>Home page - MidermFaill2015 - Andreas Petrou</title> <!--- title of page --> <!--Andreas Petrou 8600--> </head> …

Member Avatar for andreas.petrou.967
0
299
Member Avatar for rose_2

this code is correct expect that part which calculate the waiting time .. it should be 0 in first process but in output it equals the burst time of 1st process. how can i fix it ? #include <iostream> #include<iomanip> #include<queue> using namespace std; int main(){ queue<int> sc; float tat …

Programming c++ queue
Member Avatar for tinstaafl
0
1K
Member Avatar for klemme

Hi all, I have two tables. - Cart (cartId, prodId, etc) - Codes (Id, cartId, Code) Each line in the **Cart table** has a code from the **Codes table**. Because of an error, we now have 20 cart rows (But another time around it could be 1000 rows, so manually …

Member Avatar for klemme
0
238
Member Avatar for mlhazan

Hi, before posting this thread I tried to find solution inside daniweb but was not successful. I found one but it was so specific for one's own homework problem. I always get lost when I do recursion. I read books but most of them start with Fibonacci or Hannoi problem …

Member Avatar for mlhazan
0
253
Member Avatar for Sameer_6

Please Help me out!! After many tries I'm unable to return a string from a function. Please reply with the corrected code! I want it for my High School. Thanks in advance! I've shortened the code here. #include<iostream> #include<iomanip> #include<conio.h> #include<cstdlib> #include<fstream> #include<string.h> #include<stdio.h> using namespace std; string logdisplay(int log) …

Programming audio c c++ gaming
Member Avatar for Suzie999
0
272

The End.