I have a project where I need to know the exact minimal distance between a point $(e, f)$ and a sine wave $y = a + b\cdot\sin(cx+d)$  Is there any way of calculating this? If not, is there a way to approximate this?   Thanks in advance!  Edit  Following Ross' and Ben's answers, The distance between a point $(e,f)$ and a sine wave $y = a + b\cdot\sin(cx+d)$ can be calculated by defining it as a distance between two points: $$D=\sqrt{(x-e)^2+(a+b\cdot\sin(cx+d)-f)^2}$$ The $x$ where the distance is minimal can then be calculated by $E=D^2$ and then solving $E'=0$ $$E'= 2(bc\cdot\cos(cx+d)(a+b\cdot\sin(cx+d)-f)-e+x)=0$$ $$x=e-bc\cdot\cos(cx+d)(a+b\cdot\sin(cx+d)-f)$$ This last formula can only be answered exactly in certain cases.


I am working on the following homework problem:  Let $\phi$ be an isomorphism from $\mathbb{R}^*$ to $\mathbb{R}^*$ (nonzero reals under multiplication). Show that if $r>0$, then $\phi(r) > 0$.  I was trying to prove this by contradiction, but I haven't been able to find any problems. I know that we must have $\phi(1) = 1$, and $\phi(-1) = -1$ no matter what, but despite playing around with those values, as well as $\pm r$ and $\pm \frac{1}{r}$, I haven't gotten any contradictions, and I'm starting to think this might be possible.  What if we defined $\phi(x)$ as: $$x\ \text{if}\ x=\pm 1 \\ -x \text{, otherwise}$$  Would this not be an isomorphism?  Any hints for this question would be much appreciated.


How can I unlock a pattern lock if my screen is defunct?

I have damaged the screen on my phone, so much so, it will not allow me to get the data to transfer onto my laptop. On opening Samsung Kies, it is saying that the connected device is locked. Please enter password on the connected device. I can only assume its the pattern lock they are referring to as I have managed to unlock the sim.  As I am unable to do this due to the screen being cracked, I wondered whether there is any other way of doing this, before sending the same onto my insurance company, as they are saying that I will lose all the data! Cant see why seeing as its just the hardware that is damaged and not the software.


2015 13" MacBook Pro Trackpad and Keyboard stop working

Recently the keyboard and trackpad on my 2015 13" MacBook Pro have stopped working. This is the second laptop to do this, the same issue happened about 6 months ago and Apple gave me a new one when they could not figure it out.  The issue usually starts with force touch not working then progresses to the keyboard and trackpad not being recognized at all. Currently the power button works and force touch works but all other keys and the trackpad don't work.  When this happens there are a lot of errors in the console regarding the AppleHSSPIController.  4/21/16 6:56:47.000 AM  kernel[0]   Error: AppleHSSPIDevice::start failed to get device descriptor 4/21/16 6:56:47.000 AM  kernel[0]   Error: AppleHSSPIController::_enumerateDevice Start failed 4/21/16 6:56:47.000 AM  kernel[0]   Error: AppleHSSPIController::_handleEnumerationFailureGated Giving up on device   You can see the full log here:


geometry median and triangles and circle

In $ABC$ triangle let $AF,BE,CD$ medians.Let $\omega _1$,$\omega _2$,$\omega _3,\omega _4,\omega _5,\omega _6$ respectively incircle on $ADG,AGE,...,BDG$ Prove that incircle's center's on an ellipse.


I have an website, wich shows information through an SQL Query. This is working just fine, except when one of the parameters is a string with blank spaces.  echo $seminar = $_POST['Seminar']; echo $start = $_POST['DatumGruppe'];  $prep_stmt = $mysqli->prepare("SELECT `idtermine` FROM `termine`, seminar WHERE termine.seminar = seminar.idseminar AND seminar.name = ? AND termine.start= ? "); $prep_stmt->bind_param('ss', $seminar, $start); if (!$prep_stmt->execute()) {     echo 'Error executing!'; }  else { $prep_stmt->store_result(); $prep_stmt->bind_result($termin);      if ($prep_stmt->num_rows != 1)     {     echo '
Kein passendes Seminar gefunden
';     }      while ($prep_stmt->fetch())     {         echo 'ID: '.$termin.'
';     } }   Like i said: when $seminar is something like "Entspannung" its perfectly working. But "Metakognitives Training - Umgang mit Grübeln und Sorgen" isn't working - theres no mistake in the query, it just doesn't find a fitting row. There are no mistakes in the writing, and the same query is working on another website. So I really don't get the problem.  I tried using quotes  echo $seminar = "'".$_POST['Seminar']."'";   which didn't helped eather. I hope you can help.


Difference between "what do you see" and "what are you seeing"

Is there any difference between the two?     What do you see?       What are you seeing?


Trigonometric ratios for angles greater than $90^\circ$?

The trigonometric ratios of an angle greater than $90^\circ$ are equal to the supplementary angle's ratios.  I'm just clarifying this, but the ratios don't actually exist for angles greater than $90^\circ$ right? (since by definition these ratios are of a right angle triangle). Is it just mathematical custom to assume the ratios of an angle greater than $90^\circ$ to be equivalent to its supplementary angle's ratios? For convenience?


I am currently working on a team of four people trying to develop a simple news website. We are having a hard time figuring out the best way to collaboration. I've found other threads that suggested using Features module; however, that is outside of our scope at the moment. Can you suggest a simpler way to collaborate?


How do academics (faculty members, PhD students, etc.) balance their work and life? I am a PhD student and I find myself spending at least 10-11 hours working everyday. Sometimes even 10 hours is not enough for the day, I need to burn midnight oil. However, everyone (mostly my parents and friends, who are non-academics and do not have PhD degree) is telling me that I am working too much and that I shouldn't burn out myself by doing so much work. When I hear these comments, I can't help myself but thinking 'Yeah, but that's only because you are not working in academia...you don't really understand my situation'. For those who are working in academia, do you think I am working too much as a PhD student? How much time do you typically spend a day working? If you think that I am working too much, how can I possibly strike the balance between my academic work and my personal life? I am genuinely asking because I really do not know "how to take care of myself properly" while I am constantly facing a huge workload. I do think that this will hurt me in a long run, especially if I am to pursue a career in academia. Thank you,


Change of terminals require immigration clearance

Am an Indian passport holder. About to tour Greece. Received the Schengen visa from Greek authorities. My flight is from Mumbai to Paris and connecting flight from Paris to Athens. At Paris,there is a change of terminals from 2C to 1. Will I have to go thru immigration? I do not wish to get stuck as Schengen issued is by Greece and it says valid for Schengen stages. It's a multiple entry, C Category 1 month visa. Is it a requirement that there should be first entry to the Schengen state that issued the visa?


Why are files and directories colored in different ways?

On Ubuntu 14.04, in bash under gnome terminal, Why are files especially directories colored  in different ways?    The green colors hide the text to me (How about to you?). Is it done by terminal or bash? Is it a design  for some purpose?  Can we change the color that hide the text?


How to create custom C++ template that receives any type such as STL vector?

I'm trying to create data structure for sorting data that will firstly receive any kind of object, i.e. int, string or MyCustomObject and then perform other tasks. // heap.h template <typename T> class Heap{ public:     Heap();     ~Heap();     }   //heap.cpp template <typename T> Heap<T>::Heap(){}  template <typename T> Heap<T>::~Heap(){}  ...   It turns out that from the very beginning when I try to run Heap<int> test it shows that classic message undefined reference to Heap<int>::Heap(). I found out that one workaround is to add template <typename int> at the end of the code. However, if I try to do it with std::vector I'm pretty sure I can run std::vector<MyCustomObject> test which uses templates even without adding that line template<typename MyCustomObject> beforehand. I want to know:  How would I perform this same behavior in my data structure of receiving "unknown" types? Why std::vector implementation works whereas mine don't? What's missing?


Null Pointer Exception for android widget EditText?

I am getting a the error in the onClick method when the EditText object is referenced.      public class messageActivity extends AppCompatActivity {    EditText editText;   Button button;   Logic logic;    @Override   protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_message);      editText = (EditText) findViewById(R.id.editText);     button = (Button) findViewById(R.id.button6);      button.setOnClickListener(new View.OnClickListener() {          @Override         public void onClick(View v) {             logic.message(editText.getText().toString());         }     });   } }     Here is the XML for the EditText widget in my activity:  <EditText       android:layout_width="wrap_content"       android:layout_height="wrap_content"       android:id="@+id/editText"       android:layout_below="@+id/textView3"       android:layout_centerHorizontal="true"       android:layout_marginTop="83dp"       android:inputType="textShortMessage"       android:editable="false" />


A standard tool to convert a byte-count into human KiB MiB etc; like du, ls1

Is there a standard tool which converts an integer count of Bytes into a human-readable count of the largest possible unit-size, while keeping the numeric value between 1.00 and 1023.99 ?   I have my own bash/awk script, but I am looking for a standard tool, which is found on many/most distros... something more generally available, and ideally has simple command line args, and/or can accept piped input.    Here are some examples of the type of output I am looking for.        1    Byt     173.00 KiB      46.57 MiB       1.84 GiB      29.23 GiB     265.72 GiB       1.63 TiB     Here is the bytes-human script (used for the above output)  awk -v pfix="$1" -v sfix="$2" 'BEGIN {        split( "Byt KiB MiB GiB TiB PiB", unit )       uix = uct = length( unit )       for( i=1; i<=uct; i++ ) val[i] = (2**(10*(i-1)))-1    }{ if( int($1) == 0 ) uix = 1; else while( $1 < val[uix]+1 ) uix--       num = $1 / (val[uix]+1)       if( uix==1 ) n = "%5d   "; else n = "%8.2f"       printf( "%s"n" %s%s\n", pfix, num, unit[uix], sfix )     }'   Update  Here is a modified version of Gilles' script, as described in a comment to his answer ..(modified to suit my preferred look).            awk 'function human(x) {          s=" B   KiB MiB GiB TiB EiB PiB YiB ZiB"          while (x>=1024 && length(s)>1)                 {x/=1024; s=substr(s,5)}          s=substr(s,1,4)          xf=(s==" B  ")?"%5d   ":"%8.2f"          return sprintf( xf"%s\n", x, s)       }       {gsub(/^[0-9]+/, human($1)); print}'


Toshiba windows 7 laptop, all icons the same

all desktop icons the same and when I try to open it says this action is valid for products that are already installed. when I enter regedit in the search it says the same thing so i can't even fix it with this solution because everything I try to open says the same thing


Asked to write a Letter of Recommendation about myself

I am a student applying to a graduate program. Part of the application requires submitting some letters of recommendation. I asked a former professor whose class I enjoyed, but she surprisingly asked that I write one myself, send it to her, and she would sign and submit it. This feels disingenuous at best and fraudulent at worst. Is this a common practice, or should I seek letters elsewhere?


