Search Results

Showing results 1 to 40 of 771
Search took 0.04 seconds.
Search: Posts Made By: darkagn
Forum: Java 5 Hours Ago
Replies: 3
Views: 70
Posted By darkagn
Yes, that looks good to me. So let's look at what you need to do for your countOneLetter method. The method signature will look like this:

public int countOneLetter(File inputFile, char...
Forum: Java 5 Hours Ago
Replies: 2
Views: 37
Posted By darkagn
I believe it is possible to set a flag to generate javadoc for private/protected fields and methods. I think its -private or something like that. Google might be able to help you some more on that.
Forum: Java 5 Hours Ago
Replies: 1
Views: 58
Posted By darkagn
Hi alreem,

We can only help you if you show that you have made some sort of an attempt. Do you have an algorithm or some code that you have tried? We may be able to point you in the right...
Forum: Java 5 Hours Ago
Replies: 2
Views: 49
Posted By darkagn
I think if you remove the line

traverseInOrder.successor.predecessor = newNode

your algorithm will be correct. Remember, node.successor.predecessor should always equal node unless node is the...
Forum: Java 6 Hours Ago
Replies: 1
Views: 41
Posted By darkagn
Hi Ballen92 and welcome to DaniWeb :)

What's the error message you get? If I had to guess on the information you've given us, I would say that the method addKeyListener is not defined for your...
Forum: Java 21 Hours Ago
Replies: 3
Views: 70
Posted By darkagn
Sorry hedwards09, we can only give homework help to those that make an attempt first. Can you post what you have so far with the specific problems you are having? If you haven't started coding yet,...
Forum: PHP 1 Day Ago
Replies: 3
Views: 94
Posted By darkagn
Sorry for the late reply, I was at work and got distracted doing, well work :P Well your code looks ok to me, could it be that the problem lies in user_list.php with retrieving the $_GET["message"]...
Forum: PHP 2 Days Ago
Replies: 3
Views: 94
Posted By darkagn
Has your session started correctly before the call to your function? Check by echo'ing $_SESSION["Last_Page"] and make sure it's what you expect.

What error message do you generate?
Forum: Java 13 Days Ago
Replies: 1
Views: 252
Posted By darkagn
The line:

Criminal criminal = new Criminal(leftInput.name());

is trying to access the private variable leftInput which doesn't belong to your class. You only have access to the parameter e in...
Forum: Java 14 Days Ago
Replies: 1
Views: 143
Posted By darkagn
Hi bhoop and welcome to DaniWeb :)

There are tools out there that allow you to create an exe from a java application. However this defeats one of the main advantages of java, portability. You...
Forum: PHP 14 Days Ago
Replies: 2
Views: 161
Posted By darkagn
Try adding the following line to your script, anywhere after the line $dir = $documentroot . '/' . $username; but not inside the function:

rmdir_r($dir);

Basically, the code inside the function...
Forum: MySQL 16 Days Ago
Replies: 2
Views: 391
Posted By darkagn
You need to do this in two separate SQL queries. First, use a select statement to retrieve the location ID given the posted area. Then use this result as the location number when inserting to the...
Forum: Game Development 16 Days Ago
Replies: 3
Views: 277
Posted By darkagn
Hi erlene and welcome to DaniWeb :)

You have posted in the Game Development forum which is a forum for discussing game programming. I think you will have a better response from one of the tech...
Forum: Java 16 Days Ago
Replies: 1
Views: 131
Posted By darkagn
Your error message is telling you what has gone wrong with this line:

if (hours == 16 && minutes == 23)

Here you are trying to compare your variable hours which is a NumberDisplay object with...
Forum: Java 16 Days Ago
Replies: 1
Views: 109
Posted By darkagn
Hi intet,

We only give help to those who show some effort. What have you tried so far?
Forum: Java 18 Days Ago
Replies: 6
Views: 320
Posted By darkagn
Hi easyb and welcome to DaniWeb :)

You don't need to use Math.pow at all. Math.pow is used to find the power of a number. I wish that banks would pay interest exponentially but unfortunately... ;)...
Forum: MySQL 18 Days Ago
Replies: 1
Views: 306
Posted By darkagn
Hi Vikk and welcome to DaniWeb :)

Have you made an attempt at this query yet? If you post what you have done we might be able to see what you are trying to accomplish and give some pointers.
Forum: Computer Science 20 Days Ago
Replies: 6
Views: 299
Posted By darkagn
I studied scheme at university for a semester and I don't remember much besides lots and lots of brackets. Most of the problems I had with it all boiled down to the fact that I had unbalanced...
Forum: PHP 21 Days Ago
Replies: 1
Views: 145
Posted By darkagn
Hi raz0r and welcome to DanoWeb :)

Not sure exactly what you are trying to do, but the rand function will give you a random number. You can read more about the rand function here...
Forum: PHP 23 Days Ago
Replies: 2
Views: 222
Posted By darkagn
This section is commented out:

<?
$host="localhost"; // Host name
$username="root"; // Mysql username
$password="brijpuja1"; // Mysql password
$db_name="newsumo"; // Database name...
Forum: PHP 23 Days Ago
Replies: 6
Views: 484
Posted By darkagn
Hi catcoffee and welcome to DaniWeb :)

