BestJewSinceJC 700 Posting Maven

Ok .. so as you read in items, populate them into a list. But before putting an item in the list, check to see if it is already in the list. If it is, do nothing. Why do you need a hash for that?

BestJewSinceJC 700 Posting Maven

Ancient Dragon wasn't trying to be rude, just point out the distinction since in your previous post it seems like you didn't understand. Either way, as I said, there have been a large number of posts about mobile development, but if there was a forum for it, it would not have good traffic. The questions about mobile development only get posted a few times a month.

BestJewSinceJC 700 Posting Maven

Plenty of people have posted various questions in the Java forum about developing for mobile devices .. Peter Budo usually answers those questions. But I do think it is a bit too specific for Daniweb. Those kinds of devices usually have their own communities dedicated to questions about development.

BestJewSinceJC 700 Posting Maven

You need one more closing bracket; you have more opening brackets than closing right now. Put another closing bracket after line 53.

BestJewSinceJC 700 Posting Maven

There's a button I'm seeing that isn't listed in the legend. If you look at two of the posts with 0 replies in the attachment, you see that one of them has the 'New' button (although I don't know why it does, since according to the legend, it shouldn't?) but the other has a different button.

edit: Actually nvm, the legend makes sense, I must have read it wrong. And it makes sense logically, cuz a thread with only 1 post in it has to be a new thread if I haven't look at it yet. :p

BestJewSinceJC 700 Posting Maven

Btw Dani, something that would be really nice is if the links at the bottom had a way for you to use them within only a particular forum. For example, it'd be great if I was in the Java forum and I clicked 'unanswered threads' and only threads within the java forum showed up. Ditto for 'threads I've posted in', 'Today's posts' and 'Threads I've started'.

Ancient Dragon commented: Agree +0
BestJewSinceJC 700 Posting Maven

Sorry. Normally I would have noticed your sarcasm, but my entire mind is filled with frustration right now, so I can't process any other emotions or thoughts.

BestJewSinceJC 700 Posting Maven

Ok, so now instead of saying See Post #5 we can say See Post #post1221433.

And where did the Quote link go??? I'm using IE8 and don't see any way to quote someone.

But how does that help me find the post? I don't know how to find post 1221433. Maybe I'm dumb and there is something totally intuitive about this system, but it seems like the only way to use it is to search through the posts, highlighting the "permalink" button on each one, until I find 1221433. Oh, btw, I actually just tried to do that, but 1221433 is a long number, and I forgot the number almost as soon as I started looking for the post.

BestJewSinceJC 700 Posting Maven

Ok so, this is a test guys. I completely get what Dani was saying in this post, and she has a point, but there is no denying that my point in my previous post was totally sweet. Anyway, I understand the trade-off being done here, but I think it ultimately is going to lead to people saying things like "In XXX's second post in this thread" rather than having the effect Dani wants.

BestJewSinceJC 700 Posting Maven

The post count # was removed because I don't want people referencing things like "Check out post number 5" because moderators see deleted posts, and posts can be split/merged, etc. so a post that is #5 today might not always be #5. Especially if individual posts in a thread get deleted.

Maybe I misunderstand the permalink thing, but the idea is that if I put the link that the permalink shows into my post, then when someone clicks on it, they will know what post I'm referencing? But without clicking it, the person has no way of knowing what post is being referenced?

If so, I don't like that solution because the entire point was that saying "look at post 5" was easy for the person saying it and for the person looking at it to decide whether they wanted to go back and look or not (or to ignore it if the comment wasn't directed at them).

BestJewSinceJC 700 Posting Maven

Don't use hashcode to imply equality(). You can read the hashCode() method documentation here, it explains how what you've said is not a guarantee. Besides, if you don't care about logical equality (i.e. the equals() method) and all you care about is whether or not the Objects are in the same memory location, you can just use '==' for comparison in that case.

Edit: Sorry s.o.s, posted at the same time. OP: I agree with s.o.s that you should provide some context.

BestJewSinceJC 700 Posting Maven

It means you referenced (attempted to call a method on) a variable that was never initialized (it is null because you never used the new keyword to create a new Object in that variable). Beyond that, post using code tags. The # button produces code tags.

BestJewSinceJC 700 Posting Maven

I think Dani has made up her mind on the quotes (since she had said as much) but I just wanted to bring up one more point. I just searched on google and was brought to this thread .. do you see the issue here? All of the old posts on this site now have the "rollover to view" style quotes, which is quite infuriating. Ugh... 0/10 for usability.

BestJewSinceJC 700 Posting Maven

Since "reset" is not a constructor, you must define it as returning void if you do not want it to return anything.
It's referring to line 35 where you say "public reset(int numCols, int numRows)" which is not a valid method declaration. Your other method declaration of reset is perfectly fine, so get rid of the first one.

