I recieved spanish schengen visas in the past and most recently i was refused a visa twice in a row which to me was shocking. I provided all the documents requested by the consulate i will provide a list of documents i provide and i cannot figure out what was missing or what went wrong. I would appreciate any clarity on this matter.  Passport and application correclty filled out Verifiable flight bookings  Parents bank statement  Parents home contract in spain where i will be staying  My assests in home country Car Title  Marriage certificate Daughters birth certificate   What was missing what could have caused the refusals?

Schengen refusal formulae can be difficult to understand sometimes.  Sometimes an applicant receives a refusal with:       Justification for the purpose and conditions of the intended stay was not reliable.     often accompanied by:       Your intention to leave the territory of the Member States before the expiry of the visa applied for could not be ascertained.   What is meant by this refusal reason?  What are they trying to say?


Anyone know why when I search images in Google Image Search, in this example, the input is "Google", it says there are about 872.000.000 results. Then some images are thumbnails display together with a "Show More Results" button. But even when I click on that button, the results turn out only a thousand images only.  Any way for me to get the full results?

That's kind of a recursive Google Search that should be self-explanatory. It did take me some time to tweak the sentence and trying to find a number which would correspond precisely, the reason why I changed it to "hundreds" instead! :P  If you have used Google long enough you certainly have stumbled on situations similar to this, many times. Whenever it shows less than 10 pages it's quite easy to see it. The point is: the number of results on any page except the last one seems like a terrible estimate.  What's even weirder,  the estimate suddenly becomes much better and almost exactly the same on all pages than it is on the last page - the only page that's always correct.  So, anyone knows why?


When I play a game on my pc, the frames are like 100-130. On Xbox one - PS4 there are some games 30-60fps, 60 frames on pc would be so stuttery. Is there a difference in the console's fps, and the pc's?

It seems that video games need to have something like 60 frames per second in order to be smooth and realistic. But TV and films only have about 24 or 25. Why the difference?


How can I show that $$\left( {\frac{1}{\sin z}} \right)^{2}=\sum_{-\infty}^{+\infty}\frac{1}{\left( {z-\pi n} \right)^2}.$$ I don't know how to do this. Any help will be appreciated.

I have the following problem:     Find the constants $c_n$ so that  $$ \frac{1}{\sin^2 z } = \sum_{n= -\infty} ^ {+\infty} \frac{c_n}{(z-\pi n)^2} $$ and the series converges uniformly on every bounded set after dropping finitely many terms. Justify all your claims. Hint: Use Liouville's theorem to prove the equality.     Let $c_n = 1 $ for all $n$.   Let $\displaystyle f(z) := \frac{1}{\sin^2 z}$ and $\displaystyle g(z) := \sum_{n= -\infty} ^ {+\infty} \frac{1}{(z-\pi n)^2} $.   Begin by showing that $h$ is an analytic function which converges uniformly on compact subsets of $\mathbb{C} \backslash \mathbb{Z}$.   Suppose $K$ is a compact set which contains no integers. Define  $$ \delta_n = \inf_{z \in K} |\pi-z/n| =\frac{1}{n} \inf_{z \in K} |\pi n-z|, $$ where the infimum exists because $K$ is compact. Also, compactness implies boundedness. Thus as $n \to \pm \infty$, we have $\delta_n \to \pi$.   Therefore, for sufficiently large $n$, we have $\delta_n > 2$, and  $$ \frac{1}{|z \pm n | ^2} \leq \frac{1}{\delta_n ^2 n^2} < \frac{1}{4n^2}. $$ By the Weierstrass M-test, $g$ converges absolutely uniformly on $K$. Since each term is analytic on $K$, we conclude that the series converges to an analytic function on $\mathbb{C} \backslash \mathbb{Z}$.   Clearly the only poles of $g(z)$ are at $\pi n$ for each integer $n$, with corresponding principal part $\frac{1}{(z-\pi n)^2}$.   For each integer $n$, we have $\sin^2 (\pi n) = \frac{d}{dz} \sin^2(\pi n) = 0$ and $\frac{d^2}{dz^z} \sin^2 (\pi n) \neq 0$, so $f(z) = 1/ \sin^2 (z)$ also has a pole of order two at each integer multiple of $\pi$, and no other poles. Furthermore, the principal part of $f(z)$ is, using the Laurent formulas and contour integration, equal to $\displaystyle \frac{1}{(z-n\pi)^2}$.   Thus $h(z) := f(z)-g(z)$ has removable singularities at the points $n\pi$.   Note that both $f$ and $g$ are periodic with period $\pi$. That is,  $$ f(z) = f(z +\pi) \quad \text{ and } \quad g(z) = g(z+\pi) \quad \text{ for all } z \in \mathbb{C}\backslash\mathbb{Z}. $$ Thus, since $h$ is bounded on the square $\{ z: |\operatorname{Re} z| < \pi, |\operatorname{Im} z |< \pi \}$ and periodic, we may conclude that $h$ is bounded on the set $\{ z: |\operatorname{Im} z |< \pi \}$. To show boundedness on the entire plane, we show that it holds on the vertical strip (with center removed)  $$ S = \{ z: 0 \leq \operatorname{Re} z \leq \pi, | \operatorname{Im} z | \geq \pi \}. $$  For $z$ in $S$, \begin{align*}  \sum_{n= -\infty} ^ {+ \infty} |z-\pi n | ^{-2}  &= \sum_{n= -\infty} ^ {+ \infty} \frac{1}{(x-\pi n)^2 + y^2}   &\leq \sum_{n= -\infty} ^ {+ \infty} \frac{1}{(\pi (n-1))^2 +y^2}   \end{align*} \begin{align*} & = \sum_{n= -\infty} ^ {+ \infty} \frac{1}{(\pi n)^2 +y^2}   &< 2\sum_{n=0} ^ {+ \infty} \frac{1}{(\pi n)^2 +y^2}   &\leq 2\sum_{n=0} ^ {+ \infty} \frac{1}{(\pi n)^2 +\pi ^2}.  \end{align*}  Thus $g$ is bounded on the set. It is easy to show that $f$ is also bounded on $S$. Thus the difference $f-g$ is also bounded. By the periodicity of $h$, the function is bounded on the entire plane, and is constant by Liouville's theorem.   I'm wondering if my reasoning so far is valid; and if so, how to show that the relevant constant is in fact zero.   Thanks.


I am trying to get my head around how multivalues derived from the arcpy command GetParameterAsText gets looped through a script. Could some please provide a sample script that does the follow basic task so that I may study it for further insight?  Get a set of shapefiles from arcpy.GetParameterAsText(0) (the number of shapefiles can vary from to 10 say) and then loop through each shapefile, displaying the following with arcpy.AddMessage saying something to the effect:     "This is shapefile " shapefile name   When looped through all of the shapefiles, print the message "No more shapefiles"

My script works fine with a single feature class selected for clip_fc = arcpy.GetParameter(0) .  However when I set clip_fc to MultiValue in the script properties and then select several feature classes, I get an error "Parameters are not valid.".   Can anyone show me where I am going wrong?  import arcpy import os.path from arcpy import env  arcpy.env.workspace = r"C:\GIS Home\project_1\clipshps\Combined_mf.gdb" arcpy.env.overwriteOutput = True clip_fc = arcpy.GetParameter(0) clip_name = str(clip_fc) output_dir = r"C:\GIS Home\project_1\clipshps\outputs_clip"  for fds in arcpy.ListDatasets():     for fc in arcpy.ListFeatureClasses('','',fds):         out = os.path.join(output_dir, fc + "_" + clip_name[40:] + "_clip.shp")         arcpy.Clip_analysis(fc, clip_fc, out, "")


Context :  I am writing a report with article style in latex and I am wondering if it is possible to have :   on right page : my usual text, my full report without figures ; on counter page (left page) : only the figures that are referenced on their right page, with no styling, only the figure environment in terms of displays.   Some other requirements would be that the list of figures refers to the page where figures are referenced (on the right page) - and not the counter page. The counter page will not be counted as a page.    My question :  Is there an automatic way to do so ? I mean, writing my report completely as usual (text and figures in the same file), and then, with a special configuration, figures are automatically displayed on the counter page when compiling (no numbering at all).

I am preparing a thesis. In order to reduce the number of physical sheets of paper, I need to print certain figures/tables on the verso side. However the university regs state that, while figs/tables may appear on the verso, the body text must appear on the recto side.  I would like to therefore output the vast bulk of the work on the recto page, but with occasional verso pages. Ideally they would be numbered as a "subpage" of the preceeding recto page (e.g. 131, 131a, 132...) or similar.  The approach which I will tentatively adopt is to use a "twoside" flag, then have "empty" and non-numbered verso pages until a page with content is required.   I'm sure I'm not the first person to have had a similar issue, but am unable to imagine other ways of posing the question.


In the beginning, I thought of infinity as something inaccessible. Which can't be reached. And when something can't be reached ( with 'reached' i mean can't be known) its properties were automatically considered as weird.   But in the book " one two three...... Infinity" by George gamow it is written that there are three kinds of infinities :   Infinity no. 1- corresponding to number system ( one dimension)  infinity no. 2- corresponding to set of points in plane ( two dimension)  Infinity no 3- corresponding to three dimensional space.      When three infinities are there, then the so called inacessibility of infinity is somewhat hurt.   Second guess is that it is a large number, then why are it's properties different?

Can someone explain to me how there can be different kinds of infinities?  I was reading "" by  and came across the concept of countable and uncountable infinities, but they're only words to me.  Any help would be appreciated.


The sentence is  "I'd like a cake and a cup of tea, please." Waiter: "............" A. Here it is. B. Here they are.  what is the correct answer to put in the space for the waiter? Should it be singular or plural?

When I type "[singular noun] and [singular noun]" in Word 2010, I find some interesting things.        Bread and butter is essential. (the auto-correction warns me of subject-verb disagreement.)   Bread and butter are essential. (OK)   A knife and fork is on the table. (OK)   A knife and fork are on the table. (OK)   The needle and thread is new. (OK)   The needle and thread are new. (OK)   Cost and revenue is directly linked. (OK)   Cost and revenue are directly linked. (OK)      I wonder how a native speaker would consider this phenomenon.


In my book, Bob takes off on a spaceship with a light clock so that the direction of motion of his spaceship is perpendicular to the direction of motion of light in the light clock.  As a result, Alice (on Earth) sees the distance traveled by light to be $\sqrt{L^2+(vt)^2}$, (given by Pythagoras theorem) which leads to the usual time dilation formula.  But if Bob's spaceship doesn't travel perpendicular to the light, then the distance observed by Alice would be given by law of cosines. This will lead to a different formula for time dilation  Why is the second formula not valid?

I'm guessing you're all familiar with the classic intuitive way of explaining time dilation: with a light clock traveling at velocity v directed at a parallel direction to the mirrors that make up the light clock.   Now, what happens if we have a light clock that goes upwards at v? That is to say, what if its velocity is in a direction perpendicular to the mirrors' orientations? As far as I can tell, this situation wouldn't present any time dilation. Thoughts?


Someone said they can block with a  then return it to their hand with a  before the Arbor takes damage.  That sounds wrong to me.

Suppose Player 1 has a Dragon on the table and  in hand, while Player 2 has two Spiders on the table.  Player 1 chooses to attack with the Dragon and Player 2 chooses to block with one of the Spiders.  Before combat damage is to be dealt, Player 1 uses Unsummon on the blocking Spider.    Does Player 2 take any life damage from the attacking Dragon?


I want to move my C: System Restore Points to my archive HDD D: (which is 8TB big). Any way I can do that? I don't want these system restore points on my 250gb SSD.

How can I change the location (drive, path, etc.) where system restore points are saved on Windows 7?


I am using same gif image twice in a page. Both the images will be hidden initially. Based on certain criteria I am showing those gif images (when clicked on particular target one gif image will be shown at a time). I am unable to reload the gif image. See the attached plunker  1)           <script>     var img1 = document.getElementById("img1");     var img2 = document.getElementById("img2");      function toggle1() {         if (document.getElementById('gif-1').style.display == "none") {             document.getElementById('gif-1').src = '';             document.getElementById('gif-1').src = 'http://insightgraphicdesign.net/wp-content/uploads/2014/07/coke-responsive-logo.gif';             document.getElementById('gif-1').style.display = "block";         } else             document.getElementById('gif-1').style.display = "none";     }      function toggle2() {         if (document.getElementById('gif-2').style.display == "none") {             document.getElementById('gif-2').src = '';             document.getElementById('gif-2').src = 'http://insightgraphicdesign.net/wp-content/uploads/2014/07/coke-responsive-logo.gif';             document.getElementById('gif-2').style.display = "block";         } else             document.getElementById('gif-2').style.display = "none";     } </script>   But if I use one gif image it is working properly, see this plunker (sometimes it is not working may be plunker blocking due to security. better put it in a html and check)  2)     https://plnkr.co/edit/74huqUZmkoc6T6BdNOlz?p=preview      <script>     var img1 = document.getElementById("img1");      function toggle1() {         if (document.getElementById('gif-1').style.display == "none") {             document.getElementById('gif-1').src = '';             document.getElementById('gif-1').src = 'http://insightgraphicdesign.net/wp-content/uploads/2014/07/coke-responsive-logo.gif';             document.getElementById('gif-1').style.display = "block";         } else             document.getElementById('gif-1').style.display = "none";     }  </script>   can anyone help me to make the plunker 1 to work? (both gif images should reload whenever I click the two buttons).  Thanks, HariKrishnan P

