Showing any countable, dense, linear ordering is isomorphic to a subset of $\mathbb{Q}$

I'm trying to knock out a few of the later exercises from Enderton's Elements of Set Theory. This problem is #17, found on page 227.     A partial ordering $R$ is said to be dense iff whenever $xRz$, then $xRy$ and $yRz$ for some $y$. Assume $(A,R)$ is a linearly ordered structure with $A$ countable and $R$ dense. Show that $(A,R)$ is isomorphic to $(B,<_Q)$ for some subset $B$ of $\mathbb{Q}$.    I had an idea, but I'm not sure how to communicate it formally, so I'm hoping to get some help on this. First, since $A$ is countable, I can list it as a sequence, $A=\{a_0,a_1,a_2,\ldots\}$, even if this isn't the actual linear ordering dictated by $R$. The text suggests that I define some order isomorphism $f$ by defining $f(a_i)$ by recursion on $i$.   I began by letting $f(a_0)=q_0$ for some arbitrary rational. I then look at $a_1$, if $a_0Ra_1$, I would then let $q_0<f(a_1)$, and if $a_1Ra_0$, I instead choose $f(a_1)<q_0$. This continues, so for example, if $a_2Ra_1\land a_0Ra_2$, I would then want to choose $f(a_2)$ such that $q_0<f(a_2)<q_1$ and so on.   Since $\mathbb{Q}$ is dense, I just want to choose some rational to preserve the order as I go along sequentially in $A$, and figure out the order as I go. Is this right? If so, what's the rigorous way to state this idea? I'm particularly concerned about how $f$ can respond to where the next element $a_{i+1}$ might be in relation to the previous $a_0,\ldots, a_i$, and how to decide which element to pick out. Thank you.


Does the mass of a brick increase when you lift it?

If a person takes a brick, and lifts it to a height of 1 m, will the mass of the brick increase?


How should a multiple-word noun be punctuated within a compound adjective?

I would like to use a noun made of multiple words (like particle board, Mount Everest, or windscreen wiper) in a compound adjective with a hyphen.  But I don't know how to hyphenate such a composition.  I'm not sure how common this situation is, so here's an example:   is a single noun made of two words, and I want to use it in a compound adjective with a hyphen.  Are either of the following examples correct?        I would like to pursue a machine learning-related certification.     I would like to pursue a machine-learning-related certification.      If not, then what is the correct way to hyphenate compound adjectives like this?


How do you kill all the entities that enter a certain radius except for villagers and players?

I have been trying to make a safezone for a map. I want to make it kill any mobs that come into the safezone except for villagers (for trading) and players within a certain radius.   I have looked at quite a few of the questions on here and haven't found the answer I'm looking for. Some people suggested using scoreboards and I find them extremely complicated. I don't know if they have a range function. I have seen some people say to make multiple kill commands and string them up, but I can't do that because I have the Mo' Creatures mod installed.   I am running Minecraft 1.10.2.  If anyone needs extra info on something comment and ask about it as I don't know what else to say in the question. Please don't be harsh like some people have been to me in the past.


I'm reading through Munkres and Armstrong's books on topology. However, I find topological groups to be really complicated objects! I feel they are twice as hard to deal with then just groups and topological spaces, but why do we need it?    Can anybody help me?


Update GPG error - NO_PUBKEY - The repository release is not signed

I'm having some issues updating Ubuntu 18.04. Here is the error output  W: GPG error: http://download.opensuse.org/repositories/home:/strycore/xUbuntu_18.04 ./ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2F7F0DA5FD5B64B9 E: The repository 'http://download.opensuse.org/repositories/home:/strycore/xUbuntu_18.04 ./ Release' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.   Researching similar problems, for example     Doesn't work. Specifically, I get the error   nik@nik:~$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 2F7F0DA5FD5B64B9 Executing: /tmp/apt-key-gpghome.uWb8bIzMR8/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 2F7F0DA5FD5B64B9 gpg: keyserver receive failed: No data  nik@nik:~$ gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv 2F7F0DA5FD5B64B9 gpg: keyserver receive failed: No data   I couldn't find a working solution to that problem though. Any advice? Thanks.


how to push an element at index 0 of an array

i have a situation like this,  i have 2 array1  as array1 = ["fruit","vegetables"];  and   array2 = [["apple","banana"],["tomato"]];  // index 0:represent fruit i,e (["apple","banana"]), index 1: vegetables i,e (["tomato"])  my question :  how can i push item from array1  so as to make my array2 look like this   [["fruit","apple","banana"],["vegetables","tomato"]];  with that i can determine index:0 as category.  MY data structure is  these 2 array array1 = ["fruit","vegetables"];  AND   array2 = [["apple","banana"],["tomato"]];    if i'm able to get key value pair array that would good for me.  my sample data:  array1 = ["fruit","vegetables"];   array2 = [["apple","banana"],["tomato"]]; //expected output :[["fruit","apple","banana"],["vegetables","tomato"]];


How to prove that $x^y - y^x = x + y$ has only one solution in positive integers?

Prompted by , I tried to show that $(2,5)$ is the only solution in positive integers of $x^y - y^x = x+y$ (which would show, a fortiori, that it's the only solution in primes). It's convenient to rewrite the equation as $f(x,y) = x^y - y^x - x - y = 0$.  With the aid of some trial calculations, I reasoned informally as follows:  If $x=1$ then $f(x,y) = -2y=0$, implying $y=0$.  If $x=2$ and $y \leq 5$, then a case-by-case check shows that only $(2,5)$ is a solution.  If $(x,y) = (2,6)$ then $f(x,y) = 20$, and as $y$ increases above $6$, $f(x,y)$ increases.  If $x \geq 3$ and $y \leq x$ then $f(x,y) < 0$.   If $x \geq 3$ and $y=x+1$, then $f(x,y)>0$, and as $y$ increases above $x+1$, $f(x,y)$ increases.  How can the above be made into a rigorous proof?  I've included calculus as a tag since it could be useful in showing under what conditions $f(x,y)$ is an increasing function of $y$ (viewing it as a real variable).


Utility floating neutral, isolation transformers and getting a shock

I'm working with isolation transformers and I need to know the concept of power utility pole mounted isolation transformer because they are related.   If the neutral of North American pole utility is not grounded below the the pole, the neutral is said to be floating (as shown below). But how can you get a shock by touching it by there is no direct path to ground?      Remember the secondary of utility transformers are just like the concept of isolation transformers. If you don't ground the secondary, then you can safety work on equipments as there is no direct path to ground so even if you accidentaly touch one wire and ground, you won't get a shock. But how come I read reports of people getting a shock when they touch a neutral that is not grounded at the utility pole? What is the path to ground in the pole utility isolation transformers?


The variance of a random variable $X$ is defined as $E[(x-\mu )^2]$. Why can't it be defined as $E[|x-\mu |]$. i.e., What is the basic idea behind this definition. Thank you.


Are vectors $e_i$ linearly independent if and only if the matrix $A$ is nonsingular?

Let $V$ be an inner product space over $\mathbb{R}$ or $\mathbb{C}$, and let $e_1, e_2, \dots, e_n$ be a collection of vectors in $V$, not necessarily orthonormal. (Here, $n$ has nothing to do with the dimension of $V$.) Let $\langle\cdot,\cdot\rangle$ denote the inner product in $V$, and form the $n \times n$ matrix $A$ with entries $\langle e_i, e_j\rangle$ (where $i, j = 1, \dots, n$). Are the vectors $e_i$ linearly independent if and only if the matrix $A$ is nonsingular?   My thoughts on the problem so far. Let $F$ be $\mathbb{R}$ or $\mathbb{C}$ and $f$ the linear map $F^n \to V$ which sends the $i$th standard basis vector to $e_i$. I want to show that, if $v \in F^n$ is nonzero, then $Av$ is nonzero. I've observed that $v^t Av = \langle f(v), f(v)\rangle$ (which is positive). But I don't know what to do next. Can someone help me out?


Does the dihedral group $D_{12}$ have a subgroup of order $4$?


Why is my computer so slow when copying lots of small files from an external drive to another

Using Linux, I am copying with rsync 60Gb of files cut in very small files (1MB each) I thought copying would be limited by the maximum writing speed of the destination hard drive but it seems my whole system gets very slow (e.g. unlocking takes about 5 minutes)  The source is an external hard drive and so is the destination, both plugged through USB3.0.  Monitoring my system with 'htop' shows that the CPU is barely used and the memory is mostly available. I will try copying files with 'cp' but I doubt there would be any difference.  What is causing this performance issue?  Why is copying between two external hard drives causing performance issues on my internal system?  I don't think this is fixable but I would like to understand.


Even though the field becomes infinite near the charge a gaussian surface can pass through the continuous charge distribution. How?

Even though the field becomes infinite near the charge a gaussian surface can pass through the continuous charge distribution and have a finite value of flux. How?


If $A$ and $B$ commute, show that they have a common eigenvector?

That is, if $AB = BA$. I can see that it is true if all the eigenvalues of $A$ or $B$ are distinct. Let $(\lambda, \textbf{x})$ be an eigenpair of $A$ (or whichever one has distinct eigenvalues). So   \begin{align*} A\textbf{x} = \lambda \textbf{x} \\ BA\textbf{x} = \lambda B \textbf{x} \\ AB\textbf{x} = \lambda B \textbf{x} \end{align*}  So either $(\lambda, B\textbf{x})$ is an eigenpair of $A$ or $B\textbf{x} = \textbf{0}$ and then $(0, \textbf{x})$ is an eigenapair of $B$. If the first is the case, $B\textbf{x}$ must be a multiple of $\textbf{x}$ as $\lambda$ already has an eigenvector associated with it and it can have no more.  In fact, if $A$ or $B$ has all distinct eigenvalues then it seems they must have exactly the same eigenvectors. I'm not sure how to get the result I actually want though.  Edit: The family of commuting matrices sharing an eigenvector definitely encompasses this result, but the tools used their are beyond what we've developed in the course I'm taking.


How could Aragorn be 88 years old while he looks relatively young?

In the extended version of The Two Towers, Aragorn says to Eowyn that he is 88 years old. He said it was due to his royal lineage or something like that.  I did not remember that fact from the books, but it's been a while since I last read them. Anyway, how is it that being the heir of Isildur grants him such a long life?


Prove that the integers modulo 8 is not an internal direct product of two proper subgroups.

Prove that $\mathbb{Z}_8$ is not an internal direct product of two proper subgroups. I'm really struggling to get the wheels turning on this one. I know what it means for group to be an internal product of two subgroups, I'm just not sure how to get started in showing that $\mathbb{Z}_8$ is not.


What is the difference between "gonna be" and "gonna"?

Sometimes the below two sentences look the same to me. What are the differences between these two sentences:   I am gonna be talking. I am gonna talk.


Short story told from vegetarian alien's POV observing astronaut behavior, including laughter

Probably mid to late 20th century story. I believe the title is something like "Farewell Ilya" or "Goodbye..."   The alien tells the story. Actually, perhaps the astronauts are the aliens, since I think it takes place on another planet. I think the narrator is injured, or somehow gets "taken in" by the ship's crew. They treat him sort of like a pet.   Anyway, the alien/narrator describes all sorts of human behavior. He ends up falling in love with human laughter. The alien is vehemently vegetarian and is disgusted when he is offered meat by the crew of the spaceship (something about not eating plant matter either unless covered under some treaty). I think he moves by folding in appendages and rolling?? Despite all the bad things he observes, he is so taken with human laughter that he leaves with the crew.   The story may be in a letter format.   I read this years ago and cannot find it in any anthologies I own nor through internet searches.


The algebraic closure of a finite field and its Galois group

$F$ is an extension field of a field $K$. Let $F$  be an algebraic closure of $\mathbb{Z}_p $ ($p$ prime). Show that $(i)$ $F$ is algebraic Galois over $\mathbb{Z}_p$ $(ii)$  The map $\alpha:F\rightarrow F$ given by $u\mapsto u^p$ is a nonidentiy $\mathbb{Z}_p$-automorphism of $F$. $(iii)$  The subgroup $H=\langle \alpha \rangle$ is a proper subgroup of Aut$(F/\mathbb{Z}_p)$ where the fixed field is $\mathbb{Z}_p$, which is also the fixed field of Aut$(F/\mathbb{Z}_p)$ by $(i).$    So, here is my attempt for (i). Let  $S \subset \mathbb{Z}_p[x])$ of monic polynomials of the form $x^{p^n}-x$.  Then for all $f\in S$, gcd$(f,f^{\prime})=1$(i.e, the polynomials are separble) and $F=\mathbb{Z}_p(a\in F:f(a)=0)$. So $(F/\mathbb{Z}_p)$ is Galois. I'd be glad if I could get assistance for (ii) and (iii) as well.  Thanks.  ADDED:  Attempt at (iii).   but I know that since $F/\mathbb{Z}_p$ is a finite Galois extension, its fixed field is $\mathbb{Z}_p$ hints...  The field $\mathbb{Z}_p$ must be contained in $F$. For $a\in \mathbb{Z}_p$, $\alpha(a)=a^p=a$. Thus the polynomial $x^p-x$ has $p$ zeros in $F$, namely, the elements of $\mathbb{Z}_p$. But the elements fixed under $\alpha$ are precisely the zeros in $F$ of $x^p-x$. Hence the fixed field of $\alpha$ is $\mathbb{Z}_p$ which is also the fixed field of Aut$(F/\mathbb{Z}_p)$. Left to show that $H$ is a proper subgroup... If it helps I know that the order of $\langle \alpha \rangle $ is $n$...


