i was reading a Deep-Learning paper and their github repo and i was having trouble understanding how multiply operator works in two lines of their codes.   alpha_size = tuple((len(x), *(1,)*(x.dim()-1)))   I guess the second one means multiply but what does the first one do as it is ahead of a tuple.  alpha = alpha_t(*alpha_size).uniform_()   same thing happens here as well. They used a multiply operator before a tuple. Can anyone explain? This is new to me. Thank you.
In the following method definitions, what does the * and ** do for param2?  def foo(param1, *param2): def bar(param1, **param2):
Differentiability implies continuity - A question about the proof I have a question, to aid my understanding, about the proof that differentiability implies continutity.$\mathstrut$    Differentiability Definition  When we say a function is differentiable at $x_0$, we mean that the limit:  $$‎f^{\prime} ‎(x) = \lim_{x\to x_0} \frac{f(x) - f(x_0)}{x-x_0}$$ exists.  Continuity Definition  When we say a function is continuous at $x_0$, we mean that: $$\lim_{x\to x_0} f(x) - f(x_0) = 0$$  Theorem: Differentiability implies Continuity: If $f$ is a differentiable function at $x_0$, then it is continuous at $x_0$.  Proof:  Let us suppose that $f$ is differentiable at $x_0$. Then $$ \lim_{x\to x_0} \frac{f(x) - f(x_0)}{x-x_0} =  ‎f^{\prime} ‎(x) $$  and hence  $$ \lim_{x\to x_0} f(x) - f(x_0) = \lim_{x\to x_0} \left[ \frac{f(x) - f(x_0)}{x-x_0} \right] \cdot \lim_{x\to x_0} (x-x_0) = 0$$  We have therefore shown that, using the definition of continuous, if the function is differentiable at $x_0$, it must also be continuous.  My Question  The proof seems to execute the following steps:   Assume the function is continuous at $x_0$ Show that, with little algebra, we can change this into an equivalent question about differentiability at $x_0$. With this little bit of algebra, we can show that if a function is differentiable at $x_0$ it is also continuous.   What I am slightly unsure about is the apparent circularity. In my mind it seems to say, if a function is continuous, we can show that if it is also differentiable, then it is continuous. Rather than what I was expecting, namely, if a function is differentiable, we can show it must be continuous.  Hopefully my confusion is clear. Any help will be greatly appreciated. How to configure idle period for auto locking screen I just installed a fresh Ubuntu 12.04 (Precise Pangolin).   I noticed that, there is no screensaver settings, which is fine. I like to control the period of time after which the blank screen is shown,which automatically locks the screen.  I do not want to enable screensaver. I only wish to be able to change the idle time period required to lock the screen automatically. It seems to me, it is by default around 10-15 minutes. Incorrectly answered 'No' to "Any previous visa refusals..." on a UK Standard Visitor visa application. How can I fix my mistake? Testing a UPS by unplugging it from the wall Determine Whether Two Date Ranges Overlap Given two date ranges, what is the simplest or most efficient way to determine whether the two date ranges overlap?  As an example, suppose we have ranges denoted by DateTime variables StartDate1 to EndDate1 and StartDate2 to EndDate2. Hide text using css I have a tag in my html like this:  &lt;h1&gt;My Website Title Here&lt;/h1&gt;   Using css I want to replace the text with my actual logo. I've got the logo there no problem via resizing the tag and putting a background image in via css. However, I can't figure out how to get rid of the text. I've seen it done before basically by pushing the text off the screen. The problem is I can't remember where I saw it. Add an API key to QGIS for QOSM layer Sum with parameter convergence Emails Per Invocation Still Capped at 100? How do I find the caller of a method using stacktrace or reflection? I need to find the caller of a method. Is it possible using stacktrace or reflection? How to test for equality of means for proportions? And two-sided or one-sided? I have the following problem: two groups A and B.  The proportions of married and single are ($p_1$) and ($p_2$) respectively, and the standard deviations ($s_1$) and ($s_2$). The sample consists of  ($n_1$) A and  ($n_2$) B observations.  Now I want to test whether the proportions are equal. I use the following formula to compute the z-statistic:  z = $abs(p_1 - p_2) / \sqrt{ \frac{p_1(1-p_1)}{n_1} + \frac{p_2(1-p_2)}{n_2} }$  and test the hypothesis: h0: $p_1 \neq p_2$  An alternative approach I tried is to estimate the t-value based on the standard deviations (hence just comparing means), that is by the formula (assuming unequal variances):  t = $abs(p_1-p_2)/\sqrt{ s_1^2/n_1 + s_2^2/n_2 }$  My question are:    do you agree with my approach or; should it be two-sided or one-sided?   Thank you. What are Ctools plugin (content type, access, etc), and how does one create them? What are Ctools plugins, and how does one create them? Is it possible to retrieve a previous un-evaluated, un-normalized input? I have 24 reputation points, but SO chat is still giving me the message "you must have 20 reputation...." Why can't I join the chat? I seen many times how people describe how to's about LBP-2900, and 10-12 steps from start to end of how to download, unpack, build driver, fix driver, make it work... Could be there some .deb package with ready-to-go driver for Ubuntu? This printer is very popular... $\mathbb R = X^2$ as a Cartesian product I wonder if it is possible to consider $\mathbb R$ as a Cartesian product $X\times X$ for some set $X$. From the point of view of the dimensionality, there are spaces with a Hausdorff dimension $1/2$ (sort of Cantor sets), but I guess there are other problems in this construction  unrelated to the dimension.  Edited: replying on the comment by Asaf. I want that for all $r\in\mathbb R$ there exists a unique representation $r=\langle x,y\rangle$ where $x\in X$ and $y\in X$. Also, what if we want to have $X$ to be a topological space and $h:X\times X\to\mathbb R$ to be a homeomorphism? Using multiple wildcard parameters with arcpy.ListFeatureClasses I know there has to be a way to do this but I'm having trouble figuring out how to do so. I would like to create a list of feature classes to perform operations on however, I want to have the list contain feature classes which have 2 separate and distinct file name identifiers. The code would look something like:  FCS = arcpy.ListFeatureClasses("X_*" OR "*_Y")   I know OR is incorrect however, is there some way to do this without having to re write code to work with the second wildcard. Thanks for helping gout, i know there is a selection method in the Select By Attributes which allows for multiple wildcard use using the OR statement. Repeating the consonant in many words in a sentence or phrase In the movie 'V for Vendetta' you have for example (bold part):     Evey: Who are you?        V. : Who? Who is but the form following the function of what and what I am is a man in a mask.      Evey: Well I can see that.        V. : Of course you can, I’m not questioning your powers of observation, I’m merely remarking upon the paradox of asking a masked man who he is.      Evey: Oh, right.      V. : But on this most auspicious of nights, permit me then, in lieu of the more commonplace soubriquet, to suggest the character of this dramatis persona.      V. : Voila!   In view humble vaudevillian veteran, cast vicariously as both victim and villain by the vicissitudes of fate. This visage, no mere veneer of vanity, is a vestige of   the “vox populi” now vacant, vanished. However, this valorous visitation of a bygone vexation stands vivified, and has vowed to vanquish these venal and virulent vermin, van guarding vice and vouchsafing the violently vicious and voracious violation of volition. The only verdict is vengeance; a vendetta, held as a votive not in vain, for the value and veracity of such shall one day vindicate the vigilant and the virtuous. Verily this vichyssoise of verbiage veers most verbose, so let me simply add that it’s my very good   honour to meet you and you may call me V.       Evey: Are you like a crazy person?      V. : I’m quite sure they will say so.   What do you call sentences like these? And do you know some other ones? What is the difference between equation and formula? Sometimes equation and formula are used interchangeably, but I was wondering if there is a difference.  For example, suppose we can calculate a car's fuel efficiency as:  mpg = distance traveled in miles / the fuel used in a gallon   Is that an equation or formula? How to detect existence of a class using SFINAE?