I know there are many ways to prevent image caching (such as via META tags), as well as a few nice tricks to ensure that the current version of an image is shown with every page load (such as image.jpg?x=timestamp), but is there any way to actually clear or replace an image in the browsers cache so that neither of the methods above are necessary?  As an example, lets say there are 100 images on a page and that these images are named "01.jpg", "02.jpg", "03.jpg", etc. If image "42.jpg" is replaced, is there any way to replace it in the cache so that "42.jpg" will automatically display the new image on successive page loads? I can't use the META tag method, because I need everuthing that ISN"T replaced to remain cached, and I can't use the timestamp method, because I don't want ALL of the images to be reloaded every time the page loads.  I've racked my brain and scoured the Internet for a way to do this (preferrably via javascript), but no luck. Any suggestions?


My PC has the following:   Asus Sabertooth X79 Motherboard QuadCore Intel Core i7-4820K, 3633 MHz  DDR3 1866, CL9, 1.65V, Quad Channel   I'd wanna throw another 16GB and go for DDR4.  My questions would be:   Are there any incompatibilities between using a DDR3 gen vs DDR4? 1866MHz vs 2400/2800/3000? CL9 vs CL14/15/16? Voltage? Anything else? Would a HyperX Savage/Fury/Predator w/ Black be a good candidate?  Other manufacturers maybe? ($300 tops)

I'm looking to get a RAM upgrade for my SONY VAIO VPCEH25FM. If I get DDR4, is it compatible with a DDR3 slot?


Code:  def op(*ar):   for i in ar:     print(i)  arg=['yel','5',6] op(arg)   Output: ['yel','5',6]  Code:  def op(ar):   for i in ar:     print(i)  arg=['yel','5',6] op(arg)   Output:   yel \n5 \n6(This output is understood)

What exactly do *args and **kwargs mean?  According to the Python documentation, from what it seems, it passes in a tuple of arguments.  def foo(hello, *args):     print hello      for each in args:         print each  if __name__ == '__main__':     foo("LOVE", ["lol", "lololol"])   This prints out:  LOVE ['lol', 'lololol']   How do you effectively use them?


Often complex numbers are descirbed as $$\mathbb{C} = {\{a + bi|a,b\in\mathbb{R},i^2=-1\}}$$  Since $i^2 = -1$, I would assume that $i = \pm \sqrt{-1}$.  My math said that $\sqrt{-1}$ doesn't exist because of $$-1 = \sqrt{-1} \times\sqrt{-1} = \sqrt{(-1)^2} = \sqrt{1} = 1$$  But of course $-1 \neq 1$. Equivalently you could do $$-1 = (-\sqrt{-1}) \times (-\sqrt{-1}) = \sqrt{(-1)^2} = \sqrt{1} = 1$$  which gives the same result.  Could someone explain what I'm missing? Thanks in advance.

I know there must be something unmathematical in the following but I don't know where it is: \begin{align} \sqrt{-1} &= i \\\\\ \frac1{\sqrt{-1}} &= \frac1i \\\\  \frac{\sqrt1}{\sqrt{-1}} &= \frac1i \\\\  \sqrt{\frac1{-1}} &= \frac1i \\\\  \sqrt{\frac{-1}1} &= \frac1i \\\\  \sqrt{-1} &= \frac1i \\\\  i &= \frac1i \\\\  i^2 &= 1 \\\\  -1 &= 1 \quad !!? \end{align}


I am trying to remove the WordPress version number from the file extensions for security purposes. Some of the enqueued files include the WordPress version number on the end of them, which can be seen from the inspector. For example:  <link rel="stylesheet" id="admin-bar-css" href="http://sitename.com/wp-includes/css/admin-bar.min.css?ver=3.8.1" type="text/css" media="all">  As you can see, ver=3.8.1 was apended. I've come across a few filters that remove the WordPress version number from the header and footer etc, but not from the included files. That filter looks like:  function remove_version() {     return '';  } add_filter('the_generator', 'remove_version');   But that does not remove the version number from linked files. Does any one know of a way to remove this version number??  Thanks