How to expand luminosity blending option in illustrator?

i have an issue with the vector shape in the background in an illustrator file, it appears differently on my client's pc.  That's how it appears to me (the good one):    and that's how it appears to the client:    The vector shape in the background has transparency 50% and luminosity blending over the orange gradient color.  My question is there any way to expand the luminosity blending option so the vector shape appear the same?


Alias for Drupal "Sites" folder with Apache on Windows Server 2008

I'm having to move a number of sites from a LAMP stack to a WAMP one, provided by Zend, and I've hit a problem.  Our architecture is a number of loadbalanced web servers which have their own local webapp drives which are kept in sync with one server performing as the master copy.  There is then a separate DFS share provided to all web servers from our pillar san.  Usually a Drupal install under our LAMP cluster would have the main Drupal web app in a local HTDOCS mount for each server and the SITES directory within Drupal would then be symlinked out to the DFS or NFS share so that there is a common FILES and TMP directory.  The problem I'm having is that there seems to be no equivalent of symlinks on Win Server 2008, shortcuts have a .ink at the end making Apache see them as a distinct file.  So I've tried using an alias call in the vhost file like this;  <Location /drupal-626/sites>     Order deny, allow     Allow from all </Location>   Alias /drupal-626/sites "Z:\Path to alternate sites directory"  The root for this test is;  http://main-domain-url/drupal-626/   Unfortunately this isn't working so I'm wondering if any of you have a solution which would work?  Many thanks for taking the time to read this.


I am pleased with your answer. Is "pleased" a verb or an adjective?

Your  answer  pleases  me(Active  voice)      I am pleased  with  your  answer.(passive voice)   I  think it  is  difficult  to  say  whether pleased  is  a  participle   or  an  adjective in the sentence in the  passive  voice We  know  that  pleased  can  be  a  verb  and  an  adjective  too.  If  somebody  asked  us  to  say  whether  pleased  is  an adjective or  a verb  in the  sentence, what  would  be  our  answer.?  En  I  think  we  will face the  problem when  verbs such  as  satisfy, please , interest  which   can be adjectives as  past  participles  are  used  as  verbs.     English  interests  me.( active  voice)      I am  interested  in English(passive voice)   Here intersted  is  both  a verb  and adjective.  The  problem  arises  when  past  participles  and adjective forms are  the  same.     He   likes me(active voice)      I am liked by him(  passive voice)   Here  liked  is clearly   a  verb  Here  is  a links  which  show pleased  as  an adjective. and  please  as  a verb.      This  is  not  at all  a  dupiicate  because   staple  is  a  verb  and  stapled  is  the  past  participle  of  staple  but it  is  not  adjective but  pleased , satisfied, and  dissatisfied   are  listed as  verbs  and  adjectives.  Even if  we  change  the  tense  they  are  difficult  to  classify.     I was  pleased with  your  answer.      I  was  satisfied with  your  answer   I  will  be  satisfied with  your answer  I  will  be  pleased  with  your  answer  Here  is  a  link  which  shows    staple   only  as  a  verb    Here  is  another  link   which  shows     satisfy as  a verb   followed  by  the  preposition   with


Stopping Apache from serving requests for content from other sites

When looking at my Apache2 access logs, I occasionally see GET requests asking my server for a page on a completely different server. For example:  xx.xx.xx.xx - - [18/Jan/2012:07:12:10 -0500] "GET http://someotherserver.com/?sometimesmorestuff=likethis HTTP/1.1" 200 389 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12"   I remembered reading something about that in the past, but at the time I had never seen that on my server, so I didn't worry about it.   Now that I am seeing it on my server, I just ran a test and it appears that my site does indeed serve requests for content from other servers. This seems like a bad thing. So, two questions:  A) Is this something I should be worrying about?  B) How can I fix it?  I've tried a little Googling, but I don't even know what this sort of thing is called, and that makes it difficult.


How to recover my account if I forgot my e-mail address?

I forgot my Stack Overflow account and I have logged out of my Gmail account - so I have no other option to get back to my Stack Overflow account. So I created this post to ask this question.  Is there any way I can know the e-mail address of this account? I have forgotten my e-mail address since I have created so many e-mail address already. Here is my account     If I know the e-mail address I can login again to my Gmail and it automatically logs me in to Stack Overflow.


Ubuntu won't let me boot alongside other operating systems

I deleted the Ubuntu partition and started the Ubuntu installer up on a USB. The first time, I got the option to install alongside windows. However, I clicked an incorrect option and wanted to go back. I couldn't, so I restarted my computer. Now, I get the warning that UEFI mode could erase my other operating systems, but don't have the option to install Ubuntu alongside my other operating systems.


How do I change either the text in the views data export CSV button or the button completely

I have a view that exports data, so the csv button is displayed.  I want the button to read "Export" instead of CSV - how can I change the text that displays on that button or display a different button completely?


What is the electric field inside this shell?

A problem from Griffiths asks us to find the electric potential inside and outside a spherical shell. The potential on the shell is specified to be $V(R, \theta) = k \cos(3\theta)$. There is no charge anywhere else. The solution (I think) is $$V_{in}(r,\theta) = \frac{k}{5} \left(-3\left(\frac{r}{R}\right)P_1(\cos\ \theta) + 8\left(\frac{r}{R}\right)^3P_3\cos\ \theta\right)$$ The field is not zero inside this shell. But if I apply Gauss's law over any surface fully inside this shell, $$\oint \mathbf{E}\ \cdot d\mathbf{a}\ = \frac{Q_{enc}}{\epsilon_0}$$ $Q_{enc}$ is zero because there are no charges anywhere. And since the above equation holds for every closed surface inside the shell, $\mathbf{E} = 0$ everywhere inside the shell. Which is not true according to the potential I computed. What am I missing?


I came across several forums and articles saying that criteria is plural and criterion is singular. Some gave me the impression that criterion is used to denote a set of rules.  What is the correct use of these two words?


JGIT Repeated Merge Conflict Null pointer exception

I would like to ask regarding the below code lines why i get null pointer Exception. Is this something Git related which i don't understand ?  refsideMerge=existingRepo.exactRef("refs/heads/sideMerge"); tmpMerge = git.merge(); tmpMerge.include(refsideMerge); tmpMerge.setCommit(false);//dry run to get conflicting files tmpMergeRes = tmpMerge.call();  Map allConflicts = tmpMergeRes.getConflicts();            for (Map.Entry<String,int[][]> entry : tmpMergeRes.getConflicts().entrySet()) {  System.out.println("Key: " + entry.getKey());   for(int[] arr : entry.getValue()) {    System.out.println("value: " + Arrays.toString(arr));   } }   Description:  After Repeatedly running this code snippet i bump into Nullpointer exception. I want to test my xml Parsing for Merge Conflicts that's why i need repeated Merge Conflicts to handle. Currently only the Merge part is used to generate conflicts.  As far as i realized it stops at the below line  Map allConflicts = tmpMergeRes.getConflicts();


Can we use propositional logic to prove set identities?

For instance, to prove that $A \cup (B \cap C)=(A \cup B)\cap(A\cup C) $, can we use the definition of union and intersection, namely $A \cup B=\{x\mid x \in A \lor x \in B\}$ and $A \cap B=\{x\mid x \in A \land x \in B\}$, and derive the set or propositions $A(x)=x \text{ is in }A , B(x)=x \text{ is in } B, C(x)=x \text{ is in } C$.   Then, using logic, would it be sufficient to prove the following? $A(X) \lor (B(x) \land C(x)) \equiv (A(x) \lor B(x)) \land (A(x) \lor C(x)) $  Thanks!


Intuitive/direct proof that a rectangle partitioned into rectangles each with at least one integer side must itself have an integer side

A challenge problem asked to show that if rectangle $R$ with axis-parallel sides is partitioned into finitely many subrectangles $R_1,R_2,\ldots,R_n$ (also with axis-parallel sides), such that each $R_i$ has at least one integer side length, then $R$ must also have at least one integer side length. The only proof I've seen, although simple, is quite unintuitive. Namely you look at the integral  $$ \int_R e^{2 \pi i (x+y)} dx dy $$ and note that the integral is $0$ if and only if $R$ has an integer side length, and then note that by assumption the integral is $0$ over all the $R_i$, hence summing the integral over all $R_i$ gives that the integral is also $0$ over $R$. Can someone give a more direct/intuitive argument that doesn't use voodoo like a complex-valued integral?


What is correct:If you see him,give him the message.OR If you see him,give him a message.


