Slashdot Mirror


User: chad_r

chad_r's activity in the archive.

Stories
0
Comments
151
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 151

  1. Re:As much as I'd like this to be true... on Firefox Browser On An Upward Trend · · Score: 2, Funny
    Netscape 4: below 1% and falling
    Arggggggh! Can we just take away the internet connection for these people already??
  2. Re:Big time. on Digital Cameras Change War Photo-Journalism · · Score: 1

    Actually, CNN online had one of their quick polls on "Is torture ever justified?" 45% of the respondents said yes.

  3. Re:is anyone else a little hesitant? on Microsoft PR: Looking Under The Hood · · Score: 1

    As far as I'm concerned they can firewall off the .cx domain behind three feet of reinforced concrete.

    Wrong island. Perhaps you were thinking of Sealand. Because that place really is behind 3 feet of concrete.

  4. Re:Why shell? on Wicked Cool Shell Scripts · · Score: 2, Informative

    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:

    perl -e '@uniq = grep { ! $seen{$_} ++ } <>; print @uniq' quote*.txt
    (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!

  5. Re:The list of channels in play... on Viacom and DishNetwork Battle On Air Over Contract · · Score: 1
    Nickelodeon/Nick at Night (Both East and West versions),br> Noggin/The N

    Noooooooooooo! Think of the children. Actually, think of the parents. These channels are the ultimate pacifier.

  6. Re:One word - Karate on Building Social Skills in Gifted Youths? · · Score: 1

    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!

  7. Re:Missing Data! on New Cast Information For 'Hitchhiker's' Movie · · Score: 2, Interesting

    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.

  8. Re:Slack's scripts are fine... on Which Style Init Scripts Do You Prefer? · · Score: 2, Interesting

    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.inet1 less /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
    • Nope, DHCP_HOSTNAME isn't defined. Issue /sbin/dhcpcd -t 10 -d eth0

    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.

  9. Re:TFN Episode III "Review from the future"! on Footage From Star Wars: Episode III · · Score: 1
    Returning cast for the final theatrical Star Wars movie include ... Wayne Pygram (Tarkin).
    Lucas, you bastard!! Now I may actually have to see this movie. He won't be in Scorpius costume, but I can close my eyes and imagine.
  10. Other things the GGs did right on Return of the King Wins Four Golden Globes · · Score: 1

    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.

  11. Re:Great choice of words... on Microsoft Rolls Out New Anti-Linux Ad Campaign · · Score: 1

    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.

  12. Re:On random punctuation on Security Predictions of 2004 · · Score: 1

    [Bill072] If you see Kaye, you tell her hi!

    [Bob_421] OK- see you, auntie!

  13. Re:This is why I don't fix for family on Wasting Time Fixing Computers · · Score: 1

    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!

  14. Re:Why not interpreted C++, instead? on Perl is Sweet Sixteen · · Score: 1

    LPC is an interpreted language used for writing MUDs, and is very similar to C/C++ syntax.

  15. Re:Kids stuff...not nerd stuff on We Are All Nerds Now · · Score: 1

    And who buys Spideman and Hulk *toys*? Kids!

    I'm typing this response while wearing my Hulk Hands, you insensitive clod!

  16. Re:We have light-sensitive systems in the UK on Traffic Light Control For The Masses · · Score: 1

    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?

  17. My brief summary on Switching from tcsh to bash? · · Score: 2, Informative

    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:

    • 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.

  18. Re:Not just scientists on Could Isaac Newton Get a Faculty Job? · · Score: 1

    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.

  19. Re:Hungary is EVIL I tells ya! on Edward Teller Passes Away At 95 · · Score: 1

    Was this Leo Szilard?

  20. Re:A letter to Jon's Parents on Microsoft to Build High School in Philadelphia, PA · · Score: 1

    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)

  21. 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.

  22. Re:You brought it on yourself on Roomba Competitor Slightly Lacking · · Score: 1

    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.

  23. Re:Slow news day? on Flavor vs. Flavour · · Score: 1

    Since we're so concerned about saving a few bytes, shouldn't it be WC?

  24. In related news... on Picking Up the Pieces · · Score: 5, Funny

    ... Arthur Andersen accountants and Enron executives were reported to have pooped their pants upon hearing this.

  25. Ro-Sham-Bo on Artificial Intelligence in Poker · · Score: 2, Insightful

    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.