I know there is a lot of discussion regarding whether a hard drive should be kept running  at all times or turn off after a certain time I purchased a Seagate HDD (), and currently I have it set to turn off after every 1 minute because I do not use it often (I access it once every 1 hr.). I don't really mind the power consumption I just really care about longevity cause I do not have a backup system like RAID. so is this a stupid idea or is it alright?


Do you need the “why” in “That's the reason why”?

I often hear people say things like “That's the reason why I....”  As far as I know, “That's the reason I...” would still be grammatically correct, but I can't find anything stating one way or the other.  Can someone please tell me whether I'm right or wrong?


Can't update 12.04 LTS - "404 Not found"

can you please help to resolve the issue?  W: Не удалось получить http://archive.ubuntu.com/ubuntu/dists/precise/restricted/binary-i386/Packages  404  Not Found [IP: 91.189.91.13 80]  W: Не удалось получить http://archive.ubuntu.com/ubuntu/dists/precise/universe/binary-i386/Packages  404  Not Found [IP: 91.189.91.13 80]  W: Не удалось получить http://archive.ubuntu.com/ubuntu/dists/precise/multiverse/binary-i386/Packages  404  Not Found [IP: 91.189.91.13 80]  E: Некоторые индексные файлы не скачались. Они были проигнорированы или вместо них были использованы старые версии.   With curl this URL works well:  curl -I http://archive.ubuntu.com/ubuntu/dists/precise/restricted/binary-i386/Packages.gz HTTP/1.1 200 OK Date: Tue, 07 Oct 2014 10:29:43 GMT Server: Apache/2.2.22 (Ubuntu) Last-Modified: Wed, 25 Apr 2012 22:42:47 GMT ETag: "ae0aaa-2394-4be88971e07c0" Accept-Ranges: bytes


Getting black spots in blender render, render

I'm using Blender 2.79. I've looked at a number of possible answers on this, but none seem to help solve the problem. I'm getting these weird black specs in renders when using blender render. I've checked for Z-fighting or duplicate geometry but there is none. These are extremely simple, low poly models that have been duplicated and only use one basic color as it's material. There are only two unique models here, and the rest are just simple rotated duplicates of each-other.    I have been able to get the issue be less noticeable by changing world -> gather: from raytrace to approximate. However I would like to know what's going on so that I can keep the setting on raytrace. As you can see below the same two trees have an odd speckled look to it, which doesn't make sense because there is just a basic color as it's material/texture. This does not show up using cycles render. (Again, I do want to use blender render, so looking for a fix)


Show the series $ \sum_{j=1}^{\infty} \frac{(2^j)+ j}{(3^j) - j} $ converges.  I have looked at an answer , but I do not understand what these results give us. For example, in the first answer:     $$\frac{2^j + j}{3^j - j} \le \frac{2^j + 2^j}{3^j - j} \le \frac{2^j + 2^j}{3^j - \frac{1}{2} 3^j}$$   What do we do with the last expression? I understand we want to compare it with something, but don't see what.


How many even integers between $100$ and $1000$ have distinct digits?


How to make sense out of the $\epsilon-\delta$ definition of a limit?

The informal intuition for the limit of a function is this:     What is the value of the function $f$ as $x$ gets infinitely close to $c$?   How on earth does this monster  $$ \lim_{x \to c} f(x) = L  \iff  (\forall \varepsilon > 0)(\exists \ \delta > 0) (\forall x \in D)(0 < |x - c | < \delta \ \Rightarrow \ |f(x) - L| < \varepsilon)$$ capture our intuition?  I want the answer to explain and motivate every bit of this formal statement. Remember: I am able to parse the statement, I just don't see how it captures our informal intuition.


Why can we not observe Faddeev-Popov ghost fields?

I know that ghost fields de-couple from the gauge fields in abelian QED. But my question is how does decoupling prove that we cannot observe ghost fields?


Chi-square test for more than 2x2 tables?

There are there groups (colA, colB, colC) representing three different measurement methods. The question is whether there is a difference between the three methods. To decide the question we perform experiments and measure the same thing with each method. The output of each method is a label not a value on a numeric scale. In addition, we do not have a control group so we do not know which method's output is the right one in the experiment. I solved the question in the way below  but I became uncertain whether it is a correct solution. I might have oversimplified the problem. Consequently, the chi-square approach used tests something else not what we want.  Data:             colA,    colB,    colC experiment1 label1,  label1,  label2 experiment2 label3,  label1,  label3 experiment3 label4,  label4,  label2 experiment4 label5,  label4,  label5 ...    My first approach, probably oversimplified:   As we do not know which label is correct and which not, we regard at first all the outputs of method A correct and compare them to the other two columns and count the same labels in the same experiments in the other columns, then we regard all the outputs of method B correct and then method C. So we get the label count below:   I. colA regarded as correct colA(4) colB(2) colC(2)  II. colB regarded as correct colA(2), colB(4), colC(0)  III. colC regarded as correct colA(2), colB(0), colC(4)   Then we compute a chi-square test for each, here II. and III. are the same. (There are more than 5 expected values in each column it is just the example to highlight the problem.) This way we get three p values for each test, from which we select the highest one to be on the safe side and decide whether the deviations between columns are likely to be caused by chance only.    My second approach would probably be:   The data same data transformed in a different format:                          label1, label2, label3, label4, label5 methodA (earlier colA)       1,      0,      1,      1,      1, methodB (earlier colB)       2,      0,      0,      2,      0, methodC (earlier colC)       0,      2,      1,      0,      1,   Here the expected values for each label would be greater than 5 with the real data. However, we do not want to test whether the distribution among the labels are caused by chance only but whether there is a difference between the methodA, methodB and methodC. Can Chi-Square be used here? What other tests would you propose to use to see whether there is a difference between the three methods?  What would be your solution? Thank you also in advance for any comments.


Is a visa needed for a stop over in Canada

I'm a UK national passport holder living in Peru, do I need a Canadian visa for a 3/4 hour stop over to connect to a UK flight?


When I want to move a file to the Trash, Nautilus give me an message saying this:     You can't move example.file to the trash can. Do you want to remove it immediately?   I can give you this photo but it's in Spanish


Integer solutions to combinations of floating point numbers