Prove that $n^2+(n+1)^2+n^2\cdot(n+1)^2$ is a perfect square, for all $n\in\mathbb N$.  I have not tried anything but numerical calculations.


How Gelfond find his limit for $\exp(\pi) $?

$$ a_0 = \frac{1}{\sqrt 2} $$  $$ a_{n+1} = \frac{( \sqrt {1 - a_n^2} -1)^2}{a_n^2} $$  $$ \lim_{n \to \infty} \frac{4^{\frac{1}{2^n}}}{a_{n+1}^{\frac{1}{2^n}}} = \exp(\pi) $$  How did Gelfond find this nice result ? And how to prove it ?  The 4 is trivial , but the rest is not. Is this related to trigonometry ? Is this related to continued fractions ?  Are there analogues known for cube roots ?   Notice a proof alone might not explain how he found the result.


Proof continuous function $g$ defined on $[0,1]$ has a fixedpoint $x \in [0,1]$

Claim: For the continuous function $g:[0,1]\rightarrow[0,1] \exists x \in [0,1]: g(x_1) = x_1$  Proof:  Case 1: If g(0) = 0 and/or g(1) = 1 then g has at least one fix point on one of the ends of the intervall. This means $\exists x_1\in[0,1]: g(x_1)= x_1$  Case 2: Suppose $g(0) \ne 0 $ and $g(1) \ne 1 \Rightarrow$ g does not have a fixed point on one of the ends of the intervall. Therefore we have that g(0) > 0 since (0 < g(0) < 1) and g (1) < 1 since (0 < g(1) < 1) now define:  $$h(x) := g(x) -x$$  $\Rightarrow$ h is continuous since it is constructed by adding two continuous functions. Now:   $$h(0)= g(0)-0>0. \,\,By \,\, g(0)>0$$ $$h(1) = g(1) - 1 < 0. \,\, By \,\, g(1) < 1$$  By the intermediate value thm. $\Rightarrow \exists x_1 [0,1]: h(x_1) = 0$ this implies $\Rightarrow g(x_1)-x_1= 0 \iff g(x_1) = x_1$  Thus $x_1$ is a fixed point of g. By this the claim is proven. q.e.d  Now I'm asking for verification for that proof.


Convert bevel node output to black/white

I want to use the new bevel node to simulate chipped paint along edges. I find the edges by using the cross product of the normal outputs of bevel and geometry nodes. However, the output is blurred around the edges and I need a sharp transition to achieve the desired effect, so I am trying to use a color ramp with both positions set to 0.5 to convert the greyscale map to black/white. But it doesn't work, the output is still a greyscale gradient. How can I fix this?  thanks in advance!


Delete a Object from an Array of Objects

Is there a way to do this:  Player[] player = new Player[numOfPlayers]; for(int i=0; i < numOfPlayers; i++){     player[i] =  new Player("Player"+i, 0);  } //becomes like this right?  player[0].name='a'; player[1].name='b' player[2].name='c' player[3].name='t' player[i].name='baz'   How can I remove say player[2] so that the new array of objects becomes:  player[0].name='a'; player[1].name='c' player[2].name='t' player[i].name='baz'


curl not downloading files with %2B in the url

I am trying to download a file using curl in cmd. This is the command I have: curl https://media.forgecdn.net/files/3110/882/crookedcrooks-1.3.2%2B1.16.4.jar -O  The output file is 1kb and only contains the following error message when opened in notepad: <?xml version="1.0" encoding="UTF-8"?> <Error>AccessDenied<Message>Access Denied</Message><RequestId>4F962D69DE69F461</RequestId><HostId>M+LiVAn7t7U170zxzX0brB0PbKliqmPJ7Y6WDHmfrbDF6dlEoNSvAp/WeQVc7zrXJia1TU6rkP4=</HostId></Error>  The file has the name crookedcrooks-1.3.2B1.16.4.jar when it should be crookedcrooks-1.3.2+1.16.4.jar. When the url is opened in a web browser the file downloads correctly. I have tried the following commands but none have worked: curl https://media.forgecdn.net/files/3110/882/crookedcrooks-1.3.2%2B1.16.4.jar -L -O curl https://media.forgecdn.net/files/3110/882/crookedcrooks-1.3.2+1.16.4.jar -O curl "https://media.forgecdn.net/files/3110/882/crookedcrooks-1.3.2%2B1.16.4.jar" -O  Urls that do not contain %2B work correctly: curl https://media.forgecdn.net/files/3075/427/blast-1.4.jar -O


Is there a word like ‘genocide’, but for a specific family?

I swear I read such a word once, as does my partner; but no amount of Googling has been able to suss it out:  I’m looking for something that means “to extinguish a family tree,” in the sense of complete genetic extinction; to hunt down and kill all members of someone’s extended family.  (Dark, I know!)


What is grammatically wrong with the sentence,  "I feel to eat."?  After the verb feel, can the infinitive of another verb be used?


I have a requirement to implement an "Unsaved Changes" prompt in an ASP .Net application.  If a user modifies controls on a web form, and attempts to navigate away before saving, a prompt should appear warning them that they have unsaved changes, and give them the option to cancel and stay on the current page.  The prompt should not display if the user hasn't touched any of the controls.  Ideally I'd like to implement this in JavaScript, but before I go down the path of rolling my own code, are there any existing frameworks or recommended design patterns for achieving this?  Ideally I'd like something that can easily be reused across multiple pages with minimal changes.


I'm having trouble seeing why $\sum_{k=1} k^{2}/k!=e^2$. The ratio test says that it converges absolutely. Pardon my ignorance, but are there any techniques to show this?  I thought about expanding $e^{2}= e \cdot e =(\sum_{k=0} \frac{1}{k!})(\sum_{k=0} \frac{1}{k!})$ but so far that hasn't helped me much.


Prove that sample covariance matrix is positive definite

Consider the $p \times p$ sample covariance matrix: $$\mathbf{S} = \frac{1}{n-1} \cdot \mathbf{Y}_\mathbf{c}^\text{T} \mathbf{Y}_\mathbf{c} \quad \quad \quad \mathbf{Y}_\mathbf{c} = \mathbf{C} \mathbf{Y},$$ where $\mathbf{C} = \mathbf{I}-\frac{1}{n} \mathbf{1} \mathbf{1}^\text{T}$ is the $n \times n$  and $\mathbf{Y}$ is an $n \times p$ matrix.  How can it be proved that if the variables are continuos, not linearly related and $n-1> p$ then the sample covariance matrix is positive definite? The following clue is found in Ranchera's book:


I have set the permission on my uploads directory(in which end user can upload their documents) to 777.  I understand this is not a good idea, but the files wont get uploaded with any other permission.  I want to understand the security risks attached to it and what i can do to prevent them.  Additionally, i will be setting the permission on uploaded files in upload dir to 644.  Appreciate your response.


How to make nice indents at the beginning of each chapter?

I'm using  template to write my thesis. My chapters look like that:    How can I make latex add the indent in the first paragraph of each section?   I could manually add a hspace, but I'd like to be able to change the template and not to worry about each section seperately. How can I do that?


What are these triangles along the model edges?

They tend to fluctuate as I move the model around:


I have a class that contains methods that query the database for information and then return a variable which value is the prepared version of the sql query,  after "execute()" and "setFetchMode()", the function returns that same variable.   In another file I create an object of that class, and call that method which I assign as the value of another variable so that I can fetch() it on a while loop. The problem is that all of that happens without any apparent errors but the data that I request from the database is not retrieved.  <?php class DatabaseContent{      private $sql = "SELECT * FROM :table ";      public function fetchAllRows($table, $rowOrder, $direction, $conn){         $this->sql .= "ORDER BY :roworder :direction ";         $q = $conn->prepare($this->sql);         $q->execute(array(':table'=>$table, ':roworder'=>$rowOrder, ':direction'=>$direction));         $q->setFetchMode(PDO::FETCH_ASSOC);          return $q;     }   And this is the file where I create the object  <?php                    $table = "topics";                    $rowOrder = "topic_id";                    $direction = "ASC";                     $q = new DatabaseContent;                     $n = $q->fetchAllRows($table, $rowOrder, $direction,$conn);                              while($row = $n->fetch()):                                 echo '
'.$row['topic_name'].'
';                             endwhile;                 ?>


How to update kernel to the latest mainline version without any Distro-upgrade?

Currently I'm running Linux-3.0 and I want to update it to Linux-3.3.1 the latest stable kernel release as mentioned at . Can I update to 3.3.1 in Ubuntu without any risk of crashes? I'm updating my kernel regularly as provided by the Update Manager..Currently I have Linux-3.0.0.17..Can I update?  NOTE:  The latest kernel version any user is supposed to use in Ubuntu is updated automatically via the Update Manager, so no action is normally required by user regarding kernel upgrades. What the question author is referring to is mainline kernel, see:


Proof that the sample mean is normally distributed

I am studying the book of  and stumbled upon  I can prove that $\bar{Y}=\frac{1}{n} \sum_{i=1}^{n} Y_{i}$ and $Var(\bar{Y})=\frac{\sigma ^{2}}{n}$ but how would I go to show that $\bar{Y}$ is normally distributed? Why normal? Should I use the Normal MGF?


That's a lot of ___ vs. those are a lot of ___

That's a lot of cars!   Those are a lot of cars!      The context is when a someone sees many objects (in this example, cars) and makes the exclamation.   According to , lot can handle either singular or plural verbs.  I agree with the author who states that that's sounds better, but the post doesn't seem definitive either way.     Are both grammatically correct and do they have the same meaning?


How can I fix overfull \hbox problem in biblatex?

The errors aren't creating any problem in my desired output, but what does it mean?  How can I fix it?    I will share my tex file if needed.


Longtable not split across multiple pages

I took inspiration from  to create the following table:  Gist:   (I had to paste it into a public Gist as the code exceeded the allowed character length on this platform.)  However, as you can see from the screenshot below, the table is not split across multiple pages.     Could anyone advise me why I don't see the expected behaviour?


How to make the login shell xterm use utf-8?

I use xterm (X-Win32 2012 Build 30 from StarNet Communications Corp) to login from a Windows 7 PC to a Red Enterprise Linux 6 (RHEL6).  My problem is that all multi-byte utf-8 characters comes out garbled in the xterm login shell. For example, here's how the string "Wilhelm Röntgen" is rendered in the two shell instances (the font used is a Unicode font and is the same font in both shell instances):   Login shell: Wilhelm RÃ¶ntgen  Second shell: Wilhelm Röntgen   If I've understood things correctly the software from rom StarNet Communications Corp implements (or emulates) a X terminal (a thin client that runs a X server).  I.e. both shell instances runs in a X terminal window on the PC, and communicates with RHEL6 using the X11 protocol.  Below is how both shells appear on my desktop, catenating a file with unicode multibye characters to the terminal.    Here is the command I've configured  X-Win32 to use to start the login shell:  xterm -u8 -ls   However, after I login, I can do xterm in the login shell, and that command that will fork a new xterm instance where locale setting works as expected (i.e. utf-8 characters are rendered correctly).  Here is the relevant settings as they appear in the login shell:  $ locale LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE=C LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=  $ printenv XTERM_LOCALE en_US.UTF-8   I also have the following two lines in .Xresources:  xterm*locale: true xterm*utf8: 1   It looks like the login shell xterm doesn't recognise the locale I've set, but I don't understand why not.  My xterm is clearly capable of this, since all non-login shells do this by default.


How should one approch Project Euler problem 213 ("Flea Circus")?

I would like to solve  but don't know where to start because I'm a layperson in the field of Statistics, notice that an accurate answer is required so the Monte Carlo method won't work. Could you recommend some statistics topics for me to read on? Please do not post the solution here.     Flea Circus      A 30×30 grid of squares contains 900 fleas, initially one flea per square.   When a bell is rung, each flea jumps to an adjacent square at random (usually 4 possibilities, except for fleas on the edge of the grid or at the corners).      What is the expected number of unoccupied squares after 50 rings of the bell? Give your answer rounded to six decimal places.


Upper bound for the sum of absolute values of the eigenvalues

Let $\mathbf A = (a_{ij})$ be an $n\times n$ real or complex matrix with eigenvalues $\lambda_j$, for $j=1,...,n$. It is known that $\max|\lambda_j|$ is bounded above by the maximum row sum of $A$ (using entrywise absolute values).  Does the following related bound also hold?  Question: Is it true that $$ \sum_{j=1}^n|\lambda_j| \le \sum_{i,j=1}^{n}|a_{ij}|, $$ where the right hand side is summed over all matrix elements$\,$?  For example, this inequality is obvious for triangular matrices as well as positive definite matrices and slightly less obvious for unitary matrices (using the fact that the rows are unit vectors).  It can also be proved in other special cases but is it true in general?  Thanks.


Extracting text within parenthesis in a QGIS attribute table

I have a shapefile of data for Japan, and I need to extract the English character names in my "name" field in order to label the layer. Much of the data is all in Japanese, but some of the names have an alternate English name which can be found inside a set of parenthesis. I'd like to extract this text to another field and use it for labeling. I'm using QGIS.  Example:  I need to turn  野川サイクリング道路 (Nogawa Cycling Road)     Into   Nogawa Cycling Road   I'm attempting to use the regexp_substr function in the Field Calculator:  regexp_substr( "name", '\((.*?)\)')   When I try to run this, I get an error:      An error occured while evaluating the calculation string: Invalid regular expression '?(.*?)?': bad repetition syntax.   Oddly, in testing, I tried this same regex in PostGIS and it worked great. Does anyone know of a regex that will do this task in the QGIS field calculator?


libvirt: how to pass qemu command-line args now libvirt schemas is 404

This is the only way I have found to pass arguments to qemu:  <domain type='qemu' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>   Unfortunately the url  now simply returns a 404 page, and libvirt automatically trims this part off. I can't seem to find any information on an alternative as even the libvirt website advises adding this broken schema!  Is there is another way to enable evdev pass-though without qemu arguments?  EDIT:  I solved this using the solution marked below, but one important thing to note is that virsh will always trim off xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0' unless there is a valid <qemu:[whatever]> tag somewhere in the domain.


How do I get dynamic div content in selenium

See how the dynamic message displays in the browser. I am adding a name in a text field and clicking save button. After clicking save, a message displays as New Staff added or Staff Name already exists!. I want to get the content of the message. Based on the content I want to proceed with my testcase or end it. How can this be done using selenium?


"did not find expected hexadecimal number" when bootstraping Juju on Windows

With Juju on windows 8 I get the following error:  Cannot parse: C:\Users\user\AppData\Roaming\Juju|enviornments.yaml\YAML error : line 126: did not find expected hexadecimal number   It seems that it does not like my subscription id that I created with a new azure account.  Any ideas on how to fix this? It is a legitimate subscription id...


I'm currently writing my PhD thesis in sharelatex and have come across an issue with my citations. I cannot figure out how to remove the first name of the authors from the citations.   \usepackage[style=authoryear,maxbibnames=9,maxcitenames=2,backend=biber,firstinits=true,doi=false,isbn=false,url=false]{biblatex}  \addbibresource{references.bib} \renewcommand*{\nameyeardelim}{\addcomma\space} \DeclareNameAlias{sortname}{last-first}


How to print logs into file and in the cli in Linux

Let's say am running a Spring Boot app via CLI using java command java -Dserver.port=5743 -jar somejar.jar and I want the logs to be printed within the cli and also copy into files. So far I could do only one at a time either on CLI or file


Car Crash Question... (Conservation of Momentum?)

Dumb car crash question.  I think this is a conservation of momentum problem.    In one scenario, two 4000 lb cars (car A and car B) each traveling at exactly 35 MPH in opposite directions have a perfect head on collision with each other. In the other scenario, one 4000 lb car (Car A) traveling at 35 MPH hits a steel reinforced concrete bridge abutment (i.e. a huge mass with zero speed.)     Which Car A sustains more 'damage'?    My gut feel is that both experience exactly the same crash damage, but I'm at a loss to describe why.    (Question inspired by a temporary stretch of freeway near my home, with just a painted double line between opposing directions of traffic.. It's quite scary...)


$N$-th number divisible by a perfect square

What is the fastest algorithm to determine the $n$-th number divisible by a perfect square? For example,   $n=1$, answer=$4$;  $n=2$, answer=$8$;  $n=3$, answer=$9$;  $n=4$, answer=$12$


HTML Charset UFT-8 does not work on every page

i have created 3 .html files and in every file i did:  <!DOCTYPE html> <html lang="en">   <head>     <meta charset="utf-8">     <meta http-equiv="X-UA-Compatible" content="IE=edge">     <meta name="viewport" content="width=device-width, initial-scale=1">   The structure is in every file the same, the funny thing is that on 2 pages the Charset is working but on 1 page is it not! On the one page i have to remove the Carset else the text on the page is broken. Does anyone how why this is not working?  Here is the Website:


Set of $2008$ Integers Having Prime Divisors Less Than $24$

A set $L$ consists of $2008$ integers, none of which have a prime divisor   larger than $24$. Prove that $L$ has four elements, the product of which   is equal to the fourth power of an integer.


I would like to make a sum of all dropdown values into a label text box. I am using following formula, but I do not understand where am I going wrong. Can anyone assist? I have also added a screenshot if that helps anyhow. Note: scores is the table name the dropdown values feed from. Sum(scores, Dropdown3.Selected.Value + Dropdown3_1.Selected.Value + Dropdown3_2.Selected.Value)


the add options are greyed out (in all tabs) I can't use them. Any help? BLENDER VERSION: 2.78


What is the meaning of *them* in this sentence? I mean what does them refer to in this sentence?

Do you remember the first time you talked about our future together and I said: “I’ll think about it later”?   I lied. I lied that I can be with you forever and never leave.   Do you remember our movie nights when you said how fun it would be if we’ll stay like this forever? I was afraid. Afraid, that I can’t stay like that forever.   The kindness and love that you carry inside your heart can melt anyone. But why didn’t those three magical words try to come outside of me, ever wondered? The answer is commitment.   Commitment, which forces you to stay there and stick. Commitment has always been a scary thought to me. Maybe I’m afraid of a forever.   Do you think I’m the only one who tries to repel people who get too close to them?   (Story by Rashi Arora (@rashiousness) for )


What makes '$c$' $c$? And what if it was slightly different?

