rake variables340 (4/25/2009 3:02:57 AM) comp.lang.ruby I'm a rake beginner with a couple of questions: (1) Is there any way to set rake options from the within the Rakefile, as though they had been specified on the command-line? I always want to run a particula... Jeff
ruby.h error on OS X189 (3/2/2009 5:23:46 PM) comp.lang.ruby Has anyone else had problems with the ruby 1.9.1 development headers on OS X? $ echo '#include "ruby.h"' >main.c $ gcc -c main.c In file included from /Users/jeff/usr/include/ruby/ruby.h:1125, ... Jeff
1.9 on OS X640 (3/1/2009 4:11:15 PM) comp.lang.ruby What is the best way to install Ruby 1.9 on Apple OS X? The latest version in fink is 1.8.6, which I'm currently using. I did not see this discussion in the c.l.r archives, but please feel free to point me ... Jeff
Ruby in a Nutshell #3641 (2/28/2009 3:50:29 PM) comp.lang.ruby I'm thinking of buying & reading Ruby in a Nutshell (O'Reilly, 2001), but am concerned that it may be outdated. The stable version at the time of publication was Ruby 1.6. Is this still worth the investment... Jeff
difference between {} and do/end437 (2/20/2009 4:25:37 PM) comp.lang.ruby I'm coming back to Ruby after a couple years away, and finding I've forgotten some of the basics. What's the difference between { ... } blocks and do ... end blocks? In particular, why does one of the foll... Jeff
generic programming: (in?)compatibility of CamelCase and snake_case843 (3/22/2008 6:57:28 PM) comp.lang.c++ Some people who clearly understand generic programming (probably a good deal better than I do) seem to prefer CamelCase, even when trying to interoperate with the C++ standard library. One striking example i... Jeff
ftp recursively820 (3/18/2008 9:25:28 PM) comp.lang.python I need to move a directory tree (~9GB) from one machine to another on the same LAN. What's the best (briefest and most portable) way to do this in Python? I see that urllib has some support for getting file... Jeff
name of client module824 (2/19/2008 12:43:03 AM) comp.lang.python Q1: When a module is imported, is there any way for the module to determine the name of the client code's module? Q2: My understanding is that the code in a module is executed only on the first import of tha... Jeff
tr1::array initializater syntax734 (2/14/2008 9:00:20 PM) comp.lang.c++ The latest GCC (4.2.3) gives a warning if a tr1::array is initialized with the traditional syntax: #include #include int main() { std::tr1::array a = { 0 }; std::cout << a[... Jeff
std::sort #21541 (11/26/2007 10:27:06 PM) comp.lang.c++ Would std::sort ever compare an object with itself? I'm not talking about two distinct, equal-valued objects, but rather this == &that. The container being sorted is a std::vector. I've never seen this, but a... Jeff
Resolved External Linkage on member function array?235 (5/23/2009 9:34:08 PM) comp.lang.c++ I create a data member which holds an array of member functions. I am unable to link properly, but I did see member functions are already defined. Please take a look. class A { public: A(); ~A(); static ... Immortal_Nephi(170)
Why does this declaration without definition work?1042 (5/24/2009 10:56:34 PM) comp.lang.c++ In 9.4.2, paragraph 5, the standard says: If a static data member is of const integral or const enumeration type, its declaration in the class definition can specify a constant-initializer which shall be an ... dot_com_yahoo(99)
Macro NULL or 0848 (5/25/2009 10:34:59 AM) comp.lang.c++ Hi, in a discussion I am having with a programmer, we have a dispute if it is a good idea to use the macro NULL instead of 0 for denoting a null pointer value. I think 0 should be preferred and NULL should b... ivranos2(182)
book on C++ problems849 (5/28/2009 6:11:33 PM) comp.lang.c++ Hi all, I am a professional C++ programmer with 4+ years of experience.... to further enhance my skills I am looking for a good book which has got lot of C++ problems and solutions specially intermediar... ayansinhas(5)
Preprocessor #6645 (6/2/2009 11:29:37 AM) comp.lang.c++ Can any body help me to define a preprocessor with variable no. of argument which expands as follows: PRE(SUNDAY, MONDAY, TUESDAY) expands to struct SUNDAY; struct MONDAY; struct TUESDAY, struct WEDNESDAY; ... mail.dsp(14)
static polymorphism --- How it actually Happens ?1040 (6/3/2009 7:19:28 AM) comp.lang.c++ Can anyone explain How it actually Happens ? polymorphic behaviour needed is invariant and can be determined at compile time. Then the Curiously Recurring Template Pattern (CRTP) can be used to achieve static ... singh.pallav(123)
Profiling under Linux643 (11/5/2009 8:59:40 PM) comp.lang.c++ I have a C++ program that is slower than I would like. I would like to use a profiler that would tell me in what functions is it spending the most actual time. gprof seems like an interesting tool, but I wo... Ignoramus11615