Heh, also a useless use of uniq. Try sort -u quote*.txt
I use sort|uniq, sed -e, and find|xargs multiple times every day. But you will eventually hit the limits given enough experience, and then a mini-program is required. For example, if you want to retain the original order of lines as they are seen, with perl it's just:
(based on "4.6. Extracting Unique Elements from a List" from Perl Cookbook)
This can be modified to filter unique lengths, or substrings, or patterns, just by changing $seen{$_} to $seen{lc $_} or whatever you need. If you want sorting the sort -u does, change "print @uniq" to "print sort @uniq". And hey, it's still on the command line!
I have a really geeky body, tall and skinny with awkward movements and
tending to hunch over. I tried Taekwondo a few times, but always had to
give up after a few months. With not much muscle mass around my joints, the
repeated punching and kicking would cause increasing joint pain in my knees
and elbows.
I started with Aikido recently, and it is so much better a fit for me, both
physically and mentally. The basics are foot and hip movements to turn
one's body, along with posture and awareness of one's center. Just
learning this made a noticeable difference in my balance and posture. I no
longer trip over things or run into walls, because I feel more able to
maneuver around things and not bumble through them. I also feel less of a need to
slouch and stoop to feel balanced. Learning to roll (i.e., a kind of somersault) was hard at first, but surprisingly, it has strengthened my hips and outer legs (and indirectly, my knees) in a way that years of running and stairmaster never did. The various techniques require at least some
concentration even at my beginner level. After an hour lesson, I am much more exhausted
mentally than physically.
Also, maybe I just got lucky with a good sensei, but the sensei and the people in my class
are incredibly friendly and helpful (and patient). For me as a introvert with difficulties
in social situations, this is a good environment to be in. Our sensei emphasizes cooperation
with one's sparring partner, while gently challenging them in a way that is appropriate to their
level, so that the other's skills and confidence can improve.
Maybe this is just my particular class as well, but almost all the students are the geeky type,
with the same body type and social ineptness as I do (I mean this in a kind way). I have found
more kindred spirits there than I would at a Linux convention!
I agree with the awful roles he's done. I thought Jerry Lewis was annoying, and Carrey's humorous roles were just a lame copy. When I first heard he was going to be in Charlie Kaufman's next movie, Eternal Sunshine of the Spotless Mind, I was fearful. But I just saw the trailer today. Damn, that looks good.
You want ssh?/etc/rc.d/sshd start
Apache?/etc/rc.d/rc.httpd start
Samba?/etc/rc.d/rc.samba start
Same goes for nfsd, inetd, gpm, cups, bind, acpid, etc...
rc.6 for restart, rc.0 is statically linked to it to make sure they're always the same.
rc.S is called on runlevel 1 by default, as rc.M is called for 3.
True. And IIRC many of these are either new standard packages or were removed from rc.inet[12] starting with Slackware 9.0 (so the original question is somewhat moot). However, there are still some services still buried with rc.inet[12]. If you never change services except by rebooting or changing runlevel, it doesn't make much difference. But say you need to restart DHCP after a reconfig, for example. Here are one set of steps to do it:
First, try kill -HUP $(pidof dhcpcd) and pray it uses that signal to reread its configuration. Otherwise, a manual kill/start is needed (see next steps).
kill $(pidof dhcpcd)possibly with a ps first if you weren't feeling lucky)
Try to remember the correct syntax for restarting the daemon. Look it up in the rc scripts, just to be sure
Hmm, which rc file is it in? grep -l dhcpcd/etc/rc.d/rc.*
Aha, it's in rc.inet1less/etc/rc.d/rc.inet1
It looks like/sbin/dhcpcd -t 10 ${DHCP_HOSTNAME} -d eth0 is the syntax. Time to scroll up and find what the value for DHCP_HOSTNAME is
Maybe there's a better approach to doing quick restarts than the way I have suggested above. But personally, I find it much easier to have a/etc/rc.d/rc.service restart command do it in one shot. BTW, I also like the Solaris approach of hard links from rc*.d to init.d. It means I can do all my runlevel changes with filesystem commands, and never need to edit a file (and possibly introduce a syntax error) once it's created. But that method just gives people fits, so I won't go into it.
ROTR was definitely deserving of awards. But I was also glad to see Lost in Translation also a big winner. It's odd they called it a comedy, but it did allow both movies to win. It wasn't a movie for everyone, but I appreciated the quiet subtleties of it, and was amazed by the quality of it. Even more impressive is that she both wrote and directed, at the age of 32.
Also, of interest to Slashdot readers, The Office won for Best Comedy series and Ricky Gervais for Best Comedy actor. At least it wasn't that god-awful Will and Grace.
That was precisely the point. The problem is that "less expensive" compares expensiveness; i.e., a positive measure of cost with zero as the reference. The phrase "X times less" just doesn't make sense, unless you are comparing both values to a third value which is higher. It should have been phrased as "1/10th of the cost", which would have avoided this whole thread.
I consider myself a typical geek, and I love fixing people computers. I have the chance to leave the house and vist someone else, yet I'm too busy working to have the agonizing social interaction with them. It's the best of both worlds!
After using tcsh for about 5 years, I gradually moved to bash everywhere. For me, there were a few annoyances I was glad to be rid of:
ability to redirect stdout and stderr separately: ( cmd > file.out 2> file.err)
nested command substitution, when using $() instead of ``: ls -aFl $(find $(locate xterm) -type f -perm -a+x)
More straightforward syntax, with the possibility of fitting while/if/case blocks on a single command line (especially useful for command substitutions) for file in $files; do mv $file $file.old && echo "$file moved"; done
Otherwise, I have made my shell environments pretty similar, to the point that I wouldn't readily notice the difference.
Fortunately, my CS degree required very few project grades like this. Each would end up either myself doing everything so we could get a good grade, or getting a crappy grade because no one wanted to lead OR follow (or do work without any individual recognition). A group-graded assignment just reduces the amount your final grade reflects your knowledge in the subject, and increases the amount that is due to the luck of who you got into your project with. It's unfortunate GPA's are so important, but that's the system we have.
If a school wants to infuse team and leadership skills, then assign a project management course or a business course. A teacher shouldn't decide on his own to include a group project in an Operating Systems course or a Databases course because he has the notion that CS students are too introverted and need to be reformed. It's also wrong to think that group assignments are for tasks too difficult for a single person; they generally are MORE time-consuming because of the extra time needed to coordinate.
I built a computer for some family friends of mine, so their kids could use it for school. It had Windows 2000, and I installed Open Office. The machine now sits unused, because the teachers wouldn't accept homework not created by MS Word*.
(*I did show them how to save files in MS Word format, but maybe they forgot)
Re:SCO.TXT w/ English trans
on
SCO Roundup
·
· Score: 5, Funny
Do you know what "6X7liA1zmJhyA" means? I have a Czech dictionary, but I douldn't find that word in there.
This reminds me of strategies for programming Ro-Sham-Bo (Rock, Scissors, Paper). The "safest" strategy would be to randomly choose rock, scissors, or paper every time. Your winning percentage would approach 50%, but so would your opponent's. Ah, but if you're competing against other pairs of players, and they're all following that strategy, then it's just dumb luck who will win. For there to be any point to the competition, you have to assume your opponent has some non-random strategy, such that you could beat it and get >50% wins if you could figure out what it was. Of course, your opponent is making the same assumptions about you. And so begins a world of strategies on how to make your opponent think you're being predictable, when you're really just fooling him into making a choice you can predict. Of course, if your opponent knows you're fooling him, he will then know you're intention and gain the advantage. And so on and so on (similarities to the Iocaine Powder sequence from the Princess Bride are more than coincidence).
I just wanted to point that out as a counter to the posts advocating a purely statistical approach in which the program folds anything not likely to win. In the optimal case (there is no house rake, no ante, and no bluffing) it is as interesting as flipping a coin to see who wins. And even a small amount of bluffing will cause it to lose.
Actually, CNN online had one of their quick polls on "Is torture ever justified?" 45% of the respondents said yes.
Wrong island. Perhaps you were thinking of Sealand. Because that place really is behind 3 feet of concrete.
Useless Use of Cat. sort quote*.txt | uniq
Heh, also a useless use of uniq. Try sort -u quote*.txt
I use sort|uniq, sed -e, and find|xargs multiple times every day. But you will eventually hit the limits given enough experience, and then a mini-program is required. For example, if you want to retain the original order of lines as they are seen, with perl it's just:
(based on "4.6. Extracting Unique Elements from a List" from Perl Cookbook)This can be modified to filter unique lengths, or substrings, or patterns, just by changing $seen{$_} to $seen{lc $_} or whatever you need. If you want sorting the sort -u does, change "print @uniq" to "print sort @uniq". And hey, it's still on the command line!
Noooooooooooo! Think of the children. Actually, think of the parents. These channels are the ultimate pacifier.
I have a really geeky body, tall and skinny with awkward movements and tending to hunch over. I tried Taekwondo a few times, but always had to give up after a few months. With not much muscle mass around my joints, the repeated punching and kicking would cause increasing joint pain in my knees and elbows.
I started with Aikido recently, and it is so much better a fit for me, both physically and mentally. The basics are foot and hip movements to turn one's body, along with posture and awareness of one's center. Just learning this made a noticeable difference in my balance and posture. I no longer trip over things or run into walls, because I feel more able to maneuver around things and not bumble through them. I also feel less of a need to slouch and stoop to feel balanced. Learning to roll (i.e., a kind of somersault) was hard at first, but surprisingly, it has strengthened my hips and outer legs (and indirectly, my knees) in a way that years of running and stairmaster never did. The various techniques require at least some concentration even at my beginner level. After an hour lesson, I am much more exhausted mentally than physically.
Also, maybe I just got lucky with a good sensei, but the sensei and the people in my class are incredibly friendly and helpful (and patient). For me as a introvert with difficulties in social situations, this is a good environment to be in. Our sensei emphasizes cooperation with one's sparring partner, while gently challenging them in a way that is appropriate to their level, so that the other's skills and confidence can improve.
Maybe this is just my particular class as well, but almost all the students are the geeky type, with the same body type and social ineptness as I do (I mean this in a kind way). I have found more kindred spirits there than I would at a Linux convention!
I agree with the awful roles he's done. I thought Jerry Lewis was annoying, and Carrey's humorous roles were just a lame copy. When I first heard he was going to be in Charlie Kaufman's next movie, Eternal Sunshine of the Spotless Mind, I was fearful. But I just saw the trailer today. Damn, that looks good.
True. And IIRC many of these are either new standard packages or were removed from rc.inet[12] starting with Slackware 9.0 (so the original question is somewhat moot). However, there are still some services still buried with rc.inet[12]. If you never change services except by rebooting or changing runlevel, it doesn't make much difference. But say you need to restart DHCP after a reconfig, for example. Here are one set of steps to do it:
Maybe there's a better approach to doing quick restarts than the way I have suggested above. But personally, I find it much easier to have a /etc/rc.d/rc.service restart command do it in one shot. BTW, I also like the Solaris approach of hard links from rc*.d to init.d. It means I can do all my runlevel changes with filesystem commands, and never need to edit a file (and possibly introduce a syntax error) once it's created. But that method just gives people fits, so I won't go into it.
ROTR was definitely deserving of awards. But I was also glad to see Lost in Translation also a big winner. It's odd they called it a comedy, but it did allow both movies to win. It wasn't a movie for everyone, but I appreciated the quiet subtleties of it, and was amazed by the quality of it. Even more impressive is that she both wrote and directed, at the age of 32.
Also, of interest to Slashdot readers, The Office won for Best Comedy series and Ricky Gervais for Best Comedy actor. At least it wasn't that god-awful Will and Grace.
That was precisely the point. The problem is that "less expensive" compares expensiveness; i.e., a positive measure of cost with zero as the reference. The phrase "X times less" just doesn't make sense, unless you are comparing both values to a third value which is higher. It should have been phrased as "1/10th of the cost", which would have avoided this whole thread.
[Bill072] If you see Kaye, you tell her hi!
[Bob_421] OK- see you, auntie!
I consider myself a typical geek, and I love fixing people computers. I have the chance to leave the house and vist someone else, yet I'm too busy working to have the agonizing social interaction with them. It's the best of both worlds!
LPC is an interpreted language used for writing MUDs, and is very similar to C/C++ syntax.
I'm typing this response while wearing my Hulk Hands, you insensitive clod!
The alt.folklore.urban FAQ has categorized this as tentativeley false, but not conclusively proven:
Fb.Flashing your headlights will cause a traffic light to change faster.
And how effective would this be in the daytime, anyway?
What, no bash-vs-tcsh flames yet?
After using tcsh for about 5 years, I gradually moved to bash everywhere. For me, there were a few annoyances I was glad to be rid of:
( cmd > file.out 2> file.err)
ls -aFl $(find $(locate xterm) -type f -perm -a+x)
for file in $files; do mv $file $file.old && echo "$file moved"; done
Otherwise, I have made my shell environments pretty similar, to the point that I wouldn't readily notice the difference.
Fortunately, my CS degree required very few project grades like this. Each would end up either myself doing everything so we could get a good grade, or getting a crappy grade because no one wanted to lead OR follow (or do work without any individual recognition). A group-graded assignment just reduces the amount your final grade reflects your knowledge in the subject, and increases the amount that is due to the luck of who you got into your project with. It's unfortunate GPA's are so important, but that's the system we have.
If a school wants to infuse team and leadership skills, then assign a project management course or a business course. A teacher shouldn't decide on his own to include a group project in an Operating Systems course or a Databases course because he has the notion that CS students are too introverted and need to be reformed. It's also wrong to think that group assignments are for tasks too difficult for a single person; they generally are MORE time-consuming because of the extra time needed to coordinate.
Was this Leo Szilard?
I built a computer for some family friends of mine, so their kids could use it for school. It had Windows 2000, and I installed Open Office. The machine now sits unused, because the teachers wouldn't accept homework not created by MS Word*.
(*I did show them how to save files in MS Word format, but maybe they forgot)
Do you know what "6X7liA1zmJhyA" means? I have a Czech dictionary, but I douldn't find that word in there.
The Animusic DVD is pretty cool. I had seen it on Tech TV's Eye Drops before, but my spouse saw the infomercial and bought it.
Since we're so concerned about saving a few bytes, shouldn't it be WC?
... Arthur Andersen accountants and Enron executives were reported to have pooped their pants upon hearing this.
This reminds me of strategies for programming Ro-Sham-Bo (Rock, Scissors, Paper). The "safest" strategy would be to randomly choose rock, scissors, or paper every time. Your winning percentage would approach 50%, but so would your opponent's. Ah, but if you're competing against other pairs of players, and they're all following that strategy, then it's just dumb luck who will win. For there to be any point to the competition, you have to assume your opponent has some non-random strategy, such that you could beat it and get >50% wins if you could figure out what it was. Of course, your opponent is making the same assumptions about you. And so begins a world of strategies on how to make your opponent think you're being predictable, when you're really just fooling him into making a choice you can predict. Of course, if your opponent knows you're fooling him, he will then know you're intention and gain the advantage. And so on and so on (similarities to the Iocaine Powder sequence from the Princess Bride are more than coincidence).
I just wanted to point that out as a counter to the posts advocating a purely statistical approach in which the program folds anything not likely to win. In the optimal case (there is no house rake, no ante, and no bluffing) it is as interesting as flipping a coin to see who wins. And even a small amount of bluffing will cause it to lose.