Berkeley CSUA MOTD:2009:August:18 Tuesday <Monday, Wednesday>
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2009/8/18-9/1 [Uncategorized] UID:53277 Activity:low
8/17    anyone use this? is it good or is there something better?
        http://win2fs.sourceforge.net
        \_ It's a 0.1 release, dated October 2006 with no updates.
           \_ is there a better alternative?
              \_ http://lmgtfy.com/?q=mount+ext2+filesystem+on+windows
2009/8/18-21 [Science/Electric, Politics/Domestic/President/Bush] UID:53278 Activity:high
8/17    http://www.techcrunch.com/2009/08/17/the-best-and-worst-cities-to-look-for-a-job
        San Jose and San Francisco... not a surprise. Northern Cal
        is still the best place to live.
        \_ What are you talking about? San Jose was 6th (above SF) and
           SF was 15th. If you rate "best place to live" as "best place
           to find a job" (which I don't) neither of these qualify and
           the answer is Washington, D.C.
           \_ it's a shitload better than Los Angeles, which is full of
              lame IT and support jobs. There are no real tech jobs that
              require real education. LA only needs people who have bullshit
              degrees from Cal Poly/Cal State.  -troll who lives in LA and
              degrees from Cal Poly/Cal State. -putz who lives in LA and
                                               wasted his education in Berkeley
              \_ You sound like a putz.
2009/8/18-9/1 [Industry/SiliconValley] UID:53279 Activity:nil
8/17    What's the difference between FourSquare and that Google location
        program?
        \_ One is called Latitude and got rejected by Apple, the other
           one got approval by Apple because it's not perceived as a threat?
2009/8/18-9/1 [Uncategorized] UID:53280 Activity:nil
8/17    Do you want to date my avatar?
        http://www.youtube.com/watch?v=urNyg1ftMIU
        \_ This is even less interesting than the title would suggest.
2009/8/18-9/1 [Uncategorized] UID:53281 Activity:nil
8/18    Bored of hotornot? Try: http://www.pornstarorpotato.com
2009/8/18-9/1 [Recreation/Dating] UID:53282 Activity:nil
8/18    A friend of a friend wants to go to therapy/counseling, but needs
        someone who understands how engineers think. Any recommendations? -abe
        \_ Wow, that is so... self-centric. I suggest your friend/engineer
           read self-help books for people who have Asperger Syndrome.
        \_ hilarious!  Does he realize that thinking like an engineer may not
           be "optimal" ?  :D
           \_ Seconded. Does your friend's friend also think he/she is smarter
              than everyone else? Please read Asperger self-help books. Seriously.
              \- These suggestions seem bizarre to me. I think that's a quite
                 reasonable question ... or rather "input variable".
                 Where did the Asperger's stuff come from?
2009/8/18-9/1 [Computer/SW/Database, Computer/SW/Languages/Perl] UID:53283 Activity:low
8/18    trying to write an intentionally slow regex.
        what is your worst regex ever?
        this is using MySQL regexp but I'll also accept
        perl format         --brain
        \_ you need to know how regex is implemented internally in order to
           have a worst regex in terms of running time. Something that uses
           a decent hash table that fit in L1 cache will be fast regardless.
           Lexical analysis with a hash lookup of constant time will be linear
           (to the length of input). NFA->DFA. Are you not a CS major?
        \_ rather than responding to trolls:
           yes, I specified MySQL for a reason:
           The inherent linear nature of most
           regex engines is what makes the problem challenging.
           Soliciting for ideas, not a lecture on how regex works;
           remember I went to Cal too.  Although if you know how the
           MySQL regexp works, I'll take anything you got!  --brain
           \_ Sorry but I don't think you're a CS major.
              \_ Is the OP even aware of DFA vs NFA/traditional NFA/posix
                 as a start?
           \_ What is a MySQL regexp?  You should look up the
              Qadafi/Khada'ffi regexp.
        \_ There are some fairly ugly regexps built into procmail for
           things like FROM_DAEMON, and there's some ~6K regexp for
           fully validating email addresses (may be in the RFC). These are
           big, but not necessarily slow. If MySQL doesn't precompile its
           regexes, and it supports extended regexes, you can do stuff with
           nested ranges: (.{1,100}){1,100}
           Perl regex for RFC822 validation:
           http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html
2009/8/18-9/1 [Computer/SW/Unix] UID:53284 Activity:nil
8/18    Is it possible to truncate your path name in your prompt in tcsh?
        Tsch veterans REPRESENT!  I know this is how to do it in bash:
        # truncate path: returns $1 truncated to $2 chars, prefixed with ...
        truncate_path () {
                if [ -z "$1" -o -z "$2" ]
                then
                        echo Usage: truncate_path path length
                        return 1
                fi
                if [ ${#1} -le $2 ]
                then
                        echo $1
                else
                        local offset=$(( ${#1} - $2 + 3 ))
                        echo "...${1:$offset:$2}"
                fi
        }
        But I'd rather use tcsh on my freebsd machine.  Go Bill Joy and BEARS!!
        \_ %c2
Berkeley CSUA MOTD:2009:August:18 Tuesday <Monday, Wednesday>