hello, i need some help with haar transformation, i have to apply it on an image.
My math is bad, my english not all that awesome and i find it hard to understand from articles on the internet. I found this page http://www.cs.ucf.edu/~mali/haar/haar.cpp where the haar transformation is applied on 2d matrix. I suppose if i give image pixe...
I'm needing to run Python scripts within a C-based app. I am able to import standard modules from the Python libraries i.e.:
PyRun_SimpleString("import sys")
But when I try to import a local module 'can'
PyRun_SimpleString("import can") returns the error msg:
Traceback (most recent call last):
File "", line 1, in...
The following code is an example from the NCURSES menu library. I'm not sure what could be wrong with the code, but valgrind reports some problems. Any ideas...
==4803== 1,049 (72 direct, 977 indirect) bytes in 1 blocks are definitely lost in loss record 25 of 36
==4803== at 0x4C24477: calloc (vg_replace_malloc.c:418)
==4803== by ...
Hi,
I want to use serial com port for communication and I want to implement a timeout every time I call the read function call.
int filedesc = open( "dev/ttyS0", O_RDWR );
read( filedesc, buff, len );
Thanks
EDIT:
I'm using Linux OS. How to implement using select function call?
...
I was wondering how I can show description text. By this I mean, for example if you hover over the Start button a small description will appear saying "Start". How are these invoked?
Thanks
...
Possible Duplicate:
C, Macro defining Macro
Does anyone know how to pull off something like this...
I have alot of repetitive macros as : -
#define MYMACRO1(x) Do1(x)
#define MYMACRO2(x,y) Do2(x, y)
#define MYNEXTMACRO1(x) Do1(x)
#define MYNEXTMACRO2(x,y) Do2(x, y)
The code above works fine, but I want ...
I am dealing with a network-related daemon: it takes data in, processes it, and spits it out. I would like to increase the performance of this daemon by profiling it and reducing it's CPU utilization. I can do this easily on Linux with gprof. However, I would also like to use something like "time" to measure it's total CPU utilization...
Is there a function to get a range of characters in a text string or would i need make my own?
...
I'd like to know how to get an array rows & columns size. For instance it would be something like this:
int matrix[][] = { { 2, 3 , 4}, { 1, 5, 3 } }
The size of this one would be 2 x 3. How can I calculate this without including other libraries but stdio or stdlib?
...
Hi All,
I have a c code and I want to extract some patterns of code which contains instructions of communication etc and build a sequence chart from that.
Is there any way I can do that?
Thanks
...
Assume I have the following:
Elf_FIle_Header *fileHeader //struct pointer, points to start of the Elf file header
fileHeader->offset //byte offset from start of file to section headers
Elf_Section_Header *sectionHeader = (Elf_Section_Header *)(char *)fileHeader + fileHeader->offset
Why doesn't the above line point me to the start of ...
int NM_Generator = 1;
//Aray to store thread handles
HANDLE Array_Of_Thread_Handles[1];
//variable to hold handle of North pulse
HANDLE Handle_Of_NM_Generator = 0;
//Create NM_Generator Thread
Handle_Of_NM_Generator = CreateThread( NULL, 0, NMGenera...
MY scenario is... I have 6,000 datas in Excel Sheet.. I try to import to Access Database.It enters the Database like this..
UNit Price 34512.00 Vat 4.00
BUt when i Retrieve to DataGridColumn it Shows vat Rate as 4(whole number).I accept zeros has no values..But I need that to be displayed in Grid as 4.0 . How to achieve this
...
I need to export Lotus NSF database documents to XML. I am using Lotus C API (8.5). I have already build a 32 bit windows application and now I need to port it to 64 bit application. I am not sure if 64 application is supported. If possible, I would like to know how to build it in visual studio.
Thanks
...
Can any body explains about the different categories of pointer(like wild pointers)?
...
Does Windows provide some sort of evented API so I can run some code whenever a drive (say a usb stick) is attached?
Similar to how ReadDirectoryChangesW is for events on the filesystem?
I am not interested only in hardware changes, a user can also mount a volume, a ftp drive or similar.
...
i am using Win32 API.
i have a thread in c and want to terminate it from out side the thread so can't use exitthread()
i can't use any wait options cause i have to kill this thread and start it again in very short time.
need help,
...
Hi,
further developing the code from yesterday (seg fault caused by malloc and sscanf in a function), I tried with the help of some tutorials I found on the net to generate a 2-dim vla. But I get a segmentation fault at (*data)[i][j]=atof(p);. The program is supposed to read a matrix out of a text file and load it into a 2d array (cols ...
Could anyone recommend FTP / SFTP client C/C++ library for Linux-based embedded system? I know about Curl library but I need something as simple as possible just to download files from FTP / SFTP servers. Is there any recommendation to look for? Yes, SFTP support is critical. Actually I can even sacrifice multi-threading because I need o...
Hi,
I'm trying to create a file which has the following structure:
- Each line has 32 bytes
- Each line looks like this format string: "%10i %3.7f %3.7f\n"
My Problem is the following: When i have a negative floating point numbers the line gets longer by one or even two characters because the - sign does not count to the "%3.7f".
Is...