Get path to folder using zenity
How do I prompt users with a GUI dialog box to choose file/directory path, via the command-line?
I want to be able to have LinkedList.contains() return true for a custom comparator.  Suppose that I have 1 LinkedList and 2 objects  LinkedList&lt;MyObject&gt; myList = new LinkedList&lt;MyObject&gt;();  MyObject a = new MyObject("HELLO"); MyObject b = new MyObject("HELLO");   Technicaly, both objects are identical in terms of comparison (MyObject implements Comparable)   ( a == b ) == true  however, when I do the following, myList does not return true for myList.contains(b)  myList.add(a) myList.contains(b) // == false   I think its because contains will check object reference and see that a and b are 2 distinct objects. Is there any way I can make it so I don't have to extend LinkedList to compare those objects? How can I compute the following limit, and is there a general method to resolve problems of this type?  $$\lim_{x\to\infty}x\left[\left(1+\frac{1}{x}\right)^x-e\right]$$ What are the differences between mocks and stubs on Rhino Mocks? I haven't play enough with this and usually use mocks, but I wonder what are the differences between this two and when to use one or the other on Rhino Mocks.  Update:  I also found the answer to my question in :  The difference between stubs and mocks You can get the actual definition of the these terms in this article: . I want to focus on the difference from the point of view of Rhino Mocks.  A mock is an object that we can set expectations on, and which will verify that the expected actions have indeed occurred. A stub is an object that you use in order to pass to the code under test. You can setup expectations on it, so it would act in certain ways, but those expectations will never be verified. A stub's properties will automatically behave like normal properties, and you can't set expectations on them.  If you want to verify the behavior of the code under test, you will use a mock with the appropriate expectation, and verify that. If you want just to pass a value that may need to act in a certain way, but isn't the focus of this test, you will use a stub.  IMPORTANT: A stub will never cause a test to fail. When I receive a message on an SE post, I get a notification like this:    If I double tap this notification, the SE application opens, but my feed is empty approximately half the time. It looks like this:    If I refresh the feed (slide from the top), the feed does refresh and shows the new notification.   The notification, above, leads to  comment.  I haven't figured out the pattern yet, but this occurs roughly half the time I open a notification. It's occurred for chat messages, comments and answers - but not consistently. I have received notifications for the same post (for example, the two comments after the one linked above) that do not show an empty feed. But, a chat message barely 10 minutes later will show the empty feed again.  I am utilizing the beta app - version 1.0.72 on Android 5.0.1. What is the translation of what's written below?  I think it may be the poem of the One Ring, but I'm not sure. How exactly does lighting affect combat? I understand that there are different types of lighting (dim, bright, complete darkness), but I haven't been able to find anywhere in the DMH or PHB that specifically describes how these different types of light sources affect combat.   What impact does complete darkness have on players being able to see the locations of the monsters in the room? What impact does complete darkness have on combat rolls against monsters? Could anyone point me to a book/page that contains some more detailed information on this?   Thanks! Can't execute .out files, getting permission denied I have written a C++ program and complied it to produce a.out file. However, whenever I try to run it, I get Permission Denied. I read that we can use sudo, but I can't quite get it to work. I use something like, sudo "./a.out" but that too doesn't work.  Edit:  Here is the message I get when I try "./a.out".  bash: ./a.out: Permission denied SQL - an error occurred during the pre-login handshake The limit of a convergent Gaussian random variable sequence is still a Gaussian random variable I'm trying to prove this conclusion but have some problems with one of the steps.  Assume $X_1,\ldots,X_n,\ldots$ is a sequence of Gaussian random variables, converging almost surely to $X$, prove that $X$ is Gaussian.  We use characteristics function here. Since $|\phi_{X_n}(t)|\leq 1$, by dominated convergent theorem, we have for any $t$  $$ \lim_{n\rightarrow\infty}e^{it\mu_n-t^2\sigma_n^2/2}=\lim_{n\rightarrow \infty}\phi_{X_n}(t) = \lim_{n\rightarrow \infty}\mathbb{E}\left[e^{itX_n}\right] = \mathbb{E}\left[e^{itX}\right] = \phi_X(t) $$  this is the step that I cannot figure out: $e^{it\mu_n-t^2\sigma_n^2/2}$ converges for any $t$ if and only if $\mu_n$ and $\sigma_n$ converges.   Let $\mu=\lim_n \mu_n$, and $\sigma=\lim_n\sigma_n$, then $\phi_X(t)=e^{it\mu-t^2\sigma^2/2}$, which proves that $X$ is a Gaussian random variable.  Why can we get that $\mu_n$ and $\sigma_n$ converge? This looks intuitive for me, but I cannot make a rigorous prove. Is any quotient of a Euclidean domain by a prime ideal a Euclidean domain? Let $R$ be a Euclidean domain, i.e., a ring with a norm $N : R \rightarrow \mathbb N$ such that for any $a,b\in R$ with $b\not=0$, we may write $a = qb + r$ for some $q,r \in R$ with $N(r) &lt; N(b)$. Let $I$ be a prime ideal of $R$, so $R/I$ is a domain. Must $R/I$ in fact be a Euclidean domain?   I know that this is true if we replace "Euclidean domain" with "PID", and false if we replace it with "UFD", so there is no clear intuition to be gained from similar concepts. My first attempts at a proof was to borrow a construction from analysis and define a norm on $R/I$ by  $N(a + I) = \inf\{N(a+i) : i\in I\}$  but this didn't really get me anywhere.   So, this fact true? If so, how can I prove it? If not, whats a counterexample? What does the exclamation mark do before the function? Tiny lifeforms on planetoid that live at accelerated time rate A book I once owned and read back in late-80's or early-90's that I have not been able to identify title &amp; author for:  It was a SF story concerning tiny native lifeforms, living on either a planetoid or possibly a dead/neutron star, that evolve at a seemingly accelerated time rate. Most of their story is told in the few days of observation (from orbit) by a human expedition to the planet, during which time-frame the race below progresses from stone-age tech level to being more advanced than the human observers, and eventually flying up to meet the humans in small advanced craft powered by micro-singularities... one of which accidentally 'disintegrates' the tip of a human scientist's nose in the process. Show that $\mathbb{Q}(\sqrt{2})$ is the smallest subfield of $\mathbb{C}$ that contains $\sqrt{2}$ This was an assertion made in our textbook but I have no idea how to show that either statement is true.  Also would like to show that that $\mathbb{Q}(\sqrt{2})$ is strictly larger than $\mathbb{Q}$, which was the second part of the assertion. What is a "slug" in Django? URL to create a new Google document What is the current URL to create a new Google Document please? Since Google last updated their Docs the old URL does not work. Continuity of $f(x)$ on $[a,b]$ implies continuity of $f(t) = \displaystyle \min_{a \leq x \leq t}f(x)$ at [a,b]. learn how to [verb] vs. learn to [verb] "learn to [verb]" "learn how to [verb]"   Is [1] merely a less formal version of [2]? If not, does [1] communicate something subtly different? Consider the following:  In [2], the object of learning is explicitly "how to [verb]" (for instance, "I will learn how to speak French").  Is the object of learning in [1] "to [verb]" or is it something implicit and abstract that allows the subject "to [verb]"? For instance, in "I will learn to speak French", the object of learning would be the prerequisite elements for speaking French: "French phonemes, grammar, syntax, etc.". Jamaica Inn episode 5 from BBC learning English drama section:  The dialogue says:     Mary: My aunt is in bed.   She doesn't say -      My aunt is in the bed.   That section is for teaching English.  Are they using incorrect English? Matplotlib make tick labels font size smaller Let $A$ be a $n \times n$  invertible  matrix.Define a function $F:\mathbb{R}^{n} \times \mathbb{R}^{n} \rightarrow \mathbb{R}$ by $F(x,y)=\langle Ax,y\rangle$. Let $DF(x,y)$ denotes the derivative of $F$ at $(x,y)$ which is a linear transformation from $\mathbb{R}^{n} \times \mathbb{R}^{n} \rightarrow \mathbb{R} $. Then      1) if $x\neq 0$,then  $DF(x,0)\neq 0$      2) if $y\neq 0$,then  $DF(0,y)\neq 0$      3)  if $(x,y)\neq (0,0)$,then $DF(x,y)\neq 0$      4) if $x=0 \; or \;y=0$,then $DF(x,y)= 0$   I don't even know how to start the solution and also how to take derivative in higher dimensions.  Please help!  Thank you.