Berkeley CSUA MOTD:2002:November:18 Monday <Sunday>
Berkeley CSUA MOTD
2002/11/18 [Computer/SW/Languages/Java, Computer/SW/Languages/Functional] UID:26574 Activity:very high
11/17   How come printf("%f\n", 1/10); returns 0.000000?
        \_ because it is? go read up on integer division.
           \_ gosh how dare you ask someone to rtfm.  how rude of you not to
              spoon feed someone on the motd.  I'll bet you're not a pine
              user either.
              \_ Gosh, how dare you correct someone on the motd without the
                 cadence and arrogance of a fully-trained Google Nazi.
                 1/10 rounds down to 0 since it is integer division.  Try
                 printf("%f\n", ((float)1)/((float)10) ) ;
                 for the results you expect.
                 \_printf("%f\n" (float) 1/10); You don't need that many
                 casts or parens. This isn't LISP. Sounds like you are
                 a C newbie.
                 \_ %f isn't even the specifier for float, smart guy.
                    there isn't one for float.
                 \_ use cout <<
                 \_ We all knew that.
                 \_ Just use Java
                    \_ Ride bullet train.  Use ocaml.
2002/11/18 [Computer/SW/Editors/Emacs] UID:26575 Activity:kinda low
11/17   Stupid UNIX question again...  There are two tools which I use
        quite often but I have find that it's not really being updated,
        I am assuming that there are other tools to replace its
        functionality, but don't know which one:
        JOVE (or light editor that uses emacs keys)
        xdiff (diff with x interfaces)
        any modern tools to replace these two?
        \_ Jove 4.16 is perfect.  No updates are required but source is
           available if there's a feature you need.  I know nothing about
           xdiff, sorry.  I don't use X for anything.
           \- i realize this begs the question but inthis case it is
              good for you: use emacs and the emacs diff technology.
              \_ I do use emacs and emacs diff.  I just don't know how
                 to lock their scroll bar so I can scroll both left
                 and right panel at the same pace
              \_ Jove is perfect.  There is no need for anything but Jove.
                 End the emacs insanity.
                 \_ I agree.  Emacs is too turing complete.
2002/11/18 [Uncategorized] UID:26576 Activity:nil
2002/11/18 [Computer/SW] UID:26577 Activity:nil
11/18   Ant question: I have a task that depends on an intermediate file:
        <target name="t1" depends="_t1">
          <ant dir="." target="all" inheritAll="false">
            <property name="inputfile" value="file.tmp"/>
        <target name="_t1">
          (generate file.tmp)
        But it seems like the recursive call to ant is never made.
Berkeley CSUA MOTD:2002:November:18 Monday <Sunday>