Showing two listings in a table side-by-side

I wonder is there any possibility to show two different listings in one table side by side? Here is my code that only show one listening but how can I embed it in a table and another one?  EDIT: Even I have tried the mentioned links on below, I get a few errors while compiling the file. I also post my edited LaTeX code.      \documentclass[english,a4paper,12pt]{report} \usepackage{mathpazo} \usepackage{graphicx} \renewcommand{\sfdefault}{lmss} \usepackage{courier} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{listings}  \begin{document} \begin{tabular}{|l|l|}  \begin{minipage}{.48\textwidth} \begin{lstlisting}[ basicstyle={\scriptsize\ttfamily}, identifierstyle={\color{black}}, tabsize=2, language={[AspectJ]Java}, numbersep=8pt, numbers=left, xleftmargin=0.5cm,frame=tlbr,framesep=2pt,framerule=0pt, morekeywords ={class,run} ] class PrintHelloThread ext Thread {     void run(Dummy x) {         out.println("Hello world")     } }  class X ext ProxifiedObject {     PrintHelloThread thread      void main(X x) {         x.thread := new PrintHelloThread;         x.thread.start(0);         x.thread.join(0);     } } \end{lstlisting} \end{minipage}  &  \begin{minipage}{.48\textwidth} \begin{lstlisting}[ basicstyle={\scriptsize\ttfamily}, identifierstyle={\color{black}}, tabsize=2, language={[AspectJ]Java}, numbersep=8pt, numbers=left, xleftmargin=0.5cm,frame=tlbr,framesep=2pt,framerule=0pt, morekeywords ={class,run} ] class PrintHelloThread ext Thread {     void run(Dummy x) {         out.println("Hello world")     } }  class X ext ProxifiedObject {     PrintHelloThread thread      void main(X x) {         x.thread := new PrintHelloThread;         x.thread.start(0);         x.thread.join(0);     } } \end{lstlisting} \end{minipage} \\  \end{tabular} \end{document}   What I would like to show is :


How to Add Spine to Cover Page of Thesis

I was wondering if anyone could please tell me how could I generate a spine like this on the cover page of my thesis?


What is a good book on lattice theory that is not complicated and can be used as an introduction to the subject (even long from the very basics to more advanced material)?


Plants vs. Zombies 2 Piñata Party mini-game location?

An update released today includes a piñata party mini-game. Where is it in the game? I can't find it.


Possible Duplicate:             Could large images of more then 640 pixels wide automatically be resized to reduce loading time and band width use? Not that I have a prehistoric internet connection here, but sometimes pages seem to need unnecessary time to load fully.  I just resized the image  from 179 kb down to 32 kb using a 15% compression rate. I think that is already worth it, although there have been much bigger downsizes in the past.  This feature then propably should/could be combined with , and uploading an image then would result in the following post addition:  [![enter image description here][2]][1]  [1]: http://i.stack.imgur.com/ZSBxw.gif "View <image title> full sized" [2]: http://i.stack.imgur.com/VXmBA.jpg "<Image title>"   Update:  I now understand from  that images áre resized already, but that post authors have to do some changes themselves. Could it then be automated to add the already resized image (that with the l suffix):  [![enter image description here][2]][1]  [1]: http://i.stack.imgur.com/ZSBxw.gif "View <image title> full sized" [2]: http://i.stack.imgur.com/ZSBxwl.jpg "<Image title>"


Will my hard drives be harmed if I hold down the power button for 5 seconds?

Sometimes I face the problems with my video card, so the system freezes. Reset button is broken, so the only way is to hold down power button for 5 secs. Guess that this action differs from power loss, cause motherboard controls process of poweroff, it may send some signals to hw, before shut down.   I am worried about my hard disk drives. Will the hard disk drives heads be safely parked or I will get +1 bad event to SMART? Or it motherboard-dependent?


Why is the restoring force directly proportional to extension?

When deforming any spring the deforming force is always greater than the restoring force until equilibrium is reached. So, if a constant deforming force caused an extension in any spring the restoring force will increase until it becomes equal to the restoring force and equilibrium is reached. However, I do not understand how the restoring force even increases with extension. I imagine it is related to the fact that the more we deform a spring the more potential energy it has, but I do not know how exactly this affects the restoring force. An explanation which includes the behaviour of the bonds and molecules in any spring during the deformation is appreciated.


Does this sentence call for the plural verb "were" here, or the singular "was"?     Neither he nor the others were aware of it      Neither he nor the others was aware of it


I want to "reset" the figure counting in my document when the appendix starts, and follow a different pattern than 1, 2, 3... Specifically, I want figures in the appendix to start with A.1, A.2 onward, instead of continuing on from the main document. How can I do this?  \documentclass[twoside]{article}  \usepackage{graphicx,dblfloatfix}   \usepackage{titlesec}% Allows customization of titles \titleformat{\section}[block]{\large\scshape\centering{\Roman{section}.}}{}{1em}{} % Change the look of the section titles   \begin{document}  \section{Introduction} \subsection{Problem description} Blah blah \begin{figure}[!htb]     \centering      \includegraphics{decon}     \caption{Call this figure 1.} \label{fig1}  \end{figure} \appendix \section{Figures}  \begin{figure}[!htb]     \centering      \includegraphics{decon}     \caption{Call this figure A.1.} \label{figa1}  \end{figure}  \begin{figure}[!htb]     \centering      \includegraphics{decon}     \caption{Call this figure A.2.} \label{figa2}  \end{figure}  \end{document}


How to achieve vertical lift using magnets

Is there a way to create vertical lift using magnets which are aligned with same facing polarity?


True\False :The ring $\mathbb{Z}_2 \times \mathbb{Z}_2$ is a domain   solution  True  A commutative ring with identity is said to be an integral domain if it has no zero divisors.


Let $Y \subset \mathbb{A}^3$ be the set $Y=\{(t,t^2,t^3) \}$.  Show that dim $Y =1$.  To do so, I have to reveal what is the closed set of $Y$.  Please give me a hint.  This differs the , in which the ideal are discussed. However I want to consider the dimension. To do so, I need the sequence of irreducible distinct closed subset $Z_1 \subset Z_2 \subset ...$


I have heard that one can recover classical mechanics from quantum mechanics in the limit the $\hbar$ goes to zero.  How can this be done?  (Ideally, I would love to see something like: as $\hbar$ goes to zero, the position wavefunction reduces to a delta function and that the Schrodinger equation/Feynman path integral reduces to the Newtonian/Lagrangian/Hamiltonian equations of motion.)


Python extract all text from XML node with child tags

I have an XML with the following structure:  <mrk mtype="seg" mid="12">line 1 <x id="211"/>             <x id="212"/> line 2 <x id="213"/>             <x id="214"/> line 3 <x id="215"/> </mrk>   My code:  node = tree.find("mrk") print(node.text)   yields:     line 1   How do I get the full text ("line 1 line 2 line 3") using Python 3.5 and ElementTree?  UPDATE  This is a bit different from  because I need the text without any child tags.   The easiest SOLUTION I found is:  "".join(node.itertext())


1.There is no  bird park in Southeast Asia as large as Jurong Bird Park.      2.There is no other bird park in Southeast Asia as large as Jurong Bird Park.   In my opinion, sentence 1 means Jurong Bird Park may be or may not be in Southeast Asia. Sentence 2 means Jurong Bird Park is in Southeast Asia for the usage of ''other''.  I want to know your opinions.


After monitor calibration colors on my two monitors are still different, why?

I have a pair of pretty nice monitors (HP ZR30w) which I calibrated with a pretty good calibrator (i1-Pro) and after I calibrated both they still show colors every so slightly differently.  My left monitor has a little more magenta color to it in photos.  Is monitor calibration only ment to get things 'close'?  Other people in the office have experienced similar issues with their pairs of monitors, both HP ZR30w and Dell 3007WFP-HC monitors.  If I can't even get colors to match between my two exact same monitors connected to the same computer I have little confidence that colors on my monitors will look the same on somebody else's calibrated monitor :p


Citing a paper under review in 2 different conferences

I am currently writing 2 conference papers. One is highly quantitative in nature and the other is absolutely qualitative in nature. I am submitting both papers to conferences having deadlines in the next couple of months.  The papers present results on 3 different research questions on the same topic and are highly related with each other. You could argue that paper A + paper B together present a holistic view of the answer to these research questions. Individually, paper A and paper B show a different side to the problem since you generally get alternate points of view from quantitative and qualitative works.   Since the papers and their results are highly interrelated, there exists a compelling reason for me to ensure that they cite each other. I have seen  question and  question which are also highly related to my question. However, my question is different enough, in my opinion to warrant a separate question.    How should I cite these papers? (one paper is going to be in APA style and the other will be in ACM style) Does it make good sense to contact the Associate Chairs of these conferences for further clarification? The most important question for me is, is this ethical? Does it not break the double blind review system? I am ready to not cite these papers if that is the case.   I am having conversations with my adviser about this but just want some broader perspective from different disciplines if I am somehow missing something.


What are the valid characters for macro names?

Are C-style macro names subject to the same naming rules as identifiers?  After a compiler upgrade, it is now emitting this warning for a legacy application:  warning #3649-D: white space is required between the macro name "CHAR_" and its replacement text   #define         CHAR_&        38   This line of code is defining an ASCII value constant for an ampersand.  #define   DOL_SN        36 #define   PERCENT       37 #define   CHAR_&        38 #define   RT_SING       39 #define   LF_PAR        40   I assume that this definition (not actually referenced by any code, as far as I can tell) is buggy and should be changed to something like "CHAR_AMPERSAND"?


Can I just fill Name, Email, Home Page at the end of /questions/ask page?


How to prove $\gcd(a^m,b^m) = \gcd(a,b)^m$ using Bézout's Lemma

