Berkeley CSUA MOTD:2003:March:09 Sunday <Saturday, Monday>
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2003/3/9-10 [Computer/SW/Languages/Java] UID:27631 Activity:moderate
3/7     Is there a simple way to use/pass function pointers in Java?
        I know I can emulate this by using interfaces or defining
        a base class with a function foo, and subclasses which
        override foo and passing instances of those classes, but that
        is ugly.  I'd like something simple like the LISP, C/C++, Python,
        or Tcl method of passing a function.  Thanks.
        \_ This isn't syntatically pretty either, but anonymous inner
           classes might be what you are looking for.
        \_ You might be able to do something like this reflection.
           For a simple example take a look at /tmp/InvokeExample.java.
        \_ Wrap it up in an anonymous inner class. Anonymous inner classes
           are (modulo some tweaks) semantically equivelent to typed lambdas
           \_ lambdas!
2003/3/9 [Politics/Foreign/Asia/India] UID:27632 Activity:nil
3/7     Afghan Army Liberates Bamiyan
        http://www.freerepublic.com/focus/news/860039/posts
2003/3/9-10 [Reference/RealEstate] UID:27633 Activity:moderate
3/9     Anyone know people at UW or such places who might be interested in
        subletting this summer? I'm looking at an internship for Amazon, and
        they have a very nice plan if you find your own housing. Downtown
        Seattle would be ideal, close to Amazon HQ (the address of which,
        afaik, is at: http://csua.org/u/a65 ). If so, mail me or something
        Thanks! - jhs
        \_ http://Craigslist.org, Seattle: http://seattle.craigslist.org --chris
        \_ There are tons of vacancies in Seattle. 50% of the apt.
           buildings downtown probably have vacancies. Take your pick.
           If you have trouble finding a place, I've even got a room. --saarp
           \_ Ah, I should have thought of craigslist, I didn't realize they
              did Seattle. I forgot to mention above that I'm looking for a
              furnished place (since I'll only be there 3 months) but someone
              pointed me to a furniture rental place. Anways, thanks for the
              ideas! - jhs
2003/3/9 [Politics/Foreign/MiddleEast/Iraq] UID:27634 Activity:nil
3/8     When Will Americans Come
        http://www.opinionjournal.com/editorial/feature.html?id=110003156
2003/3/9 [Uncategorized] UID:27635 Activity:nil
3/9     No!  Life just isn't worth living without slashdot!
2003/3/9 [Uncategorized] UID:27636 Activity:nil
3/9     Hello, Moto!
2003/3/9-10 [Computer/HW/Drives] UID:27637 Activity:very high
3/9     What's a good linux program to use to image a hard disk?
        I don't want to buy Ghost.
        \_ dd
        \_ I bought ghost (norton systemworks, actually) for cheaps
           on craigslist ($20).
           \_ I downloaded a free *nix installed from the net, booted from a
              floppy, installed for free, and got dd for free and I don't have
              to waste an entire box on windows either.
                \- how do image an HD w/ dd?
                   \_ Something like: dd if=/dev/hda of=/tmp/hda.img
                      You might need the conv=osync or conv=notrunc
                      option along with the bs=<block size> option
                      since the default block size on linux is 1024b
                      while I think athat POSIX dd stipulates 512b.
                      \_ at least crank you bs to something large or
                         else your dd will take FOREVER
        \_ Perhaps this is what you need: http://www.partimage.org
           \_ nonononono, he needs 'dd'.  That's it.  It's free and it runs
              on all *nix platforms.
Berkeley CSUA MOTD:2003:March:09 Sunday <Saturday, Monday>