Search:

Type: Posts; User: alex

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: Swap Byte

    by alex
    Replies
    24
    Views
    5,306

    Hi Happy Man! The algorithm uses the fact that...

    Hi Happy Man!

    The algorithm uses the fact that reversing the bits of a value is the same as splitting the value in two parts (say hi_lo -> hi, lo), reverse the bits of both parts (lets call those...
  2. Replies
    7
    Views
    3,998

    Err... Well, I was assuming that MortalMonkey...

    Err...

    Well, I was assuming that MortalMonkey was using an old-fashioned "16-bit" legacy compiler to create his utility. Moreover, I mentioned Ralf Brown's interrup(t) list, not because he should...
  3. Replies
    7
    Views
    3,998

    Hi! The command.com that is executed (spawned)...

    Hi!

    The command.com that is executed (spawned) by the system function inherits the console, so stdout and stderr write to the same console. And stdin reads from the same console, so PAUSE will...
  4. Replies
    7
    Views
    3,998

    Sorry, that won't work. The system function...

    Sorry, that won't work.

    The system function starts a new version of command.com. Command.com sets the environment variable in it's own copy of the environment, and than exits. This is exactly what...
  5. Thread: Swap Byte

    by alex
    Replies
    24
    Views
    5,306

    More possibilities...

    Hi all!

    Just one question: what happened to the "standard" solution for this problem?


    unsigned char quux(unsigned char value)
    {
    value = ((value&0xaa)>>1) | ((value&0x55)<<1);
    value =...
  6. Thread: Best Linux Game?

    by alex
    Replies
    7
    Views
    1,729

    I'ld like to nominate these: pysol frozen...

    I'ld like to nominate these:

    pysol
    frozen bubble
    freeciv
    adonthell-wastesedge
    lbreakout2
    tuxracer
    ltris
    jumpnbump ;-)
  7. Thread: colorz

    by alex
    Replies
    9
    Views
    1,592

    Hi, The program works perfectly here:...

    Hi,

    The program works perfectly here: displaying colored text in the upper-left corner of the screen.

    Could you type "echo $TERM" in your terminal, where you are trying to run the program? TERM...
  8. Thread: colorz

    by alex
    Replies
    9
    Views
    1,592

    Hi! Maybe the TERM-variable contains the wrong...

    Hi!

    Maybe the TERM-variable contains the wrong identification string? (type "echo $TERM")

    "xterm" and "linux" support color;
    "vt100" and "vt102" do not.

    alex
  9. Thread: Dumb Terminals

    by alex
    Replies
    2
    Views
    1,968

    Dumb terminals can only display text... If this...

    Dumb terminals can only display text...
    If this doesn't discourage you right away you should try AA-lib (ASCII art library):

    http://aa-project.sourceforge.net/gallery/

    have fun!
    alex
  10. Thread: STDIN stdout

    by alex
    Replies
    2
    Views
    3,049

    I guess you could use fileno(stdin). alex

    I guess you could use fileno(stdin).

    alex
  11. Thread: sscanf debug help

    by alex
    Replies
    11
    Views
    2,665

    Hi! Try to understand this: char...

    Hi!

    Try to understand this:



    char line[]="This is an order for (XYZ-2) some order";
    char a[50], c[50]; int b, n;

    n = sscanf(line,
  12. Replies
    5
    Views
    1,445

    I have not tried the code you link to, but it...

    I have not tried the code you link to, but it seems to me that you could run into trouble if you run it on an operating system that has differences in handling of text-files and binary files (such as...
  13. Replies
    10
    Views
    1,081

    Just another variation on the same theme... ...

    Just another variation on the same theme...


    #include <stdio.h>

    int main(void)
    {
    char mytext[] = "abcdef[12345]";
    char number[20];
    int test;
  14. Replies
    6
    Views
    1,287

    Hi! The problem, more specific, is that...

    Hi!

    The problem, more specific, is that writing anything in the lower-right corner of the screen will cause the cursor to advance to the next line... Just don't write anything in column 80 of line...
  15. Replies
    181
    Views
    58,495

    Hi! For any polynomial ... + c x^2 + b x + a...

    Hi!

    For any polynomial ... + c x^2 + b x + a (a and b nonzero), the sum of the reciprocals of the roots is equal to -b/a. It's that simple if you have that kind of black knowledge! If you want to...
  16. Replies
    181
    Views
    58,495

    7/12 greetinx, alex

    7/12

    greetinx,
    alex
  17. Thread: Idea

    by alex
    Replies
    16
    Views
    4,418

    Hi! So you want a mouse with integrated...

    Hi!

    So you want a mouse with integrated track-ball?
    interesting idea...
    I have seen mice with two wheels, but both moved in the same direction.

    greetinx,
    alex
  18. Replies
    4
    Views
    1,661

    mplayer v0.90preX (compiled from source) ...

    mplayer v0.90preX (compiled from source)

    http://www.mplayerhq.hu/homepage/



    alex
  19. Replies
    4
    Views
    1,375

    Just convert them to the almost equivalent ISO...

    Just convert them to the almost equivalent ISO 9899 functions:

    bzero(a, b) -> (void)memset(a, 0, b)
    bcopy(a, b, c) -> (void)memcpy(b, a, c)

    alex
  20. Replies
    39
    Views
    3,250

    Hi! Most C-code can be compiled on C++...

    Hi!

    Most C-code can be compiled on C++ compilers, but there are incompatibilities, for example:



    #include <stdio.h>

    int main(void)
    {
  21. Thread: RTC problems

    by alex
    Replies
    2
    Views
    2,644

    Hi! I don't think I have the answer, but I...

    Hi!

    I don't think I have the answer, but I don't think your (computers) battery is empty, because then the bios would probably warn about checksum errors. It's also very strange that the minutes...
  22. Replies
    2
    Views
    1,745

    Hi! We'll have to advertise the awk filter!...

    Hi!

    We'll have to advertise the awk filter! :cool:
    (I just replied to similar question)

    awk '{if(NR>1 && x!=$1) print ""; print $2; x=$1}' groupfile

    is this what you want?

    alex
  23. Thread: sorting???

    by alex
    Replies
    3
    Views
    1,321

    Hi! First, I would replicate the key in front...

    Hi!

    First, I would replicate the key in front of each line (using awk, for example).
    Then do a stable sort on this key (treating it as a number, and reversing the sort order)
    Finally, I would...
  24. Looks like you forgot -lftp: gcc program.c...

    Looks like you forgot -lftp:

    gcc program.c -lftp

    alex
  25. Replies
    8
    Views
    2,699

    Hi! Linux is great... I use it most of the...

    Hi!

    Linux is great... I use it most of the time. (Except for one at home, because It only has an external usb modem that is not supported by linux, because the microcode is uploaded at...
Results 1 to 25 of 132
Page 1 of 6 1 2 3 4