I was thinking about what would be necessary to change to have a different value for $c$ (speed of light in vacuum, or speed of anything massless, or the one that seems most fundamental to me: he maximum speed of 'making stuff happen elsewhere').   And, if $c$ was different, what that would change about the universe?  From Maxwell (I think): $c = {1}/{\sqrt{\mu_0\,\epsilon_0}}$. Where: $\mu_0$ = permeability of free space ('how easy it is to magnetise free space'?) and $\epsilon_0$ = permitivity of free space ('how strongly free space resists an elecectrical field'?) (I know those definitions are very simplistic, and please tell me if they're wrong.)  Which means $c$ is inversely proportional to how easy it is to  magnetise free space, and inversely proportional to how difficult it is to create an electric field in free space. (Ie, directly proportional to how easy it is?).  My initial question was: Is there a plain English explanation for why the speed of light (or the speed of causality?) is related to these two properties, and why it's inversely proportional to how easy it is to  magnetise free space and to how difficult it is to create an electric field in free space? (Or, do you just have to do the maths?!)  (With a slightly hurty brain I wondered if a comment from Emilio's link answered this: "The stiffer the [medium] is (more energy to squeeze), the faster the wave. The more inertia, the slower the wave")  BUT as PM2Ring explained below, $c = {1}/{\sqrt{\mu_0\,\epsilon_0}}$ is just the way that EM waves behave in the universe, so this original question of mine was flawed from the outset.  Part 2 of my question was if $\mu_0$ and $\epsilon_0$ were different and $c$ was slightly larger/smaller), what would the universe look like? And would the wheels fall off the apple cart if that were the case? Would I still be here to ask this question? (Ie, specifically thinking about $\mu_0$ and $\epsilon_0$, but now that i know they are not what defines $c$, that question is also moot.) I do think it's an interesting creative exercise to image a universe with $c$ = a million times as fast, or only the speed of a cart horse, though!  So my understanding (thanks to wonderful explanations below) is that: $c = {1}/{\sqrt{\mu_0\,\epsilon_0}}$ is how EM waves behave in our universe $\alpha = \frac1{4\pi\epsilon_0} \frac{e^2}{\hbar c} \approx \frac 1{137}$ is a happy coincidence. ('Happy' in that it allows wheels stay on apple carts, stars to form, and me to ask this question.)  And as for why $c = c$, the best answer might be it's a fundamental part of our universe, and no-one knows why that's the case.  If those answers look right, I'll change this to question answered.


I added this code but when I upload 1 image, then 4 images of 1 image are uploaded, what is happening IMAGES : Not proper working PDF file upload : work fine Doc file upload : work fine rvt file upload : not working Now I am trying to upload multiple files my HTML code is: <input type="file" name="my_file_upload[]" id="my_file_upload[]" multiple="multiple">  Code > file custom.php if ( $_FILES ) {  $files = $_FILES["my_file_upload"];   foreach ($files['name'] as $key => $value) {                     if ($files['name'][$key]) {              $file = array(                  'name' => $files['name'][$key],                 'type' => $files['type'][$key],                  'tmp_name' => $files['tmp_name'][$key],                  'error' => $files['error'][$key],                 'size' => $files['size'][$key]             );              $_FILES = array ("my_file_upload" => $file);              foreach ($_FILES as $file => $array) {                               $newupload = my_handle_attachment($file,$pid);              }         }      }  }  Function.php File code function my_handle_attachment($file_handler,$post_id,$set_thu=false) { // check to make sure its a successful upload if ($_FILES[$file_handler]['error'] !== UPLOAD_ERR_OK) __return_false();   require_once(ABSPATH . "wp-admin" . '/includes/image.php');  require_once(ABSPATH . "wp-admin" . '/includes/file.php');  require_once(ABSPATH . "wp-admin" . '/includes/media.php');   $attach_id = media_handle_upload( $file_handler, $post_id ); if ( is_numeric( $attach_id ) ) {   update_post_meta( $post_id, '_my_file_upload', $attach_id );  } return $attach_id; }


I am having a lot of trouble setting up the terminal history of Bash the way I want. I would like to have no duplicate entries and if I enter a command I want it saved and the duplicates above removed.  The problem is the history command shows me it is functioning the way I want, but once I log out the duplicates come back again. I believe it is just appending the history to the existing one. I have these lines in my .bashrc file:  HISTCONTROL=ignoreboth:erasedups shopt -u histappend   I have even tried uncommenting shopt, but it still appends the history on logout. How can I have the history be exactly how it is before I logout?


How to validate the model when using Smote technique?

I am using Smote to treat Class Imbalance and I apply Smote only on the train data. I fit a model using balanced data("Smoted" data). Now I need to check recall and precision for train and test data(to see if the model is stable or not). For checking recall and precision in train data, should I use the balanced train data(on which Smote was applied) or the imbalanced train (original train) data ?


I was wondering if there was a method, or if its even feasible, to allow the original poster to increase a bounty?  In essence this equates to a larger enticement to get qualified answers. If the bounty is not enough to involve the experts capable of providing a high quality answer what would be?  Getting high quality answers, one would think, are more important than high quality questions, which in all honesty, most often lack depth and understanding (as a generalization) otherwise they most likely would not be posted.  I think we all hope that the concept of forum/community support sites has not run its course through our social landscape, but to continue the development of future contributors, greater involvement of the higher skilled should be a focus.  A status/points system such as SO, has been working, and hopefully will continue to do so. I can't even speak to the benefits I have reaped, which is why I ask the question. What more can entice high quality answers if the OP can not increase bounty awards?  UPDATE: This question in general has the same premise as the referenced duplicate, but the position as explained here in, is targeted at both improving answer quality and involving more highly skilled professionals. As such, this question expands the scope to the suggestion for the betterment of the issues mentioned.


"getAs()" error - send an email with attachment using Google Apps Script

I am very new to Google Apps Script and struggling. Here is my problem: Trying to send multiple emails via spreadsheet. Want to attach a PDF to those mails. Getting the following error:     TypeError: Cannot call method "getAs" of undefined.      This is the code (primarily taken from ):  function sendEmails() { var sheet = SpreadsheetApp.getActiveSheet(); var range = sheet.getRange(1, 2);   var subject = range.getValues();    var range = sheet.getRange(1, 9);   var numRows = range.getValues();    var startRow = 4;                   var dataRange = sheet.getRange(startRow, 1, numRows,9 )  var data = dataRange.getValues();   for (i in data) {  var row = data[i];   var emailAddress = row[0];         var message = row[8];             var file = DriveApp.getFilesByName('PPT A4.pdf');  MailApp.sendEmail(emailAddress, subject, message, {  name: 'Automatic Emailer Script',  attachments: [file[0].getAs(MimeType.PDF)] });     } }   What am I doing wrong?


Bug in the Late Answers, First Posts and Suggested Edits review queues allow to arbitrarily mark items as reviewed, even if they were not

Both in the Late Answers and First Posts queue, clicking "edit", not editing the post and clicking "Save Edits" triggers the dimming of the "No Action Needed" button and the appearence of the "I'm Done" button:        Aside from the "per se" harmless GUI bug, the problem is that this allows to click the "I'm Done" button, which has the effect of marking the item as reviewed, even if it was not: , .  As you can see, despite the fact that the post hasn't been touched (the edit doesn't appear in the ), the item in the review has still been marked as reviewed.  A similiar thing happens also in the Suggested Edits queue, although I was able to do this only once; I don't have screenshots for this one but I have the links; clicking "Improve Edit", not editing the post and clicking "Save Edits" has the effect of marking the item as reviewed (as approved and edited), even if it was not: , .  As you can see, despite the fact that the post hasn't been touched (the edit doesn't appear in the ), the item in the review has still been marked as reviewed.


How can to run the Scanner is continuously?

In this I want that scanner is run continuously, when check out the words no sequence from list and type them. The problem is that after the first scanner is completed, the next one does not work. How can to do this programm that it works continuously?. Thanks.   System.out.println("Check out one of the names: John, Mike, Nick:");      Scanner s=new Scanner(System.in);     String a=s.nextLine();     if(a.equals("John"){     System.out.println("This is John");     }      a=s.nextLine();     if(a.equals("Mike"){     System.out.println("This is Mike");     }      a=s.nextLine();     if(a.equals("Nick")){     System.out.println("This is Nick");     }


I know this is biblical, my question is whether this is correct or not. Can it be used in modern day? Example : Much like our lives, only by dedicating undivided attention to our people can we teach ...


Origin of "Caught between a rock and a hard place"

caught between a rock and a hard place   Where is this expression coming from? I understood the meaning but, for me, literal translation doesn't make sense. Can you give me some image?


A non orientable closed surface cannot be embedded into $\mathbb{R}^3$

Can someone please remind me how this goes?  Here's the idea of proof I'm trying to recall: let $S$ be a closed surface (connected, compact, without boundary) embedded in $\mathbb{R}^3$. Then one can define the "outward-pointing normal unit vector" to $S$ at any point, and subsequently an orientation of the surface.  One would like to define this vector by saying that it points towards exterior points to $S$. So we need some kind of generalization of the Jordan curve theorem saying that the surface cuts $\mathbb{R}^3$ into two pieces (interior and exterior). What is this theorem exactly?  Also, I apologize if this is silly, but is there an obvious argument that a piece of the surface cuts a small tubular neighborhood of it into interior and exterior points (this seems necessary to define the outward normal vector properly)?  Is there a "cleaner" approach to prove this fact? Thanks in advance.


Find all integers $n>1$ such that $n^2|2^n+1$.

$3$ is clearly an example, but I can't seem to find any other. How do I prove (or disprove) that $3$ is the unique solution?


Currently it looks like this:  I want the red div to be the maximum size without overlapping the bottom of the blue div. The size of the green div changes depending on the length of the text.

     Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.

   Lorem ipsum


Completely removing an iOS app from iPhone xS

I'm trying to delete a few old apps from my iPhone but the best I can do is hide them. Does anyone know of a way to completely and fully delete the apps?  Thanks


This is the sentence:      "... Has established a committee who has/have been appointed as the custodians of ..."    Do I use has or have? Do I use custodian or custodians?


Why is "having" written? And not "to have"  I was so close to having a perfect activity week on my Apple Watch.


Why does placing resistors in parallel decrease the resistance?

This question has been asked before but I don't understand the answers to it. They say that by adding a resistor, it provides an additional path for current to flow  and decreases the resistance. I understand how an additional path decreases resistance but how is adding another resistor  adding an additional path? For example, say a parallel circuit branches off into two paths. You then add resistors to those two paths. How does that decrease the resistance? It isn't adding a new path?


1.5 Million lines of code. 0 tests. Where should we start?

I'm a Java developer by trade. I was 'brought-up' in what you could call best practices. Then I took my current job. I had a choice between the Java/SOA team, and the ERP team. I was told that joining the ERP team would give me the best insight into how the business operates (not in terms of technology, but in terms of business.) So I went with ERP.  I found a system with over 4 million lines of "Progress 4GL" code (since renamed to Openedge ABL, because "4GLs sound bad") code, spread out around about 11000 files. The best part is, no file exists more than one folder down. So you have about 50 folders, each with 300-400 files a piece in them. Luckily, many of the files haven't been touched in over 7 years, and many of them are deprecated (but we don't delete them from version control "just in case." Don't even get me started on that one.) So there's really only about 1.5 million lines of code we'd actually have to test. "Only."  I could go on and on about the poor practices of the system. The bottom line was for years, developers had no option to say no. It was "gimme gimme gimme," combined with a lot of contractors moving in and out. Now, they want to clean up their act.  One of the first things I suggested was testing. They said, basically "we've been wanting to do testing for years, but we don't really know where to start." The business logic and database access are baked into the UI. (I'd say GUI, but it's not graphical, it's on a mainframe. Even the order-entry people telnet in.)  So this is pretty much a worst case scenario. Millions of lines of code. Over a billion dollars in annual sales running through the system, so it's not going to get a re-write (obviously "it works as it is.") No object orientation. No formal or automated tests. Our testers are also the ones who write the specs (which biases them toward "pushing the project through.")  I'm getting pretty desperate. I'm even willing to write whatever testing frameworks (there isn't much for Openedge in open source frameworks) we need on my spare time. I'm convinced it will pay for itself quite quickly. Where can we start? Has anyone here come across a similar project (even if smaller in scale) and if so, how did you cope with and overcome this?  Update: I've had a chat with my manager, and I have approval to draw up a spec/timeline for creating a test harness. At first, I heard this: "What we really need to do is write some tests." to which I responded "Having tests won't really help us if we don't have a way to run them. I've been looking into ProUnit (the old name for OEUnit) and think it will work for us." "We should write some tests using it." It took about 10 minutes of repeating this for him to realize it was not as simple as downloading the library and "using it." But, approval to write a spec to create a test harness is a start! Thanks guys for all your input!


What is the difference between a URI, a URL and a URN?

People talk about URLs, URIs, and URNs as if they're different things, but they look the same to the naked eye.  What are the distinguishable differences between them?


What low-cost non-fisheye wide angle lenses are available for Canon and how do they compare?

I'm currently looking for a wide angle lens for my Canon T3i. I would prefer a prime lens. I want to use a wide angle lens primarily for video (so the lens needs a quiet AF motor) but for still photography as well. One thing I don't want in a lens is photos/videos that result in a major fish eye effect. It will have to be an EF mount for my upgrade soon to the 70D. Budget $350  Your input would be appreciated.


A question about earth ground and current loop

If the live wire in above illustration touches to the metal case, a high short circuit current will flow to the earth through the safety earth wire and the fuse will trip.  Now imagine a 9V battery staying on a wooden table. If now its plus terminal is tied to the earth through a wire almost no current will flow.  Above two points shows that it is not the case that the earth is a reservoir that sucks all electrons, but simply current needs a loop to flow.  In the battery case it is obvious that there is no loop because the negative terminal is floating.  But what is the loop in the first AC case? Is that the AC generator star connection? Can you draw this loop to illustrate better?


$\int_{0}^{\infty} \frac{\cos x - e^{-x}}{x} \mathrm dx$ Evaluate Integral

Evaluate $$\int_{0}^{\infty} \frac{\cos x - e^{-x}}{x} \ dx$$


Associated to the Rubik's cube is a group as described in this : $G = \langle F, B, U, L, D, R\rangle$. For example, the element $F$ corresponds to rotating the front face clockwise by $90$ degrees.  According to the article the order of the group is: $2^{27} 3^{14} 5^3 7^2 11$.  I have come across several places (for example ) where this order has been found by just counting various ways to arrange edges and such. Is there a nice way to compute the order by appealing to more "group theoretic" tools?


I have just formatted an ext4 partition to fat32 using gparted.  In which directions should I tread in my attempt to recover?


ImportError: cannot import name 'wait' from 'os' (C:\Python38\lib\os.py)

I'm working on a Python script that scrapes a website based on user input.  For practice, I'm using a sample website from which I am scraping data.  The issue I have is in my use of the wait(10) method.  The code reads as follows: from os import wait from lxml import html, etree import requests  def select_PA_city(self):     pa_city_list = ["Philadelphia", "Pittsburgh", "Harrisburg", "Erie", "Scranton", "Allentown"]     print("The major cities in Pennsylvania are Philadelphia, Pittsburgh, Harrisburg,"           "Erie, Scranton, and Allentown.")     city_found = False     while not city_found:         pa_city = input("Select a Pennsylvania city from this list:")         for city in pa_city_list:             if pa_city == city:                 print("You selected " + pa_city)                 city_found = True             else:                 pass         if city_found:             print("That city is one of the top 6 listed.")         else:             print("That city (" + pa_city + "} is not in the top 6.  Please try again.")             os.system.wait(10)     return pa_city  Now I'm using PyCharm community as my Python IDE and the first import statement is not being recognized.  I checked the os.py module in my c:\Python38\Lib\ directory, and cannot find the wait method in there.  How do I locate the actual wait() method definition in another Python module, or is there another Python module that contains the wait() method?  If not, what alternate method should I use for initiating a 10-second delay?


An example of symmetric transitive relation that is not reflexive on a set of natural numbers $\mathbb{N}$. My guess is that such relation does not exist, but I don't know how to prove it.


I got a new phone about a month ago but I haven't really installed the SE app on it because I've been on the web version quite often.  Two days ago I decided to install it where I usually access SO. I filter by tags then go to the question to read more about it.   If I either touch the back button or click on the back arrow in the top left, instead of being taken into the list of questions with the tag I've originally chosen, I get taken to the list of tags. What's more is that if I click on the same tag, I have to refresh the list in order to get a proper updated list of questions.  I don't recall this happening before. Has this issue been addressed? I'm using Galaxy S6, not sure if it might be phone specific.


The iOS app has no convenient way to get from a main site to its Meta. You have to go to the full site list and search for the specific Meta you want.  Could a link be provided somewhere? My first thought would be for a tap or tap-and-hold on the site name at the top of the Questions tab to pop up a "menu" with a link to the Meta (see the Taskpaper iOS app for this behavior). The Meta should likewise provide a link back to Main.


Is there an application (in Windows, Unix, or Mac) that allows you to edit the LaTeX generated PDF. I know there is pdfsync, but it only gives you the line, and then you have to search where in the line you want to make the change. This is OK sometimes, for a couple of changes, but when there are lots of changes it becomes really tedious.  I would really like to accelerate this process of correcting mistakes (mostly grammar, missing commas etc.). in my document, without going through all the markup.


How should I reapply for a UK visa after being rejected? Original trip was for a PLAB exam

I'm a Pakistani citizen and a doctor. I applied a visa for plab and got refused in May 2016. Reasons were as follows,         You stated that you are attending a plab 2 exam on 5th july 2016. However, you are planning to stay for 30 days. You state the reason for this is to prepare under proper guidance from friends of similar field. I'm not satisfied that you accurately presented your intentions.   You state that you are a doctor with an income of 31020PKR per month and provided a employment letter to demonstrate this. The letter from your employer does not show that they are aware of your trip and duration. This undermines the credibility of your application to the extent that I'm not satisfied that your are genuinely seeking entry as a visitor.    You state that your father has given you PKR 500,000 for the trip. You state that this is from the sale of property. You have provided an affidavit which details the sale of property. However, this affidavit and the other documents do not demonstrate the source of funds provided by your father. Therefore, I'm not satisfied that you are a genuine visitor.       This was refused on 17th May, 2016.   I can tackle the first two points by decreasing my duration of trip to 6 days and getting an other employment letter from my employer with my job details , rank, salary, duration, leaves details and purpose of visit to UK.  I think that would satisfy ECO. Am I right?   Second question is with point three. My previous visa was sponsored by my father. He gave me 500,000PKR which is still in my account. I will provide with property transfer papers now.(initially I gave an affidavit of agreement to sell that has now completed) and will explain that 500,000 transaction. Now I m employed at 82,000PKR per month from May 18th, 2016. I had deposited three salaries in my account and all of them were cash deposits as I am paid in cash and I've got salary slips verifying the dates on which amount was deposited in my account. So, I want to apply visa this time as self sponsored.    Is it a reasonable way to apply or not? Please suggest something if its not proper. In this case what documents do I need to provide?  Thanking in anticipation.


How can I make frosting without powdered sugar

Milk Frosting.  1 and a 1/2 Cup Sugar, 1/2 Cup milk, 1 tsp Butter. Put in a saucepan stirring constantly until it begins to boil. Let boil with out stirring, until a few drops tested in cold water form a soft ball.  Remove from heat. Stir in 1 tsp of vanilla extract, then beat until it becomes a spreadable consistancy.  If frosting becomes too stiff to spread, put in a double boiler over boiling water (a bowl on a pot of boiling water will work) it will melt, then beat again.


Why are news headlines in present tense if they refer to past events?

In news papers we see headings like this  "India signs a pact with Russia" "Sachin hits another century" "Obama wins presidential election"  These are completed events, aren't they? Then, why are these sentences not mentioned in past tense?


I want to use Eagle or Kicad to design a board using Maxim chips MAXQ1103 and MAX32550    and    MAXQ1103 is 144 pins TQFP package (see page 1 of the above datasheet)  while  MAX32550 is 121 CSBGA package   (see page 2 of the above datasheet)  The question is i am not able to find these parts in the Eagle's library (my google search didn't help me much). Where can i find these parts or do i have to create myself? If so, is it really worth the effort (how hard is it for Eagle beginner)?  The reference schematics of both these chips are done in Cadence ORCAD, which is very expensive to purchase.  Thanks


Where can I read the full proof of the Banach-Mazur theorem?

The theorem is: every Banach separable space can be embedded in $C[0,1]$ linear and isometrically.  I actually found two books which contain the theorem and its proof:  -S. Banach, A Course of Functional Analysis [in Ukrainian], Kiev, 1948.  -L. A. Lyusternik and V. I. Sobolev, A Concise Course of Functional Analysis [in Russian], Nauka, Moscow, 1982.  But I can't read ukrainian nor russian.   Does anyone know a book in english with this proof? The functional analysis books I have read so far don't contain it.  Thank you.


Finding the number of divisors of an integer

I need to find the number of divisors of an integer(n) for a problem in codechef. I have written the following program to compute the number of divisors. But the program is exceeding the time limit. Is there any way to optimize my approach to this problem?Can you suggest a faster algorithm?  #include<iostream> #include<math.h> using namespace std; int main() {  int n,i=1,d=0;         while(i<=sqrt(n))          {           if(n%i==0)            {             d++;              if(i!=(n/i))               d++;            }           i++;           }    cout<<d;


I have to create n number of files. N is random but it will be in this range 1<=n<=7. When I run this program it gives NullPointException. file_num is number of files to be created. If I remove null from the first line it tells me to initialize the array.  PrintWriter[] writer=null; for(int j=0;j<file_num;j++) {     System.out.println("J is "+j);     writer[j] =new PrintWriter(new File("file"+(j+1)+".csv")); }


As 20.04.1 is released, I wanted to upgrade from 18.04.4 LTS to 20.04.1 on my Dell Precision 5530 workstation. However there seems to be no update yet: $ sudo do-release-upgrade Checking for a new Ubuntu release There is no development version of an LTS available. To upgrade to the latest non-LTS develoment release  set Prompt=normal in /etc/update-manager/release-upgrades.  I'm trying to understand what do-release-upgrade does and while checking /etc/update-manager/meta-release, I saw URI_LTS which is probably the address being checked. It's currently set to  and this address is resolved into a single IP address: 91.189.95.15 -- which seems to be in UK and belongs to Canonical. (so it's not a server near me which is out of date?) The file doesn't include focal as of now. So my question is.. Am I missing something or this file is not yet updated and that's the reason I'm not seeing the update? What's the procedure for this? Edit 1: In another post, I learned about DEBUG_UPDATE_MANAGER=1 do-release-upgrade and made sure that the file is not yet updated. But why? $ sudo DEBUG_UPDATE_MANAGER=1 do-release-upgrade                                                                                ⏎  Checking for a new Ubuntu release MetaRelease.__init__() useDevel=False useProposed=False /etc/update-manager/meta-release: https://changelogs.ubuntu.com/meta-release  /etc/update-manager/meta-release: https://changelogs.ubuntu.com/meta-release-lts  /etc/update-manager/meta-release: -development  /etc/update-manager/meta-release: -proposed  metarelease-uri: https://changelogs.ubuntu.com/meta-release-lts MetaRelease.download() reading file '/var/lib/update-manager/meta-release-lts' have self.metarelease_information MetaRelease.parse() current dist name: 'bionic' found distro name: 'dapper' found distro name: 'hardy' found distro name: 'lucid' found distro name: 'precise' found distro name: 'trusty' found distro name: 'xenial' found distro name: 'bionic' There is no development version of an LTS available. To upgrade to the latest non-LTS develoment release  set Prompt=normal in /etc/update-manager/release-upgrades.


Why is apt unable to find bitcoin-qt package?

When I run these commands:   sudo add-apt-repository ppa:bitcoin/bitcoin sudo apt-get update sudo apt-get install bitcoin-qt   I get this:   E: Unable to locate package bitcoin-qt.   I am writing it completely correctly; is the PPA not updated for 14.04? Why can't I install the program?   Even if I write apt-cache search bitcoin it doesn't show up.  I'm on Lubuntu 14.04 fresh installation.


What did the general public know about Darth Vader?

When Darth Vader first becomes Palpatine's apprentice, very few know of his existence and connection to the Emperor: the members of the Trade Federation (whom he dispatches) and Yoda, Kenobi, Organa, and their associates are all that seem to know at the end of Episode III.  Ultimately, the Resistance would know about him as they would be fighting him, and Organa could have been able to inform them about his identity and the fact that he is a Force user. The military of the Empire would know of his existence, but even high-ranking members likely wouldn't know his past or identity. However, they would know about the fact that he is a Force user due to his tendency to use his "sorcerer's ways" to choke people.  So, how much would the general public have known about Vader? Would they have known him as just another military leader, or would they have known he was Palpatine's right-hand man? Would they have known about his ability to use the Force, and therefore the possibility that he was a Sith?


I am trying to prove that the center of the dihedral group $Z(D_{10})$ is trivial. The only way I've been able to do it so far is to draw the group table, but I am trying to find a more elegant way of proving the result. If I fix an $a \in Z(D_{10})$ and assume $ab = ba$ for all $b \in B$, I am not able to prove that $a = e$ because there isn't a way to, for example, multiply by inverses. If I broke it into cases, I could possibly use the fact that reflections invert themselves.


How to check if you cards supports monitor mode

How can I check if my wireless card supports monitor mode, e.g. for use with aircrack-ng?  I know there is a command that shows something like wifi adapters attributes or something, but I can't remember.


How to use params with slashes with Sinatra?

Playing with , I'm stuck on a little problem : when I use params with slashes, it confuses the router engine. So is there a nice way to handle this kind of param without having to encode it ?  The code looks like   get 'add/:url' do    #.... end   And I intend to get something like /add/ working


How can the real, integer, and rational number sets be infinite, yet, they aren't all the same size?


Whether a `.wim` file is a disk's all copy? contains all the partitions of a disk?

We know the WIM is Windows Imaging Format,   such as we know the install.wim, is it mean all of a disk's copy?  if the disk have four partitions, will the install.wim contains all the four partitions and the contents of them?     I mean whether a .wim file is a disk's all copy? contains all the partitions of a disk?     the other question is how can install.wim file can install a Windows OS? is there any install programs in it?


What should I be looking for when applying for a credit card?

I am looking to open up a new credit card. Throughout college, I had a credit card from a store, but since I don't really shop at the store anymore, I am not really getting value out of the card (besides that it gives me a limit that I pay off in full every month to build credit).  What criteria should I consider when looking at various credit cards before choosing one to open? I am hoping to get a card that has some type of reward option like cash back or points to something, but I'm not really sure where to look. Is there a site that compiles the various types of credit cards that would allow me to look in one spot as a starting point?


Using same key for encryption and ECBC-MAC k2

ECBC-MAC: $E_{k_2}(CBC-MAC_{k_1}(m))$  If we use same key for encryption (CTR or CFB) and k2 (end tag encryption) in ECBC-MAC in encrypt-than-MAC sheme, is it secure?


GCD is MIN of Exponents of Prime Factors, LCM is MAX of Exponents of Prime Factors.

Let $a=p_1^{x_1}p_2^{x_2}\cdots\cdot p_q^{x_q}$ and $b=p_1^{y_1}p_2^{y_2}\cdots p_r^{x_r}$ ,   say — Since gcd(a,b) is the largest common divisor of a and b and is divisible by any other common divisor of the two,   GCD$(a,b)=p_1^{\min(x_1,y_1)}p_2^{\min (x_2,y_2)} \cdots p_q^{\min (x_q,y_q)}$  LCM$(a,b)= p_1^{\max(x_1,y_1)}p_2^{\max(x_2,y_2)}\cdots p_r^{\max (x_r,y_r)}$  I understand GCD(a,b) has to divide both $a,b$. Therefore the exponent of any prime factor $p_i$ in GCD has to be in both $a,b$  — therefore $p_i^{\min(x_i, y_i)}$. But I'm muddled and anxious. Why does $\min$ appear in GREATEST common divisor? Why does $\max$ appear in LOWEST common multiple?


How do I linkify urls in a string with php?

I have the following string:  "Look on http://www.google.com".   I need to convert it to:     "Look on "   The original string can have more than 1 URL string.  How do I do this in php?  Thanks


Accounting for a covariate that only exists in one of two groups

I am examining how sex affects the relationship between 2 variables. So, my model looks like: $$ y \sim sex * x $$ However, there is a known effect of menstrual cycle on $y$ (obviously in females only). Is there a way that I could include this as a covariate in the analysis, while still keeping both groups?   Let's say in females I have factor $m$ that is either 0 (follicular phase) or 1 (luteal phase), representing where they are in their cycle. Would my model be as simple as: $$ y \sim m + sex * x $$ where I would code all men as 0 for the covariate $m$?   Would it matter if the covariate was continuous?


Can I go to USA with a Canadian Passport even though I am from another country?

I am from a country that requires to get a valid visa to enter USA. I also have a Canadian passport. Am I still required to have visa to enter USA? I have no criminal record and I'm just going there to visit a friend.


I have been a happy Gridmove user for years, and I use the combination Win+G to change into the "send window to grid location" mode. Now I got a new work computer with Windows 10, and when I press Win+G, it pulls up a small window asking me "Is this a game?". I have to click on the grid entry window to return focus to it, which introduces a lot of friction in the wrong place.  I won't play games on this computer, and if I did, I don't see why I would want a "game bar" anyway. How do I tell Windows to forget its shortcut mapping of this combination so I can use it for Gridmove?  I am not just asking how to add a new mapping. The mapping I need is already added by GridMove. But the problem is that both get invoked and the function started by the Windows mapping takes precedence.


How to prove $X^{\omega}$ with a product toplogy is metrizable with $\rho(x,y) =\sum_{n=1}^{\infty}2^{-n}\frac{d(x_n,y_n)}{1+d(x_n,y_n)}$?

Given a metric $d(x,y)$ on metric space X, here is a theorem: Let $\rho(x,y) =\sum_{n=1}^{\infty}2^{-n}\frac{d(x_n,y_n)}{1+d(x_n,y_n)}$. This metric induces the product topology on $X^{\omega}$ I intended to use the lemma below to prove it: $\mathcal B$ and $\mathcal B'$are the basis of $(X,\mathcal T)$ and$(X,\mathcal T')$. Then: $\mathcal{T \subset \mathcal T'}\leftrightarrow \forall x\in X,\forall B \in \mathcal B$ with $x\in B,\exists B'\in\mathcal B' s.t. x\in B'\subset B.$ This means I have to find a ball $B(x,\varepsilon) $ and a $\Pi^{\infty}_{n=1}U_n$(only finite $U_n \ne X)$, which I can't find. How to prove this?


Change size and position of subscript (like double subscript)

I'm writing 'cause I would like to know if there's an automatic way (like something to put in the preamble) to make the subscript behave as double subscript: for example if I write   something_a    it should behave as   something_{_a}


How to remove version and thank you message from the admin footer

I've used following codes and no luck  1  //Hide admin footer from admin function change_footer_admin () {     return ' '; } add_filter('admin_footer_text', 'change_footer_admin', 9999);  function change_footer_version() {     return ' '; } add_filter( 'update_footer', 'change_footer_version', 9999);   2  function wpbeginner_remove_version() { return ''; } add_filter('the_generator', 'wpbeginner_remove_version');   3  function my_footer_shh() {     remove_filter( 'update_footer', 'core_update_footer' );  } add_action( 'admin_menu', 'my_footer_shh' );   Still I see those texts and version on my footer.   So what is the accurate way to remove these? I've added these code snippets into my child theme function.php


Configure more than two logical drives in an HP ProLiant Gen8 server?

I've a server HP Proliant dl380 gen 8. I've got 2 RAID 1 drives (each having 2 HDDs (300gb) in a mirror). I've now come to put 4 extra physical disks into the server and it won't let me create the logical disks for the 2 new drives. I want to create an other new logical drive for thoses 4 physical drives  When I try to add them from the RAID utility (F8 during boot) I get a message saying ORCA can't handle any more logical drives, and that I should use the array config utility to add them. I tried using the array config to add them but can't see how to do it. The disks are both picked up and labeled "un-allocated" but I can't find any way to allocate them.


I'm working on making a ledger app that shows transactions. The focus is always on a single ledger, so transactions have a positive or negative amount, which raises or lowers the ledger's balance. However, we have a hard reference to the "other party ledger," to which, or from which money moved. I'm having a hard time coming up with a word for the header that describes this column, since it could be the payee or the payer. E.g.,     Date Description ???? Amount Running Balance     2021-01-01 Initial account funding checking account 1234 +100 100   2021-01-02 Transfer to John Doe john.doe.1234 -50 50   2021-01-03 Transfer from Jane Doe jane.doe.5678 +25 75     I'd like to avoid using the word "account" since it has a different meaning elsewhere in the app, and "Payer/Payee" seems confusing since it doesn't indicate when one applies vs the other.


Every $k$ vertices in an $k$ - connected graph are contained in a cycle.

Let $G$ be a $k$-connected graph. Meaning, $G$ has no fewer than $k$ vertices, and for every set of $k-1$ or fewer vertices, if we remove them from $G$, the graph stays connected (Of course, $G$ itself is also connected).  I want to prove that for any $k>1$, if $G$ is $k$-connected, then every set of $k$ vertices is contained in a cycle.  I have tried some ways - mainly using induction by removing one of the vertices of the set from the graph, and/or using Menger's theorem to construct the cycle. But I always encounter problems with making sure that the cycle I'm building deosn't have repeating edges etc.  Help would be greatly appreciated :) Thanks!


Bad guy in a wheelchair with tubes and hoses in his body uses a computer to speak

Anyone remember a very, very old cartoon from Cartoon Network. I remember it was very grey, maybe even black and white, and weird. It had a kinda Matrix theme I think. The bad guy was in a wheel chair and could not move, used a computer to speak, and he had tubes and hoses in his body. It was a very weird cartoon.


What does it mean to say work is path-independent when pushing an object in different directions?

If I apply a straight upward(perpendicular to ground) force against gravity of $5\ \mathrm{N}$ and lift an object "A" 10 meters, then the work done is:  $$ W = F \times S = 5\ \mathrm{N} \times 10\ \mathrm{m} = 50\ \mathrm{J}$$ But if I apply the same amount of force diagonally to the ground, and again push the object "A" 10 meters in the direction of force, then again:  $$ W = F \times S = 5\ \mathrm{N} \times 10\ \mathrm{m} = 50\ \mathrm{J} $$   In cases 1 and 2, the work done is equal, but the height would be different because in case one, height is equal to displacement, but in case 2 it will be less than 10 meters obviously. Then potential energy (i.e mgh) of both objects would be different. Doesn't conflict with the equation work = energy?  Work is force times displacement ($W = F S \cos(\theta)$); where $\theta$ is angle between direction of force and displacement) and is path independent, according to most of the text books I've read so far.


I don't understand the following question:      And can you tell me where you’re from?   Why is "where you are from" used instead of "where are you from"?


bibliography problem - does not want to appear

given the following code, why biblography from .bib file does not want to appear, instead there is only the heading "references" and nothing else? .bib and .tex file below (i have copied everything i have in my document)  \documentclass[a4paper, 12pt]{article}  \setcounter{secnumdepth}{0} \usepackage[protrusion=true,expansion=true]{microtype}  \usepackage{graphicx}  \usepackage{wrapfig}  \usepackage[margin=0.98in]{geometry} \usepackage{mathpazo}  \usepackage[T1]{fontenc}  \usepackage{tocloft} \usepackage{indentfirst} \renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}}  \linespread{1.15}  \renewcommand\cftsecfont{\normalfont} \renewcommand\cftsecpagefont{\normalfont} \makeatletter  \renewcommand\@biblabel[1]{\textbf{#1.}}  \renewcommand{\@listI}{\itemsep=0pt}  \renewcommand{\contentsname}{Table of Contents} \renewcommand{\maketitle}{      \begin{flushright}          {\LARGE\@title}           \vspace{50pt}          {\large\@author}          \\\@date %          \vspace{40pt}      \end{flushright} }   \title{\textbf{Lysine Price-Fixing Conspiracy}\\ % Title     Causes and the aftermath}  \author{\textsc{aaa}}  \date{\today}    \begin{document}     %titlepage     \thispagestyle{empty}     \begin{center}         \begin{minipage}{0.75\linewidth}             \centering               \vspace{3cm}              {\uppercase{\Large lysine price fixing conspiracy  causes and the aftermath\par}}             \vspace{3cm}              {\Large Mateusz Kaczmarek\par}             \vspace{3cm}              {\Large \par}             \vspace{3cm}              {\Large \@date}         \end{minipage}     \end{center}     \clearpage     \newpage     \tableofcontents     \newpage     \section{Abstract}     \noindent \textit{Morbi tempor congue porta. Proin semper, leo vitae faucibus dictum, metus m}      \newpage       \vspace{30pt}       \section{Introduction}      This      \section{Section Name}      Cras gravida, est vel interdum euismod, tortor mi lobortis mi, quis         \section{Conclusion}      Fusce in nibh augue. Cum sociis natoque penatibus et magnis dis       \begin{enumerate}         \item First numbered list item         \item Second numbered list item     \end{enumerate}      Donec luctus tincidunt mauris, non ultrices ligula aliquam id. Sed        \newpage  \bibliographystyle{plain} \bibliography{document}  \end{document}   bib file here:  @book{85,     author = {autorek},     title = {55555},     date = {june}, }   I want to have something like this:  instead i have a blank page. How to fix it?


Say I have file:  cat dog bird   If I run cat file | grep dog -B 1 I get:  cat dog   If I run cat file | grep dog -v I get:  cat bird   I would expect cat file | grep dog -v -B 1 to return bird but instead it just acts like grep dog without any flags.  Why can't I use these flags together?  grep (GNU grep) 2.16, also tested on 2.25 with same results


Paternal uncle as sponsor for UK plab 2 visa?

I guess I have a complicated case..   Well, my dad is a private lawyer and he invests the money earned rather than setting money aside in a bank. So, he has a lot of shares in primary and secondary market, but he hasn't been able to maintain a good bank balance as he takes in hand cash for his services and invests in real estate / share market within little to no time. Therefore, I opted not to show his bank account and put in my paternal uncle as my sponsor.  My paternal uncle has a reputable job in the banking sector and earns close to 6 figures. He has regular transactions coming in and going out of his account and has done the same in last 2 years as well. He has a good travel history to US, Australia, and several places round the globe, where he hasn't overstayed, ever. Now, like his previous transactions, he'll have a huge amount of money in his account from real estate, and it just so happened that it kind of coincided nearing my visa application date.   My query is whether he could back up his transactions for last 3-6 months ( major ones) including the last one in his sponsorship letter and provide in share papers, land ownership documents, etc. OR should I get the bank statements and transactions approved by chartered accountants??  And second query:  Will shares serve the same/  similar purpose of "liquid assets" as cash in bank and whether i should show in my father as my sponsor instead?   Both of them have acres of land and houses in their names as well..   Please shine some light into this question of mine.


I have field final result on which on certain values, I only want some of the users to make the changes. The problem is that the user Id which are not mentioned in the formulae are able to get the error message which is correct but those users which are mentioned in the users Id are also not able to change the values which is incorrect. I only want the users mentioned in the formulae to edit the values.Basically I want that if the final result has values (ACCEPTED,REJECTED,ACCEPTED-Team Foundation",the users mentioned in the formuale can change to next stage,rest not.  The formula is :   AND(NOT(OR(ISPICKVAL(Final_Result__c,"ACCEPTED"),ISPICKVAL(Final_Result__c,"REJECTED"),ISPICKVAL(Final_Result__c,"Accepted-Team Foundation"))),OR(($User.Username <> "005j000000CNXpO"),($User.Username <> "005j000000DM7GK"),($User.Username <> "005j000000DY8DN"),($User.Username <> "005j000000C04vl"),($User.Username <> "005j000000CO3h7"),($User.Username <> "005j000000C0BeQ"),($User.Username <> "005j000000CO3gi"),($User.Username <> "005j000000CO3hC"),($User.Username <> "005j000000CO3iP"),($User.Username <> "005j000000D4hiP")))


This is the RAID0 structure:    there have 3 disks,  I have a question about this, when write data into disk, is it write disk A full, then write disk B?   or is write a little data into disk A, then write into disk B a little, then write to disk C a little?


I am a little bit confused which Ubuntu to install on my pc. I used 16.04 before and I was satisfied, but now I checked the Ubuntu page and there were 2 versions available there, Ubuntu 16.04.3 LTS and Ubuntu 17.10.1? Which one do you guys suggest?


Can multiclass druids prepare & cast Druid spells of any level that they have a spell slot for?

Question involving RAW.  Basic question: does a multiclass druid know, and are they able to prepare and cast, any spell on the Druid spell list for which they have a spell slot?  For instance, would a Wizard 19/Druid 1 be able to prepare and cast a 9th level druid spell?  It seems like one of the major limitations put on multiclass spellcasters in RAI is that their spells known list is determined by each class individually.  So, for instance, as pointed out in the multiclass rules, a Ranger 4/Wizard 3 would only know second level Wizard spells (gained when leveling to Wizard 3).    However, druids seem to buck this limitation.  It seems like any druid would know, be able to prepare, and be able to cast a spell of any level for which it has a spell slot, even via multiclassing.  So, for instance, a 1 Druid/19 Wizard could prepare and cast a 9th-level Druid Spell.   Multiclassing rules, PHB pg. 164     "You determine what spells you know and can prepare for each class individually, as if you were a single-classed member of that class."   Druid Rules, PHB pg. 66     "You prepare the list of druid spells that are available for you to cast, choosing from the druid spell list.  When you do so, choose a number of spells equal to your Wisdom modifier + your druid level (minimum of one spell).  The spells must be of a level for which you have spell slots.     So if I were a 1 Druid/19 Wizard, I would be able to prepare druid spells = 1+Wis modifier, and of any spell for which I have spell slots.  As a 20th level multiclass caster, I would have the full slate of spell slots - so I could prepare 4 level 9 druid spells if I so chose.    Clarifying the decision spell selecting process for Druid.  The rules for multiclass read that you determine spells you know and can prepare as if you were a single class character of that level.  This refers to spells known (does not apply to druids) and can prepare (the number, 1+Wisdom modifier for the 1 druid/19 Wizard in question.  Spell slots are explicitly generated by combining levels, and druids explicitly can prepare a spell of any level for which they have a spell slot.   Please point out the error in this interpretation of the RAW.  I assume rule as intended would be "Spell slots you have available from your Druid class level".... but that's definitely not RAW.  This is tangentially addressed in this , but only in the Wizard context (where there is more evidence for limited casting) and only by adding words to the rules not actually in the rules.  So this answer does not appropriately address this question.


Enable or check Chatter Feed Tracking programatically

Is there any way to enable Chatter Feed Tracking programatically for a object in salesforce.com? If not, it is possible to detect if an object is chatter enabled?


Solve the differential equation $(2x^2+3y^2-7)x\mathrm{d}x - (3x^2+2y^2-8)y\mathrm{d}y = 0$

Problem:  Solve the differential equation $$(2x^2+3y^2-7)x\mathrm{d}x - (3x^2+2y^2-8)y\mathrm{d}y = 0$$  My attempt: $$(2x^2+3y^2-7)x\mathrm{d}x - (3x^2+2y^2-8)y\mathrm{d}y = 0$$ Let $$u = x^2 +y^2 -3$$ $$2u = 2x^2+2y^2-6$$ so, $$2x^2+3y^2-6= 2u +(y^2-1)$$ and $$3x^2+2y^2-8 = 3u-(y^2-1)$$ so, $$\frac{x}{y} \frac{\mathrm{d}x}{\mathrm{d}y} = \frac{3u-(y^2-1)}{2u+(y^2-1)}$$ To convert the equation into variables $u$ and $y$, $$\frac{\mathrm{d}(x^2+y^2-3)}{\mathrm{d}y} = \frac{\mathrm{d}u}{\mathrm{d}y}= 2x \frac{\mathrm{d}x}{\mathrm{d}y}+2y$$  Solving for $\frac{\mathrm{d}x}{\mathrm{d}y}$ $$\frac{\mathrm{d}x}{\mathrm{d}y}=\frac{1}{2x}\biggr(\frac{\mathrm{d}u} {\mathrm{d}y}-2y\biggr)$$ Plugging in the problem $$\frac{x}{y}\cdot\frac{1}{2x}\biggr(\frac{\mathrm{d}u} {\mathrm{d}y}-2y\biggr)=  \frac{3u-(y^2-1)}{2u+(y^2-1)}$$ Upon solving, $$\frac{1}{2y}\frac{\mathrm{d}u} {\mathrm{d}y}=  \frac{5u}{2u+(y^2-1)}$$ Moreover, let $$t = y^2-1$$ $$\mathrm{d}t= 2y\mathrm{d}y$$ Plug in the above equation (ambiguous step?), $$\frac{\mathrm{d}u}{\mathrm{d}t} = \frac{5u}{2u+t}$$ Even now, I can't separate the variables.  All suggestions are welcome. Please attempt to provide alternate solutions. Thanks!


I need to create a custom Beamer presentation theme for my company. I need to do the following:   Include company logo in the header of each slide Include large company logo in the center of the titlepage background Modify the font colors   How do I do each of these tasks? I'd appreciate some details.


Is it possible to delete the "useless" apps pre-installed on my Mac?

There are some preinstalled apps that came with my laptop that I know I wil never ever use.   Apps like "Notes", "Stickies", "Game Center", etc.. that were preinstalled in my Macbook Pro are apps that I don't plan on ever using and it's taking up too much space in my Application Folder.  Are there any ways to remove them? Please note that I have already tried dragging it to the Trash bin, but it won't even go to the Trash bin. It' just stuck in my computer forever.


java.lang.OutOfMemoryError: PermGen space + java

I am getting following exception when I am going to send the mail with FTL teampate & attaching image with it. Please advice what needs to be done               java.lang.OutOfMemoryError: PermGen space              at sun.security.provider.certpath.UntrustedChecker.check(UntrustedChecker.java:58)              at sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(PKIXMasterCertPathValidator.java:117)              at sun.security.provider.certpath.PKIXCertPathValidator.doValidate(PKIXCertPathValidator.java:330)              at sun.security.provider.certpath.PKIXCertPathValidator.engineValidate(PKIXCertPathValidator.java:178)              at java.security.cert.CertPathValidator.validate(CertPathValidator.java:250)              at sun.security.validator.PKIXValidator.doValidate(PKIXValidator.java:275)              at sun.security.validator.PKIXValidator.doValidate(PKIXValidator.java:263)              at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:173)              at sun.security.validator.Validator.validate(Validator.java:218)              at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:126)              at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:209)              at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:249)              at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1185)              at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:136)              at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:593)              at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:529)              at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:958)              at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1203)              at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:654)              at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:100)              at com.sun.mail.util.TraceOutputStream.write(TraceOutputStream.java:101)              at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)              at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)              at com.sun.mail.smtp.SMTPTransport.sendCommand(SMTPTransport.java:1418)              at com.sun.mail.smtp.SMTPTransport.sendCommand(SMTPTransport.java:1408)              at com.sun.mail.smtp.SMTPTransport.ehlo(SMTPTransport.java:847)              at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:384)              at javax.mail.Service.connect(Service.java:297)              at javax.mail.Service.connect(Service.java:156)              at javax.mail.Service.connect(Service.java:105)              at javax.mail.Transport.send0(Transport.java:168)              at javax.mail.Transport.send(Transport.java:98)             java.lang.OutOfMemoryError: PermGen space             Exception in thread "http-bio-8080-exec-17" java.lang.OutOfMemoryError: PermGen space             Exception in thread "bitronix-scheduler" java.lang.OutOfMemoryError: PermGen space


