64,152 Solved Topics
Remove Filter ![]() | |
Write a program that reads n digit number. after reading the number, compute and display the sum of odd positioned digits,multiply all even positioned digits and add the two numbers. I have attempteed this problem like this a = input("Enter number") s = 0 p = 1 n = 1 … | |
I want make an email script for users to be able to send me messages and i getting Mail delivery failed: returning message to sender this is the script <ul> <li><form name="mail" method="POST" action="send_mail.php"></li> <li>To:</li> <li><input type="text" name="to" /></li> <li>Message:</li> <li><input type="text" name="Message" /></li> <li>From:</li> <li><input type="text" name="from" /></li> <li>CC:</li> … | |
Yes, I am new to Java as you will see from my post. I have done most of the work therefore; I am not interested in someone to doing my work for me rather I am looking for a new set of eyes. My program is to keep track of … | |
Hello, team. When I run my program it is not allowing me to run this program. Looking to the professionals for some help. Tester import java.util.Scanner; public class ProductTester //the class ProductTester { public static void main( String[] args, Object getPrice) //the main statement { Scanner user_input = new Scanner( … | |
i am making a database and i want to store data from dynamic fields. below i m submittig my form data to datapost.php page to proceed inserting there values but i have no any clear idea how it will success. i want to save this form in my database so … | |
Hello Community, I'm making a new service called Gimme Support, currently my domain is [http://gimmesupport.co](http://gimmesupport.co). I need to renew it soon and I was debating on weather to change it to [http://gimme.support](http://gimme.support). Which would you say is better [http://gimmesupport.co](http://gimmesupport.co) or [http://gimme.support](http://gimme.support)? I'm still not sure which one I should go … | |
this is my login 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"> <?php session_start(); $year = time() + 31536000; if(isset($_POST['remember'])) { setcookie('remember_me', $_POST['email'], $year); setcookie('remember_me2', $_POST['pass'], $year); } elseif(!isset($_POST['remember'])) { if(isset($_COOKIE['remember_me'])) { $past = time() - 100; setcookie(remember_me, gone, $past); } } ?> <head> <link rel="stylesheet" href="css/validationEngine.jquery.css" … | |
Do I have to wait to post code? My phone is on desktop view and I do not see a tool bar to post code. | |
Define a function named isDivisor that has two parameters of type int and returns a value of type bool. A call to isDivisor(m,n) should return true if and only if (iff) m divides n. For example isDivisor(6,24) will return true but isDivisor(5,24) will return false . Note that every number … | |
Define a function int getRoots(double a, double b, double c, double & s1, double & s2) that solves a quadatic equation with coefficients a, b and c. If there are no real roots than the return value will be 0 and the values of s1 and s2 will be left … | |
Define a function void order(int & a, int & b, int & c, bool ascending) that places the values in ascending or descending order, depending on whether the last parameter is true or false . For example, if x, y and z contain the values 3,1, and 2, respectively, then … | |
Hi! I have this code from the internet but it didn't work well. I want to set the margin of the Report Viewer during runtime. Because I have this form to fill up. Instead of handwriting it. I programmed it. But there are certain positions of the textboxes in which … | |
Define a function bool isWin(char board[][3], char target); that returns true if character target has a winning position on this tic-tac-toe board. That means three occurences of target in a line, column or along either diagonal. For example if target is 'O' and if board[0][2], board[1][1] and board[2][0] all equal … | |
Hi, so i have an input text `<input type="text" name="numguest" id="number-of-guests">` and a button `Okay`. When a number say, 4 is entered into that text box and clicked okay, 4 of this text box `<input type="text" name="guest-name[]" placeholder="Guest Name" id="text-gname">` will appear. i tried: $("#okay").on("click", function(){ var num_of_guests = $("#number-of-guests").val(); … ![]() | |
I want to identify xml nodes that does not have specific attribute. Below is the sample xml. I want to retrieve nodes that does have the "response" attribute. I found atricles that help identify node that has a specific attribute but not my requirement. <top node> <viewentry position=1 children = … | |
Hi, am interfacing gps tracker TK106 with our online platform. The data we get from gps device is in this format (06667778889-9BP05000066677788899140815A0533.8206N00009.7045W000.0165936157.6200000000-L0000F51C) Instractions form [this site](http://sourceforge.net/p/opengts/patches/1/) explains the variours data sets in the string above, for example the first 11 digits 06667778889 is the device's programmable ID ,used in placed … | |
I would like to break up a list into sublists of 3 elements each. I have this code, but it will give an index error when the length of the list is not divisible by 3. mylist = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11] … | |
For reference: http://en.wikipedia.org/wiki/AVL_tree I remember having touched these briefly in my CS Fundamentals 3 class, now some 5 years ago. Haven't touched them since. Does anyone use these on a semi-regular basis and in what context? | |
Hi! I'm having hard time where to put the system.out.print code in my assignment. please check my codes, I'm still new and learning in java sorry If I have mistakes :) here: import java.util.Scanner; public class SelectionSort { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("Enter … | |
Hello, I am trying to set email from my web server which we hosted ourself. I already set my php.ini to smtp.indonusa.net.id and from email: davy@indonusa.net.id to: davy_yg@yahoo.com The program seems to works fine. Yet, I do not receive any email yet as I suppose to. Someone mentions to me … | |
i've stored a line into string `$output='01/07/201521/08/201691754.0';` i want split the line as three different words & store into variables var1 var2 and var3. eg: var1=01/07/2015 var2=21/08/2016 var3=91754.0 hope someone will fix this issue. | |
I have a simple php file: <?php /** * email_validation_query: evq.php * This file is placed in the root directory and returns the owner's email address * in the jos_owners table along with the animal's name and the breeder who registers them. **/ $user_name = "user_name"; $password = "password"; $server … | |
Error : Object referrence not set to an instance of an object Situation; I have an array declared publicly (i.e. outside any events) as Public Shared array_shuffle() As Integer What I want to do is to be able to specify the length and elements of this array from inside events … | |
Write a complete program that reads an integer k > 1 from the console and finds the first positive natural number n hat is divisible by all whole numbers between 2 and k inclusive. Your program may only use do-while loops , even if you think a for-loop or while … | |
I wonder how CMS(Wordpress) know the default template and plugins to run. Should I store the default value for template in MySQL database or just using file_put_content to store the default value for template/plugins ? Or, is there any better way ? | |
I'm having some trouble getting importing stuff from another class, I think I may be doing it wrong. I have a simple main class called Test and at the top I say: [CODE] from WordFixer import WordFixer import sys [/CODE] Then in the same folder (the src folder) I have … | |
Hello, I have few question regarding importing modules. I have created a folder for my python work [quote]/usr/home/pratz/pyfiles[/quote] I have exported this to set the $PATH. And now if I issue the command [code]echo $PATH [/code] I am getting the string the "/usr/home/pratz/pyfiles" in the list. If I am not … | |
Hi all, i am trying to write a mortgage amortization schedule calculator and am stuck. please see the code below. It appears that the principal is being counted twice before subtracting it from the balance. Any ideas on what the issue is? I am new to python: loanAmount = input("Please … | |
Hello, I mainly wanted some tips and advice on ways to optimize this code, it's actually an exercise from my class' power point file. It says: Exercise 1 Sam and Ella's Delicatessen wants you to write a program to take orders from the Internet. Your program asks for the item, … | |
Hey guys, I made the game Rock Paper Scissors where 2 players can play against each other. Here is my client's GUI ( The server doesn't need 1) and I was wondering what else to do to make it better looking/more "advanced". Any feedback is appreciated - The entire GUI … | |
Hi guys, quick question. When I work with asp.net controllers (so say a TextBox or a Label) if I want to get what's inside them I will use the Text property: for asp.net listboxes instead I use the Value property. If I instead, say, I ditch completely the asp.net controllers … | |
I have a class containing: class CounterList: __n_comparisons__ = 0 def __init__(self, data=None): if data is None: self.data = [] else: self.data = data self.__n_accesses__ = 0 def __getitem__(self, i): self.__n_accesses__ += 1 return self.data[i] def __setitem__(self, i, item): self.__n_accesses__ += 1 if type(item) != CounterNode: raise ValueError("Only Counter objects … | |
Hi! Can you help me in finding related literatures on Online Grading System with SMS Alert. | |
[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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <link rel="stylesheet" href="css/jquery.datepick.css" type="text/css" /> <script type="text/javascript" src="js/jquery-1.4.2.js"></script> <script type="text/javascript" src="js/jquery.datepick.js"></script> <script type = "text/javascript"> function updateSelected(dates) { $('#selectedMonth').val(dates.length ? dates[0].getMonth() + 1 : ' '); $('#selectedDay').val(dates.length ? dates[0].getDate() : ' '); … | |
studentmgt.php $search = $_GET['search']; echo $search; ?> <div align="center"> <div style="width:700px;text-align:left;padding-top:5px;"> <?php if (isset($confirmation)) { echo $confirmation; } ?> <form method="get" action="<?php $_SERVER['PHP_SELF'] ?>"> <br/> <?php //LOAD STUDENTS INFO $result = mysql_query("SELECT * FROM `student` INNER JOIN `group` ON group.group_id = student.group_id INNER JOIN `access` ON access.access_level_id = student.access_level_id ORDER … | |
Hello! I am normally in the PHP / Web Development section of DaniWeb. It's a pleasure to finally have a reason to check out other sections of DaniWeb! So, I am logged in as root at the Command Line Interface over SSH - on Debian 7 Wheezy running on a … | |
Helllo to all 1.11 members. Could someone paste and copy. Xml from a build.xml so I can see basic structue and conventions? Thank you. | |
i ecounter problem again, this time different, i've success compile my project from.java to .jar then compile .jar to .exe, then i have try my .exe result, so at first was working well, but when need connection to database, that was appear notification connection failed .. thats all my problem.. … | |
APPLIED PROGRAMMING (APR520S) ASSIGNMENT 1 Problem Solving Tools Total Marks: 50 Marks Due: Friday 22 August 2014 Suppose we want to construct a C/C++ program that can be used to calculate the area or the volume for a range of 2-D and 3-D shapes respectively. Consider only the following shapes. … | |
I'm having some problems cleaning up some of the processes my windows form application creates. I'm using selenium which starts a process instance of a browser and a browser driver among other things. Selenium library provides a Quit() method which if called inside my running application works just fine at … | |
hi, i have an import csv script but it does not get entered into the database. only "uploaded successfully" and the data is echoed but nothing in the database is something wrong with it? and is it sql injection safe? <?php if(isset($_SESSION['sess_user_id'])) { if (isset($_POST['ubmit'])) { require "connection.php"; $session = … | |
what should do? if show() replace with setVisible(True) then.. getText() replace with ? addItem() replace with ? | |
Hi Guys, If you have a Text Box which you are putting in the Decimal Places such as "15.50". Then Submitting this to a Access Database then on re-fresh the data shows in the grid view as "15.5". Where abouts should this be modified so that it shows Decimal Places? … | |
I am getting error while uploading from any pages. Folders are exists, file permissions are set to 755 but still getting error. | |
Hello everyone.. I have a open source remote file upload script. It is called file snatcher. We can directly upload the files to our server from another server. But the problem is we can upload only one file at a time. I mean if you have many url, you have … | |
when i was compile with -Xlint: unchecked then got some warning like this Compiling 12 source files to C:\Users\Titus\Documents\NetBeansProjects\SITA\build\classes warning: [unchecked] unchecked call to addItem(E) as a member of the raw type JComboBox what should i do? | |
Hello, I want array in format $xyz[]=array($key=>'Some value here',$value=>array('value1','value2)); In below code, I want it in loop by checking if $ManagerGSID value is not in $xyz[] as $key then insert into it. (as key will $ManagerGSID and value will be array ($EmployeeGSID)) again if got the same $ManagerGSID then push … | |
Hy io have this php script(if you can call php script) anyway i whant that every result to show it one down the another(mysql grid table) but with that kind of search....i've tryied but unf nothing.... this is the "code" <?php $i = 0; if ($_REQUEST["string"]<>'') { $search_string = " … | |
i had use combo box like this {jComboBox2.addItem("-- pilih menu --"); try { String sql = "select * from iomenu"; Statement cn = con.createStatement(); ResultSet rs = cn.executeQuery(sql); while (rs.next()) { jComboBox2.addItem(rs.getString("KodeMenu")); } } catch (Exception e) { } } but when i build that was had warning like this … | |
can you resolve this warning? warning: [deprecation] getText() in JPasswordField has been deprecated |
The End.