BestJewSinceJC 700 Posting Maven

Camdaddy,

Don't be so offended, I don't know you, I've only seen one post from you on the forum and it was asking for other people to solve an assignment for you. Regardless of your motives, the reason for my assumption is pretty obvious. My assumption was apparently incorrect, and you've cleared it up. Leave it at that.

:)

BestJewSinceJC 700 Posting Maven

This should have been posted using a normal thread. Only working example code should be posted as code snippets.

BestJewSinceJC 700 Posting Maven

My first guess would be because that code is JQuery and this is the Java forum, whereas JQuery is written in Javascript.

BestJewSinceJC 700 Posting Maven

if you will notice the due date on the image said march 3 and since apparently your so intelligent I shouldn't have to tell you that it's may 13th, longafter the due date.

So what? I've had professors decide to extend my projects plenty of times. I apologize for the short fuse, but be sure to read the rules in the future, since what you posted would be considered homework. I shouldn't have to tell you how many times we've heard the same sorts of things... there is no way to distinguish your motive, so we have one steadfast rule that help and examples will be given but exact code will not. Pretty self-explanatory.

BestJewSinceJC 700 Posting Maven

Yeah; it's actually better than it was on the old layout because it now says "question answered"? so newbies will actually know what 'mark as solved' means.

BestJewSinceJC 700 Posting Maven

This is normally how new changes are rolled out on Daniweb. The new features which need to be introduced are made live, feedback is collected from regulars, changes are made to the site, rinse and repeat.

The problem isn't the new features. It is the lack of old features and the feel that the release was done in haste. For example, why was the site rolled out without the badges available? Why weren't the solved threads displayed next to a members name? Why didn't each post have a post number? Why does it seem so much harder to navigate the site, and why are less important features accentuated while others are hard to find? For example, it is hard to find the forum listing of all the forums, but on the homepage, there is a huge listing of "Recommended Forums". Why do I even need this recommendation? I've been a member here for two years, so shouldn't there be something more useful displayed to me on the homepage? Even if the recommended forums were helpful, why do they take up so much of the homepage - shouldn't they be a "side suggestion"?

IMHO, life is too short to be making people unhappy. I'd rather not post anything in the programming forums than post some real cool answer which starts with "Hey, you know what? Your code *stinks* and so do you. Muahahaha".

But very few people here are treating Dani with this type of attitude. Sure, many, including myself, …

BestJewSinceJC 700 Posting Maven

Agreed - I'm pretty sure Applets use the init method to start, not main. Your "Applet" also contains standard Java code that would print to the console, whereas it should get input via a GUI.

And use JApplet not Applet
http://java.sun.com/docs/books/tutorial/uiswing/components/applet.html

BestJewSinceJC 700 Posting Maven

This is incredibly insulting. Do you honestly think we are this stupid? Please, do yourself a favor and don't post here again.

Also, regardless of my level of rust, I'm sure I could handle this joke of a program. You seriously can't do it yourself?

camdaddy09 commented: rude +0
Nick Evan commented: Rude? Nah.True? Yup. +12
BestJewSinceJC 700 Posting Maven

Humans only have a small understanding of why humans have the capacity to think, so why people always argue so strongly about artificial intelligence is beyond me. Maybe I have no education on the subject, but it seems to me that any "thinking" being done would involve a series of probabilities and choices, and an assignment of importance to certain information over other information - and however complex that is, it does not constitute thinking, IMO. Since the people who study the human brain have such a minute understanding of how it works, how can software duplicate a process that is much more complex than our current knowledge can comprehend?

BestJewSinceJC 700 Posting Maven

One more thing, the " Quote originally posted by Paul Thompson ... " seems awkward for some reason. Maybe nobody else thinks so, but I think it should be changed to "Originally posted by Paul Thompson ... "

If it was originally posted by someone, then it is obviously a quote, so the above statement is redundant.

lllllIllIlllI commented: wow, havent seen my name in a post that much ever :P +0
BestJewSinceJC 700 Posting Maven

Easy, click the "Permalink" see this feature makes more sense. I didn't realise the post number was a link for about 6 months, but people can easily know that permalink means exactly that.

When I first came to daniweb, all information that I cared about (like everything vb5 has mentioned in this thread) was easy to access and easy to see. I've had more questions about how the layout works in the last few days than I had in the last 2 years on the old layout. Again, this may just be because Dani is busy fixing things still.. but as vb5 said, the permalink thing is counter-intuitive and more difficult than simply looking at a post number which is attached to the post.

BestJewSinceJC 700 Posting Maven

She has already heard this feedback but yeah, it is pretty much 100% consensus that some items are too large and some are too small.

