2011/3/7-4/20 [Computer/SW/Languages/C_Cplusplus] UID:54056 Activity:nil | 3/7 I have a C question. I have the following source code in two identical
files t.c and t.cpp:
#include <stdlib.h>
int main(int argc, char *argv[]) {
const char * const * p1;
const char * * p2;
...
|
2010/3/8-30 [Computer/SW/Unix] UID:53745 Activity:nil | 3/8 I have a mod_rewrite question that I think should be straight-
forward but I think I'm not getting something.
I have a virtual server with some root, say /home/user/public_html/
and in there I have two subdirs, say /app1/ and /app2/
and i want the following:
http://mysite/app1 --> /home/user/public_html/app1
...
|
2009/4/30-5/6 [Computer/Theory] UID:52923 Activity:nil | 4/30 Sorting question! I have n sorted arrays of doubles. What's the
fastest way to sort them into 1 big sorted array?
\_ as mentioned below: you are describing one half of mergesort
\_ You really have to ask this question?
\_ You don't know either, huh?
\_ If three are n sorted arrays of m doubles each, I think the fastest
...
|
2009/4/5-5/3 [Computer/SW/Languages, Computer/HW/Drives] UID:52801 Activity:nil | 4/5 Tuesday at 10:00PM I will be taking down Soda temporarily to migrate
disk arrays. This is an expected part of our move to the new server.
The downtime should be minimal - I'll be remounting /home read-only
for an hour or so while I run a final mirror over to the new array
and then will reboot Soda onto the new array. The final migration
will come at a slightly later time - this is in preparation for
...
|
2009/4/24-28 [Computer/SW/Languages/Functional] UID:52902 Activity:nil | 4/23 what book is this?
"I'm reading this horrible horrible book about a programmer
from silicon valley that gets magically
transported into some world where magic is real
and uses computer programming skillz to become the world's
greatest sorceror … in book 1 of the series
...
|
2009/1/20-26 [Computer/SW/Languages/Java, Computer/SW/Languages/Misc] UID:52425 Activity:nil | 1/20 I've been using tcsh as shell program tool (i know, bad shell to
do scripting). One thing I've noticed when I extract xml file
is that the variable type automatically change from
integer/string to... almost an array-like data structure when
the output of the xml key/value is more than one (it's more
like a string separated by space, but I was very impressed as
...
|
2008/12/4-10 [Computer/HW/CPU, Computer/HW/Drives] UID:52163 Activity:nil | 12/4 A question to you old crufy alumni: So lately we've suggested
VMs, and been asked why it's necessary. We've suggested top-of-the-line
hardware and been told we don't need that much power. So I'd like to
ask -- what exactly do you think the CSUA is supposed to _be_?
\_ Noone said VMs weren't needed. They suggested you use the
\_ No one said VMs weren't needed. They suggested you use the
...
|
2008/11/29-12/6 [Computer/SW/OS/FreeBSD, Computer/SW/OS/VM] UID:52129 Activity:moderate | 11/29 I'm experimenting with virtualization, and as a poor college student
I'm wondering what the best alternatives for virtualization are, and
how best to cut my teeth on messing with non-linux platforms (or I
guess interesting stuff on Linux would work too). Right now I've got
FreeBSD7 running on KVM on my home computer (on a Core 2 Quad), and am
somewhat at a loss as to how to use it. (More details: bridged
...
|
2008/11/24-29 [Computer/SW/Languages/C_Cplusplus] UID:52093 Activity:nil | 11/23 C++ question: If I have "char *p = new char[10];", is there any real
difference between "delete p;" and "delete[] p;" after compilation?
The Standard C free() function only has one form and works for freeing
both a single character and a character array. Why are there separate
forms in C++? Thx.
\_ For an array of char, there's no difference. If you have an array
...
|
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/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 ...
...
|
2006/1/19-21 [Computer/SW/Compilers] UID:41435 Activity:nil | 1/19 Political talk is boring, let's talk about the Linux kernel and
Java compilers! Viva la technology!
\_ OK: If I build a reasonably large website using Apache SSIs in
every page, will I want to shoot myself later?
And if I enable MultiViews, what could go wrong?
...
|
|