Is there some functional difference between using:  var Hello = function() {     this.a = 1;     this.b = 2; };  hello = new Hello(); hello.a; // 1 hello.b; // 2   and the most used way where you use:  function Hello() {   this.a = 1;   this.b = 2; }  hello = new Hello(); hello.a; // 1 hello.b; // 2   As far as I understand, the code inside function() is a constructor, and nothing more. Both have Hello.prototype created upon their definition, the only difference is hoising. Is there something I'm missing?  EDIT: In , one person pointed that using the function expression version, one.constructor.name will not be defined which I validated is true. Another person pointed that __proto__ of the newly created object in the function expression points to Object.prototype but I can't verify this in Chrome. Maybe it's true for earlier versions of IE etc.?
I've recently started maintaining someone else's JavaScript code. I'm fixing bugs, adding features and also trying to tidy up the code and make it more consistent.  The previous developer used two ways of declaring functions and I can't work out if there is a reason behind it or not.  The two ways are:  var functionOne = function() {     // Some code };     function functionTwo() {     // Some code }   What are the reasons for using these two different methods and what are the pros and cons of each? Is there anything that can be done with one method that can't be done with the other?
Atiyah Macdonald, Exercise 8.3. Let $k$ be a field and $A$ a finitely generated $k$-algebra. Prove that the following are equivalent:   (1) $A$ is Artinian.   (2) $A$ is a finite $k$-algebra.   I have a question in the proof of (1$\Rightarrow$2): By using the structure theorem, we may assume that $(A,m)$ is an Artin local ring. Then $A/m$ is a finite algebraic extension of $k$ by . Since $A$ is Artinian, $m$ is the nilradical of $A$ and thus $m^n=0$ for some $n$. Thus we have a chain $A \supseteq m \supseteq m^2 \supseteq \cdots \supseteq m^n=0$. Since $A$ is Noetherian, $m$ is finitely generated and hence each $m^i/m^{i+1}$ is a finite dimensional $A/m$-vector space, hence a finite dimensional $k$-vector space.  But now how can I deduce that $A$ is a finite dimensional $k$-vector space? I would like to understand a couple of fact on maximum likelihood estimators (MLEs) for logistic regressions.   Is it true that, in general, the MLE for logistic regression is biased? I would say "yes". I know, for example, that sample dimension is related to the asymptotic bias of MLEs.   Do you know any elementary examples of this phenomenon? If the MLE is biased, is it true that the covariance matrix of the MLEs is the inverse of the Hessian of the maximum likelihood function?   edit: I have met this formula quite often and without any proof; it seems a quite arbitrary choice to me. Can the Force be used to fly? In The Empire Strikes Back Yoda uses the Force to lift Luke's X-Wing out of the water and put it on land.  In Attack of the Clones and in many instances in the second series of The Clone Wars, Anakin (and others) use the Force to jump higher than they could otherwise, or to jump from very high locations, but I don't think I've ever seen the Force used for outright self-levitation.  But if Yoda could lift the X-Wing, shouldn't a strong Jedi be able to lift himself and, essentially, fly with the help of the Force? How to use numpad / on a keyboard without a numpad? I've just got into Blender, and I like it a lot. But as I just switched from a stationary computer to a MacBook, I've got some new problems regarding the numpad. I can use 1-9 perfectly, But I have no idea how to emulate buttons like / (used to enter local view). I've searched the web for an answer, but I can't find any. Shortcuts in Objective-C to concatenate NSStrings I am not a administrator and I would like to find the administrator password. I would not like to reset it however. Is there anyway to find and not reset the administrator password? Add layer to a QGIS group using Python After startup for 5 minutes my system is very slow. The Task Manager shows that the disk usage is at 100%. (Later this number is around 2-4 %, but sometimes for 1-2 minutes go up again at 100%.)  I searched a lot on Google. For example I read , and also other pages. I opened two topic on Microsoft answer.  and one in Hungarian.  But I didn't found the solution yet. So I would like to ask Community's help. :)  Here the steps I already done:   I disabled everything at startups (including services) and the issue is the same.  I disabled Prefetch and Superfetch, the Baground Intellingent Transmission, Windows Search and Windows Defender but the issue is still persists. I made a health check on HDD, I made defrag and file system error check, but there are no errors. Also I tried to reinstall the HDD's driver. I made a full hardware check up, with no errors. The Windows and all the drivers are up-to-date. I tried a clean start. The issue is the same. I deleted Dropbox and all antivirus. I turned of the MSI mode.      I using also Linux, where this error is not occurs. Good to know, that Windows had 4 partitions, but I deleted 2 of them for the Linux. I don't know what partitions was these but both was only 10 - 20 MB.  I using a Dell Inspiron 15R SE 7520 with Windows 10 Home.  Personally I think it can be the Intel Rapid Store Technology "driver", because the problem started around when I installed it. (However I'm not sure.) And my hardware not supported yet by Intel, so I have no the newest driver. However I deleted Intel's software and driver and the issue is the same.    Thank you in advance for your assistance! So I was playing around on Area 51 hoping for further news on the private beta for ebooks, and noticed that my avatar (a hand) was missing. Also the Area 51 has the old toolbar. So I looked at the flair page. The network flair has my hand, the Area 51 flair has a quilt. OK, so time to upload a new image, and WordPress -- WordPress -- I don't want to login to WordPress. Any idea what's up with that?  The following questions did not help, and have different causes and symptoms: Colors and legend in groupplots/barplot In order to compare three items I use the groupplot command. For each item I have n different criteria to compare.    Is it possible to set the color for each criteria itself? Meaning the first bar in every group goes gray, the second pink etc.. The legend than should contain the n compared criteria.  And... how do I manage to let the whole tikz-picture have a width of 0.9\textwith  \documentclass{standalone} \usepackage{pgfplots,pgfplotstable} \usetikzlibrary{pgfplots.groupplots}  \pgfplotstableread{ nr  fii faa foo a   10  15  12 b   12  18  14 c   13  19  15 d   9   13  10 e   7   11  8 f   10  15  12 }\datatable  \begin{document} \begin{tikzpicture} \begin{groupplot}     [group style={columns=3},         ybar,         ymin=0,         ymax=20,         xtick=\empty,         tickpos=both]  \nextgroupplot[xlabel=fii] \addplot [fill=blue] table [x expr=\coordindex, y=fii] {\datatable}; \nextgroupplot[xlabel=faa] \addplot [fill=green] table [x expr=\coordindex, y=faa] {\datatable}; \nextgroupplot[xlabel=foo] \addplot [fill=red] table [x expr=\coordindex, y=foo] {\datatable};  \end{groupplot} \end{tikzpicture} \end{document} Is there a general way to change the font of a particular symbol without switching packages?  For example, suppose I'm using Computer Modern for my entire document, but I want the "subset" operator to look as it does in mathabx.  How can I redefine it to appear in this way? Story ID: Boy who is stuck at 5 years old with robot nanny Here's what I remember:  The boy is 5 years old, and has been for some time, because there's a bit in which he recalls turning 5 (celebrating his 5th birthday) many different times  There's a robot nanny in the apartment with him that he learned to disable so that he can hang out with the girl, who he isn't supposed to know. (In my mind the nanny bears somewhat of a resemblance to Muthr from the Wondla series... however I definitely read this story well before reading Wondla)  There's a neighbor girl who teaches him to read (I think she's like 9), and when they first meet she asks how old he is (5 is the last age at which growth/development can be successfully (and safely?) suspended) and he lies, saying that he's 6, but doesn't know why he does.  When a child whose aging process has been stopped learns how to read, they begin aging normally again, so the parents don't want them to learn to read.  The children who have stopped aging are kept apart from other children who grow normally-- they have separate playgrounds and the like  The injection/serum used to halt the aging process was developed by a scientist, who when he first shared his findings had a 5 year old son and injected him, then told the onlookers/potential buyers/other parents to come back in 20(?) years. When they did, their children were adults and no longer needed them or were ungrateful layabouts, and the scientist's son was still 5 years old, cute, needy, etc.  The main character has a discussion about how he wants to turn 6 with his parents and they agree but only because he's already learned to read and it's irreversible.  It's kinda dark and emphasizes the need that parents have to feel wanted. Please help! I remember it so vividly and I'd love to read it again! Exporting feature class into multiple feature classes based on field values using ArcGIS Desktop? I have a feature class with over 2,000 features, and I need to make them all individual feature classes based on a field.   Is there a way to do this? Let's start with a definition:     Definition: Let $F$ be a field, $I$ a nonzero ideal in $F[x]$, and $g(x)$ an element of $F[x]$. Then, $I= \langle g(x)\rangle$ if and only if $g(x)$ is a nonzero polynomial of minimum degree in $I$.   Now it gets completely foggy what is meant with "minimum degree".I constantly come across the "minimal polynomial". This seems to be linked, but it seems strange that there is a division here.   Could someone give a pointer to what the second line actually means. Maybe some example or diagram (if possible) would help a lot here. I use the following command to clear a directory, of files and directories over 30 days old, and move them to an archive directory which I can delete after a few weeks if nobody asks for their files back. The target directory has subdirectories by user name, so will the archive directory.  This is the command I use:  find /path/to/directory/username/ -mtime +30 -exec mv "{}" /path/to/archive/username/ \;   I suggested a modified version of this to answer a question on ask ubuntu, another user edited the code to change the end of line \; for + as it's faster(and more correct?).   However, using + in this way works if the -exec command is ls -lh but not in the actual command that I use. If I try it with + I get an error message:  find: missing argument to '-exec'   I don't understand why it's behaving this way, or what the correct command would be. Please don't just post a command correction, I'd like to understand rather than just follow a suggestion blindly. I have already bought the PC version on minecraft for my account. However, when attempting to change my skin, the game simply states:"You have to buy the PC edition of Minecraft."   Which is odd because I already have.  Why is this happening? How can I fix it? "Stay home" or "stay at home" – which is correct and why? AND gate made out of transistors letting current pass despite only one input high I recently built a gate with transistors, however my meter reads 1.6 volts when only input B is high, and 2.3 while both are high. How can I fix this? (I used 3 volts instead of 6 and 2k instead of 10k) How full is too full for mechanical hard drives? I have heard many claim that it doesn't matter how full a drive is until it starts cutting into temp and virtual memory space.  This doesn't make sense to me, given the nature of how the data is transacted on a hard drive. The inside of the platter presents less data per revolution than the outside of the drive does, by significant factors. The inside 40% of the radius of full size hard drive is used for the spindle, so only the outside 60% is used for data storage, but that still means that the inside track of a hard drive presents data 60% slower than the outside track.  By my calculation, a Hard drive that is only 10% full should perform about 2.25 times faster than a hard drive that is 90% full, assuming that the flow is constrained by other factors.  Am I wildly off base here? For all the drives I know, even the top speeds of the first 1% of the drive would be well within the bandwidth provided by a SATA 2 connection. Algebraic Proof that $\sum\limits_{i=0}^n \binom{n}{i}=2^n$ I'm well aware of the combinatorial variant of the proof, i.e. noting that each formula is a different representation for the number of subsets of a set of $n$ elements. I'm curious if there's a series of algebraic manipulations that can lead from $\sum\limits_{i=0}^n \binom{n}{i}$ to $2^n$.