have you tried other programs?
my guess would be you are hitting a limit, it may be software or hardware. obviously if it is a limit in your hardware (memory), there is not much you can do, unless you can get it onto another computer.
have you tried other programs?
my guess would be you are hitting a limit, it may be software or hardware. obviously if it is a limit in your hardware (memory), there is not much you can do, unless you can get it onto another computer.
so what crash applies if you are willing to move to a different distro. if you want to stick to your distro, you should look into finding out the actual device, not the laptop model.
generally there isn't going to be a batch download for a model with linux, instead it will install whatever it can find at install time. after that you will need to look yourself. so find out the devices, and search on the openSUSE forums.
Ok, but which connection is the Internet connected to?
It should be a virtual box option, you should be able to select network devices for the guest.
how does your host computer connect to the internet? ethernet or wireless?
what i assume is that it uses wireless, and if so you need to make sure the guest machine has access to the wireless card.
it looks like it is complaining because the getSource is getting a javax.swing.JMenuItem, yet you are trying to use it as a JButton instead.
the code you currently have is trying to construct a test object, but test is simply a method you call. therefore, you can simply say
x = test();
, furthermore when you are printing the result, is it simply
x
i know of Netbeans Desktop application but it generates horrible code.
if you think this is so, you should code yourself, because these tools need to accomodate many variations and so the code become "horrible".
assuming this is desktop edition, there should be an eject icon next to the device in the file explorer (can't remember what it is called). whenever i used my portable hdd with ubuntu 9.04 i used this, and it hasn't lost data.
hope that helps.
you could try eclipse, with some plug-in if you want a fully featured IDE.
what i do personally, is usually use it notepad++, which provides basic syntax highlighting. in a learning process there is nothing better than actually making use of the references and not relying on auto-complete.
I am worried when you say "their files", and "all over the world". If you are talking about files/database on some server then I would agree, but if you are talking about files on a client computer, then definitely not.
it's ususally the simple "bugs/fixes" that are the hardest to see because they are simply overlooked. good luck with the GUI, unfortunately i haven't dealt with python GUIs before, but i'm sure somebody around here will be able to help.
just move the entry/start point of your game into a function, and then at the end of that function (even after) you can give the use the option to "play again".
I hope that is supposed to be:
FileInputStream fileHandler = new FileInputStream("myfile.fil");
furthermore, that constructor should not be throwing any IOExceptions, do you have more code or the rest of the exception stack trace?
windows isn't going to show the hdd if it isn't fat / ntfs. and perhaps dreamlinux is using a format not known to pclinuxos too.
well a map is going to associate a key with a value, so if you set your keys to your planet names and the values to your objects (planets), you can retrieve them based on the name (key).
what are you trying to do?
input.moons would mean you are trying to get the moons of a string...
while installing vista, i believe there is going to be little you can do. After you have installed vista, you want to try and re-enable GRUB to handle boots. There are forums around this topic and apparently a SuperGRUB CD which might be something easier to use.
it depends on your code, but as long as you use a compiler for xp / linux you should get your code to run on either with minimal changes.
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.
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.
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...
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
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
well done, best to mark your thread as solved if it is.
add conditions to if plusminus == 0 block and it should work...
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.
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?
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.
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++;
}
}
you have already answered your question yourself. you are using a "counter" and so using this you can emulate the sequence.
that is recalculating "pi" not "piequals". look at the mathematical sequence, you should see what is happening...
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.
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.
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.
from what i've read you already have fedora installed? is there some reason this doesn't satisfy your requirements?
as long as you have your bootloader configured correctly it should detect all OSs fine. i am no expert on this, so i wouldn't know how you would go about this specifically, but i would nearly assume belinix would simply add to an existing grub install.
perhaps somebody can confirm / deny this?
you only want to execute the calculations if you have finished receiving user inputs, currently you are doing them as you get the inputs. you want to break out of the loop after the user has finished inputting values. your calculations should be outside the loop and only be executed at the end.
did you even read my question?
if you "break" you are going to skip the calculations. does the calculation need to be in the loop?
you need to somehow "remember" values from previous iterations of the while loop. so if you have a MAX number of iterations you could use an array, but perhaps it would be easiest to use a vector instead. you should also consider an exit clause to the loop.
ah yes, forgot about that, definitely needs to be considered...
I personally use ubuntu. There should be tools in xp and fedora which would allow you to partition your hard disk. It should also be possible while installing Belinix.
In my case, I had my HDD with only vista running. I reduced the size of the partition and installed ubuntu on the unallocated space.
if you write the code, it belongs to you. you can choose licensing on what you have written.
ok, well from my understanding you want to set the value of hidden1, hidden2 depending on which submit button is pressed. you already have the onclick event, so inside the event you want to execute some javascript which will populate the values for you.
e.g. onclick=setValues()
if you do this, you obviously need a corresponding function setValues defined, which should do something like i posted in my preview reply.
does that make more sense?
you don't need to insert any hidden fields as such, just set the value. if this is to be filled when you submit the form, then make use of the onclick event and set the element (your input field) value.
e.g. document.getElementById().value = "blah"
Don't just copy and paste the code, it's just there to give you the idea.
what are your inputs?
you do realise you have 2 while loops to satisfy?
the "easiest" way is probably to download an IDE like eclipse since it has good support for common Java practices (e.g. autocomplete). BUT I wouldn't necessarily say it is the best way to learn Java. if you are to get the best out of it, I would recommend downloading the Java JDK and trying to compile / run code through the command-line interface.
sure by declaring it as a String won't "start it out as an int".
i am pretty sure you got that backwards there stephen.
"For example I would enter 12345 and 1 2 3 4 5 would be returned."