verruckt24 438 Posting Shark

01 - BHO - SearchDefault "http://www.search.com"

would be an acceptable line in something like a Hijack This Log. However, to a filter it would look no different to:

Buy Shoes Today - "www.ispamuswithshittyshoeadverts.com"

I don't get you.

Also we cannot be enforcing grammar (because I feel it would be too complex a task) but we could to some degree enforce proper punctuation marks, and I guess that's what the OP was mentioning.

verruckt24 438 Posting Shark

Also lots of threads start with a log/error message/link instead so any sort of filter wont work well.

Why do you think that a log/error message won't make it past the filter ? OR are you thinking that they are themselves written in so bad a langauge/ grammar ? Now C'mon

verruckt24 438 Posting Shark

I dislike that stat, mine still only says like 12 a day even though its like 50, because i didnt post at all for like a year or so at one point.

Maybe we should get it work out a different form of average than the mean?

So something like, if you did post that day, on average how many posts do you do on a day that you are online?

I don't like this solution for this. What if it's the other way round ? Suppose you did post a lot in the past but have been silent for a month or so, should your average still read how active you were a month ago and shouldn't it reveal the current condition then ?

I guess we should not read too much into it. Just consider it a nice little piece of information that gives a very broad average (overall) and nothing much.

Anyways we would not want to derive complex algorithms to tell you that a person has been posting like 25 posts/day for the past 7 days, like 13.97 posts/day for the past month, like 4.56 posts/day for the week before two weeks and has been contributing almost 10 posts/day for the past 6 months and etc, etc to just go and eventually figure out by ourselves whether he's gonna be posting any time soon which again would be just an estimation.

So something like, if you did post that day, on average how …

verruckt24 438 Posting Shark

I am quite late to react on this but better late than never. Okay I must admit I haven't liked all of the changes that have been brought up in the recent days. Barring a few like the new homepage which is customised for everyone and brings forums/threads that the member is most probable to visit to is a really good thing, also the new first line with the logged in username and information about PMs found my liking but the new profile page and the lesser information in the post information bar got me dissapointed.

The profile page was very well laid out before, with a bigger avatar (or atleast it seemed that way), information about posts-per-day, and the listing of teh forums to which the member has made most of his posts gave good information about a member. And it is required according to me, since it is important for members to know how frequently a member posts onto forums, which are the forums that find the most interest of a particular member. Since this information has been snipped out, there's no wa of knowing this. Also the current format which sequentially lays evrything out looks like more of a Q&A format, which, quite frankly, is a bit of boring to read.

Also the loss of information in the post title bar has my thumbs down, previously the post title bar was more of a quick-look into the most important details of a member profile, now …

verruckt24 438 Posting Shark

Dani, I guess s.o.s was pointing to the post by MidiMagic when he used '>', I don't think he was talking about '>' appearing in HTML code.

verruckt24 438 Posting Shark

The hasNext() method blocks waiting for user input, so the scanner always has a token to show up in hasNext and the while loop never actually terminates.

These are the lines from the Scanner docs: The next() and hasNext() methods and their primitive-type companion methods (such as nextInt() and hasNextInt()) first skip any input that matches the delimiter pattern, and then attempt to return the next token. Both hasNext and next methods may block waiting for further input. Whether a hasNext method blocks has no connection to whether or not its associated next method will block. What you could do is ask the user to input a specific pattern like 'exit' or 'quit' when he's done giving the input and then scan the input looking for this token.

verruckt24 438 Posting Shark

C'mon, help a brother out, here.

The brother isn't exactly sharing the problem with his brethren. So they are incapable to help him.

Salem commented: Share and enjoy - although it seems they shared somewhere else and left. +29
verruckt24 438 Posting Shark

AD : Yes I agree that the article doesn't have anything which would take us towards the conclusion that this was a racially based. What I meant was, that there was a comment for the article that mentioned that the behavioural traits of the police officer were typical of a racist. And that comment sounded alright for me.

verruckt24 438 Posting Shark

you are insisting that the incident was racially based? I didn't see that in the article, so you might be jumping to conclusions there

My sister emailed this to me, she is a doctoral student studying psychology, and this incident was raised in her class which focuses on: “The psychology of racism; signs and symptoms.” I think this pretty much fits the description head on - the power trip, the lack of sympathy, inability to exercise common sense and especially Powell's current inability to accept responsibility or to remotely learn from his mistakes from this incident.

This is an excerpt from one of the comments left for the article. And sounds alright for me.

It doesnt seem at all racially based

Simply, the guy ran a red light at speed, so the cop stopped him.

Hmmm... Okay let me ask you, would you say that if you were in the place Mr. Ryan Moats ? This doesn't sound anywhere near to being sympathetic towards someone who is having a loved one dying. I guess you need to show some warmth, people are yet to be entirely converted into robots that would enforce a rule with such disregard for compassion and humanity.

