Search:

Type: Posts; User: coder8137

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    3,651

    I'm trying to use the fastcgi protocol to handle...

    I'm trying to use the fastcgi protocol to handle dynamic http requests. The basic idea is that the web server handles all static requests. Then, dynamic requests -- identified by urls such as...
  2. Replies
    2
    Views
    3,651

    Server Architecture

    I am trying to decide how to design the following server architecture. The
    server will accept() connection attempts from a web server over either a UNIX
    socket or TCP/IP. Once a connection has been...
  3. Replies
    3
    Views
    3,052

    From Game Maker, you can get the window handle...

    From Game Maker, you can get the window handle (for the main window) using window_handle(). You'll have to pass this to the DLL and then use the win API to set the parent of your new window. However,...
  4. Replies
    10
    Views
    2,078

    Well, you could have 2 separate programs; the...

    Well, you could have 2 separate programs; the game and one to send the score. Don't release the source to the latter. Each time you send a score, send a long a hash of the game binary, the game...
  5. Replies
    3
    Views
    3,052

    I've done this before (University Project) using...

    I've done this before (University Project) using cdecl.

    In the cpp_header:


    /* auto generated junk by Visual Studio. Preferably, use your own include guard (instead
    of #pragma once...
  6. Here's one way that stops data duplication. In...

    Here's one way that stops data duplication.

    In my_enum.H


    MY_MACRO_NAME(SSSE,
    "Almost South, with a bit of East.", /* just a description */
    "Any other detail...
  7. Replies
    14
    Views
    5,838

    I forgot to mention that you need to replace all...

    I forgot to mention that you need to replace all of these


    <br>

    with these:


    <br />
  8. Replies
    14
    Views
    5,838

    Good to see that you put in the DOCTYPE, but,...

    Good to see that you put in the DOCTYPE, but, considering that I brought it up, I should probably warn you about the choice you made. XHTML is the latest and greatest, but not actually supported by...
  9. Replies
    14
    Views
    5,838

    It may depend on the browser, but I'm not sure....

    It may depend on the browser, but I'm not sure. In Firefox 2.0.0.4 (Linux) it works fine (you can change the encoding under the View menu and test it). I can't comment on the others at the moment....
  10. Replies
    14
    Views
    5,838

    You should be able to just leave the BOM, if you...

    You should be able to just leave the BOM, if you like, and tell the browser that you're sending UTF-8. (This is because UTF-8 is the same as 7 bit ASCII (for the first 128 chars).) As you're using...
  11. Thread: Help, Again.

    by coder8137
    Replies
    4
    Views
    782

    You may also want to read up on scanf(), its...

    You may also want to read up on scanf(), its return value and "flushing the input buffer". There's zillions of articles in the FAQ about it and it's discussed about 5 times a week on this board.
  12. Replies
    17
    Views
    6,296

    I just checked it out; very nice. I think the...

    I just checked it out; very nice. I think the main controls (arrow keys and zoom functions) are pretty good and easy to use. The others might be a little harder to remember. I noticed though that...
  13. Just to clarify, whilst 5*2^-3 can be accurately...

    Just to clarify, whilst 5*2^-3 can be accurately represented, it is actually stored as 1.25 * 2^(-1), since the mantissa is a binary fraction. 101 doesn't represent 5, it's 1.25 or 1 + 1/4.
  14. Yes, you're right. Bad choice of values on my...

    Yes, you're right. Bad choice of values on my behalf.

    Anyways, despite all of this now being rather unrelated to the original post, I'll post some code, which I wrote some time ago, to look at the...
  15. It's often a percentage of (one of) the numbers...

    It's often a percentage of (one of) the numbers you're trying to compare. Thus it would vary automatically depending on whether the number is 0.0000324 or 3x10^56.


    That doesn't prove anything,...
  16. Yes, often type double can accurately represent...

    Yes, often type double can accurately represent even more integer values than a plain int, but it's not required. You can check float.h for info like DBL_MANT_DIG and others.


    That's a different...
  17. Thread: how??

    by coder8137
    Replies
    6
    Views
    1,681

    Zero... good code if you wish to be fired: ...

    Zero... good code if you wish to be fired:


    typedef enum {
    t_int,
    t_node_ptr,
    t_int_ptr
    } assign_types;

    struct node {
  18. Replies
    17
    Views
    6,296

    That's not quite what I meant. The problem with...

    That's not quite what I meant. The problem with the way you're implementing it is that you can't change xmin/xmax/ymax/ymin freely. Most changes will result in the graph being completly wrong, rather...
  19. Replies
    21
    Views
    2,829

    As stated previously, you should generally only...

    As stated previously, you should generally only be trying to do this if the replacement string is the same length as the search string. If that's the case:
    1) open the file in binary mode
    2) use...
  20. Replies
    17
    Views
    6,296

    Most probably not. It might work with simple...

    Most probably not. It might work with simple equations, but not with the ones for the Fern (as far as I can see). For example, try it on the 2nd equation for the fern, given on the website. I'm...
  21. Replies
    17
    Views
    6,296

    The easiest way to understand everything, is if...

    The easiest way to understand everything, is if you consider the program as 2 seperate steps. At the moment, you have been mixing them together, making things a lot harder.

    Step 1: Calculating the...
  22. Replies
    17
    Views
    6,296

    hehe, didn't feel like switching users then. ...

    hehe, didn't feel like switching users then.

    Anyways, the transformations should probably be:


    ifs_elem sierp[] = {{0.5, 0.0, 0.0, 0.5, 0.0*WIDTH / 2, 0.0*HEIGHT},
    {0.5,...
  23. Replies
    17
    Views
    6,296

    Actually, I'll take that back about your math...

    Actually, I'll take that back about your math being correct.
    For example, you start with:


    x=WIDTH/2 = 640/2 = 320

    Now, taking the transformation 3, the next few x points you plot will be:
    ...
  24. Replies
    17
    Views
    6,296

    (0,0) will mean that all points will fall between...

    (0,0) will mean that all points will fall between 0 <= x < 2 and 0 <= y < 1. Therefore your program would have probably output 2 pixels, since you don't use floats. Hence the need to scale it up.
    ...
  25. Replies
    9
    Views
    2,365

    Thanks Salem, I'll check it out.

    Thanks Salem, I'll check it out.
Results 1 to 25 of 65
Page 1 of 3 1 2 3