what are the difference between,  var Human = function(){ this.age = 21; };   and  Human.prototype.age = 31; var ME = new Human(); document.write(ME.age);    It showing output 21, why not 31 ?
What's the difference between  var A = function () {     this.x = function () {         //do something     }; };   and  var A = function () { }; A.prototype.x = function () {     //do something };
mysql_fetch_array()/mysql_fetch_assoc()/mysql_fetch_row()/mysql_num_rows etc... expects parameter 1 to be resource I hope it is alright to ask something like this here, I am having trouble keeping up with all the special cases and my book is being kind of vague.  I know how to do the standard method of finding diagonal matrices, but I know that triangular matrices are special and my book makes a connection, but it is hard to tell what it is.  Thanks. How to overload __init__ method based on argument type? How to access specific raw data on disk from java Style every four posts differently I am a new user for Ubuntu. I downloaded 13.10 yesterday and made a bootable USB with universal USB installer on my Lenovo IdeaPad Z580 laptop which is now using UEFI; everything appeared OK.  When I booted from the LiveUSB I got the choices of trying or installing Ubuntu but both of them keep giving me these error:  [ 1.929082] kernel panic-not syncing vfs unable to mount root fs on unknown-block (0.0)   Please tell me what is going wrong? It is an usual practice that any quantum field theory starts with a suitable Lagrangian density. It has been proved enormously successful. I understand, it automatically ensures valuable symmetries of physics to be preserved. But nevertheless the question about the generality of this approach keeps coming to my mind. My question is how one can be sure that this approach has to be always right and fruitful. Isn't it possible, at least from the mathematical point of view that a future theory of physics does not subscribe to this approach? Why doesn't my screen lock in XFCE? Can anyone please help me with my problem regarding my WordPress left hand side admin menu. I want it collapsed at all times, how do I do that?  Well, I'm creating a WP Multisite so I want that menu bar to be always collapsed at all times.  Any help would be appreciated. Looking for code or if plugin exists, should be fine, too. Thanks. Way to play shared game that is in use in steam? My brother just got me a new computer but he is always on so I can't play his steam shared games. Is there a way to play his games while he is playing a game too? Use a variable reference "inside" another variable I'm sure it is relatively simple, I just don't know how to do it.  #!/usr/bin/ksh set `iostat` myvar=6   I want to something like echo ${$myvar} which i want interpreted as ${$myvar} -> ${6} -> value How does $e^{i x}$ produce rotation around the imaginary unit circle? Euler’s formula states that $e^{i  x} = \cos(x) + i \sin(x)$.  I can see from the MacLaurin Expansion that this is indeed true; however, I don’t intuitively understand how raising $e$ to the power of $ix$ produces rotation.  Can anyone give me an intuitive understanding? $\lfloor x\rfloor + \lfloor y\rfloor \leq \lfloor x+y\rfloor$ for every pair of numbers of $x$ and $y$ PHP regex delimiter, what's the point? I am having some issues with the hyperref package. I would like to create a Introduction chapter without a number so I use \chapter*{Introduction} and \addcontentsline{toc}{chapter}{Introduction} because I want it in the table of contents (see example).  But then the link in my PDF viewer gets it wrong and also the automatically created header is no longer correct (see picture). The table of contents shows the right page number (p.1) but the link is also wrong.   What is my mistake here?  \documentclass{scrbook}  \usepackage{hyperref} \usepackage{blindtext} \usepackage{glossaries}   \makeglossaries  \newacronym{eg}{e.g.}{% for example }   \begin{document}   \frontmatter  % abstract before the table of contents \chapter*{Abstract} \addcontentsline{toc}{chapter}{Abstract} \blindtext  \tableofcontents  % chapter with acronyms \cleardoublepage \phantomsection  \printglossary[type=\acronymtype] \addcontentsline{toc}{chapter}{Glossary}  \cleardoublepage \mainmatter   \phantomsection % \chapter{Introduction} % with this everything is correct but I don't want the number \chapter*{Introduction} \addcontentsline{toc}{chapter}{Introduction}  \blindtext  \pagebreak  \blindtext  % first chapter \chapter{Chapter1}  \gls{eg} \blindtext  \pagebreak  \blindtext   \end{document} $t^3$ is never equal to Let $t$ be a real number such that $t^2=at+b$ for some positive integers $a$ and $b$. Then for any choice of positive integers $a$ and $b$, $t^3$ is never equal to: (A). $4t+3$ (B). $8t+5$ (C). $10t+3$ (D). $6t+5$  We have $t^3 = at^2+bt$ and so for (A) we have $t^3 = 4t+3 = 4(at^2+bt)+3$. I don't see how to continue since this is a cubic equation. Is there an easier way of finding a contradiction? How to add a Timeout to Console.ReadLine()? In linear regression, each predicted value is assumed to have been picked from a normal distribution of possible values. See below.  But why is each predicted value assumed to have come from a normal distribution? How does linear regression use this assumption? What if possible values are not normally distributed? Given that the sequence $(v,Av,A^2v,...,A^nv)$ is linearly dependent (1), $A_{n \times n}$, over $\mathbb{F^n}$ prove that scalars $c_0,c_1,..,c_n$ exist (such that not all of them are zeroes) such that the matrix $M=c_0I+c_1A+..+c_nA^n$ is singular.    First I'm not sure how (*) can be used here exactly. We can say that the sequence $(c_0I,c_1A,..,c_nA^n)$ resembles the sequence (1) where $v=I$. But here we have scalar $c_i$ so it's not exactly the same sequence.   Maybe I could say that the sequence $(c_0I,c_1A,..,c_nA^n)$ is linearly dependent because it has $n+1$ elements while over $dim\mathbb{F^n}=n$ $\quad$(2).  Intuitively I understand that suppose we sum all the matrices $c_iA^i$ and then in the last sum operation we get to some $c_jA^j$ and if it's a linear combination of other matrices then we can have such a $c_j$ that: $$ c_oI+\sum_{i=1}^{n-1} c_iA^i+c_jA^j=0 $$ But I don't think this is enough to prove. Mounting filesystem with special user id set