Slashdot Mirror


User: UnknownSoldier

UnknownSoldier's activity in the archive.

Stories
0
Comments
7,910
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 7,910

  1. Re:Then let me violate the Code of Conduct on /. on Church of Scientology Enlisting Followers In Censorship · · Score: 1

    > is doing her best to protect Suri from that cult.

    Cult, noun.
    Definition: Any group that says their way is the only way [to salvation.]

    You can outlaw bad religions but you can't outlaw stupidity. :-/

  2. Re:They expect OEMs to lock machines down? on Ubuntu Can't Trust FSF's Secure Boot Solution · · Score: 1

    > Perhaps the FSF should learn from this and lighten up on the whole "all code must be given away" thing?

    Once you start compromising on your morals it is a slippery slope to "Convenience Morality"

  3. Re:Probably on Ask Slashdot: What Are the Implications of Finding the Higgs Boson? · · Score: 1

    > I was always told that space is anything but empty.

    It it was empty then why did the tether on the Space Shuttle melt due to electricity? In other words how did the charge build up?

    http://www-istp.gsfc.nasa.gov/Education/wtether.html

  4. Re:Wasn't there... on San Diego's Fireworks Show Over In 15 Seconds · · Score: 1

    The porn industry already beat you ...

    Gone in 60 Seconds --> Cum in 60 Seconds

    http://www.listal.com/list/porn-versions-famous-movies

  5. Re:I don't think so. on Charles Carreon Drops Case Against the Oatmeal · · Score: 1

    Please let me know when you grow up and are able to have a civil conversation without the childish ad hominem attacks instead of ranting.

    --
    "Better to remain silent and thought a fool, then open your mouth and remove all doubt."

  6. Re:One good reason... on What's To Love About C? · · Score: 1

    There is a time and a place for correct spelling and grammar.

    I couldn't give a fuck on /. if you get bent out of shape over negligible spelling. There are more important issues to worry about.

  7. Re:Objection: Assumes facts not in evidence on LHC Discovers New Particle That Looks Like the Higgs Boson · · Score: 1

    >> And you still haven't explained _what_ _causes_ gravity.
    > I don't think you yourself understand what you mean by this question. If I replace gravity with electromagnetism in your question, what is the answer then? Or do you believe we don't know what causes electromagnetism either?

    It is a real simple question. I am NOT asking about the EMF, NOR the EFFECT of gravity. I AM asking about _gravity_. Specifically, what causes it?

  8. Re:Not so hard on World's Hardest Sudoku · · Score: 1

    > The whole point of writing that program was to play around with templates (and SLT/BOOST),

    Looking at your code I see that my hunch (b) was right -- it is *totally* over-engineered. There is a time for STL (and that abomination BOOST), but if you want to be a *great* coder focus on the _simple_ solution. It will be:

    a) easier to write
    b) easier to debug (prove correct)
    c) easier to maintain
    d) easier to optimize

    Here are two quotes from Einstein that you should keep in mind:

    * "Everything should be made as simple as possible, but not simpler."
    * "Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."

    You can tell your solution (code) is getting better when it gets smaller. You are able to do more with less. Solve the _specific_ problem, NOT the _general_ problem. Other people will THANK you for being succinct, not verbose.

    Cheers

  9. Re:Objection: Assumes facts not in evidence on LHC Discovers New Particle That Looks Like the Higgs Boson · · Score: 1

    > Protip: anyone who claims to have discovered something weird, and then names it after themselves, is most likely a hoax.
    You mean just like the Casmir Effect or The Aspden Effect ?

    Protip: only hipsters use 'Protip'

    > And we have a very good idea of what causes gravity, or rather, what gravity _is_.
    And you still haven't explained _what_ _causes_ gravity.

  10. Re:One good reason... on What's To Love About C? · · Score: 1

    Thx grammer nazi.

    This is why I am a programmer and not an English major.

  11. Re:One good reason... on What's To Love About C? · · Score: 1

    > Was this pre c++03 or post?

    I left in 2010 about the time we were implementing C++0x (which eventually came C++11)

    The front-end was a nightmare to maintain because of the C++ ambiguity. (Especially templates)

    The back-end was relatively clean, because C & C++ look the same when you are working at the level of the AST and ILR (Abstract Syntax Tree and Intermediate Language Representation, respectfully.)

    > Except.. without even more ugly hacks to the preprocessor, there is no way to ensure any kind of tangible "safeness" to the macro system.
    I disagree. A macro system needs BOTH type safety AND lack-of type safety, because only the programmer knows when he needs one, the other, or both.

    Let's say we replace the preprocessor with a native C++ macro system.

    .macro LOG( $ file, # line, $ func, void expr )
    {
      printf( "%s(%d) %s\n", file, line, func );
      x
    }
     
    .macro IN( x ) LOG( __FILE__, __LINE__, __FUNC__, x )
     
    void foo()
    {
      IN( { printf( "Hello from foo!\n" ); printf( "Multiple statements.\n"); } )
    }
    void bar()
    {
      IN;
    }

    Where the types for the arguments are
    $ string
    # number (int)
    % number (float)
    void generic anything, can be optional

    Do we need a token to represent that the argument should be _x_ ?
    - character
    - pointer
    - array

    > I'd prefer removing obsolete C & preprocessor crap from C++. It would improve the language in every conceivable way.
    I agree! I'm interested in ideas in how this could be done.

    Currently you can't do stuff like this in C/C++ because of the idiotic preprocessor doesn't understand ':'

    #if !DEBUG // remove call in release build
      #define Foo::Bar
    #endif
    struct Foo {
      static void Bar( const char s, ... );
    };
    void test()
    {
      Foo::Bar( "%s", __FUNC__ );
    }

    I guess first we would need to replace:

    #include < >

    along with conditional defines, and macros.

    What else would need to be done if the preprocessor was treated like a first-class system?

  12. Re:I don't think so. on Charles Carreon Drops Case Against the Oatmeal · · Score: 0

    > It'd also remove all the definitions and clarity of the current system.
    Ahh, I see that's why we have over 10,000 of pages of the Tax Code. For clarifying that, silly me. What was I thinking. I "forgot" that over-engineering was a good thing. /sarcasm

    > No matter how simple or complex the system, there are always people who will abuse it for their own benefit, and there will always be someone who can't understand it.
    So we should obfuscate the hell out of it so NO ONE can practically follow it. Gotcha.

    > They aren't too hard if you take the time to read and understand them
    Right, so you've personally read ALL 20 Volumes of Title 26 which is 13,458 pages of the Tax Code??

    If no, then how you do you know you are _following_ the law?

    > Simplicity and fairness are not correlated.
    Cognitive dissonance much?

    If you were in school and got a 4.0 GPA is it FAIR that you are forced to give a portion of that to someone else? That is precisely what the _existing_ tax code does.
    A progressive tax (graduated) is ALREADY unfair. It robs from the rich to pay for the poor.

    A flat tax is
    a) simple, AND
    b) fair.

  13. Re:useless for strong passwords on John the Ripper Cracks Slow Hashes On GPU · · Score: 1
  14. Re:Found at 125 GeV on LHC Discovers New Particle That Looks Like the Higgs Boson · · Score: 1

    > Higgs field is a quantum field, which fluctuates constantly. Particles spontaneously emerge and disappear all the time.

    So where do these particles go then?
    And where were they before they emerged?

  15. Re:Objection: Assumes facts not in evidence on LHC Discovers New Particle That Looks Like the Higgs Boson · · Score: 1

    Except for one little problem: We _already_ have experimental evidence (The Hutchison Effect) that demonstrates that we still don't have a clue what _causes_ gravity.

  16. Re:I don't think so. on Charles Carreon Drops Case Against the Oatmeal · · Score: 1

    > Perhaps if the law were simplified, more people could learn enough about it to defend themselves in court,

    That indeed is the proper solution.

    "The more numerous the laws, the more corrupt the government."
    - Publius Cornelius Tacitus, AD 56 â" AD 117

    The IRS is a perfect example of. A simple 10% flat tax would remove ALL the loop-holes.

  17. Re:What a waste of time on Charles Carreon Drops Case Against the Oatmeal · · Score: 1

    All you have proved that humans have many different motives, some are good some are bad. You will find this in ALL professions, institutions, and religions.

    Tossing the baby out with the bathwater doesn't solve anything.

    We should be instead focusing on the fucktards (Carreon) that abuse the system, or removing corrupt systems.

  18. Re:Not so hard on World's Hardest Sudoku · · Score: 1

    33 seconds? No offense, but methinks you need to review your algorithm, because either you

    a) have a bug, or
    b) have totally over-engineered the implementation of the algorithm.

    My solver in 106 lines of C++ solves it in by *brute* force in less then 1 second. I wrote this back on 6/6/6.

    There is also a 141 _byte_ sudoku solver in Javascript that someone else wrote. Check
    http://www.reddit.com/r/javascript/comments/ku0mb/tweet_sized_sudoku_solver_in_javascript/

    My input file is:
    8-- --- --- // stupid lameness filter
    --3 6-- --- // more stupid line too few
    -7- -9- 2-- // again

    -5- --7 --- // /. filters suck
    --- -45 7-- // more kludge hacks
    --- 1-- -3- // for lame filter

    --1 --- -68 // almost done
    --8 5-- -1- // /. is annoying
    -9- --- 4-- // OK input is done

    #include <stdio.h> // g++ -DLOG=0 sudoku3.cpp -O2 -o sudoku3.exe // 107 lines
    #include <string.h> // memset

    struct Board
    {
    char cell[9][9];
    int nEmpty;

    Board() { memset( (void*)cell, 0, sizeof( Board ) ); }
    Board( const Board& copy ) { *this = copy; }

    void Print() {
    for( int y = 0; y < 9; y++ ) {
    if (y && (y%3 == 0)) printf("---+---+---\n");
    for( int x = 0; x < 9; x++ ) {
    if (x && (x%3 == 0)) printf("!");
    printf( "%c", cell[y][x] ? '0' + cell[y][x] : ' ' );
    }
    printf("\n");
    }
    printf( "\n" );
    }

    int GetInvalidMoves( int x, int y ) // bitmask of invalid moves
    {
    int cx, cy, wx, wy, bMask = 0;
    cy = y; for( cx = 0; cx < 9; cx++ ) // horizontal
    bMask |= (1 << cell[cy][cx]);
    cx = x; for( cy = 0; cy < 9; cy++ ) // vertical
    bMask |= (1 << cell[cy][cx]);
    wx = x - (x % 3); // 3x3 block
    wy = y - (y % 3);
    for( int by = 0; by < 3; by++ )
    for( int bx = 0; bx < 3; bx++ )
    bMask |= (1 << cell[wy+by][wx+bx]);
    return bMask;
    }

    void TotalEmptyCells()
    {
    nEmpty = 9 * 9;
    for( int y = 0; y < 9; y++ )
    for( int x = 0; x < 9; x++ )

  19. Re:Question: on Ask Slashdot: How Do I Stay Employable? · · Score: 1

    > And so did HG Wells in 1895. It's actually a really old idea, it's one of those ones that every generation bemoans thinking they're the first one with that problem.

    "We live in a decaying age. Young people no longer respect their parents. They are rude and impatient. They frequently inhabit taverns and have no self control." -- attributed to an inscription in an Ancient Egyptian tomb, quoted in Buckminster Fuller's "I Seem To Be a Verb"

    Plato quotes Socrates in The Republic as saying,
    I mean such things as these: â" when the young are to
    be silent before their elders; how they are to show respect to them by
    standing and making them sit; what honour is due to parents; what
    garments or shoes are to be worn; the mode of dressing the hair;
    deportment and manners in general.

    "When I was young, we were taught to be discreet and respectful of elders, but the present youth are exceedingly disrespectful and impatient of restraint".
    Hesiod, 8th century BC

    "The young people of today think of nothing but themselves. They have no reverence for parents or old age. They are impatient of all restraint... As for the girls, they are forward, immodest and unladylike in speech, behavior and dress."
    Attributed to Peter the Hermit, AD 1274

    There is NOTHING new under the sun.

  20. Yeah I know YHBT and DNFTT

    WOW you sure seem to get bent out of shape at other people copying numbers ....

    You DO realize that some countries (Canada) legally ALLOW people to copy copyrighted works, right? So basically the 30 million people are all "freetards" too or are you too self-absorbed in "my politics are the only RIGHT politics" to pull your head out of your ass and realize that ALL {LEGAL} LAWS ARE RELATIVE. The youth couldn't give a crap about copyright because they realize the absurdity of trying to "outlaw copying numbers." You can bitch all you want but copyright is an archaic idea on its way out.

  21. Re:when these genius people are 100% on CERN Announcing New LHC Results July 4th · · Score: 1

    I am 100% certain you will die. I am so certain of this fact that I am willing to bet my life on it.

    See, that wasn't religion NOR science.

  22. Re:One good reason... on What's To Love About C? · · Score: 3, Interesting

    I used to work with a team that produced a professional C/C++ compiler. We used to joke:

    There are two problems with C++
    1. it's design
    2. it's implementation

    As a programming I've come to love the sweet spot 1/2 between C and C++.
    C leads to overly terse code
    C++ leads to over-engineered solutions

    Its too bad the preprocessor is still stuck in the '70s :-( Every year C++ is slowly turning into a clusterfuck LISP implementation by people who don't understand how to write a safe macro meta-language.

  23. Re:Hint on Quake 3 Source Code Review · · Score: 1

    Correct.

    Compilers do it NOW but they didn't always use to UNLESS you turned optimizations on. Debugging un-optimized code is a lesson in pain. Especially when you are trying to debug a real-time system and can't due to performance issues.
     

  24. Re:Cool. on "Mini-Factories" To Make Medicine Inside the Body · · Score: 0

    Why do you need THC when your body, specifically the pineal gland, _already_ naturally makes DMT? (DMT is the psychedelic used in LSD.)

    Also, "DMT occurs naturally in many species of plants"
    http://en.wikipedia.org/wiki/Dimethyltryptamine

    --
    The fact that a natural _plant_ is _illegal_ is the height of stupidity.

  25. Re:Perhaps it's just me on The Leap Second Is Here! Are Your Systems Ready? · · Score: 1

    voice = "Seinfeld George": What, you didn't get the memo? We OVER ENGINEER _everything_ including accounting for time in the 21st century baby! :-)

    P.S.
    Yes, completely agree leap seconds, leap hours, and daylight savings time cause MORE PROBLEMS then what they SOLVE. One of these days we'll outgrow this stupidity ...