Multiplying a infinite number with a rational number?
Is it true that $0.999999999\ldots=1$?
Is it safe to use file's hash as IV? I'm encrypting some files using AES in CBC mode.    I'm also using file's digest (SHA-1) to check that data is decrypted correctly (so I need to store it with file).  Is it safe to use this digest as AES's IV and store it in the header of file? Or it has security issue? Color change of string delimiter in listings with macro $x^3-9=y^2$ find integral solutions Find all integral solutions  $x^3-9=y^2$  I tried many times but still no idea how to solve it. I will be grateful for any help. Why does a proof of $\exists f: X\to Y$ injection $\iff \exists g: Y \to X$ surjection requires the axiom of choice? Why does a proof of $\exists f: X\to Y$ injection $\iff \exists g: Y \to X$ surjection requires the axiom of choice?  This question is answered here:   I'm not interested in a proof itself of this theorem, I want to know why this requires the Axiom of Choice. Often I need two (or more) map frames in map layout to present different data next to each other. It is easy to make multiple map frames in QGIS Print Composer. BUT...  It is in the nature of my work that very often I need to update some map frames because data I am presenting in map changed or I need to add/remove layer, change scale, projection etc.  So if I create one map frame, lock it (Lock layers for map item), create second map frame with different layers, scale,projection etc. and than realize I need to change something in first frame, I can't find a simple way to do it...  To simply do that in Mapinfo, there are more Map Windows, in ArcGIS there are multiple Data Frames. What is in QGIS to achieve that? Error 1962: no operating system found after installing 12.04 (Lenovo ThinkCentre) I just installed a fresh copy of 12.04 on a new Lenovo ThinkCentere from a USB drive, and when I restarted after installation, the boot sequence didn't find the OS. Instead I got the 'no operating system found' error. When I started Ubuntu from the USB, I could see the HDD and that it had all the installed files. I just couldn't boot into it. It appeared that GRUB was not at the right place... or that there was something funky with the MBR. What is the simplest way to fix these sorts of errors?  Thank you,  EDIT: It appears the problem might have to do with UEFI and GRUB... How to identify predatory publishers/journals What are the best strategies for assessing if a journal is a &quot;vanity&quot; or &quot;predatory&quot; journal that should be avoided (both for publishing in and reviewing for)? For example, how would one go about determining if a journal/publisher belongs on ? Am I required to pay UK/ USA Visa fees if I have a German residence permit? Here is the situation. I am non-european but staying in Germany with a Residence permit. I can visit all Schengen listed countries with no issue. Assuming that I would want to travel to a non-Schengen country e.g. UK or USA, can I use my residence permit to travel there or am I required to apply as a citizen of my country? Assuming Germans are not required to pay Visa fees to that country, will I have to pay since I only have a residence permit? Third case, Europeans can fly directly to the airport of some countries and apply for a visa from there. In some other countries, you are required to book a Visa appointment at the embassy, which may be granted or not. Does that apply for one with a residence permit? Finding $\lim\limits_{n \rightarrow \infty}\left(\int_0^1(f(x))^n\,\mathrm dx\right)^\frac{1}{n}$ for continuous $f:[0,1]\to[0,\infty)$ Find $$\lim_{n \rightarrow \infty}\left(\int_0^1(f(x))^n\,\mathrm dx\right)^\frac{1}{n}$$if $f:[0,1]\rightarrow(0,\infty)$ is a continuous function.   My attempt:  Say $f(x)$ has a max. value $M$. Then $$\left(\int_0^1(f(x))^ndx\right)^\frac{1}{n}\leq\left(\int_0^1M^ndx\right)^\frac{1}{n} =M$$  I cannot figure out what to do next. Where are the default settings saved for the Command prompt defaults? '\r' added end of the script command This is my script:  #!/bin/bash hd='pwd' cd $hd   When I try to run it, it fails with:  line 3: cd: $'pwd\r\r': No such file or directory   What is going on? Creating an index of quality from multiple variables to enable rank ordering I have four numeric variables. All of them are measures of soil quality. Higher the variable, higher the quality. The range for all of them is different:  Var1 from 1 to 10  Var2 from 1000 to 2000  Var3 from 150 to 300  Var4 from 0 to 5  I need to combine four variables into single soil quality score which will successfully rank order.  My idea is very simple. Standardize all four variables, sum them up and whatever you get is the score which should rank-order. Do you see any problem with applying this approach. Is there any other (better) approach that you would recommend?  Thanks  Edit:  Thanks guys. A lot of discussion went into "domain expertise"... Agriculture stuff... Whereas I expected more stats-talk. In terms of technique that I will be using... It will probably be simple z-score summation + logistic regression as an experiment. Because vast majority of samples has poor quality 90% I'm going to combine 3 quality categories into one and basically have binary problem (somequality vs no-quality). I kill two birds with one stone. I increase my sample in terms of event rate and I make a use of experts by getting them to clasify my samples. Expert classified samples will then be used to fit log-reg model to maximize level of concordance / discordance with the experts.... How does that sound to you? How do I call a .NET assembly from C/C++? Suppose I am writing an application in C++ and C#.  I want to write the low level parts in C++ and write the high level logic in C#.  How can I load a .NET assembly from my C++ program and start calling methods and accessing the properties of my C# classes? moderncv: How to control the length of cvitems and cvlines? Windows 10 thinks it's up to date, but it's not I made a simple FM transmitter following  and it worked! Now I need some help to understand how.  My coil is made of 1 mm copper wire has 6 turns and 8 mm wire diameter. According to this online calculator:  this means that: L = 3.9e-7 H  I did not have any 5 pF trim capacitor so I used a 3 pF capacitor instead.  Am I correct in assuming that the frequency this will transmit on can be found by looking at the L1 C2 as a LC oscillator and using the frequency formulae:  fR = 1/(2*pi*sqrt(LC))  ?  If so I should get fR = 147 MHz. Which is strange since I received the signal on 91.5 MHz on my radio.  In a LC circuit I understand that the signal decays exponentially over time. That is hopefully not happening here. Why? Because of C4 maybe?  Also what is the purpose of C1?  If I want to increase the range of this FM transmitter somewhat can I do this by simply replacing R2 with a 470 Ohm resistor?  Are there free simulator programs that let me see the resulting spectrum at the antenna? When is a function satisfying the Cauchy-Riemann equations holomorphic? It is, of course, one of the first results in basic complex analysis that a holomorphic function satisfies the Cauchy-Riemann equations when considered as a differentiable two-variable real function. I have always seen the converse as: if $f$ is continuously differentiable as a function from $U \subset \mathbb{R}^2$ to $\mathbb{R}^2$ and satisfies the Cauchy-Riemann equations, then it is holomorphic (see e.g. Stein and Shakarchi, or ). Why is the $C^1$ condition necessary? I don't see where this comes in to the proof below.   Assume that $u(x,y)$ and $v(x,y)$ are continuously differentiable and satisfy the Cauchy-Riemann equations. Let $h=h_1 + h_2i$. Then \begin{equation*} u(x+h_1, y+h_2) - u(x,y) = \frac{\partial u}{\partial x} h_1 + \frac{\partial u}{\partial y}h_2 + o(|h|) \end{equation*} and  \begin{equation*} v(x+h_1, y+h_2) - v(x,y) = \frac{\partial v}{\partial x} h_1 + \frac{\partial v}{\partial y} h_2 + o(|h|). \end{equation*} Multiplying the second equation by $i$ and adding the two together gives  \begin{align*} (u+iv)(z+h)-(u+iv)(z) &amp;= \frac{\partial u}{\partial x} h_1 + i \frac{\partial v}{\partial x} h_1 + \frac{\partial u}{\partial y} h_2 + i \frac{\partial v}{\partial y} h_2 + o(|h|)\\\  &amp;= \left( \frac{\partial u}{\partial x} + i \frac{\partial v}{\partial x} \right) (h_1+i h_2) + o(|h|). \end{align*}  Now dividing by $h$ gives us the desired result.   Does there exist a differentiable but not $C^1$ function $f: U \rightarrow \mathbb{R}^2$ which satisfies the Cauchy-Riemann equations and does NOT correspond to a complex-differentiable function? Why is AES considered to be secure? The security of RSA is based on the integer factorization problem, which is a very well defined and understood mathematical problem. This problem must be solved in order to fundamentally break RSA.   What about AES (and others based on the same idea)? Why is it difficult to break? Is there any mathematical principle that ensures its security? I have learnt that the cardinality of the power set of the natural numbers is equal to the cardinality of the real numbers. What is the function that gives the one-to-one correspondence between these two sets?  I have also learnt that there exists no set whose cardinality is strictly between the natural numbers and the real numbers. Is there a proof of this or at least some intuitiveness behind it? What contributes to expanded company details being displayed in Google search results? For some results returned in Google Search, on the right side it displays the company details, logo, contact numbers, etc...   For example, see the following screenshot:    I'd like to know what contributes to this so that I can try to achieve it for my site too.