Imagine two kids each sitting in the center of their own tilt-a whirl®, each holding steady a flashlight (or laser) whose beam is parallel to the deck.  Each machine rotates and precesses (we'll leave out nutation) at different, real, rates.  How do we determine the least number of rotations to alignment, for each kid. If you prefer another analogy: Saturn and Jupiter orbit with different (real) periods.  How many orbits for each until conjunction in precisely the same position in space?  Simplify by assuming circular, observer-centric, orbits. specifically solutions to: aC1 + bC2 = N where a, b, N are positive integers of your own choosing and C1, C2 are constant, unique, positive, non-integer(real) numbers where C1 < C2. I am hoping to avoid rigorous computational methods involving modulus tests. Hope I clarified the ambiguities. Thanks, @DonThousand the Bezout identity looks interesting.


Getting "Not available for deploy for this organization" when creating a package version with translations. Is there a particular reason?

I'm getting the following error running the command to create a new version of my package. In this version I just added the translations for Brazilian Portuguese.     ERROR running force:package:version:create:  pt_BR: Not available for deploy for this organization   The scratch org definition file is quite simple:  {   "orgName": "Callout Company Co.",   "edition": "Enterprise",   "features": [],   "language": "en_US",   "settings": {     "languageSettings": {       "enableEndUserLanguages": true,       "enableTranslationWorkbench": true     }   } }   No idea of what could be causing this issue. Translations and Custom Object Translations are two fully supported metadata types (as seen in the ).


Proving $\forall x (A\to B) \to(A \to \forall x B):x\notin \mbox{free}(A)$ in a Hilbert system where it is not an axiom

I have no idea whether this question is way too specific or whether something similar has already been asked (we still need to work out a way to search for formulas I guess).  Anyways here I go: I want to show that some choice of (logical/quantifier) axioms for a Hilbert derivation system (first order logic, one sort) can prove all the axioms of some other choice.  I have the following at my disposal:  Axioms:   (fot): first order tautologies (i.e. inserting formulas for the propositions in a propositional tautology) (aax): $\forall x A[x] \to A[t]$ (where $t$ is any term and we assume no conflicts with free variables getting bound, $[...]$ denotes replacement)   Inference rules:   (mp): modus ponens (aru): $\frac{A\to B}{A\to\forall x B}$ where $x$ is not free in $A$.   I want to show that this system proves the formula:  $\forall x (A\to B) \to(A \to \forall x B)$ for $x$ not free in $A$ (which I will assume in the following).  This is of course very similar to (aru), but I want this formula, which is of course a stronger statement. I am quite lost here.  Here are my failed attempts: With (aax) and (aru), I easily get the provable rule $\frac{\forall x(A\to B)}{A\to\forall x B}$ which is the formulation of my goal formula as a rule (weaker).  I even get   $$\frac{\bar\forall(A\to B)}{A\to\forall x B}$$ where $\bar\forall$ denotes the universal closure of the following formula.  Using the Deduction Theorem (which I proved for this theory) I get that my system proves $$\bar\forall(A\to B)\to(A\to\forall x B).$$ but that is not exactly what I am looking for.


Polynomial ring with integral coefficients is integral

Let $B$ be a ring and $A\subset B$ a subring. Assume that $B$ is integral over $A$. I have to prove that $B[X]$ is integral over $A[X]$.  I tried writing down an integral relation for $f(X)\in B[X]$ over $A[X]$ but I don't really think that's the right way. Any hint?


Error:The ISCHANGED function cannot reference the RecordType.Id field

I am trying to write a workflow that fires when a record type is changed to another type in the Contact Object.  I saw a similar question asked, and I tried that solution, but still got the same error. I have tried RecordType.Name and RecordType.Id with the same resulting error message.  This is what I have so far:  IF(  ISCHANGED(  RecordType.Id  ),  IF(  CONTAINS( RecordType.Id , "Contact"),False) )   Thanks! Carmen


Word which refers to a Position and Timestamp pair

I'm trying to find a term that refers to both a position and a timestamp associated with that position. "Position in time" is a common phrase. Are there more technical terms?  A position and timestamp would be expressed like this: a car was at 40.7484° N, 73.9857° W at Apr 23 15:08:16 UTC 2018  I found this question which has a lot of terminology for referring to these things individually:


"Making a Murderer" fans had better get their boots on.   ()  Can you explain to me what fans should do in the above sentence? I presume that "get their boots on" is used in the figurative sense, and given the context I would say that it means something to that effect that the fans should spring their attention but not sure.


How to make Realistic Hand-like Camera Movement?

I am creating an animation, and I want the camera to move with hand-like motion as it does in real life if recorded with hand. Not fixing the camera to one place makes it move with a slow type of vibration.  My question is actually is different I want Motion that occur in real life. I don't just want simple camera shake. Quick Demo:   (Camera Motion Starts after first Scene after 00:48 seconds)  Any Answer Will Be Appreciated.


I am converting an int to a double by dividing the integers by powers of 10. For integers with 7 or greater digits, it appears that rounding is performed when I cast an int into a double. Why is this happening and how can I avoid this rounding?  #include <iostream> using namespace std;  double add_decimals(int x, int decimal_places) {     double ret = 1.0 * x;     cout << "x= " << x << endl;     cout << "ret before changes= " << ret << endl;     for (int i = 0; i < decimal_places; ++i)     {         ret /= 10;     }     return ret; }  int main()  {     double d = add_decimals(1234566, 2);     cout << "d= " << d << endl; }


Right or left? When the teacher says: "If you look at the diagram on the left hand side, you will solve this question!"(In a position like this?)

● Right or left? When the teacher says:      "If you look at the diagram on the left hand side, you will solve this question!"    Is it the teacher's left hand side or students' left hand side?  Imagine, you are in a position like this:    Where is right? Where is left? (You can use the colours).    The example I have in mind is this . There is a speaker off-screen. Referring to this image, he says        And cardiac muscle has structures called intercalated disks, which if you look at the diagram on the left-hand side, it explains what these intercalacted disks actually are and what their functional role is.


Compositions of 4 positive integers summing up to 100

Given four positive integers $x$, $y$, $z$, $t$ such that $$x+y+z+t=100$$    Find the number of compositions of $100$ having four positive summands $x$, $y$, $z$, $t$. Note that $x$, $y$, $z$, $t$ do not have to be different.


is openstack swift required for juju integration?

For juju integration with openstack, is swift object store a requirement?   I have a private setup with nova-compute, nova-network, keystone and glance. But don't have swift. Exact question had been asked previously, but it's not clear if integration is possible without swift.


In Java sometimes method parameters act like passed by reference, even though they are not.  what method are they passed by?  I know java is always passed by value. But is it possible that it could act like pass by reference


By default blender allows you to scale past 0 - how do I prevent this?  i.e. it's common in other 3D modelling software to resize a set of vertices against an axis to align them - however this isn't possible when negative scaling is enabled.


An example of non-homeomorphic surfaces, $S_1, S_2$, such that $S_1 \times [0,1]$ is homeomorphic to $S_2 \times [0,1]$

I'm just reviewing the questions I couldn't answer in an exam I gave for my Topology course, one of the questions asked me the following:  To give an example of two compact connected surfaces $S_1, S_2$, possibly with boundary, such that $S_1$ is not homeomorphic to $S_2$, but $S_1 \times [0,1]$ is homeomorphic to $S_2 \times [0,1]$.  I would be grateful if someone could give me an answer, or even an approach to this problem, because I'm drawing a complete blank


Scale "Text Size" (not Font Size) of Entire Document

I want to scale the entire contents of a document to make them smaller. Changing the font size the usual way is not desired, as this changes how the text looks:     In other words, I want something similar to \scalebox{}{} or \resizebox{}{} — to change the size of the text without changing its font. I'm saying "size of the text" instead of "size of the font" or "font size" to clarify the difference from the readily available mechanism to change font size, which has the undesired side-effect of also changing the font itself ever so slightly.  What I can do, of course, is to just make the page bigger (i.e. use e.g. a3paper instead of a4paper, an approach taken ), but that seems like a dirty solution (if you'd print it out on A4 paper, however, it'd give pretty much exactly the desired output). I also don't want to change my \documentclass to KOMA-Script or such, as done .  I tried \relscale{} from  and \scalefont{} from the  package, but these just seem to change the font size the usual way (as opposed to scaling the text directly, i.e. linearly scaling/changing font size). \resizebox and \scalebox  (manual or automatic), and I think they're not really intended made for modifying an entire document.  Ideally, the answer would behave just like e.g. \small or \footnotesize, in the sense that it'd be a switch that would affect its entire scope and work with math-mode, multicols, tabular, etc.  I hope this is not a duplicate, I couldn't find any answer to my question here (though, as mentioned above, there are a few similar questions). MWE not really applicable, but I'm using \documentclass{article} and compiling with LuaLaTeX (ideally, though, the answer would work with other documentclasses and with pdfLaTeX as well).  Edit: Tried to improve the question by rephrasing or clarifying.


Server Socket throwing this error and app completely crashes. I called this thread in my onCreate() method . When activity is running for the first time it is good but after finishing and get back to this activity is giving below error.        'java.net.Socket java.net.ServerSocket.accept()' on a null object reference    private class ClientConnectionThread implements Runnable {         ServerSocket serversocket;          public ClientConnectionThread(){             try{                 serversocket = new ServerSocket(5005);                 serversocket.setReceiveBufferSize(1024*1024);                 Log.v("BoardCastRunning","BoardCast Server Waiting");             }catch (IOException ex){                 Log.v("BoardCastError",ex.toString());             }           }          @Override         public void run() {              while(true){                 try{                      streamClientSocket = serversocket.accept();                     Log.v("BoardCast","New Connection");                     videoBroadcastSockets.add(streamClientSocket);                     runOnUiThread(new Runnable() {                         @Override                         public void run() {                             Utils.shortToast(context,                                     "Client connected from: "                                             + streamClientSocket.getInetAddress().getHostAddress()                                             + " " + streamClientSocket.getPort());                           }                     });                 }                 catch(IOException ex){                     Log.v("BoardCastError",ex.toString());                 }               }         }     }


When are packages released on packages.ubuntu.com?

I have often observed this: A release of a package has long been made on Github, but if I upgrade it with apt, it is not found. Example:  : They show that 3.9 has already been released for Ubuntu. sudo apt-get install --upgrade libgeos-dev, however, gives me 3.8.0-1build1. Is there a special cause for this? Why do not people upload their code so that it can get installed by apt? Thanks.


% What to do here   \begin{document}   This is good integration.   $$\displaystyle \int x dx = \frac{x^2}{2}$$  \end{document}    I don't know much about LaTeX so I am going to need some spoon feeding.   I want text to appear in normal font. But math to appear in AMSEuler Font.  I don't want to make any changes inside the document.


Would it be appropriate to upgrade [synonymizer] badge from bronze to silver?

I noticed that it is quite difficult to earn the [synonymizer] badge, and very few indeed earned it on SO.  Would it be appropriate to upgrade this badge from bronze to silver?


Deleting files older than 30 days based on filename as date

If I have a folder of files with their filenames as the date they were created:  2019_04_30.txt 2019_04_15.txt 2019_04_10.txt 2019_02_20.txt 2019_01_05.txt   How would I compare the files names against todays current date  $ date "+%Y_%m_%d" >>> 2019_04_30   If the file names date is greater than 30 days then delete it. I would expect to end up with  2019_04_30.txt 2019_04_15.txt 2019_04_10.txt   I don't have to follow this naming convention, I could use a more suitable date format.


What is the world's biggest Schrodinger cat?

How big is it by a truly quantum measurement?  I am thinking of comparing Science magazines "Breakthrough of the Year"  (BYOT) with the Zeilinger buckyball.  The BYOT is a piezoelectric mechanical oscillator (PO) the size of the cross section of a human hair. It is placed in a superposition of its ground state and its first excited state. The well known buckyball experiment is a two slit experiment using buckyballs. (A third candidate might be a macroscopic Josephson junction oscillator conducting both ways at once.)  I have made some basic calculations. For instance, the BYOT contains about 10^14 atoms compared to 60 or 72 atoms in the buckyball. By this measure the BYOT is bigger by a factor of about 10^12.  On the other hand, the two slits are separated by 50 to  100 nanometers, or 10^-7 meters.  In its first excited state, the top of the BYOT PO moves about 10^-15 meters per cycle, according to my calculations. By this measure the buckyball wins by a factor of about 10^8.   Calculating energy of the moving parts, I find a much closer horserace, but the buckyball is about 100 times bigger.  However, none of these calculations is at all quantum mechanical (QM). ArXiv lists at least five papers proposing truly quantum mechanical measures of the size of a macroscopic Schrodinger cat. The most recent is Lee and Jeong  which references the other four. Can someone competent (or expert) in QM apply one or more of these quantum measures to the BYOT and the buckyball and tell me which is larger? TIA. Jim Graber


My LaTeX was compiling perfectly a minute ago. I wrote some more, added in a citation - now it won't read any of my citations, and is giving me error messages and not allowing me to make a document which I need for a test.  It repeats this:  [1 Non-PDF special ignored!{C:/Users/riley/AppData/Local/MiKTeX/2.9/pdftex/config/ pdftex.map}] [2] [3] [4]  ! LaTeX Error: There's no line here to end.  See the LaTeX manual or LaTeX Companion for explanation. Type  H <return>  for immediate help.  ...                                                l.138 5        \\ ?


I have been using a local database on my laptop for the last view weeks. But today I cannot access it. I get the error:      A network-related or instance-specific error occurred while   establishing a connection to SQL Server. The server was not found or   was not accessible. Verify that the instance name is correct and that   SQL Server is configured to allow remote connections. (provider: Named   Pipes Provider, error: 40 - Could not open a connection to SQL Server)   The system cannot find the file specified"  The database connection is: my-pc.C:\DB\DBV8.1.1.MDF.dbo


How to find out all the permissions that belong to a specific server/ database role in SQL Server?

I can separately query all the server or database level permissions, but I want to know other thing. What server role do the given permissions exactly belong to? For example I want to see all the permissions belonging to securityadmin server role, hence I'll be able to understand what privileges the role has. I want the same for database roles. Can I find this info in SQL Server system tables?  Thanks


Is there a general algorithm for calculating the amount of time to roast meat?

Often, when you buy meat from the store, it comes with guidance on how long the meat needs to be roasted, presumably calculated as a function of its weight. Is there some well known general algorithm for calculating how long to roast various types of meat (e.g. for display on packaging). Perhaps something like:  roasting time = c * weight of meat  Assuming the algorithm is this simple, is there some reference of ideal oven temperatures and scaling constant c for each type of meat (chicken, beef, pork etc)? Relatedly, is there a well known set of algorithms for converting between say, fan oven, AGA, and/or gas mark standards for oven temperature? I'm assuming these facts must be well known in meat supplier's product development departments, due to the labeling I see on meat that I buy. However, having Googled it a fair bit, I can't find these details summarized anywhere.


Evaluating the definite integral $\int_0^{\infty} \frac{(\ln x)^2}{x^2 + 1} dx$

I have two integral questions listed below:  $$\int_0^{\infty} \frac{\ln x}{x^2 + 1} dx \qquad (1)$$ $$\int_0^{\infty} \frac{(\ln x)^2}{x^2 + 1} dx \qquad (2)$$  The first one, I've solved it, by separating the integral into integrals over $0$ to $1$ and over $1$ to $\infty$; with substitution, it becomes zero. But the second one wasn't that easy. Can someone give me help? Wolfram alpha says the answer is $$\frac{\pi^3}{8}.$$


How to get String from another activity?

I just wanna make my imageview load from url when it click then displaying in another activity.  Here my adapter class       private void openDetailActivity(String name, String propellant, String desc, String imageUrl) {     Intent i=new Intent(c, DetailActivity.class);      //PACK DATA     i.putExtra("NAME_KEY",name);     i.putExtra("PROPELLANT_KEY",propellant);     i.putExtra("DESCRIPTION_KEY",desc);     i.putExtra("IMAGEURL_KEY",imageUrl);      c.startActivity(i); }   then opened in Detail acitivity with this code   Intent i=this.getIntent(); String imageurl=i.getExtras().getString("IMAGEURL_KEY");         touchimg = imageurl;   and i make setonClicklistener, when it clicked so the image can load with full size in another layout. Here the code               Intent i = new Intent(DetailActivity.this, enlarge.class);             i.putExtra("IMAGEURL_KEY",touchimg);//PENTING UNTUK AMBIL DATA             startActivity(i);   And the last, this class below for catch url image to display  enlarge.class  String touchimg  = getIntent().getExtras().getString("IMAGEURL_KEY");  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_single_touchimageview);     ImageView imglarge1 = (ImageView) findViewById(R.id.imglarge);     Picasso.with(this).load(touchimg).placeholder(R.drawable.placeholder).into(imglarge1);  }   And i got error with this log message :    at dalvik.system.NativeStart.main(Native Method)                                                                       Caused by: java.lang.NullPointerException                                                                          at com.newsapp.unair.rizki.enlarge.<init>(enlarge.java:18)                                                                          at java.lang.Class.newInstanceImpl(Native Method)                                                                          at java.lang.Class.newInstance(Class.java:1208)                                                                          at android.app.Instrumentation.newActivity(Instrumentation.java:1078)                                                                          at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2116)   How can i fix it?   i've check with Log.d, when i put Log below  get,Intent like this   Intent i=this.getIntent();     String imageurl=i.getExtras().getString("IMAGEURL_KEY");     touchimg = imageurl;     if(touchimg != null)         Log.d("TAG", "tidak null");     else         Log.d("TAG", "image null"):   and the Log said "tidak null" or not Null, but if when the Log.d i put inside onClick like this :  Intent i = new Intent(DetailActivity.this, enlarge.class);                 i.putExtra("IMAGEURL_KEY",touchimg);                 startActivity(i);                 if(touchimg != null)                     Log.d("TAGput", "tidak null");                 else                     Log.d("TAGput", "image null");   the Log doesnt appear nothing, what is that mean?


Groups of order $pqr$ and their normal subgroups

We want to prove that a group, say $G$, of order $pqr$ where $p \gt q \gt r$ has a normal Sylow $p$-subgroup and deduce that it has a normal subgroup of order $pq$.    I know how to show $G$ has a normal Sylow $p$-subgroup or normal Sylow $q$-subgroup, but not the rest. Thanks for your advices.


Why am I getting a local variable referenced before assignment error?

The answer should be 2 because first the main() function is called, then the first() function is called, overriding the global variable num = 0 which was defined outside of any functions, therefore  rendering it a variable with global scope. Yet I get the following error:  UnboundLocalError: local variable 'num' referenced before assignment     Why am I getting this error?  def first():     num = num + 1  def main():     num = 1     first()     print(num)  num = 0  num_result = main()  print(num_result)


Can the following assignment on objects be made into a functor from the category of topological spaces into the category of groups? Each topological space $X$ gets mapped to $\mathrm{Aut}(X)$, its automorphism group (group of all homeomorphisms from $X$ to $X$). I know that one necessary condition of functors $F\colon \mathcal C\to\mathcal D$ is that whenever $X, Y\in\mathcal C$ are isomorphic, then $F(X)$ and $F(Y)$ are isomorphic. This should be true for $F = \mathrm{Aut}$.  I read that in algebraic topology one is interested in so-called algebraic "invariants". Is $\mathrm{Aut}$ such an invariant (after all, it assigns to each topological space a group)?


Pages Excluded from Google Search Console

My  collects concept definitions from around the web. It knows how to extract the basic definition and make it accessible inside a predefined 'topic'. I always mention the source of the original webpage alongside the extracted definition. Google Search Console mark these pages as 'excluded' and the only ones that of included are pages that extracted from Wikipedia. Why are those pages not being included in Google Search Console?


What is the origin of the Jacobian determinant for changing variables in multiple integrals?  I mean, how to derive the formula for the Jacobian determinant?  I have seen the use of Jacobian in some books but could not find how it arises.


From  we know that only the perfect native fruit to the town will grow into perfect trees.   If I share pears as the native with a friend's town, will her perfect pears sprout into perfect trees in my town, or will only perfect pears grown in my town grow into perfect trees?


Prove that $A_{r,s}$ $=[z\in \mathbb C  : r<|z-z_0|<s ]$ is path connected.  I proved that $D_r(z_0)$ is pathh connected. But not this set of complex numbers.


How use settings.local.php with Acquia Cloud

I try to setup my .gitignore file. My local repo is a clone from my Drupal 8 distro from Acquia Cloud.  (I want to theme my template locally and then, step by step I want to push it to Dev on Acquia Cloud.)  So regarding handeling settings.php, whether or not to ignore settings.php and whether or not use settings.local.php:  If I look in my current settings.php is see this:  // On Acquia Cloud, this include file configures Drupal to use the correct // database in each site environment (Dev, Stage, or Prod). To use this // settings.php for development on your local workstation, set $db_url // (Drupal 5 or 6) or $databases (Drupal 7 or 8) as described in comments above.   I am confused and don't know anymore how to setup my .gitignore file with all this information and whether or not use settings.local.php. Please can somebody advice my what I have to do exactly, so it's setup correctly from the beginning.


How do viruses die outside of host cells?

I am posting a question that a friend of mine has asked.  My friend wrongly assumes that SARS-CoV-2 virus can be transmitted through blood, although there is no such evidence.  However, his question remains a valid one.       With so much news about COVID-19 all around us, I have been doing some        study on viruses.  I do understand that viruses are not really living        creatures.  They just have some genetic information, which they can        pass on to the host cell, causing the virus to proliferate, and in some        cases interfere with the normal functioning of the cell.  Outside of a        host cell they are completely inert.  In fact they show all the traits        of a non-living entity.  I get that.       My question is based on the following scenario.  Imagine there are two        doors, next to each other.  Let’s call them A and B.  There is a door        knob on each.  A COVID-19 patient sneezes near the doors, and some SARS-       CoV-2 viruses land on each door knob (i.e. door A and door B).       Unfortunately within a few hours someone with a cut finger touches the        knob of door A and gets infected.  So far no dispute.       Fast forward 5 years.  In the meantime the knob on door B never got        cleaned/wiped.  In other words, the inert viruses are still on the door        knob.  Again someone with a cut finger touches the knob of door B but        in this case the person does not get infected.  Why?       Obviously something happened to the virus during these 5 years that        caused it to lose the ability to pass on its genetic information to the        host cell and replicate.  What exactly happened?     Addendum:   We received a response for the query that seemed reasonable to us but was voted down, and presumably deleted by the author.  Fortunately I was able to recover a screen capture.  To keep the discussion going, I would like to temporarily include the response here till a better response is posted.  Here it goes:     This isn't very professional, but there are the basics. Viruses are obligate parasites, which means they can't live outside a host (in this case, a cell) for long. Viruses get damaged as everything else, the damage taking many forms, such as hydrolysis, photolysis, free radical damage, reaction with other molecules (like detergent), conformation changes, dehydration, maillard reactions, and changes induced by heat of labile molecules (like decomposition). All types of damaging processes happen at an increased reaction rate with increasing light and heat. Viruses have rudimentary repair mechanisms if any, so it's a matter of time before they become inactivated. A damaged virus entering the body wouldn't be able to do much harm if any, as their genetic information would be damaged beyond repair, and so, not able to be replicated to make more viruses. Their proteins and genetic bits would still trigger an immune reaction and immunize against intact and not very damaged viruses (which is why damaged viruses are used in vaccines). Those damaged viruses that remained outside just become microbe food.


QGIS 2.2 Openlayers Plugin shift between shapefile and base layer for large format

I am attempting to create a 24x36 map of New York City, and overlay it with a shapefile from City Planning. I'm using the Openlayers plugin, and I've tried all of the different types of base street map layers. I have been able to successfully convert the shapefile from a NAD 83 projection (EPSG 2263) to a WGS 84 projection (EPSG 3857), but I'm still suffering from some type of shift whenever I draw the map out on the print composer on a large scale piece of paper. The larger I try to print, the more dramatic the shift the misalignment.


Entire function invariant by translation is constant

I need to apply Liouville theorem ("entire bounded complex functions are constant") to prove that an entire function satisfying:  $$f(z)=f(z+1)=f(z+i)$$  for all complex numbers $z$ is constant. I'm really not sure on how to proceed, I've tried expanding in Taylor series but I've got confused with calculations and I can't proceed any further.


How can I selectively merge or pick changes from another branch in Git?

I'm using Git on a new project that has two parallel -- but currently experimental -- development branches:  master: import of existing codebase plus a few modifications that I'm generally sure of exp1: experimental branch #1 exp2: experimental branch #2  exp1 and exp2 represent two very different architectural approaches. Until I get further along I have no way of knowing which one (if either) will work. As I make progress in one branch I sometimes have edits that would be useful in the other branch and would like to merge just those. What is the best way to merge selective changes from one development branch to another while leaving behind everything else? Approaches I've considered:  git merge --no-commit followed by manual unstaging of a large number of edits that I don't want to make common between the branches.  Manual copying of common files into a temporary directory followed by git checkout to move to the other branch and then more manual copying out of the temporary directory into the working tree.  A variation on the above. Abandon the exp branches for now and use two additional local repositories for experimentation.  This makes the manual copying of files much more straightforward.   All three of these approaches seem tedious and error-prone.  I'm hoping there is a better approach; something akin to a filter path parameter that would make git-merge more selective.


How would I do this question.  Determine the value(s) of $h$ such that the matrix is augmented of a consistent linear system.  My matrix \begin{bmatrix} 1&h&4\\ 3&6&8 \end{bmatrix}  I am not sure how to format it very well in latex. But I do not get this question I am not sure what they are asking. I just know how to find x and y.


I don't remember much about this manga so it will be brief. The manga starts out with the main character and several other characters who are deemed heroes for defeating the demon king I believe are now given titles. The title if I remember correctly fire emperor, water emperor, etc., etc. Our main character is bestowed with the title lighting emperor from there the story goes into his reincarnation. His reincarnation is from the same family but his reincarnation is weak and his family looks down upon that. He gets upset that his family is using his name before reincarnation to oppress their own kin.


How can I set the sample space for two random variables with 2 different discrete values for each?

Say I have a group of athletes and I want to set two different random variables, $ X $ and $ Y $ to build a joint probability distribution of the two random variables. $ X $ has two different discrete values, for example, $ 0 = female $ and $ 1 = male $ and $ Y $ also has two different discrete values, for example, $ 0 = no medal $ and $ 1 = medal $. In this case, what could be the sample space and how can I visualize the sample space?


On the CLI, sometimes a command I type takes a while to complete, and sometimes I know when that's about to happen. I'm a bit confused on "backgrounding" and such in Linux.  What is the most common (or user-friendly way) of telling the CLI that I don't want to wait, please give me back my prompt immediately. And if it could give me a progress bar or just busy-spinner, that would be great!


Operator Overloading with C# Extension Methods

I'm attempting to use extension methods to add an operater overload to the C# StringBuilder class.  Specifically, given StringBuilder sb, I'd like sb += "text" to become equivalent to sb.Append("text").  Here's the syntax for creating an extension method for StringBuilder:  public static class sbExtensions {     public static StringBuilder blah(this StringBuilder sb)     {         return sb;     } }    It successfully adds the blah extension method to the StringBuilder.  Unfortunately, operator overloading does not seem to work:  public static class sbExtensions {     public static StringBuilder operator +(this StringBuilder sb, string s)     {         return sb.Append(s);     } }    Among other issues, the keyword this is not allowed in this context.  Are adding operator overloads via extension methods possible?  If so, what's the proper way to go about it?


TIME_WAIT in netstat of Apache processes


What is the recommended way to center ion-menu contents vertically in an Ionic 4 project?

I need to vertically centre the ion-menu contents so that it is easier to access from a UX perspective. I am not sure of the best way to do it.  This is the  code, which was set up by ionic start myProjectName sidemenu.   <ion-content>     <ion-card class="welcome-card">       <ion-img src="/assets/shapes.svg"></ion-img>       <ion-card-header>         <ion-card-subtitle>Get Started</ion-card-subtitle>         <ion-card-title>Welcome to Ionic</ion-card-title>       </ion-card-header>       <ion-card-content>
Now that your app has been created, you'll want to start building out features and components. Check out some of the resources below for next steps.
       </ion-card-content>     </ion-card>     <ion-list lines="none">       <ion-list-header>         <ion-label>Resources</ion-label>       </ion-list-header>       <ion-item href="https://ionicframework.com/docs/">         <ion-icon slot="start" color="medium" name="book"></ion-icon>         <ion-label>Ionic Documentation</ion-label>       </ion-item>       <ion-item href="https://ionicframework.com/docs/building/scaffolding">         <ion-icon slot="start" color="medium" name="build"></ion-icon>         <ion-label>Scaffold Out Your App</ion-label>       </ion-item>       <ion-item href="https://ionicframework.com/docs/layout/structure">         <ion-icon slot="start" color="medium" name="grid"></ion-icon>         <ion-label>Change Your App Layout</ion-label>       </ion-item>       <ion-item href="https://ionicframework.com/docs/theming/basics">         <ion-icon slot="start" color="medium" name="color-fill"></ion-icon>         <ion-label>Theme Your App</ion-label>       </ion-item>     </ion-list> </ion-content>     So I am trying to do something like below.    Edit: Ionic component directives already use flex. I'm seeking a solution specific (preserving the responsiveness) to Ionic 4 where an ion-menu is nested in an ion-list inside an ion-content directive. None of the answers provided in the SO links is applicable to my question.


Spices create aromatics so it is important when to add them. But what about salt? Is it critical if you add salt to the flavor base instead of adding it to the tomato paste, or adding it to the finished soup?


Need to find if an international flight 2 months ago was cancelled

My parents were scheduled on UA8784 from IAD to MUC on July, 24 2020 22:30 and were told it was cancelled due to covid several days beforehand. They were refunded.  We were on the same flight but as the Lufthansa partner LH415 IAD (Dulles) to MUC (Munich) July, 24 2020  22:30 and we called to cancel since we already knew the flight would not take off when my parents told us.  Now we are told by Lufthansa that we cannot get refunded because we were the ones to cancel and that the flight was on time.  How can this be true?  The online historic flight data seems to only go back a few days.  Thanks!


Greater control of search results using $snippet

In *node--content_type.tpl.php* I can do the following:  hide($content['body']); print render($content);   Can I draw and hide field elements from a node's content in a similar way from $snippet; on search-result.tpl.php?  If not how do I gain greater control of the placement of images and body text in search results?


Are stock returns based on market wide returns? When there is no new news released about the specific company, prices still rise or fall based on the market. When would a stock's trajectory diverge from that of the market?


If I push or hit an object in space will it rotate or move along a straight line?

If I push or hit an object in space (vacuum and no gravitation) in direction what is not going trough its centroid, will it rotate or move along in straight line?   I expect that on earth it will depend on what is less difficult for the object (rotation or linear movement). So the object will do some kind of combination of both movements (rotating and also moving along the direction of impulse or force).  But how could an object "decide" what to do in space, where is not resistance?


Are these two sentences (from a book) correct?

I saw these two sentences from a book called "The Art of Racing In The Rain" (I love it!!) and I don't see any verb inside, could anyone explain what's the grammar behind? "Peripheral vision, seeing things you’ve never seen before. Kinesthetic sensation, driving by the seat of the pants." Hope my question is clear enough. Thank you guys in advance:)))


