How can I install Avro in Ubuntu 18.04 LTS release? I have tried with  but not working (previously worked in Ubuntu 16.04 LTS).  Edit: This question is not a duplicated version of . Seems like installing Avro in 18.04 LTS needs some additional steps.

I tried to install ibus-avro, using the procedure that applied in Ubuntu 14.04 LTS. This procedure does not work in Ubuntu 16.04 LTS. Is there any other procedure to install avro in my new version of Ubuntu?


java: incompatible types: char cannot be converted to java.lang.CharSequence  boolean checkParentheses(String str) {     Deque<Character> stack = new ArrayDeque<>();        String k = "({[";     String s = ")]}";     for (int i = 0; i < str.length();i++ ) {         if (k.contains(str.charAt(i))) {             stack.push(str.charAt(i));         } else if (s.contains(str.charAt(i))) {              if (matching(stack.peek()) == str.charAt(i)) {                 return true;             }         } else {             return false;         }     } }    what should I use instead of contains?

In Java is there a way to check the condition:  "Does this single character appear at all in string x"  without using a loop?


I am trying to install Spotify on Ubuntu 16.04. I type the command into the terminal sudo apt-key adv... etc. and hit enter. It prompts me for the password and when I type on the keyboard nothing happens. How do I get this to work?

When I'm about to install a program in the terminal it wants the password:  [sudo] password for xxx:   But when I start to type my password nothing happens. What should I do?


Please I need assistance in solving the integral below:   $$\int_{0}^{2\pi}e^{\cos\theta}\cos(\sin\theta)d\theta$$  I tried solving by making these substitutions: $$u=\sin\theta$$ OR $$u=\cos\theta$$ But i ended up in a deadlock.

For $\alpha \in \mathbb{R}$, define $\displaystyle I(\alpha):=\int_{0}^{2\pi}e^{\alpha \cos \theta}\cos(\alpha \sin \theta)\; d\theta$. Calculate $I(0)$. Hence evaluate $\displaystyle\int_{0}^{2\pi}e^{\cos \theta}\cos( \sin \theta)\; d\theta$.  Hint: To evaluate the integral that expresses $\displaystyle\frac{dI}{d\alpha}$, consider $\displaystyle\frac{\partial}{\partial \theta}(e^{\alpha \cos \theta}\sin(\alpha \sin \theta))$.  How do I do this question? I think this might have something to do with the Fundamental Theorem of Calculus, but I'm not sure.  I computed $\displaystyle I(0)=\int_{0}^{2\pi} d\theta=2 \pi$, and $\displaystyle I(1)=\int_{0}^{2\pi}e^{\cos \theta}\cos( \sin \theta) d\theta$. Following the hint I get  $$\begin{align} \frac{\partial}{\partial \theta}(e^{\alpha \cos \theta}\sin(\alpha \sin \theta)) & =\alpha e^{\alpha \cos \theta} \sin (\alpha \sin \theta) + e^{\alpha \cos \theta}\cos(\alpha \sin \theta) \alpha \cos \theta \\ & =  \alpha e^{\alpha \cos \theta} \sin (\alpha \sin \theta) + \frac{dI}{d \alpha} \cos \theta. \\ \end{align}$$  Is this correct so far?  The answers in the question referred as a duplicate does not help. I'm in a course dealing with real values, not complex.


Here I am trying to get txt from EditText field , and compare it with another string that I defined in the code, after the compare done I am gonna show some messages that sys " they are equal " just I wann use it for another purpose. I tried this code it prints what I write in the EditTex into TextView. but it did not compare i what I type in they r equal or not. Plz help            final Button btntx = (Button)findViewById(R.id.btn1);             final EditText edittxt1 = (EditText)findViewById(R.id.edttxt);             final TextView messageshow= (TextView)findViewById(R.id.txtview);                     btntx.setOnClickListener(new View.OnClickListener() {                 @Override                 public void onClick(View v) {                     Button b= (Button)v;                      String data= edittxt1.getText().toString();                     String takefromtost= "Turn on";                  messageshow.setText("  " + data);                  if (data=="Turn on")                     {   Toast.makeText(getBaseContext(),"They are equal", Toast.LENGTH_SHORT).show();                  messageshow.setText("They are equal");                      }                   }             });

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I have a SQL Server database with 4.5 million records. I reproduced the same database with the exact same 4.5 million records in a PostgreSQL database.  When querying the SQL Server database, I am using FTS which returns data sub 1 second which is great. The problem is, when using the Postgresql without FTS, it is obviously extremely slow (25 - 45 seconds if not longer). I am struggling to find out what is the best PostgreSQL FTS equivalent?  API is .net core c# using Entity framework core.  Data is a list of companies. So a typical search might 'Kelly Construction' and I'd expect the API / DB to return results where company name column contains or is 'like' 'kelly construction'.

Can anyone explain how the LIKE operator is implemented in current database systems (e.g. MySQL or Postgres)? or point me to some references that explain it?  The naive approach would be to inspect each record, executing a regular expression or partial string match on the field of interest, but I have a feeling (hope) that these systems do something smarter.


I know that to prove that something is a tensor I have to show that this thing transforms like a tensor, i.e., like below:  $$ R^{'\alpha}{}_{\gamma\phi\lambda} = \partial_{\beta}x^{\alpha'}\partial_{\sigma'}x^{\gamma}\partial_{\mu'}x^{\phi}\partial_{\nu'}x^{\lambda}R^{\beta}{}_{\gamma\phi\lambda}.$$  But I don't know actually how to start the proof. Do I need to apply this tensor to a vector or something like that? Thanks in advance.

Suppose $A^{\mu_1 \cdots \mu_n}_{\nu_{n+1}\cdots \nu_m}$ is a tensor. That means it transforms a tensor. How do I show that it transforms as a tensor? How do I see that $\cos (A^{\mu_1 \cdots \mu_n}_{\nu_{n+1}\cdots \nu_m})$ or some other non-tensor does not transform like a tensor?


I read about this property of compact operator from wikipedia  $K(X, Y)$ is a closed subspace of $B(X, Y)$: Let $T_{n}, n \in N$, be a sequence of compact operators from one Banach space to the other, and suppose that $T_{n}$, converges to $T$ with respect to the operator norm. Then $T$ is also compact.  Can anybody prove it in details or tell me where I can find the proof? Thanks so much!

When I read the item of compact operator on Wikipedia, it said that      Let $T_{n}, ~~n\in \mathbb{N}$, be a sequence of compact operators from   one Banach space to the other, and suppose that $T_n$ converges to $T$   with respect to the operator norm. Then $T$ is also compact.   Can anyone give me a brief proof of this? Thanks in advance.


Say I have a simple LaTeX file to compile (missingPic.tex) but a picture is missing. The following would be a MWE  \documentclass{article} \usepackage{graphicx}  \begin{document} We now include a non existing pic: \includegraphics[width=\textwidth]{iDontExist.pdf} \end{document}   If I compile it from cmd (using Win7), I get (removing some lines to make it shorter)  C:\giulio>pdflatex missingPic.tex This is pdfTeX, Version 3.14159265-2.6-1.40.18 (MiKTeX 2.9.6300 64-bit) entering extended mode (missingPic.tex LaTeX2e <2017-04-15> Babel <3.9t> and hyphenation patterns for 76 language(s) loaded. ("C:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls" Document Class: article 2014/09/29 v1.4h Standard LaTeX document class ("C:\Program Files\MiKTeX 2.9\tex\latex\base\size10.clo")) ("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\graphicx.sty" ... ("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ltxcmds.sty")))) No file missingPic.aux. ("C:\Program Files\MiKTeX 2.9\tex\context\base\supp-pdf.mkii" [Loading MPS to PDF converter (version 2006.09.02).] ) ("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\pdftexcmds.sty" ("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ifluatex.sty") ... ("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\etexcmds.sty"))))  LaTeX Warning: File `iDontExist.pdf' not found on input line 9.   ! Package pdftex.def Error: File `iDontExist.pdf' not found.  See the pdftex.def package documentation for explanation. Type  H <return>  for immediate help.  ...  l.9 ...egraphics[width=\textwidth]{iDontExist.pdf}  ?   So basically it "hangs" and waits for my input from keyboard. I have to do something like ctrl+C to get out.  My question is if there is any way to avoid that and let pdflatex return some kind of error.  My Y is very simply the following: I am actually wrapping this from MATLAB, where I essentially have a line like  [status, result] = system('pdflatex missingPic.tex')   and with this behavior MATLAB really hangs: it keeps saying "busy" without me having access to the variables status and result. So I don't know how to catch this problem (only thing I can think of is something based on elapsed time but it seems quite ugly to me).

How can I set up a permanent compile loop that keeps trying even when there are errors? I'm using latexmk with a remote compile setup as discussed  and . However, if I save a document with a bug (either a legitimate bug, or I save it before closing a tag), then latexmk halts. Any suggests how I can have it pause, try again, and keep trying again, for ever and ever?


I have to prove the question in the title, but I am having some difficulties. Here's a sketch what I've already tried: Choose $a \in R$. Because $R$ is finite, there exist positive integers $i$ and $j$ ($i\neq j$) so that $a^i = a^j \Leftrightarrow a^ia = a^ja \Leftrightarrow a^ia - a^ja = 0 \Leftrightarrow a^j(a^{i-j}a - a) = 0$. Because $R$ doesn't have any zero divisors and $a^j \neq 0$, we must have $a^{i-j}a - a = 0$ and thus, $a^{i-j}a = a$. So now I think that $a^{i-j}$ is the neutral element for $\cdot$ but I'm not sure how to proceed. Could anyone help me? Thanks!!

There is an easy argument which shows that a finite integral domain (commutative unital ring with no zero divisors) is a field. Here I wonder whether this result still stands if the term "unital" is dropped.   In other words, can a finite commutative ring with no zero divisors always contain a multiplicative identity? More generally, if this is true, can we even generalize Wedderburn's little theorem: every finite ring with no zero divisors is a field?


The abbreviation of the colloquial expression ohkay seems not to be o.k., but one of:  OK Ok ok  Maybe it is in itself an abbreviation of words that are only used in abbreviated form. Which is the correct one?

While typing a post on SO, I noticed that the word "ok" (when used in the sentence "I'm still learning so it is ok") was marked as misspelled (got to love spellcheck!) The first suggestion, however, confused me. The suggestion was "OK" (as opposed to "ok"). Then I thought, what about "okay"?  So, why is "OK" correctly spelled (vs "ok") and what is their relationship to the word "okay"?  They all have the same meaning; could "OK" be a form of slang or abbreviation?