The problem is to prove the following   If $\gcd(a,b) = c$, then $\gcd(a^m, b^m) = c^m$    I know that this can be solved easily by proving that $c\mid a \implies c^m \mid a^m$ and $c\mid b \implies c^m \mid b^m$. So the greatest common divisor of $a^m$ and $b^m$ is $c^m$. But the problem is that I want to use Bézout's Lemma (Identity) to prove this.  I first introduce the following notation:  $$a = ca' \quad \quad b = cb', \quad \quad \text{where $(a',b') = 1$.}$$  Now from Bézout's Lemma, becaus $a'$ and $b'$ are coprime integers then we have integer solutions for the following equation:  $$a'x + b'y = 1$$  It's obvious that also the following equation has an integer solution:  $$a'^mx_1 + b'^my_1 = 1$$  Although I'm not able to prove this using Bézout's Lemma.  Now multiply both sides by $c^m$ we get:  $$(a'c)^mx + (b'c)^my = c^m$$ $$a^mx + b^my = c^m$$  But Bézout's Lemma states that for given $c^m$ is the greatest common multiplier of $a^m$ and $b^m$ or it is a multiplier of it.  But how to prove that it's not a multiplier of the greatest common multiper, and in fact is the greatest common multiplier. Is it possible to solve this problem with Bézout's Lemma?


What does it mean when someone uses two periods?

In past communications with non-native English speakers, I occasionally see the use of two periods. Some examples:  Ok.. let's meet soon. Sounds good.. Thursday Meeting..  This seems to show up mostly in informal communication. It looks to be some kind of half-ellipsis. Where does this come from and what is the intended meaning?


Can I have a unique UV map for each frame?

This is sort of an unconventional use of Blender, but I'm straightening the distortion of scanned pages of a book, and I have the pages of the book scanned and numbered. What I want to do is use a plane with a simple UV map (two faces, one for the left page and one for the right). I've tested this concept out and it works for a single scanned image. I'm thinking I can run the scanned pages as an animated image sequence. What I'm not sure how to animate is the UV maps. Any idea how I can have a different UV map be called automatically for each frame, corresponding to its number? Maybe there is some way to use Python to update which UV map is used in the material's UV node?


We define derivatives of functions as linear transformations of $R^n \to R^m$. Now talking about the derivative of such linear transformation ,  as we know if $x \in R^n$ , then  $A(x+h)-A(x)=A(h)$, because of linearity of $A$, which implies that $A'(x)=A$ where , $A'$ is derivative of $A$ .  What does this mean? I am not getting the point I think.


Citizens of my country don't need a schengen zone visa to enter. however we're allowed to stay 90 days on a 180 period. i travelled for three month and didn't count properly and stayed 91 days. when I left the schengen zone i wasn't told anything. i haven't received any notice either.   how can i know if i'm facing any consequence? i'm planning on travelong again for three months, obviously respecting the three month period that i have to wait. is there any chance they won't let me in the schengen zone?


Is it possible to import all subpackages at once in Java?  As I learned it seems possible in C#:


How to correctly sort calendar months "mmm" with AutoFilter?

I need to use filter to sort calendar months in mmm format.  Data > Sort > Custom will do it but I cannot make filter work. Months are in a column eg SEP, APR, JAN, APR, etc.  Filter just does an alphabetical sort so it puts all the APR first.


How to automatically create large number of columns in Excel 2013

I would like to start a new excel spreadsheet, create a column named Column1, and quickly fill in increments, (Column2, Column3 etc) up to Column500. Is there an easy way to do this?   Also is there an easy way to afterwards select all 500 columns and add 10 rows of data to all of them?


Merging different types (e.g., polygon with polyline) of shapefiles?

I want to create a watershed shapefile with areas, streams and pour points in it.  Is there a way to merge the areas (polygons) with streams (polylines) and pourpoints (points)?


When does search use keywords and when does it auto-convert them to tags?

When I use the search engine, when and why does it auto-convert some keywords to tags?   For example, when I input "jav" in the search engine, it gives me 283 results including relevant questions and answers.   When I input "java" in the search engine, it links to the tagged questions page. How does that work?


Connecting flight from Canada through the US

If you are an international student from Jamaica in Canada and you book a connecting flight stopping in the USA, can you leave the airport if there is a 20-hour layover?


multiple content place holders..1 with a text entry box and a submit button.. the second content place holder has several options in.. when i perform the submit the options from the 2nd place holder aren't getting passed through. can you suggest a method on how i can perform this submission passing all values to my controller? the values outside the 1st place holder are getting set to null.  thanks


Why Doesn't My Proof, That Rational Numbers Are Uncountable, Work? (Using Cantors Argument)

First I'd like to recognize the shear number of these "anti-proofs" for Cantor's Diagonalization Argument, which to me just goes to show how unsatisfying and unintuitive it is to learn at first. It really gives off a "I couldn't figure it out, so it must not have a mapping" kind of vibe. I have read these posts [   ] and do recognize many of the mistakes though potentially not all so I apologize if I end up repeating some of them. That said here is my attempted proof which I know must be wrong but don't understand why. Proof by Contradiction:  Since all subsets of a countable set are countable, if rational numbers are countable then the subset $(0,1)\in \mathbb{Q}$ is therefore countable.  Where $i \in \mathbb{N}$ and $n,d\in \mathbb{N}$ let: $$ q_i=\frac{2^{n_{i1}}\cdot 3^{n_{i2}} \cdot 5^{n_{i3}} \cdot 7^{n_{i4}} \cdot ... }{2^{d_{i1}}\cdot 3^{d_{i2}} \cdot 5^{d_{i3}} \cdot 7^{d_{i4}} \cdot ... },  \text{where} \,n_{ij}\ne0\to d_{ij}=0 \, \text{and} \,d_{ij}\ne0\to n_{ij}=0 $$ By using the fundamental theorem of arithmetic we know that we can represent all integers in both the numerator and denominator of $q_i$ and that $q_i\ne q_k$ unless for all index values of $\mathbf{n}_i$ and $\mathbf{d}_i$ are equal to those of $\mathbf{n}_k$ and $\mathbf{d}_k$.  With this we can represent the set $(0,1)\in\mathbb{Q}$ as $\{q_1, q_2, q_3,...\}$.  However, using Cantor's Diagonalization Argument we can create: $$ q=\dfrac{2^{n_{11}}\cdot 3^{n_{22}} \cdot 5^{n_{33}} \cdot 7^{n_{44}} \cdot ...}{2^{d_{11}\,+1}\cdot 3^{d_{22}\,+1} \cdot 5^{d_{33}\,+1} \cdot 7^{d_{44}\,+1} \cdot ...} $$ The new value $q$ will not be equal to any elements in $\{q_1, q_2, q_3, ...\}$ and it also isn't necessarily a larger number or smaller number (so I'm not just counting up or down by one). The value $q$ will also need to exist in the subset.  Any help pointing out my mistakes will help me finally seal my unease with Cantor's Diagonalization Argument, as I get how it works for real numbers but I can't seem to wrap my mind around it not also being applied to other sets which are countable.


Proving $g(x)$ is not a rational function

Show that $\sqrt{1-4x}$ is not a rational function (i.e. there do not exist polynomials $f(x)$ and $g(x)$ so that $\sqrt{1-4x} = \dfrac{f(x)}{g(x)}.$  I tried assuming that $f(x)$ and $g(x)$ exist, but I'm not really sure how to derive a good contradiction. If I write $f(x) = \sum_{n\geq 0} f_nx^n$ and $g(x) = \sum_{n\geq 0} g_nx^n,$ then $f(x)^2 = \sum_{n\geq 0} (\sum_{k= 0}^n f_k f_{n-k})x^n$ and $g(x)^2 = \sum_{n\geq 0} (\sum_{k =0}^n g_k g_{n-k})x^n$. Squaring both sides and multiplying by $g(x)^2$ yields $g(x)^2 (1-4x) = f(x)^2.$ Then $\sum_{n\geq 0} (\sum_{k= 0}^n g_k g_{n-k})x^n (1-4x) = \sum_{n\geq 0} (\sum_{k= 0}^n g_k g_{n-k})(x^n-4x^{n+1}) = \sum_{n\geq 0} (\sum_{k= 0}^n f_k f_{n-k})x^n.$ Equating coefficients gives that $g_0^2 = f_0^2$ and for $n\geq 1, \sum_{k=0}^{n}g_kg_{n-k}-4\sum_{k=0}^{n-1}g_kg_{n-1-k} = \sum_{k=0}^n f_kf_{n-k}.$ Since this holds for $n=1,$ we have $g_0g_1 + g_1g_0 - 4g_0^2 = g_0g_1 + g_1g_0-4f_0^2= f_0f_1 + f_1f_0\Rightarrow g_0g_1 + g_1g_0 = f_0f_1 + f_1f_0 + 4f_0^2.$ Similarly, for $n=2,$ we have $g_0g_2 + g_1^2 + g_2g_0 - 4(g_0g_1 + g_1 g_0) = f_0f_2 + f_1^2 + f_2f_0.$ Continuing in this fashion, we see that the coefficient of $x^n$ in $g(x)$, which is $\sum_{k=0}^n g_kg_{n-k},$ is equal to $4^n f_0^2$ plus some other terms. If $f_0 = 0,$ then from above, we can deduce that $g_0^2 = f_0^2 \Rightarrow g_0 = 0 \wedge g_0g_1 + g_1g_0 = 0\wedge g_1^2 = f_1^2.$ Thus we may assume WLOG that $f_0 \neq 0$ by finding the least $k$ so that $f_k\neq 0$ (there exists such a $k$ since $f(x) \neq 0$ in order to satisfy the equality. But then, this means that as $n\to \infty, 4^n f_0^2 \to \infty,$ so the coefficient of $x^n$ of $g(x),$ being the sum of $4^n f_0^2$ and finitely many terms of the form $4^j f_mf_n$ tends to infinity or is undefined (if $f_1$ is the opposite sign of $f_0$, then the term $4^{n-1} f_1 f_0$ tends to $-\infty$), which contradicts the fact that the coefficients of $g(x)^2$ are finite.  Is this wrong? I believe the argument that not all of the coefficients of $g(x)^2$ would be well-defined may be wrong. Would there be an easier way to show this contradiction?


My computer starts up normally. Then when it goes to the ASUS load up screen, there is no spinning wheel.  So I go to boot menu and there is some information. There is no clicking in the hard drive.  When I hold esc it loads up two choices, and of course I pick the hard drive. Then it goes to a black screen, it says     Reboot and Select proper Boot device or Insert Boot Media in selected a lot device and press key.   Could someone please tell me if my hard drive disk is out of place or if my computer is out of wack?


I read tutorials about int* and int&. first, I type   int a = 3    and then,  int* x = &a;    means x is a pointer to the address of a which means the VALUE of x is something that POINTS to the address of a. Correct?   but if I do   int& x = a;    that means the ADDRESS of x is pointing to the VALUE of a right? or does it mean something different? what EXACLTY does it mean?


View the list of items in a review queue

In the current format the items in a review queue are presented one by one and users have to skip or take a decision before moving to the next item. At this moment only moderators and very high rep users can check and review the skipped items.  Instead of this, if it was possible to view all the items in any review queue as a list, then users can decide on which ones to review without having to skip any item. This would also allow users to come back and review a dicey post when they are sure about it.  This would also be useful for moderators and high rep users to know what posts deserve immediate attention.   Can this be implemented? Or at the very least, can moderators and high-rep users see a list of review queue items: a mod tool to enable that.    A bit of clarification  What I mean is that the reviewer just gets a list of posts that need review. They cannot review all at once in a way suggested by the other post but can choose which one to review first. That post will still remain locked as it happens in the existing system (as mentioned by Robert Longson).


How to have No fancy header in first page?

I can remove the top bar but not only in the first page.  Code   \documentclass{article} \usepackage{lipsum}   \usepackage{graphicx} \usepackage{fancyhdr}% http://ctan.org/pkg/fancyhdr  %http://tex.stackexchange.com/q/30228/13173 \newsavebox{\myheadbox}% Heading storage box \pagestyle{fancy} \rhead{\textsc{School} \cfoot{\thepage}  \begin{document} \lipsum \lipsum \end{document}   Output: top bar visible in the first page.   TeXLive: 2016 OS: Debian 8.5 64 bit


Will Ubuntu 20.04 work fine on a Raspi 3 B, or should I use 18.04 (except things won't be updated, and the EOL is in a few months)? 3B, 1GB of RAM


Function-local static objects in static inline functions aren't shared

I have the following in bla.h: #include <iostream>  static inline void bla() {   static int x;   std::cout << "bla @ " << (uintptr_t)bla << ": x @ " << &x << std::endl; }  Then bla() is called from 2 separate translation units resulting in this output: bla @ 94796100194693: x @ 0x56376fe10178 bla @ 94796100194897: x @ 0x56376fe10180  This is a bit surprising to me after reading . It says:  In an inline function,  Function-local static objects in all function definitions are shared across all translation units (they all refer to the same object defined in one translation unit)   In that sentence it does NOT restrict this to "with external linkage (e.g. not declared static)" like it does in the paragraph before that for "It has the same address in every translation unit". So I expected the output to show different addresses for bla but identical addresses for x. Is this a bug in g++? Note: This is specific to the changed meaning of inline in C++17.


What is the real-world use of the bg command?

This is the output:   [USER@SERVER ~] ping localhost PING localhost (127.0.0.1) 56(84) bytes of data. 64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.037 ms 64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.024 ms 64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.030 ms 64 bytes from localhost (127.0.0.1): icmp_seq=4 ttl=64 time=0.026 ms 64 bytes from localhost (127.0.0.1): icmp_seq=5 ttl=64 time=0.026 ms ^Z [1]+  Stopped                 ping localhost [USER@SERVER ~] jobs [1]+  Stopped                 ping localhost [USER@SERVER ~] bg %1 [1]+ ping localhost & 64 bytes from localhost (127.0.0.1): icmp_seq=6 ttl=64 time=0.034 ms [USER@SERVER ~] 64 bytes from localhost (127.0.0.1): icmp_seq=7 ttl=64 time=0.030 ms 64 bytes from localhost (127.0.0.1): icmp_seq=8 ttl=64 time=0.032 ms  [USER@SERVER ~] ^C [USER@SERVER ~] ^C [USER@SERVER ~] 64 bytes from localhost (127.0.0.1): icmp_seq=9 ttl=64 time=0.031 ms ^C [USER@SERVER ~] 64 bytes from localhost (127.0.0.1): icmp_seq=10 ttl=64 time=0.031 ms 64 bytes from localhost (127.0.0.1): icmp_seq=11 ttl=64 time=0.028 ms ki64 bytes from localhost (127.0.0.1): icmp_seq=12 ttl=64 time=0.030 ms ll %64 bytes from localhost (127.0.0.1): icmp_seq=13 ttl=64 time=0.031 ms 1 [1]+  Terminated              ping localhost [USER@SERVER ~]    of:  1) I start to ping localhost 2) CTRL+Z 3) bg %1 4) CTRL+C doesn't work.  5) I have to type "kill %1" to kill it..   What is the real-life use of the "bg" command? Where is it used in the real world?


