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...
Type: Posts; User: weresheep; Keyword(s):
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...
AUDIO PLAYER
Amarok [8]
Ario [2]
Audacious [9]
Banshee [2]
Clementine [5]
Deadbeef [1]
Exaile [1]
Foobar2000 [1]
Gmpc [1]
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...
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...
AWK
awk 'BEGIN {for (;;) {print "Home\nSweet"} }'
-weresheep
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...
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...
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...
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...
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.
...
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
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...
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...
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...
Okay,
How about...
paste file1 file2 | while read LINE ; do
f1=$(echo $LINE | awk '{print $1}')
f2=$(echo $LINE | awk '{print $2}')
Hello,
I'm not sure if I understand what exactly you are asking for but try this...
paste file1 file2
and see
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
...
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).
...
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...
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...
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...
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...
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...
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 =...
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...