Applications and Utilities, GNU/Hurd, Windows, Hardware

Mass deletion of all comments but the first 30

Submitted by Anonymous
on December 17, 2006 - 10:44pm

[Cross posted to Drupal]

I just had a user delete a single spam comment, and then have most of the comments deleted, spam or not (I have a backup, fortunately, but the user was pretty upset with themselves.)

The comments and the node tables both check without error. There are no SQL errors in the logs.

Any thoughts? Is there any likelihood that node_delete((array)$node) is causing this behavior?

GPLv3 Questions & Answers

Submitted by umeet
on December 17, 2006 - 7:50pm

Umeet 2006, this year's online conference on Free Software, will be holding a GPLv3 Questions & Answers session with Richard Stallman. The session is this Tuesday, December 19th, at 18:00 UTC on the #umeet channel on irc.uninet.edu.

Spam module spam_delete_node function

Submitted by Anonymous
on December 15, 2006 - 4:22pm
Applications and Utilities

Hi,

Thanks for making your drupal spam module available, it really does help those of us with Drupal sites not have to spend our lives deleting spam without stopping public access :-)

Just noted a small problem in spam_delete_node function though in v 2.1.4 for Drupal 4.7

Line 3025 causes the following sort of errors when deleting e.g. an expired forum post

1) warning: mysql_real_escape_string() expects parameter 1 to be string...

GCC not detecting macros?

Submitted by crtjer
on December 15, 2006 - 10:24am
Applications and Utilities

I'm not sure if this is a way GCC is reading the file or the way I'm initializing it. Example follows:

#define SUM( Name, Type, Info, Size, Min, Max, Default, Address ) (E)##Info,
E SimpleTab[] = {
TABLE
};
E InfoTab[] = {
SMALL_TABLE
};
E SearchTab[] = {
BIG_TABLE
};
#undef SUM

The header file compiles perfect. I get the error "pasting ')' and '(' does not give a valid preprocessing token" Any ideas are greatly appreciated.

more on function pointers

Submitted by Anonymous
on December 11, 2006 - 8:08am
Applications and Utilities

assume the following code
int fun(int);
int foo(int);
main()
{
int i=0;
int (*f)(int)=&fun;
(*f)(i);
}
int fun(int i)
{
i++;
}

int foo(int i)
{
i--;
}

QUESTION:
how do i know in compilation time itself that the function pointer f calls fun and not foo?

PLZ help me out...

function pointers

Submitted by Anonymous
on December 11, 2006 - 5:07am
Applications and Utilities

Is there a way to extract information of a function being invoked by a function pointer. because callgraph information does not store this info.

Need help to configure GDB test suite to run on ARM board

Submitted by naveenm
on December 4, 2006 - 3:00am
Applications and Utilities

I downloaded the GDB test suite .... I have a Stub to communicate with a ARM board .... I need to configure the test suite to run on GDB connected to the stub and hardware ..... can someone help me with the configuration please ?

Thanks
NAveen

SATA 2 size problems

Submitted by COLIN
on December 1, 2006 - 5:17am

Hi all

This may sound a bit dense but I cant see the full amount of size in my new SATA 2 drive , It's a 200Gb Maxtor , It gives me the total size in the setup screen (by pressing DEL before win2000 starts up ) but only shows 121 Gb in Explorer , & also it only formatted to 121 Gb from initial format/setup, apparently my motherboard is jumperless , so no dip switchs/jumpers to set ( also it knows the total size as described previously)any ideas ??

Help Required in Analysing GDB Stack Trace

Submitted by rinkuex
on November 29, 2006 - 10:07am
Applications and Utilities

Hi
I have the following issue
I have some C code which is similar to the following snippet
All the Functions are Declared in K&R-Style

Function_A (args )
{
declarations;
assignments ;
Function_B( args1 );
}

Function_B (args1 )
{
declarations;
assignments ;
.........
.........

}

While debugging the issue with the help of DDD on linux I m facing following issues

how i can change mp3 file name to aux.mp3

Submitted by Anonymous
on November 26, 2006 - 5:28pm

how i can change mp3 file name to aux.mp3
i can rename it but it not run

HEx opcode in inline assembler

Submitted by Anonymous
on November 24, 2006 - 1:54pm
Applications and Utilities

I want to include serveral hex opcodes in inline assembler. The hex part i want to insert is fairly big, so diasm is not possible. Anyone has a idea how to do so? I tried

asm volatile (".byte 0xc7, 0x44 .... ");

but this does not work. Any ideas?

dependency

Submitted by Anonymous
on November 14, 2006 - 7:22am
Applications and Utilities

Assume the following code

int i;
main()
{
int a,b,c;
...
foo();
}

foo()
{
i=5;
}

In the above code the global variable "i" is accessed by the function "foo".
is there a way in GCC source code to extract this dependency? ie i want to printf which global variables are used in which functions.
pl. help.

Extract global variables of a function

Submitted by Anonymous
on November 2, 2006 - 6:01am
Applications and Utilities

Hi all,

I am trying to extract information about the global variables accessed by the functions in a C - program.

which Datastructure in gcc (or macro) helps to extract them?

g++: using visibility attribute with explicit template instances

Submitted by Anonymous
on October 16, 2006 - 12:38pm
Applications and Utilities

I hope this thread is appropriate for this forum.

I recently began using the visibility attribute now available in gcc.

The software I am working on is proprietary (my employer pays the bills ;) ). We have several modules, each built as a separate DSO library. One of these has a large template class with several specialized methods. We do not provide the implementations on the header file, so this means we limit our users to only those template instances that we explicitly instantiate in the implementation file.

MS Exchange

Submitted by bongs
on October 9, 2006 - 5:47am

How do I get the number of email sent on the particular date from exchange