sillyboy 43 Practically a Master Poster

I'm not sure it matters too much. Sure a database is probably a cleaner environment to use, but if it just for fun, who cares? Then again, it is probably worthwhile getting some experience coding /w databases too.

I would say try MySQL as is it free and widely used.

sillyboy 43 Practically a Master Poster

alk3, one of my favourite bands

sillyboy 43 Practically a Master Poster

I used to listen to Parkway so much.

Lately I have quietened down though, listening to The Get Up Kids.

sillyboy 43 Practically a Master Poster

seeing the content of the CD doesn't mean it is correct. is it auto-starting? because if it isn't there is probably an issue with the CD.

sillyboy 43 Practically a Master Poster

to be honest, it sounds like the cd you are using is not the ubuntu cd. if you load the cd while vista is booted normally, does it come up with the live cd menu?

by "hdd" i am referring to your hard disk, which is the process of regular boots (i.e. to the windows welcome, username / password) screen.

sillyboy 43 Practically a Master Poster

yep, my hp laptop (w/ ubuntu) behaves similarly. I just use the network manager to take care of the wireless enabling/disabling and don't bother with the switch.

sillyboy 43 Practically a Master Poster

what kind of devices? you may just need to install the drivers.

sillyboy 43 Practically a Master Poster

yeah, "add to panel" will retrieve anything you remove, please mark the thread as solved if it is.

sillyboy 43 Practically a Master Poster

is it even trying to boot from the CD? or does it go to your hdd straight away?

are your keystrokes actually registering?

I assume it is booting into vista, and not the vista setup (because that would mean you are using the wrong cd)...

Perhaps try different keys...

sillyboy 43 Practically a Master Poster

that method is going to involve a bit of thought, and i am not feeling quite up for thinking it out completely. i think at the moment you haven't quite accounted for having child nodes which are expressions ("+", "-", ...). another thing that looks wrong is your return statement. i might have another look later when i have a clearer head.

sillyboy 43 Practically a Master Poster

from a quick glance i'd say your contructor isn't trimming the whitespaces correctly

sillyboy 43 Practically a Master Poster

oh right now i see what you mean. it is similar to your exising recursion, just use different conditions. all you need to do is keep track of some counter.

sillyboy 43 Practically a Master Poster

why does it need to be int?

sillyboy 43 Practically a Master Poster

there is no such thing as javax.servlet.http.HttpSession.getAttribute()

sillyboy 43 Practically a Master Poster

i am not entirely sure what your issue is. what i gather is you having issues with "return on int", but you don't have to do you...

why not treat everything as a char? (assuming single digits)

sillyboy 43 Practically a Master Poster

are you getting compile or runtime errors?

if you are getting compile errors you are probably using static variables / methods in a non-static way or the other way around. just have a look at how you have defined each of your methods / variables.

the second block of code won't work because cur is always 0.

EDIT: by "cur is always 0" i am referring to the array position

sillyboy 43 Practically a Master Poster

databases shouldn't come into this.

i assume your data is in a form? and if so all you need to do is get the POST/GET data. the easiest way to do this is probably using something like PHP.

sillyboy 43 Practically a Master Poster

perhaps you are over-complicating this problem...

i suggest you look at the Class java.io.File, which should be a lot better than reading files from stdin (i have never even tried that).

adding your points, you seem to be over-complicating too. as long as you get each line at a time you will have x, y to satisfy your parameters.

good luck

sillyboy 43 Practically a Master Poster

why are you defining the label in TestDraw? if it is going onto the DrawPanel, why not add it to that instead?

sillyboy 43 Practically a Master Poster

first of all, please use code tags so your code is readable. you should also try and post relevant sections of your code.

http://java.sun.com/j2se/1.5.0/docs/api/java/util/InputMismatchException.html

which indicates the usage of your scanner is probably wrong somewhere.

sillyboy 43 Practically a Master Poster

Been listening to a lot of morrissey and the smiths lately

sillyboy 43 Practically a Master Poster

there are a lot of duplicated values (e.g. classid). perhaps making these unique between the 2 objects will help...

sillyboy 43 Practically a Master Poster

surely there is more to it than that... you haven't defined any of the functions.

also, use code tags.

sillyboy 43 Practically a Master Poster

as long as "field_names", "tablename", and "condition" are variables... well they are variable.

sillyboy 43 Practically a Master Poster

last.fm radio

sillyboy 43 Practically a Master Poster

well done, best to mark your thread as solved if it is.

sillyboy 43 Practically a Master Poster

I suggest googling this, it's a very specific question, unless somebody has that same device.

sillyboy 43 Practically a Master Poster

this link won't help with the GUI, but you should be able to see all the files through terminal: http://www.knoppix.net/wiki/Root

I remember I used to login as root on ubuntu, I think if you set the pwd you can then just logout/login (as root). But not sure if this is possible through live cd.

sillyboy 43 Practically a Master Poster

Listened to Mineral most of today.

sillyboy 43 Practically a Master Poster

for resizing an image: http://www.velocityreviews.com/forums/t126229-resize-imagejpg-problem.html

your other issue, i believe it is because there is no repaint occuring until your maximise forces one.

sillyboy 43 Practically a Master Poster

add conditions to if plusminus == 0 block and it should work...

sillyboy 43 Practically a Master Poster