BestJewSinceJC 700 Posting Maven

I don't understand the algorithm you just posted.. do you need Java help or just help with your algorithm, or both? If you only need help with the algorithm then 'Computer Science' would be a better forum for this question IMO. Either way, if nobody else replies soon, maybe you should try rephrasing your question or explaining it differently.

BestJewSinceJC 700 Posting Maven

"this" refers to whatever Object called the method you are currently in. If the method that you are currently in is a constructor method, then "this" refers to the Object that you are creating.

BestJewSinceJC 700 Posting Maven
Your code goes here


Do that. Clicking the "#" button will do it automatically for you.

BestJewSinceJC 700 Posting Maven
public class ContinueTest {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args)
    {
        for(int count =1; count <= 10; count ++)
        {
           if(count != 5)
              System.out.printf("%d", count);
        }
      System.out.println("\nUsed  continue to skip printing 5");
    }

}

..

You can also use System.out.print(count); rather than using printf.

BestJewSinceJC 700 Posting Maven

Just to put in one more comment:

At first glance, the site looks nice. It loads faster than it did before and there are neat things here and there like the menus and some improvements (I've already gotten used to the post layout within a thread, for example). But in the forums, it isn't usable. The large fonts in the Java forum, for example, are driving me crazy. It is too hard to tell what threads I haven't responded to, what threads I have responded to that have new posts since my last response. And a quick glance over the forum threads does not give me an idea of how many people need help or how many new threads have been posted recently.

BestJewSinceJC 700 Posting Maven

The idea behind this is that if you're just directly quoting another post, it gets hidden by default, because it adds no new value to your post.

And again, since nobody has responded to my complaint: if it "adds no new value to your post", why not disallow its use altogether? It would seem that you have just stated that your feature is useless, yet you refuse to get rid of it: a contradiction.

BestJewSinceJC 700 Posting Maven

It has no code tags.

BestJewSinceJC 700 Posting Maven
import java.util.Scanner;
import java.util.InputMismatchException;

public class TourPrices
{
   public static void main(String args[])
   {

   Scanner scan = new Scanner(System.in);
   int tourPrice = 0;
   boolean ok = false;

   do
   {
      try
      {
         System.out.println("Enter a score");
         tourPrice = scan.nextInt();
         if(tourPrice >= 29.95 && tourPrice <= 249.99)
         ok = true;
      }
      catch(InputMismatchException e)
      {
	    scan.nextLine();
       }
   }
   while(!ok);
      System.out.println("The valid price is " + tourPrice);

   }	
}

...

BestJewSinceJC 700 Posting Maven

Is this really about kids being banned from playing games? Or is it about regulating which games can and cannot be sold in the U.S.? I could care less what games kids can buy. And their parents can buy the games for them, if they so choose.

BestJewSinceJC 700 Posting Maven

stuff, stuff, stuff, stuff

Testing it out. If it is that easy then I'll get used to it as well. But I still think that click to show and hide is better.

BestJewSinceJC 700 Posting Maven

I would go back to having the old style that when you clicked on a whole category it gave you ALL of the forums in that category in a list...

If you still wanted to implement this new feature that shows all of the recent posts from that category then just display them underneath.. I just think we need a way to make it obvious that you are in a category not a forum otherwise these kind of threads are going to be made every three or four days

:)

Yeah I think you hit the nail on the head. That's exactly why I got confused. On the old layout I never got confused about it, even the first time I went into those forums.

BestJewSinceJC 700 Posting Maven

Hmm, well I was thinking about it and I think it might just be that the large & bold 'DaniWeb Community Feedback Discussion Thread' words draw attention away from the smaller and lighter colored mark solved button. The words 'daniweb community feedback' are redundant, since I already know what forum I'm in and it says above the thread as well. Perhaps make the text at the top a tiny bit bigger, and instead of putting

'DaniWeb Community Feedback Discussion Thread', 'Unsolved (Mark Solved)'

change it to 'Daniweb community feedback: Thread title', and get rid of the huge thread title within the first post.

Just a suggestion.

BestJewSinceJC 700 Posting Maven

Why are there ads visible next to the first post within a thread? I don't want to click expand post to get rid of it. I want it to not be there at all, it is distracting. And for threads where that is the only post, it causes the "post reply" box to be off-center.

On a good note, I think the 'view reputation comments' button is in a much better place now, it works better, and it doesn't cover up the entire post. And the process of giving reputation to someone makes more sense since it is more closely tied in with the up and down voting system.

BestJewSinceJC 700 Posting Maven
BestJewSinceJC 700 Posting Maven

On the old layout, the Mark as Solved button was easy to find and new members, and even some with nearly 200 posts, still rarely used it. Now it is, IMO, much too small. I knew the button would be somewhere and it still took me awhile to find. New members will never notice it where it is on this layout.

