Search:

Type: Posts; User: crepincdotcom

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    7,586

    Sounds like fun :-p Thanks!

    Sounds like fun :-p

    Thanks!
  2. Replies
    2
    Views
    7,586

    Raw serial control in Linux

    Greetings,

    Back many years ago, I figured out how to control the pins of a serial port independently under Win98 in VB6. IE, rather than writing data to the port, I could set two of the pins low...
  3. Replies
    6
    Views
    2,508

    is -Wall like "use strict;" in perl then?

    is -Wall like "use strict;" in perl then?
  4. Replies
    6
    Views
    2,508

    ahhhh you guys are great. I removed the time()...

    ahhhh you guys are great. I removed the time() call... I knew it was something stupid.

    Thanks again,
  5. Replies
    6
    Views
    2,508

    Unexplained Segfault

    Hey all,

    I can't for the life of me figure out why this is segfaulting... sorry to bother you all with such a lame question. Here's the source:



    #include <stdlib.h>
    #include <stdio.h>...
  6. Replies
    7
    Views
    1,856

    (disregard this... browser issue)

    (disregard this... browser issue)
  7. Replies
    7
    Views
    1,856

    Yes.... but I threw a few more tableouts() in...

    Yes.... but I threw a few more tableouts() in there.... I'll keep working on it.
  8. Replies
    7
    Views
    1,856

    I know gcc is a good compiler, so globals in...

    I know gcc is a good compiler, so globals in general are not bad, is that correct? It's an error on my part somewhere? I've debugged like crazy: it goes in one way, comes out a bit different... And...
  9. Replies
    7
    Views
    1,856

    I just did a logical run through and some debug...

    I just did a logical run through and some debug strings and that var seems to be ok...

    Thanks for the idea though, I should have thought of lint.
  10. Replies
    7
    Views
    1,856

    Mysterious Changing Values

    Hello all,

    I'm writting (have written...) a program that uses genetic algorithms to solve the Travelling Salesman Problem. (Search google if the idea of the interests you). I hate to post a whole...
  11. Replies
    2
    Views
    1,177

    Strange Sorting Method

    Hello,

    I have an array, declared as such:

    double a[8];
    a[0] through a[7] contain numbers that I would like to sort. Were this simply the issue, I'm sure I could find a function on Google. But...
  12. I was talking to a math major at MIT the other...

    I was talking to a math major at MIT the other day, he had an intersting scope on this. As N approches infinity, Vn being the Nth term, Vn / V(n-1) becomes (1+ sqrt(5))/2. That is, the ratio between...
  13. Thread: Strings

    by crepincdotcom
    Replies
    6
    Views
    1,804

    OK, but I'm not searching for a particular...

    OK, but I'm not searching for a particular starting string, I'm searching for only second occurences of groups already present. Running through every 2-char combo would be a little inefficient...
    ...
  14. Thread: Strings

    by crepincdotcom
    Replies
    6
    Views
    1,804

    From...

    From http://www.phim.unibe.ch/comp_doc/c_manual/C/EXAMPLES/strstr.c:



    char string[]="string to search";
    char test[]="sear";

    /* strstr returns a pointer into 'string'
    * if 'test'...
  15. Thread: Strings

    by crepincdotcom
    Replies
    6
    Views
    1,804

    Strings

    Hey all,

    I can't figure out how to do this at all.... hopeing someone could help.

    I have a string containing groups of two charactors. For the sake of this article they can be random:

    "bh oj...
  16. Replies
    10
    Views
    3,091

    Thanks

    Thanks
  17. Replies
    10
    Views
    3,091

    Thanks all... I think I'll go cry now. Just...

    Thanks all... I think I'll go cry now.

    Just kidding, but my code is pretty bad isn't it.

    Dave_Sinkula, your code is very pretty and I will test it tonight. But your use of pointers and (not...
  18. Replies
    10
    Views
    3,091

    Dave, the formula I provided is not the proper...

    Dave, the formula I provided is not the proper one. It is correctly inplemented in the code, I check that many times over.

    The line

    double top=0;
    Does that need to be

    double top=0.0; ...
  19. Replies
    10
    Views
    3,091

    Math Gone Kablooie

    :mad:

    I've got this one little function that calculates standard deviation. All the separate peices work, but together it blows up. I simply cannot figure out why.

    I'm trying to get this...
  20. Replies
    9
    Views
    9,940

    But a managed switch can be changed to allow a...

    But a managed switch can be changed to allow a larger MTU.
  21. Replies
    5
    Views
    2,206

    Nevermind I found it, Thanks

    Nevermind I found it, Thanks
  22. Replies
    5
    Views
    2,206

    Jez, I don't have to define a window or anything?...

    Jez, I don't have to define a window or anything?

    -Jack Carrozzo
    http://www.crepinc.com/
  23. Replies
    9
    Views
    9,940

    The network stack takes care of frame size for...

    The network stack takes care of frame size for you. If you allow jumbo frames, as root type:

    ifconfig eth0 mtu 9000

    Remember that only other computers with jumbos enable can receve what you...
  24. Replies
    5
    Views
    2,206

    Plotting Pixels

    Hello,

    I've written a math code that does some pretty things, and outputs its data in a text file. Id like to now write a visualizer. Thus, I would simply read through my file, and have an array,...
  25. Replies
    14
    Views
    2,861

    So to recap, if I simply use a double rather than...

    So to recap, if I simply use a double rather than float it should work?

    Sorry to not have figured this out myself.

    Thanks guys, interesting discussion too ;-)
Results 1 to 25 of 94
Page 1 of 4 1 2 3 4