Search:

Type: Posts; User: tehet; Keyword(s):

Page 1 of 6 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    5
    Views
    363

    Re: [script/CLI]Arbitrary reordering of lines

    I did try it offcourse. So I'll need to change the bit after END to my sorting (I think).

    Thanks for your help.
  2. Replies
    5
    Views
    363

    Re: [script/CLI]Arbitrary reordering of lines

    ghostdog, thanks for your reply. Is that a random ordering? I can't figure out how it is reorder.

    I have found a working solution though it's not very pretty:

    #!/bin/bash
    awk '/in/{print...
  3. Replies
    2
    Views
    2,120

    Re: Family or baby games?

    There is KDE Edu. Though I've never used it so I don't know for what age group it is supposed to be. Oh wait, their page says "Our primary focus is on schoolchildren aged 3 to 18".

    I believe it's...
  4. Replies
    5
    Views
    363

    [script/CLI]Arbitrary reordering of lines

    Is there a way to reorder lines in a non-logical way? For example, change

    line1
    line2
    line3
    to

    line2
    line1
    line3
  5. Re: NiN releases new album under CC share alike via bittorrent.

    And this.

    edit: I didn't see this discussion
  6. Replies
    7
    Views
    1,875

    Re: GL: Why is -lGL -lglut required for compiling?

    Compiling a small test program with -nodefaultlibs return

    undefined reference to `printf'
    so that confirms it. Thanks.
  7. Replies
    7
    Views
    1,875

    Re: GL: Why is -lGL -lglut required for compiling?

    Ah, I think I understand :)
    Thanks nvteighen and LaRoza!
  8. Replies
    7
    Views
    1,875

    Re: GL: Why is -lGL -lglut required for compiling?

    As opposed to, lets say, stdlib.h or does gcc silently link in glibc and such by default? Looking At gl.h, glut.h and stdlib.h I think I'm only seeing prototypes but then again, I'm kind of a noob.
  9. Replies
    7
    Views
    1,875

    GL: Why is -lGL -lglut required for compiling?

    Hi,
    How come you need to set these flags in order to compile stuff with GL and GLUT? Why is #include <GL/gl.h> and #include <GL/glut.h> not enough?

    I think I have read an explanation for math.h...
  10. Re: C, client/server: not transmitting or receiving message

    Thanks ruy_lopez, your help is much appreciated. I've cleaned it up a bit and here's the current form:

    /*
    Socket exercise - Stream client
    */

    #include <stdio.h> /* printf, scanf, etc */...
  11. Re: C, client/server: not transmitting or receiving message

    Hmm, nope.

    Without sleep I get 100% CPU load so I thought I throw in a quick and dirty sleep(). [Edit2: strike that. An earlier incarnation of my program did that, the current while() doesn't...
  12. Re: C, client/server: not transmitting or receiving message

    Unfortunately it's not returning any errors on either the client or the server though I have errno.h included in both.

    edit: I'm testing this all locally. Both the client and server run on...
  13. [SOLVED] C, client/server: not transmitting or receiving message

    Hi,
    I'm trying to send the message 'ping' or any other message of 4 chars or less from client.c to server.c. From examples I've found both the send()/recv() and the write()/read() functions but...
  14. Re: NiN releases new album under CC share alike via bittorrent.

    lol, neither do I but it's still interesting and I hope it fares well for them.
  15. NiN releases new album under CC share alike via bittorrent.

    http://ghosts.nin.com/main/faq
    That's nice don't you think?
  16. Re: C, "client.c:36:34: warning: multi-character character constant" and error checki

    Yes it does :D I thought \n was just newline, but it also flushes all the stuff you've been printf-ing to a stdout buffer.
    Though I think you meant to say fflush(stdout), which works. fflush(stdin)...
  17. Re: C, "client.c:36:34: warning: multi-character character constant" and error checki

    If I put fflush in there it works as expected:

    printf("Connecting to remote socket ... ");
    fflush('\0');
    if ((connect(sockfd, (struct sockaddr *)&server_address, sizeof...
  18. Re: C, "client.c:36:34: warning: multi-character character constant" and error checki

    DOH! :lolflag:
    Thanks!

    I'm still a bit confused as to when 0 is zero and when it's NULL.
  19. Replies
    75
    Views
    21,137

    Re: Operating systems used in movies

    Did anyone see the (terrible) pilot of knightrider 2008? They had something flaky going on on the terminals of the truc... erm, plane.
  20. [SOLVED] C, "client.c:36:34: warning: multi-character character constant" and error c

    Hi,

    First question:
    Compiling the code below, either with or without -Wall, I get the following warning:

    $ gcc -Wall client.c -o client
    client.c:36:34: warning: multi-character character...
  21. Replies
    11
    Views
    909

    Re: Why doesn't forum search work?

    # necro-ing this thread and there are many like it

    I can't stand that I didn't think of this earlier, but here goes:
    If you use Konkueror* you can make searching the ubu forums through google a...
  22. Replies
    27
    Views
    5,276

    Re: Ubuntu Cheatsheet

    Yes, that's a proper way to gain root. sudo su as stated in the cheat sheet is a big no-no!
  23. Re: C, pointer to struct: assignment from incompatible pointer type / strcpy segfault

    Because in my broken version char colour[1] produced less compiler warnings than char colour[]. But yah, it's silly :)

    Because I don't know what I'm doing :lolflag:

    Thanks for the help guys!...
  24. C, pointer to struct: assignment from incompatible pointer type / strcpy segfaults

    Hi,
    I'm trying to generate a list of cards (for learning structs and pointers) by looking at example program 5.2. First I make a struct card{} and than a deck of 52 cards. Here deck is an array of a...
  25. Thread: .deb and .rpm

    by tehet
    Replies
    18
    Views
    1,276

    Re: .deb and .rpm

    I'll rephrase: You should only use binary packages that were built for your version of the distro you're using in order to maintain a sane system.
    Building your own binary packages from source for...
Results 1 to 25 of 147
Page 1 of 6 1 2 3 4