Prove that the prime $p$ can only be $13$

Given that $p$ is a prime such that both $\frac{p-1}{4}$ and $\frac{p+1}{2}$ are also primes.Then prove that $p=13$. My try: Let $p_1,p_2$ be primes such that $$\frac{p-1}{4}=p_1$$ and $$\frac{p+1}{2}=p_2$$ So we get, $$p=4p_1+1=2p_2-1$$ Now if i start keeping values ofcourse i am getting $p_1=3,p_2=7,p=13$ as the only prime triplets. But is there a formal way to prove $13$ is the only value of $p$.


Why not send back hundreds of Terminators?

Since the first Terminator failed, Skynet sent back .  Another strategy would have been to send back multiple Terminators. Why was that not attempted? Was there a cost (e.g. power) to sending them back in time?


How can I calculate the R-squared of a regression with arima errors using R?

If I have an arima object like a:  set.seed(100) x1 <- cumsum(runif(100)) x2 <- c(rnorm(25, 20), rep(0, 75)) x3 <- x1 + x2  dummy = c(rep(1, 25), rep(0, 75))  a <- arima(x3, order=c(0, 1, 0), xreg=dummy) print(a)   .  Series: x3  ARIMA(0,1,0)                      Call: arima(x = x3, order = c(0, 1, 0), xreg = dummy)   Coefficients:         dummy       17.7665 s.e.   1.1434  sigma^2 estimated as 1.307:  log likelihood = -153.74 AIC = 311.48   AICc = 311.6   BIC = 316.67   How do calculate the R squared of this regression?


Python regex: How to extract human height (US) from string

If I have a string that contains a human height in the US form (feet, inches) e.g. I've been 5'10" since I was 18 how can I use regex to extract the 5'10" as a tuple? e.g. (5, 10)  So far I tried:  s = "I've been 5'10\" since I was 18" re.findall(r'\d\'\d+\"', s)   Hoping to grab the first digit, which should be a single digit \d and then the next two digits with \d+, but this doesn't work very cleanly, returning ['5\'10"'] and requiring more splitting etc. Ideally there is a way to do this all with regex.


I want to obtain the ASCII number of a character, so I have the following:  VAR="a" NUM=$(printf "%d" "'$VAR") echo $NUM   What does '$ mean in this context? Can someone point me to a documentation to understand the syntax? I don't understand if its part of $(...) or printf or bash.


Under What Circumstances Do Additional Creatures Add to EL?

Question The Dungeon Master's Guide explains that DMs  Do not award XP for creatures that enemies summon or otherwise add to their forces with magic powers. An enemy’s ability to summon or add these creatures is part of the enemy’s CR already. (You don’t give PCs more XP if a drow cleric casts unholy blight on them, so don’t give them more XP if she casts summon monster IV instead.) (37)  Does this mean the DM should not award XP for enemies added to the battlefield via spells and magic powers even if those spells and magic powers have been employed prior to the encounter? Further, what about enemies added to the battlefield via means other than spells and magic powers yet that still expend or exploit the creature's resources? A druid's animal companion and a paladin's mount are among the "magic powers" obviously included in the creature's Challenge Rating, but what about cohorts and followers via the feat Leadership (DMG 106) or animals that have been purchased using the creature's NPC Gear Value (DMG 127)? In short, did I miss--in the DMG or elsewhere--the section addressing creatures using their magical or nonmagical resources to have more creatures on their side before an encounter begins? If I didn't miss that section, is it a reasonable house rule to extend the rules above from the DMG to cover such encounters? (By the way, I know that Challenge Rating and Encounter Level are guidelines--wildly subjective and often inaccurate guidelines--, and therefore I'm unconcerned with an evaluation of the encounter's perceived difficulty. I know I must adjust Challenge Ratings and Encounter Levels based on the characters and circumstances.)  Background I'm designing an encounter with a hag covey (MM 144), and when 3 hags are within 100 ft. of each other one can employ the spell animate dead [necro] (PH 199) as a spell-like ability 3/day as a 9th-level caster. The covey's had both time and access to corpses. That means 12 9-HD CR 4 skeletons (the group of which is an EL 11 encounter) can be present alongside them. Further, one of the hags is a cleric who can cast planar ally [conj] (PH 261), and the hag's NPC Gear Value is sufficient to add to the enemies a 12-HD elemental or outsider to perform a "long-term task, one requiring up to one day per caster level" (PH 261), and that outsider or elemental could reasonably include a glabrezu (MM 43), kelvezu (MM2 61), rukarazyll (MM2 181), or an extremely liberal arcanaloth (MM2 203) with its at-will spell-like ability shapechange [trans] (PH 277-8). Yeah, I know--the Monster Manual 2 has some crazy stuff. Also, all 3 hags possess sufficient class levels to take the feat Leadership and, narratively, should have it. And, narratively, their cohorts should be present during their encounter with the PCs, and their followers should be nearby. Don't worry about the PCs' survival. They're tough. But I am worried about rewarding them appropriately if they defeat the covey. The hag covey has a lot of baggage but mechanically only generates treasure appropriate for an EL 18 encounter (3 CR 15 creatures) unless their animated dead, planar ally, cohorts, and followers all count toward that EL. I know I can totally ignore the entire Encounter Level calculation and instead use the skeleton horde and the planar ally as one encounter, the cohorts and followers as a second, and the hag covey as the boss fight, but I'd still like to know the actual rules.


I was told many times that I'd better stick to some well-known fast-food restaurants rather than eat local food in China. Otherwise, I may spend my whole trip exploring the vast variety of chinese outhouses.    Is this the case for a soft, european belly? Why? If so, can I somehow prevent it from happening while still enjoying some exotic (at least for me) dishes?


Find the sum of $\sum_{k=0}^n{{n \choose k}2^{k}}$

I know $\sum_{k=0}^n{{n \choose k}=2^n}$ but I'm not sure how to solve this with the $2^{k}$ term.


Open Access Crowd Based Publications (StackExchange like)

I am a PhD student in computer science and sometime in the (more or less) near future I have to publish my results. Yet, I am rather sceptic about the current state of publishing, aka peer-reviewed journals, especially when they are not open access. I have published before on Elsevier and honestly I am not sure whether I should do this again. I have political concerns as well as concerns about the quality of the peer-review process.  I wonder what "new ways" are out there for publications?  I am a big fan of StackExchange (especially StackOverflow :-) ), so I am asking if there exists a very similar forum for scientific publications?  Accordingly, a publication happens in form of forum post like this one. Instead of anonymous peer-review, every member of the forum can comment and rate the publication. Is there something like this out there? Thanks a lot!  Edit: Great that someone had the idea a year ago :-) ()  Have been there any attempts to create such a system since then?


Export collection to individual images in GEE

I want to clip a MODIS image collection to an area defined by a bounding box in Google Earth Engine and then export the images separately to my google drive. I want to use a map function to avoid for loop, but the export module parameters can not be dynamically set. For example, for the description (that would be the file name), I want it to be equal to the id of each individual image. However, export module expect a string for name and can not accept a computed object. getInfo() also doesn't work in mapped functions.  var imageCol = MODIS.select('LST_Day_1km').filterDate(startDate, endDate); var clippedCol = imageCol.map(function(image){        var clipped = image.clip(Bbox);        Export.image.toAsset({        image: clipped,        description: image.metadata('system:index'),        region: Bbox,        scale: 1000     });        return clipped   });   Any clue?


Suppose we have two twins travelling away from each other, each twin moving at some speed $v$:    Twin $A$ observes twin $B$’s time to be dilated so his clock runs faster than twin $B$’s clock. But twin $B$ observes twin $A$’s time to be dilated so his clock runs faster than twin $A$’s clock. Each twin thinks their clock is running faster. How can this be? Isn’t this a paradox?


Is there a way to systematically calculate the public exponent $e$ in RSA?

I'm learning RSA in one of my classes and we were given a problem:     $p = 5$, $q = 11$   I have done the following steps:     $n = 5 \cdot 11 = 55$   $\phi = (5-1)\cdot(11-1) = 40$   I know that to find $e$ we have to find an integer co-prime with $\phi$, where $\phi$ is $40$ and $\gcd(e,40) = 1$.  Is there an algorithm I can use by hand that can give me $e$? I know there can be numerous values. The method the professor has shown is to just enumerate each prime and find the first divisible into the totient $\phi$. I assume he will give us small numbers in the exam but still, doing it by trial and error can be time consuming.  I understand one can use extended Euclids algorithm to find the inverse of $e$, which I can do provided I know what $e$ is.  I just struggle with finding $e$.


class Game { public:     static Game& GetInstance()      {         return game_;     } private :     static Game game_;     Game(); };   Выдает ошибку error LNK2001: unresolved external symbol "private: static class Game Game::game_" (?game_@Game@@0V1@A) Не понимаю что не нравится компилятору Спасибо


What to do about keyboard protector grime left on MacBook Pro screen?

For the first couple of years that I had this MacBook Pro (Early 2015, 13 inch) I had a keyboard protector on it. After awhile, the protector left some pretty obvious marks on the screen from it rubbing up against the screen when laptop was closed. I eventually took it off and tried to clean the screen, but none of the regular methods have seemed to do the trick. Instead, they just spread whatever grime was on the screen over the screen more. Never really bothered me, but now I'm looking to sell this laptop and want to fix this issue so it doesn't affect the resell value.  Does anyone have any ideas for a solution? Has anyone else had this same problem?