Why does $(A/I)\otimes_R (B/J)\cong(A\otimes_R B)/(I\otimes_R 1+1\otimes_R J)$?

While reading, there is an isomorphism that I'm having trouble fulling seeing.      If you have two algebras $A$ and $B$ over a commutative ring $R$, with $I$ and $J$ two sided ideals in $A$ and $B$, then you should have an isomorphism   $$ (A/I)\otimes (B/J)\cong (A\otimes B)/(I\otimes 1+1\otimes J). $$   Now there are bilinear maps from $A/I\times B/J\to (A\times B)/(I+J)$ and so the universal property of the tensor product gives unique maps $(A/I)\otimes (B/J)\to (A\times B)/(I+J)$. Does this somehow get to the isomorphism above, or am I completely off track? What is the quick way to see this? Thanks!


All HTTP requests get ERR_CONNECTION_REFUSED, HTTPS works - How to troubleshoot?

Trying to open a http website on any web browser (event telnet) gives a ‘ERR_CONNECTION_REFUSED’ or ‘connection timed out’.  However, the same sites can be opened using https. I tried doing a traceroute and it works fine.  I am new to OS X but have experience with Linux. How do I go about troubleshooting this issue?  Update  I think I've tracked down the culprit to a rule in pf (firewall).  The result of sudo pfctl -s nat is:  No ALTQ support in kernel ALTQ related functions disabled rdr pass inet proto tcp from 192.168.0.101 to any port = 80 -> 127.0.0.1 port 9882   192.168.0.101 is the current ip address of the computer.  I tried to remove the rule with sudo pfctl -F all, but it is back after a few seconds. I didn't find the rule in the default configurations (/etc/pf.conf). And disabling pf with sudo pfctl -d has no effect on it.  Is this a malware issue?


This question is prompted by:  and .  Basically, some diamond moderators don't always want to diamond-hammer close questions.  A workaround is to create a new account, , then cast regular close votes from that account.  Question: May a diamond moderator utilize a second, non-diamond account e.g. to cast regular close votes?     It is not a problem to have multiple accounts, as long as they aren't voting for each other and doing other sockpuppet-y things.      I worry this might be considered "sockpuppet-y".  The diamond close hammer is sometimes excessive, particularly  where moderators are .


Why do we need to normalize data before principal component analysis (PCA)?

I'm doing principal component analysis on my dataset and my professor told me that I should normalize the data before doing the analysis. Why?   What would happen If I did PCA without normalization?  Why do we normalize data in general?  Could someone give clear and intuitive example which would demonstrate the consequences of not normalizing the data before analysis?


How to hide the object emitting particles in a render in Blender 2.80?

I have a surface with particles. But I don't want to see the original object in the render. How to fix it?   Transparency, other collection / scene doesn't work.


How to LIMIT query results in Oracle 11g?

I have following query: SELECT p.product_name, SUM(o.quantity) no_of_product_sale   2  FROM Order_Address_Quantity o   3  JOIN Product p ON p.product_code = o.product_id   4  GROUP BY p.product_name;  which results in: PRODUCT_NAME                   NO_OF_PRODUCT_SALE ------------------------------ ------------------ Coffee                                         10 Noodles                                         4 Oil                                             8 Rice                                            5 Dishwasher                                      3 Biscuits                                        2  6 rows selected.  How can I show the product with maximum no_of_product_sale? In other SQLs it can be done by adding LIMIT = 1 clause.


Prove that there are no positive integers $a, b$ and $n >1$ such that $a^n – b^n$ divides $ a^n + b^n$.

Prove that there are no positive integers $a$ , $b$ and $n>1$ such that  $a^{n}–b^{n}$ divides $a^{n}+b^{n}$.  Can someone provide me a proof of this and explain it to me please.


Can no longer see my partitions on my hard drive

It all began when i got a bluescreen from nowhere, i ignored it and started my computer again and tried to access my hard drive, but explorer stopped responding and the drive is no longer visible. I shutdown my computer, took out the drive, waited for an hour and started my computer with the drive again, it worked for the rest of the night.   The next day when i started my computer the hard drive was not visible. I went into the disk manager and saw that the hard drive was offline and all space on it was unallocated.   I tried to recover the partitions with MiniTool Partition Wizard. It got to around 60% and stopped responding. I downloaded the bootable version and it showed my lost partition with all files in it and it also showed a partition which was 128 MB in size.  I have tried to access the drive with another computer, but it shows the same result, offline and all space is unallocated.  I don't know what to do now, why can't windows see my partition?  Sorry for the long post.


In powerpoint, is there anyway to have "resize shape to fix text" to only grow horizontally?

I am trying to figure out if there is a way in powerpoint when i am using "" i can make the vertical height of a shape fix and if the text in a shape can't fit that the shape only grows horizontally.  Is this possible as it seems like the default behavior is to grow only vertically


How to prove equality of the cardinality two sets?

The question states:  Prove that $|(0,1)| = |(-e, \pi)|$.   I am assuming this has something to do with the Cantor-Bernstein-Schröeder Theorem, but I don't really have a good understanding as to how to apply it.  How would I show this proof?


What type of solder is safest for home (hobbyist) use?

I'd like to do some hobbyist soldering at home, and would like to make sure I don't poison those living with me (especially small children).  Lead-free seems necessary - what other features should I look for in solder?  Are the different types of solder roughly the same in terms of safety (breathing the fumes, vapor fallout, etc.)?  Is there more I should do to keep the place clean besides having a filter fan and wiping down the work surface when finished?


10-15 17:12:24.365 1102-1102/com.example.nurkan.iip E/AndroidRuntime: FATAL EXCEPTION: main                                                                         java.lang.NullPointerException                                                                             at com.example.nurkan.iip.Adapter.DAdapter.getItemCount(DAdapter.java:61)   public class DAdapter extends RecyclerView.Adapter<DAdapter.RecyclerViewHolder> {   Activity activity;  private List<Dannye> heroes;  public DAdapter(Activity activity, List<Dannye> heroes) {     this.heroes = heroes;     this.activity = activity; }  @Override public RecyclerViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {     View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.list_dannye, parent, false);     return new RecyclerViewHolder(view); }  @Override public void onBindViewHolder(final RecyclerViewHolder holder, int position) {      final Dannye dannye = heroes.get(position);     holder.bind(dannye);  }  @Override public int getItemCount() {     return heroes.size(); }   public class RecyclerViewHolder extends RecyclerView.ViewHolder {     private TextView hour;     private TextView urok;     private TextView spes;     private TextView aut;       private RecyclerViewHolder(View itemView) {         super(itemView);         hour = (TextView) itemView.findViewById(R.id.TWhour);         urok = (TextView) itemView.findViewById(R.id.TWlesson);         spes = (TextView) itemView.findViewById(R.id.TWspes);         aut = (TextView) itemView.findViewById(R.id.TWaut);     }      public void bind(Dannye heroModel) {         hour.setText(heroModel.hour);         urok.setText(heroModel.lesson);         spes.setText(heroModel.spes);         aut.setText(heroModel.aut);     } }   }  //проблема в   @Override public int getItemCount() {     return heroes.size(); }


Literal ' appears in flag panel instead of being escaped

As you can see, the off-topic page isn't quite right...    Could this (minor) issue be fixed?


Calculating The Vertex Of a Square That Circumscribed Ellipse

Hello everyone how can I find the vertex of a square that circumscribed the ellipse $\frac{x^2}{9}+y^2 =1$? I tried to mark the vertex at $(u,v),(-u,v),(u,-v),(-u,-v)$ and use the equation to calculate the tangent lines to the ellipse by the vertex points, but I don't know how to continue.


I had:   Software:  Dual boot with  Windows XP Ubuntu 10.04 LTS x32   Hardware  Fake RAID 1 (mirroring) with 2x1 TB:    Partition 1 - Windows Partition 2 - SWAP Partition 3 - / (root) Partition 4 - Extended Partition 5 - /home Partition 6 - /data  arek@domek:/var/log/installer$ sudo fdisk -l  Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000de1b9     Device Boot      Start         End      Blocks   Id  System /dev/sda1   *          63   524297339   262148638+   7  HPFS/NTFS/exFAT /dev/sda2       524297340   528506369     2104515   82  Linux swap / Solaris /dev/sda3       528506370   570468149    20980890   83  Linux /dev/sda4       570468150  1953118439   691325145    5  Extended /dev/sda5       570468213   675340469    52436128+  83  Linux /dev/sda6       675340533  1953118439   638888953+  83  Linux  Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000de1b9     Device Boot      Start         End      Blocks   Id  System /dev/sdb1   *          63   524297339   262148638+   7  HPFS/NTFS/exFAT /dev/sdb2       524297340   528506369     2104515   82  Linux swap / Solaris /dev/sdb3       528506370   570468149    20980890   83  Linux /dev/sdb4       570468150  1953118439   691325145    5  Extended /dev/sdb5       570468213   675340469    52436128+  83  Linux /dev/sdb6       675340533  1953118439   638888953+  83  Linux  arek@domek:/var/log/installer$ ls -l /dev/mapper/ total 0 crw------- 1 root root 10, 236 Oct  7 20:17 control lrwxrwxrwx 1 root root       7 Oct  7 20:17 pdc_jhjbcaha -> ../dm-0 lrwxrwxrwx 1 root root       7 Oct  7 20:17 pdc_jhjbcaha1 -> ../dm-1 lrwxrwxrwx 1 root root       7 Oct  7 20:17 pdc_jhjbcaha2 -> ../dm-2 lrwxrwxrwx 1 root root       7 Oct  7 20:17 pdc_jhjbcaha3 -> ../dm-3 lrwxrwxrwx 1 root root       7 Oct  7 20:17 pdc_jhjbcaha4 -> ../dm-4 lrwxrwxrwx 1 root root       7 Oct  7 20:17 pdc_jhjbcaha5 -> ../dm-5 lrwxrwxrwx 1 root root       7 Oct  7 20:17 pdc_jhjbcaha6 -> ../dm-6     I want to upgrade from 10.04 x32 to 12.04 x64 using FRESH installation.


E: Unable to locate Ubuntu-restricted-extras

I have tried re-installing restricted extras but still cannot locate the file. Now, when I run   sudo apt-get install ubuntu-restricted-extras   I am getting this message   E: Unable to locate package ubuntu-restricted-extras   I've tried using sudo killall update-manager the response is "No process found".  I used janitor to clean my machine yesterday, Could this be the issue here as janitor might have cleaned all my packages?


Edit SharedPreference value from other class

I tried to change a SharedPreference that is set up in my MainActivity in my Adapter. So I thought with an instance of the MainActivity I could access and change it from there. When an item is clicked a dialog pops up and then when it is confirmed, the variable shall be stored in the SharedPreference. Unfortunately I get an error in the part where this variable should be edited:     android.content.SharedPreferences$Editor   android.content.SharedPreferences.edit()' on a null object reference   The MainActivity:  public class MainActivity extends AppCompatActivity {      SharedPreferences favE;     int x;      @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);          favE = MainActivity.this.getSharedPreferences("myFavEName",                 Context.MODE_PRIVATE);         x = favE.getInt("favKey", 0);      }      public int getFavE(){         return x;     } }   My Adapter:  public class RecyclerViewAdapter extends RecyclerView.Adapter<RecyclerViewAdapter.ViewHolder> {      Context context;      List<GetDataAdapter> getDataAdapter;      MainActivity ma = new MainActivity();      @Override     public void onBindViewHolder(ViewHolder holder, final int position) {          GetDataAdapter getDataAdapter1 =  getDataAdapter.get(position);          final int a = getDataAdapter1.getId();          int x = ma.getFavE();          holder.cardView.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View v) {                  addDialog(a);                });     }       public void addDialog(final int a) {         Context context = this.context;         LayoutInflater inflater = LayoutInflater.from(this.context);          AlertDialog.Builder builder = new AlertDialog.Builder(context);          builder.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {             public void onClick(DialogInterface dialog, int id) {              }         });          builder.setPositiveButton("Exit Group", new DialogInterface.OnClickListener() {             public void onClick(DialogInterface dialog, int id) {                           ma.favE.edit().putInt("favKey", 0)                         .apply();             }         });         builder.show();     } }


Can I install a dualboot and start the windows boot from linux terminal?

So I've been having fun so far with my new linux installation.  For some programs I need to run for school I need to install a dualboot for windows, but I don't like the grub loader where you need to choose which installation to run.   I just want it to start my linux installation and if I want to go to windows I want to use a terminal command or something from within the linux installation to go to the windows installation.   so is this possible? and if so how?  --------------SOLUTION----------


Schengen visa refused using motif 2 on purpose and conditions of stay

A friend of mine who is an official teacher, applied for a visa to Germany and got refused because of the motif #2 saying:  The purpose and conditions of the intended stay have not been established   The file was full of papers, the original invite from her son in law was in the file, and even a high amount of money in the bank account.  What is extended explanation of this motif and how can she pass it in her next apply.


Inserting values from html form through php to PDO database

I have a PHP script that is suppose to take values from html form and insert them into a PDO database I do have the tables set. It does not give errors or work.  This is the HTML "form" code:  <form action="latestarticles.php" method="POST">     <input type="text" name="title" value="Title"/>     <input type="text" name="author" value="Author name"/>     <textarea name="content"></textarea>     <input type="datetime-local" name="currentdate" />     <select name="category">         <option value="Sports">Sports</option>         <option value="Local news">Local news</option>         <option value="Technology">Technology</option>         <option value="Business">Business</option>     </select>     <input type="reset" name="reset" value="Reset" />     <input type="submit" name="submit" value="submit" /> </form>   This is the php code latestarticles.php:  <?php if (isset($_POST['submit'])) {     $stmt = $pdo->prepare("INSERT INTO articles (articletitle, articleauthor, articlecontent) VALUES ($_POST['title'], $_POST['author'], $_POST['content'])");      $stmt->execute();      echo '<p> Successful insert </p>';  } else {      echo '<p> You suck at programming </p>';  } ?>   Thank you for all the help!


What can deform/bend a stainless steel skillet?

