I believe this line   if test "$suman_inspect" -eq "yes"; then   is causing this error (verbatim):  bash: test: no: integer expression expected   I formulated the above test expression because I saw this example online:   if test "$#" -eq "0"; then   where this test checks to see if the length of the arguments array is 0.  So is there something wrong with both these checks? I am not sure I understand how the first could be valid but the second one invalid.
I am making the check for update script for my theme  I have 2 text files. First one is called "current.txt" and contains the current version. There is 4.1.1 string in that text file.  Second one is called "latest.txt" and contains the latest version. There is 4.2 string in this text file.  So here is the code  echo "Checking update"; x=$(cat ./current.txt) y=$(cat ./latest.txt) if [ "$x" -eq "$y" ] then        echo There is version $y update else        echo Version $x is the latest version fi   What it mean is if current.txt is NOT the same with latest.txt then it will say "there is version 4.2 update". If not, it will say "version 4.1.1 is the latest version"  But when I try to run it. I get this error  Checking update ./test.sh: line 4: [: 4.1.1: integer expression expected Version 4.1.1 is the latest version   So what am I doing wrong with this?
Probability that an integer number having Poisson distribution is even The probability $P(X=n)$ that an event X takes place $n$ times in a fixed period of time follows the Poisson distribution with parameter $\lambda$ i.e.  $$ P(X = n) = e^{-\lambda} \frac{\lambda ^ n}{n!}$$  I have to evaluate the probability that the event $X$ takes place an even number of times. I know that:   $$ P(X \text{ is even} ) = e^{-\lambda} \cdot \sum_{k=0}^{+\infty} \frac{\lambda^{2k}}{(2k)!}$$  but I can't solve the series.  I guess that I have to use the fact that $e^\lambda = \sum_{n = 0}^{+\infty} \lambda^n/n!$, but I got stuck.  How can I evaluate $P(X \text{ is even})$ (alternative solutions appreciated). A cashier wants to work five days a week, but he wants to have at least one of the Saturday and Sunday off.  In how many ways can he choose the days he will work?  So, in this case, what should I count first?  How do I start?  I know how to solve this if the cashier doesn't want a weekend off, but what do I do if the cashier do?  Thanks! Method for batch layout of images into PDF sheets I have 100,000 identically-sized, but unique, PNG/JPG images which I want to automatically layout onto A4 sheets which can then be exported as print-ready PDFs.  So assuming I can fit 8 of these images per page in a 4x2 grid, I'm looking to input my 100,000 images and output 12,500 PDFs.  I'm a programmer so I could probably write a script to do this myself (e.g. PHP/Python), but I was wondering whether there are any tools/scripts/software that already exists that can do this automatically. Skins that cannot be in mystery gifts? Yesterday I had a discussion with some of my friends while playing league. It was about the contents of the mystery gifts and while I said there are restrictions, they were convinced that you can get absolutely every skin from a gift (including victorious, and really old ones).  Now while I'm pretty sure that there are restrictions (Triumphant ryze for example), I'm not really sure on which skins they affect.   What about the victorious, riot, legacy, pax and completely removed skins (Rusty BC, Black Ali, Urf WW)? Can you get those with a mistery gift or is it impossible to get those right now? So I'm pretty sure there's at least 2, one for both X &amp; Y.   Much like other iterations of the other Pokemon games, are there other Legendaries? How many legendaries, and what are their names? I am working on a git repository with a master branch and another topic branch. I have switched to topic branch and modified a file. Now, if I switched to master branch that same file is shown as modified.   For example:  git status in git-build branch:  # On branch git-build # Changes to be committed: #   (use "git reset HEAD &lt;file&gt;..." to unstage) # #       modified:   cvsup_current #   Switch to master branch  [root@redbull builder_scripts (git-build)]# git co master M       builder_scripts/cvsup_current Switched to branch "master"   git status in master branch  [root@redbull builder_scripts (master)]# git status # On branch master # Changes to be committed: #   (use "git reset HEAD &lt;file&gt;..." to unstage) # #       modified:   cvsup_current #   Why is that the file is shown as modified in master branch even though it was modified in git-build branch?   My understanding was that the branches are independent of each other and when I change from one branch to another the changes do not "spill over" from one branch to another. So I am obviously missing some thing here.   Anyone got a clue stick? Distribution of $-\log X$ if $X$ is uniform. For $X$ and $Y$ random variables; $X$ follows the uniform distribution.  (1): if $Y=-\log X$  (2): then it can be shown that $-\log X$ is distributed as $\exp(1)$ {i.e. exponential with mean 1}.  Why is this so? Intuitively statement (2) make sense to me. But i'd like a mathematical proof.  -Probably wrong working:  (1) seems to imply $\exp(-Y) = X$ (which is like saying $X$ is exponentially distributed, which is a contradiction, since its actually uniform!); or is it incorrect for me to do this since $X$ and $Y$ are random variables?  Ultimately how do I prove (2)?  Thanks Which of those functions are PRFs? Can Eigenvalues[] and Eigenvectors[] be assumed to return the same ordering? I want to get a 360 and don't know wether to get the bigger (250GB), newer, more expensive Elite, or get one of the older, smaller (120GB), last gen ones. I know the arcade is going to be too small to save anything useful  How much hard disk space is recommend? What else is stored besides games? URL to create a new Google document What is the current URL to create a new Google Document please? Since Google last updated their Docs the old URL does not work. What Wording Did Witches and Wizards in Other Cultures Use for Spells? The spells that we know about in the Harry Potter world all seem to be either in Latin, derived from Latin, or resembling Latin.  This makes sense for the European World, but there were likely witches and wizards in Africa, Asia, and the Americas.  These cultures would have developed independently, and the magical people in them would likely have still found ways to cast their spells.  Do cultures with languages that did not derive from Latin use the same words and phrases that are related to Latin for their spells?  Or did they have other phrases based on the languages in their cultures? How many connected graphs over V vertices and E edges? Is there a way to calculate the number of simple connected graphs possible over given edges and vertices?   Eg: 3 vertices and 2 edges will have 3 connected graphs But 3 vertices and 3 edges will have 1 connected graph  Then 4 edges and 3 will have 4 connected graphs  Till such values...it is easy to see its  V choose E  But what about when the number of vertices are less than number of edges...how to calculate then?  I am not able to visualize that  Can it be a variation of the Stars and Bars problem  Like...number of ways 7 edges(balls) can be connected to (kept in) 5 vertices(bags) such that no vertex(bag) is isolated (is empty)  Here maybe we might have to consider the number of edges twice as each edge needs two vertices... After turning census block data into a raster, how do I redistribute the density to reflect land cover types I plan on rasterizing (terminology?) census block data relating to density to a regular 30 m by 30 m grid for use with NLCD data.  I then hope to distribute the density of the original census block among each result set of grid cells within the original polygon according to the land cover type dictated by the NLCD dataset.  For example, let's imagine a string of city blocks with a park, all found within one census block.  If within this census block the average density is 1000 people/km^2, we ultimately would want the resulting grid cell containing the park to have a lower population density than the grid cells containing the surrounding apartments.  This information may be captured by the NLCD dataset, with the park being classified as '21' (open but developed land) versus 24 for apartment buildings which could be classified as '24' (high density development).  Is there a method, or set of methods, within ArcMap that would allow me to:   Redistribute the density based on the NLCD value Perform this redistribution only within the original census block polygon   I don't know if this is possible, but I figured I would ask.  Edit  Here's what I have been trying:  I converted the census block data to a raster, snapping it to the NLCD land cover data and ensuring the output grid cells were the same size.  Each cell contains the same info as the original census block (housing umbers, population, etc). I have been trying to figure out a way to edit the new grid so that if the NLCD grid cell contains a land cover type that doesn't support a business or housing (park, forest, farm, etc.) that it's housing and population values area set to 0.  My next move was going to be figuring out how to subtract the non-residential/non-business grid cells area from the area of the original census block, and force a recalculation of the density.  Converted the altered census block layer to grid cells again, with each having the new density value, and once again set the cells' housing, population, and density values that don't support a business or housing (park, forest, farm, etc.) to 0.  Kind of circular, and I'm not sure of all the steps (raster calculator for editing individual grid cells based on another raster's grid cell value?), but it seems to logically work out if I can get the parts to work.  On the other hand, @dof1985's answer seems to simplify the first part of my workflow (by directing me to the correct toolset), but I will still have to nullify the grid cells where parks, etc., do exits after the density has been recalculated for the census data. Can Ubuntu really run all Windows programs? Does "a couple" always mean two? invalid conversion from ‘const char*’ to ‘char’ Is it posible to change the locale of my device? Continuity of $f(x)$ on $[a,b]$ implies continuity of $f(t) = \displaystyle \min_{a \leq x \leq t}f(x)$ at [a,b]. Given six numbers $x,y,z,a,b,c$ which satisfy the following relations. Express $x+y+z$ in terms of $a,b,c$ Given six numbers $x,y,z,a,b,c$ which satisfy the following relations $y^2+yz+z^2=a^2$ $z^2+zx+x^2=b^2$ $x^2+xy+y^2=c^2$ Express $x+y+z$ in terms of $a,b,c$    My attempt: $\dfrac{(y^3-z^3)}{(y-z)}=a^2,\dfrac{(z^3-x^3)}{(z-x)}=b^2,\dfrac{(x^3-y^3)}{(x-y)}=c^2$ But this step didn't seem to help. So I tried adding and expressing $k(a+b+c)^2$ but some other unmanagable elements came along. I could not think of any other way to approach the problem. Please help.