$\varphi$ is Euler's totient function. My question is:   When/if $\varphi$ is defined at $0$, what is it usually defined as? Is there a "most natural" or more commonly accepted definition of $\varphi(0)$?   This is a soft question, because it's of course a matter of convention.    Here are three possible definitions, with some justification.  Definition 1: $\boldsymbol{\varphi(0) = 2}$. Note that for $n \ge 1$, $\varphi(n) = \left| \left( \mathbb{Z} / n \mathbb{Z} \right)^* \right|$, the number of units mod $n$. Plugging in $n = 0$, we get $$ \varphi(0) = \left| \left( \mathbb{Z} / 0 \mathbb{Z} \right)^* \right| = \left| \left( \mathbb{Z} \right)^* \right| = \left| \{-1, 1\} \right| = 2. $$  Definition 2: $\boldsymbol{\varphi(0) = 0}$. If $a \mid b$, then $\varphi(a) \mid \varphi(b)$. To preserve this property for $b = 0$, we need that $\varphi(a) \mid \varphi(0)$ for all $a$, implying $\varphi(0) = 0$.  WolframAlpha . However, the Wolfram Math World page :     By convention, $\phi(0)=1$, although the Wolfram Language defines EulerPhi[0] equal to 0 for consistency with its FactorInteger[0] command.   which gives us  Definition 3: $\boldsymbol{\varphi(0) = 1}$. Does anyone know the reason for this convention?    More observations   Any choice of $\varphi(0)$ is consistent with the multiplicativity of $\varphi$. $\varphi(mn) = \varphi(m) \varphi(n) \frac{d}{\varphi(d)}$, where $d = \gcd(m,n)$, implies $\varphi(0) = 0$. This supports definition 2. If $\varphi(n) = \sum_{ab = n} a \mu(b)$, then note that when $ab = 0$, $a = 0$ or $b = 0$, and since $\mu(0) = 0$, $a \mu(b) = 0$. So this is $\sum 0 = 0$, again agreeing with definition 2.

Wolfram MathWorld defines the Euler Totient function as follows:  The totient function phi(n), also called Euler's totient function, is defined     as the number of positive integers <=n that are relatively prime to (i.e., do  not contain any factor in common with) n, where 1 is counted as being  relatively prime to all numbers   By this definition would $\phi(0)=0$?


For example, should I say:     The target population was selected ...   OR     The target population were selected ...   (please ignore passive voice issue)

A newspaper ran this headline recently:     (1)  [emph added]   Why did it not read:     (2) ? Police cracks down on IAC protesters.   I have found instances of "police cracks" in newspapers:  and . However,  suggests that "police cracks" is significantly less frequent:    I think that the difference between "Police crack down" and "Police cracks down" is influenced by  and that the difference in this example reflects the  of the verb's . Here, "cracks" is inflected for singular number, which implies that its subject is singular, and "crack" is inflected for plural number, which implies that its subject is plural. E.g.:     The army cracks down on IAC protesters. [singular]      The armies crack down on IAC protesters. [plural]   The confusing thing about (1) and (2) is that the subject, "police", looks like it is singular; the plural form would be "polices", but I have never heard this form (for the noun).  It sounds like police fits the definition of a , which Wikipedia says is "the name of a number (or collection) of people or things taken together and spoken of as one whole. For example, in the phrase 'a pride of lions', pride is a collective noun." Police fits this because it refers to (i) some relevant police force or (ii) some relevant group of police officers, which are both collections of people taken as wholes. It does not refer to a single police officer.  So one might conjecture that verbs whose subjects are collective nouns are inflected for plural number. However, it sounds like group also fits the definition of a collective noun because it refers to a collection of individuals taken as a whole. And I think that both of the following sound acceptable.     (3) The group crack down on IAC protesters.      (4) The group cracks down on IAC protesters.   The above conjecture also doesn't explain why it is sometimes okay to use "police cracks".  My preliminary questions: Do (1), (2), (3) and (4) all sound acceptable to everyone else? Are police and group both collective nouns?   My main questions: If (3) and (4) are both acceptable and police and group are both collective nouns, then why does (1) but not (2) sound acceptable, or at least why is "police crack" better than "police cracks"? How do you determine the correct conjugation for a verb whose subject is a collective noun? Is there a general rule, or does it vary from case to case?  My secondary questions: Does the behavior of (1) and (2) have to do with ? Is using police to refer to the police force more like a  or ? Does it matter if you add "the":     (5) The police crack down on IAC protesters.      (6) ? The police cracks down on IAC protesters.   I ask these secondary questions because I find it interesting that policeis, to me, a near  of police force, but police force () behaves oppositely to police () when it comes to subject-verb agreement:     (7) ? The police force crack down on IAC protesters.      (8) The police force cracks down on IAC protesters.   [Note: the question mark at the beginning of an example indicates questionable .]


Is there a word or phrase for the bias of not knowing what came before?  Of thinking that an idea under consideration is truly new?  I'm looking for a word to describe the bias that comes from this thinking, and not the act of not knowing itself (i. e. "reinvent the wheel"). For instance, I work as a web developer, and junior developers are all the time coming up with "new" ideas that have been with us for decades.  In not being aware of the history, they end up wasting time recreating existing work and making old mistakes.  I'm also pretty sure this happened to the field of semiotics, which was discovered twice because the work done by earlier groups was somehow not evident to later semioticians. I was looking for "historical bias" or "ahistorical bias," but couldn't really find anything.  I'm sure there must be a word! It would be used in the following way:  The ignorance of the developers was an example of __________.

I found an interesting article that I wanted to email to my boss, but they may or may not already be of aware of such information. It got me thinking if there are any idioms that mean discovering something that is old news or is already known by many?  Anyone know? Thanks!


Error appears as: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference And the following line is pointed as to where the error is- return visitors.size(); Which is under the - public int getItemCount() Please help me out. This is my code from Adapter.java : package com.example.vistiorg;  import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView;  import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView;  import java.util.ArrayList; import java.util.List;  public class Adapter extends RecyclerView.Adapter<Adapter.ViewHolder> {      LayoutInflater inflater;     List<Visitor> visitors;       Adapter(Context context, List<Visitor> visitors) {         this.inflater= LayoutInflater.from(context);         this.visitors=visitors;      }      @NonNull     @Override     public Adapter.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {         View view= inflater.inflate(R.layout.custom_list_view, parent, false);         return new ViewHolder(view);     }      @Override     public void onBindViewHolder(@NonNull Adapter.ViewHolder holder, int position) {          String name = visitors.get(position).getName();         String date = visitors.get(position).getDate();         String time = visitors.get(position).getTime();          holder.vName.setText(name);         holder.vDate.setText(date);         holder.vTime.setText(time);      }      @Override     public int getItemCount() {          return visitors.size();              }      public class ViewHolder extends RecyclerView.ViewHolder{          TextView vName, vDate, vTime;          public ViewHolder(@NonNull View itemView) {             super(itemView);             vName = itemView.findViewById(R.id.vName);             vDate = itemView.findViewById(R.id.vDate);             vTime = itemView.findViewById(R.id.vTime);         }     }  }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


Suppose that we have some set $A \subseteq \mathbb R$ whose infimum is $m$. Now, generally, we simply say that in such a situation, there is a sequence $\{a_n\}_{n \in \mathbb N} \subseteq A$ which converges to $m$. However, is there a way to prove this statement with ZF axioms? I want to say that with ZFC, we should use Axiom of Choice to give a function $f: \mathbb N \mapsto a_n$ with $a_n \in A \cap B_{1/n}(m)$ where $B_\epsilon(a)$ is the $\epsilon$-ball around $a$. This certainly suffices, but presentation of mathematics generally distinguishes proofs which require the Axiom of Choice versus those which don't, so I'm thinking I might be overlooking a proof which uses only ZF.

I've been reading the simple parts of Thomas Jech's book on the Axiom of Choice and came across the following proof on page 141. The proof assumes a mathematical model without the axiom of choice.     Lemma. $X$ is D-finite if and only if $X$ does not have a countable subset.       Theorem. There is a set $S$ of real numbers and a real number $a \not \in S$ such that a is in the closure of $S$ but there is no sequence $(x_n)^{\infty}_{n=0} \subset S$ such that $(x_n)^{\infty}_{n=0} \longrightarrow a$.       Proof. Let $D$ be a D-finite infinite set of reals. We claim that the set $D$ must have an accumulation point. To prove this claim suppose that all $d \in D$ are not accumulation points, then let $\{I_n:n=0,1,...\}$ be a fixed enumeration of open intervals with rational endpoints. Assign the least $n$ such that $I_n \cap D={d}$ to each $d \in D$. This makes $D$ countable and by the above lemma gives us our contradiction. So $D$ has an accumulation point $a$. Let $S=D \setminus\{a\}$ and since $S$ is D-finite, every convergent sequence in $S$ is eventually constant.   Could somebody explain this proof? Why is the last sentence true/ Why does this mean every convergent sequence is eventually constant?  I think the following theorem is important     Theorem. There is a model of ZF which has an infinite set of real numbers without a countable subset


Consider  $215\cdot x - 1763\cdot y=z$ with x, y, z integer.   Which form must have x and y?   I tried something like $x=41\cdot n$ and $y=5\cdot n$ or $x=9+41\cdot n$ and $y=1+5\cdot n$, are there other forms?

I want to find a set of integer solutions of Diophantine equation: $ax + by = c$, and apparently $\gcd(a,b)|c$. Then by what formula can I use to find $x$ and $y$ ?   I tried to play around with it: $x = (c - by)/a$, hence $a|(c - by)$.     $a$, $c$ and $b$ are known. So to obtain integer solution for $a$, then $c - by = ak$, and I lost from here, because $y = (c - ak)/b$. I kept repeating this routine and could not find a way to get rid of it? Any hint?  Thanks, Chan


Whenever a prisoner or staff member is killed, a hearse drives up and immediately takes them away. Knowing that the  is a source of contraband, what is the purpose of even having one?

I see questions/information online about how to get rid of corpses but I'm not sure what the consequences to having them lying around are.  I know that I can use a morgue to store them and that they will eventually be taken away in a hearse. However, I've always just left them lying around. This doesn't seem to have any obvious consequences.  Do they upset prisoners or staff (e.g. increasing the danger level beyond what death normally does)? Make them sick? Slow down pathing? Is this something that's not implemented yet or is leaving dead bodies all over the place meant to be completely fine?  The wiki's pages for  and  don't shed any light on this. All I'm finding is the how of getting rid of corpses/glitches related to it but not why it matters in the first place. All I've seen that's related is that apparently prisoners can loot guard corpses for keys, but there's no obvious consequences for prisoner corpses which are what I tend to end up with.  So why not just leave them in the corridors?


I am trying to find the limit of $\frac{\tan(x)-x}{x^3}$ as $x$ approaches $0$.  I know that this can be found by using L'Hospital's Rule 3 times.  Is there a way to solve this problem without using L'Hospital's Rule?  Please do not use Taylor series; I consider this to be an equivalent method.  I have noticed that the required number of applications of L'Hospital's Rule is precisely the order of the first non-zero derivative, which I think is essentially because a product is $0$ if and only if at least one factor is $0$.

Is it always possible to find the limit of a function without using  or ?  For example,   $$\lim_{x\to0}\frac{\tan x-x}{x^3}$$  $$\lim_{x\to0}\frac{\sin x-x}{x^3}$$  $$\lim_{x\to0}\frac{\ln(1+x)-x}{x^2}$$  $$\lim_{x\to0}\frac{e^x-x-1}{x^2}$$  $$\lim_{x\to0}\frac{\sin^{-1}x-x}{x^3}$$  $$\lim_{x\to0}\frac{\tan^{-1}x-x}{x^3}$$