One month ago I bought a set of stainless steel cookware from Cuisinart. Today I noticed that the smallest pan is not flat - the base has bended so that the center is a little lower than the edgees.  That made me wonder what could have caused it? I was quite watchful to wash it only after it cools down a bit (though I'm not sure how my girlfriend was). Can overheating cause that too? Or heating without oil? (my girlfriend uses it to toast toasted bread)


java.net.SocketException: Connection reset using Jsoup

I need to connect  using jsoup library, Am recieving java.net.SocketException: Connection reset exception Here is my code =============================================================================     public static String webServiceCall(String hostUrl, Map<String, String> header, String payload, Method method) {     int retries = 1;     String htmlContent = "";     Response responses = null;     do {         try {             Thread.sleep(1000);         } catch (InterruptedException e) {             LoggerUtil.severe(logger, e.getMessage());         }         try {             Connection conn = Jsoup.connect(hostUrl).header("Accept-Encoding", "gzip, deflate");             if (!(header == null || header.isEmpty())) {                 for (Object key : header.keySet()) {                     conn.header((String) key, header.get(key));                 }             }             if (!Strings.isNullOrEmpty(payload)) {                 conn.requestBody(payload);             }             if (method == null) {                 method = Method.GET;             }             conn.ignoreContentType(true).followRedirects(true).maxBodySize(0).timeout(0)                     .userAgent("Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 "                             + "(KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36")                     .method(method);             responses = conn.execute();         } catch (IOException e) {             LoggerUtil.severe(logger, e.getMessage());         }         retries++;     } while ((responses == null || responses.statusCode() != SUCCESS_HTTP_STATUS) && retries <= TOTAL_RETRY);      if (responses != null && responses.statusCode() == SUCCESS_HTTP_STATUS) {         htmlContent = responses.body();     }     return htmlContent; }


System has many problems after I ran the command chmod -R 755 /

I'm new to ubuntu and I wanted to install MongoDB in my system. For some reason it was not installing properly and I got the solution as I have to change the permission of directories so that I can create /data/db directory.  I ran sudo chmod -R 775 /  and now the whole system is not performing like before. It is not connecting to the router, brightness is not working and many more. Can anyone tell me what had happened and solution to make it proper again?


Why is the number $e$ in Euler identity formula:  $$e^{iπ} = -1$$  I don't get it, why we use as base $e$.


Whenever a field in that particular row contains characters like á à é è ü etc it returns null.  Whenever I execute the query in phpmyadmin it works fine so I am guessing it has something to with mysqli?  $results = mysqli_query($mysqli, "SELECT ea_id, nationid, firstname, lastname, commonname, rating FROM players WHERE commonname LIKE '%test%' OR firstname LIKE '%test%' OR lastname LIKE '%test%'");  $record = mysqli_fetch_assoc($results); print_r($record);


Allow higher scoring unaccepted answers to sort above the accepted answer

There are a number of questions related to the sort order between accepted and unaccepted answers.  Discussion seems to revolve around the "correctness", "ownership", and default behavior of the site.  There is clearly some desire for vote-based sort order.  I couldn't find an option to enable this or a widget on the page that does it already.  The cases that motivate this feature are:   accepted answers that are really a work-around, a later unaccepted answer is a solution the question is time-sensitive in a way that later high-voted answers are more useful   I care less about what the OP accepted at a point in time than I do about those responses that are most useful.  Over time, I'm finding votes are a better indicator of usefulness than answer-acceptance.  Of course, it's not much work to scroll past the accepted answer, comments, and advertisements.  Sometimes I forget and annoyingly waste some time reading something that was not useful.  To be clear, I'm not advocating a change to the default/public behavior.  I'm suggesting a preference setting that enables vote-based sorting of answers.


Is there a cooling off period before a further UK Standard Visitor visa can be requested?

My sister is from India and is currently in the UK on a visitor visa expiring in February. We will be moving homes next year and so far have not found any good childcare at our new location. We need a family member to support us.  Is it possible to re-apply for a UK visitor visa soon after reaching India or is there a cooling period before a visitor visa can be re-applied for?


Can an unconscious PC or NPC reject healing from a potion?

After examining the 5e PHB on healing (pg 197) and perusing through various healing spells, I have found no reference to willingness as a required component for HP to be restored. The context for this question is a PC or NPC who, having been reduced to 0HP, wishes to die rather than be captured alive.  Can an unconscious player character or NPC reject healing from a potion? Please note that I am not referring to any form of resurrection, strictly to healing from potions.   Is there any core rule which states that the healee must 'opt in' to potion effects, or does RAW, by its silence on the matter, indicate that the unconscious PC/NPC in my case could be forced back to consciousness by the potion?


How do I determine the collision normal in an axis aligned bounding box collision?

I have a 3d moving box and a stationary box.  I can detect collisions ok but now I would like to slide the moving box against the stationary box as a collision response.  For this I need the normal of the face that collides with the moving box.  Does anyone know how I figure this out?  It doesn't seem like the collision test gives me this information.  Any help is appreciated.


For all $a$, $m \in\mathbb{Z}$, prove that   For all $x \in [a]$, where $[a]$ is the congruence class of $a \pmod m$,  $\quad\gcd(x,m)=\gcd(a,m)$.  I have no idea where to start for this.


I have two (fully independent) measurements of the same quantity X. Each of them reports a measurement $X_{\sigma_L}^{\sigma_R}$, where $\sigma_L$ and $\sigma_R$ are the left and right uncertainties (asymmetric error bars).  In other words, if we call the measurements $A$ and $B$, and the subscripts $A$ and $B$ stand for the measurements, we have  $A_{\sigma_{L,A}}^{\sigma_{R,A}}$  $B_{\sigma_{L,B}}^{\sigma_{R,B}}$  Now, I need to calculate the difference between those measurements, $\Delta = A-B$. What will be $\sigma_{L,\Delta}$, $\sigma_{R,\Delta}$?  In other words, how do I propagate independent asymmetric error bars?


Does casting a spell with the Concentration Tag prevent you from casting any spell, or just spells that also have the Concentration Tag?

My DM and I were discussing this, and he asked me to search for it/post it here. I looked around, but couldn't really find anything that discussed this issue specifically. The description of Concentration is:  Some spells require you to maintain concentration in order to keep their magic active. If you lose concentration, such a spell ends. If a spell must be maintained with concentration, that fact appears in its duration entry, and the spell specifies how long you can concentrate on it. You can end concentration at any time (no action required). Normal activity, such as moving and attacking, doesn't interfere with concentration. The following factors can break concentration: Casting another spell that requires Concentration. You lose concentration on a spell if you cast another spell that requires concentration. You can concentrate on two spells at once.  The section goes on to outline two more things that can break concentration; Taking Damage, and Dying.  It is this first one that we were discussing.  Lets say that I cast Darkness (Which has the Concentration Tag). On my next term can I cast Shatter (Which does NOT have the Concentration Tag), without ending the Darkness Spell? The wording seems to indicate that you CAN do this, But I've had several other DnD Players tell me that you can't.


Getting errors when updating the source list

Recently I installed Kali and BT5 tools on my Ubuntu 12.04. At that I edited source.list file. When I issue sudo apt-get update it is exiting showing errors occured and they are ignored. What can be the problem for this ? ? I hope following last lines of the output will be informative.   Hit http://in.archive.ubuntu.com precise-backports/universe Translation-en Fetched 515 kB in 38s (13.3 kB/s) W: Failed to fetch http://64.repository.backtrack-linux.org/dists/revolution/Release  Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)  E: Some index files failed to download. They have been ignored, or old ones used instead. shivkesh@Keshav:~$


I would like to get a USB token to secure my keys. My use case is protection of 3 GnuPG keys that I will be using 10 times per day at least. I plan to create a new key ring from scratch. Because ECC seems more future-oriented than RSA, this is what I chose to use. I'm wondering which USB token to choose as well as which curve.  On  it is said that many people think curves recommended by the NIST or defined by Brainpool have a doubtful origin; therefore, they recommend the non-standardized Bernstein’s Curve 25519. On  one poster says that    He is not aware of any profound criticism of Brainpool curves, and Bernstein’s Curve 25519 is hard to protect against side-channel attacks when implemented in embedded devices.   As a result, I'm a bit lost as to which key/curve to choose.


How many total order relations on a set $A$?

Let's define a set $T_A$ which is the set of all total order relations on $A$.  This set is a subset of the set of all $2$-adic relations on $A$: $$T_A \subset \mathcal P(A^2) $$   1-Which is the cardinality of $T_A$?  2-Which is the standard notation for the set $T_A$?


I am searching "db connection pool" support in PHP/MySQL and not able to found any recent document about that. Some people asked this question years ago and the answer was "No". Is there any technique we can do to implemnet "connection pool" in PHP/MySQL?    I only found below information from PHP website.    There seems not much information regarding pooling implementation on the web.


What to do about unjustified "not a good example" votes on Area51?

Someone marked virtually all my recent questions for new proposals on Area51 as "Not a good example" without any comment -- even some which had already been voted as "On-topic" or "Off-topic". Similar questions by other people were not marked as such.   As I recently had a discussion about a proposal, , where those in favour of the proposal ended up being quite offensive, I think I have grounds to believe that this was someone's "retaliation" towards me with no factual reasons for the bad votes.   Right now, I can't do anything on Area51 because of  (which also made me wonder how to attract the attention of admins, because I've even written mails to area51@SE and team@SE) but generally, I'd like to know if there is any policy regarding such events.   I guess the first thing is to comment on the downvoted questions asking for the downvoter's reason, but as s/he left no comment there in the first place, the chance that they are interested in a discussion seems marginal. Also, of course, I cannot comment right now, because of aforementioned bug. Unjustified downvotes are also bad for the proposals in question, I believe, and of course bad for my rep, which is why I don't just want to let it rest right now.  I'm extremely grateful for any answers and help or ideas on this.    Gosh, it happened AGAIN! Thanks to Pekka, I got enough rep to make a statement in the Fisica discussion -- promptly another downvote on something which is clearly not a bad example, and a rep loss which prevents me from posting comments again. Do I have any chance of finding out who did it?! Anonymity yes please, but I'd at least like to know if there is exactly one person responsible ... and if so, have this monkey banned, for they treat SE sites like 4chan or something. Grrr!    Problem solved by flagging this -- thank you, kind moderator.


Does an SSD use less power than a platter/regular drive?

The answer to this question seems obvious to me but I'm asking it in case I've missed something.  I have a laptop with a small SSD drive and a large regular/platter drive. I keep a collection of videos on the large drive. If I'm on battery power then my strategy is to copy the video that I'm watching to the SSD and watch it from there to save battery power instead of streaming it from the platter drive.  Am I really saving power and extending the view time while running on battery? If so, is this power saving significant or is it negligible such that I'm wasting my time doing it?


I have this code,     String mString = edt_i.getText().toString().substring(0,3);  if (mString == "VIP" || mString == "MEM"){     checkif(); } else {     Toast.makeText(MainActivity.this,"Mã "+edt_i.getText().toString()+" không hợp lệ",             Toast.LENGTH_SHORT).show(); }                              After I get substring "VIP" or "MEM", I compare if it is "VIP" or "MEM", if it true, start checkif() method.  Please help me!


Recently I asked about the  pertaining to Voldemorts new face. However I was corrected by ...     Well, I think the confusion comes with mixing movie canon with book canon. In Philosopher's Stone, here's what Harry sees when Quirrell unwraps his turban:           Harry would have screamed, but he couldn’t make a sound. Where there should have been a back to Quirrell’s head, there was a face, the most terrible face Harry had ever seen. It was chalk white with glaring red eyes and slits for nostrils, like a snake.          Philosopher's Stone - page 212 - UK - chapter 17, The Man With Two Faces      So it seems at some point between leaving school, and sticking his face to the back of Quirrel's head possessing Quirrel he got a new face some how.   How did he manage that? Is it some dark magic he applies? Is it from possessing snakes in Albania?


On Macs OS X 10.11.6, the ⌘ + shift + 4 key combination saves a screenshot to the desktop by default. Is there a way to change this destination to a custom directory?


I would like the first word (i.e. Programming) to be hyphenated, but it is not and it is running into the column beside it. I'm thinking that since it is a standalone word, LaTeX is trying to avoid hyphenating it?  \documentclass[11pt]{article} \usepackage{array,tabularx} \begin{document}     \begin{tabularx}{2in}{@{}p{0.3in}@{\hspace{3ex}}X@{}}         Programming &  Python, MATLAB, R, FORTRAN\\     \end{tabularx} \end{document} %  also tried this in place of p column: >{\raggedright\hsize=6ex\arraybackslash}X Also tried removing @{\hspace{3ex}} between columns


How to move apps from internal to external storage?

I'm trying to move with Lucky Patcher (also with app2sd and Samsung stock app) some apps from internal to external storage, but everytime with every apps movable I got this message:  java.lang.IllegalArgumentException: New installs into ASEC containers no longer supported   I have a Samsung Galaxy S7 with Android 8.0 and root.  Do you now why this happens? Maybe, Android 8.0 doesn't allow anymore this?


We have been taught that the universe has a constant amount of energy but if energy can be converted into matter, how is it constant?


Where did the saying "Bite the dust" come from?

Hypothetical example usage:     "Another one bites the dust." He said as he watched another building burn to the ground.   It just means that something is destroyed.  What does biting dust have to do with destruction?  Where did that saying come from?


if force acts on a wheel away from the centre does it have both translatory and rotatory motion?( the wheel is not fixed.)  And  as per my knowledge,if force acts away from the line of axis it produces same acceleration as it produces when it is acting through the centre,so if in the 1st case if it produces rotation (due to torque) from where does the extra energy is getting to it??


I have the Samsung Galaxy S4 Mini, if i use Ubuntu on my phone, will I lose features such as SBeam? and will it be compatible with US Cellular Network?


I would like to show the following identity:     $$\boxed{ I :=  \int_0^1 \dfrac{(\ln(x))^5}{1+x} \mathrm{d}x = -\dfrac{31\pi^6}{252} }$$     Here is what I tried. The change of variables $u=1/x$ yields $$I= \int_1^{\infty} \dfrac{(\ln(x))^5}{1+1/u} \dfrac{1}{u^2} \mathrm{d}u = \int_1^{\infty} \dfrac{(\ln(x))^5}{u^2+u} \mathrm{d}u$$ Then $z=u-1$ gives $$I = \int_{0}^{\infty} \dfrac{(\ln(z+1))^5}{z^2+3z+2} \mathrm{d}z $$ with $z^2+3z+2=(z+1)(z+2)$. I wanted to use contour integration like , but I was not sure how to proceed in this case. Anyway, the computations of the residues (of which "well-chosen" function? Maybe something like ?) seem to be difficult.  I believe that we can generalize to $\frac{(\ln(x))^n}{1+x}$, or maybe even more (e.g. $\frac{(\ln(x))^n}{ax^2+bx+c}$). Related computations are: , , , .  Thank you for your detailed help.


Lie algebra and tangent space at the identity are isomorphic

Define the Lie algebra $\mathfrak{g}$ of a Lie group G to be the set of all left-invariant vector fields of $G$. I want to prove that   $$          f: \mathfrak{g} \rightarrow T_eG \\              X \mapsto X(e) $$ is a linear isomorphism.  The only thing that I have left to prove is surjectivity.Letting $v\in T_eG$, we set $X\in \mathcal{X}(G)$ such that $\forall x\in G,\,X(x)=L_{x_{*,e}}(v)$ (I still have to show that such an $X$ is indeed a vector field on $G$). We get that  $$ f(X)=X(e)=L_{e_{*,e}}(v)=v $$  where the last equality holds because  $$       L_{e_{*,e}}(v)f = v(f \circ L_e) = v(f \circ id_G) = v(f) $$ for any $f\in C^\infty(G)$. (I am thinking of the tangent vectors as derivations).  Now all we have left to do is prove that such an $X$ is left-invariant, and it is therefore an element of $\mathfrak{g}$, but I do not know how. I tried to prove that  $$            \forall f\in C^\infty(G),\, L_{{x}_*,y}(X(y))f=X(L_x(y))f $$ but with no success.


How to improve endurance to increase ride distance?

I have been riding my bike quite frequently since August 2016. I ride a Roadmaster Granite Peak 26'. Initially, I used to ride continuously for probably 7 miles or 8 miles. I used to clock averages of 12 mph (20 km/h) . Recently, I have started putting more effort into my riding and I clock somewhere between 13.5 mph to 14.5 mph (22-23 km/h). Also, I can definitely do longer distances(i.e. 15-16 miles or 22-24 km at a stretch) on my bike now without getting easily tired and a better average speed.   I wanted to increase my endurance more and would like to go on 20 miles-30 miles (32-50 km) stretch continuously with short breaks.   What are some ways I can achieve this goal?    From


Difference between now() and current_timestamp


View filter(s) that are currently being applied to an email message

I created a bunch of filters in Gmail for a "master account" that receives forwarded mail from all of my accounts.  The filter list and web of labels/folders has grown to be rather long, and therefore a bit burdensome to manage. I would like to edit / delete / consolidate a lot of these filter rules (and folders) but it seems the only way I can interface with them is through the laundry list at Setting/Filters. It'd be cool there was an option to "View/Edit Filter" on an individual email's page, but I'm not sure if something like that currently exists.  What's the best way to view a filter rule currently being applied to an email (in Gmail)?


A uniform, flexible chain of length $l$, mass $m$, hangs off a frictionless table-top of height greater than $l$. The length of the part of rope hanging off is $x$. Gravity accelerates the part of the rope that is hanging off, so the length of the hanging part increases, i.e. $x$ is a function of time t. Define $y:=x/l$. The kinetic energy of the system is $$T=\frac{1}{2}m\dot x^2=\frac{1}{2}ml^2\dot y^2,$$ and the potential energy is  $$V=-(my)(g)(\frac{1}{2}x)=-\frac{1}{2}mgly^2.$$ Using Lagrange equation   $$\frac{d}{dt}\left( \frac{\partial L}{\partial \dot y}\right)=\frac{\partial L}{\partial y}$$  with $L=T-V$, we obtain $$l^2\ddot y=gly,$$ and hence $$\ddot x=\frac{g}{l}x.$$ Now assume that friction coefficient between the chain and the table top is $\mu\ne0$. Using above result and $F=ma$, it is very easy to show that the new equation of motion is  $$\ddot x=\frac{g}{l}x-\frac{l-x}{l}\mu g.$$ How can we use only Lagrangian method to find the equation of motion so it accommodates the friction?


Asking because of curiosity. :)  When I type   sudo su   It asks for my user password. And when I type just   su   It asks for the root user password. But both the commands directs me to the root terminal. Then why is there such a difference?


I need to prove the following letting A and B be subsets of a universal set U. $$A\cup B = U \iff A^c\subset B$$ It just isn't straight forward to me.


Delete temp files options for clearing the log files

how to delete the temp file and cache files in ubuntu? where as in windows o/s we have cmd prompt to view the %temp% cmd to delete it? so kindly make the which cmd to use this option


Fresh Ubuntu 20.04 installation won't boot after GRUB and stuck in boot loop

I made USB bootable using Universal USB Installer on another windows 10 PC. Installed using the "Ubuntu (Safe Graphics)" option because the "Ubuntu" option freezes the wizard before installation. Opted for third party software and proprietary drivers. Opted "Required Password for login" Installed successfully  On reboot and selecting "Ubuntu" on GRUB menu, it simply restarts, shows bios logo (dell), and again displays GRUB menu.   I tried to get into recovery mode but it simply reboots after printing "Loading initial ramdisk..."  I also tried following but nothing worked:   Added modprobe.blacklist=nouveau at the end of the line that starts with 'linux' after pressing 'e' at grub menu Added nouveau.modeset=0 at the end of the line that starts with 'linux' after pressing 'e' at grub menu   My BIOS Settings and Specs:   Secure Boot = Disabled Laptop: Dell Inspiron 7567 Memory: 8GB GPU: NVIDIA GTX 1050 Ti 4GB CPU: Intel i7   Any help is appreciated.


Can you show example a group of order $p^2$ besides $Z_{p^2} $ and $Z_p \oplus Z_p$?

I want to find example a group of order $p^2$ (p is prime) besides $Z_{p^2} $ (group of integer under addition modulo $p^2$) , and $Z_p \oplus Z_p$ (external direct product of groups of integer under addition modulo p)


Why Andromeda is approaching the Milky Way in an expanding universe?

We know from Hubble law that the galaxy is receding from each other. Also, the general theory of relativity predicts the metric expansion of space ( voids are increasing). Then why Andromeda is approaching the Milky Way, I think it should be going away? Where I am getting wrong?


Unicode output in Python's stdout when running from cmd.exe

I am running Windows 7 and its console has been configured to use Consolas font, which gives me a possibility of Unicode output. The ability to read Unicode in console has been proved by me many times for programs such as Far Manager: both Cyrillics and German äöü letters can be read on the same console in the same string without encoding switching.  Now about Python.  I am trying very hard, but can't see Unicode in it's output. By default print(sys.stdout.encoding) prints cp866 and stdout is unable to output any characters except ASCII and Cyrillics.  It gives me following results:  print("Ля-ля äöüÄÖÜß")  UnicodeEncodeError: 'charmap' codec can't encode characters in position 6-12: character maps to <undefined>  print("Ля-ля äöüÄÖÜß".encode("utf-8"))  b'\xd0\x9b\xd1\x8f-\xd0\xbb\xd1\x8f \xc3\xa4\xc3\xb6\xc3\xbc\xc3\x84\xc3\x96\xc3\x9c\xc3\x9f'  Ok, I've set the PYTHONIOENCODING environment variable in batch file:  SET PYTHONIOENCODING=UTF-8  and got:  print(sys.stdout.encoding) UTF-8  print("Ля-ля äöüÄÖÜß") ╨Ы╤П-╨╗╤П ├д├╢├╝├Д├Ц├Ь├Я  print("Ля-ля äöüÄÖÜß".encode("utf-8"))` b'\xd0\x9b\xd1\x8f-\xd0\xbb\xd1\x8f \xc3\xa4\xc3\xb6\xc3\xbc\xc3\x84\xc3\x96\xc3\x9c\xc3\x9f'   What to do?


\usepackage{algorithm} \usepackage{algorithmic} \begin{document} \begin{algorithm}[H] \caption{My algo} \begin{algorithmic}[1] \STATE instruction 1 \STATE instruction 2   ......................Many instructions \end{algorithmic}  \end{algorithm} \end{document}   My algorithm occupies an entire page, is that it is possible to divide it on two pages? Thank you so much.


Currently I've used git I have this directory public/images/facility where all facility images are being stored. What I want to do is, I want to push the project on new repo this directory public/images/facility but not the images currently it contains. How can I rule it on my gitignore file? Because this directory contains huge amounts of images, But still I want my repo to recognize this dir public/images/facility


Window's Title Bar Text Desproportionally Big

I recently had many visual bugs due I changed the name of my home folder's username, one of them is a bigger title bar text than usual. I've not found a way to modify this yet sadly, so I came here to ask Ubuntu how.


the subdomains are not working on the hosting that include this htaccess file  this code file ".htaccess":   Options +FollowSymlinks -MultiViews RewriteEngine On RewriteBase /  RewriteCond %{REQUEST_FILENAME} -f  [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule .* - [L]  RewriteRule ^(.*)/cgi-bin/(.*?)/ $2.php?lang=$1 [L,NC,QSA]   I want as follows:  to   Depending on the above file ".htaccess".  Please help me to fix that


how to remove a file from git to never exist at all

so i pushed a ouath key file into my git branch from my local copy. how do i overwrite commits in git to remove the oauth key file?  i tried doing   git rm cache /storage/oauth.key and did a git add, git commit, git push to my branch but the file is still there.  i also tried doing   git revert commitID  but got an error    error: commit 5ac87ad863059396jkljkljlkjce4c64 is a merge but no -m option was given. fatal: revert failed   please advice.


Command to replace all blocks of one type with another

I am building a structure with purpur blocks but I am unhappy because I don't like the look of purpur blocks.   I'm looking for a command that can replace the purpur blocks with dark oak wood planks and the purpur pillar with dark oak wood logs.


Bring back the 'oldest' sort order for answers

Please bring back the oldest sort order for answers, I think we can deal with four different types of sort order.  It's helpful if you don't want to have to tool-tip every post to see which got posted first, so that you can upvote the oldest answer when answers duplicate each other.  Edit:  Also, trying to read newest backwards doesn't work well for questions with multiple pages of answers.


Error: "Session expired or invalid","errorCode":"INVALID_SESSION_ID" When using UserInfo.getSessionId()

Below is my code to retrieve my org's limits. However, access token refreshes every now and then. How can I get my own org's limits programmatically without using HttpRequest to avoid access token?  HttpRequest req = new HttpRequest(); req.setMethod('GET'); req.setEndpoint(Url.getSalesforceBaseUrl().toExternalForm()+'/services/data/v43.0/limits'); req.setHeader('Authorization','Bearer ' + UserInfo.getSessionId());   But, I get the error:     Session expired or invalid","errorCode":"INVALID_SESSION_ID   So I wanted to find another way to retrieve my org's limits.


How can I prove the IFF condition for this group of matrices?

I'm tasked with showing that matrix $A$ commutes with every $2\times2$ matrix if and only if $A = \begin{bmatrix}a & 0\\0 & a\end{bmatrix}$ for some a.  I was able to prove in the first direction, assuming that $A = \begin{bmatrix}a & 0\\0 & a\end{bmatrix}$, by just multiplying the matrix by $\begin{bmatrix}a & b\\c & d\end{bmatrix}$ in AB = BA format, and showing how AB does equal BA.  $$ (=>)$$  $$\begin{bmatrix}a & 0\\0 & a\end{bmatrix}\begin{bmatrix}a & b\\c & d\end{bmatrix} = \begin{bmatrix}a & b\\c & d\end{bmatrix}\begin{bmatrix}a & 0\\0 & a\end{bmatrix}$$  $$\begin{bmatrix}a^2 & ab\\ac & ad\end{bmatrix} = \begin{bmatrix}a^2 & ab\\ac & ad\end{bmatrix}$$  But now I have to prove in the other direction, assuming that A already does commute with every $2\times 2$ matrix, and I'm not particularly sure how I can do that. Somehow, I have to show that if A commutes with $\begin{bmatrix}a & b\\c & d\end{bmatrix}$, then A will be $\begin{bmatrix}a & 0\\0 & a\end{bmatrix}$, and I don't know how I can carry that out.   Where can I start? Ideas are appreciated.


Least upper bound not an element in the cut

In his proof "Any bounded nonempty subset $\mathbb{R}$ has a least upper bound in $\mathbb{R}$", Enderton showed that the least upper bound is just $\bigcup A$. Since by definition $x\subseteq \bigcup A\quad \& \quad x\in A$ . In the case $x=\bigcup A\quad \& \quad x\in A$, $x$ becomes the largest element in $A$, but this cannot be true since the Dedekind Cut is a subset of $\mathbb{Q}$ that must have no largest element. How do you explain that?


Does Ubuntu 14.04 have something like Window's DXDiag?

I need to find out how much video/graphics memory is in my Acer Aspire 3680-2419 laptop so I can try to install a game using Play On Linux. I know it has a Intel Graphics Media Accelerator 950 that's most likely integrated onto the motherboard but I'm not sure. But since I'm fairly new to Ubuntu and Linux in general I'm not sure how to find that info.


First of all, I am new to this website and coding so please forgive my rookie mistakes, second of all my problem is, I intended to make a quiz via eclipse software using java coding (obviously). But everytime i run it, even when i type in the right answer it reacts like i typed in the wrong answer. Could you please point out my mistake?  import java.util.*;  public class Quiz {  public static void main(String[] args) {     // TODO Auto-generated method stub       @SuppressWarnings("resource")     Scanner in = new Scanner(System.in);     System.out.println("Hi! Welcome to the Quiz! Please insert your username.");     String userName = in.nextLine();     System.out.println("Welcome " + userName + "! Let's start! Your first question is what is the capital of Norway?");     String answer = in.nextLine();     if (answer == ("Oslo"))     System.out.println("Good Job! Your next question is how many states are there in U.S.A.?");  else         {     System.out.println("You've failed!"); }     {          @SuppressWarnings("unused")     String answer1 = in.nextLine();     if (answer1 == ("50"))     System.out.println("Well done! Your next question is where did the first football world cup happen?");     else             {         System.out.println("You've failed!");     }     String answer2 = in.nextLine();     if (answer2 == ("Uruguay"))     System.out.println("Well done! Your next question is");     else             {         System.out.println("You've failed!");     }     }     }     }


Are there any tablets that support ubuntu?

I have been using ubuntu on desktops and laptops for years and I am looking at buying my first tablet. I would love to use ubuntu on it and I'm wondering if there are any tablets that I could install ubuntu on from a usb without any dramas. Or is this still a work on progress?


Which is a more correct way of referring to an amount of time that has passed since something happened?

I was watching a show where a character made the statement,  It's been years since I've played that game.  I thought that was odd, since I'd have said something like,  It's been years since I played that game.  Which is more correct?


It seems to be a common thing that a Windows Update creates a Windows.old folder under C:\Windows.old My question is now, can it be deleted with Windows 8 and how can I do that?  If I try to manually delete it in Windows Explorer it does not let me, a permissions issue.


What are the reasons to expect that gravity should be quantized?

What I am interested to see are specific examples/reasons why gravity should be quantized. Something more than "well, everything else is, so why not gravity too". For example, isn't it possible that a quantum field theory on curved space-time would be the way treat QFT and gravity in questions where the effects of neither can be ignored?


Why do strait-laced and straight-laced have the same meaning when strait and straight have different meanings?


for some reason my php short code isn't working after I changed my ini file. I still see the code in the source code of the browser  <? include 'file/path'; ?>   but I changed a few of them to the <?PHP to see what would happen and those work just fine.


Number of normal subgroups of a non abelian group of order $21$... CSIR December $2013$

Question is to :  Find the number of Normal subgroups of a nonabelian group $G$ of order $21$ other than $\{e\}$ and $G$.  What I have done so far is :  As $|G|=21=3\cdot7$  we have :  No. of sylow $3$ subgroups $1+3k$ dividing $7$ leaving out possibilities $1$ or $7$  No. of sylow $7$ subgroups $1+7k$ dividing $3$ leaving out only possibilities $1$.  So, we have a unique sylow $7$ subgroup and so it is normal.  I remember somehow that any normal group should come from a normal sylow subgroup or something like that.  S0, I prefer to conclude there is only one Normal subgroup for a non abelian group of order $21$.  Please let me know if this is true and please help me to fill that gap :      I remember somehow that any normal group should come from a normal sylow subgroup or something like that.   Thank you.


I'm trying to prove that the number of surjective function from a set [k] to [n] is : $$\sum_{i=0}^{n} {n \choose i}(-1)^{i}(n-i)^{k}$$ So I've started to create a set A which contains the number of functions from [k] to [n] and I have $|A|=n^{k}$ and then I have the sets $B_{I}$ which are the sets that contains the functions that missed i elements form [n]. I know now that I have to alternatively subtract and add them all up but I don't know how to make a formal proof that's shows that this is in fact the formula that we were looking for.


Insufficient space message when downloading applications

I am using a Huawei y210d, and when I try to install any app, after downloading I get an insufficient space warning. Can anyone tell me how I can solve this problem?


Comparing values in a dictionary and grouping them again in Python

In python, i have this dictionary :  dict = {'key1':[a,b,c] , 'key2':[1,2,3], 'key3':[a,b,c]}   I need to group the keys with the same value (lists in this case) together in order to get a new dictionary:  res = {'group1':[key1,key3], 'group2':[key2]}   How can i do this in a easy/comprehensive way?


how to give \leftskip and \rightskip in headline?

I need some spaces between left and right side in headline and footline.`       \documentclass[svgnames]{beamer}   \usetheme{Rochester}   %\usetheme{CambridgeUS} \usepackage[british]{babel}    \title{Title1}   \author{Author}   \institute{Institute}   \date{Date}    %\usecolortheme[RGB]{227, 11, 92}{structure} \usecolortheme[RGB={190,49,26}]{structure}  \defbeamertemplate*{footline}{ru theme}{%   \leavevmode%   \hbox{%   \begin{beamercolorbox}[wd=.25\paperwidth,ht=5.25ex,dp=1ex,center]{author in head/foot}%     \usebeamerfont{author in head/foot}\insertshortauthor     \leftskip=0.5cm   \end{beamercolorbox}%   \begin{beamercolorbox}[wd=.25\paperwidth,ht=5.25ex,dp=1ex,center]{author in head/foot}%     \usebeamerfont{author in head/foot}\insertshortdate   \end{beamercolorbox}%   \begin{beamercolorbox}[wd=.416667\paperwidth,ht=5.25ex,dp=1ex,center]{title in head/foot}%     \usebeamerfont{title in head/foot}\insertshorttitle   \end{beamercolorbox}%    \begin{beamercolorbox}[wd=0.083333\paperwidth,ht=5.25ex,dp=1ex,right]{title in head/foot}%     \insertframenumber{} / \inserttotalframenumber\hspace*{2ex}   \end{beamercolorbox}}%   \vskip0pt% }   %HEADER LINE  \defbeamertemplate*{headline}{}{%  % \leavevmode%   %\vspace*{\fill}   \hbox{%   %\vspace{1pt}    \begin{beamercolorbox}[wd=1\paperwidth,ht=10.25ex,dp=1ex,center,rounded=true,shadow=true,color=red]{author in head/foot}%     \hspace*{2em}     \usebeamerfont{author in head/foot}     \vskip1pt   \end{beamercolorbox}}% %\vskip0pt  } \setbeamertemplate{title page}[default][colsep=-4bp,rounded=true,shadow=true,ht=10ex] \setbeamertemplate{navigation symbols}{}   \begin{document}   \begin{frame}[plain]  \titlepage \end{frame}     \section[Outline]{}   \frame{\tableofcontents}    \section{Header1}   \subsection{Header2}   \frame{\frametitle{Topic1}        HTML color codes are the \textbf{hexadecimal triplets} representing the colors red, green, and blue.   \vspace{0.25cm}      These color codes can be used to change the color of the background, text, and tables on a web page.    }      \begin{frame}       testQ     \end{frame}   \end{document}    I need frame like below diagram format, can anyone help me


I'm trying to load into Select2 the selected value extracted from the DB. Id values are saved in a JSON field that contains the id values or the field '*' that I manage as 'All'. I want to search first_name and last_name in the users' table. AJAX <script>     $(document).ready(function() {         $('#plaintiffId').select2({             ajax: {                 url: '{{ route('admin::reports.plaintiffId') }}',                 dataType: 'json',                 delay: 250,                 processResults: function (data) {                     return {                         results:  $.map(data, function (item) {                             return {                                 first_name: item.user.first_name,                                 last_name: item.user.last_name,                             }                         })                     };                 },                 cache: true             }         }); </script>  web.php Route::get('reports/plaintiffId', 'Admin\ReportController@plaintiffId')->name('reports.plaintiffId');  ReportController.php public function plaintiffId(Request $request, $term) {     $data = [];     if($request->has('q')){         $search = $request->q;         $data = $search->when($term, function ($query) use ($term){             return $query->whereHas('plaintiff', function ($query) use ($term) {                 $query->where('first_name', 'like', "%{$term}%");                 $query->orWhere('last_name', 'like', "%{$term}%");             });         });     }     return response()->json($data); }  Report.php public function scopeSearch($query, $term) {     return $query->when($term, function ($query) use ($term){         return $query->whereHas('plaintiff', function ($query) use ($term) {             $query->where('first_name', 'like', "%{$term}%");             $query->orWhere('last_name', 'like', "%{$term}%");         });     }); }  public function plaintiff() {     return $this->belongsTo(User::class, 'plaintiffId'); }  I get this error in the network  When I double-clicked on 500 in the network tab. It open a new tab, I see this error Call to a member function when() on string


SQL Server 2012 AlwaysOn: need to automatically add databases by script- T-sql or PowerShell

I've installed and successfully configured our SQL Server 2012 AlwaysOn 2-node servers for our new "Intranet" that is coming out. I've gotten AlwaysOn working great, and our Front End servers for the Intranet will be using SharePoint 2013. The glitch is that SharePoint 2013 is configured to add databases automatically to our SQL Server 2012 back end, but NOT to AlwaysOn. In reading about this and in contacting Microsoft MSDN support, the default answer is "you must manually find, select, back-up and then add those new databases individually to get them into AlwaysOn."   But wait; that can be quite a task, constantly checking the SQL Server back-end servers to see what databases were created, then having to add them into AlwaysOn, 7/24!   I'm looking for a script or process that will check for new databases, back those new databases up in FULL mode, (for being added to AlwaysOn, of course) then add those databases to AlwaysOn, all automatically. Or have this run every...1-2 hours? (without user intervention)  What I've come up with so far is this script that actually identifies the newly-added databases, (not yet in AlwaysOn), and then backs them up to a shared location. My next task is to find those newly-added databases and through the various processes needed, get them added to AlwaysOn. This will involve some sort of looping action, I imagine. I'm not a T-SQL/scripting guru; is there any solution or script that I might access that would do this? (add databases to AlwaysOn automatically)?   Please advise, I'm sure I'm not the first person to have this issue. I have seen previous posts on various Internet Sites (including this one!) , and the solution is either incorrect, or states something like "sure, go ahead and just script that!". Thanks, but I need just a little more detail there.  Thanks again,   -Allen  DECLARE @name VARCHAR(50) -- database name   DECLARE @path VARCHAR(256) -- path for backup files   DECLARE @fileName VARCHAR(256) -- filename for backup    -- specify database backup directory SET @path = '\\atel-web-be2\backups\'    DECLARE db_cursor CURSOR FOR   select name from sys.databases where group_database_id is null and replica_id is null      and name not in('master','model','msdb','tempdb')  OPEN db_cursor    FETCH NEXT FROM db_cursor INTO @name    WHILE @@FETCH_STATUS = 0    BEGIN        SET @fileName = @path + @name + '.BAK'       BACKUP DATABASE @name TO DISK = @fileName        FETCH NEXT FROM db_cursor INTO @name    END   CLOSE db_cursor    DEALLOCATE db_cursor


how to achieve abstract class functionality in ruby

There is a provision in Java to achieve abstract class. Then how do I achieve in Ruby?  Abstract Class  /* File name : Employee.java */ public abstract class Employee {    private String name;    private String address;    private int number;    public Employee(String name, String address, int number) {       System.out.println("Constructing an Employee");       this.name = name;       this.address = address;       this.number = number;    }    public double computePay() {      System.out.println("Inside Employee computePay");      return 0.0;    }    public void mailCheck() {       System.out.println("Mailing a check to " + this.name        + " " + this.address);    }    public String toString() {       return name + " " + address + " " + number;    }    public String getName() {       return name;    }    public String getAddress() {       return address;    }    public void setAddress(String newAddress) {       address = newAddress;    }    public int getNumber() {      return number;    } }   Extending Abstract Class:  /* File name : Salary.java */ public class Salary extends Employee {    private double salary; //Annual salary    public Salary(String name, String address, int number, double       salary) {        super(name, address, number);        setSalary(salary);    }    public void mailCheck() {        System.out.println("Within mailCheck of Salary class ");        System.out.println("Mailing check to " + getName()        + " with salary " + salary);    }    public double getSalary() {        return salary;    }    public void setSalary(double newSalary) {        if(newSalary >= 0.0) {           salary = newSalary;        }    }    public double computePay() {       System.out.println("Computing salary pay for " + getName());       return salary/52;    } }


I am trying to run click event on nested appended elements.           $(document).ready(function () {         var year;         var month;         var day;           $(".table-list").one("click", function (e) {             year = $(this).data("year")             var this_li = $(this)             $.get( "get_months/"+year, function( data ) {               $.each(data, function (key, val) {                   $(this_li).append('

'+val["_id"]+'-'+year+'

')               });             });         });          $(".table-list").delegate(".month-list", "click", function(){             if($(this).data("clicked"))             {                 return false;             }             month = $(this).data("month")             var this_li = $(this)             $.get( "get_days/"+year+"/"+month, function( data ) {              $.each(data, function (key, val) {                   $(this_li).append('

'+val["_id"]+'-'+month+'-'+year+'

')               });              });             $(this).data("clicked", true);           });          $(document).on("click", ".source_list" , function() {         alert("bla")          });      });      But click event on "source_list" not working. How can I access this element with jquery? I also tried delegate but it doesn't work too.


Deskop entry which starts .sh script, closing terminal

I created the following Desktop Entry:  [Desktop Entry] Type=Application Terminal=true Name=<name> Exec=<pathTOscript/myScript.sh>   myscript.sh is just one command to start a service. The service starts the programm itself (CNTLM) and another script (own state).  sudo /etc/init.d/cntlm <ownstate>   Now my problem:  When I type the above command into a terminal: CNTLM stops, the script is executed, CNTLM starts, everything works fine.  However, when I click the shortcut, the terminal closes before CNTLM starts again.  Changing my .desktop to this solved the problem: Found it in .  [Desktop Entry] Type=Application Terminal=true Name=<name> Exec=gnome-terminal -e "bash -c 'sudo /etc/init.d/cntlm   <ownstate>;$SHELL'"   The important here was "$SHELL".


Application does not see system time zone changes until restarted

I feel this is a pretty simple question and somebody must have had this problem before.  Either I can't come up with the correct search key words or nobody really has had this problem.  My problem is when I go into the windows system time and change the time zone, the system tray time updates accordingly, but my running application appears to be completely oblivious of this fact.  None of the .NET objects I've tried seem to reflect the fact that the system timezone has been changed.  I've checked the following objects, before and after, to see if they change and they do not:  DateTime.Now; DateTime.Now.Offset; TimeZone.CurrentTimeZone.StandardName;   This is a pretty fringe case for me that the time zone would change in the same power cycle of the application, but nevertheless, I have to resolve it.  Is there a way to tell the .NET framework to "refresh your time zone" or something?


First of all I apologize for my english, but I'm stuck and I don't know much of linux.  When I try to install Dropbox in my ubuntu it get stuck and I try to close it, but know I have a serching (applying changes) on the progress tab in ubuntu software center. Since I was trying to solve this I first use the comand sudo apt-get update and I get this:  [sudo] password for mel:  E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/lib/apt/lists/ E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?   then I use this comands that I found in other fourum sudo killall -9 dpkg and update again, it works but at the end I get this:  E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.    when I run sudo dpkg --configure -a I get this  Setting up nautilus-dropbox (0.7.1-2) ...  Dropbox is the easiest way to share and store your files online. Want to learn more? Head to http://www.dropbox.com/  Downloading Dropbox... 100%   And it get stuck again, please help


I cannot access ubuntu console by pressing CTRL+ALT+F1 - F6. It only shows blank screen (black). I don't know since when, just found out recently. I suspect that fglrx driver is the problem (ATI Radeon).  I haven't tried to remove the fglrx driver (because I don't know how and I need it for graphic acceleration).  Any ide how to fix this?


UPDATED: Deserialise Nested JSON with JSON Utility Unity 5.4

I am trying to deserialise a JSON with Unity 5.4's JSON utility ().   This is what my JSON looks like: {"series":[{,"points":[{"ts":"1473850836254","value":"11.27"},{"ts":"1473851256637","value":"6.44"}]}]}  I am trying to access the values in "points" by calling something like: data.series.points[0].ts  Void Start(){ IncomingData data = IncomingData.CreateFromJSON(jsonResponse.text); // **error 1** print("Series point length" + data.series.points.Count); print("Series point 0" + data.series.points[0].ts); // **error 2** }   //----------------------------------------- classes -------------------------  [System.Serializable] public class IncomingData {     public Series series;     public static IncomingData CreateFromJSON(string json)     {            return JsonUtility.FromJson<IncomingData>(json);      } }  [System.Serializable] public class Series {     public List<Points> points = new List<Points> { }; }   [System.Serializable] public class Points {     public int ts;     public int value; }   Errors  1. keystr == NULL UnityEngine.JsonUtility:FromJson(String)  1. Unexpected node type. UnityEngine.JsonUtility:FromJson(String)  2. ArgumentOutOfRangeException: Argument is out of range. Parameter name: index  I think it has something to do with how I embed the classes within each other - I am not really good at OOP ...


How can I change displayed name as sender?

I send email from my server like this:  echo "This is the body of the email" | mail -s "This is the subject line" user@example.com   Noted that I replace user@example.com with a real email address. And it works. Just I need to know, where this nickname comes from?    I use ubuntu 14.04 on the server and I want to know how can I change that name?


Does Lightning Lure trigger Polearm Master's opportunity attack?

I know there is language about opportunity attacks that says:     You also don’t provoke an opportunity attack when you teleport or when someone or something moves you without using your movement, action, or reaction. For example, you don’t provoke an opportunity attack if an explosion hurls you out of a foe’s reach or if gravity causes you to fall past an enemy.   But Polearm Master seems to change that a bit:     While you are wielding a glaive, Halberd, pike, or quarterstaff, other creatures provoke an opportunity attack when they enter your reach   If I pulled someone to me, who is 15 feet away, do I get a Polearm attack as they enter my reach? Then they are 5 feet from me and take the lighting lure damage?


Tense usage in relation to date of birth of deceased individuals

Let's say Bob passed away. Would we say, "Bob's birthdate was xxx" or "Bob's birthdate is xxx"? Birthdates don't change, which makes me inclined to use 'is', but sounds a little weird if the person is deceased.


Avengers Movie - Loki and Thor Immortality Test

in the , Loki manages to trap Thor in a huge glass capsule and jettisons him out of a moving cargo ship.   Why is that supposed to "test" Thor's immortality?   How is this act different from throwing Thor (if one can) out of a moving plane?   - from avengers movie


When the phone rang, the grey-haired man asked the girl, with quite some defference, if she would rather for any reason he didn't answer it.   I would like to ask why there is not used a verb in the phrase "if she would rather"? Is this standard usage? Can I rewrite it in this way: if it would be better/rather for her for any reason…?


How do you configure email notifications in Cognito Forms?

It says that Cognito Forms can send email notifications when a form is submitted. Where would I find those email notification settings?   I would like for my website clients to be the recipients of those email notifications. Do they have to have an account or a verified email address?   Also, is the form data included in the email notification? Also, is there an advantage to using the WordPress Plugin vs the regular embed code?


FIlter for Canon L 2.8 IS 100mm macro lens?

I finally bought myself an L lens - it gets here tomorrow. I usually buy the cheapo UV filters, but I'm wondering if in this case - more expensive is "better?"  I'm by no means a professional - I just shoot what I like and toss more than I keep. Would love to get into insect macros - but this will be for bearded dragon pics, and interesting patterns found in food (yes - patterns found in food.)  Any recommendations for an appropriate filter?  Hrm - this would have been an awesome to confirm that my 7D would work with that lens.


Is there an in universe explanation why a replicator cannot create living organisms?

In the Star Trek Universe the replicator is able to build nearly anything from clothing to a hot meal seemingly out of thin air. Creating artificial life using it and replicating a living being have been taboo subjects.  It appears that perhaps, this was an ethical line that the writers did not, or could not cross. Was there ever an in universe explanation why replicating life wasn't possible?


What causes a particular object to have a tendency to go outwards in circular motion when the centripetal force is inwards to the center

Like a circular bead with a thread passing through it and the system being rotated . It can't be centrifugal force as it is pseudo only and has no existence when we are already in an inertial frame like an stationary person outside the assembly. Help in clearing the doubt taking all cases in account :- Uniform and Non Uniform motion, presence and absence of friction between the thread and bead.


What is different between look, see and watch

I have confusion about following words because it's Gujarati meaning for all are same. What is actual difference between following words   Look, See, Watch   If possible then explain with example.


When I mentioned to friends I had recently been to Benalmadena in Spain, I was corrected on its pronunciation. I had chosen to pronounce it in an English way rather than in a Spanish pronunciation. After all, I wouldn't say Paris how a Frenchman would say it.  If I use the native pronunciation of a foreign city I might look pretentious. If on the other hand I use the English pronunciation, I might then get corrected with the alternative.  Which is the correct convention please?  Many thanks.


I have been looking around bikes for a while tried about 10 bikes already and rode about 10 miles on each of them and I think I have come to a conclusion about which one to buy (or did I?) But the question is when is the best time to buy a new bike. I assumed that Winter is the best time because most of the people are not riding and companies are trying to sell the old stock off to restock.   So I had made up my mind to buy a certain bike but then heard from the LSB fall is the best time because this is the last price they would reduce on their bikes. So are they right?  Should I get my bike now or should I wait till winter to see the prices going down further? I live in Chicago  Any comments and suggestions are appreciated   Thanks in advance


I recently bought a lumia 521 and was wondering if it would be able to run ubuntu touch. I did not see this question anywhere else, but please tell me if it is.


how to get all decimal number from string in c++

I'm trying to get value (all decimal number) from a text in c++. But I have a problem and I couldn't solve it  #include "pch.h" #include <iostream> #include <fstream> #include <sstream> #include <string>  int main() {     std::ifstream infile("C:\\thefile.txt");     float a, b;     while (infile >> a >> b)     {         // process pair (a,b)     }      std::cout << a << " " << b;  }   thefile.txt:  34.123456789 77.987654321   When I run the above code,   a = 34.1235  b = 77.9877   but I want   a = 34.123456789  b = 77.987654321   what should I do?  EDIT: I don't want to print out of a and b. I just want they get the exact values.net


I know that there are already similar questions to this on stack exchange, but I am working in R studio with the Stargazer library and I want to be able to directly copy and paste my tables into overleaf and have them be centered (the problem is that they are often too big and fall off the edge of the page). Is there some easy way to center these tables without having to recode the tables in any way? A lot of other responses I have seen are hard for me to follow because I am trying not to have to recode the tables. The whole perk of using Stargazer is that it makes the tables for you... :/ Below is an example table (obviously fake results): \begin{table}[!htbp] \centering    \caption{}    \label{}  \begin{tabular}{@{\extracolsep{5pt}}lccccccc}  \\[-1.8ex]\hline  \hline \\[-1.8ex]  Statistic & \multicolumn{1}{c}{N} & \multicolumn{1}{c}{Mean} & \multicolumn{1}{c}{St. Dev.} & \multicolumn{1}{c}{Min} & \multicolumn{1}{c}{Pctl(25)} & \multicolumn{1}{c}{Pctl(75)} & \multicolumn{1}{c}{Max} \\  \hline \\[-1.8ex]  Marriage & 10000 & 100000 & 10000 & 10000 & 1000 & 10000 & 1000000 \\  Real Income & 10000 & 100000 & 10000 & 10000 & 1000 & 10000 & 1000000 \\ Unemployment & 10000 & 100000 & 10000 & 10000 & 1000 & 10000 & 1000000 \\ \hline \\[-1.8ex]  \end{tabular}  \end{table}   EDIT: I am not sure why the table is not showing up correctly here, but it will in overleaf.


Using an Egypt driver's license in California with a J-1 visa

I have a driver license issued in my country (Egypt), can I use it in California? I'm staying with a J-1 visa. My name is written in English but the expiration date is in Arabic numerals.