I observed the inside the wp_head function in the source links of every .css, .js files a ?ver=1 (or other number based on the file's/library version) is added. How can I overwrite them, to remove them?  This issue I think is causing problems on the cache manifest part.


Here, $\mathbb{N}$ is the set of natural numbers. I was reading why there is no bijection from $\mathbb{N}^\mathbb{N}$ to $\mathbb{N}$, and I understood we took any subset from $\mathbb{N}^\mathbb{N}$ and proved it not bijective to $\mathbb{N}$ by Cantor's Diagonalization argument.   What am I unable to understand is, what exactly is meant by $\mathbb{N}^\mathbb{N}$?  I read somewhere that it is recognized as the space of all sequences of natural numbers. I didn't understand why? What is the meaning of that notation?

${ \mathbb{N} }^{ \left\{ 0,1 \right\}  }$ and ${ \left\{ 0,1 \right\}  }^{ \mathbb{N} }$ to be more specific, and is there a countable subset in each one of them? How do I find them?


If we hypothetically lost all watches and all devices that keep track of time, how would we say what is the current time? Or we actually don't and time is just a convention?

Assume the time standard clocks and any memories about the time standard are destroyed. Can we recover the time standard again exactly?  Recovering the time standard again means we can determine the date  and time that are exactly the same as the destroyed time standard clocks will show (if they are not destroyed).


I am writing a program in C++/CLI in which I fit certain functions to some data input (certain number of $x$ and $y$ pairs). I have $7$ models from which one is $y = a*x^b$ and I have the solution for calculating both $a$ and $b$ factors (I have the sum of $ln(x)$, sum of $ln(y)$, sum of $ln(x) * ln(y)$, sum of $ln(x) * ln(x)$ and then $a$ and $b$ are just results of 2 equations).  Then I have the second model which is $y = a + b*x^c$ and I don't know how to get it. Could anyone help? I also have troubles with models $y = a + b*sinh^{-1}(x/c)$ and $y = a*x +b*sinh^{-1}(x/c)$.

I am trying to fit data of the form $(x_i,y_i)$, $i=1,\ldots,n$, in a curve of the form $y=Ax^B+C$, where $B\in (0,1)$. All three constants $A,B,C$ are to be determined optimally (no particular norm for the moment). Also, the $x_i$'s are positive integers, if that helps.  Is there any standard method to attack such a problem?


Let $G, H$ be locally compact, $\sigma$-compact metric groups equipped with left Haar measures $m_G, m_H$ respectively. Let $\Phi: G \times H \to G$ be continuous such that $\phi: H \to Aut(G), \, h \mapsto \Phi( \cdot, h)$ is a group homomorphism. Denote $\Phi_h = \phi(h)$. Then, the semidirect product $G \rtimes_\phi H$ is defined as the topological space $G \times H$ equipped with $$(g_1, h_1) \cdot (g_2, h_2) = (g_1 \Phi_{h_1}(g_2), h_1 h_2)$$ for $g_1, g_2 \in G, \, h_1, h_2 \in H$. This is a topological group.  I would like to show that $$dm_{G \rtimes_\phi H}(g,h) = mod(\Phi_h) \,dm_H(h)\, dm_G(g) $$ defines a left Haar measure on $G \rtimes_\phi H$, where $mod$ is of course the modular function $mod: Aut(G) \to \mathbb{R}_{>0}$ defined by $$m_G(\varphi^{-1} B) = mod(\varphi) m_G(B)$$ for Borel sets $B \subseteq G$.  How can I do this without any explicit form for $\Phi_h$? The definition for the semidirect product on wikipedia uses conjugation instead of a general automorphism. Is it obvious from my definition that $\Phi_h$ must be some conjugation?

Let $M, N$ be closed subgroups of a given locally compact topological group such that the product $P = MN$ is semidirect, with $M$ normalizing $N$.  Assume second countable, sigma compact, whatever so that Radon products coincide with product measures.  To make life easy, assume $M, N$ are unimodular.  How do we construct a Haar measure on $P$?


I am currently studying An Introduction to Statistical Learning, corrected 7th printing, by  Gareth James, Daniela Witten, Trevor Hastie and Robert Tibshirani. Chapter 6.3.1 Principal Components Regression says the following:  For instance, in Figure 6.14, the first principal component line minimizes the sum of the squared perpendicular distances between each point and the line.   What is specifically meant by "the first principal component line minimizes the sum of the squared perpendicular distances between each point and the line"? These are just words, so the concept is not clear to me; what is the mathematics that represents this? I would greatly appreciate it if people would please take the time to clarify this.

In today's pattern recognition class my professor talked about PCA, eigenvectors and eigenvalues.   I understood the mathematics of it. If I'm asked to find eigenvalues etc. I'll do it correctly like a machine. But I didn't understand it. I didn't get the purpose of it. I didn't get the feel of it.        I strongly believe in the following quote:     You do not really understand something unless you can explain it to your grandmother. -- Albert Einstein   Well, I can't explain these concepts to a layman or grandma.   Why PCA, eigenvectors & eigenvalues? What was the need for these concepts? How would you explain these to a layman?


How can you render a lightning bolt using Cycles?

I know about the technique of using a displace modifier with an animated displace object on a thin plane, but there are no "branches", no forking in the lightning.  Here is an image  that shows more or less what I'm thinking of:    Is it possible to achieve an 3D animated affect like this?  I have tried a few things, such as the . However, it doesn't support animation and repeatedly generating meshes and then manually animating the visibility is a tedious.


I want to merge the unallocated space with my Ubuntu partitions. I want to add 80GB more to sda7 partition and allocate the remaining space to the sda8 partition. How can I do this with GParted?   Below is a screenshot of the disk structure.

Previously, I have installed Windows 7 on my 320 GB laptop with three partitions 173, 84 and 63 GB each. The 63 GB partition was where the Windows was installed. The rest were for file containers.  Now I changed my OS to Ubuntu 12.04 LTS. I installed Ubuntu by replacing the entire Windows 7 on the 63 GB partition. The rest of the partitions remain as an NTFS Windows partition and I can still access them both (the 173 and 84 GB partitions).  Now I want to change the two partitions of Windows into an Ubuntu format partitions plus most importantly, I want to extend the 63 GB partition to more than a 100 GB because at the moment I am running out of disk space. Whenever I try to install any application, especially using wine, it always complains for a shortage of disk space.  How do I do the extending activity before I entirely format my laptop again and lose all the important files on my partitions?


When we start writing some LaTeX command, a pop shows the complete command. Is there some way to add a command e.g. \bibitem to this list so that we will not have to write complete command frequently.

How can I work with customize completion? I want to add some new auto-completion but I don't know How the wizard works. It's here: User>Customize Completion I don't know what should be writen in the box.


Unebootin just doesn't work for me. Is there any other way?

This is the third time I've tried to install Ubuntu Server 14.04.03 64-bit on the same laptop, and each time it caused different problems.  Each time I wrote the same iso image to a USB flash drive by using a different application and OS.   Universal USB Installer (pendrivelinux.com) from Windows WinImage writer from Windows built-in image writer from Linux Mint 17.2    The iso image is the same in all three cases, the USB flash drive is the same, and the laptop is the same. However each time the installation of Ubuntu gave me different installation options. For example, the last time I installed Ubuntu, it didn't show all the packages to choose while installing (Basic Ubuntu server, etc.).


I got stuck on a really simple task. I have several JavaScript function, but I am bad at JS so cannot solve this. I need to put it inside the for loop. Please help. My solution doesn't work. The logic is down - my code is awful help.  FUNCTION WITHOUT LOOP  <script> var c1 = 14.94; var c2 = 12.20;  function changeq() {     var q1 = parseInt(document.getElementById('q1').value);     var t1 = q1 * c1;     var total1 = t1.toFixed(2);     document.getElementById('ukupno1').innerHTML = total1; }  function changeq(2) {     var q2 = parseInt(document.getElementById('q2').value);     var t2 = q2 * c2;     var total2 = t2.toFixed(2);     document.getElementById('ukupno2').innerHTML = total2; } </script>   FUNCTION INSIDE LOOP - WRONG   <script>     var c1 = 14.94;     var c2 = 12.20; var fncs = []; for (var i = 0; i < 3; i++) { funcs[i] = (function(index) {     return function changeq[i] {     var q[i] = parseInt(document.getElementById('q[i]').value);     var t[i] = q[i] * c[i];     var total[i] = t[i].toFixed(2);     document.getElementById('ukupno[i]').innerHTML= total[i];     }     </script>

How would you explain JavaScript closures to someone with a knowledge of the concepts they consist of (for example functions, variables and the like), but does not understand closures themselves?  I have seen  given on Wikipedia, but unfortunately it did not help.


grep -r "<text>" /path | ?   How do I pipe all related files into a new directory (location)?

I'm using grep to generate a list of files I need to move:  grep -L -r 'Subject: \[SPAM\]' .   How can I pass this list to the mv command and move the files somewhere else?


Let's leave the memory issue for a moment, aside.  If I have two 64-cores AMD EPYC processors each, how many virtual machines (servers) can I run at the same time? Is that right that I can run 64 VMs at the same time? (assuming that each vm need 2 logic processors). My question was raised during reading the following article:

This is a  about  Related:      I have a question regarding capacity planning. Can the Server Fault community please help with the following:   What kind of server do I need to handle some number of users? How many users can a server with some specifications handle? Will some server configuration be fast enough for my use case? I'm building a social networking site: what kind of hardware do I need? How much bandwidth do I need for some project? How much bandwidth will some number of users use in some application?


i know this must be only a small bug, but i cant find it.  My function:  function del_mysql($table,$id) { $id = $_GET['id']; $exec = mysqli_query($con, "delete from $table where id = '$id'"); return $exec; }   in Code:  if ($_GET['action'] == 'delete') { del_mysql("awsome","$id"); }   if make in function:  $id = $_GET['id']; echo $table; echo $id;   i get right table and id.  Somebody see the bug? I removed already the $exec and return part and leave only mysqli_query command. but dont want to work.

How do you debug PHP scripts?  I am aware of basic debugging such as using the Error Reporting. The breakpoint debugging in PHPEclipse is also quite useful.  What is the best (in terms of fast and easy) way to debug in phpStorm or any other IDE?


$ sudo apt-get update W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://extras.ubuntu.com maverick Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 16126D3A3E5C1192 W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/maverick/Release   W: Some index files failed to download, they have been ignored, or old ones used instead.   How can I remove these warnings? Running apt-get update has given me these warnings from the beginning of my fresh 10.10 install.

I added some extra repositories with the Software Sources program. But when I reload the package database, I get an error like the following:     W: GPG error:  trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8BAF9A6F   I know I can fix it using apt-key in a terminal, according to the official Ubuntu documentation. But I would have liked to do it graphically. Is there a way to do this without using a terminal?


Is there a useful interpretation of variance as a special case of covariance, Var(X) = Cov(X,X)?

The denominator of the (unbiased) variance estimator is $n-1$ as there are $n$ observations and only one parameter is being estimated.  $$ \mathbb{V}\left(X\right)=\frac{\sum_{i=1}^{n}\left(X_{i}-\overline{X}\right)^{2}}{n-1} $$  By the same token I wonder why shouldn't the denominator of covariance be $n-2$ when two parameters are being estimated?  $$ \mathbb{Cov}\left(X, Y\right)=\frac{\sum_{i=1}^{n}\left(X_{i}-\overline{X}\right)\left(Y_{i}-\overline{Y}\right)}{n-1} $$


I've bought a lenovo thinkpad t470p and I've installed Ubuntu 16.04 but I cannot connect to internet. It seems that Ubuntu doesn't recognize the network card.

I searched many solutions on this site but most of them were referring to Broadcom Wifi drivers while mine has Intel one.   Output of lspci -knn | grep Net -A2  arijit@HP-AU134TX:~$ lspci -knn | grep Net -A2  05:00.0 Network controller [0280]: Intel Corporation Device [8086:24fb] (rev 10) DeviceName: Intel Dual BandWireless-AC 3168 802.11 ac 1x1 WiFi + BT 4.0 Combo Adapter Subsystem: Intel Corporation Device [8086:2110]   Output of rfkill list  arijit@HP-AU134TX:~$ rfkill list  arijit@HP-AU134TX:~$    i.e No Output  Output of uname -a; dmesg | grep iwl  arijit@HP-AU134TX:~$ uname -a; dmesg | grep iwl  Linux HP-AU134TX 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux


I came across this riddle during a job interview and thought it was worth sharing with the community as I thought it was clever:     Suppose you are sitting at a perfectly round table with an adversary about to play a game. Next to each of you is an infinitely large bag of pennies. The goal of the game is to be the player who is able to put the last penny on the table. Pennies cannot be moved once placed and cannot be stacked on top of each other; also, players place 1 penny per turn. There is a strategy to win this game every time. Do you move first or second, and what is your strategy?   JMoravitz has provided the answer (hidden in spoilers) below in case you are frustrated!

This problem is from The Art and Craft of problem solving book:  Consider the following two player game. Each player takes turns placing a penny on the surface of a rectangular table. No penny can touch a penny which is already on the table. The table starts out with no pennies. The last player who makes a legal move wins. Does the first player have a winning strategy?  Now its not hard to see that the first player will always win if you place the coin in the center. But I have been thinking about what would happen If I also allow Quarter, Loonie and Twoonies. Does the first player have a strategy to always win? Could someone provide an explanation?


I have seen someone putting a sandstone in water. With only about 10% of the stone sitting in the water. One could see the stone getting soaked with water. So there must be a force, which lets the water climb up through the stone against gravity.  What is that force? Or is there some other effect present?

If I take a sponge and place it in a shallow dish of water (i.e. water level is lower than height of sponge), it absorbs water until the sponge is wet, including a portion of the sponge above the water level. In other words, it seems the sponge pulls some water from the bath up into itself, doing work, and the water gains some gravitational potential energy.  Where does the energy required to do this work come from? My suspicion is that the answer involves physical and/or chemical bonds between the water and the sponge, or possibly the change in the surface area to volume ratio of the water.


I have an array that contains  line number 1 line number 2 line number 3 line number 4 line number 5   Then I ask for the user input:  read userInput echo $userInput   And then I try to match the user input, which is a number to my array  for i in "${!array[@]}";do if [["${array[$i]}"="$userInput"]] then     echo "~"     echo " $i" fi done   But this doesn't work.  The desire output is this:  4 line number 1 line number 2 line number 3 ~line number 4 line number 5   Can anyone help me please?

I am using the below script to move two days back when script runs at starting two days of the year and also check first and second days of every month and move two days back. if [$month="01"] && [$day="01"]; then         date="$last_month/$yes_day/$last_year"         fulldate="$last_month/$yes_day/$last_year" else         if [$month="01"] && [$day="02"]; then                 date="$last_month/$yes_day/$last_year"                 fulldate="$last_month/$yes_day/$last_year"         else                 if [ $day = "01" ]; then                         date="$last_month/$yes_day/$year"                         fulldate="$year$last_month$yes_day"                 else                         if [ $day = "02" ]; then                                 date="$last_month/$yes_day/$year"                                 fulldate="$year$last_month$yes_day"                         else                                 date="$month/$yes_day/$year"                                 fulldate="$year$month$yes_day"                         fi                 fi         fi fi  But my bad am getting the below error message Etime_script.sh: line 19: [06=01]: command not found Etime_script.sh: line 24: [06=01]: command not found


I'm trying to execute a simple click function after a InnerHTML is created, but it's not working. None is showed in console.    $(document).ready(function() {   var lorum = "Lorem ipsum dolor sit amet, leo nulla ipsum vivamus, augue tempor inceptos sed nam rhoncus. Rhoncus montes litora. Praesent ut ad ornare fusce posuere in, libero bibendum, et adipiscing.  You can click here ";    $('button').click(function() {     $('#content').html(lorum);   });    $(function() {     $('#hue').click(function() {       $('#content-2').html(lorum);     });   });  });     <button>Generate</button>

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


A women's organization was contemplating suing a famous American university when it learned that the percentage of women who received tenure in the university was smaller than the percentage of men. But then it was discovered that in every department, the percentage of women who received tenure in that department was greater than the percentage of men who did. How can that be?

I hope someone may know fresh examples of  for use in my statistics courses.  The examples I've been using are fine, but I'd like to have some new ones.  I'm familiar with the ones on the Wikipedia page: the gender bias lawsuit at Berkeley, batting averages, mortality rates among low birth babies, party voting on the Civil Rights Act, and success rates of kidney stone treatments.  I'm also familiar with the example of survival rates on the Titanic and the one about delayed flights at America West vs. Alaska Airlines.  These are all good ones, but, like I said, I'm looking for more. Does anybody know any others?  For those who aren't familiar with it, Simpson's paradox is essentially a property of unreduced fractions: It's possible to have, simultaneously, $$\frac{a_1}{b_1} < \frac{c_1}{d_1} \text{ and } \frac{a_2}{b_2} < \frac{c_2}{d_2}, \text{ but } \frac{a_1 + a_2}{b_1+b_2} > \frac{c_1+c_2}{d_1+d_2}.$$   For example, $\frac{1}{3} < \frac{34}{100}$ and $\frac{66}{100} < \frac{2}{3}$, but $\frac{67}{103} > \frac{36}{103}$.  It can be hard to spot this happening in a given real-world scenario.


I am working with one of the Five Star properties in Saudi Arabia and I'm an Indian Citizen. I applied for a UK visit visa but it got refused because of the attached statement  I deposited my own savings in my account and I didn't think that it may have raised doubt. How I should explain the deposit I made into my account? It's almost one month since I made the deposit - can I take a fresh bank statement and apply again?  Can anyone advise?

The UK Visas and Immigration Directorate publishes  that provides helpful tips that can result in successful visa applications. Section 2 of this guidance opens is entitled "other documents you may want to provide" (emphasis mine).  Section 2: other documents you may want to provide – all visitors This section provides guidance on the types of documents that you may want to provide to help us consider your application against the Immigration Rules. Previous travel documents/passports, which show previous travel. Financial documents showing that you have sufficient funds available.  These must clearly show that you have access to the funds, such as:  bank statements building society book proof of earnings such as a letter from employer confirming employment details (start date of employment, salary, role, company contact details) where a third party (who is either in the UK or will be legally in the UK at the time of your visit) is providing financial support to you e.g. a business, a friend or a relative, documents to show that they have sufficient resources to support you in addition to themselves and any dependant family should be provided   The first item is "bank statements" and this ties in with the , which says...  evidence that you can support yourself during your trip, eg bank statements or payslips from the last 6 months  (Note 'eg' is a Latin abbreviation meaning "for example"; this appears to be optional rather than a fixed requirement.) Question: How should someone interpret this such that the chances of success are maximized? How many statements should I submit? What are they looking for and what do my bank statements tell about me?


I'm not sure if I can explain this correctly, I just started working in Drupal 7 last week, and I'm working with an established site.   We sell products. Each individual model is classified as a content type, but does not have its own URL. Somehow we have /content pages (like ourwebsite.com/content/model#) visible to the public that contain all of the information on each model, just dumped into an ugly list. These pages are ranking in Google and getting traffic. I don't know why they are visible, I've tried turning off URL alias and it doesn't work. I know I can do redirects, but we have over 1500 models and that would take a very long time. I'm wondering if there's a node or view setting somewhere that I'm missing.   Thank you!

So, to start off, I've seen:        All the answers to those questions make the proposal to make the node unpublished, which was the solution that looked cleanest to me, given that I was making some content types to be viewed exclusively with slideshows, i.e., having www.mysite.com/node/40 showing a list of all the raw images that make up my slideshow in a block elsewhere was not something I wanted. I only want the images viewable within the context of a slideshow.  However, when I followed these answers and made the content of the node unpublished, the content was inaccessible to the slideshow View: It was now blank to anonymous viewers. Is there something I missed in how to make a node unpublished, but still allow its contents to be accessed through Views, as a block?  I'm looking to do this without using the htaccess, hooks, or javascript options I've seen mentioned in the links above.    I can't imagine that having a list of content accessible nakedly under nodes/123 is actually an intentional feature.  One other qualification that makes this a tricky problem---there are ways of preventing access to node/123, but they can also hinder your own ability to create or edit nodes!


Ideally, I'd like to use my normal cell phone number, but if that doesn't work, I'd like to be able to have some other line for texting and be able to do it from the computer.

I'm tired of paying for my cell phone. It's just a small glorified computer and anyone wanting to contact me can contact me when I'm home.  I would, however, be willing to pay small fee for the ability to use sms text messaging using my internet on my computer.  Is this possible in Ubuntu?


I recently installed Ubuntu 12.04 on my Samsung laptop alongside Windows 7. Whenever I use Ubuntu (even when its idle) kworker uses almost 90% of one of 8-cores. Even though it doesn't really affect my usage, it bugs me and I am afraid of that it might harm my processor. I even tried installing another Linux distro (Linux Mint), and kworker caused the same problem. So I don't know what to do. I would really appreciate your  help.

I recently upgraded to the Kubuntu Natty Beta 1 and I've been having a lot of issues with the process kworker. At moments it uses almost half my CPU. Also, strangely enough it seems to affect my USB ports; whenever I plug in an USB drive, the process kworker goes into hyperdrive, leaving me unable to work.  I have thought about filing a bug but since I haven't even found any reasonable explanation on what kworker is I figured I should find out first.


Why do we need tensors in Tensorflow? I mean, if numpy can be used to create multidimensional arrays, which tensors essentially are, why do we bother creating tensors instead of numpy arrays?

I've noticed lately that a lot of people are developing tensor equivalents of many methods (tensor factorization, tensor kernels, tensors for topic modeling, etc) I'm wondering, why is the world suddenly fascinated with tensors? Are there recent papers/ standard results that are particularly surprising, that brought about this? Is it computationally a lot cheaper than previously suspected?  I'm not being glib, I sincerely am interested, and if there are any pointers to papers about this, I'd love to read them.


I am a student who's about to take the GCE 'A' Levels, and I am very interested in taking Physics as a career. I'd like to read some books on advanced Physics concepts that are specifically beyond my country's GCE 'A' Level syllabus, detailed , specifically from pages 7 to 25. Physics obviously requires mathematics as well, and I am also taking the GCE 'A' Level exam for maths (syllabus , from pages 4 to 13).   In summary, the Physics syllabus covers Newtonian dynamics (in two planes, and sometimes in only one); the Zeroth and First Laws of Thermodynamics, electrostatics, current electricity, electromagnetism (and EM induction) and an introduction to quantum, semiconductor and nuclear physics. The physics syllabus does not require calculus, although the maths syllabus includes it.   I have a copy of Physics for Scientists and Engineers, 9th Edition but the 'A' Level syllabus already covers about 70-75% of the book's content (albeit without calculus). Hence my asking here for recommendations on books that I could read, with mathematical rigour that introduces me to more advanced physics.  Nothing too specific - a book that covers all fields would be great.

Every once in a while, we get a question asking for a book or other educational reference on a particular topic at a particular level. This is a meta-question that collects all those links together. If you're looking for book recommendations, this is probably the place to start.  All the questions linked below, as well as others which deal with more specialized books, can be found under the tag  (formerly ).  If you have a question to add, please edit it in. However, make sure of a few things first:   The question should be tagged  It should be of the form "What are good books to learn/study [subject] at [level]?" It shouldn't duplicate a topic and level that's already on the list   Related Meta:


What could be a single word to "fitness enthusiast" ?

A group of people who regularly attend gym classes or work-out. What are they called? Is there a single-word for this particular group?  Apart from my calling them fanatics, mad (BrEng)/crazy (AmEng), body-obsessed, vain or dull.   Seriously, what are they?  ? ? ?   I'd also appreciate any equivalent popular/recognized expressions that haven't yet entered any standard dictionary but have been buzzing around for a few years.   Trivia In Italian, a gym is called palestra. Italians are very body conscious and tend to look after themselves very well, in fact it is true to say that it's quite difficult to find overweight, unattractive, or unfit men or women who attend these almost daily sessions. The men, in particular, can get carried away and so the expression palestrato has been coined in the Italian language. A  is someone who frequently attends the gym, but is also an exhibitionist, self-obsessed, extremely vain, and very very muscular.


I use a Intel i3 proccesor with 4gbs of ram. I want a flavor thats lightweight and also modern looking.

For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and  such as:    with a lighter desktop than the usual Gnome and Unity  with the even lighter LXDE desktop   Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements?


I have a mqtt broker which I am connecting through python.   I want to check if I am able to connect to my broker and trigger a mail if my connection is successful.  I intend to use a global variable connected and if this is false after trying to connect I trigger an alarm.  My code:  import paho.mqtt.client as mqtt  import time  broker_address="ip" port = "port"  global connected   def mqttConnection():     connected = False     print(connected)     client = mqtt.Client("BrokerCheck",clean_session=True) #create new instance     client.on_connect = on_connect     print('Connecting to broker')     client.connect(broker_address, port=port) #connect to broker  def on_connect(client, userdata, flags, rc):     if rc==0:         print("connected OK Returned code=",rc)         connected = True     else:         print("Bad connection Returned code=",rc)    if __name__ == '__main__':     mqttConnection()     time.sleep(60)     if connected:         pass     else:         #trigger an alarm   But I have a problem with my global variable connected. Am I using it in a right way?

How can I create or use a global variable in a function?  If I create a global variable in one function, how can I use that global variable in another function? Do I need to store the global variable in a local variable of the function which needs its access?


Is it a GPG key or a PGP key? Or do you just use gpg to produce the pgp key?  I see them used together, and its just a tad bit confusing. What do they stand for?

What are the main differences between PGP (Pretty Good Privacy) and GPG (GNU Privacy Guard) in relationship with security in Ubuntu and Launchpad?


Parseltongue could only be spoken by certain wizards such as Gaunts, Voldemort, Harry (temporarily) and Slytherin. Why couldn't it taught like French or Latin? Why wasn't it a subject in Hogwarts? Ron could mimic it to open Chamber of Secrets. During the 6th book Harry visits Gaunt's house with Dumbledore in memory where he sees them talking in parseltongue. Could Dumbledore understand them and how?

J.K. Rowling has stated that Dumbledore was fluent¹ in English, Mermish, Gobbledygook, and Parseltongue. If this is so: Why didn't Dumbledore hear the Basilisk during the events in Chamber of Secrets? There's nothing to indicate Dumbledore was hard of hearing (no ear trumpet!) and he spent enough time in the castle that surely he would have been near the Basilisk at least once or twice. Is there any canon-based explanation for this?  ¹What J.K. Rowling actually said was that Dumbledore understands Mermish, Parseltongue, and Gobbledygook. That's enough of a difference from fluency that I felt I should mention this. Further, J.K. Rowling has this to say about learning Parseltongue:     Q: Since Ron is able to speak Parseltongue in the last book, does that mean that Parseltongue is a language that most witches and wizards can learn or must a person be born with some ability to speak Parseltongue?   JKR: I don't see it really as a language you can learn. So few people speak it that who would teach you? This is a weird ability passed down through the Slytherin blood line. However Ron was with Harry when he said one word in Parseltongue, which I do not know so I cannot duplicate for you, but he heard him say "Open," and he was able to reproduce the sound. So it was one word. Whether he could learn to speak to snakes properly is a separate issue. I don't think he could. But he knew enough, he was smart enough, to duplicate one necessary sound.      So where does this leave Dumbledore when it comes to Parseltongue?


I need to create a thematic map for time intervals  (ex. 1/1/1920-31/12/1929). To every polygon corresponds a date (from a date field) and I need them to be coloured depending in which interval they are situated. I can't find anywhere in the symbology tab a place to type the time ranges. In the quantities section I can't even select any field.      I would like to use Field calculator to convert my date into a number, which would represent the first year of a decade. For example 20/9/1954 ->> 1950. I think that would help me a lot. But I don't know how to do it in python or VB.   I have access to the Excel table that has been attached to the shapefile and I could easily do this transformation in Excel. And then add the data again to ArcMap. But I prefer doing it all this in ArcMap.  Another problem is that I have dates prior 1900, and if I sort them ascending, the ones before 1900 would appear even before the null values. So I guess ArcMap doesn't recognize them because of Excel. I've already read another topics about this problem, but I still couldn't find a solution.  I also read this answer to a similar question:     If you are looking for Quantities -> Graduated Colors/Symbols, they   won't directly work with Date fields. You could however convert the   date fields to numbers and use that instead. I'd convert each date to   an Epoch timestamp (number of seconds since a particular date,   01/01/1970 being used most frequently), then use the Epoch timestamp   to symbolize your features.   That would be very helpful too, but again, my lack of programming skills blocks me.    I solved this by extracting  the year from the date field into a new field (integer) using field calculator and the formula: DatePart ("yyyy", [field.name]  ). And then I created the map by quantities and used the intervals I wanted.

I've got a layer of polygons where each has a date associated with it.  I want to color the polygons with graduated colors, but I want the colors to start with the newest polygons and fade to the oldest polygons.  So far I haven't been able to find a way to do this in ArcMap (<= 9.3.1) other than to create a new field and calculate some integer or float value based on the date.  Is it possible to use a date or time field directly?   The data is natively a date-time value There are far too many records to use any unique-value renderer Converting the date to a numerical field is an answer for a different question.


Is there any academic research going on regarding Stack Exchange?  I would be interested in helping, if someone is writing a paper.

As a result of  myself, the need arose to track other Stack Overflow-based research. The following is an attempt to list the academic papers mentioning Stack Overflow/Exchange or using Stack Exchange data. This also includes the works mentioned in  that started the trend, as well as two other questions on meta, , and . If you know of papers that are not listed, please edit the answer directly. I realised it might be useful to have all the BibTeX entries in a single file, so I started .


\documentclass[11pt, a4paper]{report}        \usepackage{bm}     \usepackage{amsfonts, graphicx, verbatim, amsmath,amssymb, amsthm}     \usepackage{color}     \usepackage{array}     \usepackage{setspace}% if you must (for double spacing thesis)     \usepackage{fancyhdr}     \usepackage{enumitem}     \usepackage{tikz}     \usepackage{parskip}      \setlength{\textheight}{22cm}\setlength{\textwidth}{16cm}     \setlength{\topmargin}{-1.25cm}     \setlength{\oddsidemargin}{-0.5cm}\setlength{\evensidemargin}{-0.5cm}     \setlength{\textheight}{24cm}\setlength{\textwidth}{16.5cm}     \setlength{\topmargin}{-1.25cm}     \setlength{\oddsidemargin}{0.5cm}\setlength{\evensidemargin}{0.5cm}     \newtheorem{theorem}{Theorem}[section] \newtheorem{acknowledgement}[theorem]{Acknowledgement} \newtheorem{algorithm}[theorem]{Algorithm} \newtheorem{axiom}[theorem]{Axiom} \newtheorem{case}[theorem]{Case} \newtheorem{claim}[theorem]{Claim} \newtheorem{Theorem}[theorem]{Theorem} \newtheorem{conclusion}[theorem]{Conclusion} \newtheorem{condition}[theorem]{Condition} \newtheorem{conjecture}[theorem]{Conjecture} \newtheorem{Fact}[theorem]{Fact} \newtheorem{corollary}[theorem]{Corollary} \newtheorem{criterion}[theorem]{Criterion} \newtheorem{definition}[theorem]{Definition} \newtheorem{example}[theorem]{Example} \newtheorem{exercise}[theorem]{Exercise} \newtheorem{lemma}[theorem]{Lemma} \newtheorem{fact}[theorem]{Fact} \newtheorem{lma}[theorem]{Lemma} \newtheorem{notation}[theorem]{Notation} \newtheorem{problem}[theorem]{Problem} \newtheorem{proposition}[theorem]{Proposition} \newtheorem{Property}[theorem]{Property} \newtheorem{remark}[theorem]{Remark} \newtheorem{Comment}[theorem]{Comment} \newtheorem{solution}[theorem]{Solution} \newtheorem{summary}[theorem]{Summary}     \begin{document}     \begin{corollary}      \begin{enumerate}[label=(\roman*)]     \item The degrees $n_i$ satisfy $\sum n_i^2 =g$     \item If $s \in G$ is different from $1$, we have $\sum n_i \chi_i(s) =0$     \end{enumerate}     \end{corollary}     \end{document}   I have the above MWE, I want to remove the "a" while keeping everything else the same.

Using package amsthm, the desired theorem style achieved,  \documentclass{book} \usepackage{amsthm}  \newtheoremstyle{mystyle}{}{}{}{}{\bf}{}{\newline}{} \theoremstyle{mystyle} \newtheorem*{mythm}{Theorem}  \begin{document} \begin{mythm} This is a normal body text. \end{mythm} \end{document}     But itemizing the body makes trouble,  \documentclass{book} \usepackage{amsthm}  \newtheoremstyle{mystyle}{}{}{}{}{\bf}{}{\newline}{} \theoremstyle{mystyle} \newtheorem*{mythm}{Theorem}  \begin{document} \begin{mythm}     \begin{itemize}         \item This an itemized body text.         \item This an itemized body text.     \end{itemize} \end{mythm} \end{document}     As the last output shows, first item has jumped to the head line.  How can I bring it back to the body?


From , from words_that_end_in_GRY's answer.  From elementary calculus, I always thought $\int^{}$ and $dx$ were just a kind of "command" button to integrate something between the two, rather than a genuine mathematical object.   (I don't mean this is widely accepted definition of the terms, but by "mathematical object" I mean anything that can be subject to mathematical operation. By "command button" I mean symbol for operation of some kind. In "2+2=4" 2 and 4 will be mathematical objects and + and = will be command button.)  That understanding caused no trouble in elementary calculus like  $\int^{} \mathbf f(x) \mathbf {dx}$.  But it starts to confuse me when things like  $g(\mathbf r) = \int^{\mathbf r} \mathbf F(\mathbf r')\cdot \mathbf {dr'}+c$.  comes up. dot product! $dr'$ is being dot producted! Then clearly it sounds like $$dr'$ is some genuine mathematical object.  I remember I felt similar confusion in differential equation course and many others.  In short, what's the true rigorous meaning of dx symbol in general (possibly multivariate) setting?

$dx$ appears in differential equations, such us derivatives and integrals.  For example, a function $f(x)$ its first derivative is $\dfrac{d}{dx}f(x)$ and its integral $\displaystyle\int f(x)dx$. But I don't really understand what $dx$ is.


Regularization reduces the magnitudes of the regression coefficients. I read that this helps reduce the variance of the model. Why exactly do smaller values of the coefficients lead to a lower variance model?

In order to solve problems of model selection, a number of methods (LASSO, ridge regression, etc.) will shrink the coefficients of predictor variables towards zero. I am looking for an intuitive explanation of why this improves predictive ability. If the true effect of the variable was actually very large, why doesn't shrinking the parameter result in a worse prediction?


I have Tex Live installed. Everything look fine, pdfpages show any particular page I want, but when i want to print all pages via command:   \includepdf[pages={1-5}]{vyzkum/Form.pdf}   ! Missing = inserted for \ifnum.   <to be read again>                 -   l.6014 \includepdf[pages={1-5}]{vyzkum/Form.pdf}   or      \includepdf[pages=-]{vyzkum/Form.pdf}    ! Package pdfpages Error: Cannot find file `-'.     See the pdfpages package documentation for explanation.    Type  H <return>  for immediate help.     ...                                                   l.6014 \includepdf[pages=-]{vyzkum/Form.pdf}   The default (no range spacified):    \includepdf{vyzkum/Form.pdf}   It shows only the first page  Any comment/help is deeply appreciated!

The  says the following:     E.g.: pages=- will insert all pages of the document [...]   however, when I put \includepdf[pages=-]{foobar.pdf} in my LaTeX doc (compiled w/ xelatex), I get this error:  ! Package pdfpages Error: Cannot find file `-'.   Similarly, just using a range like \includepdf[pages={1,3,5-last}]{foobar.pdf} results in:   <use  "foobar.pdf" > ! Missing = inserted for \ifnum. <to be read again>                     - l.91 ...df[pages={1,3,5-last}]{foobar.pdf}   I'm using the latest pdfpages downloaded from CTAN.  Any idea where could the problem lie?  edit: MWE:  \documentclass{article} \usepackage{pdfpages} \usepackage[czech]{babel} \begin{document}  \includepdf[pages={1,3-5}]{foobar.pdf} \end{document}


Let $f$ b a holomorphic in $\{|z|<1\}$ \ $\{0\}$. I want to show that if $f$ doesn't get values in $(-\infty ,0]$ then $0$ is a removable singular point.  I am not sure where to start, but since $f$ is never equal to $0$ then I can probably work with $\frac{1}{f}$ which is also holomorphic in the same domain.   From Riemann's theorem, I know that if $f$ is bounded in a neighborhood of $0$ then it is a removable singular point.  However I don't think it gets me anywhere here.  Help would be appreciated

If $f$ is holomorphic on $D\setminus \{0\}$ and takes no values in $(-\infty,0]$ then $0$ is a removable singularity.   I thought to prove this by elimination, but I can't really tell anything about the behavior of $f$ around $0$. How can one translate the information about the definition of $f$ in semi-open interval $(-\infty,0]$.


I currently use Texmaker when working with LaTeX.  I often use Git as well with LaTeX.  I was wondering if there is an IDE similar to Texmaker which supports Git.  Thanks.  P.S. I use Ubuntu.

What editors/IDEs are available for easing the process of writing TeX/LaTeX documents? Please state some useful features like code completion, spell checking, building final DVI or PDF files, etc.  This question is undergoing a systematic refurbishment, see  on Meta. If you’d like to see another editor feature covered here or to take care of an editor that’s not covered yet, share your ideas in that meta question.  List of editors Links to answers.


Is it possible to slow down the speed of light  in a vaccum?

First of all, I know that light does indeed travel slower in a medium like air or water, but that's because the photons are bouncing off of the medium's particles and in different directions so the light beam as a whole is slowed down (or at least that's the classical explanation I've read somewhere).  But my question is about light traveling freely in the vacuum. What if an astronaut during a spacewalk switches on a flashlight towards the opposite direction he is moving. Will that light travel slower than normal?  If not, is there another way to make light move slower? For example, can you make a beam of light move so slow that you can visually perceive it being affected by gravity?


I'm running a HelpDesk for internal call center employees.  All employees have headsets in conjunction with their jobs, and I'm working on a script to remotely launch a minimized Mumble session via SSH in order to better aid in remote support.  All remote users are using Linux Mint XFCE.  I followed Oli's top solution to the question , and I used his example to write this bit of code to launch Devilspie (which I've pre-configured to minimize Mumble) and then launch Mumble itself:  export DISPLAY=:0 devilspie & echo loading devilspie mumble   When I test this code while logged in as the remote admin profile, it works like a charm.  Devilspie launches, and then Mumble launches to immediately minimize.  My problem, however, is that the end-users I'm trying to support aren't administrators on their workstations.  If I run this same script via SSH while the remote machine is logged in as a non-admin user, Devilspie gives me the following error:  No protocol specified Gdk-WARNING **: devilspie: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.   and Mumble gives me the following error:   No protocol specified  mumble: cannot connect to X server :0   Since this same script works flawlessly on an admin profile, I'm presuming that the error may have something to do with permissions.  Help!  I can't figure out how to launch these applications for a non-admin user.