If $I$ is a maximal ideal of $R$, why is $R/I$ a field?  I'm trying to use the fact that $I$ is maximal to show that $R/I$ only have ideals $\{0\}$ and $R/I$. Can anyone help me with this method. Many thanks.


Can someone please tell me how to upgrade Ubuntu 13.10 to Ubuntu 14.04 ... it gives an error that "third party sources are disabled".. I don't know how to enable them.


If $A,B$ are invertible, show that $AB$ is invertible and express $(AB)^{-1}$ in terms of $A^{-1},B^{-1} $.   $($$A,B$ are matrices.$)$    I did the following: Suppose $AB$ is invertible.  $$AB(AB)^{-1}=I$$  $$A^{-1}AB(AB)^{-1}=A^{-1}I$$  $$B(AB)^{-1}=A^{-1}$$  $$B^{-1}B(AB)^{-1}=B^{-1}A^{-1}$$  $$(AB)^{-1}=B^{-1}A^{-1}$$  I found what $(AB)^{-1}$ might be, now I need to show that $B^{-1}A^{-1}$ is really the inverse:  $$ABB^{-1}A^{-1}=A[BB^{-1}]A^{-1}=[AA^{-1}]=I$$  $$B^{-1}A^{-1}AB=B^{-1}[A^{-1}A]B=[B^{-1}B]=I$$   Is it correct? Do I need these two steps? I feel that the first step shows me what the inverse would be if it exists and the second actually shows that it is the inverse.   EDIT: This question is completely different of . In the aforementioned question, the person didnt know how to do it. I asked if mine is correct and asked if the first part would be required. It is sad that MSE users don't read the questions completely anymore.


How to prevent external USB drive icon appearing in launcher?

When I attach a USB drive (or any external drive) an icon appears in the Launcher.  Is there a way to prevent the USB icon from showing in Launcher?  I know it is possible to right-click and select Unlock from Launcher, but this will not prevent it appearing again. I'm not sure, but probably because this will just blacklist the uuid, which might be different next time one connects the USB device.  So is there a way to prevent any drive or maybe any USB device from appearing in launcher?