Give mods a "flag for followup" flag ability

In several cases, it's become apparent that a diamond mod has rushed to take action on a particular question, answer, or comment thread, because they were afraid of "losing track" of it if they didn't take action before moving on, and then the problem wouldn't be dealt with at all. Therefore, I propose a time delay flag, "Flag for followup after n hours" (where n should be provided in options of 2, 6, 12, 24, 48, 72) so that a moderator can give the community some instruction on how to clean up / improve, then leave sufficient time before taking action.  Until they come due, these flags won't appear on the moderators' flag queue at all. This would give the moderators a way of eliminating time pressure on a particular cleanup action, give the subject matter experts in the community a chance to make edits better than a mod would, or provide input on a mod decision before it's finalized, without worrying about things spilling through the cracks. I'm not sure whether it would be useful for the flag to come back to the same mod only, or appear in the general queue, or have an option at flag creation time.  I'm of the opinion that the flag should go out to all moderators when it comes due, to increase the chance of a second opinion.  EDIT: Some examples of where follow-up would be needed:  Comments being used for on-topic discussion: Yes, those should be folded into the answer, but most diamond mods are not subject matter experts on every question they encounter.  Better to give several hours for the experts to deal with it.  Plagiarism: It's better to give the offender practice in proper attribution, than just to do it for them  On-topic advertisement answers: Sometimes "this commercial product will do what you're asking for" is a great answer.  But disclosure of the relationship between seller and answerer is always needed, whether that's "I sell the product", "My employer sells the product", "I've bought and used this product" or "I have no relationship with this product; I found it with a Google search".  Generally only the answerer can provide that information.  The mod needs to give an opportunity to add it, and some time later check back and delete the answer as spam if disclosure still isn't present.   In all these cases, final action needs to be delayed by hours relative to when the problem is identified and a comment left advising the users involved on what fixes are needed. Summary This question is asking for a 'flag this post in X time with Y message', which will allow moderators to follow up on a situation after there has been time for the situation to have been resolved 'amicably' by the participants. A 'follow up required' flag.  See also - numerous Flag Delay  This is arguably a duplicate of that one, but my feature request is not to "put off a flag until later". It's recognition that some flags require two responses, separated in time. First, a comment to the users involved. Second, a moderator action (if the users don't themselves have enough power to resolve it completely). Note  Skeptics - Auto-add to review queue after a delay  A different question, but with reasons that align with this question... it is a subset of the problem with a different proposed solution. Bad Answer Handling  This related question is an elaborate 'workflow' for tracking, and managing flags that require time to follow up on. This is also a subset of the problem expressed here - a delayed flag notification on a post. Note,  Chat discussions about this problem  The WaterCooler -  The Tavern -