1) Can be achieved with a <input type='file'> in a PHP/HTML form. PHP then uses an array, $_POST, to retrieve all posted data and the $_FILE array to access...
Forum: MySQL 24 Days Ago
Replies: 1
Views: 313
Posted By darkagn
Try this:

$query2 = "SELECT tblclasslist.studentNo FROM acumenchain.tblclasslist JOIN acumenchain.tblregistration ON tblclasslist.studentNo = tblregistration.studentNo JOIN acumenchain.tbllogin ON...
Forum: MySQL 26 Days Ago
Replies: 3
Views: 316
Posted By darkagn
Not sure what DaniWeb's policy is, but for other forum-type sites that I have contributed to we kept all PM's, emails, forum posts in database tables. If the owner of the message deleted it (by...
Forum: PHP 27 Days Ago
Replies: 2
Views: 190
Posted By darkagn
From the PHP Documentation:

Try changing localhost to 127.0.0.1 and see if this fixes your problem. If not, try echo'ing mysql_error() instead of "fail" as this will give you more details as to...
Forum: PHP 27 Days Ago
Replies: 3
Views: 282
Posted By darkagn
Ok, so are you saying that your font doesn't work when you try to display text with PHP via an echo or print? How are you setting the font without using HTML or CSS?
Forum: Java 28 Days Ago
Replies: 2
Views: 258
Posted By darkagn
String number = Float.toString(number);

I think what you are trying to do is convert the number n to a string yes?

What I would do is this:

String number = new Float(n).toString();


Here...
Forum: Java 28 Days Ago
Replies: 3
Views: 169
Posted By darkagn
Your line:

while (i<=k)

is placed before k is properly initialised. I think you need a line inserted to receive the input that you are prompting for. That is similar to your line that reads:
...
Forum: Java 28 Days Ago
Replies: 2
Views: 265
Posted By darkagn
Hi ankiwalia and welcome to Daniweb :)

Your SQL syntax is incorrect. Instead of this:

String query="select username and password from Registeredusers";

Try this:

String query="select...
Forum: PHP 28 Days Ago
Replies: 104
Views: 2,839
Posted By darkagn
Lots of noobs have trouble connecting to a MySQL database and running queries, displaying results etc.

Another good tutorial might describe the differences between the popular browsers such as IE,...
Forum: PHP 28 Days Ago
Replies: 3
Views: 282
Posted By darkagn
What does EOT mean?
Forum: Geeks' Lounge 28 Days Ago
Replies: 31
Views: 1,425
Posted By darkagn
I remember when I was really young on the Apple II playing games like Taipan (which was a pirates / smuggling game) and Chivalry (where you were a knight who wandered the land and competed in...
Forum: Java 33 Days Ago
Replies: 5
Views: 286
Posted By darkagn
Somewhere in your code you are passing a null value when you can't. If I had to guess I would say your problem occurs somewhere near these lines of code:

URL url =...
Forum: Computer Science 33 Days Ago
Replies: 4
Views: 448
Posted By darkagn
1/2 is 0 remainder 1 because you have 0 whole divisions into 2. You are correct in saying that it is 0.5, but when doing a conversion between bases we deal only in whole numbers.
Forum: PHP Sep 19th, 2009
Replies: 2
Views: 302
Posted By darkagn
Hi surf and welcome to DaniWeb :)


echo '<option value=\"$key\">$value </option>\n';

This line is your problem. Swap all ' with " and vice versa. The problem is that $value is not evaluated...
Forum: PHP Sep 19th, 2009
Replies: 11
Views: 457
Posted By darkagn
Does a window open and the problem is that it is just blank? Or does no window open at all? Truly, I can't see what's wrong with your code, the syntax looks correct, maybe try echoing $row['id']...
Forum: PHP Sep 18th, 2009
Replies: 8
Views: 308
Posted By darkagn
Yes that's right. This might help:

$results = mysql_query("SELECT a.column1, a.column2, a.column3 FROM table1 as a");
while(($nextRow = mysql_fetch_assoc($results)) !== false)
{
...
Forum: PHP Sep 18th, 2009
Replies: 8
Views: 685
Posted By darkagn
For example, with CSV file format, each row of data is a row in the csv file and each column is separated by a comma. So what you need to do is this:

// let's say the report.php file has a table...
Forum: PHP Sep 17th, 2009
Replies: 8
Views: 685
Posted By darkagn
Ok, that's what I meant from providing an export facility. From your original description I thought maybe you meant you want to convert your php source code to html or something.

So, your function...
Forum: PHP Sep 17th, 2009
Replies: 6
Views: 258
Posted By darkagn
Have you tried the DOMDocument::getElementById() function? Can you post your coding attempt with the DOM parser please?
Forum: PHP Sep 17th, 2009
Replies: 8
Views: 308
Posted By darkagn
$results is a resource that can be used to grab an array using any of the mysql_fetch functions:

while(($nextRow = mysql_fetch_assoc($results)) !== false)
{
$column1 = $nextRow["column1"];
...
Showing results 1 to 40 of 771

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC