Search:

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

Page 1 of 3 1 2 3

Search: Search took 0.03 seconds.

  1. Replies
    70
    Views
    4,067

    Re: Why is backing up so hard?

    To me rsync isn't a backup solution. It is great for mirroring data for redundancy reasons (to prevent data loss if a hard drive fails etc.) but it doesn't allow to e.g. retreive a file you deleted 3...
  2. Replies
    102
    Views
    6,218

    Re: [MEGAPOLL] What Media Player do you use?

    AUDIO PLAYER
    Amarok [8]
    Ario [2]
    Audacious [9]
    Banshee [2]
    Clementine [5]
    Deadbeef [1]
    Exaile [1]
    Foobar2000 [1]
    Gmpc [1]
  3. Replies
    4
    Views
    813

    [SOLVED] Re: My first bash script, help needed.

    Hello again,

    If your script is working then great, however I do agree that it is odd that using a single '=' worked as that is the assignment operator whereas '==' is the string comparison...
  4. Replies
    4
    Views
    813

    [SOLVED] Re: My first bash script, help needed.

    Hello,

    I think the problem may be that the output of the synclient command has multiple spaces/tabs in its output and the string your comparing it to does not. I've modified your script to strip...
  5. Re: Futurama "Home Sweet Home" in different programming languages

    AWK


    awk 'BEGIN {for (;;) {print "Home\nSweet"} }'

    -weresheep
  6. Replies
    4
    Views
    380

    Re: awk assistance

    Yeah, I do that myself. I've only been writing awk scripts (other than things like awk '{print $2}') for a short while so anything non trivial I tend to stick in a file so I can refer back to it...
  7. Replies
    4
    Views
    380

    Re: awk assistance

    A slight variation on what DaithiF posted. No need to use sed when awk can strip $ from the input string just as easily. You can copy the below code into a file e.g. products, make the file...
  8. Replies
    276
    Views
    21,605

    Poll: Re: What Music Player Do You Use?

    I used to use Rhythmbox but found it to be really slow and the lack of gapless playback was annoying. I then tried CMUS and quite liked it but found it a bit too complicated. I then moved to MOC and...
  9. Replies
    83
    Views
    5,566

    Re: Old PC users, chat here!

    I love these threads!

    I currently have a Desktop and a Server both of which would be considered obsolete my most people.

    My Desktop is a Dell Optiplex GX110 with a Pentium III @ 733MHz. It has...
  10. Replies
    7
    Views
    4,682

    [SOLVED] Re: C: Question about getchar()

    Yeah, this is how the C I/O library works. The abstraction that it presents to the C programmer is reading and writing entire lines. Getchar and friends simply read from the libraries buffer.
    ...
  11. Replies
    13
    Views
    878

    Re: Need help on C program

    Hi,

    I got your code working and made some changes and added some notes to what I think are important points.

    Compiles with...

    gcc -Wall -ansi -pedantic car.c

    Hope it helps.
    -weresheep
  12. Re: Pentium I 100MHz, 70-80MB RAM - Distro Advice?

    I second blueturtl's advice.

    I have a computer with a Pentium 133MHz running Debian stable. It is a headless server that I log into with SSH at home from my desktop or over the Internet while at...
  13. Replies
    2
    Views
    258

    Re: Bash problems

    Hello,

    From the script you posted, it seems you want to update each OGG file such that the 'COMMENT' tag(s) are removed. Is this correct?

    Assuming yes (if no, I need more info), here is an...
  14. Replies
    3
    Views
    1,815

    Re: C++ Allowing Command Line Input

    Hello,

    On linux there is a system call called poll()* that allows you to wait for activity on a file descriptor. Standard input happens to be a file descriptor so it is possible to use poll() to...
  15. Re: I have two and need to get data from that using loop

    Okay,

    How about...



    paste file1 file2 | while read LINE ; do
    f1=$(echo $LINE | awk '{print $1}')
    f2=$(echo $LINE | awk '{print $2}')
  16. Re: I have two and need to get data from that using loop

    Hello,

    I'm not sure if I understand what exactly you are asking for but try this...


    paste file1 file2

    and see
  17. Replies
    1,480
    Views
    184,220

    Re: April 2009 Desktop Screenshot Thread

    Not posted a screenshot in a long time. Click for big.

    Busy (if you can call it that :D )
    http://www.grassfield.co.uk/image/pc07sm.png

    Clean
    http://www.grassfield.co.uk/image/pc08sm.png

    ...
  18. Replies
    14
    Views
    2,113

    Re: multiple definitions in C

    Hello again,

    I've restructured your code a bit and got it compiling (I've also reformatted it into my preferred style to make it easier for me. Appologies if this makes things confusing).
    ...
  19. Replies
    14
    Views
    2,113

    Re: multiple definitions in C

    I seem to have gotten myself confused over this issue. I refreshed my memory on the subject and see what you're saying. I don't know why I though #ifndef's would have an effect with multiple source...
  20. Replies
    14
    Views
    2,113

    Re: multiple definitions in C

    I think I see the problem.

    You're including badminton.h in both badminton.c and main.c but badminton.h declares a variable (an array of function pointers). This means when main.c is passed to the...
  21. Replies
    10
    Views
    658

    Re: Problem with C

    I tend to compile my C programs with "-Wall -ansi -pendantic" which means C++/C99 style single line comments are not allowed. And as Arylon pointed out it is possible to conditionally remove code...
  22. Replies
    10
    Views
    658

    Re: Problem with C

    Hello,

    I've reformatted your code and got it working. I've added some comments in various places explaining the changes. I find it very useful to have the man pages for the standard C library...
  23. Re: SEGMENTATION FAULT even though the defined variable is very small

    Without the input data it is hard to debug your program. I don't think the problem(s) lie with the declaration of a 50 character array though. As a starting point I would look at the variable i. It...
  24. Replies
    8
    Views
    346

    Re: Why does this segfault?

    Just for completeness, its good practice to check the return value of system/library calls (well, ALL function calls that might not succeed). Malloc might not return a valid pointer.



    int *p =...
  25. Replies
    148
    Views
    9,193

    Re: Why to love/hate shell scripting

    From the brief description, it sounds like Erlang may be a better fit to your problem than Java (threads suck!) :)

    I'm not sure what "multithreaded parallelized" means.

    To clarify, I am not...
Results 1 to 25 of 74
Page 1 of 3 1 2 3