Since 4/14/2012 3:16:28 AM, discmagnet has written 8 articles and participated in 3 conversations. discmagnet signature: discmagnet
discmagnet's articles:
Items(8) /1
Why does relative include fail?219 (6/12/2011 1:00:53 AM) comp.lang.php disc@puff:~/php$ ls a.php data include disc@puff:~/php$ tree . =E2=94=9C=E2=94=80=E2=94=80 a.php =E2=94=9C=E2=94=80=E2=94=80 data =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 d.php ... Disc
When is PEP necessary?212 (4/23/2011 12:16:26 PM) comp.lang.python Is PEP necessary to add a new package to the standard library? What if the community just wants to add a new module to an existing package? What if only a new function has to be added to a module in the stand... Disc
Two similar logging programs but different ouputs411 (4/18/2011 9:11:58 PM) comp.lang.python I have tried writing two programs which are doing similar activities. The little difference between the two programs is that the first one configures logger1 using addHandler() method while the second program c... Disc
logger warning doesn't appear even though propagate flag is True018 (4/18/2011 8:03:49 PM) comp.lang.python This program prints both the warnings: #!/usr/bin/env python2.7 import logging import logging.config logging.config.fileConfig('log.conf') log1 = logging.getLogger() log2 = logging.getLogger('foo.bar') log2... Disc
const pointer versus const content pointed to by pointer1202 (5/6/2010 10:10:56 AM) comp.lang.c I wrote this code.
disc@magnet:~$ cat const.c
#include
int main()
{
char s[] = "hello, world\n";
char r[] = "hello, pluto\n";
const char *p = s;
char const *q = r;
p[1] = 'a'... Disc
int x[a][b] leads to compilation errors1334 (3/3/2010 10:08:49 PM) comp.lang.c++ I wrote this program. #include using namespace std; int f(int a, int b) { int x[a][b]; cout helloworld.cpp 1>./src/helloworld.cpp(7) : error C2057: expected constant expression 1>./src/helloworld.cp... Disc
Unable to get std::sort working3205 (3/3/2010 6:49:18 PM) comp.lang.c++ I have written this short piece of code to try out std::sort()
function.
#include
#include
#include
using namespace std;
int main()
{
vector lines;
lines.push_back("apple");
lin... Disc
discmagnet's replies:
Items(3) /1
obviscating python code for distribution2815 (5/16/2011 2:04:16 AM) comp.lang.python Hello all: I have been considering writing a couple of programs in Python, but I don't want to distribute the code along with them. So I'm curious of a couple things. First, does there exist a cross-platform ... tyler516(67)
Two similar logging programs but different ouputs411 (4/18/2011 9:11:58 PM) comp.lang.python I have tried writing two programs which are doing similar activities. The little difference between the two programs is that the first one configures logger1 using addHandler() method while the second program c... discmagnet(11)
int x[a][b] leads to compilation errors1334 (3/3/2010 10:08:49 PM) comp.lang.c++ I wrote this program. #include using namespace std; int f(int a, int b) { int x[a][b]; cout helloworld.cpp 1>./src/helloworld.cpp(7) : error C2057: expected constant expression 1>./src/helloworld.cp... discmagnet(11)