Following are other questions which I think I need to know:   From a non X Session? (meaning root isn't logged into X) If multiple people were logged in on X, could I auto-detect who was on which screen, and thus programmatically detect which screen I need to launch the app on? Can I launch the app as the user? ( ok I'm 99.999% sure this is a yes ) Can I detect if users of group X are logged in to X?


I'm trying to add a loopcut to a filled in part of my mesh. why won't it work?

Alright so I've seen some postings about loop cuts and done some research. I am very new to blender and modeling overall. I am trying to loop cut this concrete barrier. Now I'm following a tutorial and kind of did my own thing in some areas. I cleaned it up following some instructions in another answer here on stack exchange.  I can't for the life of me figure out why I can loop cut around the whole bottom:   ...but not the whole middle:   I see this marked as answered by another question. That question refers to ngons and inside faces. Now once again I'm totally new to this. I looked on the inside. I don't believe I have inside faces or any ngons by the terms I've read online in my research.  Here is a wireframe picture and the inside view:     Maybe I'm missing something the answers on other posts are saying. If so and you know what it is I'd be very appreciative of what it is.


How I can download or create my own what is normal map can we edit in Gimp or Photoshop ?

How can I draw (not bake) normal map over my model, like a texture in texture paint mode? Render cycles.  Thank you in advance!


