Search Results - JustLinux Forums


Search:

Type: Posts; User: TheLinuxDuck

Page 1 of 20 1 2 3 4

Search: Search took 0.36 seconds.

  1. Replies
    4
    Views
    1,015

    goon12: In my opinion, fgets is the best...

    goon12:

    In my opinion, fgets is the best thing for buffered user input. The problem with using it comes into play when the users input is as long as or longer than the char * to which the...
  2. Replies
    4
    Views
    4,887

    Because conio.h is a DOS header. The problem...

    Because conio.h is a DOS header.

    The problem is that input is buffered, which means that you can press keys until you're blue in the face (or the buffer fills), but until you hit enter, those...
  3. Replies
    4
    Views
    4,887

    Not to be rude, but a simple search through this...

    Not to be rude, but a simple search through this forum will show that this type of question has been asked, and answered, many times. Just search for "unbuffered input" and you'll get a whole slew...
  4. Replies
    5
    Views
    4,253

    I found this with a little bit of surfing.. it...

    I found this with a little bit of surfing.. it doesn't sound complete, but possibly a place to start?
    http://www.nongnu.org/jcurzez/

    And another:
    http://sourceforge.net/projects/javacurses/
    ...
  5. Replies
    5
    Views
    4,253

    Here are some links for java tutorials: ...

    Here are some links for java tutorials:

    http://java.sun.com/docs/books/tutorial/
    http://www.ibiblio.org/javafaq/javatutorial.html
    http://sepwww.stanford.edu/sep/josman/oop/oop1.htm

    There's...
  6. Replies
    4
    Views
    605

    The first thing you're talking about is an...

    The first thing you're talking about is an array.. an array just a collection of like-variables into one easy-to-access place.

    For example:


    #!/usr/bin/env python

    list = [ "Bananas",...
  7. Replies
    8
    Views
    875

    That would probably explain the difficulties I...

    That would probably explain the difficulties I had. (=

    Thanks for the heads up!
  8. Replies
    6
    Views
    795

    Energon: You helped me plenty by proving...

    Energon:

    You helped me plenty by proving that it is the compiler..

    I was thinking maybe it was the way that the gdi32 library was being used, but I eliminated it from the loop, and it's...
  9. Replies
    6
    Views
    795

    C; a taboo; sorry!

    I don't really know where else to go for help, because I feel more comfortable with you guys than I would in a place where I don't know anyone... the taboo is this: I need some windows programming...
  10. Replies
    8
    Views
    875

    from what I've been able to gather, echo won't...

    from what I've been able to gather, echo won't handle ansi codes.. you'll have to use the bash verison of printf (man 1 printf). I've never been able to get echo to work with ansi escape codes.. ...
  11. Replies
    7
    Views
    880

    Try this out: #!/bin/bash  ...

    Try this out:


    #!/bin/bash
     
    FILE="/usr/bin/gs"
    SIZE=`ls -l $FILE | tr -s ' ' | cut -f 5 -d ' '`
     
    echo "Size of '$FILE' is $SIZE"
    if [ "$SIZE" -ge "1024000" ]; then
  12. Replies
    3
    Views
    464

    kmj informed me that when a lighting source is...

    kmj informed me that when a lighting source is used, it turns off object color.

    That would explain it for sure.. and, also, it looks like the use of a glMaterial* function is required for the...
  13. Replies
    2
    Views
    543

    I don't know of any direct ways to do this, but...

    I don't know of any direct ways to do this, but the way I would probably do it would be to put all the images into a data file of some sort. This would allow you to format the datafile exactly as...
  14. Replies
    3
    Views
    464

    I've tried to adjust the alpha of the object's...

    I've tried to adjust the alpha of the object's color, via


    glColor4f(temp, 1.0f - temp, 0.0f, 0.5f);

    (as opposed to 3f, which only specifies rgb) but it doesn't seem to be having any...
  15. Replies
    3
    Views
    464

    openGL; c; lighting conundrum

    I've been toying with openGL going through NeHe's openGl tutorials (http://nehe.gamedev.net/tutorials/lesson.asp?l=01), and doing my own stuff with it as well. Anyhow, my dilemma is this:

    If I...
  16. Replies
    4
    Views
    768

    -e is a file test conditional to test for the...

    -e is a file test conditional to test for the existense of the file/dir. If something exists of that name, then the -e conditional will return true. Just in case you aren't familiar with them,...
  17. Replies
    4
    Views
    768

    I would suggest that the code first changes into...

    I would suggest that the code first changes into the directory given, and then issues a `pwd`, so that a full path will be returned:



    #!/bin/bash
     
    if [ "x$1" == "x" ]; then
    echo...
  18. Replies
    16
    Views
    3,223

    The reason I didn't used strchr is because I...

    The reason I didn't used strchr is because I didn't want to include the string header. I wasn't using anything else from it, so I figured there is no need to include it, especially when this...
  19. Replies
    16
    Views
    3,223

    Here is my version that does not use switch/case....

    Here is my version that does not use switch/case. It uses an array to store the counts. A string is given of acceptable characters, the grades, called accept. Another array for the counts, called...
  20. Replies
    4
    Views
    812

    Try assiging the pointer as: adder_nf =...

    Try assiging the pointer as:


    adder_nf = &get_function;


    When I did it like that, I didn't get any warnings.

    I'm guessing, but I think that doing the assignment as:
  21. Replies
    1
    Views
    636

    Why don't you go ahead and post the code. It...

    Why don't you go ahead and post the code. It seems to me that reading from a socket would allow you to grab pieces in chunks, so you can monitor the size...
  22. Replies
    16
    Views
    3,223

    JvsJ: Another qool trick to use is when you...

    JvsJ:

    Another qool trick to use is when you need to determine the uppercase letter, just and it by 223. That will make sure that the letter is always uppercase.. in your example, the code...
  23. No problem! I hope that you're able to solve the...

    No problem! I hope that you're able to solve the problem... I know how frustrating it is to be stuck on something and not know where to go. (=
  24. Replies
    3
    Views
    901

    http://www.tronche.com/gui/x/ Try that. (=

    http://www.tronche.com/gui/x/

    Try that. (=
  25. Replies
    3
    Views
    706

    Although ncurses will work for the color stuff,...

    Although ncurses will work for the color stuff, that's an awfully big library to implement just for colors.

    If it's a console app, use ansi escape sequences. They work fast quick and easy. Here's...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4