jephthah commented: good point +0
BestJewSinceJC 700 Posting Maven

Well, I still cannot figure out why the patch refuses to take the unistd_32.h file into account, which contains the #defines for my custom system calls. Since my user programs use my system calls, it then causes the compilation process of my .c files to fail. I found a workaround with the help of my TA where instead of "__NR_customSysCall" in my C file, I just put the number of the #define. This allows my code to compile. Unfortunately it still doesn't make sense why the unistd_32.h doesn't get included.

Since I found a workaround, albeit a crappy one, I'll mark this solved.

BestJewSinceJC 700 Posting Maven

It's legal to overload any method anywhere, but it probably won't do what you want. What you're supposed to do is override the run method. See here

BestJewSinceJC 700 Posting Maven

Can you please post a minimal example of what you are doing? Calling dispose() as you know should only dispose of the component you call it on and that component's child components and sub-components, AFAIK.

BestJewSinceJC 700 Posting Maven

Most quotes are of an entire post, which you've just read

Says who? I see people like WaltP post "short quotes" all the time, and these are by far the most useful. I very rarely see entire posts quoted. Where do you get this info from? Seems like BS..

and all they do is just add clutter and not really any value to the post.

At the worst, this is the same as saying that you don't trust your users to quote things intelligently. At the best, why not disable those kind of quote altogether if all they do is add clutter and no value? Seems to me you just contradicted yourself.

If you manually quote someone, which means you're picking out specific text that a user said, then this adds a contribution to the post your making, and under this new change it would not be hidden.

Exactly. So if picking out specific text adds a contribution (and you're all for showing the entire quote in that case), and the full post quotes don't add any value to the posts, then why not fully adopt the quotes that myself, WaltP, and others are arguing for.. and get rid of the other kind? Your points just make no sense...

BestJewSinceJC 700 Posting Maven

Jake.. The OP was obviously talking about Linux included when he said Unix.

- Indoctrinating a whole generation of IT workers with the "windows way" to the exclusion of all else. Take a look at the curriculum of your local tech certification centers, community colleges, and vocational tech schools. Look carefully at the class descriptions. You're going to see a lot of Microsoft, and anything else is pushed off in a corner as an elective. Where are the Unix certifications? Where are the C, Python, Perl, Lisp, Csh, etc. classes? In short, where can I get a Unix education without going to an ivy league CS college?

Umm - at any University.. ever?

BestJewSinceJC 700 Posting Maven

Post using code tags in the future. It's the little button that looks like a # sign on the reply box. Put your code inbetween the brackets that show up after you click it. Anyway, you should also give more information here. Can you not read from the file, or can you not put the info you read from the file into the JTextArea? And where [what method] are you attempting to put the info into the JTextArea, if you got that far yet?

BestJewSinceJC 700 Posting Maven

<<< Study how object are initialized.

The best suggestion yet. As was said previously, you cannot call a method without an Object of the corresponding class. The only exception to this rule is when the method is declared as 'static'. You need to understand that there is a distinction between declaring and initializing. You declared an array of "n" College Objects. All this does is tell Java to create an empty container that can hold "n" Objects. To initialize a variable means to put something into it. So to initialize your array would mean to fill the slots of the array with College Objects. Initially, your declaration of College[] array = new College[n]; causes Java to create an array of size n with the value "null" in each slot of the array. Attempting to reference (call a method on) null gives you a NullPointerException, hence your error initially. If this info is a lot right now, that's fair, just remember that you must say "new Object()" before you are allowed to call a method on an index of an array or on any variable. It may help if you think about an array as a collection of variables of the same type (such as College), and then think of a variable as only being able to call methods after you say yourVariable = new College().

BestJewSinceJC 700 Posting Maven

Another [very] minor suggestion - the ' This thread is solved. Perhaps start a new thread instead? ' question should be centered above the reply box, not on the left of it.

BestJewSinceJC 700 Posting Maven

No need to complain so hard. Just tell Dani what you like/don't like and give her a while (at least a week) to tweak things. If she decides not to change it so be it, then if it is that big of a deal then you leave.
Suggestions:


1. color options .. for example, to change the forum style to blue instead of purple.

2. The quotes bother me now .. currently when you click to open the quote, if you go to your scroll bar and scroll down, it closes again. Why not make it so you need to click to open and click again to close? Better yet, make them open by default and then they can be clicked to close. 'Click to open' makes no sense because you're always going to click it, so why not have it open to begin with? When I'm reading text I want to read, not be distracted by clicking and having the screen resize. Some of the posters here tend to

quote
-respond
quote
-repond

multiple times in a post. Opening up all of those quotes is going to be far more annoying than having them open to begin with.