like i said, you were going to run into this issue. look for the longer numbers first since they are harder to satisfy. make sure you use if / else if so that multiple conditions aren't met in the same the loop. alternatively, yes "continue" could be something you would like to use, but not necessary here. if you only want to display each comparison once you are going to need to keep tract of which have already been found.

sillyboy 43 Practically a Master Poster

if you are using == you are going to need to trim the decimal places down regardless. just make sure you do comparisons in an order that ensure you get what you want.

e.g. 3.1415024
2 decimals = 3.14
4 decimals = 3.1415

do you see how issues could arise with the code you currently have?

sillyboy 43 Practically a Master Poster

perhaps this link will be of some assisstance: http://forums.sun.com/thread.jspa?threadID=475442

sorry I a bit out of it, and can't be bothered looking too hard. that post should give you the answer though.

sillyboy 43 Practically a Master Poster
public static void main(String[] args) {
        int count = 1;
        double plusminus = 0;
        double top = 4;
        double bot = 1;
        double pi = 4;
        double piequals = top/bot;
        
        while(plusminus == 0 || plusminus == 1){
        	if (plusminus == 0){
                    piequals = top /(bot+(count*2));
                    pi = pi - piequals;
                    plusminus = plusminus + 1;
                    if (pi == 3.14){
                        System.out.println("p = 3.14?");
                        System.out.printf("This took " + count + "times\n");
                    }
                    if (pi == 3.141){
                        System.out.println("p = 3.141?");
                        System.out.printf("This took " + count + "times\n");
                    }
                    if (pi == 3.1415){
                        System.out.println("p = 3.1415?");
                        System.out.printf("This took " + count + "times\n");
                    }
                    if (pi == 3.14159){
                        System.out.println("p = 3.14159?");
                        System.out.printf("This took " + count + "times\n");
                        break;
                    }
                    else {
                        System.out.println("p = " + pi);
                    }
                }
        	else if (plusminus == 1){
                    piequals = top/(bot+(count*2));
                    pi = pi + piequals;
                    plusminus = plusminus - 1;
                    
                    if (pi == 3.14){
                        System.out.println("p = 3.14?");
                        System.out.printf("This took " + count + "times\n");
                    }
                    if (pi == 3.141){
                        System.out.println("p = 3.141?");
                        System.out.printf("This took " + count + "times\n");
                    }
                    if (pi == 3.1415){
                        System.out.println("p = 3.1415?");
                        System.out.printf("This took " + count + "times\n");
                    }
                    if (pi == 3.14159){
                        System.out.println("p = 3.14159?");
                        System.out.printf("This took " + count + "times\n");
                        break;
                    }
                    else {
                        System.out.println("p = " + pi);
                    }
                }
                count++;
        }        
    }
sillyboy 43 Practically a Master Poster

you have already answered your question yourself. you are using a "counter" and so using this you can emulate the sequence.

sillyboy 43 Practically a Master Poster

that is recalculating "pi" not "piequals". look at the mathematical sequence, you should see what is happening...

sillyboy 43 Practically a Master Poster

ok, i am not entirely sure what approach you taking for this problem, but it seems a bit iffy so far. do you actually want an infinite loop? (i would have though not...)

anyway, the maths needs to be calculated for each iteration of the loop, however you decide to define it. you need to be re-calculating piequals each time, and using the new value for your addition / subtraction.

i was initially confused by your 2 conditions but now i realise this is your odd/even separation (there are probably better ways to do this, but it'll work, lol).

why do you have all the conditional statements for pi?

anyway hope that gives you a start.

sillyboy 43 Practically a Master Poster

you have infinite loop because you are checking for plusminus == 0 or 1. when the value is 0, you add 1, when the value is 1 you subtract 1, therefore the condition is always satisfied.

your for loop is commented out, you are actually using a while loop.

sillyboy 43 Practically a Master Poster

It is going to differ depending on your wireless device. On my laptop, the wireless worked straight away (Ubuntu 8.10).

sillyboy 43 Practically a Master Poster

why is JSP middleware? JSP should be used on your front-end... to get the database connection, just get the driver .jar

sillyboy 43 Practically a Master Poster

you need to associate your names with the files they came from. currently you are only keeping track of the names and adding them to your arraylist.

sillyboy 43 Practically a Master Poster
String f=found.toString();

f is a String representation of found which is already a String. There is no reference to any files I can see.

sillyboy 43 Practically a Master Poster

Sigur Ros - Hoppipolla

sillyboy 43 Practically a Master Poster

have you got database drivers? you will most likely need to import some library which is going to include the drivers, you will then create a connection to the database. only after this will you be able to query the database.

sillyboy 43 Practically a Master Poster

no worries, let us know if you run into any issues.

sillyboy 43 Practically a Master Poster

not necessarily, your syntax looks like you are trying to create a complete array using {}. but, you are using nextInt, which is only 1 token, so you are only going to get 1 int value. using that syntax is possible, but you need to create the whole array at once. alternatively you should use a for loop as BestJewSinceJC suggested and populate the array 1-by-1.

good luck

sillyboy 43 Practically a Master Poster

have you changed broswer? i remember ther are browser considerations you need to be aware of when using AJAX.

sillyboy 43 Practically a Master Poster

"I'm having the most trouble with find the largest number"

do you ever get more than 1 number in your array? i am not sure how you expect to populate your array without a loop.

sillyboy 43 Practically a Master Poster

from what i've read you already have fedora installed? is there some reason this doesn't satisfy your requirements?