Berkeley CSUA MOTD:Entry 35279
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/07/08 [General] UID:1000 Activity:popular
7/8     

2004/12/14 [Computer/SW/Unix] UID:35279 Activity:nil
12/13   The manpage for fflush says that fflush(NULL) will flush all open
        buffers-- is this POSIX (or another standard), or just a BSDism?
2025/07/08 [General] UID:1000 Activity:popular
7/8     

You may also be interested in these entries...
2011/11/20-2012/2/6 [Computer/Companies/Apple, Computer/SW/Unix] UID:54237 Activity:nil
11/20   Are there tools that can justify a chunk of plain ASCII text by
        replacing words with words of similar meaning and inserting/removing
        commas into the text?  I received a 40-line plain text mail where
        all the lines are justified on left and right.  Every word and comma
        is followed by only one space, and every period is followed by two
        spaces.  The guy is my kid's karate instructor which I don't think is
	...
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
	...
2008/6/6-10 [Computer/SW/OS/Windows, Computer/SW/Unix] UID:50172 Activity:nil
6/6     Am I in alone is really hating tabbed web browsing? I cannot stand
        it! If I go to a new site I like to have a new window because I
        might want to see both sites at once or I might want to kill the
        window entirely if it gets hung up. From my POV tabbed browsing is
        not a plus.
        \_ I multitask between 2-3 different things, meaning I need to
	...
2008/5/2-8 [Computer/SW/Compilers] UID:49874 Activity:low
5/2     How do I get the L1/L2 cache size and cache line size on my machine?
        Can I find this stuff out at compile time somehow?
        \_ You aren't planning on running your code on any other processors?
        \_ May I ask what it is you want to achieve ultimately? If you don't
           know your architecture and want to find out dynamically, there are
           tools that can peek/poke to give you definitive answers, plus you get
	...
2007/11/27-30 [Computer/SW/Languages/C_Cplusplus, Computer/SW/OS/Solaris] UID:48701 Activity:high
11/27   I'm using select to do a nonblocking check to see if a single socket
        has anything to read off it.  Problem is, I can have up to 12228
        file descriptors, and Linux fd_set only supports up to 4096.  Any idea
        what I can do about this?  (Or a better solution?) -jrleek
        \- 1. who are you
           2. i am busy this week and you didnt mention language
	...
2006/10/30-11/1 [Computer/SW/Unix] UID:45041 Activity:high
10/30   My favorite command in UNIX is "cal". What is your favorite?
           \_ Nein, I vill be. A German and a Jerry, danke, und Heil! -John
              \_ PARSE ERROR. Are you on drugs again John?
                 \_ That's just my troll farm being rambunctious.  Use new
                    Extra Strength Troll-Gro for healthy and frisky trolls!
        \_ Based on frequency of use, gonna have to go with tcsh
	...
2006/10/5-7 [Computer/SW/Unix] UID:44692 Activity:nil
10/6    locale question
        is en_US equivalent to POSIX and/or en_US.UTF-8?
        What does Redhat default to?  UTF-8?  en_US?  POSIX? - danh
        \_ no, POSIX is essentially C.  en_US.UTF-8 is, UTF-8.
	...
2006/8/6-10 [Computer/SW/Mail] UID:43922 Activity:nil
8/5     I just want to take this fine opportunity and say, FUCK sendmail.
        It is difficult to configure and its debugging facility totally
        blows. I can't believe how braindead sendmail config is, not to
        mention its sucky security. Fuck sendmail, use postfix instead.
        I got postfix running in a jiffy and I didn't even have to go
        through 800 pages of sendmail manpage. Fuck sendmail and
	...
2006/3/27-28 [Computer/SW/Languages/Perl] UID:42473 Activity:nil
3/27    Anyone have experience with embedded Perl in C/C++ apps? I've been
        using this for a while but now I find out I can't "use POSIX" for
        example in the Perl code, and trying to follow instructions on
        the internet for how to load extensions like this doesn't seem to
        work. So, maybe someone can help describe what should be done...
        I tried putting in an xs_init function generated by ExtUtils, but
	...
2006/3/24-27 [Computer/SW/Languages/Web] UID:42409 Activity:nil
3/24    PHP masters, help. In Perl I used to be able to do the followings:
        ($var1,$var2,@rest)=@list_of_variables;
        @partial_list=@complete_list[5..10];
        Things of that nature. But in PHP I can't find this type of
        syntactic sugar anywhere on the manpage to do the shortcut so I
        end up doing clumsy things like
	...
2006/2/7-9 [Computer/HW/Memory, Computer/HW/Drives] UID:41761 Activity:kinda low
2/7     I have a little multi-threaded server I'm writing, and I log at
        the start of each call and at the end of each call.  I log by
        having a global lock file, lock, write, flush, unlock.  This
        seems like a bottleneck, is there a better way to log from a
        multi-threaded server? Perhaps something like syslogd where I
        could send messages to another process that would log for me?
	...
2006/1/11-13 [Computer/SW/Database] UID:41348 Activity:kinda low
1/11    Let's say I have two sql tables, A and B that both have a column
        called id. I can do "SELECT id FROM A" and "SELECT id FROM B".
        How do I merge them with one query? I'd like to do something to
        the effect of "SELECT DISTINCT id FROM A,B"
        \_ (SELECT id FROM A) UNION DISTINCT (SELECT id FROM B) --dbushong
           \_ Whoa, by default mysql is already doing DISTINCT on all the
	...