User Profile

Collapse

Profile Sidebar

Collapse
ssorower
ssorower
Last Activity: Aug 24 '07, 04:44 PM
Joined: May 29 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ssorower
    started a topic Mysql under cygwin

    Mysql under cygwin

    Hi,

    Anyone knows how to get mysql (windows or linux version) work under cygwin?

    Thanks,
    Sorower

    N.B. I am not sure whether this is the right place for this posting or linux forum is the right place!
    See more | Go to post

  • ssorower
    started a topic Mysql under cygwin

    Mysql under cygwin

    Hi,

    Anyone knows how to get mysql (windows or linux version) work under cygwin?

    Thanks,
    Sorower

    N.B. I am not sure whether this is the right place for this posting or linux forum is the right place!
    See more | Go to post

  • ssorower
    replied to Programming Ideas
    in C
    If you like mathematical and locical programming, then you can find a huge source here

    Trust me, its a huge resource and not that easy (though you will find many of them within your range) I can gurantee :D You will eventaully need algorithm knowledge.

    Or if you are interested in application programming, then you can start with any game like tic-tac-toe then move towards gamse like chess, in the meantime get yourself...
    See more | Go to post

    Leave a comment:


  • ssorower
    replied to How is a compiler created?
    in C
    You may want to have a look at here

    a similar post on the same place long back -:)

    --Sorower
    See more | Go to post

    Leave a comment:


  • ssorower
    started a topic Installing Samhain 2.3.5 in Ubuntu 7.04

    Installing Samhain 2.3.5 in Ubuntu 7.04

    Hi,
    Does anyone have any idea of where can I have a proper documentaion for installing samhain(client-server) in ubuntu? Samhain website have very generic guide, which seemed not to work perfectly in ubuntu :(-

    Thanks,
    Sorower
    See more | Go to post

  • ssorower
    replied to Can I get library for image processing ?
    in C
    openCV is a very good tool for Image processing and here you should get what you need and the answer to your question in this case is "yes".

    --Sorower
    See more | Go to post

    Leave a comment:


  • Just to add litte more, if you want copy of the middle node in a single traverse (insted of the middle node position only), what you may do is, always have an updated copy of the middle node every time you increase the value of the counter starting at first node.

    For example, you can have two node variables to have middle node values, let mid1 and mid2 (in case of even number of total nodes you will have two middle nodes). Now when...
    See more | Go to post

    Leave a comment:


  • ssorower
    replied to need clarification regarding the array
    in C
    Hi,

    Just to remind you, when you write like
    int a[] = {1,2,3,4,5}
    then a is no longer an integer, a is a pointer to integer and in this case you allocated space for it (through initialization) which is 20 bytes (4 bytes for each number and 4*5=20). So, sizeof(a) will always return you 20 bytes, with 5 integers in this space. Where as sizeof(a[0]) returns 4 (size of an integer).

    Now,...
    See more | Go to post

    Leave a comment:


  • ssorower
    replied to Is this function correct? please help
    in C
    So what your program does is prints a lot of "Not Found" and finally a "Found" if it gets a match in the file, right?

    I am assuming this is problem you are talking about as you didint mention anything.

    You see, in the while loop, every time it reads a data from the file, it checks for match. It if matches then it displays that and breaks out of the loop. But if the current data doesnt match? Then...
    See more | Go to post

    Leave a comment:


  • ssorower
    replied to I want to allocate memory for a 3D array...
    in C
    hi,
    If you want to allocate for a 3D array of size n x n x n then every time you allocate you need to allocate for n number of intergers, that is the parameter for caloc function should be like, n*sizeof(int).

    Your first allocation is OK, just chage the parameter as n*sizeof(int). But inside the first for loop you need to allocate one more time like,
    arr[i]= (int**) calloc(n*sizeof (int));
    ...
    See more | Go to post

    Leave a comment:


  • ssorower
    replied to Pressing any key to continue
    in C
    Hi,
    You might want to use kbhit() [The equivalent Microsoft Visual C++ function is _kbhit().) ] function as in here .

    Thanks,
    Sorower
    See more | Go to post

    Leave a comment:


  • ssorower
    replied to Converting to binary
    in C
    Hi,
    as far as I am concern, itoa doesnt convert from decimal to binary. It converts from integer to string(ascii, thats why i(integer) to a(ascii)). For example, if you have an integer 1225, then itoa will convert it into "1225".

    You will be better of writing your own code for decimal to binary conversion:)

    Did you really meant to convert from decimal to binary or you wanted a standard function to convert...
    See more | Go to post

    Leave a comment:


  • ssorower
    replied to Strange char pointer error
    in C
    Hi,
    I think the reason is char *ptr always points to a string which in C/C++ is always terminated by a NULL(which is a must). So when you are writing like
    char* Ptr = &testChar;
    it gets "a" in the first position but unluckily not terminated by a NULL. Thats why it goes on printing from memory until it gets a NULL. All these three lines are the output from printing *ptr and I think you MAY get an integer...
    See more | Go to post

    Leave a comment:


  • ssorower
    replied to Circular queue
    in C
    this

    might help.

    Just a google search.....:)

    --Sorower
    See more | Go to post

    Leave a comment:


  • Hi Patricia,

    Just to give you some initial hints (though you can do it in so many ways!!):

    1) Check if both times are in 24 hour clock or not. If yes then its fine, otherwise turn them into 24 hour clock system (you just need to add 12 if the given time is in pm).

    2) It will be easier for further calculation if you transfer those times into decimal system. All you need to do is : given hour + (given min/60)...
    See more | Go to post

    Leave a comment:


  • ssorower
    replied to basic question on *=
    in C
    Just thought that this precedence list

    http://www.cppreferenc e.com/operator_preced ence.html

    might help to justify why a*=c+d is equivalent to a=a*(b+c)

    --Sorower
    See more | Go to post

    Leave a comment:


  • ssorower
    replied to C++ homework problem
    in C
    Hi Imran!

    Its a very simple program in C++. You should try yourself. If you face any specific problem then anyone here can help you figure it out. But if you get the absolute solution here, it doesnt help your learning.

    Hints for you: All you need to do is define a Student class, define private member variables and two public member functions (you need to call from from main), and a constructor (same as any member function...
    See more | Go to post

    Leave a comment:


  • ssorower
    replied to image recognition
    in C
    Hi leoheel!

    What do you really mean by camera calibration?

    this [URL=http://opencvlibrary.s ourceforge.net/FaceDetection] might be useful.

    It gets input from the camera or webcam (or avi file) and detects face on live video input (or avi movie) using Haar classifier.

    --Sorower
    See more | Go to post

    Leave a comment:


  • ssorower
    replied to math
    in C
    highest 5 digit number 99999 multiplied by highest 5 digit number 99999 gives you a number which takes 36 bits in binary.

    I think you can easily do it using "long double" type variable as the result (instead of using integer or long integer).

    But if it can be more than 5 digits which is even long double cant handle, then you have to use string operations (multiplication ) :)

    --Sorower
    See more | Go to post

    Leave a comment:


  • ssorower
    replied to image recognition
    in C
    Hi Anoopnegi!

    I did some kind of character recognition stuff (long back ...its and old topic now), also face recognition, head nod and head shake recognition, eye....gaze.... ............... ......., and also my collegue is doing research on traffic light and zebra crossing recognition for blind people :)

    So, if you only say image recognition, its not that much informative :) Can you clarify what you really want do?...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...