Whats the difference between defining the method "area" as a property of "this" instead of "prototype"?  //console.clear()  function Rectangle(w, h)  {     this.width = w;     this.height = h;     this.area = function( ) { return this.width * this.height; } }   var r = new Rectangle(2, 3); var a = r.area( );  //console.log(a)  function Square(s)  {     this.side= s; }  Square.prototype.area = function(){return this.side * this.side; }  var r = new Square(2); var a = r.area( );  //console.log(a)   In JavaScript - The definitive guide in the section Prototypes and Inheritance of Chapter 9 , part 1, the author says that defining the method "area" inside the prototype object is beneficial, but his explanation wasn't really understandable:     "..the area of every single Rectangle   object always refers to the same   function (someone might change it, of   course, but you usually intend the   methods of an object to be constant).   It is inefficient to use regular   properties for methods that are   intended to be shared by all objects   of the same class (that is, all   objects created with the same   constructor)."   I know this question almost looks like  one, but it is not.
What's the difference between  var A = function () {     this.x = function () {         //do something     }; };   and  var A = function () { }; A.prototype.x = function () {     //do something };
In a conference on elliptic curves (an introduction to the subject), the speaker said that an elliptic curve (I.e. an equation of the form $y^2=x^3+ax+b $ where the RHS has distinct roots) is, in the complex space, a torus/Riemann surface of genus 1.  What is meant by that? Are we talking about a 2-dimensional manifold the 4D space? I hear the word architect used as a verb in the technical field and now more often in other industries and groups, for example:     We need to architect a better solution to the problem.   I am interested if this is considered acceptable usage, as I see this word being used more in published technical documents (not necessarily books, but corporate publications).  I can see how a conductor can conduct, a typist can type, but can a scientist "science"?  A scientist might research, analyze, and so forth, as an architect might design, create, build, etc.  Merriam-Webster , however, I have been told that other dictionaries exist that define architect as both a noun and a verb&nbsp;— is there a credible reference or source that authoritatively answers this question? REST API composite query: How do I use the result of a query subrequest in the referenceId of another subrequest? I am using Salesforce's REST API to (1) retrieve a list of object IDs according to a query, then (2) retrieve the records that correlate to those IDs.  I am familiar with the Salesforce composite documentation .    My request looks like this:  POST: /services/data/v48.0/composite  {     "allOrNone":false,     "compositeRequest": [ {         "method":"GET",         "url": "/services/data/v48.0/query?q=SELECT+Id+FROM+My_Entity+WHERE+(CreatedById+!=+'asdfghjkl')",         "referenceId": "myEntity"         },{         "method":"GET",         "url": "/services/data/v48.0/composite/sobjects/My_Entity?ids=@{myEntity.records[0].Id}",         "referenceId":"myObject"     }] }   My response:  {     "compositeResponse" : [ {         "body" : {             "totalSize" : 21,             "done" : true,             "records" : [ {                 "attributes" : {                     "type" : "My_Entity",                     "url" : "/services/data/v48.0/sobjects/My_Entity/a0D6g000xxxxxxx"                 },                 "Id" : "a0D6g000xxxxxxx"                 }, {*record2*}, {*etc*}             ]},             "httpHeaders" : { },             "httpStatusCode" : 200,             "referenceId" : "myEntity"         }, {         "body" : [ {         "errorCode" : "PROCESSING_HALTED",         "message" : "'myEntity.records' references an invalid Datatype. Only Strings and primitive data types are allowed to be referenced from previous operations."         } ],         "httpHeaders" : { },         "httpStatusCode" : 400,         "referenceId" : "myObject"     } ] }   The first subrequest (the query) executes without errors.  My problem is the second subrequest.  I understand from  that I can refer to the ID of a single item (e.g. myEntity.records[0].Id).  Question: How do I use all items from myEntity.records in the second subrequest? "To your left" versus "on your left" On my Windows 7 system I installed via  from Fonts.com:   The font does not appear in C:\Windows\Fonts. However, it shows up in certain desktop applications, for example  as: Sabon Next Com Display  My intention was to use the font in a LaTeX document test.tex:  \documentclass{article} \usepackage{polyglossia} \setromanfont{Sabon Next Com Display}  \begin{document} Hello World! \end{document}   Unfortunately, xelatex test.tex fails:  […] Couldn't find `Sabon Next Com Displ.cfg' miktex-maketfm: No creation rule for font "Sabon Next Com Display".   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! ! fontspec error: "font-not-found" !  ! The font "Sabon Next Com Display" cannot be found. !  ! See the fontspec documentation for further information. !  ! For immediate help type H &lt;return&gt;. !...............................................    l.4 \setromanfont{Sabon Next Com Display}                                            % Sabon Next Com Display, SabonNex...  ?    Can XeLaTeX even work with fonts installed via SkyFonts? If not, what could be a workaround? Increasing the size of tyres on a hybrid We are planning on doing some mountain biking in a few weeks time and we'd like to get some wider tyres for my wife's hybrid. I know there are similar questions and answers out there on this topic, but I need some specific help to make sure I buy the right tyres.  The bike is a Ladies Scott Sportster 50 2015, the best website I could find with a fairly accurate spec is     It's currently got Kenda K-180 700 x 38c / 30TPI tyres on it, which are fairly good all rounders and capable of running on clean forest paths but I don't think they would handle anything heavier.  It's got disk brakes so there isn't a clearance issue there, but I have noticed the frame is generally narrower than true MTBs, here are some photos i took of it.    Has anyone put larger, knobblier tyres on this kind of hybrid? whats the largest I can get away with? - I'm also slightly confused by all the tyre sizing, I'm sure someone told me this is a 27.5" tyre, but 700 seems to mean 29" on a lot of websites.  Any advice is very much appreciated, Thanks. Do I really need to encode '&' as '&amp;'? Objective-C and Swift URL encoding New York is a great place to live. New York is a great place to live in.  I've seen the former usage a lot and I've started wondering what the grammar aspects of it are. The main question I'm asking involves the grammar when the preposition in the end of the sentence is deleted. Is it equally formal or correct to omit it? What are the grammar properties of this? Some more examples of similar usage:  This organisation is a great place to work. This is a great place to stay/sit/study/travel/go.  Just to show that 'live' isn't special in this case. Note: I'd posted the same question  before, but the answers were not satisfying enough (the answers there did not seem to provide the precise grammar aspects of this, those that could be in a serious grammar book), so I'm posting this here to get some more views on the question. I hope it is acceptable. What is a good introductory book on quantum mechanics? Why is quaternion algebra 4d and not 3d? Why is  quaternion algebra 4D and not 3D?  Complex algebra is 2D and what is known as quaternion algebra jumps to 4D.    $ i^2 = j^2 = k^2 = ijk = -1 $  Using $1, i, j,$ and $k$ as the base (where complex uses $1$ and $i$ (or $j$ if you are an EE)) which results in a 4-axis space.  Why is there no 3D algebra? What is the closed form for $\sum_{n=1}^\infty \frac1n - \frac1{n+1/p}$? A while ago, I started to look at expressions of the following form: $$ S_p:=\sum_{n=1}^\infty \frac1n - \frac1{n+1/p}, $$  where $p$ is prime, because otherwise things get too complicated for me at the moment.  What I found so far is the following: $$ S_p= p -\log(2p) - \frac12 \pi \cot\left(\frac\pi p\right) + T_p, $$ where $T_p$ contains $\frac{p-1}2$ terms $t_{p,k}$ of the form:  \begin{cases} \pm 2 \sin\left(\frac{k\pi}{2p}\right) \log\left(\sin\left(\frac{k\pi}{2p}\right)\right) \\ \pm 2 \cos\left(\frac{k\pi}{2p}\right) \log\left(\sin\left(\frac{k\pi}{2p}\right)\right)\\ \pm 2 \sin\left(\frac{k\pi}{2p}\right) \log\left(\cos\left(\frac{k\pi}{2p}\right)\right)  \\ \pm 2 \cos\left(\frac{k\pi}{2p}\right) \log\left(\cos\left(\frac{k\pi}{2p}\right)\right)  \end{cases}   An example can be found .     How does the closed form for $\sum_{n=1}^\infty \frac1n - \frac1{a+n}$ look like? (EDIT: where $a=1/p$) systemd gives us the systemctl commands suite which is mostly used to enable services to start at boot time. We can also start, stop, reload, restart and check status of services with the help of systemctl.  We can do, for example, sudo systemctl enable service_name, and service_name will automatically start at boot time. We can also disable services not to start at boot time.  Is the only difference between the service and systemctl commands that systemctl can be used to enable the start of services at run time? Can we use systemctl on any service? What other significant differences are there? How to prove that $p-1$ is squarefree infinitely often, where $p$ is prime?  I had thought of using Dirichlet's theorem on arithmetic progressions.  The number of squareful values of $p-1$ less than or equal to $n$ is bounded by $\sum_{q}{\pi_{q^2,1}(n)}$, each term $\pi_{q^2,1}(n) \approx \frac{\pi(n)}{q \cdot (q-1)}$, and $\sum_{q}{\frac{1}{q \cdot (q-1)}} \lt 1$.  But using for example , the possibility is open that the error in each approximation for $\pi_{q^2,1}(n)$ may continue to increase with $q$, and since the sum runs up to $\sqrt{n}$, this argument is invalid.  Is there a more refined version of Dirichlet's theorem that can be used to circumvent this issue?  Or an entirely different way to prove this statement? "Who wants ice-cream?" — Should I say "(not) I" or "(not) me"? What does it really mean that telephoto lenses "flatten" scenes? How do you select a particular option in a SELECT element in jQuery? When you boot from live CD, or doing the first boot after installing Ubuntu, splash screen looks awesome. But as soon as you enable nvidia-current driver, installed with apt-get, splash screen goes all crazy.  With crazy I mean that resolution is very low, font(I assume) is very weird and it all looks like it's been broken.  This happened with 10.04 and now again with 10.10.  How do I fix splash screen after enabling nvidia drivers? Is the "Roman alphabet" what we use for English? I understand that the alphabet for the English language is not strictly English as languages such as French, Dutch and many more use the same alphabet, with few additions in other languages. Is Roman alphabet the common term to refer to this set of symbols for writing texts? Computing $\lim_{(x,y)\to (0,0)}\frac{x+y}{\sqrt{x^2+y^2}}$ What is the result of  $\lim_{(x,y)\to (0,0)}\frac{x+y}{\sqrt{x^2+y^2}}$ . I tried to do couple of algebraic manipulations, but I didn't reach to any conclusion.  Thanks a lot.