Cent OS 7.2 Disk (df -h) 100% full but directory size (du -sch /* ) not

[root@CentOS-72-64-minimal ~]# df -h Filesystem      Size  Used Avail Use% Mounted on /dev/md2        204G  202G     0 100% / devtmpfs         16G     0   16G   0% /dev tmpfs            16G     0   16G   0% /dev/shm tmpfs            16G  1.6G   14G  10% /run tmpfs            16G     0   16G   0% /sys/fs/cgroup /dev/md1        488M  186M  277M  41% /boot tmpfs           3.2G     0  3.2G   0% /run/user/0    [root@CentOS-72-64-minimal ~]# du -sch /* 0       /bin 183M    /boot 0       /dev 22M     /etc 836K    /home 4.0K    /installimage.conf 12K     /installimage.debug 0       /lib 0       /lib64 16K     /lost+found 4.0K    /media 4.0K    /mnt 4.0K    /opt 0       /proc 244M    /root 1.6G    /run 0       /sbin 4.0K    /srv 0       /sys 32K     /tmp 2.6G    /usr 6.1G    /var 11G     total  [root@CentOS-72-64-minimal ~]# df -i Filesystem       Inodes  IUsed    IFree IUse% Mounted on /dev/md2       13565952 803442 12762510    6% / devtmpfs        4057932    443  4057489    1% /dev tmpfs           4063363      1  4063362    1% /dev/shm tmpfs           4063363    559  4062804    1% /run tmpfs           4063363     13  4063350    1% /sys/fs/cgroup /dev/md1         131072    344   130728    1% /boot tmpfs           4063363      1  4063362    1% /run/user/0   please help me  thanks


Let $\widehat{\mathbb{R}/\mathbb{Z}}$ be the set of all homomorphisms from $\mathbb{R}/\mathbb{Z}$ to $\mathbb{C}$. Is $\widehat{\mathbb{R}/\mathbb{Z}} = \mathbb{Z}$? I think that $\mathbb{R}/\mathbb{Z} = \{t + \mathbb{Z}: t \in \mathbb{R}\}$. We can define $\varphi: \mathbb{R}/\mathbb{Z} \to \mathbb{C}$ by letting $\varphi(t+\mathbb{Z}) = e^{2\pi i n t}$, $n \in \mathbb{Z}$. It is easy to see that $\varphi$ is a homomorphism. Is it true that every element in $\widehat{\mathbb{R}/\mathbb{Z}}$ is of this form? Thank you very much.


Is gravitational time dilation different from other forms of time dilation?

Is gravitational time dilation caused by gravity, or is it an effect of the inertial force caused by gravity?    Is gravitational time dilation fundamentally different from time dilation due to acceleration, are they the same but examples of different configurations?    Could you recreate the same kind of time dilation without gravity using centrifugal force?


Reason for choosing SPI based flash devices over I2C ones

I have gone through the below link which says that u-boot support three type of flash technology     1.Nand 2.NOR 3.SPI Serial Flash  I would want to know why SPI is choosen to be used as flash devices not I2C .  Why can't we have I2C based flash technology?


I have problem with compositor.  It doesn't show result in output render until I replug Image into Composite node.  I am rendering 2 layers, but it show only first layer, without anything modified, until I unplug and plug back into Image slot in Composite node. Then it shows correctly.  NODE SETUP:    EDIT:  Result doesn't show in render output. In Viewer it is visible.  EDIT 2:  Here is the  file. Sorry for wrong file.


What are the requirements to unlock a specialisation?

What activity completions are needed to unlock the ability to pick a specialisation in the Base of Operations?


How do I know which Windowing system, display server and a window manager I am running on GNU/Linux?

I really liked following diagram from Wikipedia which shows how different graphical components are connected to each other.:    As per my understanding, here 1) "graphical interface" is closely related to what we know as "Desktop Environment" as KDE, GNOME etc. are given examples. 2) X11 etc. are "windowing systems" 3) Xorg, Mutter etc. are listed as display servers and 4) Compiz etc. are window managers A normal users or those who are new to GNU/Linux would probably know only about Desktop Environment, not about rest of components. I want to know which of each components are running on my system. So, How do I know which Windowing system, which display server and which display server I am using on my GNU/Linux system? (preferably through command line)


Probably it is very easy but i don't know how to do it. I want to put 3 images one on the left and the other 2 on the right. As for the 2 on the right i want them to be one above the other  thanks for the help  \begin{figure}[h!]  \begin{subfigure}{0.5\textwidth}  \includegraphics[width=0.9\columnwidth, height = 10 cm]{Images/Ch3/hwinct3.jpg}  \hspace{\fill}  \caption{}  \end{subfigure}  \begin{subfigure}{0.5\textwidth}  \hspace{\fill}  \begin{subfigure}{0.9\textwidth}  \includegraphics[width=1.1\columnwidth]{Images/Ch3/plane1.png}  \caption{}  \end{subfigure}  \begin{subfigure}{0.6\textwidth}  \includegraphics[width=1\columnwidth, height = 3 cm]{Images/Ch3/prova.png}  \hspace{\fill}  \caption{}  \end{subfigure}  \end{subfigure}  \caption{Plane 1 measurements slots}  \label{fig:pl1sl}  \end{figure}


Is there a word for an acronym that spells an existing word?

On a recent episode of The Simpsons, Marge and Homer attended DANK (Drug and Alcohol Night of Knowledge). It made me wonder: is there a term for an acronym that spells an existing word (like how Drug and Alcohol Night of Knowledge's acronym spells the existing word "dank")?  Note that I'm NOT asking about acronyms that form new words, like scuba; although scuba is indeed an acronym, it did not use an already existing word (it created a new word). I'm only asking about acronyms that spell existing words (like how Recording Artists Development uses the existing word RAD as its acronym).


Recover data from bitlocker partition in Windows 7

I have one hard drive. It's partitioned into 4 partitions, one of them is encrypted by Windows 7 Bitlocker, then I used Acronis Disk Director to merge both partitions during the process PC power off now the encrypted partition and when I try to enter the partition I have a message to format it, the other partition seems to contain 20 MB but when I open it I found nothing.  all data in this partition is so important to me , so please if anyone can help me recover my data I will be thankful


Install fail "Parted can't resize partitions managed by window dynamic Disk"

How to solve the problem? (The existing system is Windows 7, 64-bit.)


If f is analytic on the simple closed contour C, then $\oint_C(f' (z))/((z-z_0 )dz= \oint_C f(z)/(z-z_0 )^2 dz$

If f is analytic within and on the simple closed contour C and z_0  is a point within C,then  $$\oint_C\frac{f' (z)}{z-z_0 }dz= \oint_C \frac{f(z)}{(z-z_0 )^2} dz$$  Is this statement true or false? If true why and if false why?  I tried to use Cauchy's integral formula but I couldn't prove true or false.


How to create an automator workflow/application to delete jpeg when raw exist

I know this has been covered over the years but no harm in an update perhaps there are more expedient techniques. I have approx 1 terabyte of Canon CR2 images in 40 sub-folders, some with matching jpeg and some just jpeg. I want to delete all jpegs that have a matching corresponding raw .cr2 file. I would like to mac automator or a script run through terminal. I tried some of the tips from an older article but the scripts has syntax errors.  I get an error Expected end of line, etc. but found “"”. apologies but the syntax error persists #!/bin/bash read -p "*.CR2" suffix  find . -type f -iname "*.${suffix}" | \ while read line do   lowercase=$(echo "$line" | sed "s/${suffix}/jpg/gi")   uppercase=$(echo "$line" | sed "s/${suffix}/JPG/gi")    if [ -f "${lowercase}" ]   then     rm -v "${lowercase}"   elif [ -f "${uppercase}" ]   then     rm -v "${uppercase}"   else     echo "${line}: no jpg present"   fi done


Character for kth symmetric and exterior power

I am trying to compute the character of $\Lambda^k V$ and Sym$^k V$ for V an arbitrary representation of a group G. I already know how the characters look for $k=2$, but I cannot find a way to generalize that. My attempt would be to find a way to decompose $\Lambda^k V$ and Sym$^k v$ into powers of 2 and 1, but I am not sure that is possible. Does someone have an idea to solve that?


How to calculate the expected value of the coupon collector problem if we are collecting the coupons in groups of k?

The problem:  There are n different kinds of coupons, and we need to get every kind of coupon at least once to win. Each time we get new coupons we get them in a batch of k coupons where k ≤ n (the same coupon can appear multiple times in the batch of k coupons).  Let Xk,n be a random variable that denotes the number of batches we need to buy to collect all the n different coupons.  I already know and understand how to calculate the expected value when k=1 (that is the classic coupon collector problem), but have difficulty calculating E[Xk,n] for k > 1.  If it helps, I've also made some simulations and estimations, and came up with this table:


Non-EU spouse of EU citizen travelling to Australia with the EU residence and travel document

is it possible for the non-EU spouse  of the EU citizen to travel to Australia only with the EU residence permit card and a travel document (alien's passport) released by the host EU country, knowing that the Australian  authorities do not recognize the non-EU spouse's passport?


Differentiability of $f(x+y) = f(x)f(y)$

Let $f$: $\mathbb R$ $\to$ $\mathbb R$ be a function such that $f(x+y)$ = $f(x)f(y)$ for all $x,y$ $\in$ $\mathbb R$. Suppose that $f'(0)$ exists. Prove that $f$ is a differentiable function.  This is what I've tried: Using the definition of differentiability and taking arbitrary $x_0$ $\in$ $\mathbb R$.  $\lim_{h\to 0}$ ${f(x_0 + h)-f(x_0)\over h}$ $=$ $\cdots$ $=$  $f(x_0)$$\lim_{h\to 0}$ ${f(h) - 1\over h}$.  Then since $x_0$ arbitrary, using $f(x_0+0) = f(x_0) = f(x_0)f(0)$ for $y = 0$, can I finish the proof?


Double spaces count towards character limits in comments

If you put a double space in a comment, or any amount of spaces for that matter, it shows up as a single space.  But the spaces still count towards the maximum characters you can put in a comment.  So I often find myself, when in need of an extra 10 characters, going back through all my comments to remove all of those doubel spaces that I instinctively put after a period as I was taught to do way back in elementary school.  Is there any way to not count characters that won't show up anyways towards the maximum character limit?


I am creating a script. I want this script perform next task: Log in as a root user. (I am trying to use one line) How to create script which will enter password automatically?   #echo "Hello Admin" #su root@admin       I just want to bash script and don't enter password. Why does it ask me to enter password?


TeXShop seems to default to 'Western (ISO Latin 9)', but a template I've been using is defaulting to 'Western (Mac OS Roman)'.  I'm using a package   Which encoding should I use with TeXShop on a Mac?    NB I'm using TeXShop for undergraduate mathematics assignments in english only.


$p$ is an odd prime of the form $p=x^2+2y^2$ iff $p\equiv_8$ $1$ or $3$

How would I prove the following:      Show that an odd prime $p$ can be written on the form $p=x^2+2y^2$ for some $x,y\in\mathbb Z$ iff $p\equiv_8 1, 3$. Hint: use the quadratic reciprocity and the fact that $\mathbb Z[\sqrt{-2}]$ is a Euclidean domain.


Describe the set of points on the complex plane...

Describe the set of points on the complex plane for which $|z-2| + |z+2|=4$... So, I know you can solve this instantly, just by using definition, but I want to do it the long way..  So,  $$|x- i*y -2|+ |x-i*y +2| = 4$$       $$(x-2)^2 + y^2 + (x+2)^2 +y^2 =16$$      $$ x^2-4*x+4+y^2+x^2+4*x+ 4 +y^2=16$$  now, $x^2$ and $y^2$ were supposed to eliminate but they don't ...where am I wrong?


Which is correct: "Real Madrid compete very well," or "Real Madrid competes very well?"

I think there's a difference in the ways in which sports announcers from the U.S. and U.K. refer to the teams. If my memory serves me correctly, I think announcers in FIFA from the U.K. will use forms of verbs corresponding to a singular noun; in the U.S., I believe it's the reverse. Please, correct me if I'm wrong about the two different styles across countries, but I think my question's clear enough.


Does the convergent infinite sum $$ \sum_{n=0}^{\infty} \frac{1}{2^n + 1} $$ have a closed form solution? Quickly coding this up, the decimal approximation appears to be $1.26449978\ldots$


$\cot x=\sin x \sin(\pi/2 -x) + \cos^2x \cot x$  I'm having difficulty with figuring out how to prove trigonometric identities.  I know that in order to do these you need to use the trig ratios reciprocal, quotient  identities and compound angle formulas.  If someone could guide me through these kind of questions.  That would be really appreciated!


Are old (>35) faculty candidates discriminated against all over the world?

I think that in India research institutes will never take a faculty candidate who is over 35. Is it so all over the world?   I am asking this question from the point of view of if someone starts their PhD. at the age of 27 then its unlikely they will be faculty candidates till they are 40.


Is it a better idea to use "" or '' to encapsulate a string in javascript?

I have googled on this issue. There seems to be no difference between using "" or '' to encapsulate a string. It is hard to decide. Is it correct to say it is a better idea to use "" because it is compulsory in json to use ""?


I've been using the Index Explorer and Crawl Information in Bing Webmaster Tools to identify 301 redirects & 404 errors. I've noticed however that all of the links are listed without the www. before the root domain, even though the domain was added with the www. and shows as www.domain.com in the Dashboard. I'm also already redirecting domain.com to www.domain.com and have canonical links in place.  Google Webmaster Tools has an option to set "Preferred domain" as either including the www. or not, but I can't find anything like this in Bing's version. Is there an option for this? Is there another way to stop Bing from reporting on URL's without the www.?


Can active dry yeast be substituted for a compressed yeast cake in baking?

A "compressed yeast cake" is called for in each of my great-grandmother's bread recipes. Can I use active dry yeast as a substitution for one? If so, how much active dry yeast should I substitute per compressed yeast cake?


Link button in post editor escapes square brackets in code

The link button in the post editor incorrectly escapes square brackets in inline code.  To reproduce:   Write the following MarkDown in the editor  text text `function[]` text text  Select `function[]`, press the link button (), and enter some link the result will be [`function\[\]`][1] which renders as function\[\]   This comes up very often in   when I'm linking to the documentation because the usual way to indicate that a symbol is a function in Mathematica is adding [] after it.  This is a minor thing, as it's easy to manually remove the backslashes, but it's somewhat annoying so I thought I'd mention it.    Edit by Mr.Wizard It is September 2013 and this still hasn't been fixed.  While "adding [] after it" is not presently the custom on Mathematica.SE this is still a bug and still needs to be fixed.


Is it possible to combine the F-test and t-test to test for differences in both the variance and the mean?

I would like to test $H_{0} :$ $\mu_{1} = \mu_{2}, \ \sigma_{1}^{2} = \sigma_{2}^{2}$ vs $H_{0} :$ $\mu_{1} \neq \mu_{2}, \ \sigma_{1}^{2} \neq \sigma_{2}^{2}$Is there a test statistic that would allow me to detect both differences in the mean and differences in the variance? Is there a way that I could possibly combine the $F$ - $test$ and the $t$ - $test$ to derive this test statistic? I am assuming that the population is normally distributed but what if it wasn't?I am very stuck so any help would be greatly appreciated.


I have a Motorola Moto E2 phone. The  shows it comes with 8GB of internal storage, but I am only seeing 5GB of space when I look at it through my USB connection.    Every app that can move has been moved to my 16GB SD card.  The only thing that I cannot move are the Android updates and the data from my Text conversations.  I cannot stop the Android updates, and I need the Text history for legal issues.  How do I stop this phone from running out of space? I have had it for only 6-months.


Cannot completely uninstall a repository/app

I installed Wine to run Windows applications on Ubuntu. As soon as I opened Wine a message popped up saying it needed to download and install some stuff to run Windows apps. I clicked okay and as they were being downloaded/installed, my PC shut down because my battery drained. I turned my PC back on and tried to open Wine (the app's called Winetricks) but it won't open at all. It's logo appears in the launcher but it closes after a few seconds. I don't know what to do. I tried completely uninstalling it using Synaptic or purging it via the terminal to install it again. These methods 'work', they uninstall Winetricks and Wine Configuration, that comes along Winetricks, but I install Wine again from the beginning and it still won't open. I really need to get Wine working. I know Play on Linux is an alternative but I've heard it doesn't work as well as Wine. I need newbie-type help, I've had Ubuntu for a day and I basically know nothing. I'd appreciate detailed help for me to get things done. Thank you in advance.  UPDATE: When trying to install Wine sometimes I get the message ''Some index files failed to download. They have been ignored, or old ones used instead.'' I suppose that I basically need a way to completely remove Wine, configuration files, index files, anything it downloaded.


Proving/disproving that √7 - √2 is irrational

It's been proven that √7 and √2 are .  However, I am not sure how to go about proving that √7 - √2. Is it an acceptable proof to just solve the equation which would prove/disprove the equation or as should the proof be done as a contrapositive, similar to how √7 and √2 are proven to be irrational.   What would a valid proof/disproof of irrationality look like in this case?


Change permissions for new users to comment

Anyone who has been on SO for any length of time has come across answers by new users that should be a comment. In a lot of cases these answers become downvoted and serves to discourage the user as well as slows the users progress towards being able to leave proper comments.   Can we lower the bar for new users to leave comments? The current scale of 50 is achievable with a few good questions or answers, but for a lot of users, leaving a comment is a way to "test the waters" here and the continual downvoting of these types of answers only drives new users away, rather than educating them.


Why does not ridge regression perform feature selection although it makes use of regularization?

Could somebody explain why ridge regression does not perform feature selection although it makes use of regularization? So, it penalizes the regression coefficients like LASSO does, but  how come we end up with using all features for all the lambda (penalty) values in range? Why don't we end up getting some zero coefficients in case of high penalization? I know this is a very basic question, but I would appreciate any response. Thanks.


I created an object in JavaScript and stored some information in the object. I searched a lot for solution, but did not find any solution. I want to get the count/length of object.  Javascript Code: productDetail = new Object(); productDetail["Code"] = "A104"; productDetail["ProductName"] = "Keyboard"; productDetail["UnitPrice"] = 10; productDetail["Dealer"] = "AMD";


What is the official name for the "special" ASP.NET tags like this:  <%# %> <%= %> <%@ %> <%$ %>   I can't seem to figure out the conceptual or well known name for these, so I'm having trouble searching for more info.  As a bonus, can anyone give me a quick rundown of all of the possible "special tags" and what each one of them does (or point me to a resource)?


I am running ubuntu 16.04, and when I try to install a program  using apt-get install (really any program, but take git-all for example), I get the following error:  start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused  the full error stack is below:  sudo apt-get install git-all Reading package lists... Done Building dependency tree        Reading state information... Done git-all is already the newest version (1:2.7.4-0ubuntu1). 0 upgraded, 0 newly installed, 0 to remove and 283 not upgraded. 2 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up runit (2.1.2-3ubuntu1) ... start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused dpkg: error processing package runit (--configure):  subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of git-daemon-run:  git-daemon-run depends on runit; however:   Package runit is not configured yet.  dpkg: error processing package git-daemon-run (--configure):  dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure.                           Errors were encountered while processing:  runit  git-daemon-run E: Sub-process /usr/bin/dpkg returned an error code (1)   I realize this error has been posted around the internet for over a year now, and I know that it is caused by the fact that upstart was replaced by systemd, and but not all programs have been switched to using systemd. But none of the fixes work for me.   There is this post, which has been flagged as potentially dangerous and has caused many people to be unable to boot their system: "nesono.com/node/368"  Then there is this post: "". The "recommended fix" is to switch all systems to systemd manually according to this link: "". But the linked page does not actually show how to switch everything to systemd. And the "quick fix" option (running sudo apt-get install upstart-sysv to switch back to upstart), which appears to actually be the one recommended and implemented by most people experiencing this problem, does not work for me either because again, apt-get gives me an upstart error.   "" Also suggests going into GRUB2 and using the bootloader to start the system using upstart. However, this is not an option for me in the bootloader, which leads me to believe I evidently do not have upstart on my computer (yet again another failed fix).  There is also a similar issue posted here that appears to be unresolved (no accepted answer): "askubuntu.com/questions/728581"  Please help!


'Guest' vs 'Guest User License' in sites?

When I first set up a site, I am always given the option to have the the type of new site be 'Guest' or 'Guest User License'.  I have not been able to find any documentation on what the difference is.  Does anyone know?


A lot of people recommend to use the maximum node for glass setup, but I can't find that node. Nothing comes up when I search for it.  Where do I find it?


Can anyone please help me in this?     Prove that every well ordered set is a totally ordered set.   To start this proof will this be sufficient:  Let $x_1, x_2 \in X.$  Let $A=\{ x_1, x_2 \}$.  If $x_1$ is the least element, then $x_1\le x2$. If $x_2$ is the least element, then $x_1\ge x_2$.  How do I end the proof?


Conjunctions in negation: "no/neither" and "and/or/nor"

When I have these facts,   French coins were not found in the ruin. German coins were not found in the ruin.   which of these sentences are grammatically correct?  1.     No French and German coins were found in the ruin.   2.     No French or German coins were found in the ruin.   3.     No french nor German coins were found in the ruin.   I think 1 is correct but I'm not sure.  By the way, I can also say     Neither German nor French coins were found in the ruin.   Also, when you have an additional fact   Italian coins were not found in the ruin   which of these statements are grammatically correct?  1.     No French, German and Italian coins were found in the ruin.   2.     No French, German or Italian coins were found in the ruin.   3.     None of French, German and Italian coins were found in the ruin.   4.     None of French, German or Italian coins were found in the ruin.   Thanks,


Compute $\int\limits_{-\infty}^{\infty}\frac{1}{(1+x^2)^{n+1}}dx$ via residue calculus.

Let $\Gamma_R$ be the semicircle of radius $R$ in the upper half plane. Then,  \begin{align} \int\limits_{-\infty}^{\infty}\frac{1}{(1+x^2)^{n+1}}dx  &= \lim_{R\to \infty}\int_{\Gamma_R}\frac{1}{(1+z^2)^{n+1}}dz \\ &= 2\pi i \operatorname{Res}\left(\frac{1}{(1+z^2)^{n+1}},i\right) \end{align} The pole of the function at $i$ is of order $n+1$, so the residue is computed by \begin{align} \operatorname{Res}\left(\frac{1}{(1+z^2)^{n+1}},i\right) &= \frac{1}{n!}\lim_{z\to i}\frac{d^n}{dz^n}\left(\frac{1}{(z+i)^{n+1}}\right) \\ &= \frac{1}{n!}\lim_{z\to i}(-1)^n\frac{(n+1)(n+2)\cdots(2n+1)}{(z+i)^{2n+1}} \\ &=\frac{(2n+1)!}{i2^{2n+1}(n!)^2} \end{align} Hence, $$\int_{-\infty}^{\infty}\frac{1}{(1+x^2)^{n+1}}dx = \pi\frac{(2n+1)!}{2^{2n}(n!)^2}$$ The answer provided is $\frac{1\cdot 3\cdot 5\cdots(2n-1)}{2\cdot 4\cdot 6\cdots (2n)}\pi$. How do I manipulate my answer to obtain this answer?


Is a good convention using semicolon at the end of the line when using ES6 in babel

I saw several examples on the web of tutorials using redux and react where the code of omitting the semicolon when using es6 with babel.  Example semicolon at the end of import, export.   What is the reason? What is a good practice?   Missing semicolon    import React, { PropTypes } from 'react'  const Location = ({ onClick, name, country}) => (     <li         onClick={onClick}     >         {name} {country}     </li> )  export default Location     vs with semicolon     import React, { PropTypes } from 'react';  const Location = ({ onClick, name, country}) => (     <li         onClick={onClick}     >         {name} {country}     </li> );  export default Location;


Printing out variables inside a file with echo

I have an environment variable called MY_INTERVAL and it's set to 10 in my env. I want to create a crontab2 file based on crontab1 with my file_creator.sh script but I can't print out my ${MY_INTERVAL} in crontab1 crontab1: */${MY_INTERVAL} * * * * /usr/src/some_script.sh  file_creator.sh: echo "$(cat crontab1)" > crontab2  my crontab2 doesn't contain the environment variable instead I'm getting in my crontab2 this output. */${MY_INTERVAL} * * * * /usr/src/some_script.sh   It could be done with this but I want the echo part with a file instead of writing it like that: echo "*/${MY_INTERVAL} * * * * /usr/src/some_script.sh" >> /etc/cron.d/crontab  How could this be done?


Monitor outgoing web traffic sources on CentOS

I received a report today that a server I manage (Centos + Apache) is launching a bruteforce attack against wordpress websites:  hacked-joomla/brobot  The requests sent look like this:   x.x.x.x - - [15/Nov/2015:19:37:14 +0100] "POST wp-login.php HTTP/1.1" 200 3963 "referer-domain.tld" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0"  I tried to locate the source of the attack using tcpdump, lsof and netstat, but I was unable to locate any useful information.   I need to be able to monitor the outgoing web traffic and see not only the destination, but also the source - the file/vhost that the request was sent from.   Any suggestions or guidelines are more than welcome!   P.S. David W. thank you for the link, but it is a very general guide on compromised servers. I have a very specific problem - I need an efficient tool/method to monitor my traffic to identify the source of an outbound attack. I am not experienced in networking etc. and have not used netstat, tcpdump and lsof much, but I am looking for a similar tool or a combination of tools that can be provide me with the traffic data that I need.


Enforcing unique values in field when editing in ArcMap?

I am working on a geodatabase. In some of my features, I would like to add a field, in which I will type the values on my own. On this field no duplicates must be allowed. In other words I want it to be a unique value field. I know ObjectID exists to certain uniqueness of the object, but I am working on a relational db and I want this field to be used as primary key.  I have tried adding a field and through access editing it as a "no duplicates allowed" field, but after that, I cannot edit in arcmap and the message "Warning: Unique index on non-OID field" appears.


Is Feyerabend confusing discovery and justification when he criticizes the scientific method?

I am reading Feyerabend's "Against Method", where he uses Copernicus's (and Galileo's confirmation) discovery of the fact that the Earth orbits around the Sun and other examples to show that irrational approaches can lead to legitimate scientific progress. He then claims that no unified epistemic principle or principles can be used to define science, and that science is best characterized by anarchy.   Is he confusing the way scientific truth is discovered with the way scientific truth is epistemically justified?   Even if it is true that Copernicus, Galileo and others used irrational methods to arrive at valid scientific discoveries, why does that affect science's special epistemic status compared to other fields of inquiry?


HDD standby mode does not turn on automatically

I have added the following lines  /dev/hda {    spindown_time = 60 }  /dev/hdb {    spindown_time = 60 }  /dev/hdc {    spindown_time = 60 }   to the end of my /etc/hdparm.conf file and rebooted.  Unfortunately, no any effect of these lines observed. For example, /dev/hdb which I rarely use shows  $ sudo smartctl -i -n standby /dev/sdb smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.13.0-37-generic] (local build) Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org  === START OF INFORMATION SECTION === Device Model:     WDC WD40EFRX-68WT0N0 Serial Number:    WD-WCC4EFSNCNX5 LU WWN Device Id: 5 0014ee 26020b658 Firmware Version: 82.00A82 User Capacity:    4,000,787,030,016 bytes [4.00 TB] Sector Sizes:     512 bytes logical, 4096 bytes physical Rotation Rate:    5400 rpm Device is:        Not in smartctl database [for details use: -P showall] ATA Version is:   ACS-2 (minor revision not indicated) SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s) Local Time is:    Wed Oct 22 05:31:21 2014 MSK SMART support is: Available - device has SMART capability. SMART support is: Enabled Power mode is:    ACTIVE or IDLE   How to check/force power conserving works?  UDPATE  I have tried all things, including ones in so called "duplicate" question, but they didn't work.  I can put drive into standby mode manually with  hdparm -y /dev/sdb   and it will stay in this mode until used. But once it used, it will never go into standby itself.  Is it possible to look standby timer, i.e. timer, which is counting time after last activity? Without this timer, auto standby feature can't work. And if this timer exists, but unavailable, then atuo standby can't be debugged.