verruckt24 438 Posting Shark

Same passwords would not cause the root privileges to be given to the user. As privileges are given to user accounts and not to passwords.

2. Create users with 'Create user...' or 'Grant'

You can give the user account a password at the time of creating the user account. Read the CREATE USER syntax in MySQL documentation (MySQL Reference Manual) Or you could set the password with SET PASSWORD Read this in the documentation too. Or you could set the password with the GRANT command itself the command should be like this

GRANT SELECT, UPDATE, DELETE on database.tablename to user@host IDENTIFIED by 'password';

Here,
database - database on which to give permission to.
tablename - tablename on which to give permission to.
user - username
host - machine (localhost, domain-name or IP)
password - password that you want toassign to the user account.

Replace these values in the command as per your requirements. Read the GRANT command too in the docs.

verruckt24 438 Posting Shark

2) create a queue to keep track of the 10 available sections

Wouldn't you just want to allocate memory sequentially ? In that case you would not have to keep track of available locations just keep a pointer to the first available location. Then in the method that allocates memory take the number of locations as an input param and bump the pointer by those many positions. In the end return the initial position of the base pointer (before this chunk was allocated) to the calling method.

3) when you allocate one[space] take it off the queue
4) and return that base memory space... 0, 100, 200

These are taken care off automatically.

verruckt24 438 Posting Shark

Use a two dimensional array with 10 positions in the first dimension to hold the base values and 100 positions in each of the 10 base positions. The base values will then act as handles to the 100 positions based at that base position.

verruckt24 438 Posting Shark

To put some more light onto this:

What James and sillyboy are mentioning that when you say new Track();, the compiler looks for a default constructor, which means constructor with no parameters. But if you check your code you haven't defined any such constructor. The only constructor you have defined is the constructor that receives a whole list of params. What you need to do is put in a constructor/method like this:

public Track(){
    // the way you want the default construction of the object.
}

Now you might be getting confused why you are needing to provide such a type of constructor when you have written programs when you did not write such a constructor. The reason is again the constructor that you provide. What happens is when you do not provide a constructor Java by itself provides the default constructor also called the no-args constructor. But when you do provide a parametrized constructor then you yourself also would have to provide the default constructor ( that is if you want to allow the construction of your objects that way too) Java will not provide the default constructor in this case becuase when you provide a parameterized constructor, but not a default one, it assumes that you know what you are doing and if you aren't providing a default constructor that the way you want it. It assumes that you do not want your objects to initialized in that way.

verruckt24 438 Posting Shark

There are two while loops in your program and both are looking fine to me. Trace through your program putting debugging statements and check the values for i and digits.

verruckt24 438 Posting Shark

You can simply go to export option and there you can save data in required file format

Read the previous posts, a poster has already been adviced about this. And tell me how is he going to do this activity on a daily basis ?
Open the GUI program daily and do it ?

The previous poster was making the same mistake. Think for a while before posting stuff like this.

verruckt24 438 Posting Shark

The same way that you have made the original menu, you can make the sub menus. So that when the menu choice A is selected you show the sub-menus for A and same for B.

verruckt24 438 Posting Shark

C'mon now I said we would need the entire stack trace, line number, file etc. Also post the relevant code with that without which we ould have no clue whatsover.

verruckt24 438 Posting Shark

Oh? They posted a question. They want an answer. How are they supposed to know they should not expect an answer to their question?

Because they are posting a question pretending it to be an "answer" to the initial question, in the first place. Secondly as I have mentioned they are already informed through the notice that the threads' old enough and they should "perhaps" start a new thread. If they still persist with their instinct that they might get an answer let their instincts be proven wrong.

Let's stop supposing, shall we? Deal with reality, please...

I am saying here that if they are not smart enough even to read the dates and read some published announcements, their questions won't get answered thats all.

And the background of the coding forums say Use Code Tags. 80% of new posters don't. Why would one think an 'announcement' would help this situation?

Yes, and there's also an announcement about showing effort on your homework, no one follows it either, but the forum regulars make them follow it with their in-your-face and straight forward replies that they offer for anyone not showing effort. In the same way by not answering their questions (we would not be knowing they have posted anyways since the thread wouldn't be bumped) we would be giving them the right signal that the announcement on the top is not just to take up unwanted space but actually to be followed. now can't we do that ?

Comatose commented: Yup. FTW! +12
verruckt24 438 Posting Shark

Firstly you need to increment the variable 'f' or else all values are going to go to the index position of the array, since f is initially 0.

When you need to calculate the result for the values just loop through the arrays with

for(int i=0;i<f;i++){
     result[i]=Revenue[i] - Costs[i] - Salary[i]; 
}
verruckt24 438 Posting Shark

Try creating the menu and sub menus first, so that they correctly reflect what the description specifies. Once you have done this you could later on move to the calculation and output part.

