Subject: Did Ellen get a facelift for her vow-renewal

From: Ellen Photos Released <[email-masked]>
Date: Thu, 29 May 2014 11:55:24 -0700

In Celebrity News:
Did Ellen get a facelift for her Vow-Renewal?
============================================

Ellen DeGeneres and Portia de Rossi are apparently planning to renew their wedding vows in August. 

************************************************
Did Ellen get a facelift for her vow renewal?
************************************************

See the pics that sparked this media frenzy -> http://www.neefir.com/ellen/facelift/rumors.index

***
Ellen is getting her skin ready, and after 1 MONTH is looking 20-yrs younger.
The pics leaked to the media explain it all

We hope that you enjoyed this celeb update from Update Notice Messages
to stop further updates - write - one one eight- Kecks Lane-Ruff Dale, PA 15679 or 
http://www.neefir.com/lwkg.sjgr

@Simon It's not stated that the string is necessarily going to be output as part of a HTML document - CSS is only going to be of use if it is.   Adam HeptonAdam, true, but I'd guess that over 95% of the Javascript out there is used with HTML & CSS. Unfortunately, the "capitalize" statement actually capitalizes every word, so you'd still need JS to capitalize only the first letter of the string. @Simon, the text-transform capitalizes first letter of every word and this is what Robert wants   DDK Jun Incorrect, Dinesh. He said the first character of the stringWhat's funny is that Ryan didn't help answer @Robert Willis's question. but he answered mine.   SoreThumb Nov 5 This answer, despite having a ridiculous number of upvotes, is just wrong, as it will capitalize the first letter of every word. @Ryan, you'll earn a Disciplined badge if you delete it. Please do so.   Dan Dascalescu Agree with @DanDascalescu - Ryan's answer is completely wrong. To capitalise the first letter you could u
 se the first letter selector: p.capitalize :first-letter {text-transform: capitalize;} Apparently Safari struggles with this, but haven't looked into it.   Matt Parkins The question specifies 'JavaScript'. A CSS solution doesn't provide this.   Holf Mar 22 '13 at 18:01
It's true that the question asks for JavaScript and only the first letter of the string, but the asker of the question isn't the only one here looking for an answer. It has obviously turned out to be a good answer for many people, resulting in upvotes. I certainly don't think it should be deleted.   Ali G Apr 13 '13 at 8:54It's now javascript: $('.capitalize').css('text-transform', 'capitalize')   Ali GApr 13 '13 at 8:58
The question specifies JavaScript. Anybody looking for a CSS based solution may not find this answer because they won't be searching for it. As it is, this is a useful bit of information that users might stumble across if they happen to be looking for a JavaScript solution. Regardless, this will capitalise all words, not the first letter of the string. Ryan has a good answer to a different question. He should delete this answer, create the right question, and then answer it there, if he wants to benefit the community. The points loss wouldn't be very conducive to doing this, I'll admit. :-) big LOL for this   Juan Jul 15 '13 at 20:49
So just wrap the tag around the single world you want capitalized   Nick Manning Oct 4 '13 at 5:40
This capitalizes every word's first letter.   MKN Web SolutionsI think, this answer is wrong, but when I searched answer to similar problem, I found this answer and it perfectly fits to my problem. So, thanks.   VikciaR This answer is bad since it is not JavaScript.   Kremniels: You're correct, but this edit changes the meaning of the post too much. Better post it as a separate answer. Or rather dowubstr() may not be marked as deprecated by any popular ECMAScript implementation (I doubt it's not going to disappear anytime soon), but it's not part of the ECMAScript spec. The 3rd edition of the spec mentions it in the non-normative annex in order to "suggests uniform semantics for such properties without making the properties or their semantics part of this @SnakeDoc the "confusing" problem is caused by another lack/feature of java: java does not support pointer. == is straighter than .equals(), i will prefer using == to compare objects if java support overriding operator == : "bool My
 String::operator == (const char *sAnotherString) {return strcmp(this.m_String, sAnotherString);}". 2 other lack of java (compared to C++): (a) does not support structure data. (b) does not support unsigned integers.  Anyways, it is context dependent of course. My general rule remains: use .equalsIgnoreCase() unless you have a good reason (being case matters or such). Far too many times i've been burned by a user typing in something like SOMESTRING instead of and expected somestring and then report program is busted (caps lock on or something).   Just to clarify for everyone, .equals() is necessary in Java as it's comparing the Value of two objects, not the object references. == would compare the references (think pointers for simplicity). You can use == to compare two objects, but it won't give you the expected result if the references aren't the same. It may work in some cases, such as with Strings, but isn't reliable. The JVM does some magic when you create a new string with the s
 ame value as another in memory, it basically just creates a new reference to the same memory location in some cases. Just use .equals
Java does use pointers, but they are abstracted away to Object References, it was a design decision and provides a whole level of program safety that you cannot always guarantee with pointers, even with a high level of understanding of pointers and pointer arithmetic. Structured Data (Struct) I think is coming in Java8 or may have been pushed back to Java9. Anyways, java is java, with it's lumps and it's pearls. :/  Also note that .equals() does generally the same as ==, String is one of few exceptions, if you will want to compare your own classes you will need to redefine (override) the .equals() method. 
@kajacx good point +1, I don't think anyone mentioned that yet. If you have a custom object, .edquals() doesn't know what to compare the value of inside your object, so override it and implement your own .equals()