• Rob (unregistered)

    Ah, but what about non-breaking spaces?

  • PS (unregistered)

    Looks like someone was really...

    <_<

    _>

    ... SPACED OUT while at work there...

  • Athiests like you can GTHT (unregistered) in reply to boog
    boog:
    Athiests like you can GTHT:
    But since the Internet is your god, I will answer you on his terms. Go to snopes.com, and you will see no article refuting the Clairton Controversy.
    There it is again: there's no article on snopes.com refuting the controversy, therefore it must be true.

    Interesting logic, yessiree...

    Oh, the irony. I postulate the existence of an article based on the fact that I am looking at it in black and white in possibly the world's most reliable reference, and its existence is argued against based on its absence from Wikipedia. I suppose the real solution would be to enrich Wikipedia by typing this section in word-by-word. I'm pretty sure that's plagiarism, though.

  • (cs) in reply to Athiests like you can GTHT
    Athiests like you can GTHT:
    boog:
    There it is again: there's no article on snopes.com refuting the controversy, therefore it must be true.

    Interesting logic, yessiree...

    Oh, the irony. I postulate the existence of an article based on the fact that I am looking at it in black and white in possibly the world's most reliable reference, and its existence is argued against based on its absence from Wikipedia. I suppose the real solution would be to enrich Wikipedia by typing this section in word-by-word. I'm pretty sure that's plagiarism, though.
    Funny, I'm not sure that a single word in your reply related in any way to the point I was making.

    That is, unless you consider that you just identified the exact logical fallacy that you yourself keep making (Hint: when you said something must be accurate because it isn't refuted on snopes.com; can you really not see how this is the same thing?). I suppose that is ironic.

  • Ouch! (unregistered) in reply to Athiests like you can GTHT
    Athiests like you can GTHT:
    boog:
    Athiests like you can GTHT:
    But since the Internet is your god, I will answer you on his terms. Go to snopes.com, and you will see no article refuting the Clairton Controversy.
    There it is again: there's no article on snopes.com refuting the controversy, therefore it must be true.

    Interesting logic, yessiree...

    Oh, the irony. I postulate the existence of an article based on the fact that I am looking at it in black and white in possibly the world's most reliable reference,
    Umm, the Britannica's reputation for reliability is not nearly what it used to be since some 25 or 30 years. It's still quite respectable, but it's not to be unquestioningly believed (and it never was - nor any other encyclopaedia of course).

    and its existence is argued against based on its absence from Wikipedia.
    Its existence is questioned because there's nothing but your words so far indicating its existence. Checking the 2009 edition of the Britannica would establish either its existence there or its absence. That's however not necessarily so easy. The nearest library that probably has it, is a day's travel away for me, far too much effort to check the factuality of an alleged quarrel over a heathen fetish.

    However, if the alleged Clairton conspiracy is real and has made the headlines in international newspapers as you said it did, it would be likely that "da web" remembers it and a google search would turn up some results - but zilch. The absence of any hint of the episode from the entire web makes your claim highly dubious, not (just) its absence from wikipedia.

    I suppose the real solution would be to enrich Wikipedia by typing this section in word-by-word. I'm pretty sure that's plagiarism, though.
    Well, it would at least open the possibility of marking its doubtfulness, so hopefully some wikipedia editor could check whether it's really in the Britannica.

    P.S.: I'm aware that I've been trolled, any true believer would know how to spell "atheists".

    Shabat shalom nevertheless.

  • Athiests like you can GTHT (unregistered) in reply to Ouch!
    Ouch!:
    Athiests like you can GTHT:
    boog:
    Athiests like you can GTHT:
    But since the Internet is your god, I will answer you on his terms. Go to snopes.com, and you will see no article refuting the Clairton Controversy.
    There it is again: there's no article on snopes.com refuting the controversy, therefore it must be true.

    Interesting logic, yessiree...

    Oh, the irony. I postulate the existence of an article based on the fact that I am looking at it in black and white in possibly the world's most reliable reference,
    Umm, the Britannica's reputation for reliability is not nearly what it used to be since some 25 or 30 years. It's still quite respectable, but it's not to be unquestioningly believed (and it never was - nor any other encyclopaedia of course).

    and its existence is argued against based on its absence from Wikipedia.
    Its existence is questioned because there's nothing but your words so far indicating its existence. Checking the 2009 edition of the Britannica would establish either its existence there or its absence. That's however not necessarily so easy. The nearest library that probably has it, is a day's travel away for me, far too much effort to check the factuality of an alleged quarrel over a heathen fetish.

    However, if the alleged Clairton conspiracy is real and has made the headlines in international newspapers as you said it did, it would be likely that "da web" remembers it and a google search would turn up some results - but zilch. The absence of any hint of the episode from the entire web makes your claim highly dubious, not (just) its absence from wikipedia.

    I suppose the real solution would be to enrich Wikipedia by typing this section in word-by-word. I'm pretty sure that's plagiarism, though.
    Well, it would at least open the possibility of marking its doubtfulness, so hopefully some wikipedia editor could check whether it's really in the Britannica.

    P.S.: I'm aware that I've been trolled, any true believer would know how to spell "atheists".

    Shabat shalom nevertheless.

    Finally! Good Shroud, ya'll, I was wondering how long it would take someone to notice the mispelling.

  • Atheists like you can GTH (unregistered) in reply to boog
    boog:
    Funny, I'm not sure that a single word in your reply related in any way to the point I was making.

    That is, unless you consider that you just identified the exact logical fallacy that you yourself keep making (Hint: when you said something must be accurate because it isn't refuted on snopes.com; can you really not see how this is the same thing?). I suppose that is ironic.

    Ignore the imposter.

    I don't see what's so hard for you to understand. I am not the one arguing from ignorance, it is the one who says, "This must be one of the first results of a Google search or it didn't happen." There a whole culture whose point of reference is "I'm feeling lucky" searches and answers to questions posted on Facebook. This moron claims that no such event occurred based solely on this absence of evidence whereas I say it did occur, not because I remember reading it in the papers, but because I have a fabulous reference that I paid plenty for in my study. Does this establish the authenticity of the cloth? No, but following the thread to the beginning, it says that it has not been proven to be "medieval" using any sort of rigorous analysis.

  • (cs) in reply to Atheists like you can GTH
    Atheists like you can GTH:
    boog:
    Funny, I'm not sure that a single word in your reply related in any way to the point I was making.

    That is, unless you consider that you just identified the exact logical fallacy that you yourself keep making (Hint: when you said something must be accurate because it isn't refuted on snopes.com; can you really not see how this is the same thing?). I suppose that is ironic.

    Ignore the imposter.

    I don't see what's so hard for you to understand. I am not the one arguing from ignorance, it is the one who says, "This must be one of the first results of a Google search or it didn't happen." There a whole culture whose point of reference is "I'm feeling lucky" searches and answers to questions posted on Facebook. This moron claims that no such event occurred based solely on this absence of evidence whereas I say it did occur, not because I remember reading it in the papers, but because I have a fabulous reference that I paid plenty for in my study. Does this establish the authenticity of the cloth? No, but following the thread to the beginning, it says that it has not been proven to be "medieval" using any sort of rigorous analysis.

    The problem is that we have no evidence other then your own words to verify that what you say about your reference source is correct. And it's more then just not appearing in the first page, or in the "I'm Feeling Lucky" results. It's that no results are found for "Daimon Clairton" at all (both Bing and Google have the same result). Nor are any relevant results found for the Clairton Controversy. If a subject was important enough to warrant inclusion in the Encyclopedia Britannica, then it should be important enough to have at least one relevant hit on either Bing or Google (and I checked through 6 pages of results on both sites).

  • not-of-this-Earth (unregistered) in reply to Sutherlands

    As always.

  • not-of-this-Earth (unregistered)

    // Yo-ho-ho! And a bottle of rum! // Ok, let's do it like the real men. // Ancient yet sturdy ship called "C" requires // quite a bit of courage and bravery. int is_blank(const char* str, int len) { // Is not null pointer or empty string if (str && *str) { while (len--) { if (!isspace(*str++)) return 0; } } return 1; } // is_blank()

  • not-of-this-Earth (unregistered) in reply to not-of-this-Earth
    not-of-this-Earth:
    // Yo-ho-ho! And a bottle of rum! // Ok, let's do it like the real men. // Ancient yet sturdy ship called "C" requires // quite a bit of courage and bravery. int is_blank(const char* str, int len) { // Is not null pointer or empty string if (str && *str) { while (len--) { if (!isspace(*str++)) return 0; } } return 1; } // is_blank()

    Ouch... Spaces were eaten...

  • Someone who can't be bothered to login from work (unregistered)

    I'd refer people to the links in A Spacy Problem post #292615.

  • illy anker (unregistered) in reply to wtf^infinity
    tf^infinity:
    TRWTF is that none of these handles the example of a true whitespace character, which is sometimes "\n", "\t", "w". The bigger WTF is that this is the third time I've pointed it out, but the idiot mods keep deleting it.
    I onder here you got the idea that these characters are equal to hitespace?
  • Design Pattern (unregistered) in reply to Atheists like you can GTH
    Atheists like you can GTH:
    I don't see what's so hard for you to understand.
    I don't see what's so hard for you to understand "Peer-reviewed primary sources?"

    At least "primary sources", so that we can check who really made the claim.

    But no, we get "Encyclopedia Britannica" here, "Encyclopedia Britannica" there.

    Is that some kind of holy book that we must believe every word of?

  • Athiests like you can GTH (unregistered) in reply to Design Pattern
    Design Pattern:
    Atheists like you can GTH:
    I don't see what's so hard for you to understand.
    I don't see what's so hard for you to understand "Peer-reviewed primary sources?"

    At least "primary sources", so that we can check who really made the claim.

    But no, we get "Encyclopedia Britannica" here, "Encyclopedia Britannica" there.

    Is that some kind of holy book that we must believe every word of?

    F-off, you ignorant troll.

  • Billy (unregistered)

    Epic Solution:

    while(string.contains(" ")) { string = string.replace(" ", " ") }

    or why not give the correct solution

    string = string.re_replace("[ ]{2,}", " ")

  • Billy (unregistered) in reply to Billy
    Billy:
    Epic Solution:

    while(string.contains(" ")) { string = string.replace(" ", " ") }

    or why not give the correct solution

    string = string.re_replace("[ ]{2,}", " ")

    edit from above, replace a single space with 2 spaces where necessary...

  • Mylastdayshere (unregistered) in reply to buiatte
    buiatte:
    I am amazed by the fact that most Java developers dont know (or dont care) about commons-lang (or apache commons in general)

    Apache commons? How about the runtime.

    We have a fellow here who decided to implement a huge class to encode (or "encrypt" as he likes to call it) a string as utf8. Yes. Really.

  • Muttley (unregistered)

    Hey!Bothsnippetsworkperfectly!Thankyou,it'sjustwhatIneeded!

  • Mike (unregistered) in reply to frits
    frits:
    I've actually used/seen C code with //eof on the last line of every file in a project.

    It's actually useful in some cases. If there's a bad sector on the hard disk and a file was truncated and recovered, then you can quickly see that the file is not complete and needs to be restored from a recent backup. Admittedly, this made more sense when I carried all my source code in a toolbox full of diskettes, but it's still true.

  • not-of-this-Earth (unregistered) in reply to illy anker
    illy anker:
    tf^infinity:
    TRWTF is that none of these handles the example of a true whitespace character, which is sometimes "\n", "\t", "w". The bigger WTF is that this is the third time I've pointed it out, but the idiot mods keep deleting it.
    I onder here you got the idea that these characters are equal to hitespace?

    isspace() DOES handle '\n', etc.

  • (cs) in reply to not-of-this-Earth
    not-of-this-Earth:
    illy anker:
    tf^infinity:
    TRWTF is that none of these handles the example of a true whitespace character, which is sometimes "\n", "\t", "w". The bigger WTF is that this is the third time I've pointed it out, but the idiot mods keep deleting it.
    I onder here you got the idea that these characters are equal to hitespace?

    isspace() DOES handle '\n', etc.

    Does it handle 'w'?

  • (cs) in reply to Sutherlands
    Sutherlands:
    not-of-this-Earth:
    illy anker:
    tf^infinity:
    TRWTF is that none of these handles the example of a true whitespace character, which is sometimes "\n", "\t", "w". The bigger WTF is that this is the third time I've pointed it out, but the idiot mods keep deleting it.
    I onder here you got the idea that these characters are equal to hitespace?

    isspace() DOES handle '\n', etc.

    Does it handle 'w'?

    $ cat wspace.c
    #include <stdio.h>
    #include <stdlib.h>
    #include <ctype.h>
    
    int main(){
        printf("'w' is %sa space character.\n",isspace('w')?"":"not ");
        return EXIT_SUCCESS;
    }
    $ gcc wspace.c && ./a.out
    'w' is not a space character.
    

    Yup. Handles 'w'.

  • Nantagonist (unregistered) in reply to TheKoz
    • would throw an exception on str being null, thereby eliminating the need for checking for null-ness in the first place..
  • anonymous (unregistered)

    Regarding the made up story about the "Clairton Controversy":

    This is the abstract from the 1989 report from Nature. http://www.nature.com/nature/journal/v337/n6208/abs/337611a0.html

    One of the professors involved was P. E. Damon from the Department of Geosciences, University of Arizona. There was no "Daimon Clairton" involved.

    Here is a website containing a copy of the report. http://www.shroud.com/nature.htm

  • anonymous (unregistered)

    Also, Paul E. Damon remained at the University of Arizona until 2005, when he died.

    This is his obituary: http://www.treeringsociety.org/TRBTRR/TRRvol61_1_55-56.pdf

  • jim dorey (unregistered)

    not a programmer, i don't even pretend(does raw html count?), but i can see a better way to fix multiple spaces(but not how to exclude text blocks(since writers put two spaces between sentences)). probably still a messy kludge, but search and replace two spaces with one space would fix code, if the compiler doesn't pay attention to multiple white spaces.

  • Heretic (unregistered) in reply to boog

    Actually there is nothing wrong with this logic. This is derived from the ever popular "creationist" / "intelligent design proponent" argumentation that whatever doesn't disprove the existance of god, proves it. And if something cannot currently be explained is must be designed by god. And this is the only form of argumentation religious fanatics know.

    And what's this about 287 pages of falsified information? Is The Book of Genesis really that long?

  • Heretic (unregistered) in reply to boog
    boog:
    Athiests like you can GTHT:
    But since the Internet is your god, I will answer you on his terms. Go to snopes.com, and you will see no article refuting the Clairton Controversy.
    There it is again: there's no article on snopes.com refuting the controversy, therefore it must be true.

    Interesting logic, yessiree...

    Actually there is nothing wrong with this logic. This is derived from the ever popular "creationist" / "intelligent design proponent" argumentation that whatever doesn't disprove the existance of god, proves it. And if something cannot currently be explained is must be designed by god. And this is the only form of argumentation religious fanatics know.

    And what's this about 287 pages of falsified information? Is The Book of Genesis really that long?

Leave a comment on “Double Spaced”

Log In or post as a guest

Replying to comment #327347:

« Return to Article