I have the network share \server\me mounted as H:  There are executable in directories there.  I try to run them in cmd.exe  H:\somedir>program Access is denied.   I've read that it is possibly related to the "Local Intranet" and "Trusted Sites" settings in the Security tab of "Internet Options". I've added file:///H:/ to "Trusted Sites" and this automatically translated to file:///*.server  I still get "Access is denied."  How can I run an EXE from a Network Share and/or a mapped network drive?  Double clicking the EXE in windows explorer first gives me the "publisher could not be verified" warning. After I click "Run" in that dialog, I get "Windows cannot access the specified device, path, or file.  You may not have the appropriate permissions to access the item."

I am trying to run an executable file from a network drive on Windows 7 Professional (64-bit) in order to install a program, but, each time I try, it doesn't run and the following message appears:  {path-name} The specified path does not exist. Check the path, and then try again.   I am definitely connected to the network drive as I can see all of the directories and files, and can even open non-executable file types. Also, I am fairly confident that this is neither a firewall nor a permissions issue.


I have a phobia against tabaco smoke. I constantly try to avoid smoke by holding my breath or distancing myself from smokers. It's a significant stress to me. As well as an inconvenience in social situations and daily routine. I am considering trying to tolerate it in crowded areas and while talking to friends. As an amusing anecdote, I love winter as it's too cold around here to hold a cigarette :) In tram stations, I'd have to tolerate being within 1meter of a smoker for 20min a day. My friends take smoke breaks a few times a day, depending on our schedule. They smoke 1 cigarette or more. I am either on a crowded balcony where most students take smoke breaks, usually taking a leave of abscence from the conversation after a few minutes. Or in a yard trying to make myself heard without shouting.Perhaps I can eliminate the stress and still avoid passive smoking. In which situations can I tolerate passive smoking, such that I avoid health risks? Also can you point me to any relevant scientific articles or government recommendations? I'm looking for an argument against passive smoking outdoors, if any. I am not satisfied with the answers I found as they are too general. I'm looking for an answer to my particular case. Certainly passive smoking is harmful in a closed space, but what about open space? My point is, risk varies by exposure.

I have heard even passive smokers are subjected to many health issues even though they don't smoke directly. What are the issues related to health that can occur in the passive smokers, and does it includes any long term effects on health?


This problem arose while tallying votes in a poll and displaying the results as a whole number percentage. So if "Option A" received $300$ votes and "Option B" received $100$, the display should read "$75\%$, $25\%$".  There is a requirement that the integer percentages must add up to $100\%$. Which means that rounding up one percentage will cause the other to round down.  How should the following percentages be rounded?   $20.5\%$ & $79.5\%$ (which one rounds up?) $49.5\%$ & $50.5\%$ (equal or not?) $0.5\%$ & $99.5\%$ (is $0.5\%$ statistically significant?)   I tend to feel that the small numbers should be given more priority (so $0.5\%$ rounds up to $1$, while the $1\%$ difference in the $49.5$/$50.5$ split gets increased to $2\%$ giving $49$/$51$).  Is there any "one rule to round them all"?

Okay so I have been having a problem and would really appreciate any help. I have posted a table below with the aim of making this as simple/precise as possible.  Value          %              Rounded %     Direction 10     1.515151515151520%       2%              Up 20     3.030303030303030%       3%             Down 30     4.545454545454550%       5%              Up 40     6.060606060606060%       6%             Down 50     7.575757575757580%       8%              Up 60     9.090909090909090%       9%             Down 70    10.606060606060600%      11%              Up 80    12.121212121212100%      12%             Down 90    13.636363636363600%      14%              Up 100   15.151515151515200%      15%             Down 110   16.666666666666700%      17%              Up T660        102%       Table explanation: Value is a number (total=660). The % is the percentage of the total ((value/660)*100%). Rounded is the % rounded at the percentage level rather than rounding the total. Direction is whether the rounding is up or down.  (row begining with T, = Totals)  Problem: I understand why I am getting 102%. I am creating a report that uses percentages and I want the rounded percentages to add up to 100% but be as mathematically accurate as possible.  Is it possible to determine which decimals in the % column are most significant to the overall increase in the total percentage?  Is there some universal equation that can be derived to perform this?  I know that this is pretty vague, so please comment if you need any clarification, but any help would be appreciated.   Thank you!


I have a table where each cell has a fixed height of 88px.  The text inside each cell has middle vertical alignment.  I would like for a handful of cells to include an image with a height of 40px.  This is easily achievable, but when I do, the text in the cell shifts to account for the height of the image.  This image illustrates what's happening.  I get why this happens, but is there a way to include the image without the text shifting? Things I've tried:  line-height: 88px; this technically works, but the text will wrap in some cases so it's not a viable solution. Setting the table cell to display: table, and then wrapping the text inside with a div that has display: table-cell.  That also technically works, but it feels really hacky.  If it's my only option, I'll use it. I know I can use position: absolute; on the image and position it with javascript if needed, but I'd prefer something that'll work if the browser is resized.  Is there another way? Edit: It's just a super basic table, but here's the code...

           Some text

I have a div with two images and an h1. All of them need to be vertically aligned within the div, next to each other. One of the images needs to be absolute positioned within the div. What is the CSS needed for this to work on all common browsers?

testing...


import java.util.Scanner; public class Password {     public static void main(String[] args) {          Scanner reader = new Scanner(System.in);          System.out.println("Please create a password");         String pw = reader.nextLine();          while (true) {             System.out.println("Enter the password");             String pwt = reader.nextLine();             if (pwt == pw) {             System.out.println("The password is correct!");                 break;             } else {                 System.out.println("The password is incorrect, please try again");              }         }     } }   I'm new to this, so the answer is probably obvious, but I just don't understand why it reads false when I type the right password

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


Today suddenly I noticed that, I can access Stack Overflow by browsing both the URL:  and . I also have checked some of the other Stack Exchange sites like the current one, and they all have similar behavior. In my experience I have seen normally sites with HTTPS have a feature by which if any request comes with HTTP, it get redirected to the HTTPS. That is why, I am curious to know that if it is intentional to not to redirect to HTTPS in Stack Exchange sites.

So it looks like Stack Exchange now supports HTTPS (to some extent). Which is awesome! But there are a few problems, the main one being that some content is delivered over the CDN, which is plain HTTP. This causes browsers to complain about "unsecured content":


Something niggling at me from way back. Is our definition of an antiderivative $\int f(x)dx = F(x)$ (such that $F'(x) = f(x)$) different in any way from the definite integral with variable limits, i.e. the function $f(x) = \int_0^x f(t)dt$ ?  It seems that I can think of them both as operators which take in a function and give back a function. Doesn't the Fundamental Theorem of Calculus then give us that $\frac{d}{dx}\int f(x)dx = f(x)$?  This came up because  says, of the FTC  $$\int_a^b = f(x)dx = F(a) - F(b)$$  that, "This result, while taught early in elementary calculus courses, is actually a very deep result connecting the purely algebraic indefinite integral and the purely analytic (or geometric) definite integral."  I suppose my question is: why do we need these two distinct concepts, the algebraic and the geometric? Why can't we get by with only definite integrals?

I would like to understand why the integrals represent 2 things:   If we only do an integral without bounds on $f(x)$, the integral gives us the function $F(x)$ that, when differentiated, gives us the original function $f(x)$. If we do an integral with bounds $[a,b]$ on $f(x)$, it gives us the area under $f(x)$ by evaluating the difference $F(b) - F(a)$.   Why does $F(x)$ represent the area under $f(x)$ as well as the first point?


I would like to control the fan speed using terminal, if possible without third party app.  The idea is to automate and schedule different fan speed.

I was wondering if there was a way to access the computer fan speed through terminal. I've heard that you can use software like smcFanControl, but I was wondering if there was a way to do it without any third party software.   Another way i've heard of is using the spindump command, but from what I remember it can take a bit for it to finish.  Is there a way to get the info from terminal almost instantly without using third party software?  Also, is there a command I could possibly use to adjust the fan speed using terminal without any third party software?  I'm using a MacBook Pro 2015 running macOS High Sierra.


Alright so I am caught up with the anime but cannot wait for the next episode (currently on episode 20). What chapter would match the anime?

The 2nd season (labeled as "Season 3" on Netflix) of the anime, Nanatsu no Taizai: Imashime no Fukkatsu (or The Seven Deadly Sins: Revival of The Commandments), has ended.  Which manga chapters correspond to each of the anime episodes?


There is one rocket in each corner of a square. At some point they start moving towards the rocket in the neighbouring corner in (say) clockwise direction. Their subsequent motion is such that they move exactly in the direction of the rocket they "follow" at any moment. The magnitude of their speed is constant (and is the same for any rocket). They all collide at the center of the square (as can be seen intuitively). What is the length of their path taken before the collision?  I heard that it has a very easy and a complicated solution too (with integrals). Could you give both and tell if it can be generalized for regular n-gons?  The answer is the length of the sides of the square but I don't know how we arrive at it.

This is from a problem seminar and I need help figuring out the solution.  Four bugs, $A,B,C,D$ are initially placed at the corners of a unit square. From a given initial moment, all four crawl simultaneously at one and the same speed $s>0$, $A$ towards $B$, $B$ towards $C$, $C$ towards $D$, and $D$ towards $A$, with each heading at every instant along the line joining it with its target.  Find a system of differential equations describing the trajectory of $A$.  Do the bugs eventually all meet at the center of the square? If so, how long did it take?  My attempt so far: $\def\grad{\mathbf\nabla}$ $\newcommand{\norm}[1]{\left\Vert #1 \right\Vert}$ Call ${\vec x}_1,{\vec x}_2,{\vec x}_3,{\vec x}_4$  the positions in the plane of $A,B,C,D$ respectively. Then $$\grad {\vec x}_1 = \frac{{\vec x}_2-{\vec x}_1}{\norm{{\vec x}_2-{\vec x}_1}}s$$ $$\grad {\vec x}_2 = \frac{{\vec x}_3-{\vec x}_2}{\norm{{\vec x}_3-{\vec x}_2}}s$$  $$\grad {\vec x}_3 = \frac{{\vec x}_4-{\vec x}_3}{\norm{{\vec x}_4-{\vec x}_3}}s$$  $$\grad {\vec x}_4 = \frac{{\vec x}_1-{\vec x}_4}{\norm{{\vec x}_1-{\vec x}_4}}s$$  with ${\vec x}_1(0) = (0,0),\  {\vec x}_2(0) = (0,1),\ {\vec x}_3(0) = (1,1),\ {\vec x}_4(0) = (1,0)$.  I have noticed that the sum of the gradients is 0, but I don't know if that is helpful or not. Can someone help me figure this problem out?


I have seen many articles about POCO. What is this?

Can someone define what exactly 'POCO' means? I am encountering the term more and more often, and I'm wondering if it is only about plain classes or it means something more?


Hi I want to vertically align my cells in a longtable. I also use \shortstack[l]. Don't know whether this has an effect. The Table looks like  \begin{landscape}  \begin{longtable}{|l|l|l|l|l|l|} \caption{A captuion \label{tab:atable}}\\ \shortstack[l]{\\A\\ B} & \shortstack[l]{\\C\\ D\\ E\\ F\\ G\\ H\\ I\\ J\\ K\\ L} & \shortstack[l]{M\\ N} & \shortstack[l]{\\O} & \shortstack[l]{\\P} & \shortstack[l]{\\Q}\\ \hline \end{longtable} \end{landscape}   I tried so may things, but the lext is still aligned at the bottom, not vertically.  Thanks!

What is the easiest way to center align each row of table? I have a table column that contains an image and other cells in the same row contain text. I would like to know how to vertically center align the image and text cells. Currently each row is vertically bottom aligned. Here is my code:  \documentclass[a4paper]{article} \usepackage[margin=1.0in]{geometry} \usepackage{booktabs, caption, underscore, url, graphicx} \captionsetup{font=bf} \date{2012-03-01} \begin{document} \begin{table}[ht] \centering  \begin{tabular}{cccc} \bottomrule[2pt] A & B & V & D & E \\ \bottomrule \includegraphics[scale=0.35]{img1.eps} & 2 & 3 & 4 \\  \includegraphics[scale=0.35]{img2.eps} & 2 & 3 & 4  \\  \bottomrule[2pt] \end{tabular}  \end{table} \end{document}   Here is a quick sketch of the table I am trying to achieve:    The first column contains an image while the other columns contain a single line of text. How can the text be center aligned with the middle of the image?


Find the partial sum of the series and the limit of it:  $\sum_{n=1}^{\infty}\frac{1}{2^n}\tan\frac{1}{2^n}$  I did $\lim_{n\to\infty}\frac{1}{2^n}\tan\frac{1}{2^n} = 0$ so we can not say that the series is divergent. I tried to use telescopic sum but I do not know what to do with that $\tan$. Can you give me any hint how to write it?  UPDATE  So I did what @lab bhattacharjee recommended and I got that: $\frac{1}{2}\tan x = \frac{1}{\tfrac{1}{\tan\frac{x}{2}}-\tan\frac{x}{2}}\iff\tan x = \frac{2\tan\frac{x}{2}}{1-\tan^2\frac{x}{2}}=\frac{1+\tan\frac{x}{2}+\tan\frac{x}{2} - 1}{(1+\tan\frac{x}{2})(1-\tan\frac{x}{2})} = \frac{1}{1-\tan\frac{x}{2}}-\frac{1}{1+\tan\frac{x}{2}}.$  What should I do next?

Evaluate $\sum\limits_{n=1}^{\infty} \frac{1}{2^n}\tan\frac{x}{2^n}$.   My attempt:   Let $S$ = $\sum\limits_{n=1}^{\infty} \frac{1}{2^n}$ $tan{\frac{x}{2^n}}$  $\int S dx$ = $\sum\limits_{n=1}^{\infty}$ $\int \frac{1}{2^n}$ $tan{\frac{x}{2^n}} dx$  = $\sum\limits_{n=1}^{\infty}$ $\ln \sec {\frac{x}{2^n}}$  = $\ln(\prod_{n=1}^{\infty}\sec {\frac{x}{2^n}})$  not sure how to proceed with this,   Due to the limitations of my school syllabus, I would greatly appreciate a solution involving complex numbers.  Thanks


Setup: Local Device A, Remote Device B, Remote Device C My plan is: Run weekly script via crontab on device A to copy a folder from device B via public key authentication to device C with public key authentication. Some things I tried: user@deviceA:/ $ ssh -p 1234 -i /home/user/.ssh/id_ed25519 user@ip_address_DEVICE_B "cp -R /home/user/folder1/folder2" | ssh -p 1235 -i /home/user2/.ssh/user2 user2@ip_address_DEVICE_C "/home/user2/folder1/`date +"%d-%m-%Y"`" cp: missing destination file operand after '/home/papermcuser/papermc/world' Try 'cp --help' for more information.   user@deviceA:/ $ ssh -p 1234 -i /home/user/.ssh/id_ed25519 user@ip_address_DEVICE_B "scp -r /home/user/folder1/folder2" | ssh -p 1235 -i /home/user2/.ssh/user2 user2@ip_address_DEVICE_C "/home/user2/folder1/`date +"%d-%m-%Y"`" usage: scp [-346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]            [-l limit] [-o ssh_option] [-P port] [-S program] source ... target  I'd be happy for any help! Thanks!

I am trying to copy files from one server directly to another, bypassing my local computer.  I did  scp -r usrname@server1.com:~/data/* usrname@server2.com:~/data/ Password:  Host key verification failed. lost connection   Is this even possible? How may I fix it?


I am seeing a post and someone suddenly edited it and his hat come off and after some time entire picture is gone.  Link to the question:

It seems like there is a bug that is causing a duplicate hat to appear when I expand info, like pressing "(more)" on a suggested edit. This bug does not seem to be specific to the suggested edits review queue though, as others have reported seeing this bug in other places, like code snippet expansion. Steps to repro:  Put on a hat. Navigate to one of your own suggested edits. (You can just also open the Suggested Edits review queue and go to a random suggestion, but there is no guarantee any of those users will be wearing a hat.) Click the "(more)" button to expand the top box.  What should happen: Hat should shift down with the rest of the content. What happens: All the content shifts down, but a duplicate hat remains in the initial place. Before expansion:  After expansion with duplicate hat:


I have this crontab  * * * * * tar -czf /backup/$(date +%F--%T)-localusers.tgz /vagrant  It does not work. But if I do  tar -czf /backup/$(date +%F--%T)-localusers.tgz /vagrant/  It works.  Anybody have a clue what's going on? I do keep getting a mail though:  N 10 (Cron Daemon)         Thu Aug 23 10:43  28/1130  "Cron <root@localhost> tar -czf"

I have the following cron jobs defined.  55  8   *   *   3   /usr/bin/php /home/mark/dev/processes/customClient/events.php > /home/mark/dev/processes/customClient/events-`date +%Y-%m-%d --date='last Wednesday'`-`date +%Y-%m-%d`.csv 0   9   *   *   3   /usr/bin/echo 'The csv for last week, trying my hand at automatiging this' | /usr/bin/mutt <emailaddress> -s 'Events from `date +%Y-%m-%d --date='last Wednesday'`-`date +%Y-%m-%d`' -a '/home/mark/dev/processes/customClient/events-`date +%Y-%m-%d --date='last Wednesday'`-`date +%Y-%m-%d`.csv'   It seems to work properly if I run it the above command directly from the command line. But when I checked the running of the script this morning I got an e-mail stating (I'm paraphrasing because I accidentally deleted them) that the back ticks weren't closed properly.


How can I set a width maximum or fixed value for a button?  I have an UI looking like this:   The text field would be full path of a file and the 'Set' button is openning a dialog box. How can I go about increasing the text field's width and reducing the button's width?  Thanks Kaveh

So I need to allow the user of my script to choose a directory that contains images, and then run my script on each image. I already have my script made . I looked at  already, but that is about exporting, not importing.  It should look like this:    And should allow the user to choose the directory.  Thanks!


Let $G=\{e,a,b,c\}$, $|G|=4$, non-cyclic.  Then what are the orders of the elements?    I'm thinking that because $G$ is a group, then by non-cyclic and Lagrange's theorem its elements (subgroups) can only have order 1 or 2.  But can I decide on anything else than 1 or 2?

Following the advice given in , I have started to study Group Theory from the very basics. My reference text is Abstract Algebra by Dummit and Foote. While going through the exercises (page 24) I found one problem which required more effort than others:  Assume $G = \{1, a, b, c\}$ is a group of order $4$ with identity $1$. Also assume that $G$ has no elements of order $4$. Use the cancellation laws to show that there is a unique group table for $G$. Deduce that $G$ is abelian.  I proceeded with solution as follows. Since $G$ is of even order there must be at least one element of order $2$ (this statement itself was one of the problems in the exercises and is easy to handle). From the wording of the question it seems that none of the elements $a, b, c$ is singled out with specific properties and hence $a, b, c$ must behave in exactly the same manner. Hence each of them is of order $2$. Thus $a^{2} = b^{2} = c^{2} = 1$.  Next I analyze product $ab$. Clearly it can't be $a$ (as $b$ is non-identity), or $b$ (as $a$ is non-identity) or $1$ (because $ab = 1 = aa$ implies $b = a$). Hence $ab = c$ and similarly $ba = c$. By the similar nature of all elements $a, b, c$ it follows that $bc = cb = a$ and $ca = ac = b$. Thus the operation of the group is defined properly for all elements and clearly it is abelian.  I think my solution is OK, but I am not sure. Note that I have not used the fact that $G$ has no elements of order $4$. Please let me know :  1) if my solution is correct. If not then point out the flaws.  2) if there is any better / shorter solution. If so provide hints and not solution.  The question may sound too easy / simple but I request to treat me like a beginner who has never heard of Group Theory and is reading fresh from the reference text I mentioned. Thanks in advance for your inputs.  EDIT: Thinking further about this problem I wondered what would happen if an element of order $4$ was allowed in $G$. In that case I think that the group has to be isomorphic to the group $G_{1} = \{1, 2, 3, 4\}$ with modulo $5$ multiplication as the group operation. The argument is as follows. Suppose $a$ is of order $4$ and let $b$ be its inverse then $b$ is also of order $4$. Now $c$ has to be its own inverse so that $c^{2} = 1$. Again $a^{2} \neq 1$ (as $ab = 1$), $a^{2} \neq a$ (as $a \neq 1$), $a^{2} \neq b$ (as it would mean $b^{2} = 1$ and thus $b$ would be of order $2$). Hence $a^{2} = c$ and similarly $b^{2} = c$. Next we can see that $ac \neq a$, $ac \neq c$, $ac \neq 1$ (as $ab = 1$) so that $ac = b$. Similarly $ca = b$, $bc = a$, $cb = a$. Also it is clear that this group turns out to be cyclic with both $a$ as well as $b$ as generators. And it also follows that there are the only two ($G$ in original question and $G$ in new variation) groups of order $4$ upto isomorphism.  I hope I have learnt something from the answers given for the original question and this solution is correct. Please let me know if there is any problem with this reasoning.


I've recently bought a USB wifi adapter, and wanted to install the driver, it's in the form of a .tgz so I'm unsure how to do this  Here is the driver:

I'm trying to connect my desktop (running 64-bit Ubuntu 12.04) to an Airport Extreme Base Station by using an ASUS USB-N13 wireless adapter.  I plugged it in, turned on the desktop, and the adapter was immediately recognized by the system. I found my home network listed in the available networks, typed my password (with the correct encryption) and hit connect. After that, the wireless icon just flashes (propagates? emits?) indefinitely, and every couple of minutes the "Wireless Authentication Required" box pops back up.   I don't know what to do. I've seen some solutions talking about an "rt2xxx" or "rt3xxx" driver or chipset. I don't know exactly what it is, but when I typed lsmod | grep rt I got:  parport_pc rtl8192cu rtl8192c_common rtlwifi mac80211 cfg80211 parport   I'm pretty much lost. Please AskUbuntu, what do?


I've been playing league of legends all the time for some time now, and even though I have friends playing and family, I've never actually got what the meanings of the classes, I know of: Support, Tank, ADC, marksman, fighter, and such. But I don't know of: ap, ac, ad, and ss, but I just want to know what these abbreviated ones are like ac and such, so could someone, please, just tell me what they mean.

I'm quite new to League of Legends (LoL) but try to improve through reading guides. All too often I stumble upon abbreviations I am not sure what they mean.  Some of those are:   AD AP ArPen AS bot blue carry CC CDR CS Drag Dive mia mid MM Mp5 MP5pL MPen Proc pull (red/blue/drake) red SR ss top TT IMO


I want to complete Skyward Sword before Christmas, I'm trying to get a good grasp on how much time I need to finish it off. At the very least, I want to beat the game, but I tend to get most of the items as well (I never quite can get everything, but...) This is the first time that I've played my way through it.   So, what would be a fair estimate of how much total time I need to complete the game?

I'm going down my huge backlog of unplayed Steam games and I'm thinking the best way to tackle the list is to go through the shortest games first and then concentrate on the 20+ hour ones. I'm wondering if there's a website or something else that has an estimated amount of gameplay time for games.   Is there anything like that?


I'm working on the following question:     True or False (and explain why or give counterexample). Suppose $(f_n)$ uniformly converge to $f$. If each $f_n$ is bounded then $f$ is bounded.   I think this is true, but I'm having trouble showing it. In particular, suppose the $M_n$ is a bound for each $f_n$ then: $$|f_n-f| < \epsilon \\  -f_n - \epsilon < f < \epsilon + f_n  \\ -M_n - \epsilon < f < \epsilon + M_n$$  There's nothing controlling the growth of the $M_n$'s though. If $f_n$ are uniformly converging, I think the bounds should be close too, but I'm having trouble arguing this. Thoughts?   question is similar, but both answers skip the key detail that I'm hung up on.

Problem Statement:  Let $\{f_n\}$ converge uniformly on a set $E$. Suppose that each $f_n$ is bounded. Prove that there exists an $M > 0$ s.t. $|f_n(x)| \leq M$ for all $x \in E$ and all $n = 1,2, ...$.  Proof:  If each $f_n$ is bounded by some $M_n > 0$ then can't we just take $M = \text{max}\{M_n\}$?  I don't see what's so difficult here. Am I not using the fact that $\{f_n\}$ converges uniformly?


I know how many people were at Hogwarts, but I don't know how many rooms are there totally.

How big is Hogwarts in Harry Potter? Or how much do we know about that from the books? The information for this seems to be quite scattered, so I wondered how much one can find out.  I am mainly asking about the building, i.e. how tall it is, how many rooms there are, just generally how large the building is; but if someone feels like elaborating it would also be nice to know how large the associated lands are (Hogsmeade, the Forbidden Forest etc.).


Sign In with Google Works good and SignOut Also but when i sign In again it signs in me with the same account which I use Previously to signed In but i want every time i signed out it should ask me all time to choose account with which You want to sign in but my app crashes as i use below code to perform that functionality   private void SignOut() {         // Firebase sign out         auth.signOut();          // Google sign out         mGoogleSignInClient.signOut().addOnCompleteListener(this,                 new OnCompleteListener<Void>() {                     @Override                     public void onComplete(@NonNull Task<Void> task) {                         //updateUI(null);                         Intent intent=new Intent(Welcome.this,MainActivity.class);                         startActivity(intent);                     }                 });  }   LogCat   java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.android.gms.tasks.Task com.google.android.gms.auth.api.signin.GoogleSignInClient.signOut()' on a null object reference                                                                                at com.clone.tracking.tourism.tourismapp.Welcome.SignOut(Welcome.java:123)                                                                                at com.clone.tracking.tourism.tourismapp.Welcome.onNavigationItemSelected(Welcome.java:104)   Line 123  mGoogleSignInClient.signOut().addOnCompleteListener(this,  LINE 104  this is where i call  SignOut(); method

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I've been searching for examples/questions for this but found nothing.  Given the sentence: 'I would put it on hold as soon as you call(ed) me'  Should it be call or called?  The idea around this sentence is based on a condition: If you call me, I put what I'm doing on hold.  But having the would implies a future condition, so I'm not sure what verb form to use here. Also, the as soon as makes it even more confusing to me.  Thanks in advance

I am struggling to decide the correct tense / verb usage where one wishes to express some past plan for the then future:      We agreed that, when xyz happens, we would do abc.     We agreed that, when xyz happened, we would do abc.  Something else?   According to , the second form is correct because one must use  with clauses that begin with time expressions (such as "when").  This assessment is somewhat supported by , which suggests that the past tense must be used since xyz has already occurred and is now in the past.  However, to my mind, the second form doesn't quite convey the same contingency that abc would not be done until xyz happened; whereas the use of the present tense in the first form better conveys that contingency.  Are grammatical constructs of this sort known by some formal name?  What do authorities on English (especially British English) have to say on the matter (citations would be most welcome)?


I was in class and the lecturer only mentioned that there exists such function. I didn't find anything about it on the internet. Is it simple? Maybe you could help me to understand that? thanks

I have never seen a formal definition of the Hilbert curve, much less a careful analysis of why it fills the whole square. The Wikipedia and Mathworld articles are typically handwavy.    I suppose the idea is something like this: one defines a sequence of functions $f_i(t) : [0,1]\to {\Bbb R}^2$, and then considers the pointwise limit $f(t) = \lim_{i\to\infty} f_i(t)$.  But looking at the diagram, it is not clear that the sequence converges. I can imagine that we might think of following a single point in the range of $f_i$ as $i$ increases, and that point might move around, but only by $2^{-i}$ at each stage as we pass from $f_i$ to $f_{i+1}$, and so eventually approaches a limiting position. But I don't know how we'd get from there to showing that $f_i(t)$ converges for a particular value of the argument, especially for an argument other than a dyadic rational.  And even if it does converge, every point in the range of each $f_i$ has at least one rational coordinate, so it is not at all clear why a point like $({1\over\sqrt2}, {1\over\sqrt2})$ should be in the range of $f$.   If there is an easy explanation, I would be glad to hear it, but I would also be  glad to get a reference in English.


Just yesterday, I bought a laptop and I set it up. Everything works and it's great, but, the F3 key isn't working on Minecraft. Outside of Minecraft, the F3 key is responsive (it brightens the screen), but just not in Minecraft. If you're wondering, I'm using a Windows 8 HP Pavilion laptop. Remember, I just got this laptop yesterday, so don't go saying my keys are bad or something.  Thanks in advance!

I can't get the coordinates on my computer because it keeps changing the brightness.  I have a windows 8 Samsung, and I'm playing Minecraft version 1.6.4.


Why $ \infty - \infty \neq 0 ?$  Please explain

I would say $\infty - \infty=0$ because even though $\infty$ is an undetermined number, $\infty = \infty$. So $\infty-\infty=0$.


I do NOT see anywhere to add year. I have looked in every setting in "System Preferences" and just do not see.

With default settings, the clock on macOS Catalina shows the current day of the week and the current time. You can click the clock to reveal the full date. In the Big Sur update, this dropdown seems to have vanished, instead opening notification center on interaction. I don't want to see the full date at all times. It takes up space in the dock, and most of the time the full date is not really relevant information. I would prefer to be able to use the old behavior if possible.


Is it true that in a domain $R$, $\gcd(ta,tb)=t\gcd(a,b)$?   I know how to prove it in $\mathbb{Z}$, but what about if it's an arbitrary domain $R$?

Let $D$ be a , and let $a,b,x \in D \setminus \{0\}$. Then is it true that $\gcd (ax,bx)=x \cdot \gcd (a,b)$ ?    Let $c=\gcd (a,b)$ and $d=\gcd(ax,bx)$, then as $cx|ax$ and $cx|bx$ so $cx|d$. We would be done if we could show $d|cx$, but I am unable to show that. Please help me to solve this problem.


Steps to reproduce:  Log in. Go to your profile for any SE site (not your network profile) Click on the "next privilege" progress bar.  What's wrong:  The text showing your numeric progress is right up against the Learn More button, with no space between. There is also no space above the button.   I think that, in the past, the Learn More button was right-aligned in the popup. I tried float: right; margin-top: 0.3em; in my web inspector, and that seemed to fix the issue:  I'm obviously not suggesting that SE folks just copypasta my solution and ship it. Just trying to do as much of the work as I can. I tried on Meta and SO; I see it in both places, so I don't think it's site-specific nor dependent on which badge you're tracking. Chrome 84 and Safari 13.1.2 both show the issue. I don't imagine this part is relevant, but in the interest of thoroughness, I'm using a 2018 15" Macbook Pro running Catalina 10.15.6. EDIT: I agree that this is a duplicate of the linked question, but mine and the linked questions are, IMO, not duplicates of the one that one is linked to. Related, but not duplicates. Close mine, but reopen that one?

Addressing the duplicate: This was closed as a dupe of  and while that is , this specific button is still misaligned. Here's a screenshot that I took today:  As such, I don't believe this is a duplicate any longer, and can be reopened as its own bug report, given that the "Newest badge" popup's button is aligned correctly now and this one isn't.  Directly related:  The "Learn more..." button in the profile page's next privilege tracker is aligned to the left instead of the right. Screenshot:  Looks like another user interface regression, which  in a fix to a similar issue. Could this be fixed as well?


The phrase "if only chivalry were dead" sounds right, but is it grammatically wrong? I would like to know if I should be using 'were' or 'was'. This is for a mock press release for university.

If I was... If I were...   When is it correct to use "If I was" vs. "If I were" in standard English?


I have a text file      ;   Message Number     ;   |         Time Offset (ms)     ;   |         |        Type     ;   |         |        |        ID (hex)     ;   |         |        |        |     Data Length     ;   |         |        |        |     |   Data Bytes (hex) ...     ;   |         |        |        |     |   |     ;---+--   ----+----  --+--  ----+---  +  -+ -- -- -- -- -- -- --          1)         2.0  Rx         0400  8  01 5A 01 57 01 D2 A6 02           2)         8.6  Rx         0500  8  02 C1 02 C9 02 BE 02 C2           3)        36.2  Rx         0401  8  01 58 01 59 01 01 01 01           4)        41.7  Rx         01C4  8  27 9C 64 8C 00 03 E8 08           5)        43.1  Rx         0501  8  02 C0 02 C1 02 C6 02 C0           6)        62.7  Rx         01C2  8  27 9C 60 90 00 0F 04 08    and i am trying to collect just the ID from this file.  I have the expression and have tested that it works, but when i try and collect the list it gives me the whole line instead of just the ID.          var ofd = new OpenFileDialog         {             Filter = "TRC File (*.trc*)|*.trc*",             Multiselect = true,         };          ofd.ShowDialog();          string path = ofd.FileName;         List<string> alllinesText = File.ReadAllLines(path).ToList();         foreach (string id in alllinesText)         {             Regex rx = new Regex(@"\d\d[\d|\w][\d|\w]\s\s");             Console.Write(id.ToString());             MatchCollection matches1 = rx.Matches(id);             Console.WriteLine(matches1);          }          foreach (string data in alllinesText)         {             Regex rx2 = new Regex(@"[\w\d][\d\w].[\w\d][\d\w].[\w\d][\d\w].[\w\d][\d\w].[\w\d][\d\w].[\w\d][\d\w].[\w\d][\d\w].[\w\d][\d\w]");             Console.Write(data.ToString());             MatchCollection matches2 = rx2.Matches(data);         }   The output is        28817)    347963.1  Rx         01C2  8  01 00 00 00 00 00 00 6F System.Text.RegularExpressions.MatchCollection      28818)    347966.3  Rx         04E2  8  64 04 10 15 F5 00 00 08 System.Text.RegularExpressions.MatchCollection      28819)    347967.2  Rx         01C4  8  27 14 63 8C 00 03 E7 08 System.Text.RegularExpressions.MatchCollection      28820)    348017.0  Rx         03C4  8  7F 8A 7F 80 7F FA 96 0F System.Text.RegularExpressions.MatchCollection      28821)    348023.1  Rx         0405  8  01 57 01 58 01 DB 93 02 System.Text.RegularExpressions.MatchCollection      28822)    348029.6  Rx         0505  8  02 BB 02 BC 02 BD 02 BF System.Text.RegularExpressions.MatchCollection

I've got a text file full of records where each field in each record is a fixed width.  My first approach would be to parse each record simply using string.Substring().  Is there a better way?   For example, the format could be described as:  <Field1(8)><Field2(16)><Field3(12)>   And an example file with two records could look like:  SomeData0000000000123456SomeMoreData Data2   0000000000555555MoreData       I just want to make sure I'm not overlooking a more elegant way than Substring().    Update:  I ultimately went with a regex like Killersponge suggested:  private readonly Regex reLot = new Regex(REGEX_LOT, RegexOptions.Compiled); const string REGEX_LOT = "^(?<Field1>.{6})" +                         "(?<Field2>.{16})" +                         "(?<Field3>.{12})";   I then use the following to access the fields:  Match match = reLot.Match(record); string field1 = match.Groups["Field1"].Value;


Suppose file stores the pathname of a non-dir file.  How can I get its parent directory?  why does the following way by appending /.. to its value not work  $ cd $file/..    cd: ./Tools/build.bat/..: No such file or directory   Thanks.

I can type:  dirname ~/home/blah/file.zip   for instance, and this works fine alone, but when I use this syntax as the parameter for some command it always reads 'dirname' as the desired directory. i.e.:  cd dirname ~/home/blah/file.zip bash: cd: dirname: No such file or directory   Basically, how do I get 'dirname file' to be read as one entity?


I have a column named 'titles' with the values:  1) Harry Potter  2) Harry  3) Harry Po  4) Mario Potter  5) Hanry Plotter  If i make a search like:  SELECT * FROM books WHERE titles LIKE 'Harry Potter%'   i get only the first row with 'Harry Potter' which is ok. But how can i get the 2nd and the 3rd row also as a result because they match the search string 'Harry Potter' (Harry Potter contains Harry, Harry Potter contains Harry Po). BUT not "Harry Potter" Not contains "Mario Potter"  I am looking for a function like: if search_string contains ROW  Thanks

LIKE operator in MySql is used to find rows that contain our query text, for example:  select name from user where name like "%john%"   which will return John Smith, Peter Johnson etc.  What if I need the opposite - to find rows that are CONTAINED in our query text? For example I give it John Smith and Peter Johnson are best friends and want it to find me all names from the table that could be found in this string.  How to do that?


I want to enchant an item with Smite level 100 with commands, but i cant get past the maximum level. I searched for solutions, and tried them out, but it still won't work. I'm using Minecraft Pocket Edition. The command I've tried was: /enchant @a [r=4] 10 100

I'm on Bedrock Edition (Windows 10, same as PE) and was wondering if there was any way to go above max on enchanting. For example, if I type /enchant ExamplePlayerName sharpness 10 it would just say the enchantment max was 5. Is there any way I can bypass this?


In the site information section in the configuration, there is an option for setting the 404 page. But How will I set a custom page for http 500 and 410 error pages?  Is there any specific module for this? OR I have to create a custom tpl file in some pattern? Any idea?

This should be the easiest thing to do, but for some reason I just can't get it done.  I'm trying to get a friendly static error page to replace nasty 500 scenarios. For now I'm just trying to replicate a 500 situation on my local machine (Drupal 7 running on MAMP) by throwing in some crap characters on the top of my template.php in my theme, which does trigger a 500 situation, but for some reason the ErrorDocument directive in my .htaccess or Apache config file has no effect.  What I'm doing is quite simply this:  ErrorDocument 500 /500.html   And I have the simplest ever static html-page in the root of my site with the name of 500.html.  Still, when I intentionally break template.php, I get the dreaded White Screen Of Death instead of my nice friendly error page.  What am I doing wrong here? I've done this a billion times in non-Drupal setups but just can't get my head around this one.


I had a doubt in my mind that why the direction of field lines of a positive charge is toward outwards and of a negative charge toward inward direction

I have a questions about the electric field lines.   Well in the basic learning, we know that:   The electric field lines extend away from a positive charge They move forward a negative charge   Let's take parallel plates, which make a uniform electric field.If we take the basic learning, which I mentioned, in accounts, it's very easy to understand that this is the direction of a positive charge object if we put the object between the plate (move away the positive charged plate and toward negatively charged plate).  The problem is if we put a negative charged object between. Isn't the electric field reversed ?


On seeing @Glorfindel's Reputation page, there is no reputation change for the highlighted question.    First I thought it might have been undownvoted, but it says upvote. But there is no +5 corresponding to it. Yesterday Glorfindel earned 245 reputation points according to the Reputation page.  This +245 doesn't include that upvote.

I've found some questions and those two badges "Epic" and "Legendary" regarding the "daily reputation cap". What is it and how can I hit it?


I have a custom entity that isn't showing the ability to add fields. I need to add a field to it, and I want to do it through the UI. The entity was created in a custom module, which I can modify. How can I make the entity fieldable? Here is the annotation from the entity class: /**  * Defines the Quiz entity.  *  * @ingroup qwizard  *  * @ContentEntityType(  *   id = "qwiz",  *   label = @Translation("Quiz"),  *   bundle_label = @Translation("Quiz type"),  *   handlers = {  *     "storage" = "Drupal\qwizard\QwizStorage",  *     "view_builder" = "Drupal\Core\Entity\EntityViewBuilder",  *     "list_builder" = "Drupal\qwizard\QwizListBuilder",  *     "views_data" = "Drupal\qwizard\Entity\QwizViewsData",  *  *     "form" = {  *       "default" = "Drupal\qwizard\Form\QwizForm",  *       "add" = "Drupal\qwizard\Form\QwizForm",  *       "edit" = "Drupal\qwizard\Form\QwizForm",  *       "delete" = "Drupal\qwizard\Form\QwizDeleteForm",  *     },  *     "access" = "Drupal\qwizard\QwizAccessControlHandler",  *     "route_provider" = {  *       "html" = "Drupal\qwizard\QwizHtmlRouteProvider",  *     },  *   },  *   base_table = "qwiz",  *   revision_table = "qwiz_revision",  *   revision_data_table = "qwiz_field_revision",  *   admin_permission = "administer quiz entities",  *   entity_keys = {  *     "id" = "id",  *     "revision" = "vid",  *     "bundle" = "type",  *     "label" = "name",  *     "uuid" = "uuid",  *     "uid" = "user_id",  *     "langcode" = "langcode",  *     "status" = "status",  *   },  *   links = {  *     "canonical" = "/admin/structure/qwizard/qwiz/{qwiz}",  *     "add-page" = "/admin/structure/qwizard/qwiz/add",  *     "add-form" = "/admin/structure/qwizard/qwiz/add/{qwiz_type}",  *     "edit-form" = "/admin/structure/qwizard/qwiz/{qwiz}/edit",  *     "delete-form" = "/admin/structure/qwizard/qwiz/{qwiz}/delete",  *     "version-history" = "/admin/structure/qwizard/qwiz/{qwiz}/revisions",  *     "revision" = "/admin/structure/qwizard/qwiz/{qwiz}/revisions/{qwiz_revision}/view",  *     "revision_revert" = "/admin/structure/qwizard/qwiz/{qwiz}/revisions/{qwiz_revision}/revert",  *     "revision_delete" = "/admin/structure/qwizard/qwiz/{qwiz}/revisions/{qwiz_revision}/delete",  *     "collection" = "/admin/structure/qwizard/qwiz",  *   },  *   bundle_entity_type = "qwiz_type",  *   field_ui_base_route = "entity.qwiz_type.edit_form"  * )  */  This question was originally posted here, but was closed:  I tried all the suggestions there. Thanks.

I have a custom entity that fieldable. I need to add a field to it, and I want to do it through the UI. The entity was created in a custom module, which I can modify. How can I make the entity fieldable? /**  * Defines the Quiz entity.  *  * @ingroup qwizard  *  * @ContentEntityType(  *   id = "qwiz",  *   label = @Translation("Quiz"),  *   bundle_label = @Translation("Quiz type"),  *   handlers = {  *     "storage" = "Drupal\qwizard\QwizStorage",  *     "view_builder" = "Drupal\Core\Entity\EntityViewBuilder",  *     "list_builder" = "Drupal\qwizard\QwizListBuilder",  *     "views_data" = "Drupal\qwizard\Entity\QwizViewsData",  *  *     "form" = {  *       "default" = "Drupal\qwizard\Form\QwizForm",  *       "add" = "Drupal\qwizard\Form\QwizForm",  *       "edit" = "Drupal\qwizard\Form\QwizForm",  *       "delete" = "Drupal\qwizard\Form\QwizDeleteForm",  *     },  *     "access" = "Drupal\qwizard\QwizAccessControlHandler",  *     "route_provider" = {  *       "html" = "Drupal\qwizard\QwizHtmlRouteProvider",  *     },  *   },  *   base_table = "qwiz",  *   revision_table = "qwiz_revision",  *   revision_data_table = "qwiz_field_revision",  *   admin_permission = "administer quiz entities",  *   entity_keys = {  *     "id" = "id",  *     "revision" = "vid",  *     "bundle" = "type",  *     "label" = "name",  *     "uuid" = "uuid",  *     "uid" = "user_id",  *     "langcode" = "langcode",  *     "status" = "status",  *   },  *   links = {  *     "canonical" = "/admin/structure/qwizard/qwiz/{qwiz}",  *     "add-page" = "/admin/structure/qwizard/qwiz/add",  *     "add-form" = "/admin/structure/qwizard/qwiz/add/{qwiz_type}",  *     "edit-form" = "/admin/structure/qwizard/qwiz/{qwiz}/edit",  *     "delete-form" = "/admin/structure/qwizard/qwiz/{qwiz}/delete",  *     "version-history" = "/admin/structure/qwizard/qwiz/{qwiz}/revisions",  *     "revision" = "/admin/structure/qwizard/qwiz/{qwiz}/revisions/{qwiz_revision}/view",  *     "revision_revert" = "/admin/structure/qwizard/qwiz/{qwiz}/revisions/{qwiz_revision}/revert",  *     "revision_delete" = "/admin/structure/qwizard/qwiz/{qwiz}/revisions/{qwiz_revision}/delete",  *     "collection" = "/admin/structure/qwizard/qwiz",  *   },  *   bundle_entity_type = "qwiz_type",  *   field_ui_base_route = "entity.qwiz_type.edit_form"  * )  */


I don't know why in my references, in the title, after a point, although I've used capitalized letter, never starts with uppercase. For ex: (look at between "media" and "fractal")  Aguilera, M., Morer, I., Barandiaran, X. E., y Bedia, M. G. (2013). Quantifying political self-organization in social media. fractal patterns in the spanish 15m movement on twitter. En G. N. S. N. P. Lio O. Miglino y M. Pavone (Eds.), Advances in articial life: Ecal 2013 (pp. 395–402).  This is my citation:  @inbook{aguilera2013quantifying,   title={Quantifying Political Self-Organization in Social Media. Fractal patterns in the Spanish 15M movement on Twitter},   author={Aguilera, Miguel and Morer, Ignacio and Barandiaran, Xabier E and Bedia, Manuel González},   editor={P. Lio, O. Miglino, G. Nicosia, S. Nolfi, and M. Pavone},   booktitle={Advances in artificial life: ECAL 2013},   pages={395--402},   year={2013} }   And my document:  \documentclass{book} \usepackage[utf8]{inputenc} \usepackage[natbibapa]{apacite} \setcitestyle{comma} \bibliographystyle{apacite} \renewcommand*{\bibfont}{\raggedright} \begin{document}  The reference \citep{aguilera2013quantifying}  \bibliography{references} \end{document}   Any ideas?

Titles of articles I'm about to cite contain upper case letters and when using BibTeX it converts them to lower case ones. This happens only in the title and only the first letter conserves its case. For example, when I cite an article about HF, the reader won't know if it is about Hafnium (Hf) or fluorine acid (HF).  I know that I can fix it manually in the .bbl file but I would like to avoid it, or fix it automatically.


I got a problem with a plot. As you can see there symbolic xcoords and i got some plots. but the bars of the plots overlap. For example last bar vom node2 with first bar of node3. is there a way to define the spacing inbetween the xcoords? like a certain space for every symbolic xcoord?   \begin{axis}[ ybar=3pt,     title = Tag calculation for datset : 104 messages - 20 nodes.,     ybar=3pt,     compat=newest,     y axis line style = {opacity = 0.5},      x axis line style = {opacity = 0.5},     enlarge x limits = 0.2,     tickwidth         = 0pt,     legend style={at={(0.5,-0.1)},       anchor=north,legend columns=-1},     ylabel={symbolic $Q_OF$},     ymin=0.0,     symbolic x coords=     {$Node_{16}$,$Node_{17}$,$Node_{18}$,$Node_{19}$,$Node_{20}$},     xtick=data,     width=1\textwidth,     height=9.5cm,    bar width=4,    nodes near coords,    every node near coord/.append style={font=\scriptsize},     nodes near coords align={vertical},     ]

\usepackage{pgfplots} \usepackage{amsmath} \include{macros/style} \include{macros/use_packages} \usepackage{indentfirst} \usepackage{graphicx} \usepackage{algorithm} \usepackage{algpseudocode} \usepackage{tikz} \usepackage{array,booktabs,ragged2e} \usepackage{listings} \usepackage{color} \section{Results} \pgfplotstableread[row sep=\\,col sep=&]{ interval & carT & carD & carC & carG\\ 10 Hz     & 62680  & 125130 & 10000 & 100000\\ OSC     & 62680  & 125130 & 100000 & 100000\\ Adaptive     & 62680  & 125130 & 1000000 & 1000000\\ }\mydata  \begin{tikzpicture} \hspace{-2cm} \begin{axis}[         ybar,         bar width=17pt,         x=7cm,         ybar=1pt,         width=1\textwidth,         height=.5\textwidth,         legend style={at={(0.5,1)},             anchor=north,legend columns=-1},         symbolic x coords={10 Hz, OSC, Adaptive},         xtick=data,         nodes near coords,         nodes near coords align={horizontal},         ymin=0,ymax=400000,         ylabel={Number of Packets Sent},     ]     \addplot table[x=interval,y=carT]{\mydata};     \addplot table[x=interval,y=carD]{\mydata};     \addplot table[x=interval,y=carC]{\mydata};     \addplot table[x=interval,y=carG]{\mydata};     \legend{Six Lanes, 12 Lanes, E.C. Row, i75} \end{axis} \end{tikzpicture}


I have a problem starting Ubuntu, which I don't how to solve. It's difficult for me to describe my problem exactly, because I'm new in the Linux world, so I posted a picture of the problem:

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


I have texlive 2016 installed on my windows OS, to use texlive 2017 you need to download it (over then 2.5GO), I think this is a tedious operation every time you  want to pass from an old texlive to a recent one.  My question is is there a posibility just to upgrade texlive 2016 to texlive 2017without removing, downloading, and installinig  the entire texlive?

Every year TeX Live provides a new version. My recollection is that soon after a new version is released, the old version's tlmgr stops fetching updates to packages. They provide  with the disclaimer     This procedure is not bullet-proof, or especially recommended   There is no upgrade path for Windows. Looking at the , it is not clear to me what is actually changing between releases such that a full new install is required/recommended. I always thought of TeX Live as providing useful binaries (e.g., pdflatex, biber, and makeindex) and a convenient way of updating  packages. What am I missing? Why does TeX Live need a new install every year?


I read this somewhere in the late 80s to early 90s as a hardback book in Ashland, KY. The main character is a boy, but severely jaded. He fights with plastic nunchaku (he makes a point at some point that plastic provides a satisfying impact without causing as much lasting injury) as part of a reality show, filmed on hovering cameras that surround him. Odd detail, his hair was individually laminated so that, with an electrical charge, it stood in a cloud of spikes. One of his best friends is a scientist who delights in hedonism and social experimentation (I remember one of his chemical formulas turned out to be off by a few molecules and resulted in an orgy). His friend, at one point, was dressed as a plague victim, complete with fake  (I remember because this book introduced me to the word). Sex was referred to as "linking" with the penis sometimes referred to as one's "link".  Somehow, the main character winds up on a deserted island with the female love interest, who might have been some sort of reporter. He sustains an injury (a head injury, I think?) and I remember when he wakes up, she proudly says she took the maggots out of the wound whereupon he informs her that they're bioengineered to help him heal. He recovers some of them. I think they cannibalize one of his cameras for parts (I want to say that this was where we get the reveal that his nunchaku had a holdout weapon built into them essentially allowing each rod to act as a one-shot shotgun) and somehow wind up meeting up with an old man who's some sort of famous philosopher or economist. I remember there was an anecdote calling back to a classic piece of literature where this man found he could not look at an item without subconsciously calculating its value. The man was in exile, I think, although I don't remember if it was self-imposed or imposed upon him.  I don't remember exactly how it ends. The scientist friend (I think killed off in the same incident that resulted in the wound in the second paragraph) was involved in something hinky involving his drugs and the government. The main character matured (I want to say that he'd had puberty artificially prevented, and the accident resulted in him being off of his meds long enough to hit puberty) and becomes a man with all of the responsibilities involved. And I think he did wind up with the girl.  I remember this book was one of my favorites as a kid, but I can't quite recall the name. I keep wanting to say that the author is , but I can't find anything he's written that matches up.

Not everyone was a citizen though, there was a significant underclass who had no shares.  One character was a celebrity in some sort of combat game who was followed by camera drones & used drugs to suppress puberty so he waa an eternal 'child', I have the impression that medical science allowed virtual immortality short of accidents.  One character (may have been the same one) had had a 'previous life' & had committed personality suicide by some form of mind wipe bequeathing his worldly possessions to the new personality that would eventually develop in his old body.  I think the motive for this 'suicide' was essentially boredom, he'd lived a long time.  The mind wipe in question was pretty extensive & all encompassing, he had to be cared for & educated from scratch as if a newborn baby in an adult body, nappies & all (but I'm pretty sure this was purely backstory in the book I read).  He also had miniature nano organisms (or bots?) like miniature worms or millipedes that complimented his immune system & aided healing, they were self replicating, pretty sure they were some sort of bioengineered organism tailored to his DNA rather than bots  but not 100% on that.  There was an organism spanning a large area on the planet that absorbed (or consumed) anything that wandered into it but saved the DNA of anything it had previously absorbed & might randomly reproduce any animal plant or individual it had previously absorbed fully formed.  One of the characters fell into this but got pulled out before the full effects took hold, as a result he grew leaves from his head & his immune system was then constantly battling with the 'infection'.  When did I read this? probably some time in the 80's in the UK.  When was it written? I haven't a clue, sorry.  It was a paperback, probably something I had out of a library, because I never get rid of anything I've bought myself so I'd still have it & be able to dig it out if it wasn't a library loan.  I have lots of fragments of world background & 'colour' that seem to have stuck in my mind there, but a complete lack of any story arc to go with them.


