How can I make Javascript parameters default to something if not present?
Set a default parameter value for a JavaScript function
I have a new HP Z800 Workstation, running Windows 7 Enterprise 64 bit. Z800 Specs are .  The machine has 4GB of RAM -- windows reported 1.99GB available, 2GB was "hardware reserved".  I added another 2 GB and windows reports that there is 6GB of physical RAM, but now 4GB is "hardware reserved".  The BIOS sees the full RAM amount as well.  The video card is an nVidia Quadro FX 580, so it shouldn't be using any shared memory at all.    Why is all my extra RAM marked as "hardware reserved" in Windows 7? Possible to bake texture to new UV map? I have a finished model where the UV maps overlap - lots of wood that isn't detailed to be particular to the model.    I'd like to re-map the texture so that specific details can be added. I'd like to rebuild the UV map into non-overlapping islands, without losing the current texture application, and preferably without manually pulling apart the islands.  Is this possible? Why don't metals glow from red to yellow to green to blue etc.? Why only red, then yellow and then white? Shouldn't all wavelengths be emitted one by one as the temperature of the metal increases?   If some metals do glow at with different colours, could you give me examples of such metals and the reason why this happens in specific cases? Apparently,   $$ \sum_{n = 0}^\infty \frac{n}{2^n} $$  converges to 2. I'm trying to figure out why. I've tried viewing it as a geometric series, but it's not quite a geometric series since the numerator increases by 1 every term. I would like to take control of my app on an iOS device (mostly an iPhone) from my MacBook Pro or Windows, doesn't matter which one.  I know that it can be accomplished via Veency, and that's exactly what I need - but I do NOT want to jailbreak my iPhone.  Is there a similar legal alternative?  If not - is it something I could develop perhaps, or will I run into some SDK limitations for such a thing? How can I get out of the debt-trap as quickly as possible? I have a credit card with 30% interest and a real estate loan with 11% interest. The amount of debt on my card is lower than the real estate loan.   I want to redeem the installments of the real estate loan, but I can't do it because the credit card debt takes all my money.    What can I do in this situation? How can I get out of the debt-trap as quickly as possible?   I have a 4-room house and 2 cars, and 2 children who have to go to school, that's why there are a lot of fix expenses. Change in "under review" date Prove $\frac{1+a^{2}}{1+b+c^{2}} +\frac{1+b^{2}}{1+c+a^{2}} +\frac{1+c^{2}}{1+a+b^{2}} \geq 2$ For positive integers Numbers  $a, b, c $ prove that  $$\frac{1+a^{2}}{1+b+c^{2}} +\frac{1+b^{2}}{1+c+a^{2}} +\frac{1+c^{2}}{1+a+b^{2}} \geq  2$$ This inequality above take long time to prove it and still couldn't complete it.  How I can prove this inequality?  Any hint will help. Thanks How to add greek polytonic with setxkbmap I want to add greek polytonic keyboard layout under Lubuntu (so in LXDE). I already realized there is no easy tool to do it with the graphic interface, so I need to use setxkbmap executing something the like of:  setxkbmap pl,gr   Now, how to make setxkbmap set the greek polytonic variant? Let $ Y = \{ (1,1),(0,0\} \subset \mathbb A_k^2$. Find the $ \mathbb I(Y)$.   As if $f(x,y) \in \mathbb I(Y)$ then as $f(0,0)=0$ hence constant term of $f$ is zero and as $f(1,1)=0$ therefore sum of the coefficients of $f(x,y)$ is zero. But how can we describe this set properly? Are virtual particles only a fictive tool in equations? There is no "action at a distance" in nature. Attraction of a piece of iron by a magnet, attraction between distant electric charges of opposite sign, have to be mediated by something. The  are proposed as an explanation.  If they have an observable effect, it seems like they must exist. If so, why do we call them virtual? It can't be that they have short lifetimes, as there are short-lived particles (resonances) that we don't call "virtual."  On the other hand, some people say that the so-called virtual particles only exist on paper, or that they are just a technique to help us handle our equations.  So what is the meaning of the word "virtual" here? Do these particles really exist, or not? Prove that, for every natural n, $\sum_{d|n} \frac{\mu(d)}{d}=\prod_{p|n}(1-\frac{1}{p})$ Command and Conquer 3 exeption in exception handler I have command and conquer 3 from Origin, but when I try to start it, I get the 'exception in exception handler' error and the game exits.   I've tried the Origin launcher fix as well as -runver to make the game run a different version (although this just says that it can't find any version). I run Windows 10 (I know, experimental) but this game worked at one point, and then stopped working suddenly - there wasn't even an update in between.   I suspect that it's got to do with Origin, but any help would be appreciated. What's the 'correct' way of registering/installing an Assembly to the GAC? There seems to be lots of different ways to register assemblies with the GAC, as in, they 'work'.  However, what's the "proper" way of doing it?  In response to Lou Franco (and gacutil):  I'm using Gacutil for development, but it seems to me to be not the proper way to install it, since gacutil isn't included in the basic .NET utilities past .NET 1.1 - it's only a developer tool.  Additional: Gacutil (as seen in responses below) is not redistributable, and therefore should not be used in any app that you intend to give to people who are not developers.  AKA, customers.  See .  In response to using WIX:  WIX might be great and all, but how does it work under the hood?  What details makes the way WIX installs the assembly the right way to install it?  How does it look it up?  Is it a system/.NET call?  Is there some call in a dll buried somewhere in System32 that needs to be made?    (Edit: it looks like WIX uses MSI under the hood.  See my comments in the accepted answer.)  Final edit: It looks like the correct way to install an assembly to the GAC is using windows installer, and nothing else.  I'm going to give Wix a try.  Thanks all! Here $n$ belongs to natural numbers. Firstly, I proved the relation by putting $n = 1$ . Then, taking $$|\sin(mx)| \leq m|\sin x|$$ true, I had to prove $$|\sin(m + 1)x| \leq (m + 1)|\sin x|$$  Now, here I got stuck. How to prove it?? Please help. How to calculate polygon areas and perimeters using QGIS? Using QGIS, if I load a polygon layer and make a new column, how do I fill that column with the:   area of each polygon and another column with length of the perimeter of each polygon? Ease up on the Hot Network Question Randomness Whenever I refresh Stack Exchange sites or go to a question, the Hot Network Question list items are re-listed or re-ordered, quite dramatically it seems.  This seems like a .  It's actually a bit maddening to me to see the list change so frequently (or clearly I am refreshing too often or looking at it too much :-).  I understand the need to keep the list updated, but can the items in the list hold their positions a little more consistently?  The hot items can't be changing that fast. Jordan normal form and invertible matrix of generalized eigenvectors proof Struggling to find a place to start with this proof- just began learning about Jordan normal.  Given a 2-by-2 matrix $A$ and a Jordan normal form matrix $J_{\lambda}$, there exists a matrix $S = [v1, v2]$ s.t. $$S^{-1}AS = J_{\lambda}$$ That is, $J_{\lambda}$ is similar to $A$.  WTS: $$(A - \lambda I)v_{1} = 0 $$ $$(A - \lambda I)v_{2} = v_{1}$$    I was going to try to start with the similarity condition and work into producing the two statements below.  Transform the similarity condition to: $$(A = SJ_{\lambda}S^{-1}) * v_{1}$$  Rewrite our first statement to prove as: $$Av_{1} = \lambda I v_{1}$$   Substitute: $$\lambda I v_{1} = SJ_{\lambda}S^{-1}v_{1}$$  But I've been continually getting stuck.  Tried a few ways other than this.  What intuition am I missing? If mastery of the Force is hereditary, how are the Jedi so numerous? Is this statement true?     You can not travel back in time. If I travel fast enough the clock will start to go backwards, but that does not mean I am traveling back in time. It would only mean that the time reference is producing a negative count.