Slashdot Mirror


User: YogSothoth

YogSothoth's activity in the archive.

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

Comments · 86

  1. Re:Hmm. on Nimoy May Be the Star of the Next Trek Film? · · Score: 3, Informative

    Hey Wombat,

          As far as I know, this is the scoop on the neck pinch ...

          It was invented for the episode "The Enemy Within" by Leonard Nimoy, who felt that Spock was too dignified to render someone unconscious by striking them over the head with the butt of a phaser.

    This comes from Memory Alpha but I recall reading the same explanation 20+ years ago so I think it's likely the correct one.

  2. Re:Has stopped? It never started. on Vista Indicates A Shift in Microsoft's Priorities · · Score: 5, Insightful

    Excellent, excellent comment. If MicroSoft had simply realized from the beginning that they needed to treat *all* incoming content as hostile until proven otherwise they'd have avoided so many of these mistakes.

    Personally, I think they've always had a "not invented here" mentality and for that reason, didn't bother to study the lessons of those who'd been dealing with the internet for ages before it exploded in popularity.

    There's a reason java applets (lame as they were) weren't associated with the type of security problems we've seen over and over from MicroSoft. Sun understood the "all incoming content should be treated as hostile" principle and sandboxed applets by design from the very beginning.

    I've often wondered why some enterprising bottom feeder ... erm ... lawyer didn't take these assholes to court in a class action suit for the billions of dollars in damages their idiotic design choices directly caused.

  3. Re:Quick Learning on C · · Score: 1

    [in java] "Hello, World" takes a page of code!

    Exhibit A

    #include <stdio.h>

    int main()
    {
    printf("Hello World\n");
    return(0);
    }

    Exhibit B

    public class hello
    {
    public static void main(String args[])
    {
    System.out.println("Hello World");
    }
    }

    Have you ever actually programmed in java?

  4. Re:=) on Cracking Crypto To Get Into College · · Score: 1

    #include

    int main()
    {
    int sum = 0;

    for(int i = 1; i <= 1000000; i ++)
    for(int value = i; value > 0 && (sum += value % 10); value /= 10)
    ;

    cout << "sum: " << sum << endl;

    return(0);
    }

  5. Re:So was the space program on Search for Terrestrial Intelligence · · Score: 1

    At its peak size (in the 60's), nasa's budget never even amounted to any more than 1% of the GNP and economic research shows each dollar spent on R&D repays itself 7 times over on average over an 18 year period. Perhaps this article will prove enlightening.

    What I think is a waste of time is a "live for today" mentality that is so narrow it categorically rejects any pursuit that does not produce a profit immediately.

  6. Re:US anti-terror laws on DOJ Already Monitoring Cable Internet Traffic · · Score: 1
    I'm not sure I would agree with your claim that "laws on human rights and free speech prevail" in the countries/situations you mention, a quick search on google turns up ...
    • In Spain, authorities can shut down newspapers and jail editors if they feel the publications defend Basque terrorists. (link)
    • And regarding the UK/IRA ...
      • ... permits a police officer to arrest without a warrant a person whom she or he has reasonable grounds to suspect of being guilty
      • persons charged under the EPA or PTA are tried in Diplock courts by a single judge sitting without a jury
      • a detainee can be held for up to seven days without charge
      (link)

    This isn't to knock the UK or Spain (both wonderful countries) it's mainly to point out that pretty much all countries react the same way to terrorism

  7. Re:Uh... on Intel's New Compiler Boosts Transmeta's Crusoe · · Score: 1

    well, here's some C code - how does your C++
    fare when trying to compile it?

    typedef struct
    {
    int template;
    int new;
    int class;
    int throw;

    } SomeStruct;

  8. Re:Version inflation on Mandrake 8.0 Beta Released · · Score: 1
    Fair enough, I definitely remember being exceedingly underwhelmed with ESR's behavior after he became an instant "millionaire" so I certainly can't begrudge you that one ;-).

  9. Re:Version inflation on Mandrake 8.0 Beta Released · · Score: 1
    You know Zico, after seeing about your 15th post whose general theme is "va linux's stock has tanked, ha ha ha" I've been finally become curious enough that I have to ask you why in the world you have such an axe to grind on this topic.

    Before you reel off a kneejerk response I'd like you to actually go back and look at your posting history over the last few months or so. Notice how many times the va linux stock issue comes up in your posts (note also how many times you just flat out shoehorn it in whether it has anything to do with the topic at hand or not).

    You are seriously disturbed, dude - a normal person just doesn't sling bile and vitriol about other peoples' misfortunes with this level of consistency and enthusiasm. I have no idea why you are the way you are - but I have once encountered people whose behavior is somewhat parallel to yours - you probably know them too, the people who gloated incessantly back in high school when someone else's relationship floundered and never missed an opportunity to heap sarcasm and cynicism on the concept of relationships in general.

  10. Re:I want... on High Tech Medical Clinics? · · Score: 1
    Man, you aren't kidding. The last time I went to see my doctor my appointment was for 4:15 and I actually ended up being seen about 5:30. I told the doctor: "I am a software developer. Suppose you wanted some software written and I asked you to meet me at my office at 9:00 a.m. to discuss the project ... you arrive on time and end up sitting in the reception area until 10:15 - what would be your reaction?".

    Firstly, I think a lot of people are reluctant to bring up this issue with their physicians but I'm a forthright sort of person and now that I'm a contractor I'm additionally substantially more aware of how my time is expended (and on this day I *could* have worked an additional hour for a client rather than sitting in the waiting room). This costs me money and I don't like it. I would think that it would be a simple matter of:

    • Begin by scheduling as many people for appointments as seems "reasonable" for each day

    • Over time, notice and record the average amount of time wasted by the customer

    • Adjust the number of people scheduled up or down so that the average waiting period converges on something sensible, say 15-30 minutes max

    It isn't clear why "high tech" needs to be involved to address this issue but should it assist in eliminating it I'm all for it. I realize estimating is hard (I have to do it in my profession all the time) but over the years I've developed a multiplier that I use to account for interruptions/distractions/unforseen problems and as a result my estimates tend to be pretty accurate - surely the variability involved in seeing patients in a timely fashion could be handled in a similar way :-P

  11. Re:As a write in? on Politics: Harry, The Disastrous & The Unpalatable · · Score: 1

    You Rang?

  12. Re:Campaign money = political corruption on Politics, Endorsements And Privacy · · Score: 1

    Until candidates receive equal and fixed amounts of money to spend on their campaigns...

    Yah, or we could always implement an idea I had some time ago where a candidate's "score" is calculated thusly:


    number of votes received
    score = ------------------------------
    amount of money spent


    Perhaps we'd need to throw in a '+1' and/or and 'abs' into the denominator to discourage jokers from spending zero dollars on their campaign or going into debt but you get the idea ;-).

    This is one of those ideas where you think: "Haha, that's funny" but after giving it some thought you begin to wonder if it might actually work. Anyway, should generate some interesting discussion.

  13. Re:The Advances of PHP Documentation on Two Books On Programming With PHP · · Score: 2

    ack, I mean of course 'error_reporting' not 'error_handling'. Ah well, since I'm responding to my own post here's some more sample code:

    <?
    error_reporting(E_ALL);
    $var = "foo";

    print($vra . "<BR>\n");
    ?>
    Without the error_reporting(E_ALL) you get nothing but with it you get:

    Undefined variable: vra in /home/jdumas/public_html/test.php on line 5.

    Just what your looking for eh? Also, php4 has a (largely undocumented as far as I can tell) 'assert' function that is a big win, you can do stuff like this:

    <?
    function expectsAnEvenNumber($theNumber)
    {
    assert('$theNumber % 2 == 0');
    print("The number: $theNumber<BR>\n");
    }

    expectsAnEvenNumber(3);
    ?>
    Which outputs:

    Warning: Assertion "$theNumber % 2 == 0" failed in /home/jdumas/public_html/test.php on line 4

  14. Re:The Advances of PHP Documentation on Two Books On Programming With PHP · · Score: 1

    Hey Azog, with php4 you can do what you describe - here's a little sample code:

    <?
    class base
    {
    function someFunction()
    {
    print("base::someFunction()<BR>\n");
    }
    }

    class derived extends base
    {
    function someFunction()
    {
    base::someFunction();
    print("derived::someFunction()<BR>\n");
    }
    }

    $d = new derived();
    $d->someFunction();
    ?>
    Also, judicious use of error_handling (such as error_handling(E_ALL) helps *somewhat* with respect to the misspelled local variable issue)

  15. Re: High user id on Finding the Right Online Credit Card Merchant? · · Score: 1

    indeed ;-)

  16. Re:Can someone give 1 good reason to use C++ over on Who's Afraid Of C++? · · Score: 1

    I believe I can, however I'm not sure that it'd be wholly on topic ... why don't you email me at: jdumas [at] locutus [dot] kingwoodcable [dot] com and I'll try to sway you ;-). Be warned, though I am a reasonably seasoned C++ programmer I'm no zealot (i.e. I don't 100% disagree with your base assertion). I will show you a number of things you can accomplish with C++ that are either impossible in C or horrendously ugly/difficult so write me if you like ;-)

  17. Re:PDF, Ugh. on From Paper To PDF? · · Score: 2

    That's funny, I generated some pristine pdf documents using php *this* *week* and the pdf library used by php is right here and works wonderfully and comes with source. Things have apparently improved since last you looked, the relevant php documentation is here

  18. Re:This is *not* good at all on Microsoft Break-Up To Be Proposed? · · Score: 1

    I couldn't disagree more - breaking up MicroSoft is absolutely the right answer. Consumers are always hurt when one company controls both the medium and the message. Imagine if your cable company had the option to produce their own content - how likely do you think it would be that you could opt to not include their own programs in your cable package? do you think they'd be able to resist making a bit difficult for you to get their competitors content? This is the problem - AT&T once controlled the medium and the message and history records their abuse of that power and the fact that the subsequent breakup has absolutely improved things for the consumer. The MicroSoft situation is perfectly analagous and will similarly benefit consumers. Additionally, both mini-MS companies will benefit as well - the OS company will make stability and documentation a paramount issue (as the OS will now have to stand on its own merits) while their applications company might now be interested in porting to platforms that they wouldn't have considered before because of their need to protect windows. Everyone is entitled to their opinion of course but the economic reasoning behind this is quite sound - make no mistake this is absolutely the right move and we'll all be better off once it has been done.

  19. Re:c program for finding goldbach values on Grok Goldbach, Grab Gold · · Score: 1

    Eek! Mea Culpa - you are correct, I typed that program in in about 2 minutes compiled it, ran it and didn't bother to examine the output too carefully - oh well, that's what one gets for hubris ;-). This story's a bit old now but if you still care drop me a line and I'll send you the corrected version ... sorry about that ;-).

  20. c program for finding goldbach values on Grok Goldbach, Grab Gold · · Score: 1

    certainly not rocket science but since we're on the topic I thought folks might enjoy it

    #include <stdio.h>
    #include <limits.h>
    #include <math.h>

    static int isPrime(int x)
    {
    int result = 1;

    if(x > 1)
    {
    int middle = sqrt((double)x);
    int i = 0;

    for(i = 2; result && i < middle; i ++)
    if(x % i == 0)
    result = 0;
    }
    else
    result = 0;

    return(result);
    }

    int main(int argc, char **argv)
    {
    int i = 0;

    for(i = 4; i < INT_MAX; i += 2)
    {
    int j = 0;
    int found = 0;

    for(j = 2; !found && j < i; j ++)
    if(isPrime(j) && isPrime(i - j))
    found = 1;

    if(found)
    printf("%d = %d + %d\n", i, j, i - j);

    else
    printf("Goldbach Conjecture FALSE for: [%d]\n", i);
    }

    return(0);
    }

  21. from the gnutella features list (funny) on Open Source Napster: Gnutella · · Score: 5
    • Distributed nature of servant makes it pretty damned tough for college administrators to block access to the gnutella service
    • Ability to change the port you listen on makes it even harder for those college administrators to block access
    • Ability to define your own internal network with a single exit point to the rest of the internet makes it almost fucking impossible for college sysadmins to block the free uninhibited transfer of information
    • Am I making myself painfully clear? I thought so.
  22. Re:Sounds good but... on Movie Reviews: Fantasia 2000 · · Score: 1

    Your wish is granted ... http://www.edwardscinemas.com/imax/ my wife and I saw Fantasia 2000 here when it first came out. Eleven bucks but a great theater/sound system/etc.

  23. Ransomizer PHP Script on Dave 'Zoid' Kirsch Leaving id Software · · Score: 1

    I thought the AC's "ransomized" post was pretty funny as well, so since I was bored I whacked up a little php script to ransomize the output of fortune. Here it is ...
    <?
    $site = "http://www.slashdot.org/";
    $text = array();

    exec("/usr/games/fortune", $text);

    $message = "";
    $size = count($text);

    for($i = 0; $i < $size; $i ++)
    {
    if($i > 0)
    $message .= "\n";

    $message .= $text[$i];
    }

    $length = strlen($message);

    function doBold($theChar, $clientData)
    {
    print("<B>$theChar</B>");
    }

    function doItalic($theChar, $clientData)
    {
    print("<I>$theChar</I>");
    }

    function doLink($theChar, $clientData)
    {
    print("<A HREF=\"$clientData\">$theChar</A>");
    }

    $list = array(doBold, doItalic, doLink);
    $nFunctions = count($list);
    $lastIndex = -1;

    srand((double)microtime() * 1000000);

    for($i = 0; $i < $length; $i ++)
    {
    $theChar = substr($message, $i, 1);

    if(($theChar >= 'a' && $theChar <= 'z') ||
    ($theChar >= 'A' && $theChar <= 'Z') ||
    ($theChar >= '0' && $theChar <= '9'))
    {
    do
    {
    $index = rand() % $nFunctions;

    } while($index == $lastIndex);

    $list[$index]($theChar, $site);
    $lastIndex = $index;
    }
    else
    {
    if($theChar == "\n")
    print("<BR>");

    else
    print($theChar);
    }
    }
    ?>

  24. Re:The other stories on Library Filtering Update · · Score: 1

    No idea who was doing the whistling, but what they were whistling was the olympics theme song.

  25. An email-related service I wish they would offer on U.S. Post Office and E-mail · · Score: 1

    Surely all of you have friends/relatives/acquaintences who still don't have email (older relatives, for example). What would be really useful would be the ability to send an email to say 'hand_deliver@uspostoffice.gov' and have it ultimately be printed out and sent to the person via snail mail. The email would need to contain the person's snail mail address (obviously) and possibly some encrypted credit card information so that I can be billed for the service but I for one would certainly pay more than 33 cents for such a service. I think the ability to send snail mail with the ease that one sends email would be a very handy thing.