I'm trying to calculate the probability that if 8 rooks are placed on a chessboard, they are placed in a fashion such that none of the rooks can capture another rook. So, no row or column can contain more than one rook.   I figure that the total number of positions they can be placed is C(64, 8). As for the number of places they can be placed without capturing one another, I modeled it as a set of vectors where each element is 1(where a rook is present), or a 0(no rook). So I need to find the number of sets of vectors such that the sum of all vectors is (1,1,1,1,1,1,1,1), that is, no value 1 shares a row or column.  The first vector is C(8,1), the second is C(7, 1) and so on. So I got:  8! / C(64, 8).    I don't feel this is correct though, so some help would be much appreciated.

In how many different ways can we place $8$ identical rooks on a chess board so that no two of them attack each other?  I tried to draw diagrams onto a $8\times8$ square but I'm only getting $16$ ways.  Does that sound right?  Thanks for the help!


Is there a way to allocate this free space in the sda6? Thx.  "não alocada" = "non allocated"

Till today I was using ubuntu 13.04 in my windows7/ubuntu dual boot. Just now I have upgraded to ubuntu 14.04. My software updater showed an updates available message. I proceeded with  Install Now . Soon I got the following window.    Then I tried sudo apt-get clean as recommended. Nothing happened! Not even a window opened. Teach me deleting the temporary packages.   Deleting temporary files may not be highly helpful in case of further updates and installs for I don't have too much space left in my /. I wanna extend my / partition with the help of the unallocated space in my HD. The following is my Gparted window.       I got an answer . But it wasn't useful for me. I had two choices. But the answer wasn't working for both my chioces.  Choice 1: I may use the 4.25 GiB unallocated space to extend my /dev/sda10. To do so, I must need to move my linux-swap partition. But my Resize/Move option is disabled for the linux-swap partition. Choice 1 failed!   Choice 2: I may use the 14.35 GiB unallocated space instead. In this case I must move more than one partition. /dev/sda4  partition is the first on the list. Even that partition has the same problem. Resize/Move option is disabled. Choice 2 failed!  I am out of choices now.  What shall I do? Help me to extend my / with Gparted.