Use the Scanner class to take user input.

verruckt24 438 Posting Shark

MySQL monitor - this is the command shell of MySQL that you are talking about isn't it ? Just to make sure we are on the same wavelength here.

Also have you already created the users or are you in the process of creating them.

Third, what command do you use to login ?

The actual procedure should be something like:
1. Login using the root user
2. Create users with 'Create user...' or 'Grant'
3. Logout of the shell.
4. Try to login with the given username/password.

verruckt24 438 Posting Shark

Print out the entire error trace for us here.

verruckt24 438 Posting Shark

Why do you think I would want to be in touch ? Anyways, I think we should stop posting onto this thread as it is old and we aren't really on topic.

verruckt24 438 Posting Shark

Read this thread.

verruckt24 438 Posting Shark

If you want to replace all the occurrences of the word take a look at the replaceAll method, else if you would just want to replace the first occurrence of it, use the replaceFirst method. If you still want to do something else, such as replace an occurrence of the word after an occurrence of something else, wellm I have sited here the docs for the String class you can have a look at all the methods it has to offer and decide which suits you best or you could use a few of them in combination to get the desired outcome.

verruckt24 438 Posting Shark

No, We are not hiring now anyways. ;)

stephen84s commented: lolzzz +7
verruckt24 438 Posting Shark

I need it I am also doing same project in java as my final year Project.

I don't know what this line suggests to you, but for a majority of the people here it suggests that YOU are the one looking for it.

VernonDozier commented: It certainly suggests that to me. +11
verruckt24 438 Posting Shark

How do you enter the MySQL shell/monitor ?
If you type just mysql and fire the command it will assume the default settings in the my.cnf (GNU Linux)/ my.ini (Windows) configuration file.

If there's something different that you are doing then specify it.

verruckt24 438 Posting Shark

Being in an IT solutions firm, I have seen a lot of so called computer engineers with near to no understanding of programming and what it is all about, whatsoever. I always used to get so amazed knowing this, thinking how somebody who has been trained in that particular subject for 4 years be like this. I owe a big thanks to you for clearing my amazement.

I hope you get it.

verruckt24 438 Posting Shark

You need to put the two abstract methods eat and move in the Animal class like :

public abstract void eat();
public abstract void move();

This is part of the "contract" of being an "Animal". Any object that "inherits" from Animal should implement these two behaviours. So in programmatic sense any class that extends the Animal class should provide a "specific" implementation of eating and moving, so in essence you should write the eat and move methods.

So instead of putting the System.our.println statements in the display method you could put them in the eat and move method individually and then in the display method give a call to these methods.

verruckt24 438 Posting Shark

@ClimaxBeetle: I appreciate your use of code tags in the very first post. But you haven't mentioned what your problem is, tell us why you have stuck.

verruckt24 438 Posting Shark

What does google have to say ?

verruckt24 438 Posting Shark

You are good at describing something. Now show us how good you are at coding.

verruckt24 438 Posting Shark

ComboBox will select only one item at the time and checkBoxes are used when user is allowed to select multiple items which contradicts the use of ComboBox.

I think the initiator needs to rethink about the use of checkbox in comboBox.

All this was already said. Read the previous posts before posting yours.

verruckt24 438 Posting Shark

The notice shows two warnings, and not errors as such. One, that your PHP Mysql library version is an older version than that used by MySQL server.

For this I suggest that you copy the libmysql.dll file in the MySQL bin directory into the PHP directory. The bin directory of MySQL will always have the most up-to-date version of libmysql.dll.

Two, the second warning (which is the about the root password) says that you haven't set a password for the root account of MySQL and it is a security hole which can make intrusions easy. And it really is that way. So change the default settings in your my.ini/my.cnf file to have a password set for root account.

verruckt24 438 Posting Shark

@karthik1983 : Read what the OP wants and try to understand it before posting stuff and

9894153527 call me if u any doubt

avoid this nonsense, if you have something to share, share it with all. It's just one of those forum's rules that you agreed to while registering as a member here.

verruckt24 438 Posting Shark

Instead of taking the lengthy route of a backup through a script, you could just as well use the 'SELECT...INTO OUTFILE' query to backup the data to a CSV file. You could put this command into a file and then use the crontab to run this daily. This would be much easier than writing a script.

verruckt24 438 Posting Shark

@VernonDozier : I appreciate the way you gave a +rep to someone who used code tags right from the first post, because thats really something rare to see. He deserved nothing short of it.

@madden88chw: There are some problems in your code here :