I am already at the population cap for my vault - 200 dwellers - but while I was switching dwellers around rooms, I left two very charismatic dwellers in their living quarters together for too long, and now one of them is pregnant.  Since I'm at the population cap, what happens? Presumably my dweller will remain permanently pregnant now?

I filled my vault (without really paying attention, it just sort of happened) and I was fairly OK with hitting 200 dwellers.  And... so I wasn't paying full attention to which rooms I was assigning dwellers and I ended up with a male and a female dweller in the barracks... and well... I have a full vault and a pregnant dweller.  So, my question is; what happens now?  Will she remain pregnant until there is space? Will the baby be born and push me over the limit, presumably with some penalty for going over? Will one of my other dweller die?


I have a question about declaring methods for a function in JavaScript. Suppose that I declare a function Monster in these two following ways: First way: function Monster() {   this.growl = () => {     console.log('grrr!');   } }  Second Way: function Monster() { } Monster.prototype.growl = () => {   console.log('grrr!'); }  The question is: when I instantiate n monster I do create n methods for both way of declaration or I create only one method for all the monsters I instantiated?

What's the difference between  var A = function () {     this.x = function () {         //do something     }; };   and  var A = function () { }; A.prototype.x = function () {     //do something };


I searched everywhere for methods on repairing armor and people said that you could ask people to repair armor for you but it's too expensive. Then I saw people saying you could "cannibalize" armor, and by that I mean using similar armor to repair the primary armor set. But I don't see the option to do so. I went to my workbench but it didn't say anything about repairing my armor.

