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 ...
...
|
2012/8/29-11/7 [Computer/SW/Security] UID:54467 Activity:nil | 8/29 There was once a CSUA web page which runs an SSH client for logging
on to soda. Does that page still exist? Can someone remind me of the
URL please? Thx.
\_ what do you mean? instruction on how to ssh into soda?
\_ No I think he means the ssh applet, which, iirc, was an applet
that implemented an ssh v1 client. I think this page went away
...
|
2012/3/29-6/4 [Computer/HW/Memory, Computer/HW/CPU, Computer/HW/Drives] UID:54351 Activity:nil | 3/29 A friend wants a PC (no mac). She doesn't want Dell. Is there a
good place that can custom build for you (SSD, large RAM, cheap video
card--no game)?
\_ As a side note: back in my Cal days more than two decades ago when
having a 387SX made me the only person with floating-point hardware,
most machines were custom built.
...
|
2011/10/26-12/6 [Computer/SW/Unix] UID:54202 Activity:nil | 10/24 What's an easy way to see if say column 3 of a file matches a list of
expressions in a file? Basically I want to combine "grep -f <file>"
to store the patterns and awk's $3 ~ /(AAA|BBB|CCC)/ ... I realize
I can do this with "egrep -f " and use regexp instead of strings, but
was wondering if there was some magic way to do this.
\_ UNIX has no magic. Make a shell script to produce the ask or egrep
...
|
2010/3/10-30 [Computer/SW/Mail] UID:53751 Activity:nil | 3/10 What email program do people in Cal CS use nowadays? In my school days
people used /usr/bin/mail, then RMail in emacs, then VMail in emacs.
After my days people used Elm, Pine, Mutt (I forgot which order). In
my first two jobs we could tell the seniority of fellow engineers based
on which email program they use at work, because everyone used what
they used to use in their school years. In my last two jobs though,
...
|
2009/11/13-30 [Computer/SW/Unix] UID:53523 Activity:nil | 11/12 How does one find out if a system has rootkit installed?
\_ Unix or m$?
\_ Unix. On M$ I always assume it's compromised.
\_ Install Tripwire before you plug your server into The Net?
The only other answer I can think of is to reinstall the
OS from scratch on another server and do an md checksum
...
|
2009/7/24-29 [Computer/SW/Editors/Vi] UID:53195 Activity:low | 7/24 Is dos2unix available somewhere? Someone added all those Ctrl-M's to
motd.public.
\_ %s/^V^M//g in vim. What has your editor done for you today?
\_ that works great in vi actually... in vim :set filetype=unix
...
|
|