I tried to solve this equation:     $\sin^{-1}(x)=\sin^{-1}(2/5) +\sin^{-1}(3/5)$.   I applied the $\sin$ function on both sides and I've  got  $x=\sin\left(\sin^{-1}( \frac{2}{5}) +\sin^{-1}( \frac{3}{5})\right)$.


Looking for a good precalculus/algebra reference

I'm working my way through Calculus, 9th ed. by Larson and Edwards in independent study. The problem is that many of the exercises and examples use a lot of algebra tricks that are glossed over and assumed knowledge on the part of the student.  Now, when I took precalc in high school I was a total layabout and didn't really absorb many of the finer points as far as some specific topics go (nested absolute value inequalities, for instance) and I'm having a hard time working through many of the exercises. I have no trouble understanding the calculus aspect of the problems, but fail miserably on some of the harder algebraic aspects.   I know I'm not the only one struggling with this, though -- an overarching criticism I've found of this book is that it assumes too much algebra knowledge of undergrad math students and doesn't fully explain any steps.   What I'm really looking for is a precalc-level algebra reference with good examples that I can turn to for specific topics in algebra when I encounter a question I have trouble with.   Can anyone recommend such a thing?    Edit: I'd also like to point out that I have a kindle, so cheaper suggestions for good kindle books are welcome. That's assuming, of course, that kindle is a satisfactory medium for such a thing. I'm not sure.


How do I increase my code coverage, or why can't I cover these lines?

This is a canonical question and answer developed by the community to help address common questions. If you've been directed here, or your question has been closed as a duplicate, please look through the resources here and use them to shape more specific questions. To browse all canonical questions and answers, including more unit test resources, navigate to the  tag.  This canonical question is intended to address several classes of common questions by providing a quick summary and links to comprehensive resources:   How is code coverage obtained and calculated? How do I increase my coverage?  Why can't I cover these lines? Why isn't the body of my loop or conditional statement covered?


Combining randomForests in R, why are the err.rate, mse and rsq components NULL

From ?combine in :     The confusion, err.rate, mse and rsq components (as well as the   corresponding components in the test compnent, if exist) of the   combined object will be NULL.   Why are the err.rate, mse and rsq components for the combined NULL? Is there an efficient way to re-calculate these metrics?  I ask because I would like to figure out a way to use the oob re-sampling method with the parRF model in .


How can I easily share the output of a command or a text file with others?

I recently asked a question on Ask Ubuntu (or somewhere else), and a comment or answer asks me to paste the contents of some file or the output of a command to troubleshoot my problem.  How do I do that?


I was wondering if there is way to change the symbols of footnotes to any symbol  I want. I know there are some packages that put away the numbers and use predefined symbols, but I want to use some arbitrary symbol. Is there a way?


Is there such thing as a "smallest positive number that isn't zero"?

My brother and I have been discussing whether it would be possible to have a "smallest positive number" or not and we have concluded that it's impossible.   Here's our reasoning: firstly, my brother discussed how you can always halve something, $(1, 0.5, 0.25, \dotsc)$. I myself believe that it is impossible because of something I managed to come up with. You can put an infinite amount of zeroes in the decimal place before a number, $(0.1, 0.01, 0.001, \dotsc)$. I am not entirely sure if our reasoning is correct though. I have been told that there is a smallest number possible but I decided to see for myself.


Why does python list does not have len() method

Python's length of list can be calculated by len(a_list). My question is, why was a_list.len() not implemented? Is there a reason behind it?


Let $F$ be a field.Then we know that $F[x]$ is a Euclidean Domain.But can someone give me few examples such that (i)$F[x]$ is not a field, (ii) $F[x]$ is also a field.     Thanks for your kind help.


Can Git hook scripts be managed along with the repository?

We'd like to make a few basic hook scripts that we can all share -- for things like pre-formatting commit messages.  Git has hook scripts for that that are normally stored under <project>/.git/hooks/.  However, those scripts are not propagated when people do a clone and they are not version controlled.    Is there a good way to help everyone get the right hook scripts?  Can I just make those hook scripts point to version controlled scripts in my repo?