Proving that a sequence converge to $\sqrt{2}$

I came upon this question while working out.  A sequence $u_n$ is defined as :  $u_1 = 1$ and $u_{n+1} = \frac12(u_{n} + 2/u_{n})$.  We have to show that this converge to square root of 2   I started like this to get a telescopic sequence   $ u_{n+1} = [(u_{n} - \sqrt{2})^2 + 2\sqrt{2}u_{n}]/2u_{n}$  from that I have got,  $ u_{n+1} = \sqrt{2} + [(u_n - \sqrt{2})^2]/2u_{n} $  I can't figure out how to go forward , I think my approach is wrong , can anyone please explain a method to get the answer?  Thank you so much !


Should edits that run a foreign-language post through Google Translate be approved?

When reviewing suggested edits, I ran across . It took a post originally in French and Google Translated it to English. I approved it, as it gave the post a chance to survive, and it properly attributed that the post had been translated. It appears that two others did the same.  But should have I? It probably falls under a 'radical change', right?


The best way of learning linux directories and files

As a Linux user, I'd ask how to learn the Linux's directories and files, since everything in Linux is a file descriptor.  I've worked with some distribution of Linux so I think I did understand commands enough.I don't know this is true or not,but I believe the kinds of commands which configure the system work with files,so understanding Linux's files may be a good point to make a firm understanding of it.  By the way,Would you mind guiding me ?