In both Fallout 3 and Fallout: New Vegas, how can I repair my weapons and armor?


I've just upgraded from 14.04 to 16.04. I'd edited /etc/default/grub to add the word text to GRUB_CMDLINE_LINUX_DEFAULT and un-commented GRUB_TERMINAL=console (not sure if this makes a difference). Then ran update-grub.  This caused the console to reboot to the command line in 14.04. But after upgrading it boots to the graphical terminal. I need a command line to reconfigure network settings before I can get an ssh session. This is a VMWare virtual machine and the console doesn't respond to the mouse.

Is there any way to temporarily disable GUI (X server) when booting an Ubuntu 16.04 LTS installation?  There are various guides advising to add text option onto the line GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub or directly on the linux line in GRUB. These methods work well in Ubuntu 14.04 LTS but I always end up in LightDM when trying them in 16.04 LTS.


I am a ubuntu 14.10 user and i can not install Ubuntu_one in my PC! How i can install it and can set it up into my Menu bar also .

I just received an e-mail from Canonical warning me that the Ubuntu One service is going to shutdown. Is this real? Has anyone else got the same e-mail? Why is this happening?  Any information would be appreciated :S  Email:     Hi,      We are writing to you to notify you that we will be shutting down the   Ubuntu One file services, effective 1 June 2014. This email gives   information about the closure and what you should expect during the   shutdown process.      As of today, it will no longer be possible to purchase storage or   music from the Ubuntu One store. The Ubuntu One file services apps in   the Ubuntu, Google, and Apple stores will be updated appropriately.      As always, your content belongs to you.  You can simply download your   files onto your PC or an external hard drive.  While the service will   stop as of 1 June, you will have an additional two months (until 31   July 2014) to collect all of your content. After that date, all   remaining content will be deleted.      If you have an active annual subscription, the unused portion of your   fees will be refunded. The refund amount will be calculated from   today's announcement.      We know you have come to rely on Ubuntu One, and we apologise for the   inconvenience this closure may cause.  We've always been inspired by   the support, feedback and enthusiasm of our users and want to thank   you for the support you've shown for Ubuntu One. We hope that you'll   continue to support us as together we bring a revolutionary experience   to new devices.      The Ubuntu One team


