199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for nitsi

Hi, I have a weird requirement and since i have never worked on xml, xsd and python i am not understanding how to go about it. There will be 2 xsd files containing parameters(structure), (may or maynot have)default values for them and range values for them. The xml file will …

0
174
Member Avatar for riahc3

for ($i = 0; $i < count($_COOKIE); $i++) { echo ($_COOKIE[$i]); } Is there a reason this doenst work?

Member Avatar for diafol
0
154
Member Avatar for alhaji.m.kanu

Hello, I'm writing a program where I take a prewritten text file and a. convert it into binary, b. write text to that binary file, c. display an output report and d. sort by employee name. I can do a,c and d, but I am having a hrad time with …

Member Avatar for ravenous
0
186
Member Avatar for Violet_82

Hi guys, I am not sure this is right or not. If I have one variable whose value is true or false and I want to use it in an if statement I could easily do if(variable1){ //do this and that } but I want to check 2 variables I …

Member Avatar for Violet_82
0
195
Member Avatar for Rabastan

I have a form with nothing but a combobox and go button. The combobox is populated by the "Name" field in the table. What I want to do, is populate text fields on a new form with the rest of the information in the table, based on what selected in …

Member Avatar for Begginnerdev
0
171
Member Avatar for TimCadieux

I haven't had to do Php in about 5years and I'm having some trouble doing the simplest task. I use Javascript to send some parameters from a querystring to my page and so some may be 'undefined' I want to build a mySQL query based on these parameters, therefore need …

Member Avatar for TimCadieux
0
199
Member Avatar for joeydal

I need to be able to display whether or not a person searched for "is a friend" if found in the file and "isn't a friend" if not found in the file. I also need to continue processing names until "END" is typed in. Any help would be appreciated! #include …

Member Avatar for tinstaafl
0
190
Member Avatar for abdulazeem
Member Avatar for xMatter

I am looking to modify my contact form (page template in WordPress) to display the SUCCESS message within the same space as the actual form. Sort of like an overlay of the 200px by 300x area, but without the form fields. Here is all the code: <?php if(isset($_POST['submitted'])) { if(trim($_POST['contactName']) …

Member Avatar for EvolutionFallen
0
202
Member Avatar for yobotiks

Hello Everyone, I have two form. First is main form which is display the data. Second is a another form which users input the values to the textboxes. I would like to make that When a user type something in textboxes in second form, these data will be shown in …

Member Avatar for ddanbe
0
2K
Member Avatar for tensity

I am trying to force the user to input a polynomial in the following format: (num)x^2+or-(num)x+or-(num) I have labeled my error messages with 1 2 3 and 4. When I input something like 3204723094823094823094829, I do not get an error and I should, due to not finding "x^2" in the …

Member Avatar for Moschops
0
116
Member Avatar for kay19

Well i'm having trouble with this code with the following lines: return new AccountID(this); return new Customer(this); ^These two from the clone method. Customer myCustomer = new Customer(newBank.Find(myAccountID)); ^Not sure what i'm doing wrong here, it is on 4 different methods of deposit, withdrawal etc. Not only that, but my …

Member Avatar for kay19
0
210
Member Avatar for tensity

I am having trouble trying to get my code to work. If I pick selection 1 or 2 the cout statements execute but it does not wait for the cin and the program closes. #include <iostream> #include <cstdlib> #include <string> #include "poly.h" using namespace std; void enterPoly1(Polynomial&); void enterPoly2(Polynomial&); void …

Member Avatar for tensity
0
255
Member Avatar for dbalas

Hi! I need help with sending html email with all the records from two tables. I tried joint tables but it doesnt work as it should... Here is what i have session_start(); if(!@$_SESSION["UserID"]) { header("Location: login.php"); return; } ?> <?php $con=mysqli_connect("..."); // Check connection if (mysqli_connect_errno()) { echo "Failed to …

Member Avatar for dbalas
0
198
Member Avatar for pc20912

How to create array textboxes in Tab page. From Input Box user will change TextBox Count and Tab Page count

Member Avatar for tinstaafl
0
240
Member Avatar for dhani09

I have the following code to draw any polygon on an HTML5 canvas on a button click. The user supplies the radius, sides, x and y co-ordinates. Using the sides any regular polygon should be drawn. First we move to the perimeter using moveTo() and then draw lines using lineTo() …

Member Avatar for IIM
0
203
Member Avatar for nitin1

actually, I am trying to do digital watermarking. can you please giv me some hints of algos which i can use to do watermaking on numbers ? like i have array of numbers, then i want to water mark them with some kind of algo and also want to save …

Member Avatar for gusano79
0
109
Member Avatar for Jdan2388

Hey all im working on a program that has gives you the option of converting a message(string) into 3 different schemes: Prime Shift Encoding scheme, Shifty Encoding Scheme, and a Reverse Encoding scheme. I have figured out how to encode and decode the prime shift scheme and reverse scheme, but …

Member Avatar for plenty.groover
0
363
Member Avatar for LaughingOtter

Hi! Long time no post, mostly because I've had to put the mobile coding aside for my real job. Plus some home brewing. And lots of pinball. I have run into a problem. I am developing an application where an Excel spreadsheet (or tab-delimited text file) can be read in …

Member Avatar for LaughingOtter
0
528
Member Avatar for nishi.ahmed2

how i can implement php code in my blogspot website name [text free](http://text-free.blogspot.com/). how is is it possible? i want add little programme in my blogspot site

Member Avatar for diafol
0
334
Member Avatar for Forte1292

I have the numbers 0-8 so I can represent a state as 012345678 012345687 .... 876543201 876543210 This gives me 40320 ways to represent a state so I have a HashMap of size 40320 and I need a good way to make sure each state only corresponds to 1 key …

Member Avatar for Momerath
0
259
Member Avatar for ferdinandmucos

How do I Change the select option to check boxes in the following code: foreach($qas as $k=>$v) { echo "<input id='text' style='width:40%' type='text' value='".$v['question']."' name='questions[]' >"; echo "<select name='selected_answers[]'>"; foreach($v['answers'] as $answer){ echo "<option value='".$answer."'>".$answer."</option>"; } echo "</select>"; echo "<br/><br/>"; }

Member Avatar for ferdinandmucos
0
245
Member Avatar for moha_1990

hey guys this is the question compile shuffleUniqueRandomNumbers.c and run the exe file to generate n number of random numbers. The program asks for three (3) parameters: generated number, lower bound and output file name. For example if you input 100 as generated number, the program will generate 100 numbers …

Member Avatar for jwenting
0
235
Member Avatar for daniel.pareja.315

Hi all, would like to convert this javaScript code versatile so it will be able to extend various inputs of a form. var instance = 0; function moreFields() { // Check if there isn't more than 3 fields if(instance != 3) { instance++; // Create a child var clone = …

Member Avatar for daniel.pareja.315
0
155
Member Avatar for davy_yg

Hi, How to revise the php code so that it could fits the subject for e-mail? Thanks. <?php require_once('recaptchalib.php'); $name = strip_tags(@$_POST['name']); $email = str_replace(" ", "", strip_tags(@$_POST['email'])); $phone = str_replace(" ", "", strip_tags(@$_POST['phone'])); $message = strip_tags(@$_POST['message']); if (@$_POST['submit']) { if ($name&&$email&&$phone&&$message) { if (is_numeric($phone)) { $privatekey = "6LfjvdcSAAAAAHNcKjYO5DhTNefxYZHYcfhtrvGC"; $resp …

Member Avatar for davy_yg
0
115
Member Avatar for ferdinandmucos

Having a text file: $string = '1) The most important feature of spiral model is: requirement analysis. risk management. quality management. configuration management 2) The worst type of coupling is: Data coupling. control coupling. stamp coupling. content coupling 3) One of the fault base testing techniques is: unit testing. beta …

Member Avatar for ferdinandmucos
0
952
Member Avatar for sai.aleenus

if f(x,y) be a function (x^3 * y^-4) + (x^-2 *y^3) with 2<x<10 and 1.1<y<3.5.f(0,0) = f(9,1.2). how do you develop a c program of loop(x decremented by 1 unit) with in which another loop (y incremented by 0.8(K) initially and then as the y reaches a value where incrementation …

Member Avatar for sai.aleenus
0
224
Member Avatar for mzee.1997

A teacher inputs the grades of his students. (Store the grades in an array). Output the mean, median, mode and the range. In addition, output the data graphically using a histogram. Use functions for the mean, median, mode and the range.

Member Avatar for umarqasimmalik
0
123
Member Avatar for salathia

I am using gridview to load the data from the database. I have done correctly with databind. But this time i am trying to display data by filling the values of cells in rows... My code is like this:- Public Sub grid_init() dim index_flag as integer = 0 curr_user = …

Member Avatar for salathia
0
179
Member Avatar for renzlo

Hi, All, I am just wondering is this is doable. I've tried searching it in google but still no luck. I want to merge my 2 CSV files by column. For example: File: coded.csv "Header A","Header B","Header C" "Data A","Data B","Data C" "Data A","Data B","Data C" "Data A","Data B","Data C" …

Member Avatar for renzlo
0
1K
Member Avatar for Carpetfizz

Hello! I'm trying to pass a variable from one .php file to another, through the use of a global variable. However, whenever I make a variable "global", the page does not load. Here is the snippet of code that is causing the problem. If more context is required, let me …

Member Avatar for LastMitch
0
255
Member Avatar for erum

i have follwoing code in jquery function CallService3() { $.ajax({ type: "POST", url: "MyService.asmx/Comments", // data: "{ 'loginid': " +"'"+ $("#txt_login").val()+"'" + ", 'pass': " + "'" + $("#txt_pass").val()+"'" + "}", data: "{}", contentType: "application/json; charset=utf-8", dataType: "json", success: OnSuccess3, error: OnError1 }); } function OnSuccess3(data, status) { if(data.d.length > …

Member Avatar for LastMitch
0
208
Member Avatar for riahc3

Hello Im having problems setting a cookie in PHP (using the Magento platform). The page is at: http://example.com/step1 When I click on a link here, a iframe opens up. This iframe opens up and is located at: http://example.com/somewhereelse/index.html I check a checkbox or I dont. If I check it, a …

Member Avatar for LastMitch
0
242
Member Avatar for ivanichi

i have problem about while loop. this my code, error_reporting(E_ALL ^ (E_NOTICE | E_WARNING)); function multiexplode ($delimiters,$string) { $ready = str_replace($delimiters, $delimiters[0], $string); $launch = explode($delimiters[0], $ready); return $launch; } function my_replace($srch, $replace, $subject, $skip=1){ $subject = explode($srch, $subject.' ', $skip+1); $subject[$skip] = str_replace($srch, $replace, $subject[$skip]); while (($tmp = array_pop($subject)) …

Member Avatar for ivanichi
0
578
Member Avatar for Kesarion

I have an array of objects that I need to iterate through in order to get three items. The parts of the object important in this context are: value and type. I need to find the first three items from the array that have the greatest value sum and are …

Member Avatar for Kesarion
0
265
Member Avatar for codys21

I am getting an error when I run my program that says: Exception in thread "main" java.lang.NullPointerException at defaultpackage.GradeBook.setName(GradeBook.java:25) at defaultpackage.GradeBookDemo.readFromFile(GradeBookDemo.java:52) at defaultpackage.GradeBookDemo.main(GradeBookDemo.java:23) I've looked through my program and cannot figure out what is actually wrong. The first class is GradeBook and the second is GradeBookDemo. I have to use …

Member Avatar for bguild
0
500
Member Avatar for Translucentbill

How would I make an Image work like a button? I need it for a yahtzee game. I want it so that after i roll the die and the image is displayed i want to be able to select the die i wish to keep and then re-roll the ones …

Member Avatar for goodtaste
0
2K
Member Avatar for dhani09

I'm trying to create something like a breadcrumb based on what is selected from a drop down list. For example if a user selects accessories from a list and then goes on to select from another drop down list scarfs. I want to be able to show: You selected accessories …

Member Avatar for diafol
0
200
Member Avatar for kS_100

Dear all, in order to fulfill my report on how to improve the performance of non-recursive binary search in MIPS, I need the code for a non-recursive binary search in MIPS. please help me with providing either the code or any source i can utilize to aquire the code. big …

Member Avatar for venom61991
0
735
Member Avatar for arudhumbu
Member Avatar for ddanbe
0
173
Member Avatar for TUNG810810

Anyone can help me to finish this c++ question? Please contact me by email. UNO UNO is one of the world's most popular family card games, with rules easy enough for kids, but challenges and excitement enough for all ages. In this assignment, we will program a simplified version of …

Member Avatar for Ezzaral
0
544
Member Avatar for Sneaky Pete

Hello everyone, Can somebody help me with Visual Studio 2008 Express Edition? I've already have THE 2010 version but I need to have the 2008 version for programming for a specific program. I've already searched om the net but there are no good downloads avalible. The ones all gave an …

Member Avatar for tinstaafl
0
490
Member Avatar for adem87

i have a project that it find the shortest bakery in c# . i written a program that save vertex and edge and drowing when opening the program. bu i need a code that find the nearest bakery. please write the needing code below this. i have this vertex.id vertex.x, …

Member Avatar for ddanbe
0
251
Member Avatar for Vasthor

[Click Here](http://s16.postimg.org/rjkqfahp1/faulty1.png) I thought after the function call of gen_aux before the loop, the static call on the type for r should have make it declared. but why not? how static really works? this is what it's explained in the books:- static type variable; For local declarations, declares variable with …

Member Avatar for sepp2k
0
230
Member Avatar for ferdinandmucos

The two arrays does not compare and compute by adding one for every similar and 0 if otherwise I don't know what is wrong with the codes, but to me is seems fine. What might be the problem? <html> <head> <title>Chosen answers</title> </head> <body> <pre> <?php //Posting of the chosen …

Member Avatar for diafol
0
168
Member Avatar for Violet_82

Hi, when I started to look into programming, one of the things I remember many programmers are quite keen on are setters and getters. I totally understand the importance of them but there is one thing that isn't really clear to me. If I have a class with some private …

Member Avatar for Violet_82
0
173
Member Avatar for Violet_82

Chaps, I am having some problems with a return statement in a function. I have this situation: public boolean isFine(){ for( int i = 0; i < myarray.length; i++ ){ for(int j = 0; j < myarray[i].length; j++ ){ if( myarray[i][j] == myEnumeration.FRIDAY ){ return false; } else{ return true; …

Member Avatar for Violet_82
0
172
Member Avatar for Xcrypted12

Hello everyone, I am having a hard time finding the information I need and am hoping you all can help. I am using sql developer and I have a database named us that holds 5 tables and a database named uk that holds the same 5 tables. It is a …

Member Avatar for Xcrypted12
0
150
Member Avatar for jared.j.roberts.7

Hiya, I am new to java, I have a very fast paced class and I am learning as much as I can as quickly as I can. I have previous experince with C++ but it will not help here. My Question: **WHY WILL MY PROGRAM NOT RUN!!??** *It compiles and …

Member Avatar for radhakrishna.p
0
187
Member Avatar for Tewhano

I am working on an assignment from the book ‘New Perspectives: HTML, CSS and DHTML’ and I am unable to get the code to work. This is an online class and this book is not a desirable choice for this type of class. Basically I am to write code to …

Member Avatar for radhakrishna.p
0
423

The End.