How to Prove a Metric Space is Sequential?

Let's say I have a space X with a "d-metric" on X, a function d:X×X→R that has the following 2 properties:  d(x,y)≥0 for all x, y∈X and  d(x,x)=0 for all x, y∈X.  The d-ball of radius r centered at x is defined as Br(x)={y∈X:d(x,y) < r}  We'll say the topological space (X,T) is d-metrizable if there is a function d such that U is in T if and only if for all x in U there exists a d-ball centered at x which is contained in U.  How can I prove that "d-metrizable" spaces are sequential?  Note:  Sequential means every sequentially open set is open ().


Exporting .png or .jpg files directly from LaTeX code. Possible?

Sometimes it's impossible to upload .pdf, .dvi and .ps files (usually images of diagrams generated with TiKZ in my case). There, one wishes to obtain a way to export them directly to a .png or some other pic-like file extension. Unfortunately the result I get by taking a snapshot of my .pdf is awful.  Which is the better way to get, say, a .png out of a LaTeX base code?


How can align image to center left to ul li

Please find the image i am tying like this but it is not coming where i am doing wrong.?    .skills ul {   width: 100%;   margin: 10px 0px 0px 0px;   padding: 0px;   float: left; }  .skills li {     border: 1px solid #F0F0F0;     list-style: none;     text-decoration: none;     text-transform: capitalize;     padding: 7px 10px 0px 10px;     background: #F0F0F0;     color: #414141;     font-size: 13px;     text-align: left;     float: left;     border-radius: 50px;     margin: 3px 6px;     height: 31px;     position: relative; }  .skills li a {     position: absolute;     top: -8px;     right: 8px;     background: #FF6158;     width: 15px;     height: 15px;     border-radius: 50%;     display: flex;     align-items: center;     justify-content: center;     text-decoration: none;     color: #fff; } .skills li img {  vertical-align: middle; height: 38px; width:38px; border-radius:50%;  }

  AJAX                     <input type="checkbox" name="skills" value="3" style="display:none">                     x

  Action Script 3.0 (Mac Version)                     <input type="checkbox" name="skills" value="6" style="display:none">                     x


If $m$ and $n$ are relatively prime positive integers, prove that $m^{\phi(n)}+n^{\phi(m)}\equiv1\pmod{mn}$

I have found this question answered before but I am stuck going from  $$m^{\phi(n)}+n^{\phi(m)}\equiv1 \pmod{n}\\ n^{\phi(m)}+m^{\phi(n)}\equiv1 \pmod{m}$$ to $$m^{\phi(n)}+n^{\phi(m)}\equiv1 \pmod{mn}$$  Why can we combine $\pmod{m}$ and $(\pmod{n}$ into $\pmod{mn}$? I know it's overall because $\gcd(m,n)=1$, but I don't understand why it is so. Is there a theorem for this specifically? I found this, but  seems to not multiply what is in the modulus together.   Here is the beginning of my proof:  $\gcd(m,n)=1\implies m^{\phi(n)}\equiv1 \pmod{n}$ and $n^{\phi(m)}\equiv1 \pmod{m}$ by Euler's theorem.  $ m^{\phi(n)}\equiv1 \pmod{n} \equiv  m^{\phi(n)}+n^{\phi(m)}\equiv1+n^{\phi(m)}\pmod{n}$ and $n^{\phi(m)}\equiv1 \pmod{m}\equiv n^{\phi(m)}+m^{\phi(n)}\equiv1+m^{\phi(n)} \pmod{m}$.  But $m^{\phi(n)} \equiv 0\pmod{m}$ and $n^{\phi(m)}\equiv 0\pmod{n}$.  So we have $m^{\phi(n)}+n^{\phi(m)}\equiv1\pmod{n}$ and $n^{\phi(m)}+m^{\phi(n)}\equiv1 \pmod{m}$...  ... which implies $m^{\phi(n)}+n^{\phi(m)}\equiv1\pmod{mn}$.


Calculating checksum from sha512 crypted message in c#

I need to call authentication uses the hmac-sha512 algorithm. Message to be encrypted using the key (for example: vU372pd8pS4AN2XEzt2aQn6CRq6dT5) is:  "entityReference=3000001222&caseReference=SilviaTemplate1&type=16&name=example_WS2.jpg&content=[binary]".  My code:  public string ChecksumCalc(string entityReference, string caseReference, string type,string name, byte[] content, string key)     {         string message = "entityReference=" + entityReference + "&caseReference=" + caseReference + "&type=" + type + "&name=" + name + "&content=" + BitConverter.ToString(content).Replace("-",string.Empty).ToLower();          string checksum = "";         try         {             var encoding = new System.Text.ASCIIEncoding();             byte[] keyByte = encoding.GetBytes(key);             byte[] messageBytes = encoding.GetBytes(message);              using (var hmacsha512 = new HMACSHA512(keyByte))             {                 byte[] hashmessage = hmacsha512.ComputeHash(messageBytes);                 //First method                 checksum = BitConverter.ToString(hashmessage).Replace("+", "").Replace("/", "").Replace("=", "").Replace("-", "").ToLower();                  //Second method                 StringBuilder hex = new StringBuilder(hashmessage.Length * 2);                 foreach (byte b in hashmessage)                     hex.AppendFormat("{0:x2}", b);                 checksum = hex.ToString();                  //Same result             }              Console.WriteLine(checksum);         }         catch (Exception ex)         {             log.Error("Error on checksumCalc. Exception: " + ex.Message);             throw ex;         }          return checksum;     }   I commented my other attempts solve my issue, but it doesn't works.


When I tried to access StackOverflow.com I got the following message:     This site is currently in read-only mode; we’ll return with full functionality soon.   Mainly what is the maintenance the Stack Exchange Team is doing ?


Discrete Mathematics how to prove $(A\setminus B)\setminus C ⊆ A\setminus (B\setminus C)$

I can't figure out how to prove this one. Help please how to prove $(A\setminus B)\setminus C ⊆ A\setminus(B\setminus C)$ in which prove system to choose?


I have a very long SQRT() equation, that doesn't fit in a line. I couldn't simplify  it, since it involves terms in addition. Is there an alternative way to represent a root as 'SQRT{some function}' ?  \documentclass{article} \begin{document} \begin{equation}     \Delta\sigma_{V,ij} = \sqrt{\Delta\sigma_{x,ij}^2 + \Delta\sigma_{y,ij}^2 + \Delta\sigma_{z,ij}^2 - (\Delta\sigma_{x,ij}\cdot\Delta\sigma_{y,ij} + \Delta\sigma_{y,ij}\cdot\Delta\sigma_{z,ij} + \Delta\sigma_{z,ij}\cdot\Delta\sigma_{x,ij}) + 3 \cdot (\Delta\tau_{xy,ij}^2 + \Delta\tau_{yz,ij}^2 + \Delta\tau_{zx,ij}^2)} \end{equation} \end{document}


How to set the pagestyle on the page a particular float ends up on?

Sometimes, a float is just a tiny bit too large for one page and one would like to remove the page number and hope that nobody notices.  \documentclass{article} \usepackage{mwe} \begin{document} \blindtext \begin{figure} \thispagestyle{empty} \includegraphics[width=\linewidth,height=1.02\textheight]{example-image-a} \caption{This float is too large for one page.} \end{figure} \blindtext \end{document}   (Why, of course this is an artificial example and I could just make the image smaller. This is a more common problem for tables where using a \resizebox looks even worse.)   Unfortunately, no matter where I put the \thispagestyle{empty}, there is no way to guarantee that it really affects the page the float ends up on. I tried both before and after the \includegraphics and also in the caption itself. There is a way to change the pagestyle for all float pages ( and floatpag) but that's not what I want here.


What happens step by step when using "rm -rf directory"?

Let's assume that I have 150 GB of data in a directory and I have accidentally run this command for a directory.  Suddenly I realised, I should not put "/" in the beginning of directory and I cancelled command with Ctrl+C after a few seconds.  The directory is still there and there are currently folders from a to z but if it was windows I would know what is gone and what is not. I tried to test this command in a test server and I assumed that the command will delete folders starting with 0-9, then to a-z. In my tests, I couldn't verify this theory because either everything is gone or nothing got deleted.  Still curious though. Is that the case ? How this command exactly works step by step ? Did I lose some data ?


I know that if $(a,n)=1,n>0$ and $a^{ϕ(n)}≡1\pmod n$, i.e, order of a $\bmod n$ is $ϕ(n)$,  then $a$ is called the primitive root modulo $n$.  I want to know what are the possible values of $n$, i.e, which integers can have primitive roots?   Is there any rule that only certain integers can have primitive roots?  I also realised that $n$ cannot be only prime, as $3^2≡1\pmod 4$, so that $n=4$ and $ϕ(4)=2$. Sorry for such a basic question, but any help would be appreciated :)


I have been unable to identify the command for this specific volume variable, V. The closest commands I identified were \vee and \wedge but they do not possess the curvature found in this format. Any help would be appreciated!


The idea of a group as a category with one element confuses me. Let us take the set of natural numbers. This set is a group under the operation of multiplication. Now if we consider the set of natural numbers as a group what is the one element that it will have?   I also need clarification on how the composition becomes the product.


Why does a system try to minimize potential energy?

In mechanics problems, especially one-dimensional ones, we talk about how a particle goes in a direction to minimize potential energy. This is easy to see when we use cartesian coordinates: For example, $-\frac{dU}{dx}=F$ (or in the multidimensional case, the gradient), so the force will go in the direction of minimizing the potential energy.   However, it becomes less clear in other cases. For example, I read a problem that involved a ball attached to a pivot, so it could only rotate. It was then claimed that the ball would rotate towards minimal potential energy, however $-\frac{dU}{d\theta} \neq F$! I think in this case it might be equal to torque, which would make their reasoning correct, but it seems like regardless of the degrees of freedom of the problem, it is always assumed that the forces act in a way such that the potential energy is minimized. Could someone give a good explanation for why this is?  Edit: I should note that I typed this in google and found this  where it states that minimizing potential energy and increasing heat increases entropy. For one, this isn't really an explanation because it doesn't state why it increases entropy. Also, if possible, I would like an explanation that doesn't involve entropy. But if it is impossible to make a rigorous argument that doesn't involve entropy then using entropy is fine.  As a side note, how does this relate to Hamilton's Principle?


It seems that many flavor and food preferences can be explained in the context of regulating feeding behavior. Generally, organisms tend to enjoy those foods which are optimal for them to feed on and provide the best nutrition. There are well-known exceptions to this, such as:   Artificial chemicals (eg. the supposedly sweet-tasting but deadly polyethylene glycol) which are very rare in nature, thus there was no opportunity for an appropriate taste perception to evolve Nutrients which are desirable in moderation but dangerous in excess (eg. sugar), but have only become readily available recently thanks to technology (thus once again moderated consumption has not had opportunity to evolve)   But humans in particular also seem to enjoy consuming a large variety of foods that one would expect to be unpalatable or mildly harmful. For instance various peppers, spices, hot sauces, wasabi, mustard and so forth, don't appear to provide much of a nutritional benefit. Indeed their chief property of interest, the spicy flavor, is a defense mechanism: The plant attempts to make itself unpalatable or toxic to deter predation. Why is it then that this very defense mechanism has ironically become prized as a food ingredient by humans, to such an extent that wars have been fought over access to spices? And why is it that humans do not consider (for instance) pure, fresh, raw meat to be more delicious than meat with seasoning or condiments?    There has been a similar question (see comments) on here but that has also not attracted a good answer. I think this exemplifies the enduring interest in the subject and as such I'd like to keep this question open to stimulate a better response from more recent visitors.


USB disabled in BIOS after installing Ubuntu

I can't boot via USB after installing Ubuntu.   Yes, the BIOS lists USB, but it is disabled.  Yes, USB is at the top of the boot priority in the BIOS, but it is disabled.  Yes, user Da1T, I'm looking in the BIOS.   Burning an image to disc is a waste of time and money.


Why is my device not utilizing all of its available RAM?

I have a Nook Color with Cyanogenmod 7.2 (on mSD), and Nook Color is supposed to be 512MB of RAM (says so on product's page).  When I open Menu (on bottom bar, while on desktop) > Manage Applications > Running, it says on the bottom left 95MB used, and on the bottom right it says 174MB free. These are about 270MB, does that mean my RAM is corrupted? Why is it not utilizing all 512MB of RAM?


Thanks for your time. I want to compare accuracy of several predicting models. I am comparing their MAE. each model use same all or some predictors. Which approach is better MANOVA or repeated measure ANOVA? Why?


Can gravitational waves interfere like water waves and light waves? If not, can someone explain what about these waves make them uninterferable?


How to change the default height of pages and frames in Beamer?

In the Beamer class, is it possible to change the height of a page and frame? I'm producing a document for web display and would like it to be on a continuously scrolling format so I would like to have frames with height 4 times taller than the current default height. I tried something like the MWE below but I get "Missing \begin{document} error"...    \documentclass{beamer}   \usepackage[papersize={12cm,30cm}]{geometry}   \begin{document}    \begin{frame}{test}    \end{frame}{test}    \end{frame}   \end{document}


Ubuntu Restricted Extras for 14.04 32 bit

My ubuntu has not internet connection. Because I cant connect my modem there. Can anyone give me a good idea so that I can downlod the all media codec (ubuntu_restricted_extras.dev) for ubuntu 14.04 32 bit from my mobile and install it to my Laptop (ubuntu 14.04 LTS)


Introductory Calculus textbook for physics?

I have the summer to prepare myself for a high school calculus-based physics course; however, I will have to study calculus by myself. I've completed a course in precalculus and I'm beginning to read .   I am looking for a textbook that has mathematical rigor (i.e. not memorizing formulas), yet also provides adequate foundations for a physics course. From similar stack exchange questions, my top candidates are  and . Which one of these textbooks, if any, would be the best choice for my situation?


Ubuntu 18.10 Cosmic not starting GNOME session on bootup

To better describe the above problem, whenever I start up my Ubuntu/Windows 10 Machine and select Ubuntu, whenever the machine tries to start the GNOME Desktop Environment, it says it started it successfully. however, I never get a graphical desktop environment to use. I can fix this by logging into tty3 and typing gnome-session but I don't really want to do that as, for some reason, that skips login. Can anyone help?


Stack Overflow as a reference in a professional paper/presentation

Suppose I'm doing an academic paper, journal article, or other professional presentation.  Would you say that it would be possible to use Stack Overflow as a reference?    Of course I'm pretty sure that the answer here would be "yes."   So here's the follow up: When, if ever, would it be a good idea to cite a Stack Overflow question as a reference in an professional paper/presentation of some kind?


More intuitive way of obtaining direct link to specific comment

Currently, it's not obvious how to obtain a link to a specific comment (there is no obvious share icon on comments).    has a lot of views/upvotes indicating a lot of people have had to go looking for how to link to a comment.   Suggestion  I could suggest changing from the current, e.g.     to something like    (only difference is the small link icon at the end of the comment, next to the edited icon)


can't solve the (java.lang.NullPointerException) problem

i got that when executing the code below: (the problem seems to be with the insert method but can't really figure it out) (i would appreciate if you point out the solution)**         public void writeBit(char bit) throws IOException{             b.insert(0, bit);             if(b.length()==8){                 a.write(Integer.parseInt(b.toString()));                 b.setLength(0);             }         }


As it is common with people from my country, I have an immense difficulty with prepositions in English, especially with the use of in and on.   When the preposition indicates the position of the object it is a bit easier to decide which one to use, but as it requires thinking from me, I still say things like "I put the bill in the fridge", "my pencil is on my bag", etc, even though if I think about it, I would know how to say it correctly.  Of course, even in those cases where the preposition indicates position the decision is not always clear, as is the case for example with "on the bus" (you are not on top of the bus, you are inside the bus) or "he is in bed" (you are not inside the bed, you are on top of your bed).  Other cases are even less clear, and I believe there is no real rule to decide what should be said; the person should just know it. Two examples are "in a bad mood", "you are on my mind".  So my first question is whether there is really no rule to help me. The second question refers to two of the cases where I still don't know whether to use in or on:   good luck on/in your exam in/on the list   The last one is especially important to me, as I have asked a number of native speakers, and each time I get a different answer. The only consensus seems to be the case where you say "on top of the list". Apart from that, some people will say that I should say "his name is in the list" whereas others think I should say "his name is on the list". And yeah, a couple of people did tell me that I can use either.  Can someone help me?


I buy and sell used bikes some have been repainted how can I find manufacturer if there are no identifying marks

Need help identifying frames to make sure make model and possibly year


What is the name of the design style where triangles are drawn in a way that gives a sense of dimension and depth?

So I have seen this type of graphic design used in several places. Here is an example:    The exact pattern I am pointing to is how the triangles are drawn in a way that gives a sense of dimension and depth. Here is another example:    Is there a specific name for this design method?


What's the difference between say "I started working" vs "I started to work"

Simple question   What's the difference between someone say   "I started working on something..."   And  "I started to work on something..."


Physical intuition behind level repulsion?

In non-degenerate time-independent perturbation theory we see that the second order correction to the eigenstate energy exhibits 'level repulsion'. Is this a purely mathematical curiousity or is there physical intuition that can be gained here?


Will learning Objective-C before C help you pick up C later on?

I'm a novice programmer looking to build my own iOS app. I'm hearing a lot of mixed responses on how it may or may not be necessary to learn C before taking on Objective-C.   I'm leaning towards learning Objective-C first considering I can always look back into the C (I'm using Big Nerd Ranch Guide for Objective-C) for some concepts like structs, arrays, etc.   I'm open to hearing any advice on what any of you may think!


How are Stormtroopers uniquely identified in the field?

Multiple times in Star Wars: The Force Awakens, people refer to trooper FN-2187 by that specific correct name, while he is in armor.  But the armor is largely identical (some have little accessories like shoulder pads, or different weapon loadouts, but FN-2187 lacks these), which makes me wonder how do First Order (or even the old Imperials) identify who they're talking to?  How are Stormtroopers correctly identified while they're in armor?


So is the  in the planetary distances related to Johann Kepler's discovery in 1596 that the ratios of the orbits of the six planets known in his day were the same as the ratios between nested Platonic solids who called it the Mysterium Cosmographicum?


javascript calculate textarea height with given text

I need to calculate textarea height for the text that will be inserted into it. Textarea has fixed width. For example, for textarea with width 271 px and the following text (no linebreaks):   Some complementary text  Some complementary text  Some complementary text  Some complementary text  Some complementary text  Some complementary text  Some complementary text  Some complementary text   Textarea height will be 176px.     So the question is: how this 176px can be calculated?  Thank you.


How to make existing public files private?

Let's say I have a node type "Article" which has a field "File" which is set to handle public files. A lot of articles and files get added.  Now the specs suddenly change and the "Article" will move behind a login and therefore also the attached files must be changed to be not publicly accessible anymore.  I already found out  pretty easily by reimporting the manually updated field.storage.node.field_file.yml config. But: this only affects new files that will be added after the switch. It doesn't work for existing files. They still are accessible publicly. Many thousand existing files would need to be manually reuploaded to also make them private.  Does anybody of you have solved that in D8 before? If so, then how?  As all I can think of right now is to programmatically query all "Article" nodes, then foreach through all nodes, get the files, temporarily store them somewhere else, empty the field out, then try to reupload the files programmatically (probably my next question) and then resave each node.  Does that sound reasonable? Or can you think of any other approach that might work here (in D8)?


what is the change a value of a string Variable ina static-Method ?What is the scope of the String variable in java method.if(h=="abc") -an invalid if

I have a simple Java method here Below , which passes a string , but inside the method another string variable is to be assigned a value. But its not assigning new value- based on the String Input. Instead returning "NA". Kindly have a Look and help me find the fault in the code. Suppose if h is "NRM" even then aId = "NA", not "01"  private static String getAID(String h) {      System.out.print("AId : 01 to 25 for "+h);           String aId = "NA";      if(h == "NRM") {         aId= "01";         System.out.print("inside Nrm of fn"+aId);      }       Scanner scanner = new Scanner(System.in);      if(h=="EPB") {             System.out.print("Emergency ON/OFF press 1 or 0  - ");              String in= scanner.next();              if(in == "0") aId="11";              else if(in=="1") aId="10";              else { aId="10";}                    }      if (h=="CRT") {             aId="16";             System.out.print("Critical Alert Enter 16/03/17/22/23/20/21 - ");             String in= scanner.next();             String[]  arr = {"16","03","17","22","23","20","21","13","14","15","06","04","05","09","18","19"};             for(String i : arr) {                 if( i.equals(in) ) aId=in;             }   //aId="04";        }     if(h=="BTH" || h=="ALT") {             aId="13";             System.out.print("AId Enter :/13/14/15/06/04/05/09/18/19 - ");             String in= scanner.next();             String[] arr = {"16","03","17","22","23","20","21","13","14","15","06","04","05","09","18","19"};             for(String i : arr) {                 if( i.equals(in) ) aId=in;             }                         }     switch(aId) {     case "01":System.out.println("Normal 2");          break;     case "02":System.out.println("l History");     // remaining cases      // remaing cases //      case "23":System.out.println("IMPACT");           default: System.out.println(" Wrong Entry -is"+aId );      }          return aId;      }  Here when I checked , It s never Entering the If Statements at all... But instead entering default part of the Switch case and return aId = "NA" ;


Screen size problem for Ubuntu virtual machine

I have installed Ubuntu 18.04 on VirtualBox and the display is not covering the whole screen of the guest OS.


Minecraft: Why does my opened to LAN world not show up in my other laptop?

I am really annoyed of this problem. I have did everything that everyone said, like run the Command Prompt and find the specific IP (they matched), restart Minecraft, uninstall all other Java versions unnecessary, I have turned off Firewall, and other stuff, but it STILL does not show up. I am on a wired connection (I use a normal computer with a CPU on it, obviously) and my cousin is using a wireless connection. We ARE on the same connection, just the difference of having wired and wireless. Does that difference affect the problem I'm having now?  And to all the other people, I know this might be a duplicate, as other people have asked similar questions, but I tried the answers people gave to them, and those still do not fix the problem.


I need to create users in code specifying password, email and other fields' values.    How can I achieve this?


Normally, hot air balloons are limited to 60,000 ft , the limits being the mass of the physical structure containing the air, and the heat source.  If one constructed a magnetic bubble and filled it with plasma (AKA  which was kept hot with a really powerful ground based microwave source (~3MW for a 1 ton payload, from ), could it reach space (Kármán line, atmospheric pressure 32 mPa)? Or would something stop it working at a particular altitude, e.g. the plasma would cool down too fast, or become detached from the magnetic field, or the electrical conductivity of the air at some height would neutralise the plasma, or some other reason I don't know yet?  If it is possible, how accurate are my estimates (I don't know how efficiently microwaves would heat a plasma, nor how much power would really be lost by something like this).


Do these phrases require hyphens? "mock-cried" vs "mock cried"

Should the following sentences be hyphenated? I mock cried into his shoulder. vs. I mock-cried into his shoulder.  He smiled at me with his old man charm. vs. He smiled at me with his old man-charm.


I have this form where the user provide us the information, something like this:    the data goes into a table in my database. After that I want to export the data to a pdf file which I already have:    the PDF file is already editable, so is there any way I can put the data into those editable fields?


Are there any known issues with NewSID and Windows 2008 server?

We have a scenario where it's not possible for us to use  with Windows 2008. Has anyone had any issues using  to generate new SID's on cloned Windows 2008 images?  Update:  According to Mark Russinovich, the author of NewSID, it doesn't matter if cloned machines have the same SID:


JSON Array values to always total up to 100%

I have a wheel of fortune that spins, and has probability set for winning each prize that adds up to 100%.  Once the quantity of a prize is met, ie, all of that prize is gone from stock, it sets the probability to 0 so you can't win it again.  My problem then, is that the other values don't add up to 100.  They always have to add up to 100 otherwise the wheel doesn't work.  I've got to the point of dividing all of the values by the total, rounding to two decimals and then adding them together, but i get 99 instead of 100.  I've tried a few other ways of doing it and can never get to 100.  edit: My main problem seems to be that there is a 0.01% chance of winning 2 of the prizes. Dividing them by the total drops them to 0.000234234% or something similar, so when i multiply that by 100 then round that up to 2 decimals i'm getting 0.00% - but i can't think of any other way around it...  $jsonString = file_get_contents('wp-content/themes/supertheme/wheel_data.json'); $data = json_decode($jsonString, true); echo '<pre>'; //print_r($data['segmentValuesArray'][0]['probability']); echo '</pre>';  if ($prize1 <= 5){     $prize1before = $data['segmentValuesArray'][0]['probability'];     $data['segmentValuesArray'][0]['probability'] = 0; } if ($prize2 >= 5){     $data['segmentValuesArray'][1]['probability'] = 0; } if ($prize3 >= 300){     $data['segmentValuesArray'][2]['probability'] = 0; } if ($prize4 >= 500){     $data['segmentValuesArray'][3]['probability'] = 0; } if ($prize5 >= 10){     $data['segmentValuesArray'][4]['probability'] = 0; }  $prize1total = $data['segmentValuesArray'][0]['probability']; $prize2total = $data['segmentValuesArray'][1]['probability']; $prize3total = $data['segmentValuesArray'][2]['probability']; $prize4total = $data['segmentValuesArray'][3]['probability']; $prize5total = $data['segmentValuesArray'][4]['probability'];  $total = $prize1total + $prize2total + $prize3total + $prize4total + $prize5total; echo'<pre>'; print_r($total); echo'<pre>'; $a = 0; foreach($data['segmentValuesArray'] as $prize_array){     if($prize_array['probability'] > 0){         $a++;        } }  $integer = $prize1before / $a;  $divided1 = $prize1total / $total; $rounded1 = number_format((float)$divided1, 2, '.', ''); $full1 = $rounded1 * 100;  $divided2 = $prize2total / $total; $rounded2 = number_format((float)$divided2, 2, '.', ''); $full2 = $rounded2 * 100 + $integer;  $divided3 = $prize3total / $total; $rounded3 = number_format((float)$divided3, 2, '.', ''); $full3 = $rounded3 * 100 + $integer;  $divided4 = $prize4total / $total; $rounded4 = number_format((float)$divided4, 2, '.', ''); $full4 = $rounded4 * 100 + $integer;  $divided5 = $prize5total / $total; $rounded5 = number_format((float)$divided5, 2, '.', ''); $full5 = $rounded5 * 100 + $integer;  $newtotal = $full1 + $full2 + $full3 + $full4 + $full5; echo'<pre>'; print_r($newtotal); echo'<pre>';  $newJsonString = json_encode($data, JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES); file_put_contents('wp-content/themes/supertheme/wheel_data.json', $newJsonString);


How does the tmp folder work? It stores lots of junk files and takes space

My tmp folder is set to /sites/default/files/tmp/ and I checked what's inside and for example there is folder inside called /update-cache-b2903cc4/ it keeps all modules in .zip that I installed via 'Install from a URL'. So why are those modules .zip files are kept there in tmp folder, isn't it a waste of storage? I don't really like it when the site is full of unnecessary files.  Am I supposed to delete these by myself all the time?


Select Random Line from .dat File using c++

I have a .dat file with 10 lines, each line has a word.  How would I randomly select a line so I could bring the word from the line into my function?


Minimize all windows on the active monitor

I'm looking for a way to use a keyboard shortcut to minimize all the windows on the monitor that currently has my mouse on it. I found this page:  but that appears to be hardcoded to minimize windows on a specific monitor, rather than the active monitor. Plus, I have no idea how to compile that code (not a VB coder). Anybody know a way that I can make this happen? I'm on Windows 7 ultimate, 3 monitors.


How does non-Abelian gauge symmetry imply the quantization of the corresponding charges?

I read an unjustified treatment in a book, saying that in QED charge an not quantized by the gauge symmetry principle (which totally clear for me: Q the generator of $U(1)$ can be anything in $\mathbb{R}$) but for non-Abelian gauge symmetries the "charge" are quantized by virtue of this principle. Could someone give a hint (or reference) of the calculation showing that.


Lost partition during the installation time

I have installed Ubuntu in my Dell-Inspiron-N5010 laptop today and it was looking like a complicated one, without knowing about the partition thing, So the result of that is, I can't access to a part of storage (means hidden) if there is any chance where i can repair that through the live CD or by other means?


Let $a$ and $b$ be nonnegative integers. prove that $\gcd(2^a-1,2^b-1)=2^{\gcd(a,b)}-1$

Let $a$ and $b$ be nonnegative integers. prove that $\gcd(2^a-1,2^b-1)=2^{\gcd(a,b)}-1.$  So far I have tried using Linear Diophantine Equations, the GCD With Remainder theorem (replacing one input into the gcd with the remainder of the bigger term divided by the smaller term), and writing $d=gcd(a,b)$, let $a=ds, b=dr$, but I am still stuck.  Thanks.


Custom settings in Schema.getGlobalDescribe()

I have a scenario where I am using Schema.getGlobalDescribe().Values(). But its returning custom settings also which I don't want in my list. I tried but not getting the correct solution.


Write a line without listing inside a list

How can I write a line without listing inside a list like below


Family in GLM - how to choose the right one?

When modeling data sampled in the field, I often come across the problem of determining the Family of the dependent variable for GLM (or GLMM). An example: in an ecological study, I have ~ 60 patches.  I have sampled territories of an animal species within these patches as well as a set of explanatory variables.  The number of territories per patch (NTP) is the dependent variable in a GLM.   NTP is integer with values between 0 and 14:      How can I test for the family of NTP?  Any help appreciated as this is an issue many ecologists come across each time they conduct statistical analysis.


Should your QA Automated tests reside with application code?

We currently use Visual Studio 2013 and Silk4Test for creating our functional and regression tests.  I am curious to know how others are storing a similar set up, meaning:   Should our QA Test Project be part of the overall application solution that we are testing Should our QA Tests be in their own solution


So, I bought my first soldering iron. (I used trafo until now..) It was pretty cheap, wasn't expecting much from it. Wanted to try it out, but the tip turned black. (Picture included, sorry for the quality.) I used Flux before trying to get a bit of tin on the tip, but the tin just wouldn't stick! Instead, it melted and fell off.  I have replaceable tips, I somehow knew I'm going to mess it up. But I don't want to make the same mistake. Any help?


British English / a strange way of using neither nor

I am not a native English speaker , so I am sorry if there is any grammatical mistakes. I wanted to ask how correct the following sentence is      This game isn't good neither for children nor for adults.   I tried to find the answer on google but to no avail. Please if anybody has any idea about that sentence, don't hold back, help me.


Meaning of different Orders of Derivative

I have been trying to analyse the meaning of higher order derivatives and their geometrical significance.  Given a function $f(x)$ what are the unique geometric interpretation of its higher orders?   $f'(x)$ - slope (rate of change of x w.r.t y) $f''(x)$ - convexity / concavity of $f(x)$ based on $sign(f''(x))$ $f'''(x)$ - increasing / decreasing slope of $f'(x)$ $f''''(x)$ - ?? ... $f^n(x)$ - ??   I apologize if this question is rudimentary.


Require a comment when deleting an answer or a question

I have had to delete a few questions and answers and really wanted to make mods know why I deleted them, as it stands I would have to revive my answer to explain the reason. With questions once its gone its gone.   It would be nice to have a little field that allows you to select why you deleted something:   Eg. "Deleted cause I answered the wrong question", "Deleted cause I made a trivial logic mistake" etc..


I have submitted an online application for a Canadian transit visa on 5 July 2018. I am an Indian passport holder and applied from Mumbai. I would like to know when I can expect to get my visa?  Also, as I submitted the application online, do I have to submit my passport physically to get a transit visa stamp?  Thanks in advance.


Expand the size of / partition with unallocated space

I have a 1TB disk and only partitioned 10Gib for my / directory and now I want to add the remaining .9Tib or so to that partition. It is currently sitting as unallocated space. Attached is a picture of my GParted screen so you can see how the table is partitioned. I have GParted launched as an ISO so that the main directories are unmounted, but I still have no luck resizing.


Replace attribute value with non NULL values from a joined attribute column

I have a Geodatabase with a column for pipe diameter. I have a secondary data set with field verified data and a column for pipe diameter. I would like to replace the pipe diameter in the Geodatabase with that in the secondary data set using the Python Parser in the Field Calculator. I have joined the secondary data set to the geodatabase and have many NUll values associated with pipes that have not yet been field verified.  Through online research, without finding anything specific, I have hodgepodged the following:  def IgnoreNull (GravitySewer.Diameter, assets.Diameter)  if assets.Diameter is None:       return GravitySewer.Diameter  else:       return assets.Diameter


I am trying to replace a string in HTML. I am only interested in "true" text (textContent). That is, no attributes should be touched, just the text.  I came up with an expression that is not perfect yet:  var hayStack = @"
 33333  33333  After 33333

"; string pattern = @"(?x)(?<=>.*?) 33333 (?=.*?<)"; Console.WriteLine(Regex.Replace(hayStack, pattern, "Replaced"));    That prints:
 Replaced  Replaced  After Replaced

   It appears that the expression works correctly in some cases. It does handle text content, but it breaks when dealing with attributes. It should print:
 Replaced  Replaced  After Replaced

   How would the correct expression look?


10 GB file of "size-on-disk <100 MB": why does a copy take so long?

I created a "Dynamic" VeraCrypt container of size 10 GB, i.e. it will grow when the usage needs it. As it's initally empty, in reality it takes less than 100 MB on disk. Why does it still take a few minutes to copy with Windows Explorer to an external USB HDD (normal time for 10 GB with my USB2 device), rather than a few seconds, as the file in reality takes less than 100 MB? Why does it copy the full 10 GB whereas only < 100 MB are used?


How does one test a file to see if it's a valid XML file before loading it with XDocument.Load()?

I'm loading an XML document in my C# application with the following:  XDocument xd1 = new XDocument(); xd1 = XDocument.Load(myfile);   but before that, I do test to make sure the file exists with:  File.Exists(myfile);   But... is there an (easy) way to test the file before the XDocument.Load() to make sure it's a valid XML file?  In other words, my user can accidentally click on a different file in the file browser and trying to load, say, a .php file causes an exception.    The only way I can think of is to load it into a StreamWriter and simple do a text search on the first few characters to make sure they say "  Thanks!  -Adeena


I wanted to wipe all data on a USB device. Thing is, I accidentally mounted /dev/sda1 instead of /dev/sdb1 and accidentally deleted my Windows Recovery Partition.  I ran this from Ubuntu 14.04. Any ideas how to undo this?


How to decrypt c when phi(n) and e are not relatively prime

I have read multiple websites to see what would happen with RSA when $\phi(n)$ and $e$ are not relatively prime, but no one has discussed it. Can someone explain how to decrypt $c$ if $\phi(n)$ and $e$ aren't relatively prime?


R and G wire jumpered and G is not connected to thermostat

I have a Trane XV90 furnace and XL14i AC. The thermostat is old and I want to install a Honeywell Wifi one. Today I just checked the wires and found on the control board R and G are jumpered and the G is not actually connected to the thermostat. So my question is when I install the new thermostat, should I keep the G wire as is or rewire and connect it? Thanks.


Extra space in the configuration details collapse the bulleted list order in the SE Android app

In the Stack Exchange Android app ➡ About ➡ Submit a bug report, when trying to report a bug, by default the configuration details are showing in the body section.      The content in the screenshot is as below (for reference of future search):    - App Version: 1.0.85 - Device Manufacturer: Motorola - Device Model: XT1033  - OS Version: 5.1 (2)   The four items are to be shown in the same bulleted list order, but there is one extra space before the - OS Version:, so it is causing the first three items to be in the same bulleted list order and the last one in the sub bulleted list.   The rendered output is below:   App Version: 1.0.85 Device Manufacturer: Motorola Device Model: XT1033   OS Version: 5.1 (2)    The issue is in the recent questions with the  +  .


16.04: Just cant figure out where did i go wrong with my LAMP and wordpress installation

I have installed and reinstalled LAMP+Wordpress, but when i check it on my browser it is not working. I have tried almost everything, as i don't know what exactly to do. When i go to 127.0.0.1 it says: Error establishing a database connection. Is this happening because i dont have a server version of ubuntu.


How do the completion of online courses impact a Master's application?

I see places like Coursera, Udacity and EdX offer certificates upon successful completion of course work. Also most of the people doing recorded teaching at these places are famous and well known professors.  So if someone mentions those kind of course certificates in CV or application material for grad school, does it have a significant value for the applicant?   Do you consider these kind of certificates at the same level with a grade on an academic transcript?


ORIGINAL QUESTION: I have major problems compiling Feynman diagrams produced with the tikz-feynman package with lualatex. To make it less likely that I am just sloppy, I copied the example from this .   \documentclass[tikz, border=10pt]{standalone}  \usepackage[compat=1.1.0]{tikz-feynman}  \begin{document} \begin{tikzpicture}   \begin{feynman}     \diagram [vertical'=a to b, edges={red}] {       i1 -- [fermion] a -- [fermion] f1,       a -- [photon] b,       i2 -- [fermion] b -- [fermion] f2,     };      \vertex [above right=of f1] (k1);     \vertex [below right=of f1] (p1);     \vertex [below right=of f2] (k2);     \vertex [above right=of f2] (p2);      \diagram* {       (f1) -- [fermion] (k1),       (f1) -- [photon] (p1),       (f2) -- [fermion] (k2),       (f2) -- [photon] (p2),     };   \end{feynman} \end{tikzpicture} \end{document}   Given that this the accepted answer, it is probably safe to assume that there was a time when this could be compiled. However, when I compile it on my updated TeXLive2018 distribution with lualatex, I get the error message  ! Package pgf Error: Graph drawing library 'circular' not found.   EXTRA INFORMATION: This question was marked as a duplicate (by myself) of . Indeed, if one uses the  to fix it, one may arrive at  \documentclass[tikz, border=10pt]{standalone} \usepackage{luacode} \usepackage{tikz} \usetikzlibrary{graphdrawing}  \begin{luacode*} function pgf_lookup_and_require(name)     local sep = package.config:sub(1,1)     local function lookup(name)         local sub = name:gsub('%.',sep)           if kpse.find_file(sub, 'lua') then             require(name)         elseif kpse.find_file(sub, 'clua') then             collectgarbage('stop')              require(name)             collectgarbage('restart')         else             return false         end         return true     end     return         lookup('pgf.gd.' .. name .. '.library') or         lookup('pgf.gd.' .. name) or         lookup(name .. '.library') or         lookup(name)  end \end{luacode*}  \usepackage[compat=1.1.0]{tikz-feynman}  \begin{document} \begin{tikzpicture}   \begin{feynman}     \diagram [vertical'=a to b, edges={red}] {       i1 -- [fermion] a -- [fermion] f1,       a -- [photon] b,       i2 -- [fermion] b -- [fermion] f2,     };      \vertex [above right=of f1] (k1);     \vertex [below right=of f1] (p1);     \vertex [below right=of f2] (k2);     \vertex [above right=of f2] (p2);      \diagram* {       (f1) -- [fermion] (k1),       (f1) -- [photon] (p1),       (f2) -- [fermion] (k2),       (f2) -- [photon] (p2),     };   \end{feynman} \end{tikzpicture} \end{document}     The good news is that the error is gone. However, the output looks really different from the output of the original answer    in that the photon vertex on the top right has move to the left. When I marked my answer as a duplicate, I did not carefully check that the output is OK. Now I did, and realized that the output produced using Henri's fix produces unexpected results. Therefore, I'd like to reopen the question.


sort command ignore leading blanks and enable dictionary order by default

1. How come sort command ignore leading blanks even though I didn't specify -b? Text File file1 Morpheus   Trinity       Neo Cypher  Command > sort file1 Shell Output Cypher Morpheus       Neo  Trinity  Since the byte code of SPACE comes before alphabets in ASCII. Aren't Neo and Trinity supposed to come before both Cypher and Morpheus?    2. How come sort command enable dictionary order even though I didn't specify -d? Text File file2 {Neo Morpheus Trinity Cypher  Command > sort file2 Shell Output Cypher Morpheus {Neo Trinity  Since the bytecode of { comes after the alphabets in ASCII, aren't {Neo should comes last?


I am using Drupal 8 and want to use custom query to get details like below:  $db = \Drupal::database(); $query = $db->select('sinica_grade_summary','sgs'); $query->fields('sgs', ['id', 'coursename', 'average', 'grade', 'term', 'schoolname']); $query->condition('sgs.uid', $id, '='); $query->groupBy("sgs.coursename");   Getting this error :  Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42000]: Syntax error or access violation: 1055 'lmhd8.sgs.id' isn't in GROUP BY: SELECT sgs.id AS id, sgs.coursename AS coursename, sgs.average AS average, sgs.grade AS grade, sgs.term AS term, sgs.schoolname AS schoolname, COUNT(sgs.id) AS count FROM {sinica_grade_summary} sgs WHERE (sgs.uid = :db_condition_placeholder_0) GROUP BY sgs.coursename ORDER BY id DESC LIMIT 11 OFFSET 0; Array ( [:db_condition_placeholder_0] => 28 ) in Drupal\resume\Controller\ResumeController->sinica_academic_detail()    I used mariadb10, there is no sql_mode been used   mysql  Ver 15.1 Distrib 10.1.13-MariaDB, for osx10.11 (x86_64) using readline 5.1  MariaDB [(none)]> SELECT REPLACE(@@SQL_MODE, ',', '\n'); +--------------------------------------------+ | REPLACE(@@SQL_MODE, ',', '\n')             | +--------------------------------------------+ | NO_AUTO_CREATE_USER   NO_ENGINE_SUBSTITUTION | +--------------------------------------------+   Here is table structure      CREATE TABLE `sinica_grade_summary` (   `id` int(10) unsigned NOT NULL AUTO_INCREMENT,   `uid` int(10) unsigned NOT NULL,   `studentid` int(10) DEFAULT NULL,   `courseid` int(10) DEFAULT NULL,   `leadcourseid` int(11) DEFAULT NULL COMMENT '对应 courseid 关系',   `coursename` varchar(64) DEFAULT NULL,   `teacher` varchar(64) DEFAULT NULL,   `teacher_email` varchar(32) DEFAULT NULL,   `average` varchar(64) DEFAULT NULL,   `grade` varchar(64) DEFAULT NULL,   `status` varchar(64) DEFAULT NULL,   `createtime` int(11) DEFAULT NULL,   `markingperiodid` int(11) DEFAULT NULL,   `durationid` int(11) DEFAULT NULL,   `term` varchar(64) DEFAULT NULL,   `gradelevel` varchar(32) DEFAULT NULL,   `schoolname` varchar(64) DEFAULT NULL,   PRIMARY KEY (`id`),   KEY `sinica_uid` (`uid`),   KEY `sinica_term` (`term`) USING BTREE,   KEY `sinica_subject` (`coursename`) ) ENGINE=InnoDB AUTO_INCREMENT=623 DEFAULT CHARSET=utf8mb4 COMMENT='The data table for user entities.';   How to fix this problem?


If $f'(x) = g(x)$ and $g'(x) = - f(x)$ for all real $x$ and $f(5) =2 =f'(5)$ then we  have to find $f^2$$(10) + g^2(10)$  I tried but got stuck


I was using Windows XP, I like Ubuntu, but I'm wondering,because as  I'm a professional photographer & photo editor.  I do my work with Photoshop, so will photoshop work in ubuntu?


JScript Regex: money with currency between two substrings

In a oneline string I need to extract all appearances of money from between two substrings "total" and "EUR" or "total" and "GBP". Decimal seperator is either dot or comma, thousand separator is either dot or comma or space or no seperator. Currency symbol always follows the money and needs to be returned, preceding text needs to be dropped. I got to the point where whole bit i.e. preceding text, money and currency is extracted but don't know how to get money with currency only. string = 'Total t asdf: 9 131,52 EUR Po: f423.888 TOTAL ABC.DE GBPjhgv total 7.92 GBP,.or total 1000123,00EUR' expected result: 9 131,52 EUR,7.92 GBP,1000123,00EUR reg = new RegExp('total(.*?)(?:EUR|GBP)','ig')  Thank you.


Bittorrent is unchosen how to choose it as default software for torrent download?

In Ubuntu 12.04, how can I choose Transmission as the default bittorrent client? Somehow I unchose it.


ok so i feel like im missing something so trivial but i dont know what im doing wrong. Im just trying to insert some data into a table but im getting an error  INSERT INTO SHOPS VALUES ('12345', '10 smith street', 'brunswick', '3030',  '0404123123', 'shop1@shop.com'**),** ('65435', '10 road street', 'fitzroy', '3030',  '0404546564', 'shop2@shop.com'), ('34232', '10 car street', 'carlton', '3030', '0404455432',  'shop3@shop.com');   So im getting an error on the bracket and comma i bolded on the 4th line.  If anyone knows how to fix this i would be very grateful.


Value of having done applied math research when applying to PhD programs in pure math

I will be a second year math under-grad in September, and currently doing an internship at applied math research institute. Most probably, I will come up with a research paper at the end of the internship.  However, my interest after my bachelors is to do PhD in pure math from a top math school.My question is this:     Would the admission committee consider my current research since it is in applied math?    In addition, if anyone can suggest me some ideas on how can I bridge the gap between my paper in applied math and my interest in analysis, I would be extremely grateful.  P.S.:  is a related but different question also of mine.


There's always that pesky cylinder thing on every cable I have.    What is it?  And more importantly, why don't Apple's products have them?


Let $\Omega \subseteq \mathbb{C}$ be open and $\gamma:[\alpha,\beta]\rightarrow \Omega$ be a piecewise continuously differentiable and closed path. Why does $z^{-1}$ have no antiderivative on $\mathbb{C}\setminus0$? Why is $\int\limits_\gamma z^{-1} dz = 2\pi i \cdot \text{ind}_\gamma (0)$, where $\text{ind}_\gamma$ denotes the winding number.


Is my proof of the additivity property of Riemann integral correct?

Background  I am trying to prove the following theorem.     Let $f:[a,b]\to\mathbb{R}$ be a bounded function. If $c\in(a,b)$ then show that $f:[a,b]\to\mathbb{R}$ is Riemann Integrable on $[a,b]$ if $f$ is Riemann Integrable on both $[a,c]$ and $[c,b]$.   Notation  We use the following notations to simplify our discussion.   The collection of all partitions on $[a,b]$ for the function $f$ is denoted by $\mathcal{P}(f,[a,b])$. The upper sum for partition $P\in\mathcal{P}(f,[a,b])$ is denoted by $U(f,P,[a,b])$. The lower sum for partition $P\in\mathcal{P}(f,[a,b])$ is denoted by $L(f,P,[a,b])$.   Sketch of the Proof of the Theorem  Observe that, $$(P\in \mathcal{P}(f,[a,c]))\land(Q\in\mathcal{P}(f,[c,b]))\implies P\cup Q\in \mathcal{P}(f,[a,b])\tag{1}$$Furthermore, $$U(f,P\cup Q,[a,b])=U(f,P,[a,c])+U(f,Q,[c,b])\tag{2}$$$$L(f,P\cup Q,[a,b])=L(f,P,[a,c])+L(f,Q,[c,b])\tag{3}$$If we define, $$\mathcal{P}^\ast(f,[a,b]):=\{P\cup Q: (P\in \mathcal{P}(f,[a,c]))\land(Q\in\mathcal{P}(f,[c,b]))\land (P\cap Q=\{c\}) \}$$Then $\mathcal{P}^\ast(f,[a,b])\subseteq \mathcal{P}(f,[a,b])$. Now, observe that, \begin{align}\int_{a}^{\bar{b}}f&=\inf\{U(f,R,[a,b]):R\in\mathcal{P}(f,[a,b])\}\\&\le \inf\{U(f,R,[a,b]):R\in\mathcal{P}^\ast(f,[a,b])\}\\&=\inf\{U(f,P(R),[a,c])+U(f,Q(R),[c,b]):(P(R),Q(R))\in\mathcal{P}(f,[a,c])\times \mathcal{P}(f,[c,b])\}\\&=\inf\{U(f,P,[a,c])+U(f,Q,[c,b]):(P,Q)\in\mathcal{P}(f,[a,c])\times\mathcal{P}(f,[c,b]) \}\\&=\inf\{U(f,P,[a,c]):P\in\mathcal{P}(f,[a,c])\}+\inf\{U(f,Q,[c,b]):Q\in\mathcal{P}(f,[c,b])\}\\&=\int_{a}^c f+\int_{c}^b f\end{align}Similarly, \begin{align}\int_{\bar{a}}^{b}f&=\sup\{L(f,R,[a,b]):R\in\mathcal{P}(f,[a,b])\}\\&\ge \sup\{L(f,R,[a,b]):R\in\mathcal{P}^\ast(f,[a,b])\}\\&=\sup\{L(f,P(R),[a,c])+L(f,Q(R),[c,b]):(P(R),Q(R))\in\mathcal{P}(f,[a,c])\times \mathcal{P}(f,[c,b])\}\\&=\sup\{L(f,P,[a,c])+U(f,Q,[c,b]):(P,Q)\in\mathcal{P}(f,[a,c])\times\mathcal{P}(f,[c,b]) \}\\&=\sup\{L(f,P,[a,c]):P\in\mathcal{P}(f,[a,c])\}+\sup\{L(f,Q,[c,b]):Q\in\mathcal{P}(f,[c,b])\}\\&=\int_{a}^c f+\int_{c}^b f\end{align}Consequently we have, $$\int_{a}^c f+\int_{c}^b f\le \int_{\bar{a}}^{b}f\le \int_{a}^{\bar{b}}f\le  \int_{a}^c f+\int_{c}^bf$$which implies, $$\int_{a}^{b}f=  \int_{a}^c f+\int_{c}^bf$$  Question  Is my proof correct?