2014/1/14-2/5 [Computer/SW/Languages/C_Cplusplus] UID:54763 Activity:nil | 1/14 Why is NULL defined to be "0" in C++ instead of "((void *) 0)" like in
C? I have some overloaded functtions where one takes an integer
parameter and the other a pointer parameter. When I call it with
"NULL", the compiler matches it with the integer version instead of
the pointer version which is a problem. Other funny effect is that
sizeof(NULL) is different from sizeof(myPtr). Thanks.
...
|
2013/4/29-5/18 [Computer/SW/Languages/C_Cplusplus, Computer/SW/Compilers] UID:54665 Activity:nil | 4/29 Why were C and Java designed to require "break;" statements for a
"case" section to terminate rather than falling-through to the next
section? 99% of the time poeple want a "case" section to terminate.
In fact some compilers issue warning if there is no "break;" statement
in a "case" section. Why not just design the languages to have
termination as the default behavior, and provide a "fallthru;"
...
|
2010/1/12-29 [Computer/SW/Apps/Media] UID:53627 Activity:kinda low | 1/12 How do I get a job NOT related to internet DNS social network cloud
twitter GOOG EC2 amazon API ???
\_ A CS job not related to API?
\_ Chip design, or maybe software that does chip design. What is
your major? How about game developer?
\_ DNS? DNS? What era ado you live in? I agree that social network
...
|
2009/5/6-14 [Computer/SW/Languages/Perl, Computer/SW/Languages/Web] UID:52961 Activity:kinda low | 5/6 I'm sure you've seen web sites that distribute software by making
a user fill out a form and then e-mailing the user a randomly
generate link to the software that works just once. What software
is used to do this? I'd like to distribute software in such a way.
\_ "Software"? What web server/web application environment
are you using?
...
|
2009/1/13-22 [Computer/Theory] UID:52367 Activity:kinda low | 1/13 I am writing a commandline parser for a class and I could use some
tips for algorithms to use. (The project is over and done so I am
not cheating, but I am dissatisfied with my end result.) I STFW and
didn't come up with too much I liked. I read the source for some
shells like tcsh and that is *WAY* too complicated and relies on
a lot of other code. I know that browsers and other apps have
...
|
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/30-12/6 [Computer/SW/Compilers, Computer/HW/CPU] UID:48719 Activity:moderate | 11/29 From the CSUA minutes:
- Next Gen Console
-- If we have $1800 in our accounts, should we buy a console:
4 votes passes.
-- Console voting: 2 votes each, neither passes
* 360 = 600, more games
...
|
2006/11/10-12 [Computer/SW/Compilers] UID:45316 Activity:nil | 11/10 Is there anyway to get C/C++ compilers to automatically compile
different code for different processors? I'd like to be able to
say something like:
#if defined X86 ...
#elif defined SPARC ...
#else ...
...
|
2006/8/25-28 [Computer/SW/Languages, Computer/SW/Compilers] UID:44149 Activity:nil | 8/25 Why are iterators "superior" or more recently popular over the
traditional method of using for loops and indexing?
\_ I guess it's because you can change an array to some other data
structure (linked-list, tree, ...) without changing the loop code.
\_ This is a limitation of your language, not the concept of looping
\_ They handle multithreaded use cases better.
...
|
2006/7/11 [Computer/SW/Compilers] UID:43629 Activity:nil | 7/11 Is there a way to turn off specific warnings on the intel 9.0 C++
compilers? The man page says -wd[warning number] should suppress
the warning, but that isn't working for me at all. The only
think that does is just -w, but that suppresses ALL warnings.
\_ grep -v warning-that-I-dont-care ...
...
|
2010/4/22-5/10 [Computer/SW/Languages/Misc] UID:53797 Activity:nil | 4/22 In Linux is there an easy way to rename the scripts in /etc/rc?.d ?
For example I want to set all the /etc/rc?.d/S91apache to S100apache
so that it'll run the ramdisk BEFORE going to apache.
\_ Sure, just move them.
\_ I mean is there a script that will rename all of them
for me? Like: setrc apache2 0 0 1 1 1 1
...
|
2010/1/22-30 [Computer/HW/Laptop, Computer/SW/OS/OsX] UID:53655 Activity:high | 1/22 looking to buy a new development laptop
needs ssdrive, >6 hr possible batt life, and runs linux reasonably
Anyone have a recommendation? Thx.
\_ thinkpad t23 w ssdrive and battery inplace of drive bay
\_ Ever wondered what RICHARD STALLMAN uses for a laptop? Well,
wonder no more!
...
|
2009/12/7-2010/1/3 [Computer/HW/Memory, Computer/HW] UID:53574 Activity:nil | 12/7 How many TCP retransmits are too many? Here is what I get:
3594143433 segments received
3760174421 segments send out
3801829561 segments retransmited
\_ rephrase. you can never have too much money. or too little.
what is, is.
...
|
2009/5/7-14 [Computer/SW/WWW/Server] UID:52963 Activity:nil | 5/7 I am trying to reproduce a customer bug where their apache header
has the content-encoding as the last line in the header.
My test platform is running apache2.2 on ubuntu. Is there a way
to do this ?i I have already read the apache 2.0 docs and
I dont see anything obvious ? page is txt/html
...
|
2009/3/8-17 [Computer/SW/Unix] UID:52685 Activity:kinda low | 3/8 I'm reading about an old exploit where someone used a buffer overflow
in a printer daemon to get "daemon privileges," which allowed them
to use another exploit on the mail delivery program to get root. I'm
not sure what daemon privileges are. Is there some set of priveleges
that most daemons run on that is higher than user but lower than root?
What are they? I've never heard this before.
...
|
2008/10/14-20 [Computer/SW/Languages/Misc, Computer/SW/Languages/Web] UID:51527 Activity:nil | 10/14 2 apache 2.0.52 servers running on Linux boxes. Identical httpd.conf
files (except for ServerName). But on one, if a CGI script takes
longer than 300 seconds, it times out. The other, not. Why is that?
\_ Perhaps network equipment configuration. Or try comparing settings
in /proc/sys/net.
\_ I ran /sbin/sysctl -a | grep tcp, all settings are the same.
...
|
2008/9/3 [Computer/SW/Unix] UID:51030 Activity:nil | 9/3 Okay, my sed and awk skills are obviously not up to par here.
I want to only see the "500's" in my apache error log, how do I
do that? I want to see the whole line, not just the 500 error code.
Never mind, grep " 500 " is close enough.
...
|
2008/3/10-13 [Computer/SW/SpamAssassin] UID:49412 Activity:nil | 3/10 Is there a reliable way to control spam on soda?
Can someone write an "any undergrad can do it" level FAQ? Thanks.
\_ echo "/dev/null" > ~/.forward
\_ I use Thunderbird to check my soda mail.
\_ Forward to gmail. Let google's spam filter work for you.
\_ I use spamassassin. I just checked and it caught all but one of
...
|
2007/12/11-14 [Computer/SW/OS/Linux, Computer/SW/WWW/Server] UID:48785 Activity:nil | 12/11 Apache/Linux question: I've got apache 2.0.52 on an idle redhat
box (2.6.9-55 kernel). Every so often one to four apache procs
will run the cpu at 100% for any where from 15 to 90 mins, then
drop back to normal. USR and SYS time both increase to levels
that the production boxes don't reach when serving traffic at
noon. I've checked apache and linux kernel versions, several
...
|
|