I'm updating a listview on an Android app. It currently has an iOS-like (but apparently still material) "swipe" to delete functionality, where you swipe over, and then a delete button becomes visible. I am now setting it so that not just anybody can perform the delete action. Only specific users, or the user who created the list item entry.  My question is: is it better to prevent the swipe action if they do not have the authority? Or should I allow them to swipe and then if they tap the delete icon, show an alert dialog?
What is a good criterion or rule-of-thumb for determining when a control should be greyed-out and when should it be completely invisible?
Is there a word for four times as much, analogous to once, twice, and thrice? Is there a word for 'four times as much', analogous to once, twice, and thrice? traceroute TCP equivalent for Windows Showing that $f$ is identically $0$ on $\mathbb{D}$ Here is the question: Let $f:\mathbb{D}\rightarrow\mathbb{C}$ be an analytic function.  Suppose that there exists $\epsilon&gt;0$ such that for every $\theta$, $|\theta|&lt;\epsilon$, and $\lim_{z\rightarrow e^{i\theta}}f(z)=0$.  Prove that $f$ is identically $0$ on $\mathbb{D}$. My thoughts:  Well, honestly, I am quite stumped here.  I was thinking I could let $f$ be analytic in some other region (can I even do this?), say the lower half plane and suppose $\lim_{z\rightarrow x}f(z)=0$ whenever $-1\leq x\leq1$, by assumption.  Maybe then I could show that $f$ is identically $0$ on the bigger region, and then consider $f$ on the intersection of those two regions, and then ultimately making my way towards using the uniqueness theorem to show what I want... but I am quite stuck on how to do that... any thoughts, suggestions, etc. are greatly appreciated!  Thank you. Wrapper for package managers Set the location in iPhone Simulator How can I set the location (as it's picked up in CoreLocation services) in the iPhone Simulator? K&R Exercise 1.16 - Limitation on line length Does installing and using Wine open up your Linux platform to Windows viruses? Just wondering if installing Wine might open up a fairly solid Linux desktop to the world of Windows viruses.  Any confirmed reports about that?  Would you then install a Windows antivirus product under Wine? Query works in SQL Server 2005 but syntax error for SQL Server 2000 Why is energy in a wave proportional to amplitude squared? I saw this in the end of an awesome shell script but I can't understand the login here because I think it's being short-handed for a longer command.  spark ${@:-`cat`}   This apears at the end of . Any ideas?  + Marks for some one who extends it into a full segment of code, even if its slower (Better for explanation) How can I separate a single object file into multiple objects based on closed geometry? Let's say you have a single obj with a number of separate closed 3D geometries in it. For example's sake, imagine you have an obj called neighborhoodfirehydrants.obj that includes the model for all of the fire hydrants on a street, which themselves are closed, but as I said above, are all within the same obj file.  Now let's say you wanted to be able to process each of those fire hydrants one at a time, separately. To the user, it's very obvious to see visually that these faces can be subgrouped into separate "objects" but in the Blender world, it sees them all as one.  I'm looking for a way (script would be ideal) to iterate through a blender obj neighborhoodfirehydrants.obj and find each of the "objects" (fire hydrants) that make it up. I've been looking into using the looping tools, but that's not making sense in this context. How to choose which FaceTime number to call I have a friend with two iPhones, two different numbers.  When I call her with FaceTime audio, only phone A rings.  How can I call phone B?  The phones have two separate Apple ID addresses, but they are both set to receive Facetime calls on their 10 digit phone numbers.  I have both numbers listed in my contacts as 'Home' and 'Work' for the same person. How do you serialize an object in C++? I have a small hierarchy of objects that I need to serialize and transmit via a socket connection.  I need to both serialize the object, then deserialize it based on what type it is.  Is there an easy way to do this in C++ (as there is in Java)?  Are there any C++ serialization online code samples or tutorials?  EDIT: Just to be clear, I'm looking for methods on converting an object into an array of bytes, then back into an object.  I can handle the socket transmission. Is there a ZIP code I can enter when paying-at-the-pump in the USA with a foreign credit card? Can a mathematically sound prediction interval have a negative lower bound? I have used R to form a 95% prediction interval for the number of endemic species on an island. My lower bound is negative – is that mathematically sound?  In the linear model used in the prediction interval, the data used are:  Area Surface area of island, hectares DiscSC Distance from Santa Cruz, kilometres Elevation Elevation of higher point in metres and it is coded as such:   selected.model &lt;- lm(ES ~ Area + Elevation + DistSC + I(Elevation^2)                      + (Elevation:DistSC) + (A‌​rea:Elevation))    and stepwise regression was performed to find this "best" model   I'm not exactly sure how a prediction interval works. I just want to make sure it is OK. Obviously a negative number of species is incorrect, but I know it takes into account the uncertainty of the mean as well as data scatter. If a derivative of a continuous function has a limit, must it agree with that limit? Short story; war where speed of time changes with distance from front line I really hope someone will take a quick look at the following, I would just love to better understand it...  This exercise is from Arnold's "Mathematical Methods of Classical Mechanics", p. 97 in the chapter on d'Alemberts principle:  A rod of weight P, tilted at an angle of 60° to the plane of a table, begins to fall with initial velocity zero. Find the constraint force of the table at the initial moment, considering the table as  (a) absolutely smooth  (b) absolutely rough  (In the first case, the holonomic constraint holds the end of the rod on the plane of the table, and in the second case, at a given point.)"      I must admit, I am pretty unsure on how to do calculations using this "fancy" mathematical kind of physics.  First off, I'm lost with (a). But I'll have a go at (b): As far as I understood, d'Alemberts principle states, that if $M$ is a constraining manifold, $x(q)$ is a curve in $M$ and $\xi$ is a vector perpendicular to $T_xM$, then $x$ satisfies Lagrange's equations  $\frac{d}{dt} \frac{\partial L}{\partial \dot q} = \frac{\partial L}{\partial q} \qquad L = \frac{{\dot x}^2}{2} - U(x)$  iff for the following inner product, we have  $\left(m \ddot x + \frac{\partial U}{\partial x}, \xi \right) = 0$  I guess that's about right so far? The constraint would in this case essentially be $\mathbb S^1$, since the rod moves on a circe around the point in contact with the table. Can we assume that all the rod's mass is at the center of mass?  Would we then have $U(x) = -gx_2$ in this case (where $x_2$ is the vertical component of $x$)?  If yes, then $\partial U / \partial x = -ge_2$. Where $e_1, e_2$ are the horizontal and vertical unit vectors, respectively.  At the inital moment, we have $x = \cos(60°) e_1 + \sin(60°) e_2$, so by d'Alembert's principle we must have  $\left(m \ddot x + \frac{\partial U}{\partial x}, \cos(60°) e_1 + \sin(60°) e_2 \right) = 0$  or written differently  $m \ddot {x_1} \cos(60°) + m \ddot{x_2} \sin(60°) - \sin(60°)g = 0$    So: Is this correct so far? Or am I way off? Is (a) handled any differently up to this point?  Thanks for reading (and hopefully thanks for your helpful reply)!  If anyone could recommend a good problem book (with solutions), in which this kind of mathematical approach is used (I don't know if this is how physicists would actually compute stuff??), I would greatly appreciate it.  Kind regards,  Sam I am wondering what we can say, if anything, about the population mean, $\mu$ when all I have is one measurement, $y_1$ (sample size of 1).  Obviously, we'd love to have more measurements, but we can't get them.  It seems to me that since the sample mean, $\bar{y}$, is trivially equal to $y_1$, then $E[\bar{y}]=E[y_1]=\mu$.  However, with a sample size of 1, the sample variance is undefined, and thus our confidence in using $\bar{y}$ as an estimator of $\mu$ is also undefined, correct?  Would there be any way to constrain our estimate of $\mu$ at all? In what order should the Star Wars movies be watched? Please don't lynch me, but I've never sat through an entire Star Wars film. I'm aware that the 3 (new) films are technically prequels, but I feel strange watching 3 new films then 3 old films?  Do I need to watch the new ones then the old ones?