I would like to make the cells of a tableView non-selectable but still allow scrolling.  When I placed    tableView.isUserInteractionEnabled = false   which is recommended in some answers in viewDidLoad, it prevents selection but also prevents scrolling.  Adding:    cell.selectionStyle = .none   in cellforrowatindexpath as below not have any effect for me.  public func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {          self.tableView.beginUpdates()         self.tableView.endUpdates()          if let cell = tableView.dequeueReusableCell(withIdentifier: "myMessageCell", for: indexPath) as? myMessageCell {             cell.message = messages[indexPath.row]             cell.selectionStyle = .none         }          return tableView.dequeueReusableCell(withIdentifier: "myMessageCell", for: indexPath)     }   Can anyone suggest how to prevent selection without preventing scrolling?  Thanks in advance for any suggestions.
When you tap a row in a UITableView, the row is highlighted and selected. Is it possible to disable this so tapping a row does nothing?
Is it shell portable to run a command on the same line after variable assignment? The Cartesian product of a family $(A_i\mid i\in I)$ is defined as $$\prod\limits_{i\in I}A_i=\{f:I\to\bigcup A_i\mid f(i)\in A_i\}$$ Let $I_n=\{i \in \mathbb N \mid i \le n\}$ for $n\in \Bbb N$ and $A_i$ be countable for all $i\in I_n$. Then $\prod\limits_{i\in I_n}A_i$ is countable.   My attempt: Lemma 1: $(\prod\limits_{i\in I_n}A_i) \times A_{n+1}$ and $\prod\limits_{i\in I_{n+1}}A_i$ are equinumerous for all $n \in \mathbb N$. (I presented a proof ) Lemma 2: If $A$ and $B$ are countable, then $A \times B$ is countable. (I presented a proof ) I will prove the theorem by induction on $n$. The theorem is trivially true for $n=0$. Assume that the theorem is true for $n=k$, then $\prod\limits_{i\in I_k}A_i$ is countable. Since $\prod\limits_{i\in I_k}A_i$ is countable (by inductive hypothesis) and $A_{k+1}$ is countable, then by Lemma 2 $(\prod\limits_{i\in I_n}A_i) \times A_{n+1}$ is countable. Furthermore, by Lemma 1 $(\prod\limits_{i\in I_k}A_i) \times A_{k+1}$ and $\prod\limits_{i\in I_{k+1}}A_i$ are equinumerous, then $\prod\limits_{i\in I_{k+1}}A_i$ is countable too. Thus the theorem is true for $n=k+1$. This completes the proof.   Does this proof look fine or contain gaps? Do you have suggestions? Many thanks for your dedicated help! In R, what does qqnorm actually do? qqnorm(x) plot(qnorm(seq(80)/81),sort(x))   Finding that the plots produced by the commands above are slightly different from each other, I tried this:  qqnorm(qnorm(seq(80)/81))   I got a slightly less than perfect line.  I'd have tried regressing the result of qnorm(seq(80)/81) on the variable that was plotted on the $x$-axis and plotting residuals against the predictor, expecting to see some graceful curve, but for the fact that I don't know what to use as the predictor.  Possibly such a residual plot would reveal more than just the graceful S-shaped thing I'd anticipate.  So my question is this: if the thing on the $x$-axis in the plot produced by qqnorm is not what I get from qnorm(seq(80)/81) (and what I did shows that indeed it is not), then what is it? What are point objects? How do I change font size on the DataGridView? How to output a counter with leading zeros? I can output the value of a counter in a LaTeX document via:  \setcounter{mycounter}{1} \arabic{mycounter}   Which inserts a 1. But how do I format the output by, for example, adding a leading zero if mycounter is less than 10 in a way similar to what  lets you do by specifying %02d as your format string? How to implement draggable tab using Java Swing? How do I implement a draggable tab using Java Swing? Instead of the static JTabbedPane I would like to drag-and-drop a tab to different position to rearrange the tabs.  EDIT: . Is $(x^2+y^2+z^2) \ \sin \frac{1}{\sqrt{x^2+y^2+z^2}}$ Differentiable in $(0,0,0)$? Non constant analytic function from $\{z\in\mathbb{C}:z\neq 0\}$ to $\{z\in\mathbb{C}:|z|>1\}.$ In the Breusch-Godfrey test we use a model  $$ e_t = \varepsilon_t + \beta_1 \varepsilon_{t-1} + \dots+ \beta_p \varepsilon_{t-p}. $$  If we reject the null hypotesis of no serial auotocorrelation of the error, it means that the residuals follow an auto-regressive model of order ($p$).  If I want to avoid this problem, I must add a certain number of lags of the response variable $y$ as regressors in the original model. However, in some cases this method is not useful.   Are there other options to consider? Does low disk space affect SSD performance? I was wondering if having less than 5-10GB of free space on an SSD would affect performance. Is it specific to SSD or is it more of an operating system aspect?  For example, on an Intel X-25 G2 that has TRIM support (on Windows 7). Excel to CSV with UTF8 encoding How to get Drupal 7 installed in a sub-folder / sub-directory properly? Currently i'm trying to installing a drupal 7 installation in a subfolder of another drupal public_html folder, but it doesnt seem to work. I am getting a redirect loop error in chrome. I already modified the .htaccess in the parent drupal installation to ignore the sub-folder and i also set the $base_url in the sub-directory drupal installation. Can I get Shadowmere if I've abolished The Dark Brotherhood? I know that  is a quest reward from the Dark Brotherhood questline. However, since I took the other route, killed Astrid when she visited me and got the quest to destroy the Brotherhood, which I later did (she can't tell me what to do!), I was wondering if it's still possible to get her horse some other way and not through the quest. I am looking for a word that would describe being obsessed with the details of a larger entity such that the "looker" neglects to see the whole or (perhaps more importantly) the purpose of the whole.  Basically, "not seeing the big picture".  What can [more] succinctly describe this?  Edit: I just found this post: . I think I want the exact opposite. What does Use an Object cover? Schengen Visa for both business and tourism The program ed, a minimal text editor, cannot be exited by sending it an interrupt through using Ctrl-C, instead printing the error message "?" to the console.  Why doesn't ed just exit when it receives the interrupt?  Surely there's no reason why a cryptic error message is more useful here than just exiting.  This behavior leads many new users into the following sort of interaction:   $ ed hello ? help ? exit ? quit ? ^C ? ^C ? ? ? ^D $ su # rm -f /bin/ed    Such a tragic waste—easily avoidable if ed simply agreed to be interrupted.  Another stubborn program exhibiting similar behavior is less which also doesn't appear to have much reason to ignore C-c.  Why don't these programs just take a hint? Word for a person being used I'm looking for a word to describe someone who is being used. I want a noun to describe this person, not a verb or or adjective.  Maybe like a pushover. How to search something on across multiple sites with a single Google query? I tried   (search term site:stackoverflow.com) OR (search term site:superuser.com) OR (search term site:stackexchange.com) search term site:stackoverflow.com,superuser.com,stackexchange.com search term site:stackoverflow.com site:superuser.com site:stackexchange.com   None of them works. What is the correct way to search?