Nice, but cpanel has tools like this which do the same thing and much more.
hooknc commented: Thanks for catching my mistake. (b) +1
Nice, but cpanel has tools like this which do the same thing and much more.
Latex is simply a development environment, right?
Couldn't you just store the whole input into a string and then print it out with the answer?
jeni
Remember that java matches on object references so the reference to doneButton should be the name you gave to the button object when you made it.
Not really. There are two ways of doing this:
JButton doneButton = new JButton("Done");
if (ae.getSource() == doneButton)
{
}
or
if (ae.getActionCommand().equals("Done"))
{
}
You can compare the actual object itself, or the name of it.
I'd personally make something educational. Most everyone does games as their final, if not a chat application. The only problem with games, are the ones that can be done with a 1 person team usually aren't that great. The really nice games take math and logic not many people have.
I'm really sick of people asking for code.
It's still doing it. I'm really scared it might be server configuration.....Do you know how I would fix that?
Also, do you think it could be a problem with my ISP?
I think he wanted to extend the sound:
You are a:
L-o-o-o-o-o-o-ser.
I think that's what was meant, right J?
I've got the following code:
Code:
@mail($address, $title, $message , "From: ". $from . "\nContent-Type: text/plain; charset=utf-8");
Which sends a verification email to a registered user. The only problem is the email is considered bulk, and ends up in the bulk folder, or doesn't show up at all. I'm thinking this is a php problem, because I've tried using many different email addresses to send from.
Does anyone have any idea what's going on?
If you add the -source 1.4 flag you will NOT get 1.4 compatible classfiles. All that does is flag 5.0 only features as errors in the code, effectively ensuring whether it would compile using a 1.4 compiler.
You also need to add the -target 1.4 flag.
But remember that the 1.4 target flag still doesn't change the implementation details. If you remember right, I had a similar problem where I wanted 1.4 source code written in 1.5 to work on 1.4 JRE's, but it never did. You told me to try those flags, and from there we decided that the details were still different.
How many unuseful posts do you make every few weeks?
Actually, I'd say over the time I've been here, I've made 1441 unuseful posts.
Here's my 30 second solution:
boolean compareArrays(int* array[])
{
int start = array[0];
for (int i=1; i<arraylength; i++)
{
if (array[i] > start)
{
start = array[i];
}
else
{
return false;
}
}
return true;
}
I haven't tested it, so I don't even know if it works or not.
I don't celebrate halloween in any shape or form.
I make about 1 useful post every few weeks I guess.
Somehow this worked:
table, th, td { color: #ff0000; }
I had already tried:
th {color: #ffffff;}
So, I'm not sure what that worked.
I've got a lot of css in my page, but I can't seem to figure out how to change the table header, and table border colors....
I've tried this:
table.td { color: #ffffff}
table.th { color: #ffffff}
But that doesn't work.
Do you know how to fix this?
Since your using swing it's easy:
In the action performed method, just check which button was clicked and then add this line of code:
System.exit(0);
for example:
public void actionPerformed(ActionEvent ae)
{
if (ae.getSource() == doneButton)
{
System.exit(0);
}
}
Exactly. 1.5 is suppose to be backward compatible when you compile with the 1.4 source flag, but the JVM implementation is still different, which in turn causes the major/minor version error. I had this same problem a while back. I compiled the source in perfect 1.4 syntax, but it gave me the same error. I then tried to compile with the 1.4 -source flag, but that didn't help any. After that, I learned that the implemenation details were still different no matter what. Of course, if you use 1.5 syntax it definately won't work on 1.4 JVMs and JREs. It's weird since they call it backward compatible, but it's really not.
I'd like to remotely control a small car through wireless transmission by using the computer as my graduation project. I will draw the path of the car and the surrounding dimensions on the pc, and the path that i move on the pc will make the car move in the real path. I guess that i will need a good programming in c#, a wireless transmitter and reciever, and stepper motors to drive the car, what do u think? any ideas?
Thnx
Good luck on that.
That's different JVM implementations. You're getting the major/minor version error, because you might have compiled a project in 1.5 and trying to run it on 1.4.
I'm betting this is a compile error?
Your compiler can't find the class MyInput. Make sure that MyInput is in your classpath.
Regards,
Nate
Yep. You're using a third party class to read input. I'm guessing it's either came with a book, or your teacher supplied it. Either way you need to have it, because it's not normally in the java subset.
I'm having a tough time deciding. I think all contestants should post pictures in wet tshirts ;)
I don't want Narue stalking me.
I think you got it backwards.
compareTo() is used to compare Objects. It tests if THIS object is of the same type as the parameterized object. For instance,
String s = "t";
String s2 = "sdfsa";
s.compareTo(s2); ///would be true
.equals() compares the contents of the object. For instance,
String s = "t";
String s2 = "sfsdf";
s.equals(s2); // would return false.... "t" is not equal to "sdfdf"
What's the error you're recieveing, or what problem is occuring during runtime.
im busy with my program but am also tryin to imagine u with a personality..maybe you might be less boring once i get to know you, but i dont want to take that chance, bcz any friend of urs wud be a bad judge of character...but seriously though, i have come across rotten dog carcases that are less offensive to the senses than u r...maybe u wouldn't read like such a pathetic loser if u werent so dense that light bends around u...u know just my thoughts about u. u shudnt have gone about sayin idiotic stuff about my posts if u didnt want to help.
Uyo ear uipsdt.
Yes, I'm familiar with that area it is beautiful. We backpack a good bit.
Our company operates hostchart.com, resellerconnection.com, and foundhost.com 3 hosting recoursce websites.
How about yourself?
Best Regards,
Rodney
I'll give you the URL in about a week. I'm updating(new version looks really good) right now, and because the site looks terrible at this moment, I would rather wait!
From his own ramblings (rather than the stuff he copied word for word from his assignment, do they get those in electronic form nowadays?) it appears he needs some English language lessons first to understand the wording of the assignment...
And his reaction to people who tell him to show some effort show me he has some serious attitude problems as well.
I was thinking the same. Maybe he can try to get help from his teacher with the same attitude.
Oh, so this is a console game.... In that case I would get the length of the current letter, print out that number of "_" and whenever a user types in a letter, you compare it (Strings, use indexOf() to get the position) to the real word. Find the position of the letter, and print out the "_" except have a letter in the correct position of the "_".
Sorry if that sounds confusing.
You're no fun. You don't buy my explanation that 70,000 people registered, just to vote for Dave? :D
Is Dave the guy that likes the baby beaver things?
I don't get it. He so magestic that he walks through glass without breaking it, but can't go through a simple piece of paper without tearing it??????????
Thanks for the reply...
Ok, one more thing. If I have the forum database already going and really can't change anything in that, can I configure the tables for the blogs and chat since they haven't even been fooled with?
Also, is there a good tutorial that will show me some of the scripting and things I need to do?
Once again, thanks for the reply. I really do appreciate it.
Hey, I'm from hendersonville, NC!!!! That's about 2.5 - 3 hours away from Charlotte(right below asheville).
What's your companies name?
Use a StringTokenizer(). It's default pattern is the space character, so it reads in only the words. You can loop through in a while loop.
Where's your code???? Like three of us have been saying, YOU show effort and we will help.
I declare 'server crash' to be the winner.
Bow before me ugly people.
I figured it out. When he's un-tieing his shoes, that diverts the camera away from the window. That is when the action happens behind the scene. Oh well, I don't care what anyone says, it's fake.
He's doing something behind the scenes. Why is the piece of paper hiding what he's actually doing? How is this possible with no tools, just a body?
Read This and post what you've got so far. Sounds like a homework assignment to me, isn't the whole idea of going to school so that you can LEARN something? Nothing is easy the first time you do it.
Finally, a person who didn't do the homework for the person.
No.
Why did they put a piece of paper in front of what he's doing? How come he went in the other way where we couldn't see him do it?
r all u guys on here super java geniuses or just ppl lookin to bash on noobs! :D
It's obvious you want your homework done for you.
Have you even tried yet? I haven't seen any work..
Aaah, the Netherlands! Yes, he looks like he might be >12
He's not.
I know it's possible, but I'm not sure how. I need several services to use one database. For instance, I need blogs,chat, and a forum to share a database so that when you sign up at one place, you are automatically signed up at all of them.
why not me---amd_sucks??? is it because i dont like amd????
It's because you're black.
I have a javscript function which opens a url....The only thing is I need it to open pages with parameters, and I'm not sure how to do it:
<html>
<head>
<title>LinkOpener</title>
<script language="JavaScript">
<!--
function SearchTest(url, args)
{
// if args is null, do the following
window.open(url,'win1','width=600,height=700, status, toolbar, menubar, scrollbars, resizable')
// else
// implement your code
}
// -->
</script>
<body>
<h3>Search Test:</h3>
<a href="#wf" onClick="JavaScript:SearchTest('http://www.msn.com','')">GET request</a>
<br>
<a href="#wf" onClick="JavaScript:SearchTest('http://www.ntis.gov/search/results.asp?loc=3-0-0&search=',[B]'frm_qry_Category=ALL&frm_qry_Search=earth&frm_qry_Search=AND&frm_qry_Search=&frm_qry_Search=AND&frm_qry_Search=&frm_qry_Year=1990&frm_qry_MaxRec=100&frm_qry_Rank=1[/B]')">POST request</a>
</body>
</html>
If you can point me in the right direction or help me out in any way, I would really appreciate it.
Considering there are only 51000 members.....
Anyways, you need to clarify to everyone that Narue voted for me so they will stop thinking I voted for myself.
I'm trying to pass arguments to my program so that I can store them into an array. For some reason my IDE/compiler is treating the blank space in between arguments as an argument. I'm using bloodshed, but it doesn't say anything about a seperation character. Can anyone tell me what I'm doing wrong?
I'm doing something like this:
Bob Bill
that should be two parameters, but for some reason it returns three.
I've already tried that, it still gives me the error.
This also did not work:
system("del C:\main.cpp");
I've created, and written to a file. It lets me do all of that just fine, but when I try to delete the file it says that I do not have permission. Is there something wrong with my code?:
#include <cstdlib>
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
char fileName[80] = "C:\\main.cpp";
ofstream fout(fileName, ios::app);
fout << "At the end\n";
fout.close();
ifstream fin(fileName);
char ch;
while(fin.get(ch))
{
cout << ch;
}
if (remove(fileName) == -1)
{
perror("Error deleting file: ");
}
else
{
cout << "Successful";
}
system("PAUSE");
return(0);
}
I have checked to make sure the file isn't read only, which it's not.
Yeah, it sucks when you don't have many options. When only have one provider for broadband in my area, and it took then about 3 months to come out and dig a line for us, because there were no existing lines to feed from.(at least we got it though)
Ok, I think I see what you're having trouble with....You don't know what to do when it pasts the first test(first and last character are not @), but you're not sure how to check if it's somewhere in the middle....As soon as you find one you could return true:
if (int index = 1, index < strLength-1, index++)
{
if (emailValid[index].equals("@"))
{
return true;
}
else
{
if (index == strLength-2)
{
return false;
}
}
}
The second problem you have is using ==. This might work, but I'm not sure that it will. Since you are comparing string values(not string objects) you need to use the .equals() method.