What is the purpose of the 5 minute grace period for editing a new post? Is there a reason edits during that time aren't displayed as normal? I don't see the rationale for such a feature.

It is possible for users to edit an existing post.   How do edits work? Who may edit a question or answer? How can you tell what has been changed between edits?      For more information, see "" in the .     Related:


I'm plotting horizontal lines using the following  K = 85 space = K plt.hlines(y=np.arange(0,K*space,space), xmin=0, xmax=torch.randn(K))   It gives the plot     While; the argument space location the y-axis; but each line is so close with its neighbor and its very hard to put y-axis labels for each of the horizontal line  I'm more interested in increase the space (distance) between each line so that y-axis labels can be better visualized. Any help ? Thanks

How do you change the size of figure drawn with Matplotlib?


How can I check that Ubuntu is 100% secure? Should I install a firewall, antivirus, malware software, or any other security or are their security software programs installed by default?

I thought that there was no need to scan for viruses either in Ubuntu or any Linux distros until I found virus scanner packages clamtk and klamav in Ubuntu software center yesterday.  This leads to the following questions:   How do viruses differ between Linux and Windows? How do the strategies for protection differ between Linux and Windows? Should a virus scanner package be installed on my system? If so, which would be a better option?


OK so I have seen the following before writing this post:      I logged in today thinking more about how to contribute to meta & not just SO. My problem in the past was the issue of misunderstanding down votes here and taking offense. In fact I think once upon a time I got kicked out of here due to my responses because my reaction was like this:     "Oh wow, on SO I may have gotten 1 downvote ever and now the 1st   question I ever asked is downvoted by 15. What the heck, these people   are mean here!!"   So I realize changing the voting system here as opposed to SO may not be desired or feasible, but what if upon asking a question and having meta note that I'm under a particular rep line (i.e. below 500?), I would be explicitly informed on how to digest and interpret downvoting?  I realize the FAQ states this, but as pointed out before it may have not been read or not realized to have differences from SO. Especially with low rep users. I know it's just like documentation in software, people still ask questions that are already documented and it drives us crazy. But it's also a fact of life that people typically will not read something buried in long read paragraph formats as opposed to a small. explicit, blip of important information. Since the downvoting meaning on meta is fundamentally different than SO, it might be worth having it stand out better to lower rep users.  The implementation of this information is semantics. Upon pressing 'Ask Question' or 'Post Your Question' maybe one of the following could occur for the use case described above (not for everyone just lower rep users):   Dismissable disclaimer explaining downvoting purpose on meta Contrasting color section on page with information directly from FAQ about downvoting Clickable link about 'What does downvoting mean on meta?' or something similar   The above are just brainstormed ideas. Again semantics on the implementation, but the purpose is to inform lower rep users on the process of downvoting. It might be a win-win situation, because higher rep users don't have to see the 'extra' information about downvoting, and the potential for lower rep users to be better informed about downvoting on the spot to lessen the occurrences of misunderstanding on meta.