well  got in one base Game guru card a 3 power minion (ongoing this minion is not effected by other player's abilitis ) and in another base got a 4 power minion  and my wife play's Bear Hug action {Each of other player destroys his or her minion with the least power (owner chooses in case of tiess)}. what happend there ?  and what mean in case of tie ?  plz help us !!

The wording on Bear Hug states:     Each other player destroys his or her minion with the least power   (owner chooses in case of ties).   The wording on Incorporeal states:     Play on one of your minions.  Ongoing: This minion is not affected by   other players' cards.   Can Bear Hug force a player to destroy a minion that has Incorporeal played on it if it is the lowest power minion?  I ask because my game group came up with two separate interpretations of the rule.  The first interpretation was that Bear Hug doesn't affect the minion because Bear Hug is a card and has no effect against the Incorporeal minion due to the wording of "other players' cards."  The other interpretation is that Bear Hug does force the player to destroy the Incorporeal minion since Bear Hug is played on the player and not the minion directly.  Is there something in the rules that can clarify this or at least a general consensus from some official forums?


Solve the following equation: $$\frac{8^x + 27^x}{12^x + 18^x} = \frac{7}{6}$$  All I managed to do is rewrite the given equation in a simpler form: $$\frac{4^x}{6^x + 9^x} + \frac{9^x}{6^x + 4^x} = \frac{7}{6}$$  I don't know what should be done next.  Thank you in advance!

Find all real numbers $x$ for which $$\frac{8^x+27^x}{12^x+18^x}=\frac76$$  I have tried to fiddle with it as follows:   $$2^{3x} \cdot 6 +3^{3x} \cdot 6=12^x \cdot 7+18^x \cdot 7$$ $$ 3 \cdot 2^{3x+1}+ 2 \cdot 3^{3x+1}=7 \cdot 6^x(2^x+3^x)$$ Dividing both sides by $6$ gives us $$2^{3x}+3^{3x}=7 \cdot 6^{x-1}(2^x+3^x)$$  Is this helpful? If so, how should I proceed form here? If not any hints would be greatly appreciated.


My attempt : By Lagrange's theorem the order of $H$ should be 6.So $H$ should be generated by ($a$)6 cycle,  ($b$) 3cycle and 2 cycle. I think these are the only cases of $H$. Now, if $H=<(a_1...a_6)>$ , then $gHg^{-1} \in H$.As $H$ is a normal subgroup, we see that $g(a_1)..g(a_6) \in H$.Now,  there are $120$ elements of  6 cycle.As the elements of cycle $6$ are conjugates of each other, we can pick up an element $c$ such that $g(a_1..a_6)g^{-1} =c$  where$ c \ne\in H$ .We are done. Now,$<(a_1 a_2)(a_3 a_4 a_5)>=H$ so how do we progress with this case.

There is a famous Theorem telling that:  For $n≥5$, $A_n$ is the only proper nontrivial normal subgroup of $S_n$.  For the proof, we firstly start with assuming a subgroup of $S_n$ which $1≠N⊲S_n$. We proceed until at the last part of proof's body, we assume $N∩A_n=\{1\}$. This assumption should be meet a contradiction with normality of $N$ in $S_n$. There; we get $N=\{1,\pi $} in which $\pi$ is an odd permutation of order $2$. Now for meeting desire inconsistency, I have two approaches:  (a) Since every normal subgroup, having two elements, lies in the center of $G$ so, our $N⊆ Z(S_n)=\{1\}$ for $n≥5$ and then $N=\{1\}$.  (b) Clearly, $1≠N$ acting on set $\Omega=\{1,2,...,n\}$ is intransitive wherein $|\Omega|≥5$ and according to the following Proposition $S_n$ would be imprimitive.  Proposition 7.1: If the transitive group $G$ contains an intransitive normal subgroup different from $1$, then $G$ is imprimitive (Finite Permutation Groups by H.Wielandt).  May I ask if the second approach is valid? I am fond of knowing new approach if exists. Thanks.


I am looking for a particular Jack McDevitt novel, I believe set in the Alex Benedict series. It may have been a subplot or the main plot, but they find a toy-like spaceship, only to uncover near the end that it is actually a real spacecraft, used by a small butterfly-like spacefaring race. I have looked at all my Jack McDevitt Academy and Alex Benedict series books, of which I have all except Cauldron, and I don't think it is Cauldron.

It's a book I read probably sometime between 2003-2007 but it may have been published much earlier, I have a vague feeling it was from the 1990s. I'm in the UK. Stuff that I remember (sorry it's so vague!):  I think the cover was dark blue with stars on. It's quite a long book. It's sort of a mystery. It's set on a non-Earth colony world and FTL travel is fairly commonplace There's a female protagonist One of the other characters has (I think) a business which does space exploration On his desk he has model space ships, but one of them is an actual alien spaceship with small dead aliens inside There are stories about ghosts haunting something, I think it's underwater or on a beach. The ghost turns out to be an alien AI which was supposed to protect the little craft but has escaped somehow. They went on an exploration mission in the past which went badly and that's how they came back with the tiny ship The stars Alnitak and Alnilam are involved - I think that's where they picked it up The protagonist steals(?) a spaceship and goes back to where the others originally found the ship to solve the mystery.  I tried searching around for Alnitak and Alnilam but because they're just real star names I haven't had much luck.


Through watching a tutorial on how to calibrate blender's 3d camera to a 2d picture, I learned that we could use the Blam addon.  The tutorial said to get into "movie clip editor", import the 2d image, add a new grease pencil layer, then draw out lines to represent perspective lines...  I'm not able to find the grease pencil tool and new layer in movie clip editor.  Please see screen shot.How do I access grease pencil in movie clip editor?  Good tutorial links on calibrating 3d camera to 2d pictures are welcome, too.  Thanks!

I am trying to change the floor covering using a picture. How can I define the floor?


I followed the instructions for deleting a channel by clicking on the gear icon and going to Additional Options ... but I only get 2 options:   Rename this channel Set the channel purpose   I want to delete it, and I thought I could since I'm the one who created it.  Does anyone know how I can delete it?

I created two channels on my Slack team with a typo. I want to delete them but it seems there is no way?


I am flying alone and have never been at this airport. Flying in from Michigan to connect to an international flight going to Belfast, Northern Ireland.  Is an hour and a half enough time and what terminal does this United flight leave from?

My flight will arrive Newark at 19:49 Terminal C and my connectiong internation flight will start at 20:35 Terminal C. There is no change in terminal, I just have to change the plane. Is this enough to manage? I am worried because layover is just 45 mins.


I'm trying to add 3 days in a date, like this:  var dat = new Date(2014,9,16);   Thu Oct 16 2014 00:00:00 GMT-0300 (Hora oficial do Brasil)  dat.setDate(19);   Sat Oct 18 2014 23:00:00 GMT-0300 (Hora oficial do Brasil)  Why this not returns this Sat Oct 19 2014 23:00:00 GMT-0300 (Hora oficial do Brasil)?

How to add days to current Date using JavaScript. Does JavaScript have a built in function like .Net's AddDay?


Will lubuntu remind me to upgrade after 3 years or will it happen after 5 years ?

I have read this  from  .It says that other Ubuntu flavors of LTS get only 3 years of support. Is this true?   This question is not a duplicate of the linked post as I want to know support time for only other Ubuntu flavors.


Let $f(z)=\prod_{n=1}^{\infty}(1+z^n)$ and $g(z)=\prod_{n=1}^{\infty}(1-z^{2n-1}).$  Let $\Omega=\{z\in \mathbb{C}, \; |z|<1\}.$  Since the series $\sum_{n=1}^{\infty}|z|^n$, and $\sum_{n=1}^{\infty}|z|^{2n-1}$ converges uniformly on every compact $K$ of $\Omega$ then wen can deduce the product converges and $f$ and $g$ are holomorphic on $\Omega$.  But I couldn't prove that $f(z).g(z)=1.$  $\textbf{My method:}$ I decided to determine $f$ explicitly.  Since $f$ is holomorphic and we define $f_n(z)=z^n$, then : $$\frac{f'}{f}=\sum_{n=0}^{\infty}\frac{f_n'}{f_n}=\sum_{n=0}^{\infty}\frac{n.z^{n-1}}{1+z^n}.$$ but I can't go any further

Eulers product identity is as follows  \begin{align} \prod_{n=1}^{\infty} (1-q^{2n-1}) (1+q^{n}) =1 \end{align}  How one can explicitly prove this identity?  Note here $q$ deonotes a complex number satisfying $|q|<1$


How to make applications start at boot? I have at least 2 which I'd like to start automatically but they don't (I need to manually start them to have services run in background):

I need to force a selected application to start up each time my Android-based device is (re)started.  Is there anything I can use (configuration setting, external application etc.) to accomplish this task? Or is this kind of behavior limited to home screen managers only?


I try to autowired session factory to dao layer.I have error:java.lang.NoClassDefFoundError: I locked more configures but no one work for me. This is my dao:     @Component         public class UserDaoImpl implements UserDao{     @Autowired     private SessionFactory sessionFactory;       @Override       public void saveUser(User user) {     sessionFactory.getCurrentSession().save(user);    }   I have hibernate config file:  <hibernate-configuration>    <session-factory>   <property    name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property> <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property> <property name="hibernate.connection.url">jdbc:mysql://localhost:3306 /vezba2?zeroDateTimeBehavior=convertToNull</property> <property name="hibernate.connection.username">root</property> <mapping class="com.entiti.User"/> <mapping class="com.entiti.Rezervacija"/>    </session-factory> </hibernate-configuration>   I create xml file with beans:               <context:annotation-config/>      <bean id="user" class="com.dao.UserDaoImpl">      <property name="sessionFactory" ref="sessionFactory"></property>       </bean>      <bean id="sessionFactory"     class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">        <property name="configLocation">       <value>classpath*:hibernate.cfg.xml</value>       </property>      </bean>     Please help if someone know where is my fault.

I am getting a NoClassDefFoundError when I run my Java application.  What is typically the cause of this?


For some baffling reason, Apple thinks that whatever I search for in one app will be the same thing that I want to search for in another app.  This results in my actual search terms being overwritten in (for example) my text editor just because I searched for something on a web page or in iTunes.  Having my carefully-craft regex replaced with "Pink Floyd" is aggravating, to say the least, especially when using a text editor without a search history. The user-interface thinking that led Apple to this decision is beyond my ability to comprehend, but I really would like a way to turn it off.  How can I disable this?  PS:  raises a similar question but the answer offered there only applies to the specific scenario of the question, and to BBEdit as an application. I‘m looking for a way to control this behavior in general.

On my MacBook Pro I have found that several applications seem to share the value for a find.  For example, I searched 'applestackexchange' in Safari's unified address bar, then I switch to Xcode and click into a Find field.  The first word of my search in Safari then appears there.  iTerm2 and Sublime Text 2 also seem to participate in this sharing.  Running latest Mountain Lion on  a 2012 MBP.


Assume that a malicious user knows what string is being encrypted (a user_id, for example, which the user can know) and can also see the result of the encryption (the encrypted user_id that is used to authenticate them to another site.)  If the user knows what is going into the encrypt function, as well as what is coming out, in theory it seems it could be possible for them to determine the encryption key as well.  Assuming that this is the case, what could be done to address this problem?  Background: The project I'm working on uses the code found below. I have concerns that the shared encryption key could become compromised   The concern is simple: The key is shared, so if someone knows the key, they can trick the authentication mechanism and log in with whatever user ID they want.

Given a message and DES encrypted form of said message, is it possible to efficiently compute the key used to encrypt the data?


When writing the 'nothing but' kind of sentence, which is the subject? Nothing or what follows the but?      An Example:   Nothing but blue berries grow in this village!   Or,   Nothing but blue berries grows in this village!

Nothing but birds and a few insects [was/were] to be seen.    In that sentence, should the verb agree with "nothing" or with "birds and a few insects"?


I wrote below code to convert float variable to integer one:  float myFloat = 45.3F; int num = (int)(myFloat * 100);   But it returned wrongly 4529 for num variable! And if I change it to:  float myFloat = 23.1F; int num = (int)(myFloat * 100);   it returns correctly 2310 for num. I solved the problem by using double instead of float. But I want to know what the reason is. Thanks.

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


I tried to remove the white space after figure using \setlength\belowcaptionskip{-10pt} but it didn't work. any help?  \begin{figure}[H] \centering \includegraphics[width=0.8\linewidth]{figure/example-product.PNG} \setlength\belowcaptionskip{-10pt} \caption{Future plan for CAT ‘environment’} \end{figure}

this is my first time here, and I have this question:  I'm writing my thesis, that includes many tables and figures in a float environment, with the caption at the end of it. I defined the space between the end of float's caption and the next paragraph. This works fine, but when I forced to stay when I tiped (with [h]), this space (between caption and next paragraph) is bigger. Of course, one of the items that will be evaluated, is the spaces (they all must be the same).  So, my question is: How can I solve this?  There is an example of the code I'm using: (TexShop —Mac Os 10.6.8)  \documentclass[letterpaper,12pt,oneside]{book} \usepackage[spanish,es-lcroman]{babel} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \usepackage[font=small,format=hang,parskip=1pt]{caption} \usepackage{ctable} \usepackage{float} \raggedbottom \begin{document} \setlength{\textfloatsep}{10pt}  \setlength{\abovecaptionskip}{10pt} \setlength{\belowcaptionskip}{5pt} ... \end{document}


I have just changed the bindings to use SSL for a website hosted in IIS on an AD Domain Controller.  The new binding is IP: all unassigned - Hostname: site.domain.com - Port: 443  I can access this new domain perfectly via the internet using  but when I attempt to load it locally (RDP into the server) I get page cannot be displayed.  I have not made any changes to the local DNS (the server is set to use the local DNS), which is suspect may be related but even so, a ping to site.domain.com resolves to the correct IP address.  I am unfortunately limited to one binding for this particular site (limitation with the application).  In short, remote loads but local doesn't.  Thanks

This is a  about Hairpin NAT (Loopback NAT).   The generic form of this question is:  We have a network with clients, a server, and a NAT Router. There is port forwarding on the router to the server so some of it's services are available externally. We have DNS pointing to the external IP. Local network clients fail to connect, but external work.   Why does this fail? How can I create a unified naming scheme (DNS names which work both locally and externally)?   This question has answeres merged from multiple other questions. They originally referenced FreeBSD, D-Link, Microtik, and other equipment. They're all trying to solve the same problem however.


I am trying to create a ubuntu bootable USB disk .  I have downloaded Ubuntu 64 bit Desktop version to my Windows 7 PC . It shows up as 'ubuntu-13.10-desktop-amd64' winRAR application.  The instructions say to 'Open the dash and search for StartupDiskCreator'. I have searched and thankfully I understood dash means the menu.  But where is this menu shown ?  Should  I use a utility to run the 'ubuntu-13.10-desktop-amd64' file instead of extracting using WinRAR?  Will I then be able to see the 'dash/menu'?

This may be a stupid or trivial question, but I am new to Ubuntu, and have two unsolved problems (flashplayer doesn't play, and scanner doesn't work - in virgin install 13.04), so I started to search in documentation. In the 13.04 specific web site I was browsing the hardware section, and came across something like this: "Open Dash, and select Disk Utilities".  So what is Dash, and where is Disk Utilities?  The application finder could not find any of those. In terminal the "dash" command seems to invoke some sort of a shell.


I wanted to ask if it was possible to translate the man and man explanations from the terminal (in Italian language). If, for example, use:  man cd   Instead of running in English I would that will print in Italian.

Is there an option to output a manual page in a different language? I don't want to change the computer language completely, but only specific manual pages. For example  $ man -English man Man is a manual program … $ man -Russian man Инструцтия для Unix, BSD и Linux. …


Let $a,b$ be complex number and  $|a| < r < |b|$, compute.  $\int_{\rho} \frac{dz}{(z-a)(z-b)}$  where $\rho$ is the circle with radius $r$ and the usual orientation.  I've tried the common path $\int_{\rho} \frac{dz}{(z-a)(z-b)} = \int_0^{2\pi}\frac{rie^{i \theta} d\theta}{(re^{i \theta} -a)(re^{i \theta}-b)}$ but in this point I don't know how use the $r$

In an exercise, I'm supposed to assume that $|a| < r < |b|$ and prove that $\displaystyle\int_{\gamma} \frac{1}{(z - a)(z - b)} dz = \frac{2 \pi i}{a - b}$, where $\gamma$ is a circle of radius $r$ centered at the origin with positive orientation. So I had the idea to express this integral as $\frac{1}{a - b} \displaystyle\int_{\gamma} \frac{1}{z - a} - \frac{1}{z - b} dz$. Then I tried to evaluate each of these separately, but I don't really know what to do. I get $\displaystyle\int_{0}^{2 \pi} \frac{i r e^{it}}{r e^{it} - a} dt$ for the first term. How am I supposed to integrate this? I can't substitute $u = re^{it}$, can I?


I have two questions about  Vacuum to vacuum transition amplitude.   Can any particle stay in $|0\rangle$? I was studying this topic from Srednicki's QFT book. He writes in eq.$(6.22)$ $$\langle0|0 \rangle_{f,h} = \int \mathcal{D}p \mathcal{D}q \, \exp \Big[i\int_{-\infty}^\infty dt (p \dot{q} - H_0(p,q) - H_1(p,q) + fq + hp \Big]$$ $$ =\exp \Big[-i  \int_{-\infty}^\infty dt H_1 \Big(\frac{1}{i} \frac{\delta}{\delta h(t)}, \frac{1}{i} \frac{\delta}{\delta f(t)} \Big) \Big]  $$  $$ \times \int \mathcal{D}p \mathcal{D}q \,\exp \Big[i\int_{-\infty}^\infty dt (p \dot{q} - H_0(p,q) + fq + hp \Big] \tag{6.22} $$   Here in the second line the arguments of $H_1$ suddenly changes from $p$,$q$ to  $\frac{1}{i} \frac{\delta}{\delta h(t)}, \frac{1}{i} \frac{\delta}{\delta f(t)}$. How can I derive this line from the first line?

Srednicki's Quantum Field Theory mentions the following at the end of the unit on path integrals in non-relativistic quantum mechanics:   Assume that the total Hamiltonian is of the form,     $$ H = H_0 + H_1, $$   where $H_0$ is the exactly solvable part and $H_1$ is treated as a perturbation.  Without the presence of the perturbation, the ground-state t0 ground-state transition amplitude in the presence of external forces/classical sources is:     $$ \langle 0 | 0 \rangle_{f,h} = \int \mathcal{D}p \; \mathcal{D}q \; \exp \Bigg [i \int_{-\infty}^{\infty} dt \; (p\dot{q} - (1- i\epsilon)H_{0} + fq + h p \Bigg ]. \tag{6.21} $$   In the presence of the perurbation, the amplitude is now given by:    Questions:  1) To get equation $(6.22)$, how can we take the exponential inside the integral, make the necessary manipulations and then take the exponential outside the integral. This seems very ad-hoc to me. How and when do we know that the these steps are valid? Doesn't this required justification from mathematical analysis?  2) More importantly, I don't get the first term involving the perturbing Hamiltonian. Why do we have functional derivatives in its argument? How did it come out to be? Why don't we similarly have functional derivatives in the argument of $H_0$ as well? What's the distinction?  Note: The factor of $(1 - i \epsilon)$ has been suppressed in $(6.22)$.


I want to try making animated GIFs ( smilies ). All I need to do is combine 2 or 3 images into GIF. What will be the best way to do it ?  PS : I prefer a transparent background

I want make a .gif animated picture from a given set of .jpg pictures.  I would prefer to do it from the command line, so command line tools would be very welcome.


I'm a student currently living in S. Korea and I have double nationality: Dominican and German. I want to travel back to my country but through Europe is much more expensive than laying over in the US. However, I don't have VISA for the US in any of both passports. I would like to layover in the US with the German passport since I can only do an ESTA form and it seems easier and quicker.  However, I want to be sure that I can travel as follows: Going out of Korea with my Dominican passport, entering/exiting the US with my German passport with ESTA form and entering my country with my Dominican passport. And if so, should I book my airplane ticket with my Dominican passport information? (Since it's the final destination).

I was just wondering if you have two passports (a Chinese one and an Australian one), and you booked your airline ticket with the Chinese one, will you have to show both of your passports or just one?  The thing is, on my Chinese passport, it has my birth name, but then when I became an Australian citizen, I legally removed my Chinese name and replaced it with my English name. So I don't know whether I should just show the passport officials the one that I booked the airline ticket with.


I want to find the sufficient and necessary condition of intersection of maximal subgroup of abelian group is not trivial. I showed intersection of maximal subgroup of a group $G$ is normal subgroup of $G$. I know fundamental theorem of abelian group. Thank you for your help.

Frattini subgroup $Φ ( G )$ of a group G is the intersection of all maximal subgroups of $G$. The question is  Let $G$ be an abelian group.What is the sufficient and necessary condition of $Φ ( G ) ≠｛e｝$？  I think if $G$ has no torsion part, we cannot say $Φ ( G ) ≠｛e｝$,because $\Bbb Z ×\Bbb Z×・・・ ×\Bbb Z$ has a maximal subgroup $p\Bbb Z ×\Bbb Z×・・・×\Bbb Z$, with intersectioning distinct primes, we gain just a trivial group. So, we need torsion part. But I cannot proceed from here.I only know the answer, $G$ has an element of order $p^2$, that  is, $G$ has theree subgroups. I want to deduce this consequence from steady discussion. P.S  According to this answer, in a ring that is a finite direct product of quotient rings of $\mathbf{Z}$, we can say rattini subgroup is the same as the Jacobson radical of the corresponding ring.


I have been running Ubuntu for years now but I am one of those users that thank the stars that Ubunutu 'just works'! I am having a problem which I find hard to put into a search.  I upgraded to 17.10 last night. I found that  uname -r   returns kernel version 4.2.0-16-generic. It appears the current kernel version for 17.10 should be 4.13.0-16. I can see about 30 kernel versions when I run  dpkg --list   however when I try to delete an older one it tells me it cannot find it. The only other posts I can find refer to things that seem above my head.   I did find a couple of commands that show output which may be helpful.  sudo update-grub  Generating grub configuration file ... Found linux image: /boot/vmlinuz-4.13.0-16-generic Found initrd image: /boot/initrd.img-4.13.0-16-generic Found linux image: /boot/vmlinuz-4.2.0-16-generic Found initrd image: /boot/initrd.img-4.2.0-16-generic Found linux image: /boot/vmlinuz-4.13.0-16-generic Found initrd image: /boot/initrd.img-4.13.0-16-generic Found linux image: /boot/vmlinuz-4.2.0-16-generic Found initrd image: /boot/initrd.img-4.2.0-16-generic Found linux image: /boot/vmlinuz-4.13.0-16-generic Found initrd image: /boot/initrd.img-4.13.0-16-generic Found linux image: /boot/vmlinuz-4.2.0-16-generic Found initrd image: /boot/initrd.img-4.2.0-16-generic Found memtest86+ image: /boot/memtest86+.elf Found memtest86+ image: /boot/memtest86+.bin Found linux image: /boot/vmlinuz-4.13.0-16-generic Found initrd image: /boot/initrd.img-4.13.0-16-generic Found linux image: /boot/vmlinuz-4.2.0-16-generic Found initrd image: /boot/initrd.img-4.2.0-16-generic done  ls -la /etc/grub.d  total 124 drwxr-xr-x   5 root root  4096 Oct 28 09:19 . drwxr-xr-x 155 root root 12288 Oct 28 09:12 .. -rwxr-xr-x   1 root root   533 Oct 28 09:19 40_custom_proxy -rwxr-xr-x   1 root root   735 Oct 28 09:19 41_linux_proxy -rwxr-xr-x   1 root root   127 Oct 28 09:19 42_debian_theme_proxy -rwxr-xr-x   1 root root  9783 Mar 30  2017 43_header -rwxr-xr-x   1 root root   121 Oct 28 09:19 44_custom_proxy -rwxr-xr-x   1 root root   127 Oct 28 09:19 45_debian_theme_proxy -rwxr-xr-x   1 root root   691 Oct 28 09:19 46_linux_proxy -rwxr-xr-x   1 root root   533 Oct 28 09:19 47_custom_proxy -rwxr-xr-x   1 root root   690 Oct 28 09:19 48_linux_proxy -rwxr-xr-x   1 root root 11281 Mar 30  2017 49_linux_xen -rwxr-xr-x   1 root root   265 Oct 28 09:19 50_memtest86+_proxy -rwxr-xr-x   1 root root 12059 Mar 30  2017 51_os-prober -rwxr-xr-x   1 root root  1418 Oct 14  2015 52_uefi-firmware -rwxr-xr-x   1 root root   533 Oct 28 09:19 53_custom_proxy -rwxr-xr-x   1 root root   736 Oct 28 09:19 54_linux_proxy -rwxr-xr-x   1 root root   121 Oct 28 09:19 55_custom_proxy drwxr-xr-x   4 root root  4096 Dec  9  2015 backup drwxr-xr-x   2 root root  4096 Dec  9  2015 bin drwxr-xr-x   2 root root  4096 Oct 28 09:19 proxifiedScripts -rw-r--r--   1 root root   483 Oct 14  2015 README -rw-r--r--   1 root root   362 Oct 28 09:19 .script_sources.txt   Apparently something is not right.  I was using Grub Customizer to try to get 17.10 to load with 4.13.0-16 instead of 4.2.0-16 which   uname -r   says I am running.   lsb_release -a   says I have 17.10  See comment below - this is similar to two other posts but both include references to permissions and removal - neither of which I am familiar with or are sure what values to use safely.  Nor can I tell which entry I should do something with even if I did.

After a recent update, I get multiple entries for same linux kernel version in the boot menu. I have tried running update-grub2 but it also lists the same linux-image version twice i.e  adnan@adnan-laptop:/boot$ sudo update-grub2 Generating grub.cfg ... Found linux image: /boot/vmlinuz-2.6.32-26-generic Found initrd image: /boot/initrd.img-2.6.32-26-generic Found Windows 7 (loader) on /dev/sda1 Found linux image: /boot/vmlinuz-2.6.32-26-generic Found initrd image: /boot/initrd.img-2.6.32-26-generic Found memtest86+ image: /boot/memtest86+.bin done   As you can see vmlinuz and initrd are found multiple times. But there is only one vmlinuz and initrd file in /boot  adnan@adnan-laptop:/boot$ ls -l total 15120 -rw-r--r-- 1 root root  646144 2010-11-24 15:58 abi-2.6.32-26-generic -rw-r--r-- 1 root root  110601 2010-11-24 15:58 config-2.6.32-26-generic drwxr-xr-x 3 root root    4096 2011-01-01 18:59 grub -rw-r--r-- 1 root root 8335528 2010-12-20 23:36 initrd.img-2.6.32-26-generic -rw-r--r-- 1 root root  160280 2010-03-23 14:40 memtest86+.bin -rw-r--r-- 1 root root 2156100 2010-11-24 15:58 System.map-2.6.32-26-generic -rw-r--r-- 1 root root    1336 2010-11-24 16:00 vmcoreinfo-2.6.32-26-generic -rw-r--r-- 1 root root 4050080 2010-11-24 15:58 vmlinuz-2.6.32-26-generic   Can some one tell me why does update-grub2 finds vmlinuz and initrd twice? and how to stop this from happening.  UPDATE: Find grub.cfg