-
Began Watching Generic Class Standard Deviation
I am trying to write a generic class with at type parameter T, and add a method that takes an ArrayList of type T and returns a standard deviation as … -
Replied To a Post in Generic Class Standard Deviation
What you are calculating is the **population standard deviation** which, for 1-10, is `2.87228`. The **sample standard deviation** for 1-10 is indeed `3.02765`. For a sample deviation you need to … -
Began Watching NEED Help In My Project of Database
Hi Guys The thing is that i was asked to make a libaray database managment software for my semester project which i did but now my teacher is asking to … -
Replied To a Post in NEED Help In My Project of Database
This is not what they mean by Delegation Principle. Obviously no one will redesign your application to comply with OO principles for you. You can start making your application OO … -
Began Watching Crossing English Words- in java
I am creating a program that takes two english words from the command line and prints one out vertical and the other horizontal and sees how many times the words … -
Replied To a Post in Crossing English Words- in java
Those `pos1` and `pos2` variables are always **0** so it's constantly comparing the first two letters. Your `i` and `j` however remain unused. -
Began Watching How to parse JSON to listview android?
Dear Daniweb friends, I created adapter like this: public class PromotionAdapter { String code = null; String name = null; String continent = null; String region = null; public PromotionAdapter(String … -
Replied To a Post in How to parse JSON to listview android?
In **PromotionAdapter** * The variables should be made private (also instantiating them to null is pointless, Objects will be null by default) * On line 7 you're calling `super()` for … -
Began Watching android studio TOO SLOW any alternative
I installed android studio on my laptop i5 processor and 4GB ram but it is real slow and it also slows my laptop down. I browsed some forums and read … -
Replied To a Post in android studio TOO SLOW any alternative
You could try using the old [Android Development Tools plugin](https://developer.android.com/sdk/installing/installing-adt.html) for Eclipse. It's not the official tool anymore, but at least it's an IDE. Something else that could help is … -
Began Watching array of images
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the … -
Replied To a Post in array of images
You can create an array in [various ways](https://docs.oracle.com/javase/tutorial/java/nutsandbolts/arrays.html) . String[] array = new String[]{"I","did","not","read","my","textbook","and","I","don't","know","what","a","Google","is","nor","have","I","studied","line","63","outside","of","the","Netbeans","GUI-builder"}; Furthermore, it seems that most of this code was given to you (or generated by Netbeans) … -
Began Watching NullPointerException when reading and writing to txt file
Dear all, I was given a project to write a software that would track contracts. Everything is successful until I read or write the current data from the JTable to … -
Replied To a Post in NullPointerException when reading and writing to txt file
As @JamesCherrill pointed out, the add method you're using on line 101 is not the correct way to add data to a JTable. You are passing `null` as a component … -
Gave Reputation to diafol in Where did everything go?
In response to the negative rep I'm accumulating from you dtpp, all I can say is that if DW goes to the wall, it won't be due to the changes … -
Began Watching Bootstrap Not Working with Image Upload Form
Dear All, I am facing a weird problem, similar codings give different result. Why is this happening? I am saving both files as .php file. Please guide me. I really … -
Replied To a Post in Bootstrap Not Working with Image Upload Form
Well, both have bootstrap. The first one has the "image" `<form>` in a `<table>`, the second one doesn't. The first one just has TestPage, because it's not in a `<title></title>`. … -
Replied To a Post in How to add to cart from search string in php
> still not add to cart <?Php $_SESSION['cart']=array(); // Declaring session array array_push($_SESSION['cart'],'flight_time'); // Items added to cart echo "Number of Items in the cart = ".sizeof($_SESSION['cart'])." "; ?> Does … -
Replied To a Post in How to add to cart from search string in php
> im still newbie to php Then I suggest following a simple shopping cart tutorial like [this one for instance](http://www.sanwebe.com/2013/06/creating-simple-shopping-cart-with-php/comment-page-1) and work your way up from there. It uses `mysqli` … -
Began Watching How to add to cart from search string in php
hi guys pls i need your help, im having some problem to add to cart from a search strings in php with the following code, what i want is if … -
Replied To a Post in How to add to cart from search string in php
The form has no action, so it's not sending anything anywhere. You'll need a page to act as "cart" and process/validate the selected flight there. Also, do not use the … -
Began Watching How Do I Display the Results of a Loop in JTextArea?
I'm a tad confused on a homework assignment. I'm supposed to write a program that displays a table of the Celsius temperatures 0 through 20 and their Fahrenheit equivalents. I … -
Replied To a Post in How Do I Display the Results of a Loop in JTextArea?
You're using `JOptionPane.showMessageDialog` inside the loop, which is why you'll get a lot of dialog windows. The `input` String you defined is not being filled, so it stays blank. Replace … -
Began Watching help please guys
hi everyone, i am doing a pizza ordering Gui. i am stuck on 2 things, i am trying to get the receipt string to store the items that are checked. … -
Replied To a Post in help please guys
Empty the receipt String at the beginning of the actionPerformed. Each order you run by all the checked items and, if checked, append their value to the already existing String. … -
Began Watching Using APACHE POI with Eclipse?
Hey, I am trying to make use of the apache POI in my Java project in Eclipse. I previously tried using jxl but what I wanted to do didn't seem … -
Replied To a Post in Using APACHE POI with Eclipse?
It's in the zip.  If you have a lot of different file types to work through, perhaps [Apache Tika](https://tika.apache.org/) is an alternate solution to your problem. It uses … -
Replied To a Post in why is this program not running properly
> matter of fact they were patient and helpful. If they were you wouldn't have had to ask again here. > i did declare it as stated and it was … -
Gave Reputation to diafol in order by more fields
Ok, I'm going around in circles here. Sorry asaidi, there seems to be a terminal communication breakdown. I shall leave you in the capable hands of other Daniweb members. -
Replied To a Post in why is this program not running properly
> thanks traevel for the help and insults. It wasn't an insult, it was meant to stimulate a little thought on your end as to **what** you were actually writing … -
Began Watching why is this program not running properly
trying for the longest while to get this program to run at least properly, havent finished entering all of the codes as, just testing each part of the statement before … -
Replied To a Post in why is this program not running properly
`if(Character.toUpperCase(inputChar) ==('F') || Character.toLowerCase(inputChar) ==('f'))` Are you the chairman of the Department of Redundancy Department? -
Began Watching how to carry id to the next page with table <td> tag
while ($row = mysql_fetch_array($retval, MYSQL_ASSOC)) { echo '<tr>'; echo '<td>' . $row['img_id'] . '</td>'; echo '<td>' . $row['picture'] . '</td>'; echo '<td>' . $row['category'] . '</td>'; echo '<td>' . $row['quantity'] … -
Replied To a Post in how to carry id to the next page with table <td> tag
Same as you did with the `<td>`'s. echo '<td><a class="btn btn-success" href="update.php?id='.$row['img_id'].'">Update</td>'; Also, don't use the **mysql** API, it's [deprecated](http://php.net/mysqlinfo.api.choosing). Go with **mysqli** or **PDO**. -
Began Watching Building a Game server using RESTful web services.
- Hi there. - I'm learning Distributed System and having an assignment of building a simple Game server using RESTful webservise. I'll use Java to build this server. And i … -
Replied To a Post in Building a Game server using RESTful web services.
HTML is not a protocol. Follow a [tutorial](http://www.vogella.com/tutorials/REST/article.html) on REST. Learn how web pages can interact with a REST API and start simple. -
Began Watching Language of choice for a Movie Database program
Hi, I want to learn either java, vb.net or web development. Also I want to create my own movie database. Question is what is the appropriate language to do a … -
Replied To a Post in Language of choice for a Movie Database program
Java has GUI's yes. > 1.) keep a list of all the movie available. In what? > 3.) On the program itself. Call VLC to play the movie. That's possible … -
Replied To a Post in PHP query doesn't updating the database
> Try to change it into like this follows: > > $result = $conn->mysql_query($sql); You're advising him to use mysql_query? Wow. Maybe [read](http://php.net/manual/en/function.mysql-query.php) up a little on PHP before you … -
Replied To a Post in jQuery and jQuery Mobile conflict
It looks good without it as well, scaling ok here. What was the feature you wanted to use jQuery mobile for, the sliding divs? -
Began Watching Ebay Database Design
Hello... Can anybody explain me Ebay or something like that database structur.Do All Item Categoris Store in One Table(with Differnt types)or do they story in many table .ex books for … -
Replied To a Post in Ebay Database Design
Well according to [this very interesting](http://www.addsimplicity.com/downloads/eBaySDForum2006-11-29.pdf) presentation their DBA's gave back in 2006 even at that time they had **26 billion** SQL executions **per day**, hundreds of coders keeping the … -
Replied To a Post in How to Bypass CAPTCHA/Spam filters (and Stop it!)
Well, disabling JavaScript for starters. But also altering your page through the browser, creating my own version of the page and having it send data to yours, or even bypassing … -
Began Watching How to Bypass CAPTCHA/Spam filters (and Stop it!)
OK, here's a question for anyone willing to step up and answer or point to solution: I have some HTML forms for site visitors to request product information. Some of … -
Replied To a Post in How to Bypass CAPTCHA/Spam filters (and Stop it!)
Any JavaScript validation is vulnerable. Use server side validation on all fields before allowing it. -
Replied To a Post in I need help in clarifying MySqli's prepare function on Select
I don't know what you mean. But if it works for you then use it in this way. Though I reckon the double printing comes from the loop-within-loop part. -
Replied To a Post in I need help in clarifying MySqli's prepare function on Select
I don't get the whole `Gender_Array` part. You store the results from the query in a multidimensional array only to retrieve it again in the same loop? And the rows_count? … -
Began Watching I need help in clarifying MySqli's prepare function on Select
-Suppose I have a table "User_Gender" with fields "idGender,Gender_Name" that has Genders stored in it as Male and Female. -And I have a Select Input Field on My say html.php: … -
Replied To a Post in I need help in clarifying MySqli's prepare function on Select
`$Query-bind_result` it needs a `->`, so `$Query->bind_result`. -
Began Watching Passing $POST values using JQuery Ajax Problem....
**Question:** I am new to JQuery. I wanna passing my values to another page using Jquery by clicking on 2nd button instead on submit button. I tried echo what values …
The End.