What's the typical microclimate in the aircraft passenger cabin?

When preparing for a commercial jet flight it'd be nice to know how warm my clothes should be so that I don't freeze after sitting for several hours in say +16 degrees Celsius (61 degrees Fahrenheit).  What's the typical temperature in the passenger cabin? Are there air drafts? How cold and how warm can it reasonably get?


What are the relations between supervenience, grounding and emergence in philosophy of science?

So, I am wondering if anyone could help me with the notions of grounding (supervenience?) and  emergence in the modern discussions in philosophy of science. What are they and what is the relation between them? Any papers or simply thoughts?


I am making a pie chart in Tikz. This is what it looks like so far:    The code is shown below:  \begin{tikzpicture}     \pie{ 2/Demonstration of Conservatism,6/Gross Premium Valuation (GPV),  1/Loss Ratio,86/Cash Flow Testing (CFT),1/Risk Theory Techniques, 4/Other} \end{tikzpicture}   The picture looks ok, but I feel like the labels are pretty cramped and it looks a bit ugly. Is there a better way to put the labels so they are more spaced out?


Can Kakashi still use Susanoo after losing his Sharingan?

When Kakashi had double Sharingan, he was able to use Susanoo. However, he lost the Sharingan.  Can he still use Susanoo without Sharingan now?


Limits involving factorials $\lim_{N\to\infty} \frac{N!}{(N-k)!N^{k}}$

I am trying to calculate the following limit  $$\lim_{N\to\infty} \frac{N!}{(N-k)!N^{k}}$$ where $k$ can be any number between $0$ and $N$.  I thought of the following:  If I take the logarithm of the expression then I get:  $$\lim_{N\to\infty} \left(\log(N!)-\log((N-k)!)-k\log N\right)$$    Using the Stirling formula this can be approximated as:  $$\lim_{N\to\infty} \left(N\log(N)-(N-k)\log(N-k)-k\log N\right)$$  Now there are two cases: If $k$ is $N$, then the second term vanishes and the remaining terms cancel. If $k$ is smaller than $N$, then I can drop the $k$ inside the second logarithm and all the terms cancel. So the limit $$\lim_{N\to\infty} \log\left(\frac{N!}{(N-k)!N^{k}}\right)=0$$ Which means that: $$\lim_{N\to\infty} \frac{N!}{(N-k)!N^{k}}=1$$ I don't know if this is mathematically rigorous. Would like some help. Thanks


Isomorphism between the ring $R$ and the quotient ring $R/\langle a\rangle$

Let $R$ be a commutative ring with a unit element and $a$ be an element of $R$. If $R$ is isomorphic to the quotient ring $R/\langle a\rangle$, then can we conclude that $\langle a\rangle=0\,$?  If not, then what we can say about $\langle a\rangle$?


How do people shoot very large moon views?

I see pictures of the moon that looks like it is very close to the earth; I am wondering whether they are real or is there a trick to show the moon that big?  Here is an example:


Biber/BibLaTaX problem: no such file or directory in cache

I am having a problem using biber/biblatex, that I just can't seem to solve. The first problem was Biber complaining about finding the wrong version of biblatex control file (2.6 instead of 2.5), which I tried to fix by installing the latest biber (1.9) .  Now however, the following error occurs:       read_file 'C:\Users\username\AppData\Local\Temp\par-7363686d6964746b\cache-c38a9b05b97a81d339b4947ba00f0aacefe00497\inc\lib/Biber/LaTeX/recode_data.xml'     - sysopen: No such file or directory at  C:\Users\usermane\AppData\Local\Temp\par-7363686d6964746b\cache-c38a9b05b97a81d339b4947ba00f0aacefe00497\inc\lib/Biber/LaTeX/Recode.pm line 112.  INFO - This is Biber 1.9 INFO - Logfile is 'test.blg'   What to do?? Is it the same problem as ??


Please help me to find out which word works better in my sentences from among "mark, grade, score and point"

What is the most natural sentence from among the listed sentences bellow:  Note: all the sentences are self-made.  Example one) Suppose a student says:        I got a very low mark in the midterm test.   I got a very low grade in the midterm test.   I got a very low score in the midterm test.   I got a very low point in the midterm test.       For me only the first one sounds natural.   Example two)  here suppose a teacher is talking to their students:        I want to read out the test marks to you.   I want to read out the test grades to you.   I want to read out the test scores to you.   I want to read out the test points to you.       For me in this specific sentence, all words work the same and convey the same message.


I would like to use nomencl. I have the following code:  \usepackage{nomencl} \makenomenclature \nomenlature{test}{This is a test} \printnomenclature \makeindex My_file.nlo -s nomencl.ist -o My_file.nls"   I receive the following error:     No file My_file.nls.   All my files are in the same folder and I can see the nlo file.  I am using TeXworks (pdfLaTeX+MakeIndex+BibTeX) and Windows Vista.


I have video with multiple audio streams. eg: isolatedApp, combinedAppAndVoice I want to remove the voice component, and retain the application audio only, in a specific time segment. Assume I need to use ffmpeg. ie: combinedAppAndVoice -ss 00:00:00 -to 00:00:10  isolatedApp         -ss 00:00:10 -to 00:00:20 combinedAppAndVoice -ss 00:00:20 -to 00:00:30   Do I need to chop the media up with specific streams and concatenate the relevant parts? Or can I use a filter/other magic to do it in a single operation? [edit] llogan's reference is correct, I also figured it out last night, so this edit is to add an answer/clarification for this particular case. -filter_complex \ "[0:a:1]atrim=start=0.000:end=10.000,asetpts=PTS-STARTPTS[a0]\ ;[0:a:0]atrim=start=10.000:end=20.000,asetpts=PTS-STARTPTS[a1]\ ;[0:a:1]atrim=start=20.000:end=30.000,asetpts=PTS-STARTPTS[a2]\ ;[a0][a1][a2]concat=n=3:v=0:a=1[switchedAudio]" \ -map 0:v:0 \ -map [switchedAudio] \ etc


Ive an iPhone 5(GSM) Running on ios 7.0.3 i cant restore the itunes says that the IPSW is not compatible?

I've an iPhone 5(GSM) running on ios 7.0.3. I can't restore. iTunes says that the IPSW is not compatible?


How do you remove the blue outline/border around everything on windows 10

As you can see above, there is a blue border/focus/highlight or whatever you want to call it around the application. It also effects things like textboxes, buttons, and overall the border goes around everything.  I'd like to remove that blue border, regardless of what color it is.  Please don't say to turn off narrator, because that's not the issue I'm talking about. It's the color around the application.  Edit: I'm not trying to change the color. Im trying to make it borderless. Like transparent.


Proof that the largest eigenvalue of a stochastic matrix is $1$

The largest eigenvalue of a  (i.e. a matrix whose entries are positive and whose rows add up to $1$) is $1$.  Wikipedia marks this as a special case of the , but I wonder if there is a simpler (more direct) way to demonstrate this result.


What is meant by pixels and DPI for photo submissions?

I am submitting a photo for an exhibit.  They require a jpeg to be evaluated and then a print, if accepted.  The rules indicate "Entries must be in JPEG format sized at 300 dpi on a CD (4” width of image 1,200 pixels at 300 dpi is the largest dimension please)." The final submission will be a maximum of 36" x 36".  I don't see any of this in the photo's properties.  What exactly are they looking for?


$k[x,y]/(xy-1)$ isomorphic to $k[x,\frac{1}{x}]$

I mean clearly one uses the isomorphism $\phi$ that sends to $x$ to $x$ and $y$ to $\frac{1}{x}$. And also clearly is $(xy-1)\subseteq\ker(\phi)$. I just struggle to prove the other inclusion.  Can you guys maybe help me?


I am a Pakistani National currently residing in Hungary with a Hungarian residence permit that allows me to travel visa-free throughout the Schengen zone. I also know that i can travel to south Cyprus using that residence card. Will I be able to cross into northern Cyprus or do I need a separate visa for that?


I am trying to Install Ubuntu on my HP ProBook which runs off of Windows Enterprise (64 bit). I am diligently trying to follow the directions, but some of the steps are greek to me. I installed Rufus and I even installed Universal USB installer on a 2 GB flash drive. I am attempting initially to have a dual boot option, but will most likely move forward with using Ubuntu permanently. Can someone please help? Thank you.


Why are the Daleks considered a threatening enemy?

How is it the Daleks are even considered a threat? They aren't really very powerful and are rather slow and bulky. As war machines they are extremely ineffective when logically thought about. Can someone please explain this to me?


I recently came across a quite interesting problem:  "One hundred passengers are lined up to board a full flight. The first passenger lost his boarding pass and decides to choose a seat randomly. Each subsequent passenger (responsible enough to not lose their boarding pass) will sit in his or her assigned seat if it is free and, otherwise, randomly choose a seat from those remaining. What is the probability that the last passenger will get to sit in his assigned seat?"  I figured out that the probability would be 0.5. If you would like to know why I would link you to another topic on this site where this problem was discussed.    However, I kept thinking about what the probability would be if there were multiple people who lost their boarding pass. So for example, the first 5 people out of the 100 passengers lost their boarding pass so they take a random seat. Every person that boards the plane after him will either take their "proper" seat, or if that seat is taken, a random seat instead. Then what is the probability that the last passenger will get to sit in his assigned seat? I have trouble figuring it out and I hope that some of you could help me.  Thanks in advance!


How to save record(create new event) in sharepoint calendar list using javascript?

i want to save data into sharepoint calendar list using javascript?i tried some thing but that is unable to save data into list


Opening the post editor in a new tab does not pass a review audit

While reviewing late answers, I attempted to edit a poor answer by opening the editor in a new tab, and was faced with a notification that the post had been deleted.   If the post was deleted, the correct action is pretty clearly to do nothing, yet when I selected "No action needed" this message was returned:    Note that I did attempt to edit the post as suggested by this message, but was blocked from doing so while given no credit for trying.  Additionally, there is rogue semicolon at the end of this error message...


Why are we limited to six questions per day?