Inspired  and at the risk of being downvoted to oblivion, I'd like to propose a feature request.  Can we automatically explain to people what downvotes mean on Meta?  I am getting tired of seeing people on Meta ask about why they were downvoted with no comment, whine and complain and boo hoo hoo. Votes on meta are different!  I understand, I was new to Meta once too...  Can we somehow show   automatically when someone tries to ask why they were downvoted on Meta?  Here's some freehand circles to help you guys know how serious I am:    (Yes I am pretty well aware this will just be another  question)


I burned an ubuntu 16.04 live cd and tried to boot with it using my laptop. I got to the menu where it asked me to try out the OS or install it but when i selected "try out" my screen went black and i was unable to use the OS. Any way to fix this? The laptop is a Packard Bell Easynote TE69 with a Terabyte harddrive 4gb of ram and an Intel i3 processor

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


I have two moving objects. I have chosen trajectories for objects that they would definitely collide if they don't change speed or trajectory. Is there easy way to check at which point and time the objects will collide with given parameters (current object positions, their velocity vectors and speeds or any other parameter accessible from Unity)?

Well I have a simple 2D game where all positions are defined by and X and Y coordinate.  There are objects moving at a constant velocity. And a turret fires a bullet at the X and Y coordinates of the object. By the time the bullet goes to the desired area, the object has already moved.  So i need to adjust the X and Y target positions for the turret to shoot at taking into account the bullet speed and object speed.  Here's an image showing the problem.


