Berkeley CSUA MOTD:2003:April:24 Thursday <Wednesday, Friday>
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2003/4/24 [Uncategorized] UID:28207 Activity:nil
4/23    I'm suing someone but I don't know if the address he gave me is
        correct, how do I find out a person's address?
2003/4/24 [Computer/SW/Languages/Misc] UID:28208 Activity:nil
4/23    ok, same problm as question below, but different approach.
        Is there any existing tool that extract <input> html tag
        and generate javabean automatically?
        \_ this question probably means you're missing something.
           Look up the ServletRequest api for getParameterValues and
           getParameter-- you can name all your form inputs the same and
           get them back as an array.  This works well for a feedback
           survey with 50 questions where all the answers are something
           like "Strongly Agree" "Agree" "Disagree"-- name your radiobuttons
           surveyAnswer, and if surveyAnswer[3] == 2, then someone
           strongly agreed w/ statement 4.
2003/4/24 [Computer/SW/Languages/Web, Computer/SW/Languages/Misc] UID:28209 Activity:nil
4/23    HTML form JSP question:
        What I have is essentially, an array of a set of radio buttons.
        Since radio buttons are identified by its name and there is no
        concept of scope in HTML, how do I deal with this? I really want
        to avoid things like
        <input type="radio" name="radio1">
        <input type="radio" name="radio2">
        <input type="radio" name="radio3">

        mainly because the javabean for this form is going to be a pain
        in the butt to write.

        any pointer? custom tag?  thanks in advance
        \_ Well, any form inputs are basically parameters to a function
           (read cgi).  So name them accordingly.  A terse, descriptive
           name.  And there certainly is "scope" in HTML.  It's global per-
           page (correct me if I'm wrong).  Also, you mention JSP, which
           definitely has definable scope (e.g. page, session, etc.)
           --scotsman
           \_ what i want is a radio input which has the scope of
              let say, 1 table row!
        \_ radio buttons belong to a group, so you could do the following:
           <input type="radio" name="group1" value="radio1"/>
           <input type="radio" name="group1" value="radio2"/>
           <input type="radio" name="group1" value="radio3"/>
           So, the parameter is group1 and then whichever radio button
           is selected will pass the value.
           \_ Well, this is what you would do for, say, a multiple choice
              question or the like.
              \_ What is your use case exactly?
                \_ example: a page of 10 multiple choice questions.
                   idealy we want be able use an array to handle
                   them, instead of hardcoding the name.
                   \_ I wouldn't recommend this, but if you want to use an
                      array you could give each question-group the same name
                      and then make the value for each answer something like
                      q1_a2 (1 and 2 would be values from the question and
                      answer loops).   Then you could retrieve every
                      answer by getting the parameter value array for the
                      parameter named "questions".  An example entry would
                      be:
                      <input type="radio" name="questions" value="q1_a2"/>
                      But I'd rather name each question-group something
                      like q1 ... qn and then each answer in that group
                      a1 ... an and then just pull out the parameter values
                      using a loop of names q1 ... qn and stop when the
                      value for q_current is empty.
2003/4/24 [Computer/HW/Laptop] UID:28210 Activity:nil
4/32    I have two linux computers: a laptop and a desktop. Should
        I have a different SSH2 private key on each, or should I use
        the same private key on both?
        \_ probably different, in case your laptop ever gets stolen or
           sent in for service or something. or vice versa...
        \_ I like how this one was posted on april 32nd.  Good trick!  No one
           will ever delete this until april 34th at least!
2003/4/24 [Computer/SW/Mail] UID:28211 Activity:low
4/24/   I was writing a letter in pine and got disconnected from soda.
        Is there a temp file anywhere? I'm not getting the usual
        "continue interrupted message" message.
        \_ ~/dead.letter if anywhere.  Or just wait for the process to
           die and it might come back.
2003/4/24-25 [Health/Men, Science] UID:28212 Activity:very high
4/24    It seems to me that, ultimately, there are only three
        applications of technological research: consumer use,
        health advancement, and military. I'm wondering if there
        are any other ones?
        \_ use in science and further technology developement.
        \_ uh... industrial use?
        \_ Agricultural use.
        \_ Entertainment.  It seems to me, that, ultimately, every aspect of
           society can benefit from applications of technological research.
        \_ Viagra falls into scientific discovery and entertainment.
           \_ I went to Viagra Falls once... its so beautiful
2003/4/24 [Health/Disease/General] UID:28213 Activity:insanely high
4/24    Just curious, no links, not trolling, etc.  How many of you think
        SARS will turn into a huge global epidemic?  I don't know what the
        infection rate is for those exposed, but I do know from publicly
        available numbers that the death rate is about 3.5%.  If everyone
        on the planet got it (go with me here), we're talking over 200m dead
        world wide.
           \_ The current death rate is an estimate based on a the number of
              estimated SARS cases.  As more patients are diagnosed with non-
              SARS flu/cold, the dead/infected denominator is going to go
              down, so the overall death rate is going to go up.  Just wait
              for the availability of quick clinical tests for SARS.  Whee!
        \_ it is possible.  But it is better to be proactive and aggressive
           now.
        \_ I'd say it's like the flu, but with no vaccine.
           \_ Shoot them?  Gather up everyone with cold symptoms and put them
              away?
        \_ I'd say it's like the flu, but with no vaccine.  Flu mortality
           is ~ 10%.
           \_ TEN PERCENT?  You fucking idiot.  You are innumerate.
              \_ http://www.mdch.state.mi.us/PHA/OSR/cri/Flu.asp
                 22 per 100,000, roughly, or 0.02%
                 \_ This reports lists 22 flu deaths per 100,000 U.S.
                    citizens.  The ~ 10% mortality rate is for those who
                    who actually get the flu.  (Mortality for young healthy
                    adults who get it is about 5%; older, higher.)
                    \_ You are an idiot.  And innumerate.  There is NO WAY
                       that 10% of "those who actually get the flu" die.  Not
                       with recent flu viruses anyway.  Look at this:
                       http://www.cdc.gov/ncidod/diseases/flu/fluinfo.htm If
                       you crunch the numbers, there you get ~.06%.  Not 5%.
                       Not only are you an idiot, you're wrong by a factor of
                       100.  THINK ABOUT THIS YOU FOOL.  How many people do
                       you know who have died of the flu?
                       \_ About 10%.
                           \_ OK, maybe this is true in your case, but you're
                              still wrong about the flu being 10% fatal.
                              idiot.
                              \_ What makes my case special?  You think I only
                                 hang out with people with weak immune systems?
                                 \_ Yup.  You only hang out with AIDS-sickened
                                    drag queens with weak immune systems.
                              \_ You are the ones who are the ball-lickers!!!
                                 \_ ED!
                                    \_ 10%
                                       \_ It's a tragedy of the commons.
           \_ My mistake.  The mortality rate for flu is 0.1%.  The mortality
              rate for flu and pneumonia ranges from 7%-10%.  The mortality
              rate for pneumonia is 10%.  The mortality rate of 5% for
              young healthy adults was for the 1918 Spanish flu.  Yes,
              I feel pretty stupid. -op
2003/4/24-25 [Uncategorized] UID:28214 Activity:moderate
4/24    It is time to start putting these bastards out of business:
        <DEAD>www.spamhaus.org/rokso/index.lasso<DEAD>
        \_ unfortunately spam isn't illegal yet.  not across the US and
           certainly not globally.  what is your devious and effective plan
           to put them out of business?
        \_ Ah rokso...  Alan Ralsky is the source of no end of jokes around
           here. --scotsman
2003/4/24 [Computer/SW, Computer/SW/Languages] UID:28215 Activity:nil
4/24    The word "optimize" means you've turned something inefficient into
        something that cannot be even more efficient (optimal/optimum). So
        why do people use the word "optimize" when they really mean
        "improvement"?
        \_ because you need a better dictionary.
        \_ because language changes
           \_ Not in France.  It is mandated not to do so.
2003/4/24-25 [Finance/CC, Health] UID:28216 Activity:high
4/24    I don't see what is so unethical or special about Netflix's queueing
        system. VISA/mastercard phone support queue is based on how good
        a customer you are (platinum vs. regular). My company's support
        depends on whether the customer is a gold member or not. This
        stuff has been going on for eons.
        \_ there's a difference between giving preferential treatement to
           good customers, and degrading treatment to good customers.  -tom
                \_ no. we give preferential treatment to potentially good
                   customers while still giving good treatment to existing
                   good customers.                      -netflix employee
                   \_ aka "bait and switch"
                \_ so netflix has left you feeling degraded and oppressed?
                   get over it.  they'll be gone in a year or two or sold to
                   MS or something and it won't matter.
                   \_ I'm not a customer, but I still think it stinks.  -tom
                      \_ Normally I find myself in disagreement with tom,
                         but I second his opinion on this one.
                      \_ It's like complaining about how your Edsel or your
                         Pinto doesn't get the mileage they said it would.
        \_ http://Walmart.com offers DVD rentals ala Netflix.  You have a choice now.
2003/4/24 [Science/GlobalWarming] UID:28217 Activity:very high
4/24    CNN front page:
        During talks with China and the U.S., North Korea's Li Gun told U.S.
        representative James Kelly "blatantly and boldly" that his country
        has at least one nuclear weapon, an official said. Gun asked, "Now
        what are you going to do about it?"
        \_ Gotta love that cowboy style negotiations team the NK sent.
                \_ They should be compatible with our's!
                                                     \_ no apostrophe.
                                                        -aaron
                                                        -grammar nazi
           I wonder what our response was?  "We've got 5,000 and they're all
           properly tested and can hit anywhere in the world within 6 minutes"
           \_ North Korea is not the problem.  Nuclear weapons are not the
              problem.  US imperialism and aggression are the problem.
                \_ how are we imperalizing on North Korea?  we didn't
                   give them enough free food this year?  actually
                   I know we stopped shipping them free food and oil
                   \_ Actually, we're still shipping the free food, we only
                      stopped the free oil.
                   ever since they started going off the deep end again.
2003/4/24-25 [Uncategorized] UID:28218 Activity:high
4/24    How do I check with DMV online to see if a title is clean, salvage,
        damaged, or what not?
        \_ i dont think they offer that online.. use carfax
                \_ they have this for boats, motorcycles, etc?
2003/4/24-25 [Computer/SW/Unix, Computer/SW/Languages/Perl] UID:28219 Activity:high
4/24    On systems without Perl, what's the easiest way to obtain the
        same results as perl -e 'print time()'?
                        \_ On systems with perl the easiest way is:
                           perl -e 'print $^T';
        \_ 5 lines of C code using libc gettimeofday
        \_ combine date with awk and do some simple math (in awk or with bc).
        \_ combine date with awk and do some simple math (in awk or
           with bc).
        \_ 'date' has %s time format.
           \_ That gives you the "current second", not the # of seconds
              since epoch time.
                \_ date +%s gives the # secs since Jan 1, 1970 on
                   FreeBSD and Linux. (It doesn't work at all on
                           if you compile gnudate on solaris it will work--psb
                   Solaris)
                        \- this is a gnudate extension.
                           if you compile gnudate on solaris it will
                           work--psb
                           \_ If he can compile stuff, then he
                              can just write a 3 line c pgm to
                              get the info he needs.
2003/4/24 [Uncategorized] UID:28220 Activity:nil
4/24    I'm tired of running my manager's email through jive.  What else is
        there for other "conversions"?  Thanks
2003/4/24 [Uncategorized] UID:28221 Activity:nil
4/24    LOW IQ INDIVIDUALS RAMPANT ON THE MOTD TODAY
        FILM AT 11
        This message has been brought to you by -John
        \_ This from the guy who gets all self-righteous about
           ad hominem attacks.  let's just make it absolutly clear
           that you and i are on the same moral level when i call you
           a fucking jackass right now.
        \_ Like that's anything new.
2003/4/24 [Science/GlobalWarming] UID:28222 Activity:nil
4/24    http://www.discover.com/may_03/featoil.html
        Soylent black.
        \_ I hope this technology pans out.  If so, we can halt the net
           production of CO2
2017/09/26 [General] UID:1000 Activity:popular
9/26    
Berkeley CSUA MOTD:2003:April:24 Thursday <Wednesday, Friday>