while (!date.equals("#"))
    {
    for (charCount = 0; charCount < date.length(); charCount++)
    {
      if (date.charAt(charCount) != "/")
      {
        if (date.charAt(charCount) < '0' || date.charAt(charCount) > '9')
          System.out.println("Incorrect input format");

If I have correctly understood the logic of your program here then, what you are doing is taking a date from the user then giving out the following date ( by adding 1 into the day value), you keep doing this for as many days as the user likes till he finally enters a '#' after encountering which you terminate. So basically your while loop should terminate just before the termination of the main method. But in the for loop here you are first comparing the date to be in the format that you require it to be, so you just run along the date string validating the values. So your for loop should be terminating after System.out.println("Incorrect input format"); So you are missing a '}' there.
Then the first if construct ( if (date.charAt(charCount) != "/") ) houses the second if construct ( if (date.charAt(charCount) < '0' || date.charAt(charCount) > '9') ) where you want to check whether the value, if not a '/', is a digit. So the first if construct too should …

verruckt24 438 Posting Shark

Java uses Unicode for internal character representation which is 2 bytes or 16 bit wide. So basically each character uses 2 bytes of memory.

verruckt24 438 Posting Shark

There is a code snippet in the java category producing a sierpinski triangle. Look at it if it provides any help.

verruckt24 438 Posting Shark
private JLabel celsiusLabel;
private JLabel fahrenheitLabel;
private JTextField tempTextField;
private JButton button1;

public static void main(String [] args){
    new CelsiusConverterGUI();
}
verruckt24 438 Posting Shark

First you did this "Daniweb NEEDS A SPAM FORUM " here not long after which I guess you were banned.

Then you say this :

Hello, I'm xgmx. I got banned from these forums a while back for breaking the rules. I believe I have changed since my ban and am now ready to rejoin the community. However, as you may or may not be aware, the decision is not up to me, it is up to the founder (and I am not the founder). So please forgive me and give me another chance, I won't let you down. I wish you long life and happiness. Thank you very much for hearing me out, I look forward to your replies and eventually rejoining the community.

Sincerely,
Kevin "xgmx" McDonald

Now you did this:

I've lived in the United States my entire life and have never been to any other countries before. However on Friday (March 20, 2009), I will be leaving the United States and going to Jonathanland (Jonathanland City, Region 1, Jonathanland). I am going there and am going stay with my uncle for a couple days (which is good, since I won't have to pay the taxes there if I am staying with him), he even gave me one of his two guest rooms. This is really exciting for me, it's my first visit to a country other than the United States. I will be returning to the United States on Saturday (March 21, …

verruckt24 438 Posting Shark

He isn't going anywhere, follow Ezzaral's links.

verruckt24 438 Posting Shark

Please disregard this topic.

Did you have to say this ? It was disregarded anyways when for three years nobody gave a damn.

verruckt24 438 Posting Shark

> few different ways
And what were they ?

>how you would incorporate a main method into this program?
By writing:

public static void main(String [] args)
verruckt24 438 Posting Shark

replaceFirst uses a regex, so you could form a regex such as 0+ which means one or more occurrences of zeroes and then have them replaced by "".

verruckt24 438 Posting Shark

Maybe the people cheated to pay their taxes, so with scarce funds maybe the govt. sponsored his education in parts so it took 9 years to get it done.

Why are people here so non-understanding.

verruckt24 438 Posting Shark

I don't think you should try to shorten this code. For the reason that a for loop might not be able to "exhibit" what exactly you are trying to achieve in the code which would make the code unreadable or atleast difficult to understand.
One of the many virtues of a good programmer are keeping it simple, writing code which is readable and easily understandable, in a way that the logic behind the implementation should flow freely in the reader's mind.
And it isn't a very long expression anyways, you do encounter such situations once a while. Yet if you are obssesed with making it short try renaming the caculation method to calc that would save you 84 keystrokes. ;)

verruckt24 438 Posting Shark

>And how often is that followed.
Yes I know it isn't followed often, more than often probably, but I have mentioned than what should happen to such post, in my post.

new members posting a question on an old thread isn't expected to get an answer anyways, he is supposed to be smart enough to check the dates and start a new thread.

and if he is posting an answer, well then we do have a possibility of losing it, but then think this way, there might be two kind of parties interested in knowing the answer, first, the OP, who since he's subscribed to the thread, by default, would receive a notification of the post (unless he has turned off the notifications) and can get to know of the answer posted and second, a new member, who might be searching for an answer to a similar query during that precise time when the thread got bumped (at made it to the top) and remained there, but the chances of this happening are real slim as you know. In other cases, assuming that the thread is marked a sage and posts to it don't bump it anymore, the new member would have to search for the thread as he would have to do it if there had been no recent posts to it.

verruckt24 438 Posting Shark

As comatose mentions, new members posting a question on an old thread isn't expected to get an answer anyways, he is supposed to be smart enough to check the dates and start a new thread. Also from the conversation on this thread (which I witnessed two days back too), old threads do host an announcement saying that "This thread is more than three months old - Perhaps start a new one."