Traveling to UK and Ireland on Indian Passport BIVS
How does the British-Irish Visa Scheme (BIVS) work?
I was wanting to initialize some strings at the top of my script with variables that have no yet been set, such as:  str1='I went to ${PLACE} and saw ${EVENT}' str2='If you do ${ACTION} you will ${RESULT}'   and then later on PLACE, EVENT, ACTION, and RESULT will be set. I want to then be able to print my strings out with the variables expanded. Is my only option eval? This seems to work:  eval "echo ${str1}"   is this standard? is there a better way to do this? It would be nice to not run eval considering the variables could be anything. Bird flying in a cage Assume that you are holding a cage containing a bird.  Do you have to make less effort if the bird flies from its position in the cage and manages to stay in the middle without touching the walls of the cage? Does it make a difference whether the cage is completely closed or it has rods to let air pass? I know from reading  that the "primary" use of the IDisposable interface is to clean up unmanaged resources.  To me, "unmanaged" means things like database connections, sockets, window handles, etc.  But, I've seen code where the Dispose() method is implemented to free managed resources, which seems redundant to me, since the garbage collector should take care of that for you.  For example:  public class MyCollection : IDisposable {     private List&lt;String&gt; _theList = new List&lt;String&gt;();     private Dictionary&lt;String, Point&gt; _theDict = new Dictionary&lt;String, Point&gt;();      // Die, clear it up! (free unmanaged resources)     public void Dispose()     {         _theList.clear();         _theDict.clear();         _theList = null;         _theDict = null;     }   My question is, does this make the garbage collector free memory used by MyCollection any faster than it normally would?  edit:  So far people have posted some good examples of using IDisposable to clean up unmanaged resources such as database connections and bitmaps.  But suppose that _theList in the above code contained a million strings, and you wanted to free that memory now, rather than waiting for the garbage collector.  Would the above code accomplish that? How many roots have modulus less than $1$? If roots of the equation   $$x^7 - 4x^3 + x + 1=0$$        are plotted on the Argand plane, how many of them have distance from the origin less than $1$?     I found, by plotting the rough curve of $y= x^7 - 4x^3 + x + 1$ that it has three real roots, out of which two of them have modulus greater than $1$ and one has modulus less than $1$. But I don't know how to do the same for non - real roots. The answer given in my book is that $3$ roots have modulus less than $1$. It was nice to discover the option for a room owner to add any user to a room, even if their rep is too low.     ...so I notified the user in question, and as instructed on the next screen, I had them got to chat.stackoverflow.com so that I'd be able to add them.    ...but when they did their part, and I did my part, I got the message:    Obviously both frustrated, the user's next logical question was:  "So I just have ask a couple questions and get someone to upvote them, right?"    Needless to say, we don't want to encourage new users to post questions for the sole purpose of bypassing a frustrating, misdocumented rule.  I realize this will likely quickly get closed since it has at least one  - which hasn't been touched in 5½ years.  However it would be nice if the issue was revisited:  Ideally, it would be cool if RO's did have the option of deciding who had access to the room they "own", but short of that, is it possible to remove the 6 "misleading" words from that page? Failed to mount Windows share: Invalid argument A very similar question has been asked before by robazefa, but no one answered it. For the last month or so, my Ubuntu 14.04 LTS box has been been unable to open a couple of folders shared from external drives on a PC running Win 8.1 on a home network.  Through Files on the Unity desktop, I can browse the network, access the workgoup, access the Win 8.1 box, see and access its shares except the folders on its external drives.  They appear on the list and I could access them without a problem a couple of months ago, but now I get a dialogue box with Unable to access location - failed to mount Windows share: Invalid argument message, with only the option to click OK.  These folders are readily accessible now from other Win 7 and 8 PCs on the network, but the same Invalid argument error now appears on the only other Linux box on the network which runs Mint Cinnamon.  My question is which argument is in invalid and how can I validate it? Interpreting the 'metric' column in routing table I'm a little confused about the output I'm seeing in my routing table, particularly the 'metric' column:  $ route -n Kernel IP routing table Destination     Gateway         Genmask         Flags Metric Ref    Use Iface 0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 wlan0 172.16.35.0     0.0.0.0         255.255.255.0   U     0      0        0 vmnet1 192.168.0.0     0.0.0.0         255.255.255.0   U     9      0        0 wlan0 192.168.82.0    0.0.0.0         255.255.255.0   U     0      0        0 vmnet8   According to the man page, metric indicates the 'distance' to the target. I was a little confused about what exactly "target" was. I assumed it was my router (it goes to gateway 0.0.0.0, which then goes to my router at 192.168.0.1). Thus, I expected the metric to be a single hop to my router. However, it's 9! Why is this so number high? Along the lines of , what reasons are there (if any) to favor \( ... \) over $ ... $? Rich Snippets not working (and working at the same time?) We have an eCommerce site, and we have had rich snippets implemented (in JSON-LD) since January/February this year (2015). I have read multiple sources (including the Google documentation) and there seem to be three possibilities why they are not showing:   Not enough time has passed (4-12 weeks seems to be the common time quoted) The markup is wrong Google have decided not to show the data   I can rule out the first given the amount of time. The second I am fairly confident is not the case as I have used multiple testing tools. As for the third … well that's anyone's guess (although the study  suggests that MOST shops should be successful).  A strange note is that the rich snippets do not show on a regular search for our ranking keywords (we rank #1 for a few and page 1 for the majority). However the rich snippets DO show when we search for a ranking keyword + site:www.fridgefreezerdirect.co.uk as show here:    I have done this in an incognito window in the browser and using a VPN with the same results.  Can anyone suggest anything we can do or reasons this may be? Let $X \ge 0$.  Show  \begin{align} \lim_{y\to\infty} y\,\Bbb{E}\left[ \frac1X \cdot1_{X&gt;y} \right] &amp;= 0 \quad\text{and} \\ \lim_{y \downarrow 0} y\,\Bbb{E}\left[ \frac1X \cdot1_{X&gt;y} \right] &amp;= 0. \end{align}  N.B.: The author doesn't assume $\Bbb{E}[1/X] &lt; \infty$.    My try:  Since the expectation appears on the RHS of Markov's inequality, I don't think this inequality can be applied to solve this question.  $$ \begin{aligned} y\,\Bbb{E}\left[ \frac1X \cdot1_{X&gt;y} \right] &amp;= \Bbb{E}\left[ \frac{y}{X} \cdot1_{X&gt;y} \right] \\ &amp;&lt; \Bbb{E}\left[ 1 \cdot1_{X&gt;y} \right] \\ &amp;= \Bbb{P}(X &gt; y) \\ &amp;\xrightarrow[y\to0]{} \Bbb{P}(X \ge 0) = 1 \end{aligned} \tag1 \label1 $$  For the first part $y \to \infty$, I apply Markov's inequality at the row $\Bbb{P}(X &gt; y)$ in \eqref{1}, so that $$\Bbb{P}(X &gt; y) \le \frac{\Bbb{E}[X]}{y} \xrightarrow[y\to\infty]{} 0?$$ But I don't have $\Bbb{E}[X] &lt; \infty$.  Thanks for any help. Elementary proof for $\lim\limits_{n \to\infty}\frac{n!e^n}{n^n} = +\infty$ As seen in  question, the series $\sum\limits_{n=1}^{\infty} \dfrac{n!e^n}{n^n}$ diverges. (One way to see this is by noting that the terms of the sum are greater than $1$ and, therefore, don't converge to zero.)  However, more is true: not only are the terms greater than $1$, they blow up to $+\infty$! To see this, one can apply Stirling's approximation and get $\dfrac{n!e^n}{n^n} \sim \sqrt{2\pi n}$.  My question is: is there an elementary proof for $\lim_{n \to\infty}\dfrac{n!e^n}{n^n} = +\infty$?  The reason I'm asking this is that I'm taking a Calculus course and I was assigned the exercise of proving the divergence of the series above and I would feel more satisfied if I could prove that its terms go to $+\infty$ (as opposed to merely proving the terms are greater than $1$.) Obviously, things like Stirling's approximation are outside the scope of the course, so I can't really use them.  (To be clear, you can use anything one learns in $4$ semesters of standard Calculus courses. I hope this restriction is not too obscure.) How do we compare the size of numbers that are around the size of Graham's number or larger? When numbers get as large as Graham's number, or somewhere around the point where we can't write them as numerical values, how do we compare them?  For example:  $$G&gt;S^{S^{S^{\dots}}}$$  Where $G$ is Graham's number and $S^{S^{S^{\dots}}}$ is $S$ raised to itself $S$ times and $S$ is Skewes number.  It appears obvious (I think) that Graham's number is indeed larger, but how does one go about proving that if both numbers are "so large" that they become hard to compare?  More generally, how do we compare numbers of this general size?  As a much harder problem than the above, imagine a function $G(x,y)$ where $G(64,3)=$ Graham's number.  The function $G(x,y)$ is as follows:  $$G(x,y)=y\uparrow^{(G(x-1,y))}y$$  Where $G(0,y)$ is given.  I ask to compare $G(60,S)$ and $G(64,3)$ How do I view or install Ubuntu Touch apps? Lots of people have started developing Ubuntu Touch apps for the Ubuntu App Showdown and just in general, and have published them in the Click App Store.  What is the Click App Store, and how do I install apps published in it? I have a directory that I am trying to clean out that contains both files and subdirectories.  What I am trying to do is simple: move all the files into another directory, but leave all the sub-directories as they are.  I am thinking something like:  mv [*_but_no_dirs] ./other_directory   It seems like there should be a simple way to do this with wildcards * and regex...  Anyone have ideas? Newer "mainline" versions of the kernel are available from the , e.g. 3.4 and 3.5, while Ubuntu 12.04 is on 3.2.   What are the mainline kernels? Are they better than my existing kernel? What are the pros and cons of upgrading to a mainline kernel? Will I easily be able to go back? ...where each object also has references to other objects within the same array?  When I first came up with this problem I just though of something like   var clonedNodesArray = nodesArray.clone()   would exist and searched for info on how to clone objects in javascript. I did find a  on StackOverflow (answered by the very same @JohnResig) and he pointed out that with jQuery you could do  var clonedNodesArray = jQuery.extend({}, nodesArray);   to clone an object. I tried this though, this only copies the references of the objects in the array. So if I   nodesArray[0].value = "red" clonedNodesArray[0].value = "green"   the value of both nodesArray[0] and clonedNodesArray[0] will turn out to be "green". Then I tried  var clonedNodesArray = jQuery.extend(true, {}, nodesArray);   which deep copies an Object, but I got "too much recursion" and "control stack overflow" messages from both Firebug and Opera Dragonfly respectively.  How would you do it? Is this something that shouldn't even be done? Is there a reusable way of doing this in Javascript? How do I make my screenshot ask me what to do next every time? I take screenshots a lot. I usually take screenshot of an area, I then recheck if I have the desired area and then copy it to clipboard.  I want to change this behaviour so that immediately upon  pressing Shift+PrntScr the screen capture application allows me to select an area, and immediately afterwards it provides me with the option to save to a particular location or clipboard.  I want Shift+PrntScr to bring up a pop-up screen like this: Identify an unknown IP in our network I have a network containing 20 clients. I assigned IP range 10.0.0.1 to 10.0.0.20 to them. When I do an IP scanning I see someone using 10.0.0.131 in VMware. How can I find out which IP is this IP bridged with? i.e How can I find out which system has 2 IP? (i.e the other IP of this system)  Update:  My system IP in the network is 10.0.0.81:    Output of the IP scanner show someone using 10.0.0.131 in VMware:    And the result of tracert command show nothing between us:  C:\Users&gt;tracert -j 10.0.0.131 10.0.0.81  Tracing route to ghasemi3.it.com [10.0.0.81] over a maximum of 30 hops:    1    &lt;1 ms    &lt;1 ms    &lt;1 ms  ghasemi3.it.com [10.0.0.81]  Trace complete. C:\Users&gt; Is there a term for a foreign word that looks like an English word but has a completely different meaning? examples:         Gift (German) = poison   poisson (French) = fish   embarazada (Spanish) = pregnant   sauce (Spanish) = willow   triviale (Italian) = vulgar   parentes (Portuguese) = relatives   slim (Dutch) = smart As our users regularly upload ~6MB images to use on the website (and aren't too familiar with how to resize them first), WordPress stores the originals as well as resizing them to several different sizes.  I'd like a function or plugin that takes the uploaded image, resizes it down to something more manageable and then replaces the original.  I've seen some functions that delete the original but do not replace it, meaning it is impossible to regenerate the thumbnails at a later date. I need this to be replaced so the user can upload a large image and it is automatically resized down and stored for future resizing if needed.