I have a python list which runs into 1000's. Something like:  data=["I","am","a","python","programmer".....]   where, len(data)= say 1003  I would now like to create a subset of this list (data) by splitting the orginal list into chunks of 100. So, at the end, Id like to have something like:  data_chunk1=[.....] #first 100 items of list data data_chunk2=[.....] #second 100 items of list data . . . data_chunk11=[.....] # remainder of the entries,& its len <=100, len(data_chunk_11)=3   Is there a pythonic way to achieve this task? Obviously I can use data[0:100] and so on, but I am assuming that is terribly non-pythonic and very inefficient.  Many thanks.

I have a list of arbitrary length, and I need to split it up into equal size chunks and operate on it. There are some obvious ways to do this, like keeping a counter and two lists, and when the second list fills up, add it to the first list and empty the second list for the next round of data, but this is potentially extremely expensive.  I was wondering if anyone had a good solution to this for lists of any length, e.g. using generators.  I was looking for something useful in itertools but I couldn't find anything obviously useful. Might've missed it, though.  Related question:


My question seems to be obvious but I really don't find the solution. Well, I want to redirect to my view just after connexion. I try to use $form_state->setRedirect,but It's seems it needs the route name.  I don't find the route name of my view! How to get a route name from a path? Or to redirect using the path?

I created a custom module, It generate a custom Form in a page. When I submit my form, I create a new node. So, I am redirect to the form page but I would like be redirect to the new node page.  I add this line at the end of my submitForm function :   $form_state->setRedirect('node/'.$mynewnode->id());   But when I submit my form from the website, I get the empty-white-screen-of-the-death. My apache log :   ... Uncaught PHP Exception Symfony\\Component\\Routing\\Exception\\RouteNotFoundException: "Route "node/153" does not exist. ...   And then, when I go manually to the node/153 page, there isn't any problem. The page work well.   My question : where is my mistake ? How can I set the redirection after create the new node ? Is it possible from the submitForm function ?


Is it possible to make slope direction with QGIS 2.16.1 like in this image?    Global Mapper steps:   Made grid point Apply slope direction.     I made point grid 100x100m and I used DEM layer. In Global Mapper software, there is a tool which make slope direction (flow direction) field, and then in QGIS I made this map. This is attribute table made with Global Mapper.    @lynxlynxlynx:This is result: Red arrows are old arrows and blue are new arrows. I think this is no what I want. Maybe red arrows are interpolated some slopes. You can see with contour lines that result is not good.       @SaultDon: There is uncovered areas on this image.     @lynxlynxlynx: it is similar     I found tool for this. That is  Saga plugin called: Gradient vector from surface.

I have a dilemma? I work with a slope terrain. Slope field is done by a percentage of 10%. My question is, in which direction is oriented this pixel, or any pixels? It is important to know to what direction, if you're designing roads. On image below I represented Slope image, and zoomed 10% slope pixel.     This is result from comments below. This is image made with Qgis2threejs. I still not sure that real slope of each pixel oriented to arrows, like those yellow pixels on top left corner, I mean diagonally. Sorry maybe my answer could be confused.


When I run a tikz code on my PC, the following error always stop me from producing the figure.        ! LaTex Error: File forest.sty not   found   But my code is okay in .  My LaTex on PC(win7) is WinEdt 6.0.   Does it mean my codes need a separate file: forest.sty. I googled it but ending  without finding  any forest.sty file, can anyone give me the one?

I am using TeXworks 0.4.5 r1280 with MikTeX 2.9 on Windows 7 64-bit. When I add  \usepackage{datetime}   and try to typeset the document, I get a dialog window like this:    I select "Install", confirm UAC request and then get the following error on the console:  ! LaTeX Error: File `datetime.sty' not found.   If I try to typeset the document again - the dialog and the error appear again.  Same thing happens when I've tried installing wrapfig and a few other packages at random: cases, comma, dowith, microtype.  Other packages have installed fine before. What is wrong with my setup? Please let me know if you need more info about my setup in comments.  I've tried this solution: . Didn't work.


My server has a very 40GB drive for OS, two 2TB drives and one 450GB drive. The server will have about 10 databases; the total data size of the databases is about 1.4TB. Most of the databases are using simple recovery mode. The users love to create big temp tables and sometimes they create large transaction logs.  Is it ok to put all the tempdb files and log files (include tempdb log file) in the 450GB drive?

I have a fairly busy database server running SQL Server 2008 R2 that has the following setup:   SATA RAID 1 (2 Drives)  - OS / Programs SAS  RAID 10 (4 Drives) - Sql Database Files (data and logs) SAS  RAID 1 (2 Drives)  - TempDB (data and logs)   Assuming I can't add additional drives into this server, have I made the best use of the configuration I have available? Or should I consider another scheme here where logs are isolated from the data files, for example?  Update:  For those that requested further hardware details:   The SATA drives (used for the OS / Program partition) are: WD 7200 RPM 3 Gb/s 3.5 Inch SATA The SAS drives used in the other arrays are: Seagate 15K RPM 6 Gb/s 3.5 inch SAS The RAID controller used is an: LSI 9260-8i SAS/SATA 6 Gb 8 port   Update 2:  Based upon the feedback I've received, it looks like I have the following viable options to choose from - I will award the bounty to someone that can tell me which is likely to be the best in the environment that I've outlined:   Leave everything as is - I probably won't do much better  Move my 2 SAS RAID 1 drives into my existing RAID 10 array to have it composed of 6 disks in total  Move my log files onto the SAS RAID 1 and/or relocate TempDB (data or logs) back to the RAID 10


I have encountered a weird situation today for second time which keeps my mind busy. The problem has started when i looked Matcher class's constructors which are not declared as private. I thought, i can invoke Matcher's constructor in other class with creating object of it. But my IDE has shown the constructors as private.   And i am wondering why cannot i access those constructors? The second time was in Bitmap class from Android Library. I haven't worked with Matcher or any related class. This is the first time, i am dealing with it. I would be grateful if you guys and ladies can help. Thanks in advance. BTW, I am using IntelliJ Idea as IDE.

In Java, are there clear rules on when to use each of access modifiers, namely the default (package private), public, protected and private, while making class and interface and dealing with inheritance?