\bibliographystyle{alpha} and an extra comma with multiple authors

I am using the following code:  \nocite{*} \bibliographystyle{alpha} \bibliography{references}   And this is the first entry in my .bib file  @ARTICLE{Sos,  AUTHOR="Bíró, A. and          Deshouillers, J.~M. and          Sós, V.~T.", TITLE="Good approximation..." }   I expect to obtain this  [BDS01] A. Bíró, J. M. Deshouillers, V. T. Sós. Good approximation...   But I get this  [BDS01] A. Bíró, J. M. Deshouillers, and V. T. Sós. Good approximation...   Why there is an extra and?  This may helps understanding my .bib file:


How can I install a .ipa file to my iPhone simulator

I have an iphone simulator running on my Mac.   I have a .ipa file, can you please tell me how can I install it on the simulator?


Standing waves due to two counter-propagating travelling waves of different amplitude

Suppose I have two counter-propagating travelling waves of the same frequency but of different amplitude, like the transverse waves produced in a string by partial reflection off an endpoint.  I read that we will get a mixture of standing and traveling waves, and I can see the theoretical part, but what does this mean, exactly? What are the nodes now? Also, can I now say that energy between loops will be non-transmitting? Because now we have both a traveling and a standing wave.  If possible please provide a picture for better visualization.


"Each of them is" or "each of them are"?

Should I use the plural form of verb for each or the single form?   Example:      Each of them are used for different purposes.   Each of them is used for different purposes.


How to get the command for existing launcher entries?

How do I get the start command from an existing launcher entry on 16.04?


Why does electromagnetic induction actually occur?