Could files downloaded from Youtube and Tumblr harm Mac?

I'm putting old files to fresh Mac and on one external drive, there is bunch of video files I downloaded from Youtube and Tumblr at one point few months ago.  Would it be safe to put them to fresh Mac or could those files be harmful? There didn't seem to be anything bad with them before, but as this is fresh Mac I'm more careful now.  Should I keep them away from fresh Mac just in case?


What’s the rule for using “who” and “whom” correctly?

I can never figure out whether I should use who and whom. Most people use who for both colloquially, but some people say this is not correct.  What’s the rule for using who and whom correctly?


Is `sudo pip install` still a broken practice?

I'm new to Ubuntu, so please bear with me. I installed pip using this command: sudo apt-get -y install python-pip. Then I installed  using the command on their website, which was: sudo pip install -U nltk. But then I stumbled on  that says that everything I did was a "broken practice". The line that struck me the most was that using sudo pip is inherently wrong and that giving pip too much force could damage operating system files. Can anyone validate this claim?   Note - I only used sudo because when I tried the command apt-get -y install python-pip it gave me 2 errors:  E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?


$6 \Bbb Z + 5$ contains infinitely many primes

I have been assigned this homework problem and I'm having trouble figuring out how to prove these statements.  If $n_1,\dotsc,n_k\in${$6z+1\mid z\in\mathbb{Z}$}, show that $n_1n_2\cdot\cdot\cdot n_k\in${$6z+1\mid z\in\mathbb{Z}$}.  Next, show that {$6z+5\mid z\in\mathbb{Z}$} contains infinitely many primes. (Without using Dirichlet's Theorem).  Thank you in advance!


