comp.lang.java.programmer
http://groups-beta.google.com/group/comp.lang.java.programmer
[EMAIL PROTECTED]Today's topics: * some java questions... - 5 messages, 5 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/56437a2ff8422ba5 * Really F'Struts'trated!!! - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/755801c47a5fd1b8 * a += a++; - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/34faddc6d1303cf1 * PRINTING DIAMOND SHAPE WITH LOOPS! - 6 messages, 5 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/56cb33b6025f97a2 * accessing RecordStore - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a7023a70dfe7518b * instanciate a class in a jar file with class.forname, while my main class is in another jar - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/cd33d052dee083e0 * Graphic2D.setBackground - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4af59f17536c70a8 * Strange StringIndexOutOfBoundsException - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/fd07e0f1420fb8cd * PCMCIA and COMM API - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d08b61cd45fd7071 * sending on socket with blocked read; any synchronized problem? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/dc83bdee74140ab2 * Custom scrollbar thumb - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f7449e31ee33ed94 ========================================================================== TOPIC: some java questions... http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/56437a2ff8422ba5 ========================================================================== == 1 of 5 == Date: Tues, Aug 24 2004 11:04 pm From: Lāʻie Techie <[EMAIL PROTECTED]> On Tue, 24 Aug 2004 13:14:49 +0000, alessandro wrote: > Hi, in my third java program (yes, I'm new to this lang.) You may want to hang out in comp.lang.help while you get the basics of the language down. The others have given good advice as far as your current problems. La'ie Techie == 2 of 5 == Date: Tues, Aug 24 2004 11:25 pm From: Gordon Beaton <[EMAIL PROTECTED]> On Tue, 24 Aug 2004 20:50:25 -0400, anon wrote: > Some others have already given tips on your stack overflow problems, > so I'll just add that you may want to look into using the > java.io.PipedInputStream, java.io.PipedOutputStream, > java.io.PipedReader, and java.io.PipedWriter streams for your > interthread communications instead of java.net.Socket. Or even better: a queue of object references. Why serialize when it isn't necessary? /gordon -- [ do not email me copies of your followups ] g o r d o n + n e w s @ b a l d e r 1 3 . s e == 3 of 5 == Date: Tues, Aug 24 2004 11:32 pm From: "alessandro" <[EMAIL PROTECTED]> Thank you all for your help. I solved the second problem, an it was very stupid: the program executed a loop that did nothing more than checking if the connection was ready or data were available: this way the program burned 99% of the resources of the system doing nothing. A timer based approach will work better, I think. Fo the first problem...well, my tree reaches a depth of 4, creating some hundred of thousand of nodes, (each node creates up to 30 children, but in most cases these are less. == 4 of 5 == Date: Wed, Aug 25 2004 1:28 am From: Michael Borgwardt <[EMAIL PROTECTED]> alessandro wrote: > Thank you all for your help. I solved the second problem, an it was very > stupid: the program executed a loop that did nothing more than checking if > the connection was ready or data were available: this way the program burned > 99% of the resources of the system doing nothing. A timer based approach > will work better, I think. Even that would be really bad code. Use blocking IO and wait()/notify() > Fo the first problem...well, my tree reaches a depth of 4, creating some > hundred of thousand of nodes, (each node creates up to 30 children, but in > most cases these are less. A well-written algorithm that manipulates such a tree should not cause a stack overflow. == 5 of 5 == Date: Wed, Aug 25 2004 12:49 am From: "Chris Uppal" <[EMAIL PROTECTED]> alessandro wrote: > Fo the first problem...well, my tree reaches a depth of 4, creating some > hundred of thousand of nodes, (each node creates up to 30 children, but in > most cases these are less. The first thing I'd check is that you are using recursion /only/ when you go down a level in the tree, and that you are using normal iteration (a "for" or "while" loop) to loop over the children. If you have coded it that way then the maximum depth of recursion is the same as the max depth of your tree -- i.e. 4 -- and there is no problem at all using small depths like that. -- chris ========================================================================== TOPIC: Really F'Struts'trated!!! http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/755801c47a5fd1b8 ========================================================================== == 1 of 1 == Date: Tues, Aug 24 2004 11:18 pm From: Dirk Michaelsen <[EMAIL PROTECTED]> Hi, >I'm pretty sure the reset() method is only called when the page is created, >though someone here might correct that. no, the reset() method is called everytime the jsp is reloaded. I have proved that on my application with the logger. cu Dirk ========================================================================== TOPIC: a += a++; http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/34faddc6d1303cf1 ========================================================================== == 1 of 1 == Date: Tues, Aug 24 2004 11:26 pm From: [EMAIL PROTECTED] (Razvan) > As an academic exercise, a discussion of this is perhaps justifiable. But > whoever writes codes like this in the real world should be shot (or at > least fired). Naturally, it is an academic discution. Regards, Razvan ========================================================================== TOPIC: PRINTING DIAMOND SHAPE WITH LOOPS! http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/56cb33b6025f97a2 ========================================================================== == 1 of 6 == Date: Tues, Aug 24 2004 11:29 pm From: "Liz" <[EMAIL PROTECTED]> "Hal Rosser" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > "Jay Dean" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > I need simple nested loops (either for, or while) code for a method to > > print a diamond shaped stars for n stars, where n is odd. > > Example. n=9 would produce > > > > * > > *** > > ***** > > ******* > > ********* > > ******* > > ***** > > **** > > * > > I have STRUGGLED with this for over three days in a row and my head > > aches! > > I tried with nested loops, and conditions but the results were not > > encouraging. > > I am a novice in Java and need help with simple nested loops to > > construct this. Thanks in advance for your help !! > > > > Jay Dean > > Jay, > Being a beginner at programming, it may be a good idea to plan it out first. > you typed out what you want your program to do, so you should make note of > what you did. > For instance, note that the number of spaces before the "*" starts at a > maximum value and decreases by one after each print. > Also note the number of "*"s increase from one to a maximum value - then > decreases by one to one. > You're on the right track of using nested loops - you need to increment one > value and decrement another value. > Its a good exercise in planning your app. > Use flowcharts to plan if it makes things clearer for you. > Plan first - then write the code. > Hope this helps > Hal > --------------------- class Test7 { public static final void main( String[] args ) { int n = Integer.parseInt( args[ 0 ] ); for ( int i = 1; i <= n; i += 2 ) { for ( int k = 0; k < ( n - i ); k += 2 ) System.out.print( " " ); for ( int j = 0; j < ( ( i * 2 ) - 1 ); j += 2 ) System.out.print( "*" ); System.out.println( "" ); } for ( int i = 1; i <= n; i += 2 ) { for ( int k = 1; k < i; k += 2 ) System.out.print( " " ); for ( int j = 0; j <= ( n - i ); j++ ) System.out.print( "*" ); System.out.println( "" ); } } } == 2 of 6 == Date: Tues, Aug 24 2004 11:37 pm From: "Liz" <[EMAIL PROTECTED]> "Liz" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > "Hal Rosser" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > > "Jay Dean" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > I need simple nested loops (either for, or while) code for a method to > > > print a diamond shaped stars for n stars, where n is odd. > > > Example. n=9 would produce > > > > > > * > > > *** > > > ***** > > > ******* > > > ********* > > > ******* > > > ***** > > > **** > > > * > > > I have STRUGGLED with this for over three days in a row and my head > > > aches! > > > I tried with nested loops, and conditions but the results were not > > > encouraging. > > > I am a novice in Java and need help with simple nested loops to > > > construct this. Thanks in advance for your help !! > > > > > > Jay Dean > > > > Jay, > > Being a beginner at programming, it may be a good idea to plan it out > first. > > you typed out what you want your program to do, so you should make note of > > what you did. > > For instance, note that the number of spaces before the "*" starts at a > > maximum value and decreases by one after each print. > > Also note the number of "*"s increase from one to a maximum value - then > > decreases by one to one. > > You're on the right track of using nested loops - you need to increment > one > > value and decrement another value. > > Its a good exercise in planning your app. > > Use flowcharts to plan if it makes things clearer for you. > > Plan first - then write the code. > > Hope this helps > > Hal > > > --------------------- small mistake - new version -----------------------class Test7 { public static final void main( String[] args ) { int n = Integer.parseInt( args[ 0 ] ); for ( int i = 1; i <= n; i += 2 ) { for ( int k = 0; k < ( n - i ); k += 2 ) System.out.print( " " ); for ( int j = 0; j < ( ( i * 2 ) - 1 ); j += 2 ) System.out.print( "*" ); System.out.println( "" ); } for ( int i = 1; i <= n; i += 2 ) { for ( int k = 0; k < i; k += 2 ) System.out.print( " " ); for ( int j = 2; j <= ( n - i ); j++ ) System.out.print( "*" ); System.out.println( "" ); } } } == 3 of 6 == Date: Tues, Aug 24 2004 11:49 pm From: "Adam" <[EMAIL PROTECTED]> Ok, this is your lucky day, I had to wake up so wrote what's below. Maybe you'll learn by looking at an example... public class Stars { public static void main(String[] args) { System.out.println("Parameter needed (an odd number)"); System.out.println("Example: java Stars 7"); System.out.println(); int longestRow = Integer.parseInt(args[0]); for(int row=1 ; row<=longestRow ; ++row) { int i = (2*row) - 1; if(i>longestRow) i = 2*(longestRow-row+1) - 1; for(int j=0 ; j<(longestRow-i)/2 ; ++j) System.out.print(" "); for(int j=0 ; j<i ; ++j) System.out.print("*"); for(int j=0 ; j<(longestRow-i)/2 ; ++j) System.out.print(" "); System.out.println(); } } } == 4 of 6 == Date: Wed, Aug 25 2004 12:48 am From: [EMAIL PROTECTED] (Jay Dean) Cid - I appreciate your redirecting me to the .lang group. As I indicated, I am a novice and did not know where exactly to post questions. However, it is very *ridiculous* for a lot of helpers to *assume* that most questions are HOMEWORKS. You certainly don't know me, and can't tell me for sure that I am in school.Even if it were a homework, and you "help" a student it is the student who is "hurting" him/herself. If you can help somebody, help him/her. You have nothing to lose by doing that. My assumption was that newsgroups were a platform for information sharing. Please if you do not want to help somebody with a question,leave the qusetion alone, because someone else might. This forum is certainly NOT your private venture. This was a question from a book I was given on my job to study java. I AM NOT A STUDENT! Thanks for your help! Jay Dean. Cid <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > On 24 Aug 2004 18:59:36 -0700, [EMAIL PROTECTED] (Jay Dean) wrote: > > >I need simple nested loops (either for, or while) code for a method to > >print a diamond shaped stars for n stars, where n is odd. > ... > > I have STRUGGLED with this for over three days in a row and my head > >aches! > >I tried with nested loops, and conditions but the results were not > >encouraging. > >I am a novice in Java and need help with simple nested loops to > >construct this. Thanks in advance for your help !! > > > 1. comp.lang.java.help is a more appropriate group for intro questions > > 2. when you repost there, include your current sample code and > explanation of exactly what part of the logic is throwing you. That > way people will see that you're actually working on it and not asking > them to do your homework for you. == 5 of 6 == Date: Wed, Aug 25 2004 1:05 am From: Joona I Palaste <[EMAIL PROTECTED]> Jay Dean <[EMAIL PROTECTED]> scribbled the following: > Cid <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... >> On 24 Aug 2004 18:59:36 -0700, [EMAIL PROTECTED] (Jay Dean) wrote: >> >I need simple nested loops (either for, or while) code for a method to >> >print a diamond shaped stars for n stars, where n is odd. >> ... >> > I have STRUGGLED with this for over three days in a row and my head >> >aches! >> >I tried with nested loops, and conditions but the results were not >> >encouraging. >> >I am a novice in Java and need help with simple nested loops to >> >construct this. Thanks in advance for your help !! >> >> 1. comp.lang.java.help is a more appropriate group for intro questions >> >> 2. when you repost there, include your current sample code and >> explanation of exactly what part of the logic is throwing you. That >> way people will see that you're actually working on it and not asking >> them to do your homework for you. > Cid - > I appreciate your redirecting me to the .lang group. As I > indicated, I am a novice and did not know where exactly to post > questions. > However, it is very *ridiculous* for a lot of helpers to *assume* > that most questions are HOMEWORKS. You certainly don't know me, and > can't tell me for sure that I am in school.Even if it were a homework, > and you "help" a student it is the student who is "hurting" > him/herself. If you can help somebody, help him/her. You have nothing > to lose by doing that. My assumption was that newsgroups were a > platform for information sharing. > Please if you do not want to help somebody with a question,leave > the qusetion alone, because someone else might. This forum is > certainly NOT your private venture. > This was a question from a book I was given on my job to study > java. I AM NOT A STUDENT! Thanks for your help! Don't top-post. Fixed. I appreciate the fact that you are not a student doing homework, but instead trying to learn Java at your job. Thus Cid was wrong to immediately assume it was homework. However, asking people to write programs for you will not help you learn Java, regardless of whether you are studying it at school or at your job. Thus Cid was right in saying that people will not write your programs for you. I see you have already got at least one reply giving details on the sort of algorithm you should implement. You would do well to read it. Liz, OTOH, seems to have given you a complete program without even explaining its code. If you type this in ready-made, it is possible that all it teaches you is how to type in ready-made code. -- /-- Joona Palaste ([EMAIL PROTECTED]) ------------- Finland --------\ \-- http://www.helsinki.fi/~palaste --------------------- rules! --------/ "'It can be easily shown that' means 'I saw a proof of this once (which I didn't understand) which I can no longer remember'." - A maths teacher == 6 of 6 == Date: Wed, Aug 25 2004 1:22 am From: Paul Lutus <[EMAIL PROTECTED]> Jay Dean wrote: > Cid - > I appreciate your redirecting me to the .lang group. As I > indicated, I am a novice and did not know where exactly to post > questions. > However, it is very *ridiculous* for a lot of helpers to *assume* > that most questions are HOMEWORKS. WHAT? You have a JOB in which someone wants you to create the classic student diamond algorithm, but for some reason you CAN'T think of how to do it? Yeah, right. No assumptions were made. Not one. You are a student who wants people to tell you how to solve problems you should sort out for yourself. Serious students post code. Dropouts post excuses. > You certainly don't know me, and > can't tell me for sure that I am in school. But you have told us volumes about yourself. Top of the list, for some reason you want to lie about being a programming student. > Even if it were a homework, > and you "help" a student it is the student who is "hurting" > him/herself. If you can help somebody, help him/her. To hurt themselves? What weird values you have. > You have nothing > to lose by doing that. False. > My assumption was that newsgroups were a > platform for information sharing. Your assumption that newsgroups are a way to avoid thinking is mistaken. > Please if you do not want to help somebody with a question,leave > the qusetion alone, because someone else might. This forum is > certainly NOT your private venture. It is most certainly not your automatic answer machine. > This was a question from a book I was given on my job to study > java. I AM NOT A STUDENT! You just contradicted yourself: 1. "This was a question from a book I was given on my job to study java." Book, study, Java: A student of Java. 2. "I AM NOT A STUDENT!" Not a student of Java. Perfect. -- Paul Lutus http://www.arachnoid.com ========================================================================== TOPIC: accessing RecordStore http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/a7023a70dfe7518b ========================================================================== == 1 of 1 == Date: Tues, Aug 24 2004 11:38 pm From: [EMAIL PROTECTED] (Marcin) Hi, I have a Nokia 6100 phone and I'm develoiping application that stores data via RecordStore class. The problem is I would like to have those data on my PC (i.e. via infrared link). Ideas: 1) Use infrared API - probably not possible :( 2) not to use RecordStore but other class (if exists) that allows me to create file (in Gallery folder maybe?). The I could access the file from Nokia PC Suite. 3) Access file there RecordStore records are stored (RMS.rms?) - but how? Is it any of those possible? Any other ideas? Marcin ========================================================================== TOPIC: instanciate a class in a jar file with class.forname, while my main class is in another jar http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/cd33d052dee083e0 ========================================================================== == 1 of 1 == Date: Tues, Aug 24 2004 11:55 pm From: [EMAIL PROTECTED] (cyril) >:Txs a lot for reading me > > Generally speaking, I find that there's no reason to ever set a > CLASSPATH variable, whether on Linux, Windows, whatever. Simply set the > classpath with the java command as you started to do. > > It would appear from your examples that your CLASSPATH variable isn't > correct -- that is, it doesn't point to all the appropriate jar files. > So you might fix that problem in one of two ways. If your two jars are > always going to be together, make the manifest entries specify their > dependencies. Or just put them both in the classpath option you specify > on your java command. So long as all the classes referred to in your > code are available to the JVM at runtime, you should never encounter an > error saying the class isn't found. > > = Steve = Thanks Steve for your answer but my classpath is correct. I think what I do is badly explained. I use the '-cp $CLASSPATH' option when launching java. - If the main class is my classical main class, inside I do a class.forName("com.pack.A"). java doesn't find the class com.pack.A. - If I try to lanch the class com.pack.A WITH THE SAME COMMAND AND CLASSPATH (just to test if it's in my classpath) I got an error that there is no main method (that's normal) and java doens't tell me that it can't find the class, so *the class is in my classpath*. I found a way to skip this problem by using JDK 1.3.1 !!! (and with *the same command and classpath*) I don't know where the pb could be. Does anyone heard about a different behavior in the class loader between jdk 1.4.2_05 et 1.3.1 ? Txs ========================================================================== TOPIC: Graphic2D.setBackground http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/4af59f17536c70a8 ========================================================================== == 1 of 1 == Date: Wed, Aug 25 2004 12:04 am From: [EMAIL PROTECTED] (Tor Iver Wilhelmsen [TeamB]) [EMAIL PROTECTED] (Jenny) writes: As Paul said, but more explicitly: > super.paintComponent(comp); This is the call that will actually paint the background. > comp2D.setBackground(Color.white); But your white color is set here, after the background paints. Solution: Call setBackground() in the constructor. ========================================================================== TOPIC: Strange StringIndexOutOfBoundsException http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/fd07e0f1420fb8cd ========================================================================== == 1 of 2 == Date: Wed, Aug 25 2004 12:14 am From: [EMAIL PROTECTED] (dutone) I get the above exception ('String index out of range: -5') at random points during readMultiLine()'s network read (listed below). According to doc. the only method that could be throwing this is sb.delete() but it doesnt meet the conditions for the exception. When I run it on a file, no error, only when doing network io. Any Ideas????? main() { //Init...... String lines[] = readMultiLine(); // .... } private String readLine() throws IOException { int c; sb.delete(0,sb.length()); c = is.read(); while( c > 0 ) { sb.append((char)c); if( (char)c == '\n' ) break; c = is.read(); } return ( (sb.length() > 0) ? sb.toString():null); } private String[] readMultiLine() throws IOException { String retval[] = null; String x = readLine(); lineBuffer.removeAllElements(); while(x != null) { if( x.equals("^\r\n") ) break; lineBuffer.addElement(x); x = readLine(); } retval = new String[lineBuffer.size()]; lineBuffer.copyInto(retval); return (retval); } == 2 of 2 == Date: Wed, Aug 25 2004 1:15 am From: Paul Lutus <[EMAIL PROTECTED]> dutone wrote: > I get the above exception ('String index out of range: -5') at random > points during readMultiLine()'s network read (listed below). According > to doc. the only method that could be throwing this is sb.delete() but > it doesnt meet the conditions for the exception. When I run it on a > file, no error, only when doing network io. > Any Ideas????? Just one. Tell us which line of your code throws the exception. -- Paul Lutus http://www.arachnoid.com ========================================================================== TOPIC: PCMCIA and COMM API http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d08b61cd45fd7071 ========================================================================== == 1 of 1 == Date: Wed, Aug 25 2004 12:18 am From: [EMAIL PROTECTED] (Christian Marko) Hi! Does anyone have experiences with the COMM API and the usage of the PCMCIA port? With the COMM API the PCMCIA ports should also be found, or not? I have a PCMCIA port on my notebook, but this port won't be found, by the appropriate class of the COMM API. As i read in other posts, the port should be found. Can anyone help me? Regards Chris ========================================================================== TOPIC: sending on socket with blocked read; any synchronized problem? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/dc83bdee74140ab2 ========================================================================== == 1 of 1 == Date: Wed, Aug 25 2004 1:24 am From: "Ong Hong Peow" <[EMAIL PROTECTED]> Thanks Gordon for the clarification. "Gordon Beaton" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Thu, 19 Aug 2004 12:30:38 +0800, Ong Hong Peow wrote: > > At all times, there's a block read( byte[] ) using the InputStream > > from a socket on a separate read thread. On another thread, I'm > > intending to send out data using the same socket in question. > > > > is there any issue on such operations? > > Please don't multipost. > > There are no issues. As far as the application is concerned, the > socket connection consists of two completely independent streams. > > /gordon > > -- > [ do not email me copies of your followups ] > g o r d o n + n e w s @ b a l d e r 1 3 . s e ========================================================================== TOPIC: Custom scrollbar thumb http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f7449e31ee33ed94 ========================================================================== == 1 of 1 == Date: Wed, Aug 25 2004 1:24 am From: "Ste M" <[EMAIL PROTECTED]> Hi all, i'm writing an application using UIManager and metal theme. I'd like to use a bitmap to have a custom scrollbar thumb, but how can i do it ? Thanks ! -- Stefano M ======================================================================= You received this message because you are subscribed to the Google Groups "comp.lang.java.programmer". comp.lang.java.programmer [EMAIL PROTECTED] Change your subscription type & other preferences: * click http://groups-beta.google.com/group/comp.lang.java.programmer/prefs Report abuse: * send email explaining the problem to [EMAIL PROTECTED] Unsubscribe: * click http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe ======================================================================= Google Groups: http://groups-beta.google.com ------------------------ Yahoo! Groups Sponsor --------------------~--> $9.95 domain names from Yahoo!. Register anything. http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/BCfwlB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/kumpulan/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