Why is this limit there? (Jeff just says  that he won't increase the limit.)  Some users have cases where they need to ask a few separate questions. And also if they are related, I thought that it is a good policy to try to post separate questions separately as much as possible (e.g. as discussed ).  So I asked these questions:      (10k only)  (10k only)     And I have some more (mostly unrelated) questions to ask.  I think it is quite common to have many questions when you enter a new area (in my case Windows+MSVC).  A related discussion is on the . Most people are saying there that too many questions are not a problem.  Another related discussion (evolved from the answers here) is .  In any case, I think all of my questions are of value to the community and I would like to put some more questions on SO. And I don't really see why that is bad for SO.  Maybe the limit should be dependent on reputation? Or completely absent at some reputation limit?


Let $G$ be a group. When is there a group $H$ such that $G$ is isomorphic to its derived subgroup $H'$?  I only know that there is not always such a $H$; for instance, no group has its derived subgroup isomorphic to $\mathfrak{S}_n$ for $n \geq 4$ and $n \neq 6$.


Should I set the title attribute for content DIV's to explain what they contain?

I have a number of DIV's that break up a page into logical elements for styles and positioning, etc.  As part of optimizing my site for search engine spiders, should I include a title attribute within these DIV's?  (Yes I have a title as part of the whole page, I'm curious on individual structual elements)  Ex  ... <div id="SearchOptions" title="Search filters and options - Type in a name or pick a business and Click 'Search' to get started" >   .... </div> ...


Why do you "get in a car" but "get on a train"

I was trying to work out why get in car but on most other transportation systems.  Get in a car, helicopter  Get on a train, plane, boat (although in feels like it works ok here)  Is it the size of vehicle? The function (private/public transport), or something else? How would you know whether to use in or on for an unknown vehicle?


(or Gabriel's horn) is an example of a solid figure with infinite surface area and finite volume.  Is it possible to build the opposite (finite surface area but infinite volume) in an n-dimensional space? If not, how do we prove it?  More formally:   Let $S$ be an open subset of $\bf{ℝ^n}$ that is homeomorphic to $\bf{ℝ^n}$  and $S$ has infinite volume. If $T\cap \overline S\setminus S$  has a definable finite surface for every closed bounded $T\subset \Bbb R^n$, is it possible for $S$  to have finite area?


What happens if a moderator determines you were the previous owner of a suspended account?

I was reading the answer to , but I'm confused about a part of it.      Will deleting my account clear any restrictions placed on my account?      Unfortunately, deleting your account while you are suspended by a   moderator or rate-limited or banned by the automated quality filter   will not remove any restrictions placed on your account. They will   simply be re-applied to any new accounts you create.   Note the bolded sentence at the end.   Suppose if I owned an account that was . I delete my account, and everything I earned under that account is lost.    Suppose I create a new e-mail account, and use it to apply for another account on Stack Exchange (for this example, let's assume under the same display name), if a moderator determines that the owner was in fact the owner of an account that was suspended and deleted, can they apply the same suspension to the new account? Or is it new e-mail = new user/account?   You would have to safely determine that the new user is really the previous user, because the display name could be a common name or a popular character in pop culture, and it could just be a coincidence, that you favor the same tags/topics.   I've been referred to  post, but it doesn't answer my question fully. When you have a new e-mail account, and use it to start a fresh Stack Exchange account, can any previous suspension or penalties be transferred?  As the quoted answer states, if you create another account, it won't remove the previous suspension, but it doesn't differentiate between the same e-mail or a new e-mail address for the new account. How does the Stack Exchange rules and system handle this type of situation?  I don't just mean editing your profile with the new e-mail, I mean hitting signup and filling out the fields only with your new e-mail address, so on the surface, to Stack Exchange, you are a new user.


How can I quickly return back to the last working directory?

All too often I find myself cycling between two directories to perform different tasks. The directories don't always have an easy-to-use relative path between them. As a result it is quite cumbersome to have to specify a directory path that is essentially the previous working directory.  Is there a command by which I can easily return back to the previous working directory?


Natural almost complex structure on a complex manifold

I've been studying Kobayashi & Nomizu - Foundations of Differential Geometry (vol. 2) and I have trouble following a certain implication. In Proposition 2.2, we proved that $f: \mathbb{C}^n \longrightarrow \mathbb{C}^m $ preservers the almost complex structures $J$ (i.e. $ J \circ f_* = f_* \circ J$) iff $f$ is holomorphic. This in turn implies that a complex manifold has an induced almost complex structure and that this almost complex structure is independent of the choice of charts. I'd appreciate if someone could give me an explanation of this implication.


Is it possible to create a statement in python?

Can I create a statement in python 2.7?  Something similar to the print statement, that it's like a function, but gets the parameters without parenthesis.


How can I align these items to the bottom of my css grid?

section {     display: grid;     grid-template-columns: repeat(2, 1fr);     grid-gap: 50px;  }  article {      border: 1px solid black; }  a {   background-color: yellow;   padding: 5px;   text-decoration: none;  }

Test

Loreemememmeme
             Order now

Test

Loreemememmeme
 Lorem
 LROKJDLSJKFDj
             Order now

Test

Loreemememmeme
 Lorem

             Order now

Test

Loreemememmeme
             Order now

    How can I make all the  to stick to the bottom of the grid? Please keep in mind that the
 has a display:grid; set and not on the
. I tried playing around with justify-items and align-items but it doesn't work as the parent tag of the  is the
 one (and the
 one is defined as the grid.


I want to see System Messages in Diff language

I tried searching a lot for internationalization of custom messages but made me more and more confused.  What I need is just one small thing.  Currently when I write following lines,  int i = 5; int j = 10 / (i - i);   it gives me exception in English. Even by throwing DivideByZero Exception in English like "Attempted Divide By Zero".  I just want this message in some other language i.e hi-IN culture.  I do have Hindi language installed in my OS as well. I tried changing Culture, UICulture everything. None are working.  Does anyone has any idea?


I am creating a website for a uni assignment.. I have a remember me button and all that good stuff but Someone looked over my code and said that SQL injection could take place..  what would be the best course of action?  I just need guidance:  <?php      include 'functions.php';      if (loggedin())     {         header("Location: index.php");         exit();     }      if (isset($_POST['login']))     {         $username = $_POST['username'];          $password = $_POST['password'];          if (isset($_POST['rememberme']))         {             $rememberme = $_POST['rememberme'];         }          if ($username && $password)         {             $login = mysql_query("SELECT * FROM users WHERE username='$username'");              while($row = mysql_fetch_assoc($login))             {                 $db_password = $row['password'];                  if($password == $db_password)                 {                     $loginok = TRUE;                 }                 else                 {                     $loginok = FALSE;                 }                  if ($loginok == TRUE)                 {                        if($rememberme == "on")                     {                         setcookie("username", $username, time() + 7200);                     }                     else                     {                         if ($rememberme == "")                         {                             $_SESSION['username'] = $username;                         }                     }                      header("Location: index.php");                      exit();                 }


Can't add comment in the question I posted a bounty for

Posting a bounty for  was my first activity on the StackExchange site 'Ask Different', and apparently I didn't get any reputation bonus for joining that site (as usually seems to happen) because my reputation there shows as 1. As a result, I can't comment to answers (or the question itself) on the question I posted the bounty for.   Is it a bug that I didn't get the reputation bonus when I joined a site in this way? Because there's what appears to be a +100 message stuck in my StacExchange inbox--it has a completely blank subject--and nothing happens when I click on it.  Regardless of that, if you think about it logically, shouldn't sponsoring bounty on an affiliated site trigger a special case that ensures you can at least comment in the thread?    [edit:] As I explain in an answer below, I mistakenly thought that a person's reputation was fluid across all StackExchange network sites. In fact, it's tabulated separately, and reputation from one site cannot be used at another.]


Recursive __iter__ method implementation with generators

I am studying the following  implementation1 in :  class TreeNode():     def __init__(self, key, val,                        lc = None, rc = None, parent = None):         self.key = key         self.val = val         self.leftChild = lc         self.rightChild = rc         self.parent = parent      def hasLeftChild(self):         return not self.leftChild is None      def hasRightChild(self):         return not self.rightChild is None      # in-order iterator     def __iter__(self):         if self:             if self.hasLeftChild():                 for elem in self.leftChild:                     yield elem              yield self.key              if self.hasRightChild():                 for elem in self.rightChild:                     yield elem                       class BinarySearchTree():     def __init__(self):         self.root = None         self.size = 0      def length(self):         return self.size      def __len__(self):         return self.size      def put(self, key, val):         if not self.root:             self.root = TreeNode(key, val)         else:             self._put(key, val, self.root)      def _put(self, key, val, currentNode):         if currentNode.key >= key:             if currentNode.hasLeftChild():                 self._put(key, val, currentNode.leftChild)             else:                 currentNode.leftChild = TreeNode(key, val, parent = currentNode)         else:             if currentNode.hasRightChild():                 self._put(key, val, currentNode.rightChild)             else:                 currentNode.rightChild = TreeNode(key, val, parent = currentNode)   Let's consider this example caller code:  from random import randint  bst = BinarySearchTree()  keys = [5, 30, 2, 40, 25, 4]  for key in keys:     bst.put(key, randint(1000, 2000))  # in-order iteration       for key in bst.root:     print(key)   producing the expected output:  2   4   5   25  30  40    What is happening behind the scenes when the for loop used for the in-order iteration in the caller code is executed?    I know that the __iter__ method of the TreeNode class recursively calls itself in the two for loops for the left and right sub-trees. What I don't manage to grasp is the effect of yield elem in those  for loops:             if self.hasLeftChild():               for elem in self.leftChild:                   yield elem    and             if self.hasRightChild():               for elem in self.rightChild:                   yield elem    with respect to the effect of yield self.key, which apparently concerns the usual implementation of the   protocol as explained in the .    More specifically, what is the content of the elem variable that is returned by yield elem in the above-mentioned nested for loops, as opposed to the content of self.key (which is the actual key data in the TreeNode object) returned by yield self.key?     This is an excerpt from the implementation given in  by Brad Miller and David Ranum.


how to choose server that can handle about 1 or 2 million visit of my website

I am building website using Angular and .net core, some modules will be written in python  I have searched on hosting specs and know the difference between them and I am comfortable for dedicated server to help me manage the website, database , etc myself   the factor that I can not decide about the number of user, I asked the marketing team and they said that the expected number of users per month are 1 to 2 million visit  how to choose server specs that suit this number without affecting the server performance ?


weakened version of Dirichlet's theorem - proof without Dirichlet's theorem

Dirichlet's theorem states that arithmetic sequence with first term and common difference relatively prime, contains infinitely many prime numbers.  Assume that we only want infinitely many numbers in such an arithmetic sequence such that every two of them are relatively prime - is it possible to prove it in an elementary way?


Prove that the perpendicular bisectors of the sides of a triangle meet at a point

Self-studying “Basic Mathematics” by Serge Lang, got stuck doing final problem of chapter 5.    I took a sample triangle and labeled two lines and points.    As L1 is the perpendicular bisector of segment PQ, I know KP = KQ. Points K, Q and M form a right triangle.  That’s the information I gathered, do not know how to proceed from there. Any help would be appreciated.


IF statement to search for graphics path

Is it possible to have more than 1 graphics path in a TeX file and have latex search in more than one at the same time? I'm asking because I access my files over multiple devices (on Dropbox), and the path is slightly different in each case.   Something along what the simplified code below does:      if      *path1 exists* then     \graphicspath{path1}      else if      *path2 exists* then     \graphicspath{path2}     end   Many thanks W


Status=Unauthorized, StatusCode=401 when accessing the Tooling REST API

I am getting this HTTP error:     Status=Unauthorized, StatusCode=401   When I try and access the Tooling REST API from an Lightning component Apex controller being used inside Salesforce, running as System Administrator.  This is the HTTP GET Request Endpoint  https://x--x.my.salesforce.com/services/data/v44.0/tooling/query?q=Select+Id,ActiveVersion.VersionNumber,LatestVersion.VersionNumber,DeveloperName+From+FlowDefinition+ORDER+BY+DeveloperName   This is the method executing the request:  public static HttpResponse executeCallout(String method, String resourceName, String requestBody) {      HttpRequest request = new HttpRequest();      if (method == 'PATCH') {         request.setMethod('POST');         } else {         request.setMethod(method);         }      request.setEndpoint(URL.getOrgDomainUrl().toExternalForm() + resourceName);      request.setHeader('Authorization', 'Bearer '+ UserInfo.getSessionId());      request.setHeader('Accept', 'application/json');     request.setHeader('X-PrettyPrint', '1');     request.setHeader('Content-Type', 'application/json');      if (String.isNotBlank(requestBody)) {         request.setBody(requestBody);     }      return new Http().send(request); }   Where the method is equal to GET and requestBody is null and resourceName is equal to:  /services/data/v44.0/tooling/query?q=Select+Id,ActiveVersion.VersionNumber,LatestVersion.VersionNumber,DeveloperName+From+FlowDefinition+ORDER+BY+DeveloperName   I've checked the length of UserInfo.getSessionId() and it's returning a value of length 112  Questions   What is causing the problem? How can I fix it?


What is the best place to raise questions related to Docker and Kubernetes?

What is the best place to raise questions related to  and ?  In general, is there a Stack Exchange site where these topics are discussed?


Does The Ranger's Feral Senses Accomplish Anything, RAW?

According to , Invisible, but unhidden enemies are sensed automatically. However, this seems to contradict the Ranger's Feral Senses ability.      FERAL SENSES: You are also aware of the location of any invisible creature within 30 feet of you, provided that the creature isn’t hidden from you and you aren’t blinded or deafened.   This suggests that being able to sense unhidden invisible enemies is something special that only rangers can do. Is there a consistent ruling under RAW?


An anonymous referee of a paper I wrote requires me to change all sentences of the form "If X, Y" to "If X, then Y".  The paper is on theoretical computer science and contains many sentences like "If P is a triple, Gamma(P) equals zero."  He requires me to change that into "If P is a triple, then Gamma(P) equals zero."  Is he right?


How to handle enter key press in field written to CSV file?

I am currently working inandroid studio. I have an input form activity, which is written to a CSV file on submit, which is then added as an attachment for an email. In a particular field, if I press the Enter key, to create a new line - the CSV file format is disturbed (but I need to be able to press enter in the field)


Let $A=\mathbb{Z}[x]$ and $I=(2,x)\lhd A.$ Show that $x\otimes x+2\otimes2$ is not an elementary tensor in $I\otimes_{A}I$.   I have $$I\otimes_A I = \frac{L_A(I\times I)}{T}$$  where $T$ is the submodule generated by the elementary tensors $$\{(am,n)-a(m,n);(m,an)-a(m,n);(m,n)+(m,n')-(m,n+n');(m,n)+(m',n)-(m+m',n)\}$$  I haven't been able to to much work here. I have a couple of ideas: showing that $x\otimes x+2\otimes2$ can't be written in one of the form above to prove is not elementary. A possible alternative would show that the tensor given is can be written as a linaer combination of elementary tensors (and is this always true? question arise because not every tensor consists only of elementary tensors).


Calculating MEAN and STANDARD DEVIATION confussed

[] ** calculate the mean and standard deviation of each investment, assume that both returns come from independent samples, are both normally distributed and that the (true but unknown) variances are the same,, Can someone could check my  calculations for  mean and standard deviation? I did calculations but not sure what to do with negative values of distances(If if am correct Investment A MEAN= 78.6875 when it comes to calculating standard deviation i have to power difference by 2 ?  **


How to use merge hints to isolate complex queries in SQL Server

I can understand that if I join individual queries that are "individually fast" the combination may become slow because the default execution plan may be non-optimal.  However when I know the number of rows for one query is very small I think I should be able to use hints to control the joins.  select cj.a, cv.b   from (select distinct a from complexJoin) cj -- 2 rows  inner loop join complexView cv     on cj.a = cv.a  order by cj.a, cv.b   If cj is <1s and cv <1s expect this to be <~2s but using any hint (merge/hash/loop) it is often > 1min.  I also tried to use CROSS APPLY because the docs claimed that the inner select is executed exactly once for each outer row. The query takes ~100x longer than running the inner query twice manually so perhaps I don't understand the docs.  select cj.a, cv.b   from (select distinct a from complexJoin) cj -- 2 rows  cross apply (select * from complexView                 where a = cj.a) cv  order by cj.a, cv.b   If I populate a temp table with results from "cj" and then join _with_no_hint_ or use the cross apply it is fast but do I really have to resort to that?  If I use the temp table and attempt "any" of the join hints (loop/merge/hash) it is slow so maybe that is a key point.  I don't believe diving into the depths of the query plan (both are complex to begin with) are required to solve this type of problem in general: I just want guaranteed isolation without resorting to a temp table--is that really not possible?


Define M:  $$ \emptyset \in M \wedge \forall x\in M \rightarrow \{x\}\in M $$ How to construct this set in ZFC system?  I know the axiom schema of replacement and the definition of recursion, but first I need a function to produce this set. A function is a map of pairs, so M must be the subset of the function's codomain, which means I still need M before I use the function...


Unable to install GNOME shell extensions using GNOME Tweaks in Ubuntu 18.04

I have just installed Ubuntu 18.04 LTS and I am unable to manually install GNOME shell extensions downloaded from the official  using the gnome-tweak tool as the option for installing new shell extension is missing in gnome-tweak-tool(which was there in previous versions).   I have installed both gnome-tweak-tool and gnome-shell-extensions by running the following commands,  sudo apt install gnome-tweak-tool sudo apt install gnome-shell-extensions   Is the ordinary procedure has changed in Ubuntu 18.04 LTS? If so, could anyone please specify the new procedures to be followed?


Grep every string inside specific X string

I want every string inside $this->translate('') or $this->translate(""), I've come up with    grep -oe "\$this\->translate(\(['\"].*['\"]\))" -r dir/path   but this is bringing results like   $this->translate('Something?').'\');">'.$this->translate('Something else')   Each translate should be shown in separate lines. I tried using non-greedy/lazy but didn't work out.  Input samples  $this->translate('Something?').'\');">'.$this->translate('Something else') <?= $this->translate('random text');?>   Expected output  Something Something else random text   Any thoughts?


I have discovered that when I run a CTE in a query window it must have the leading ; but if I am going to run a CTE in a stored procedure it does not need the ;  To me, it would be needed in both places or neither place.  Why is this punctuation need in one area and not the other?


Expression cannot be used as a function in constructor

I have this very weird error in the constructor of my class.  #include "ContratException.h" //#include "File.h"   namespace labPileFile {  template<typename T> File<T>::File(const int max) :         m_tete(0), m_queue(0), m_tailleMax(max), m_cardinalite(0) {     m_tab = new T[m_tailleMax]; }  template<typename U> std::ostream& operator <<(std::ostream& p_out, const File<U>& p_source) {     p_out << "[";     for (int i = 0; i < p_source.taille(); ++i) {         p_out << p_source[i] << ",";     }     p_out << "]";     return p_out; }  }   Eclipse gives me several "Expression cannot be used as a function" errors   All three errors are the same thing.  here is my .h, if it can help (I have to create the .cpp from the .h that I was given)  #ifndef _FILE_H #define _FILE_H  #include <iostream> #include <stdexcept>  namespace labPileFile {  template<typename T> class File { public:     File(const int = MAX_FILE);     ~File();      File(const File<T> &);     const File<T> & operator =(const File<T> &);      void enfiler(const T &);     T defiler();      int taille() const;     bool estVide() const;     bool estPleine() const;      const T & premier() const;     const T & dernier() const;      T operator [](const int &) const;      void verifieInvariant() const;  private:     T *m_tab; /*!< Content of the queue*/     int m_tete; /*!< Head of the queue (first index)*/     int m_queue; /*!< Last index of the queue*/     int m_tailleMax; /*!< Current capacity of the queue*/     int m_cardinalite; /*!< Number of elements*/     static const int MAX_FILE = 100; /*!< Default capacity*/ }; }  #include "File.hpp"  #endif   Does anyone know what I'm doing wrong?


What governor limits impact Apex Describe methods?

Are there any governor limits, or considerations that I should be aware of when using Apex Describe methods?  So for example, the author of this blog post uses the structure below to get the record type instead of doing a soql query.     //Generate a map of tokens for the sObjects in your organization Map gd = Schema.getGlobalDescribe();  //Retrieve the describe result for the desired object DescribeSObjectResult result = gd.get('Account').getDescribe();  //Generate a map of tokens for all the Record Types for the desired object Map recordTypeInfo = result.getRecordTypeInfosByName(); system.debug('RECORD TYPES:' + recordTypeInfo);  //Retrieve the record type id by name String recordTypeId = recordTypeInfo.get('RECORDTYPE_NAME').getRecordTypeId();


Proving any linear transformation can be represented as a matrix

I'm trying to prove that     Theorem. Consider a linear transformation $T : \mathbb R^n \to \mathbb R^n$.   The transformation $T$ can be represented as a matrix product $\mathbf x \mapsto A \mathbf x$, for some matrix $A \in \mathbb R^{n \times n}$.   Here's my attempt at a constructive proof.      Proof. Consider a matrix $\mathbf x \in \mathbb R^n$ given by   \begin{align*}   \mathbf x &=   \begin{bmatrix}     x_1 \\     x_2 \\     \vdots \\     x_n   \end{bmatrix}. \end{align*}   We will construct a matrix $A \in \mathbb R^{n \times n}$ such that $T(\mathbf x) = A \mathbf x$.      The vector $\mathbf x$ can also be written as   \begin{align*}   \mathbf x &=   x_1   \begin{bmatrix}     1 \\     0 \\     \vdots \\     0   \end{bmatrix}   +   x_2   \begin{bmatrix}     0 \\     1 \\     \vdots \\     0   \end{bmatrix}   + \dotsb +   x_n   \begin{bmatrix}     0 \\     0 \\     \vdots \\     1   \end{bmatrix} \\   &= x_1 \mathbf{e}_{1} + x_2 \mathbf{e}_{2} + \dotsb + x_n \mathbf{e}_{n} \\   &= \sum_{i=1}^{n} x_i \mathbf{e}_{i}, \end{align*}   where $\mathbf{e}_{i}$ are the standard basis vectors in $\mathbb R^n$.      Consider the transformation $T(\mathbf x)$.   Rewriting $\mathbf x$ as above, we have   \begin{align}   T(\mathbf x) &= T \left( \sum_{i=1}^{n} x_i \mathbf{e}_{i} \right) \\   &= \sum_{i=1}^{n} T(x_i \mathbf{e}_{i}) \\   T(\mathbf x) &= \sum_{i=1}^{n} x_i T(\mathbf{e}_{i}). \tag{1} \end{align}      Let the matrix $A \in \mathbb R^{n \times n}$ be defined by   \begin{align*}   A &=   \begin{bmatrix}     T(\mathbf{e}_{1}) &     T(\mathbf{e}_{2}) &     \cdots &     T(\mathbf{e}_{n}) &   \end{bmatrix} \\   &=   \begin{bmatrix}     a_{11} & \cdots & a_{1n} \\     \vdots & \ddots & \vdots \\     a_{n1} & \cdots & a_{nn}   \end{bmatrix}, \end{align*}   where each $T(\mathbf{e}_{i})$ is a column of $A$, and each $a_{ij} = T(\mathbf{e}_{i}) \cdot \mathbf{e}_{j}$ is the $j$th component of $T(\mathbf{e}_{i})$.   Then, by the definition of matrix-vector multiplication, we have   \begin{align*}   A \mathbf x &=   \begin{bmatrix}     a_{11} & \cdots & a_{1n} \\     \vdots & \ddots & \vdots \\     a_{n1} & \cdots & a_{nn}   \end{bmatrix}   \begin{bmatrix}     x_1 \\     \vdots \\     x_n   \end{bmatrix} \\   &=   \begin{bmatrix}     x_1 a_{11} + \dotsb + x_n a_{1n} \\     \vdots \\     x_1 a_{n1} + \dotsb + x_n a_{nn} \\   \end{bmatrix} \\   &=   x_1   \begin{bmatrix}     a_{11} \\     \vdots \\     a_{n1}   \end{bmatrix}   + \dotsb +   x_n   \begin{bmatrix}     a_{n1} \\     \vdots \\     a_{nn}   \end{bmatrix} \\   &= x_1 T(\mathbf{e}_{1}) + \dotsb + x_n T(\mathbf{e}_{n}) \\   A \mathbf x &= \sum_{i=1}^{n} x_i T(\mathbf{e}_{i}). \tag{2} \end{align*}      Therefore, by eqs. (1) and (2), we have that   \begin{align*}   T(\mathbf x) &= \sum_{i=1}^{n} x_i T(\mathbf{e}_{i}) &   A \mathbf x &= \sum_{i=1}^{n} x_i T(\mathbf{e}_{i}), \end{align*}   and we reach $T(\mathbf x) = A \mathbf x$, as was to be shown.   Any thoughts or suggestions would be appreciated.


How to add arrow in equations and matrix?

I just read a book "Linear Algebra and Its Applications 4E" by David C. Lay. The book is (should be) LaTeX typeset. The matrix and equations are so nice, please see the following 3 examples:        It's so beautiful, so I want get the same effect inside my paper. Here is my code:   \usepackage{amsmath} \usepackage{colortbl} \newcommand\y{\cellcolor{clight2}} \definecolor{clight2}{RGB}{212, 237, 244}%  %%% \[A=\left[ \begin{array}{ccccc} \y 0 & -3 & -6 & 4 & 9 \\    -1 & \y -2 & -1 & 3 & 1 \\ -2 & -3 & 0 & \y 3 & -1 \\ 1 & 4 & 5 & -9 & -7      \end{array} \right]\]  \[A=\left[\begin{array}{cccccc} \rowcolor{clight2} 3 & -9 & 12 & -9 & 6 & 15\\ 0 & 2 & -4 & 4 & 2 & -6 \\ 0 & 3 & -6 & 6 & 4 & -5 \end{array} \right]\]   And the result:     But how to add these arrows??


I am trying to get the timer working to move the ball. It just isn't working. I am getting alot of errors which i don't yet understand  Can someone tell me what i am doing wrong.  Here is the error that i got.  Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at Paneel$TimerHandler.actionPerformed(Paneel.java:30) at javax.swing.Timer.fireActionPerformed(Unknown Source) at javax.swing.Timer$DoPostEvent.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$500(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)   Thanks in advance.  import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.*;  public class Paneel extends JPanel  {     private int height, width;     private boolean moveLeft, moveRight, moveUp, moveDown;     private Timer timer;     private Ball ball;      public Paneel()      {         TimerHandler timerHandler = new TimerHandler();         timer = new Timer(20, timerHandler);         timer.start();     }      public void paintComponent(Graphics pen)     {         super.paintComponent(pen);         ball = new Ball((double)getWidth(), (double)getHeight());         ball.drawBall(pen);     }      class TimerHandler implements ActionListener     {         public void actionPerformed(ActionEvent e)          {             ball.moveDown();             repaint();         }     } }


Comparing two groups with big gap in sample sizes?

I have two groups which are about their departments in college (For example, group1=faculty of x, group2=faculty of y). However, the size of the group1 is 12 and size of the group2 is 99. There is a big gap between the group size. My intention is to test their perceptions based on their departmen. Is it appropriate to compare them? I will use independent t-test.


Is Acrobatics used in response to an AoO's intent or to negate it?

Does a foe declare its intent to make an attack of opportunity when a creature declares its intent to provoke attacks of opportunity by moving within the foe's threatened area, into the foe's space, or exiting the foe's threatened area?  That is, is an Acrobatics skill check made in response to a creature's intent to make an attack of opportunity or does the creature make an Acrobatics skill check first to negate the possibility of the foe making the attack of opportunity?  Similarly, can a foe "take back" its declared but unmade attack of opportunity if it "wastes" its attack of opportunity against a creature that would have provoked an attack of opportunity but doesn't provoke an attack of opportunity because the creature made an Acrobatics skill check?


Probability that the sum of n different dice is greater or equal than x

Consider you are given n different dice. Each dice can have up to m sides with [1;m] eyes on the side.  What is the probability for a given set of different dice and an integer x, that the sum of all eyes after throwing each dice once is greater than or equal to x.  Example:  x = 6  2 dice, two D6.  P(X >= x) = 0.5  I assume there is no closed form formula to compute this?


I cannot not use a shell variable in sed in the $NUMBER form. I have this line in my shell script:  cat shared.txt sed 's/whatever1/$2 ... whatever2/' > shared2.txt   The result in shared2.txt looks like:  ...$2....   What did I do wrong?


What are the differences between these two phrasal verbs and what are the best situations to use each?


When I learned about the Minkowski Space and it's coordinates, it was explained such that the metric turns out to be $$ ds^{2} = -(c^{2}dx^{0})^{2} +(dx^{1})^{2} + (dx^{2})^{2} + (dx^{3})^{2}   $$ where $ x^0,x^1,x^2,x^3 $ come from $ x^{\mu} : \mu = 0,1,2,3 $, and $ c $ is the speed of light. The first resource I had access to--I have to do a bit of digging for the exact paper--of course addressed that this invariant takes the tensor form: $$ ds^2 = g_{\mu \nu}dx^{\mu}dx^{\nu} $$ as well. This two things I've seen in all of my texts and online resources regarding resources. The element in question that varies between authors, is the time coordinate, $ x^0 $. When it was first explained to me, it was using the standard Cartesian representation for the spatial portion of the coordinates, and the time coordinate was labeled as $ x^0 = ict $. Squaring gives $ (x^0)^2 = -c^2t^2 $, and applying differential calculus, we get $ (dx^0)^2 = -c^2dt^2 $. Sensible and expected to have the tensor formula spit out the Minkowski Metric. The author then later explicitly states the coordinates are $ x^0 = ict, x^1=x,x^2=y,$ and $x^3 = z$.  My questions is then, why is it most authors on the subject omit the imaginary unit on the time coordinate? For example, .   The only reason I can fathom omission is if the author is using metric signature $ [+,-,-,-] $, where I started off learning the theory with signature $ [-,+,+,+] $ which may be the reason seeing the time coord with no imaginary unit seems dissonant to me. All help appreciated!  Edit: After reading the other answers, my questions is now one of why and how (mathematically) do we obtain the Minkowski Metric Signature. More specifically the one element with a different sign.


How do I tell my parents I'm no longer Christian?

I have been going to church my whole life and faithfully following the Christian religion for 18 or so years.  I'm 20 years old, and I have been having doubts about my faith for about 2 years now.  My parents are extremely conservative, very controlling, and strong practicing Christians.  I recently came to the conclusion that I am a deist (I believe in a natural God who created everything but not in a God who allows people who don't believe in him to burn in hell).   My parents told me that I had to apply to be a leader at this Christian camp out in California, and I got the job.   I don't want to go because I am not Christian. I only applied and went through the motions because I was basically forced.  I don't want to go now, and I have no idea how to tell them.   I have to buy my plane tickets relatively soon (within the next couple of weeks), so I need to do something quickly. I am also financially dependent on them for the most part (mostly my grandparents, but they have control over them).  They think that I have to be exactly the way they want me to be instead of who I think is best for me to be. I'm stuck, and I need advice.  Thank you!


Lognormal distribution using binned or grouped data

I understand the Max likelihood estimators for mu and sigma for the lognormal distribution when data are actual values.  However I need to understand how these formulas are modified when data are already grouped or binned (and actual values are not available).  Specifically, for mu, the mle estimator is the sum of the logs of each X (divided by n which is the number of points).  For sigma squared, the mle estimator is the sum of (each log X minus the mu, squared); all divided by n. (Order of operations is taking each log X minus the mu; square that; sum that over all X's; then divide by n). Now suppose data in bins b1, b2, b3, and so on where b1 to b2 is the first bin; b2 to b3 second bin and so on.  What are the modified mu and sigma squared? thank you.


Sorry for the silly question, but I wonder how can I get an app I built (with cmake) listed in the dash. Immediately after the build completed, I moved into a /usr/lib/folder brand new folder. I thought that would have sufficed, but that's not the case.  I have read several posts about problems with Dash, but they all make reference to rebuilding because of potential problems. I could give them a go, but I'm not sure in first instance a simple file move is enough.  Any guidance?  Thanks


In my Disk Utility, I see Other Volumes. It happened without me knowing and I have no idea how to check what that is.  Could you tell me what that is and if I can remove it using Terminal? Or without having to install other programs?


Enable Bluetooth on Broadcom Corp. BCM20702A0 specifically

I'm running Kubuntu 20.04. How can I get Bluetooth to connect? I have a Broadcom Corp. BCM20702A0 adapter.


Can an embedded video be made responsive?

I currently use the  module to embed Youtube videos in my posts, but on mobile devices the videos are not responsive. They still maintain their width no matter how narrow the screen is.  I am open to another method of embedding videos even raw HTML and Javascript if the video displays will be responsive


jQuery .load() function only changes content once

I've searched for other similar questions, but no answer works for my problem.  Here is my jQuery:  $("i[id^='delete']").click(function() {   $(".container.tim-container").load("getreservations.php"); });   And here is the php that generates the updated content:  $count = 0;  echo '
'; echo "
"; echo '
View Reservations
'; echo "
"; echo '
';  foreach ($noDupes as $facilities)   {     echo '
';     echo '
'.$facilities["facility_name"].'
';     echo '
';      foreach ($facilities["dates"] as $dates => $dateValues)     {       echo '
';       echo '
'.$dateValues["date"].'
';       echo '
';        echo '
';       echo '
';       foreach($dateValues["timeslots"] as $timeslots => $timeslotValues)       {         echo '
'.$timeslotValues["start_time"].'
';         echo '
'.$timeslotValues["end_time"].'
';          echo '
';         echo '
'.$timeslotValues["start_time"].':00 - '.$timeslotValues["end_time"].':00
';         echo '
';         $count++;       }       echo '
';       echo '
';     }   }    echo '
';   echo '
';   Even though it is not beautiful php code, it works. The problem is that the .load() function in jQuery only works once. Also, I've tried using .on('click', function(){}) on the  element as well. How can I make it work more than once?


My LaTeX document is acting strangely. Here is a simplified version of it:  \documentclass{article}  \begin{document}  \tableofcontents \newpage  \addcontentsline{toc}{part}{A Part of My Document} \include{includedfile}  \end{document}   And in includedfile.tex:  \section{My Section Title} Quack.   Clearly, in the table of contents, the heading for the part should precede the one for the section, but it doesn't! What's wrong?


A question about vectorial spaces of infinite dimension.

Let $V$ be a $k$-vectorial space of finite dimension $n$, every subspace $U \subseteq V$, can be seen as a direct summand of $V$, it is sufficient choose a basis of $U$ and by completing to a basis of $V$, the elements that don't belong to the basis of $U$, generate a subspace $U'$ such that $U \oplus U'=V$. My question is: is this also true when $V$ is an infinite dimensional vectorial space?


Exercise     Prove that $a^n-b^n = (a-b)(a^{n-1} + a^{n-2}b + \cdots + b^{n-1})$.     I've posted my solution below. In case someone has a more clever solution, feel free to post it!  (TBH, I was surprised that there was no question on Math.SE regarding this equation!)


Is it ok to combine two independent clauses into just one sentence?

Is this sentence acceptable?     You’re welcome, have a nice day ahead.


I want to be able to put certain configuration information in my settings.py file - things like the site name, site url, etc.  If I do this, how can I then access those settings in templates?  Thanks


A relatively new blog seems to be getting very poor Google indexing

I have  that is 2 months old. In the first few weeks, it was getting indexed nicely and my GoogleWebmaster reports were showing that it was getting crawled and began ranking for some terms.  Then as I kept writing, the GoogleWebmaster report thinned out and showed less and less terms that this blog ranks for. Now there are only 4 terms with one of them being my name.  Is there something I need to do to keep the old posts to remain indexed and crawled?  Thanks, Alex


Within my ajax success function, I have the following code:  $('#searchButton').on('click',function(){ //ajax call //within that ajax call's success function: $.ajax({       type: 'POST',       url: 'search.php',             data: {x:x},               success:function(dataReturn){                        $('#returnThree').html(         "<img id='expandThree' class='expandThree' src='../../img/expand.png'>"         );   I have another function that I want to be called when the user clicks on this image, but I can't figure out where to put the code as nothing seems to work:  $("#expandThree").click(function() {   console.log('hi');   });   I've tried putting it both inside and outside of the $('#searchButton').on('click',function(){, but it's not calling.  What am I doing wrong?


Convert Mac-like keystrokes into Linux keystrokes (remap)

I would like to configure my keyboard to work as close to a MacBook as possible.  Here are some examples of what I would like to do:  ---------------+------------------------------------------------ I press stroke |  App receives stroke ---------------+------------------------------------------------ Alt-Shift-[       Ctrl-PageUp (move to previous tab) Ctrl-Backspace    Delete Alt-Left          Home (move cursor to beginning of line) Super-Left        Ctrl-Left (move cursor left one word) Super-Shift-Left  Ctrl-Shift-Left (select left one word)   (Note that usually Mac keyboards have Cmd where PC keyboards have Alt/Meta, and Opt where PC keyboards have Win/Super)  How could I go about this?    I have  in the past intercepting keystrokes with Fluxbox, and emitting keystrokes with xdotool.  The problem with this approach was that the app would see the original modifier key I had pressed down, unless I cleared it, in which case that would lose my input state.  And sometimes when I let go, X would think the modifier key was still pressed down.  For this reason, I think I need a high-level layer (in X or in the WM) that can completely hide my actual keyboard state from apps, and simulate the keystrokes that actually get passed down to apps.  (Something WM-independent would be great, but I could live with a WM-specific solution.)  For bonus points (I can live without this), make it possible to switch behaviour depending on the app that currently has keyboard focus:  Alt-C             Ctrl-Shift-C on gnome-terminal or konsole                   Ctrl-C in other apps   I imagine some WM integration would be needed for this.


I need to find a string element in my array but when I check to see, it always comes up as found, even if its not the case. I am trying to call a method.      String name = "";     boolean result = false;        if (option == 5)             {         System.out.println("Please enter a students name");         name = input.next();          linearSearch(student);           if (result = true)         {System.out.println(name+" found in element ");}          else         {System.out.println(name+" not found in element ");}       }   public static boolean linearSearch(String b[]) { String key = null; boolean searchReturn = false; for(int i = 0; i < b.length; i++) {     //if key is found - return position of key i.e. n     if( b[i] == key)     searchReturn = true; }  return searchReturn;


Why did the US department of state tell me UK citizen cannot enter the US after 15-day Carribean stopover?

I asked  whether UK citizen can enter after 15-day stopover in Bermuda and the answer seemed to be "yes." I have some critical new information that I believe justified a follow-up question. I just spoke with the US government (US Citizens Crisis Assistance from travel.state.gov) and someone there told me this is not possible, that only US citizens and lawful permanent residents are allowed to enter the US, even after having been out for 14 days. But  seems pretty clear:  foreign nationals who have been in any of the following countries during the past 14 days may not enter the United States  It does not say anything about foreign nationals who have not been in those countries during the past 14 days. Surely it would be easier for them to just say "no foreign nationals, at all"? Why enumerate the 14 day rule if the reality is different? I have received contradictory information and was wondering if anyone here could help clear it up. Maybe there is confusion on their end between the "no new visas" and the "no foreigners who've been in Europe/China/Iran/Brazil in past 14 days" rules? The UK citizen in question is not attempting to permanently immigrate for any reason–and already has an ESTA from September 2019 (valid for 2yrs). Edit I think this question is just different enough due to how interesting it is that I was told seemingly contradictory information to many official online US government sources. The old question was already edited and full of comments. I apologize to anyone whose time I may have wasted. Second edit I re-worded the question to stress that my question is about the contradiction between advice received from the US State Department Crisis Hotline (+1(202) 501-4444) and official advice. Please, stop trying to close this question as there is still lively truth-seeking going on. Final edit I called Customs and Border Protection and they said the 14-day rule is the law. They also said they have no idea why the state department said what they did.


I recently blanched and peeled the "skin" off 500g of shelled pistachios and 500g of almonds.  For the pistachios I poured boiling water over them, waited a minute, strained, and then rubbed the nuts in small batches in a clean cloth to pull the skin off.  For the almonds, I tried the same strategy as the pistachios. But this was not so good. The skin starts to dry too quickly. So I poured more lukewarm water over them.  Then I dried them in an oven preheated to 150C for about 10 minutes. They are still a but soft, so I may have to do this again later.  My question is, is there a better way? That took a really long time.


Is particle superposition reflected in the particle's gravitational footprint?

Recently, I have heard of extensions of the double slit experiment that propose to use a bacterium as the particle. I've also heard that the double slit experiment, in principle, would still show an interference pattern if it were done with a human or a car, as long as there is no observer.  This made me wonder: if this is true, and I exist in a superposition, do I have a mass which exists in several locations at the same time and with an associated weight of 200lbs in each of my superposition locations?  If that were true and a fact, wouldn't that account for the missing mass which we attribute to dark matter? Also, even if on some other level this is true about particles only, wouldn't this be where we would find a link between quantum mechanics and gravity, linking it with relativity?  Forgive me if this is a silly question as I am almost 63 years old and have been almost 50 years out of school, but I just love to read and think about science and learn as much as I can.


Effectiveness of Universal Translator in translating a book

Would running a book through the universal translator make an accurate translation? The universal translator is able to translate languages never heard by the federation practically instantly,(with little to nothing lost in meaning or intent) would it be reasonable to assume, any given modern book could be simply and accurately translated from English to French with no translation issues or lost meaning?   EDIT- the suggested answer is about visually translating a language, this is not what im asking about, as in Enterprise we have at least 1 instance in which Hoshi is communicating with another species through the UT by text, not speech, which shows that the UT can accept input and translate it. This is different then the crew being able to read something on another ship, as the UT does not have optical receptors to input what they are seeing, since it runs audibly off of the ship.


Can one construct a non-measurable set without Axiom of choice?

Is axiom of choice required to show the existence of non-measurable sets? Is there a Lebesgue non-measurable set that can be constructed without axiom of choice?  Related question on MO says it is consistent:


Expected behaviour when adding items to your 'favourites'

I am tweaking our current user journey for adding specific items to your 'favourites' list.  The question is: if the user isn't logged in when they add an item to their 'favourites' - should they be prompted to log in at that point?  Or should they be allowed to add more items until they click checkout and then be prompted to log in then?  I feel it would be less disruptive to what the user expects if they need to log in after clicking 'Checkout' then being prompted. But then my concern is if the users don't click checkout and the session ends. They could potentially lose their items.


var $link = $("#frametest").contents().find(".eod-topbox").find('a'); var variable2= $("#frametest").contents().find(".eod-topbox").find("h3").find(".hidetitle").html(); var variable1= $link.attr('href'); $.post('insert.php', {variable1: link_address, variable2: heading}, function(data){$("#message").html(data);}); alert(variable2); alert(variable1);   In this script, alert are showing hindi text properly and showing link also. But when I try to save this variable2 to the database, it saves something like this   à¤•à¤¾à¤‚à¤—à¥à¤°à¥‡à¤¸ à¤¸à¥‡ à¤¬à¤¢à¤¼à¤¤à¥€ AA...   in the message div hindi text is displaying properly and when I just copy hindi text to database manually there is no problem. Please help somebody.


What is the importance of the Diophantine inequality $\frac{1}{p} + \frac{1}{q} + \frac{1}{r} > 1$?

In Humphreys' book  Introduction to Lie algebras and Representation Theory(3rd printing, p.62), the Diophantine inequality $$\frac{1}{p} + \frac{1}{q} + \frac{1}{r} > 1$$ appeared while classifying all Coxeter graphs of irreducible root systems. Under the assumption $p \geq q \geq r \geq 2 $, the possible triples turn out to be $(p,2,2), (3,3,2),(4,3,2),(5,3,2)$, which correspond to the Coxeter graph $\text{D}_{p+2}, \text{E}_6, \text{E}_7, \text{E}_8$, respectively.  It seems quite straightforward to solve the inequality in positive integers, but Humphreys said that      This inequality, by the way, has a long mathematical history.   without further comment. So I want to know if this Diophantine inequality has any important significance, or if it has appeared in other context (maybe relevant history) before.


Minizing the total lenght of 2 pipelines, Optimization question

A pump house is to be placed at some point $X$ along a river, A pipe from point $A$ and a pipe from point $B$ will then be connected to the point $X$. How far should $X$ be away from $M$, so that the total length of the pipes $\overline{AX}$ and $\overline{BX}$ are minimised?    I just need help with setting up the function.


I'm converting an html/css template to a WordPress theme. The index.html contains the following Google font which I want to include in the header.php : http://fonts.googleapis.com/css?family=Bree+Serif' rel='stylesheet'> Kindly advise how I can do this.  Regards  Debashis


Error when update ubuntu 19.04 to 20.04?

I am trying to upgrade ubuntu 19.04 to 20.20 but have an error like this: update-manager      Checking for a new Ubuntu release Your Ubuntu release is not supported anymore. For upgrade information, please visit: http://www.ubuntu.com/releaseendoflife  Checking for a new Ubuntu release Your Ubuntu release is not supported anymore. For upgrade information, please visit: http://www.ubuntu.com/releaseendoflife  /usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeFetcher.py:23: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.   from gi.repository import Gtk, Gdk /usr/lib/python3/dist-packages/DistUpgrade/ReleaseNotesViewerWebkit.py:33: PyGIWarning: WebKit2 was imported without specifying a version first. Use gi.require_version('WebKit2', '4.0') before import to ensure that the right version gets loaded.   from gi.repository import WebKit2 as WebKit authenticate 'focal.tar.gz' against 'focal.tar.gz.gpg'  extracting 'focal.tar.gz'


How do the ultra rich protect their money?

FDIC insures each account up to $250,000.  A few billion / 250,000 = way too many bank accounts.  So how do the ultra rich insure their fortunes?


I've noticed that pretty much all swear words or profane language contains one or more fricatives, and sometimes plosives.  Without listing words, if you can think of the first ten swear words that come to mind, they will almost invariably contain hard-ts, hard-ks, hard-gs, etc. Even if they're not in English, this is the norm. I've found there are less examples of fricatives/plosives in French profanity, however.  What is the psychology behind fricatives? Are some words offensive strictly because of meaning or also because of linguistics? When we hear a fricative, does our brain have some inclination to believe it's profane? If I make up some fake words containing fricatives, some of them potentially sound obscene, but this is a subjective test.  Obscenities do change over time, with new words coming about quite often, but they almost invariably contain fricatives. Why is this?


There used to be subscribe button in the popup window which appears when you hover the mouse over a tag. It then sent you a confirmation e-mail and later it was sending e-mail feeds when new question tagged with the tag appeared.  The subscribe button is not there anymore. How can I subscribe to the e-mail notifications?    Old duplicate question:


Only binary predictors -- ANOVA, regression, or other?

I am trying to fit a model to predict a quantitative response variable, using several binary variables. In particular, I am interested in measuring the relationship between one of the binary variables and the outcome variable, holding the other binary variables constant.  My inclination is that ANOVA is the appropriate method to use. The advantage of ANOVA over a series of t-tests should be avoiding Type 1 errors. But I seem to recall from stats that ANOVA is primarily designed for predictor variables with more than 2 levels, aka not binary.   Which is preferable?  Final question: is there any reason not to use multiple regression in this case? Thanks.


Using microdata for SEO will help to increase SERP Position?

Does really rich snippets (microdata) helps to increase the SERP position or it will be just for usability purpose?  if adding rich snippets to page helps, then how it will affects the SERP position?


I am trying to figure out how to download old Twitter DM's from the past few months.  I did a Contaxio sync but the CSV file does not seem to contain any DM's at all.  I tried to build a Twitter app but got stuck not know how to run "twit-backup.pl --generate-session"


So what is the problem/contradiction If I state I can divide by 0 but the number will be 0 I tried a few thing but didn't find a problem


How exactly c++ vtable works? (with example in the q.)

lets take an c++ example:  class A { public:     A() { cout << "hey" << endl; }     ~A() { cout << "by" << endl; }   };   class B : public A { public:     B() {}     virtual ~B() { cout << "from b" << endl; }  }; int main() {     A * a = new B[5];        delete[] a;      return 0; }   the results of this code is an infinite loop of "by" , why is this?  B vtable supposed to be upcast to A that don't have vtable , so i would expected it to throw an exception when he  try to reach the virtual constructor.  p.s.  where i can read on all kind of examples of wired constructor destructor behave? (with examples )


Duplicate Packages Error in Ubuntu 14.04

When I run sudo apt-get update, the following results occur :  Reading package lists... Done W: Duplicate sources.list entry google'sIP/linux/chrome/deb/ stable/main amd64 Packages (/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-amd64_Packages) W: Duplicate sources.list entry google'sIP/linux/chrome/deb/ stable/main amd64 Packages (/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-amd64_Packages) W: Duplicate sources.list entry http://dl.google.com/linux/chrome/deb/ stable/main i386 Packages (/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-i386_Packages) W: Duplicate sources.list entry http://dl.google.com/linux/chrome/deb/ stable/main i386 Packages (/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-i386_Packages) W: You may want to run apt-get update to correct these problems   The solution Ubuntu provides is " run apt-get update to correct these problems" , but that only produces the duplicate error.


Failure on installing htop on the server

I'm trying to install htop on my server (ubuntu 14.04). Here is the command:  sudo apt-get install htop   But it throws:  Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package htop   Noted that it throws E: Unable to locate package .... for everything I would like to install (like phpmyadmin). What's the problem and how can I fix it?


How can a capacitive touch screen be triggered without human contact?

I want to robotically touch an iPhone screen without any human intervention.   I've done some experiments but have not found a reliable solution. It seems even styluses that work through gloves still rely on the capacitive characteristics of the human body.    Carrot held by human works Carrot held in plastic clamp doesn't Pogo Stylus works held by human and held by human through clothes Stylus does not work held in plastic clamp.  Stylus works held in plastic clamp attached to human through clothes via jump lead. Stylus held in plastic clamp with jump lead dangling off seems to work most the time.   Is it possible to mimic the human element using capacitors and other components? What signal does the capacitive screen need to be triggered?  Thanks


$a^4=0$ then $1-a$ is invertible in $R[x]/(d)R[x]$

Suppose $a^4=0$, for some $a \in R[x]/(d)R[x]$, then prove that $1-a$ is invertible.   I was thinking since $a^4 = a \cdot a \cdot a \cdot a=0$, this implies that $a$ has to be zero (?) . Now we have that $1-a=1-0=1$, and $1$ is invertible, since $1 \cdot 1 = 1$. Is it really that simple or am I making a logical error somewhere?


"help robot population (to) adapt" -- can I omit "to"?

Actually I should be working on my bachelor report (it's due tonight), but hey, there are more important things like: Can I omit the to in the following sentence?     ... foster behaviour that would help the robot population (to) adapt to the MONEE environment.


Negative Slicing Step in Python Not getting Output

I am new to Python and have a problem with Negative Slicing step. So can anyone explain me Negative Slicing Step and my question is why the below code behaving like this, var1='1a2b3c4d5e6f7g8h9i' print('1st result',var1[-2:-10:-1]) #Get output print('2nd result',var1[-2:-10:1])  #No Output print('3rd result',var1[2:10:-1])   #No Output


RegEx to invalid a string if it contains a certain word in Javascript

I am making a validation for my invoiceId which basically allows all letters and numbers and the dash character (-), and it doesn't allow the word draft in any part of the string, for example:  Valid cases:   123456  InvoiceId-1234 -1234-Invoice-Id   Invalid cases:   draft-234 invoicedraft123 12345draft -draft   This is the regex I am using to validate alphanumeric characters and special characters:  [a-zA-Z0-9-]+  I have tried the negative look ahead for here are my attempts:  /^\b(?:(?!(D|d)(R|r)(A|a)(F|f)(T|t))[a-zA-Z0-9-]+$/;  This one just stops the word draft at the beginning  and /^((?!draft).)*([a-zA-Z0-9-])$;  This one allows special characters.  Is it posible to have create a regex with my requirements?


How many thousands of reputation points are necessary before the score is converted from n,000 to nk?


Install printer Canon MP280 on ubuntu 20.04

I am trying to install my Canon MP280 printer to my recently upgraded Ubuntu focal 20.04.  This printer worked out-of-the-box with Ubuntu 18.04 on same hardware (HP Folio 1040), so I am surprised to find it does not work quite so well.  I've tried two paths:   system-config-printer:  This leads me to either install a generic text-only driver, or a list of non-matching Canon printers.  Either way I cannot actually print anything.  install proprietary driver as described .  This ultimately fails due to a dependency to an arcane version of  whereas libtiff5 is the only available on 20.04.   Did Ubuntu leave my printer behind?


How to show $(a^b)^c=a^{bc}$ for arbitrary cardinal numbers?

One of the basic (and frequently used) properties of cardinal exponentiation is that $(a^b)^c=a^{bc}$.  What is the proof of this fact?  As Arturo pointed out in his comment, in computer science this is called .


I installed Ubuntu 19.04 and it's running a lot slower than Windows 7. I have 7.5Gib on an AMD Athlon ii x2 250 processor, and 64 bit.  I still have Windows 7 on my pc and I went back and Windows still runs a lot faster than Ubuntu. Please help!  *Update: After reading similar posts with problems similar to mine, what I figured out was happening was that Chrome was slowing my system down. Switched to Firefox and problem solved! Honestly, this couldn't have had a more simple solution.


Re-entering the US after an extended period in Canada

I entered the US under the Visa Waiver Program (VWP) which allows me to stay in US for 90 days. I moved on to Canada after 30 days and I am now doing an extended stay in the Canada for 80 days. I would like to re-enter the US after my trip of 80 days in Canada. As I understand the VWP will have expired by then.  Since it is an extended trip to Canada (and obviously not crossing the border simply trying to extend my VWP) can I re-enter the US and restart a new VWP?  If not, do I actually have to leave Canada (for a non-neighboring country of the US) within the 90 days of my first entry under the VWP as I am still in the system and Canada doesn't count as a permanent leave from the US?  Thanks in advance for your help


If H is a subgroup of a group G and K is a normal subgroup of G the show that K is a normal subgroup of HK.

Note K is a normal subgroup of HK  I thought I could just prove K is a subset of HK and vice versa so as to prove it a normal subgroup but then how to do this I have no idea because I keep getting hk element again while trying to do so.  I just tried to implement the steps to find HK is a subgroup of G.


How to vertically center the contents of a div?

I want to make content verticle align center with fixing the height. I've tried below css but did not worked. i dont want to use absolute postion method to use and cant change the markup.  row-fluid{display: table;}  .span7{     display: table-cell;     vertical-align: middle; }   HTML:

Pan India search

Search properties by City, Locality or Builder.

   CSS:  .carou-title {     color: #f68500;     font-family: "open-sans",Arial,Helvetica,sans-serif;     font-size: 54px;     font-weight: 300;     line-height: 70px; } .span7{   border:red solid 1px; float:left;   } .span5{ flaot:right;} .carou-sub-title {     color: #2e2e2e;     font-family: "open-sans",Arial,Helvetica,sans-serif;     font-size: 26px;     font-weight: 100;     line-height: 34px;     margin-bottom: 0; }  .row-fluid{ border:black solid 1px; width:800px; margin:0 auto; overflow: hidden;}   ex.


Where should adverbs be placed to be most easily parsed by non-native English speakers?

In English there is some flexibility in the placement of adverbs:     A: Also I ate the lasagna.   B: I also ate the lasagna.   C: I ate also the lasagna.   D: I ate the lasagna also.   There is a difference in nuance between these sentences, but I am not concerned with that here. My interest is in simple technical writing where it is most important that the reader be able to parse the sentence grammatically. That is, it should be clear that "also" is an adverb, and that "ate" is the verb being modified.  This is trickier for sentences containing long phrases:     Add numerically greater items to the list first.   Presumably the answer will depend on the native language of the reader. But I'd appreciate any specific or general advice, as I communicate daily with people who speak many different languages.  Edit: As many people pointed out, my examples are not good. Here are some examples from real life, edited to respect confidentiality:     While the attenuator is running, occasionally the bias will saturate and the output will sit at -4 V.   vs     While the attenuator is running, the bias will occasionally saturate and the output will sit at -4 V.   The reader's native language is Spanish.     In the past couple weeks we experimented with applying this segmentation to some of your images and found it made an accuracy improvement of 0.5-1.5%.   vs     We experimented in the past couple weeks with applying this segmentation to some of your images and found it made an accuracy improvement of 0.5-1.5%.   The reader's native language is Japanese.


In which scenario do I use a particular STL container?

I've been reading up on STL containers in my book on C++, specifically the section on the STL and its containers. Now I do understand each and every one of them have their own specific properties, and I'm close to memorizing all of them... But what I do not yet grasp is in which scenario each of them is used.  What is the explanation? Example code is much prefered.


I just saw a comment that stated that :    What does that mean?  The OP was just stating that if you do not want to seem like you are "farming" rep, mark the post as community wiki.  So what does that mean that it is "dead"?


The Open Mapping Theorem says that a linear continuous surjection between Banach spaces is an open mapping. I am writing some lecture notes on the Open Mapping Theorem. I guess it would be nice to have some counterexamples. After all, how can you appreciate it's meaning without a nice counterexample showing how the conclusion could fail and why the conclusion is not obvious at all.  Let $\ell^1 \subset \mathbb{R}^\infty$ be the set of sequences $(a_1, a_2, \dotsc)$, such that $\sum |a_j| < \infty$. If we consider the $\ell^1$ norm $\|\cdot\|_1$ and the supremum norm $\|\cdot\|_s$, then, $(\ell^1, \|\cdot\|_1)$ is complete, while $(\ell^1, \|\cdot\|_s)$ is not complete.  In this case, the identity $$   \begin{array}{rrcl}     \mathrm{id}:& (\ell^1, \|\cdot\|_1)& \to &(\ell^1, \|\cdot\|_s)     \\                 & x & \mapsto & x   \end{array} $$ is a continuous bijection but it is not open.  I want a counterexample in the opposite direction. That is, I want a linear continuous bijection $T: E \to F$ between normed spaces $E$ and $F$ such that $F$ is Banach but $T$ is not open. This is equivalent to finding a vector space $E$ with non-equivalent norms $\|\cdot\|_c$ and $\|\cdot\|_n$, such that $E$ is complete when considered the norm $\|\cdot\|_c$, and such that $$   \|\cdot\|_c   \leq   \|\cdot\|_n. $$ The Open Mapping Theorem implies that $\|\cdot\|_n$ is not complete.  So, is anyone aware of such a counterexample?


How to use sed with many extra characters in path?

Is it possible to use sed to replace the entire example bracketed line below? I seem to be running into trouble finding out a delimiter to use since / and many other special characters exist in the actual line I want to replace. Line needing replacing: This is a random example since the actual line I want to use is much less friendly to the eyes. [...] <example>=(a,b,c);{!@#$%^&*?/};</example> [...]  If there is any tool better suited for this please let me know. Any help would be greatly appreciated.


I am stuck in a situation here. I am migrating my email database from Apple Mail to Windows Outlook. Plenty of my emails were on the online web mail that were automatically downloaded when I signed in Outlook for windows but there are many emails that are offline and stored in apple mail. How can I migrate those emails from Apple mail to Windows Outlook?


I'm at a loss with “Dungeons and Dragons.” How does one play it, anyway?

I'm no gamer at all, so this could be like a very silly, basic question for you guys. The thing is that I always read about "Dungeons and Dragons" game (not the video game, but the normal game to play with friends that are actually gathered together). And I would like to know how to play it.  I've read that it is a book (or several ones, which is more confusing for me to understand), but I've read somewhere that it can be played as a normal "table" game, with a board, and pieces, and somewhat weird dice (or sets of dice).  Is it like a normal game, where you pull the stuff out of a box and start to play?  I don't know if any of you watch the show "The Big Bang Theory", but I think they have played the game in a recent episode, and it looks just like a regular game.  I've Googled it for more information, but I haven't found anything as basic as I need, because I've never played a role game (except in a video game).  I just want to learn how to play, so I can get my friends into it to play it each time we get together.


If two CW complexes have isomorphic homotopy groups, are they homotopy equivalent?

I denote with $\pi_{i}$ i-homotopy group. If I have $X,Y$ CW-complex and $\pi_{i}(X)=\pi_{i}(Y)$ for all $i$. Can I say that $X$ and $Y$ are homotopic equivalent? What type of equivalence is it?


Transfer procedure for non-connecting flights in Ataturk Istanbul (IST)

I have an international flight to Istanbul Ataturk airport and then another international flight from there. My flights are not connected but both are with Turkish Airlines. I don't know the procedure for this sort of flights. How should I get my boarding pass and what should I do? Also am I considered as a transit/transfer passenger?  Thank you for you help!


How to detect device in template file in drupal 7

I want to get the device whether is it Mobile,Tablet,Iphone or desktop based on the screen width. I know about breakpoint and picture module. But I need to change some HTML based on that condition. How can I get the condition in tpl file.


Is there any package to create bullet gauge graphs?

I am looking for a package to create bullet gauge graphs, but I couldn't find any.  A bullet graph looks like this:    and an ample description/specification can be found   It is available in Mathematica 9 ()  Is it possible create this kind of graphs in a easy way with TeX (like Matehmatica 9 or similar)?


Why can't light pass through walls but sound can?

When I sit in a room I can hear voices coming from the adjacent room but the light in adjacent room does not enter my room i.e. sound waves travels through the wall but light waves can't. Why?


I wanted to amplify the effect of specifying the font size. So I tried: {\tiny\tiny Super tiny text!} But that doesn't seem to work. I needed suggestions to achieve the same goal.


ErrorCode 180008 - Unable to queue Triggered Send request. There are no valid subscribers

I'm trying to send an email by ET rest api in Java.  I already successfully sent a SMS and got a token in response, but an error is triggered with emails.   Here is the JSON I send :  { "To":     {"ContactAttributes":         {"SubscriberAttributes":             {"FirstName":"West"}         },         "Address":"me@mail.com",         "SubscriberKey":"me@mail.com"     }, "OPTIONS":     {"RequestType":"SYNC"} }   And here is part of the response I get back :   "hasErrors": true,   "messageErrors": [     {       "messageErrorCode": 180008,       "messageErrorStatus": "Unable to queue Triggered Send request.  There are no valid subscribers."     }   ]   I believe I forgot to send some data but can you tell me what ?  BR,


Awaiting Reviewer Selection AFTER Awaiting Reviewer Scores?

I submitted a manuscript to BMJ Open about a month ago and have checked status every day. The status changed from "Awaiting Reviewer Reply" to "Awaiting Reviewer Scores", then stayed like that for a couple of weeks and now today the status is "Awaiting Reviewer Selection". Is this not backwards?  Thank you, Sara


How to resolve this fatal error '2006 MYSQL server has gone away'?

I'm trying to send 750 emails through cron job. After it sends nearly 40 emails, like after a few minutes it throws this error,       Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 2006 MySQL server has gone away' in /public_html/ehs/includes/database/database.inc:2171 Stack trace: #0 /public_html/ehs/includes/database/database.inc(2171): PDOStatement->execute(Array) #1 /public_html/ehs/includes/database/database.inc(683): DatabaseStatementBase->execute(Array, Array) #2 /public_html/ehs/includes/database/database.inc(2350): DatabaseConnection->query('select name, d...', Array, Array) #3 /public_html/ehs/sites/all/modules/elysia_cron/elysia_cron.module(424): db_query('select name, d...', Array) #4 /public_html/ehs/sites/all/modules/elysia_cron/elysia_cron.module(632): elysia_cron_get('rules_cron', false, 'running', 0, false) #5 /public_html/ehs/sites/all/modules/elysia_cron/elysia_cron.admin.inc(753): elysia_cron_is_job_running('rules_cron') #6 [internal function]: elysia_cron_execute_page_cleanup() #7 {main} in /public_html/ehs/includes/database/database.inc on line 2171   I have tried upgrading max_allowed_packet to 500M under [mysqld] in my.ini and also php_memory_limit to 1024M, but still it didn't improve anything. Is there any other possible thing I could do to resolve it?  FYI, I'm sending a view in emails to all the users using Insert view. The views are generated per user basis, and that involves aggregation operations and computed fields.


How do you export Windows 7 AQS search to file?

My question is identical to this question that has already been asked back in 2011, but that does not have any answers:    I'm hoping that someone may have an answer now...  Similar to outputting the results of a command line command to a text file with the greater than sign, I would like to output the results of an AQS search to a file.  Any common parsable file format will do such as CSV or TXT.  My Win 7 AQS query is: "datecreated:4/21/2014 OR datemodified:4/21/2014" and I want to output the list of resulting files in a list file.    I am open to ideas on doing this query in a scripting language such as Powershell, Python, or even a BAT file, if anyone has such ideas.  Thanks!


How to check which files have been copied to the main hard drive and which ones have not been copied?

I formatted my MacBook main drive some months ago and, in order to not lose data, I created a .dmg image of the hard drive before the formatting procedure and saved it to an external device.   Then, some days ago, I started a kind of data restoring, coping most of the backup files back to the main drive.   Now, I would like to check if all these mentioned files have really been copied back to my Macbook. Due to this, I am looking for an application theoretically able to analyze the files (in particular, their name, hash, etc.) contained in my external drive and find corresponding files on my Macintosh hard drive; if a  corresponding file is not found, the file should be highlighted. If a similar application actually exists, can you suggest it to me?  If there is not an application with the features above explained, can you suggest me a brief Bash script or AppleScript able to do that? I'm not familiar with both these languages, but I have a little Batch scripting background and I was thinking about some statements - e.g. the for loop, md5, etc. - which generate a filename plus MD5 checksum list for both drives, and which find correspondances. What about this? Can you suggest me some examples?     Note: This is not the same as . The new data structure on the main drive is a bit different compared to the previous one, which is stored in the external drive. Due to this, a standard folder/volume comparison with a dry rsync run is not exactly what I am looking for.


How large a span can a 4x6 hold safely for a swing set.?

I have a 4x6x16 to use for the header of a swing set. I was going to span 12 ft between supports and cantilever 4 ft but I now would prefer to put the supports at each end. I would hang 4 swings over the 16-ft span. Assuming 200 pounds per swing, would this be safe. I plan to use 12-ft splayed legs.


Is there a way to select a file in Windows and get its file path with one shortcut?

Is there some application for selecting a file in Windows Explorer, and copy its file path to the clipboard, with one shortcut?   Does Windows have some built-in tool for it?


When is an elected moderator shown as "departed" on the election page?

On Philosophy, one of the elected moderators has since deleted their account, and they're shown as "Departed" on :        However, , one of the elected moderators still has their "previous" flair shown in place, despite the fact that they've already resigned and left the Network completely in the wake of the recent events.        , the same happens (old flair remains), but without the clickable <a> around the image, and with a noticeable :        This looks inconsistent, so when exactly will a placeholder image showing "Departed" replace the flair for a departed election winner?


"When this battle will be finally over" - shouldn't it be "When this battle is finally over"?

I read something in the manga:     When this battle will finally be over... take me out to eat some tasty yakiniku.   "when...will be" seems strange to me, isn't it better saying "When this battle is finally over"? Since this is translated from Japanese, I am not sure whether its grammar is correct or not.


What's the correct implication between $\forall x(\,P(x) \vee Q(x)\,)$ and $\forall xP(x) \vee ∀xQ(x)$?

Suppose we have two statements:  $$P_1= \forall x(\;P(x) \vee Q(x)\;)$$  $$P_2= \forall xP(x) \vee ∀xQ(x)$$  I would like to ask about correct implication between those statements. I know the difference between those statements but I have problem to choose correct implication.


I'm on Ubuntu 20.04, I did sudo apt update && sudo apt install -y pcscd ... Reading package lists... Done Building dependency tree        Reading state information... Done Package pcscd is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  It's strange because it shows here:


Lightning/Aura components: aura attribute default sobjectType gives error for Standard Objects

sorry for almost duplicate - but I have not enough reputation yet to comment on:   I am having the same issue with Standard Objects:  <aura:component > <aura:attribute name="acc" type="Account" default="{'sObjectType':'Account', 'Name':'Account123'}"/> </aura:component>   Trying to save, I get      "Failed to save undefined: Unable to read SObject: Source"   To my understanding of the documentation, I do not need any namespace for Standard Objects. I tried all combinations nonetheless to no avail.   Tried several standard Objects as well. All produce the same error with exception of sObjectType Event. The following can be saved but does not work:  <aura:component > <aura:attribute  name="demo"  type="Event"  default="{'sObjectType':'Event',  'Subject':'Account123',  'WhoId':'00300000121aAAB'}"/> {!v.demo.WhoId} </aura:component>


Prove that {$f_n$}converges uniformly on compact subsets of $\Omega$ to a holomorphic function

This particular question was asked in an assignment which I am trying and I could not solve it due to pendamic .  Question : Let $\Omega$ be a region ,{$f_n$} $\subset H(\Omega)$ and assume that {$f_n$} is uniformly bounded on each compact subset of $\Omega$ . Let C be the set of points where {$f_n$} is convergent . If this set has a limit point in $\Omega$ then show that {$f_n$} converges uniformly on compact subsets of $\Omega$ to a holomorphic function .  Let C ={$x_n$} and it converges to x ,as function is holomorphic so continuous which implies that On C f($x_n$) converges pointwise to f(x).But how to prove that this convergence is uniform on compact subsets of $\Omega$ ?( I already know that this will be sufficient to prove that f is holomorphic) Kindly guide


Performance difference between dot notation versus method call in Objective-C

You can use a standard dot notation or a method call in Objective-C to access a property of an object in Objective-C.  myObject.property = YES;   or  [myObject setProperty:YES];   Is there a difference in performance (in terms of accessing the property)? Is it just a matter of preference in terms of coding style?


Does a HyperThreaded Quad Core Processor Actually Have 8 "Cores"

I have an Early 2011 Quad Core i7 Mac. Due to hyperthreading, a lot of programs report 8 "cores".  If I were to write a program that executes in parallel, could I kick off 8 instances of this program or just 4?  I get I can start as many threads as I want, but would I be seeing 4 or 8 instances of the program execute in parallel?


I had 12.04LTS and recently decided to upgrade to 13.10. 12.10 wouldn't ever start up and all I could access was the GRUB and the terminal, so I upgraded to 13.10 from there. I have a cd with 12.04 on it but I do not have the others on a disk and I cannot make one because I do not have a cd large enough to make one. After 13.10 was installed, it worked alright. There were black bars around every field and I could not acess the terminal at all. I restarted it and after I put in my password, the screen goes blank and after a moment or so there would be two boxes that say something along the lines of a system problem being detected and I could move the cursor to click either cancel or report the problem. Nothing would happen after that, but by using ctrl + alt + t I could access the terminal. I looked at a few other topics that others seemed to be having the same problem as I did but all of the solutions that were being suggested didn't work for some reason. I don't want to reinstall the system because I couldn't create a backup of my files before this happened.


How can I draw a TikZ element multiple times against a shaded background?

If I have two tikzpictures drawn:  \documentclass{article} \usepackage[margin = 1in]{geometry} \usepackage{tikz} \usetikzlibrary{decorations.pathmorphing,calc,shapes,shapes.geometric,patterns} \begin{document}  \tikzset{treetop/.style = {decoration={random steps, segment length=0.4mm},decorate},trunk/.style = {decoration={random steps, segment length=2mm, amplitude=0.2mm},decorate}}  \begin{tikzpicture} \foreach \w/\f in {0.3/30,0.2/50,0.1/70} { \fill [brown!\f!black, trunk] (0,0) ++(-\w/2,0) rectangle +(\w,-3); } \foreach \n/\f in {1.4/40,1.2/50,1/60,0.8/70,0.6/80,0.4/90} {    \fill [green!\f!black, treetop] ellipse (\n/1.5 and \n); } \end{tikzpicture}  \begin{tikzpicture} \shade[bottom color=cyan!60!black, top color=blue!20!white] (0,0) rectangle (10,10); \end{tikzpicture}  \end{document}     How could I use the first tikz picture within the second? Can I define the first picture as some variable and then place this variable within the second picture and have the option of defining its exact location (x,y) and its size? For example, if I wanted to place the tree in the middle of the rectangle (5,5) but make the size of the tree half its current size. How would I do this


What are the advantages that come with knighthood in Westeros?

Often in the story we see characters be promised knighthood. This usually seems to be a big deal to those that receive it. For example after the battle of the Blackwater, Bronn clearly reminds people of his new status. Surely there must be more to knighthood than simple social status or else people wouldn't make such a big deal of knighthood.  What are the advantages a man gains when knighted? Does he gain lands? Or simply prestige?


"which I use very little" Or "which I use it very little"

Should we use the pronoun "it" with "which"? Which one of the following is correct?      I should sell my car, which I use very little.   Or      I should sell my car, which I use it very little.


In my downloads I have xampp-linux-x64-7.1.7-o-installer.run, but when I click it it tries to run and then throws an error saying I need to become a super user as root privileges are required.  I tried typing sudo in the terminal and then dragging it into the terminal, same results. Can you help me use this app?


Analogue of $\varepsilon_0$ for gravitational mass?

In electric fields, we usually define the dielectric constant in vacuum as: $$K_C=\dfrac{1}{4\pi\varepsilon_0}$$  Why don't we define the gravitational analogue, "digravitational" constant: $$\Delta_0=\dfrac{1}{4\pi G_N}$$  Is that constant used and have someone defined it before? Surely, it is, but I would like a reference...


Filter Entity reference based on attribute

Here's my situation: I have a "Project" content type. I want to be able to add employees to a project based on their role with a select or multi-select drop down widget with unlimited number of values. So I can add multiple people with different roles.  I would like to be able to choose a Role first - say a "designer" - and then have the drop down for the entity reference only show just the roles for designers.  Project   --> choose Role "designer"   --> choose designer "John Doe"   Add next person   --> choose Role "??"   --> choose person "??"   What are possible ways to do this?


If you have a laptop running XP that is able to connect to a wireless network fine, but you don't know the password it's using, is there any way to find it out so that a second laptop can also connect?


Can we get a better wording for protected questions?

For context, see .  In essence:     "This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation (not including the ) on this site."   Suggested addition to existing message is in bold.


I want to include some pages of a pdf file into my document and wrap them into a figure with a caption for example (with pdfpages)  \begin{figure}[h]    \centering          \includepdf[pages={1,3,2},nup=2x2]{test.pdf}        \caption{Test}  \label{fig:Test} \end{figure}   However this doesn't work. So is there another way to do this?