In my book, it is written that "An emf is induced in a loop when the number of magnetic field lines that pass through the loop is changing" (Faraday's law)  I understand that whenever there is a change in magnetic flux, there will an emf induced in a loop and this in turn will induce a current.  However, I really want to understand what exactly goes on to cause this. I just want to check if I am right:   There is a relative movement between the loop and the magnet (e.g. loop moving towards magnet) Thus, electrons in the loop are "moving" relative to the field A moving charge experiences a force perpendicular to the direction of the field As a force is exerted on the electrons, they move in a particular direction Current is induced   I do not know much calculus and studying high school physics but could someone please help me get an intuition behind Faraday's law or tell me if my way of thinking about it is right?


I have a Broadcom wireless card, 14e4:4365 rev 01. The system doesn't recognize my adapter. I went through the troubleshooter and tried to install bcmwl-kernel-source, but the terminal stalled at the end trying to write a file. I tried to install again and it said I needed to remove first. I tried to remove and the terminal stalled again. Is there someone who can walk me through what I should be doing? Otherwise the install is working fine.  Broadcom Limited BCM43142 802.11b/g/n (rev 01)  I'm brand new to Linux and deeply appreciate any help.  Here's the history from the terminal, shows where it got hung up at the end  susan@Purple:~$ sudo apt-get install bcmwl-kernel-source [sudo] password for susan:  Reading package lists... Done Building dependency tree        Reading state information... Done bcmwl-kernel-source is already the newest version (6.30.223.271+bdcom-0ubuntu4). 0 upgraded, 0 newly installed, 0 to remove and 72 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu4) ... Removing old bcmwl-6.30.223.271+bdcom DKMS files...  -------- Uninstall Beginning -------- Module:  bcmwl Version: 6.30.223.271+bdcom Kernel:  4.15.0-20-generic (x86_64) -------------------------------------  Status: This module version was INACTIVE for this kernel. depmod....  DKMS: uninstall completed.  ------------------------------ Deleting module version: 6.30.223.271+bdcom completely from the DKMS tree. ------------------------------ Done. Loading new bcmwl-6.30.223.271+bdcom DKMS files... Building for 4.15.0-20-generic Building for architecture x86_64 Building initial module for 4.15.0-20-generic


Initializing a long double; printing a different value

I have the following snippet         cout.precision(30);         long double d = 85952643841691072928.0;         cout << d << endl;  The print statement outputs  85952643841691074560. Why are the last 4 digits before the decimal incorrect? A long double should be capable of handling a number of this size?


Let $\Omega$ $\subseteq$ $\Bbb R^{n}$ be bounded and $u$ be a measurable function on $\Omega$ Such that $|u|^{p} \in {L^{1}_{\mathrm{loc}}(\Omega)}$ for some $p \in \Bbb R$. Then how to show the following?  $$\lim_{p\rightarrow0} \left(\frac{1}{|\Omega|}\int_{\Omega} |u|^{p}\,\mathrm{d}x\right)^{\frac{1}{p}} = \exp \left(\frac{1}{|\Omega|}\int_{\Omega}\log|u|\,\mathrm{d}x\right)$$  I attempted as follows:  $$\lim_{p\rightarrow0} \left(\frac{1}{|\Omega|}\int_{\Omega} |u|^{p}\,\mathrm{d}x\right)^{\frac1p} = \lim_{p\rightarrow0} \frac{1}{|\Omega|^\frac{1}{p}}\left(\int_{\Omega}|u|^{p}\,\mathrm{d}x\right)^{\frac1p} = \exp \lim_{p\rightarrow0} \frac{1}{|\Omega|^\frac1p} \log\left(\int_{\Omega} |u|^{p}\,\mathrm{d}x\right)^{\frac1p}= \exp\left(\frac{1}{|\Omega|}\int_{\Omega}\log|u|\,\mathrm{d}x\right)$$    However;I think some steps especially the last two are not satisfactory for me.If you see that you're well come!


Screen Lock Service as a Device Administrator

Background:  I was looking at the device administrators of my phone in the settings and saw a device administrator called "screen lock service". It's description is "Activating this administrator will allow the app Google play services to perform the following operations: set password rules".  A previously unsettled question is found . I searched the net for the apk file of the application but could not find one. So as per suggestions, I ran adb shell dumpsys package  resolvers | sed -n /android.app.action.DEVICE_ADMIN_ENABLED/,/:/p  The output for the above code was:   android.app.action.DEVICE_ADMIN_ENABLED:     438a74 com.motorola.demo/.admin.DemoModeAdminReceiver     2acd3de com.google.android.gms/.auth.managed.admin.DeviceAdminReceiver     36b5d24 ch.deletescape.lawnchair.ci/ch.deletescape.lawnchair.gestures.handlers.SleepMethodDeviceAdmin$SleepDeviceAdmin     42aae3e com.google.android.gms/.tapandpay.admin.TpDeviceAdminReceiver     8efd08d com.google.android.gms/.kids.account.receiver.ProfileOwnerReceiver     9b4f242 com.google.android.gms/.mdm.receivers.MdmDeviceAdminReceiver     a9980b6 com.oasisfeng.greenify/.DeviceAdmin     b5771b7 com.google.android.gm/com.android.email.SecurityPolicy$PolicyAdmin   com.motorola.internal.intent.action.INETCONDITION_REPORT:  The data for the code is quite unsettling for the fact that none seem to correspond to screen lock service.  For reference, I am using Moto G5 Plus (not rooted, stock build with no customizations) Also note that, I own another same device which is rooted and runs Pixel-Experience (Android 10 latest build) and unfortunately it does not have the Screen Lock Service. An insight/breakdown for this application is helpful.


Can I share the ground between 2 ac adapters with different outputs?

I know there are other ways I can do this, but I'm a little curious about this anyway.   Basically, I have a breadboard that's mounted on a typical base that has the typical three posts I can hook power to. I want to operate one pair of power rails at 12V and one pair at 5V. And I have one 12V AC adapter and one 5V AC adapter But remember, I have 3 posts on this thing, red, green, black.  My thought is, I can hook the red up to 12V+ and the green up to 5V+ and put both grounds from these power supplies on the same black post?  Then I can wire jumpers from the posts to the rails. Is this kosher? Or does each AC adapter need to use its own ground? Do the grounds need to be isolated, or is ground, ground even if you're using different voltages?  It isn't lost on me I could do this a million other ways, but sharing a ground could be handy, but I haven't seen it done anywhere. Not sure if that's a sign or if I just haven't looked in the right place.  Thanks for any help!


Hi I'm using Windows 7 64 bit Professional edition.  I've tried disabling aero shake in by:   Adding an entry in registry Disabling the policy in the policy editor   Yet it just wont go away.  I'm also running the software from "actual multiple monitors", so I suspect that it might be causing problems. However, I can't find a way to disable the setting for it.  I'm wondering how "Aero Shake" works, because I can't consistently reproduce and trigger it, so I can't test whats causing the problem. I've tried shaking windows like crazy, but it doesn't seem to work every time. Is there some specific condition for it to be triggered?  Thanks for any help. disable proof:


How do I get Lightroom 4 to respect custom shooting profile on 5d Mk II?

I've got a profile loaded on to my 5D for use when we're shooting video for our clients. The profile gives us a very flat, almost desaturated image that we can dress up in post. When I shoot RAW photos with the profile and import them into LR4, the image looks like it should with the profile applied for about 3 seconds then it pops to a higher contrast image that's too saturated.  Is there a way to get LR4 to respect the profile I've shot the image with? I would prefer to have the flatter contest profile I used when shooting. I've tried switching to a flatter profile in LR, but it's still not what I'm looking for.  Thanks in advance for any help.


$\mathbb{C} \setminus f(\mathbb{C})$ contains a disk of radius 1, then $f$ is constant

$f$ is a non constant entire function such that $\mathbb{C}\setminus f(\mathbb{C})$ contains a disk of radius 1, then $f$ is constant. My thoughts: if we can show $f$ is bounded then by Liouville's theorem we are done. I'm not sure how the given condition implies that.


Will upgrading my Windows 7 partition to Windows 10 affect GRUB?

On my laptop, I had Windows 7 Home Premium preinstalled. A year or so ago, I dual-booted it with Ubuntu 14.04 LTS.   I now want to upgrade Windows 7 to Windows 10 (it's free, so why not?) when it's released.  However, I'm unsure whether this will affect GRUB and stop me from accessing my Ubuntu partition. I need both operating systems and can't afford to lose either.  If this will affect GRUB, how can I restore GRUB so I can access both operating systems?  Thanks in advance.  EDIT: Just to be clear, I already have a dual-boot set up, where Ubuntu was installed alongside a pre-existing Windows installation. I now want to upgrade Windows (from 7 to 10) but am worried it will affect GRUB and my ability to boot into Ubuntu.  UPDATE: I installed Windows 10 and it ended up leaving GRUB alone. Selecting the Windows 7 option booted me into Windows 10.


Representing a given number as the sum of two squares.

There are four essentially different representations of $1885$ as the sum of squares of two positive integers. Find all of them.   I am guessing the must be some nice way of solving $z= x^2 + y^2 $  where x and y are integers in general that i don't know.    Is there some general way to know how many solution exists or bound it without computing it?


proving "e" irrational using convergent series

So my math professor in college gave us this problem:  $$U_n=\sum_{k=1}^{k=n}\frac{1}{k!}$$  $$V_n=U_n+ \frac{1}{n\cdot n!}$$  The problem has two questions:  1- Prove that the two series are adjacent (easy)  2- Let $e$ be their limit, prove that $e$ is irrational.  I have no idea how to start the second part, since I don't have a professor that does the problems the first professor gives us, so I have a lack in reasoning skills, I tried proof by contradiction, but no result.  also I'm new to the site so I don't know how to use the symbols so sorry for that.


SP - Error occurred in deployment step 'Recycle IIS Application Pool' in VS

I have a privileges everywhere, but where i deploy a project with webParts, Visual studio, show me following error :     Error 1   Error occurred in deployment step 'Recycle IIS Application Pool': Object reference not set to an instance of an object.   How to solve this proble. Thank you previously!


So there I am, with nothing but my dagger and 4 enduring invisibility potions, all I need to do is sneak in, and out of the Thalmor Embassy. Easy, right? Or so I think. After I cause a distraction and grab my dagger and potions from the chest, I open the first door after having gulped a invisibility potion, and Charge past them real quick, and BOOM firebolts and lightning bolts fly at me, and I get smacked into a wall, my butt thouroughly kicked. What happened?! Does an invisibility potion NOT make you invisible? They turned on me faster than a hound on a bunny the moment I opened the door....


Applying for PhD with a 3.2 GPA - Do I even stand a chance?

I just read an incredibly disheartening post on reddit about Grad School admissions in the Biological sciences. The post basically makes it sound like I have no chance of getting into a good PhD program.  I graduated from UC Berkeley with a Degree in Biochemistry in 2012. While in school I worked as an undergraduate researcher for 3.5 years. Post graduation I've been working in Biotech Research for close to 3 years now.   I graduated Berkeley with somewhere in the range of a 3.2-3.3 GPA. The average GPA for my major at Cal is a 2.8 . Does the rigor of my undergraduate institution matter? Berkeley's grade deflation is pretty notorious but will that matter?  From what I read in the post it sounds like most schools won't even look at my application. I'm starting to wonder if its worth it for me to apply at all.   I've attached a link to the thread on reddit. Your honest opinions would be much appreciated.


How to remove a (group) of softwares that depend on one another?

I would like for example to remove php and all it's components and extensions as seen in this picture, but instead of removing every software one by one, is there anyway safe I can remove them all using a single command?


Why was Sam Wilson chosen for this, but not Bucky?

At the end of the Avengers: Endgame movie,      old Steve Rogers passed down his mantle of Captain America   to Sam Wilson.  Why didn't he choose Bucky for this? Bucky seems more fit for the job as he is a super soldier.


difference between RAW regression coefficient of slope vs. Pearson's correlation (with two variables)?

I know that the equations for obtaining the RAW regression coefficient of the slope  and Pearson's correlation (r) are different, but conceptually, how do those two differ when you only have two variables?  Please let me know and thank you for your help!!


Please everyone who love Ubuntu Click on the link below and check the article and tell me what going on.


Why was  answer turned community wiki? Only two users have revised it. I  saw  that the idea behind CW is that the OP is not the sole owner of the post but many users own it. Is there a lower limit on the number of users editing the post which if crossed then the question turns CW?


I have 25 screen named sc1, sc2, sc3 , etc running and when i open screen via screen -r sc1 command it opened sc19 How to fix this?


How do I tame and ride the undead horses?

So the 15.0 update came out for minecraft pocket edition. Well along with horses there are also the zombie horse and skeleton horse. Is it possible to tame these? If so how?


Let $T\colon L^2[0,1] \to L^2[0,1]$ be a bounded linear map of Hilbert spaces such that if $f\in L^2[0,1]$ is continuous then so is $Tf$. Show that there is a constant $C$ such that $$\sup_{x\in[0,1]}|Tf(x)| \leq C \sup_{x\in[0,1]}|f(x)|$$  I have no idea how to go about. Please at least give hints.


How to turn elements of a list into new smaller lists?

I need to turn every three values of a list into a new smaller list.  Here's an example of a list  ["bob",1,2,3,mike,4,5,6,"jerry",7,8,9,"richard",10,11,12]   I want it to look like:  [["bob",1,2,3],["mike",4,5,6],["jerry",7,8,9],["richard",10,11,12]]   How would I go about doing that?  I've tried using a for loop but I haven't had success.  list=#The first list above n=3 count=0 for item in list:       [list[count::n]]       count+=1   I've seen other versions of this question with a list of numbers but I think the strings in mine might mess up those solutions.


Reference request: Relation between $Sp(N)$, $Spin(N) $, $SU(N)$ groups and physics

I want to understand the relationship of the so common $SU(N)$ and $SO(N)$ groups in physics with the symplectic group which I think is the double cover of the first and the Spin groups $Spin(N)$.  Is there a good reference, mainly for physicists.


What is the difference between light and visible light?

After watching a few videos on  and , I am a little confused.  The way things are explained, is that light is just the same as electromagnetic radiation I thought this would be strange as then microwaves and radios would also be called light. Plus, I am not sure of the origin of the word photon, but in Japanese which I use it is 光子 which kind of translates to light molecule.  I found an answer to this:     electromagnetic radiation to which the organs of sight react, ranging in wavelength from about 400 to 700 nm ()   However, after searching the web it seems that this is approximately the same spectrum for humans. So, is there a difference between light and visible light? If not, why use visible light?


How can I generate a structured list of 2 digit integers in Python?

I'm attempting to replicate the attached piece of C# code in Python, but unfortunately I know a lot less about Python than I do with the former. The code essentially generates a list of 2 character/digit values e.g. aa, ab, ac, ad, etc. It includes combinations of A-Z, a-z, and 0-9.   I've looked into django.utils.crypto module, but that creates a randomised output, and the output from my C# code gives the exact amount of combinations when run. This is what I tried with Django's module:  get_random_string(length=2,  allowed_chars=u'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789')   Other options I tried do something similar, so I'm  at a bit of a loss. I know the basics of Python, but unfortunately I haven't found enough to be able to replicate my C# code in Python. The C# code:  var alpha =  "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; var q = alpha.Select(x => x.ToString()); int size = 2; for (int i = 0; i < size - 1; i++)     q = q.SelectMany(x => alphabet, (x, y) => x + y);  foreach (var item in q)     Console.WriteLine(item);   Converted into python, the function should generate about 62^2 combinations of the values in 2 digit integers.


Adding new field conditioned by analysis that regards other layers

I'm searching for a method to add a new field in the point vector that has a specific value of a field contained in a polygon vector with QGIS. Here is an example image:  The violet is the point shapefile to which I want to add the number of the polygon (in black) which contains them.   Someone has any idea?


what does it mean for a variable to be statistically significant??  Could anyone give a complete answer to this question?


How to prove a finite field is not ordered?

I have a set S={0,1}, and the addition and multiplication rules are  \begin{array}{c|cc} +&0&1\\ \hline 0&0&1\\ 1&1&0 \end{array}  \begin{array}{c|cc} *&0&1\\ \hline 0&0&0\\ 1&0&1 \end{array}  It is sure that it is a field. How can I prove this field can be ordered or not?


Where can I find current authoritative information about COVID-19 related travel bans to the US?

:     Under President Donald Trump, the federal government has banned non-citizens from coronavirus-hit regions entry, but US citizens are allowed back into the country after a two-week quarantine.   Does the US government publish a list of from where non-citizens are banned entry?  If yes, where can I find such a list?  I found a , but this appears aimed at advising US citizens where not to travel.  The entry ban is not (currently) mentioned on the .  I don't find it at  or  pages either.   linked from  hasn't been updated since 2020-03-02 (nine days ago) and may not be accurate (at least it clearly contradicts the BBC News report).  The IATA list does not answer my question because it's not official information from the US government, and actually not even sourced to them.  It also appears to only relate to , and thus be limited to flights.


Unable to login to a domain computer using a Local Administrator account

I have a server running on windows server 2008. Recently we created a domain and added it to the domain. Also it is promoted as an additional domain controller on the network. A domain user account was created with same username and password as my previous local administrator account. Now I unable to login using my local account. I tried loggin in using SERVERNAME\Username, but it is giving incorrect password error message. Is there any way I can retrieve or create a new local administrator account on a domain computer


How to scale the colorbar to data in pgfplots

Good morning,  I have some .txt files that contain 3 columns of data: the first one corresponds to the x-axis value of each point, the second one corresponds to the y-axis value of each point, and the third one corresponds to the value that i want in the color bar (meta index).  When I plot the whole thing, the colorbar does not scale with the data in the third column of my txt files.  Here is my code:  \documentclass[varwidth]{standalone} % *** PACKAGES *** \usepackage{standalone} % Pour les stand-alone \usepackage[usenames,dvipsnames]{xcolor} % 68 dvips colors à déclarer avant tikz \usepackage{tikz} % Pour les figure Tikz \usepackage{pgfplots} % Pour tracer les courbes à partir de fichiers de données \usepackage{pgfplotstable} % Pour pouvoir lire les tableaux des fichiers .txt % *** PACKAGES END *** \pgfplotsset{compat=1.12} % pour définir la version de pgfplots \pgfplotsset{ /pgfplots/colormap={hsv2}{rgb255(0cm)=(0,0,0) rgb255(0.10cm)=(128,0,128) rgb255(0.5cm)=(0,0,230) rgb255(1.cm)=(0,255,255) rgb255(2.5cm)=(0,255,0) rgb255(3.5cm)=(255,255,0) rgb255(6cm)=(255,0,0)} } % Pour définir les couleurs de la colomap \begin{document} \tikzset{mark options={mark size=1.5, line width=0.01pt}} \begin{tikzpicture} \begin{axis}[             clip mode=individual, % Pour plot dans l'ordre             enlargelimits=false,     colorbar,     colorbar style={ylabel=$C_{ligne,si}$},%,ytick={0,0.2,...,1}},     width=0.7\textwidth,             height=0.6\textwidth,     grid=major,     minor x tick num=1,             xlabel={Real($\lambda (A)$)},     minor y tick num=1,             ylabel={Imag($\lambda (A)$)},     tick label style={font=\footnotesize}, ] \foreach \m in {1,2,...,100} {\edef\temp{\noexpand\addplot+[mark=*,only marks,scatter,scatter src=explicit] table[x index=0,y index=1,meta index=2] {./DATA_01/Valeurs_Propres_\m.txt};}\temp} \end{axis} \end{tikzpicture} \end{document}   and here is the end result that I get:   The color bar starts at 10^-6 and goes up to 10^-3; Now I would like the colorbar to scale logarithmically (instead of linearly) so that the "space" between 10^-6 and 10^-5 is the same than between 10^-5 and 10^-4 and between 10^-4 and 10^-3.  I am joining a .zip with my folder containing my .tex files and the .txt files if someone is willing to go this far to help me.   Thank you very much for your help!  VS


Why can't I see the data query account in the accounts section?

When I go to  page I can't find the  account. What makes this site more special than the others? Why doesn't it appear in the list of accounts?


Prove that if a fraction is broken up into two the resulting two fractions cannot both have a larger value

I am working on research involving probability tables. I simplified the problem to the following. Say we have the following:  $C_1, C_2, C_3, C_4$  $\forall i, C_i > 0$  $x = \frac{C_1 + C_2}{C_1 + C_2 + C_3 + C_4}$  $y = \frac{C_1}{C_1 + C_3}$  $z = \frac{C_2}{C_2 + C_4}$  I am almost positive (by just filling in numbers) that both $y$ and $z$ cannot $> x$ or $< x$. Meaning that unless $y = z$, then either $y < x$ and $z > x$ or $y > x$ and $z < x$. Does anyone have suggestions for an approach to prove this?   ==EDIT== Basically, I am trying to prove that either of these two situations are impossible:  $z \geq y > x$  $x > y \geq z$


How to ensure that all new users have the same profile settings as the current user?  I am using  Ubuntu 12.04.