Windows 10 update: 0xC1900101 - 0x3000D, FIRST_BOOT and MIGRATE_DATA

I am currently encountering some problems related to the Windows 10 15025 Insider update. My testing machine has been stuck on 14393.187 for some months because every time Windows Update tries to install the latest build, the computer reboots, does its work and at exactly 71% the screen freezes. I tried to let it work overnight, but even after 9 hours it's still frozen. After rebooting the computers, it restores the previous version and shows me this screen:    I have disabled my antivirus, installed the latest drivers for my GPU (GTX 760), and unplugged all USB devices (except keyboard and mouse). I have also tried the instructions in , but it didn't work.   The above message only shows when installing using the ISO and using the Upgrade button (installing it with Windows Update doesn't give any information about what failed). There is nothing in the Event Log either.  Does anyone have any hints on how I could install that update, preferably without reinstalling Windows?


Why are accepted answers not included in the tag badge calculation?

For the 400 votes tag badge, does it take into consideration answers marked as the accepted answer?  The description indicates it does not.  I would think an accepted answer would be worth more, or at least the same amount, towards getting a tag badge than just a simple upvote?  Lots of users mark answers as accepted and do not bother giving an upvote since the 15 points is like and upvote and a tip.  So it's possible for a user to have 400 accepted answers with no upvotes and not get a badge where a user with 400 answers (which could be right or wrong) with a single upvote and no accepted answers ever would get the badge.  Just seems a little odd or does accounting for accepted answers make the badge calculation too complicated / slow?  Edit: Questions you ask and submit an answer to shouldn't be counted towards the total for accepted answers.  Edit: It just seems to me that the most important thing in the system is an accepted answer yet there are no badges for achieving more than one accepted answer.  If up votes were more important, and therefore far more worthy of a badge, then why do the top voted answers not appear above the accepted answer?  When it come to badges, accepted answers are second class citizens as compared to a possibly random upvote.   I have seen many upvotes on completely wrong answers but rarely do I see an accepted answer that was completely wrong.


How do I fix the error ' "VC" machine not recognized' for perl Configure

I am trying to install OpenSSL, but I am running into an error with perl Configure. I type:    perl Configure VC-WIN64A     and it does some work, but in the end I get an error saying:  checking build system type... Invalid configuration `VC-WIN64A':  machine `VC' not recognized Configure: error: /bin/sh config/config.sub VC-WIN64A failed   I tried tried make check and I received these errors, but I don't understand what they mean:  collect2.exe: error: ld returned 1 exit status make[2]: *** [Makefile:652: loadavg.exe] Error 1 make[2]: Leaving directory 'C:/Program Files/Make/make-4.2' make[1]: *** [Makefile:1088: check-am] Error 2 make[1]: Leaving directory 'C:/Program Files/Make/make-4.2' make: *** [Makefile:798: check-recursive] Error 1   I couldn't find those files in my file directory does that mean I installed Make incorrectly? Thank you for helping.  EDIT: This is not a duplicate question like the one linked... That question has nothing to do with my problem so I don't know why it was linked. I still can't get perl to recognize my machine.