Understanding the different kinds of mass in gravity

On this site, the Phys.SE question  has been asked. See also  Phys.SE question. The 'answer' provided on this forum has been that the curvature of spacetime explains both. The answer is still cryptic for me as I am more a concrete thinker.  Newton said $F=ma$. I can use this formula to measure inertial mass. Experimentally I can measure the motion of an object while applying a constant force to it. Newton also said $F=\frac{GMm}{r^2}$. In this case, what simple experiment will allow the measurement of gravitational mass?


Is corruption/crimson spreading something I should worry about?

I recently found out that crimson/corruption spreads. I have played in my world for a few weeks. How much has it spread since I started my world do you think? Is it something I should worry about? How fast does it spread? Can I stop the spread? If so at what point of the game should I stop the spread? I would appreciate it if you could answer my questions and I will most definitely upvote your answer if its good!


I have a virtual joystick to rotate the player and this piece of code works nice and smooth for the rotation of the players view.  public void rotatePlayer(Vector3 newPosition){   transform.Rotate(new Vector3(-newPosition.y,newPosition.x,0)*Time.deltaTime); }   I pass a Vector3 with the position of the joystick in relation of his parrent's(the joystick border) anchor.That gives me the rotation direction.Which means that if I set the rotation of the camera direclty it will just flip to that point and not move progresively to that point.  Even though z is set to 0 in the vector3, it changes the z axis angle of the camera. How can I clamp it to 0 without using many resources?   I tried other methods but they just switch the camera's rotation directly when the joystick is touched like I already said.Flip and stop.  I guess I could just set the z axis rotation to 0 every time but that just seems like double work.


What are the limits on the amount of pathogens that a body can be immune to at any given time?

Before the seasonal flu vaccine was recommended for all healthy adults, people in developed countries might get vaccinated against on the order of 10 different pathogens and develop immunity for some more via natural exposure.  Now the same person is expected to take a seasonal flu vaccine for a new strain every year - won't this put them in an uncharted territory as far as effects on the immune systems are concerned within a couple of decades?


Symmetry of the Petersen graph and cycle index

A symmetry  of a graph X is a permutation of the vertices that also happens to be a permutation of the induced edges. In particular, the distances between vertices are preserved by a symmetry. Show that the set of symmetries of X is a permutation group of V(X).  Compute the cycle index of the group for the Petersen graph.  Please help. How do you show that something is a permutation group? I have never calculated the cycle index for a graph before and we don't have any examples like this in our notes. How do I do it for a graph?


Will we get a "2020: a year in moderation" post this year?

Since 2016, Shog9 has been posting every year a "year in moderation" post to every meta site with some interesting stats. However, 12 days after the last post, . Will we get another post this year, probably by another employee?


I want to know about installation about ubuntu

I'm new to Ubuntu and i want to know basic command line and all installation about ubuntu OS. I don't know nothing in ubuntu 'coz i'm beginner student so i want to know about ubuntu and i need to work with that OS.


How to hide TabPage from TabControl in WinForms 2.0?


This is my first question so feel free to correct it in any way.  I am struggling with the following problem: using an environment in a \newcommand.  I want to define the command \describe this way: (It takes a bash command name (#1), an example using it (#2) and a description (#3)).  \newcommand{\describe}[3]{ \subsection*{#1} \begin{lstlisting} #2 \end{lstlisting} {\colorbox{gray}{#1}\ #3} }   The only thing I am getting is a   "no legal \end found"   error.  So my question is: Is there any way to use an environment inside a new command?


Let $A_R$ be the finitely generated abelian group, determined by the relation-matrix       $$R := \begin{bmatrix} -6 &  111  & -36 & 6\\ 5  &  -672 & 210 & 74\\ 0 & -255 & 81 & 24\\ -7  &   255       &-81 & -10 \end{bmatrix}$$       Reduce this matrix using Smith Normal Form and determine the isomorphism type of $A_R$.    I know that the Smith Normal Form of this matrix is:  $$\begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & 3 & 0 & 0 \\ 0 & 0 & 21 & 0 \\ 0 & 0 & 0 & 0  \end{bmatrix} $$  However, this was computed using Maple and I need to understand the method of computing this manually which I am struggling to grasp. Can anyone help?


What is the ideal data type to use when storing latitude / longitude in a MySQL database?

Bearing in mind that I'll be performing calculations on lat / long pairs, what datatype is best suited for use with a MySQL database?


Is an idle temperature of 66°C for the A10-6800K CPU normal?

I have an A10-6800K CPU and Piriform Speccy says that my CPU temp is 66 celcius in idle, the same goes for HWMonitor.  Is this normal/ideal? I have a  with a .


Connect a microSD reader to a LilyPad USB, where are the digital ports?

I am attempting to connect a  breakout board to a . The microSD board has previously been connected to an .  In the Duemilanove setup, the following connections were made successfully:  (SD) -> Duemilanove   (CS) -> Pin 10 (SS) (DI) -> Pin 11 (MOSI) (DO) -> Pin 12 (MISO) (CLK) -> Pin 13 (SCK)   Plus 5 V and ground.  I have attempted to replicate this with the LilyPad USB, following .  (SD) -> LilyPad USB   (CS) -> Pin D17 (SS) (DI) -> Pin D16 (MOSI) (DO) -> Pin D14 (MISO) (CLK) -> Pin D15 (SCK)   However, the problem is, I cannot locate this digital pins physically on the LilyPad USB. I believe they are the six pins in a rectangle formation next to analogue port A2, but I do not know which are which. Following the forum post , I have tried that combination, but I have not had any results.  What is the order of the six pins? Also, where is the SS pin (that doesn't seem to be included there)?


I have a scene containing parts of a modular tileset to be used in the game. I want to export every object into separate files, and in every file object is moved to default (0, 0, 0) position.  How can I do this?


\usepackage[backend=biber]{biblatex} does not work, backend=bibtex works

When using the backend=biber option, I get a warning:     package Biblatex warning: Please (re)run  Biber on the file:   (biblatex) myproject   Result: References are not recognized.   Yes. A similar question does exist - but no solution is provided: .  - as a MWE.   backend=bibtex works like charm.  Question: What are the detailed steps to get backend=biber working? (When people say run that command or another there is a need of context.)  So my editor is .  And I have no clue how to run Biber on my file under TeXnicCenter... or any other environment.  Consider me as a simple mortal that really would like to get this solved, save forever and never come back again.   In TexnicCenter I don't have to do anything fancy with the MWE using backend=bibtex except creating a .bib file. Then I press Build current file - and get valid pdf with my references, which is a way it should be - simple and concise. If there is a tendency to recommand biber for utf-8 support, then we should get fast deployment so this will be adopted faster.  The problem inherently is the same as this one: .


Linux given a timestamp, how to get the timestamp X days ago?

How to use the date command, and given a timestamp, to get the timestamp X days ago. For example UTC time stamp is 1525192000, I want to get the UTC timestamp 30 days before that.


I installed QGIS through OSGeo4W 64 bit version in Windows 8.   QGIS installed correctly, but I cannot add the Orfeo Toolbox.   Any suggestions?


I let Cicero live and left the Dawnstar Sanctuary, I then came back and he was gone! So where is he now? Because I want to make him my follower/companion.


Removing stop words using application form c#

I have wrote this code to add text from one richbox to another without the stop words but it is copying all the text from richtext1         string[] Stopwords = { "a", "about", "actually", "after", "also", "am", "an", "and",  "any", "are", "as", "at", "be", "because", "but", "by", "could", "do", "each", "either",  "en", "for", "from", "has", "have", "how","i", "if", "in", "is", "it", "its", "just",  "of", "or", "so", "some", "such", "that", "the", "their", "these", "thing", "this", "to",  "too", "very", "was", "we", "well", "what", "when", "where", "who", "will", "with",  "you", "your"             };   This the code in the button that should do it  private void button2_Click(object sender, EventArgs e)         {             string st = richTextBox1.Text;             string[] split = st.Split(' ');              richTextBox2.Text = "";             int c = 0;             foreach (string s in split)             {                 if (!Stopwords.Contains(s))                 {                     richTextBox2.Text += s + " ";                 }                 else c++;              }         }   when I write if (Stopwords.Contains(s)) it prints all stop words in richtext1


Making the bibliography appear in the table of contents

I need to make my (BibTeX) references section appear in the table of contents of my LaTeX document (documentclass: article), with section numbering too.  My approach until now has been making a new section and including the bibliography (references.bib) at that point:  \section{References} \bibliography{references}   However, the final document shows both the section title that I have written and the section title that BibTeX writes, which is quite redundant and I definitely dislike.  How can I either remove BibTeX's section title, or make the BibTeX bibliography appear in the table of contents without making a new section?  If I were to make the BibTeX bibliography appear in the table of contents without making a new section, how could I assure that the section title that BibTeX writes looks exactly like sections typeset with \section?


caption of the subcaption starts from 'c'

*Edited  I am using the subcaption as mentioned in this link    I am expecting the caption to start from 'a', but the caption starts from 'c'. Any help would be appreciable.  \makeatletter \newcounter{parentsubcaption} \newenvironment{subsubcaption}  {\refstepcounter{sub\@captype}%   \protected@edef\theparentsubcaption{\@nameuse{thesub\@captype}}%   \setcounter{parentsubcaption}{\value{sub\@captype}}%   \setcounter{sub\@captype}{0}%   \@namedef{thesub\@captype}{\theparentsubcaption--\arabic{sub\@captype}}%  % \ignorespaces }{%   \setcounter{sub\@captype}{\value{parentsubcaption}}%   %\ignorespacesafterend } \makeatother  \begin{figure*}[!htb]  ------------------------------------ \begin{subsubcaption} \begin{subfigure}[t]{0.5\textwidth} \centering \includegraphics[height=2.3in]{fig1.eps} \caption{} %\label{4.1 a} \end{subfigure}%    ~ \begin{subfigure}[t]{0.5\textwidth} \centering \includegraphics[height=2.15in]{fig2.eps} %  \caption{} %\label{4.1 b} \end{subfigure} \end{subsubcaption}  %-------------------------------- \begin{subsubcaption} \begin{subfigure}[t]{0.5\textwidth} \centering \includegraphics[height=2.3in]{fig3.eps} \caption{} %\label{4.1 a} \end{subfigure}   ~ \begin{subfigure}[t]{0.5\textwidth} \centering \includegraphics[height=2.15in]{fig4.eps} %  \caption{} %\label{4.1 b} \end{subfigure} \end{subsubcaption} \caption{}  \end{figure*}  \begin{figure*}[!t] %------------------------------------------------------- \begin{subsubcaption} \begin{subfigure}[t]{0.5\textwidth} \centering \includegraphics[height=2.3in]{fig5.eps} \caption{Est. $F_c$ of Original Speech Signal} %\label{4.1 a} \end{subfigure}% ~ \begin{subfigure}[t]{0.5\textwidth} \centering \includegraphics[height=2.15in]{fig6.eps} %  \caption{}  \end{subfigure} \end{subsubcaption}  \nopagebreak %------------------  \begin{subsubcaption} \begin{subfigure}[t]{0.5\textwidth} \centering \includegraphics[height=2.3in]{fig7.eps} \caption{} %\label{4.1 a} \end{subfigure}% ~ \begin{subfigure}[t]{0.5\textwidth} \centering \includegraphics[height=2.15in]{fig8.eps} %  \caption{} %\label{4.1 b} \end{subfigure} \end{subsubcaption} \caption{}  \end{figure*}   This code is working fine. i.e. Caption starting from 'a'. But if i copy the same code and make an another set of figure. I was expecting it to start from 'a', but it continues from 'c'


Prove that the class number of $\mathbb{Z}[\zeta_3]$ is $1$

How does one prove that the class number of $\mathbb{Z}[\zeta_3]$ is $1$?


Why do I get different outputs in case of sh and bash?

I have the following simple script:  #!/bin/bash echo "Bash version ${BASH_VERSION}..." for i in {1..99..2} do         echo $i done   Output in case I run with sh file.sh:  Bash version ... {1..99..2}   Output in case I run with bash file.sh:  Bash version 4.2.25(1)-release... 1 3 5 . . . 99   I have two queries:   If I have written a shabang line specifying shell, shouldn't it run with bash whether I use sh file.sh or bash file.sh? I understand that $BASH_VERSION is not recognized by sh but what is the problem with for loop? Why isn't printing the numbers?


Write to NTFS-formated drives on Yosemite

I sometimes need to mount USB drives that are NTFS formatted and write to them. On Mavericks I achieved this using the Homebrew formula ntfs-3g which depends on osxfuse.  After upgrading to Yosemite, osxfuse is broken.  Homebrew message:  ==> Upgrading osxfuse osxfuse: OS X Mavericks or older is required for this package. OS X Yosemite introduced a strict unsigned kext ban which breaks this package. You should remove this package from your system and attempt to find upstream binaries to use instead. Error: An unsatisfied requirement failed this build.   I take this to mean that the kernel extension used by osxfuse is completely disallowed in Yosemite because it is not digitally signed by Apple, whereas in Mavericks it was allowed.  So, is there any way now to mount and write to an NTFS-formatted USB drive in Yosemite using either open-source software or free, unencumbered (not spyware/malware or bundled with useless toolbars etc.) software from the App Store?


Installing GDAL Python bindings on Windows

This has been addressed before (), but I wanted to bring the question up again,   to see if anybody has come up with a better method in the last 5 years, and to specify that I am looking for a solution that does not require utilizing a specific shell, which the OSGEO4W installation seems to require.   Can anybody recommend a certain installation or procedure for installing GDAL Python bindings on Windows 7 or above?


I need to find set of words that contain vowels occurring in aeiou order.No need to occur consecutively. Also allowing each vowel to occur multiple times before the occurence of the next, but never occurring again after the next vowel has occurred  basic input list -   so far I used these regex  grep 'a[^eiou]*e[^aiou]*i[^aeou]*o[^aeiu]*u[^aeio]*' words2.txt - this is the closest one that I got  grep 'a[^e^i^o^u]*e[^a^i^o^u]*i[^a^e^o^u]*o[^a^e^i^u]*u[^a^e^i^o]*' words2.txt  grep 'a.*e[^a]*i[^ae]*o[^aei]*u[^aeio]*' words2.txt    And some outputs from first one -   appenditious,appetitious,arenicolous,arreptitious,arsenious  ....  ultraexpeditious,ultrareligious,unfacetious   most of my outputs will satisfied the conditions but some of them are not. e.g. - ultraexpeditious because when u occurs after that there cannot be have any vowel in the word.


How do you know when a cultured item is no longer safe to consume?

How do you know when yougurt (for example) is no longer safe to consume? Do I know it from the taste, how it smells, or something else?


What are the differences between 32-bit and 64-bit, and which should I choose?

What is the difference between 32-bit and 64-bit Ubuntu? I've heard the 64-bit platform performs better and can detect more than 4GB of RAM. Also, while some apps haven't ported to 64-bit yet, ia32-libs lets a 64-bit machine run them.  If so, why not promote 64-bit over 32-bit?


Why default array has been mutated in this case?

let points = [{x:1,y:2},{x:2,y:2}]; let centroidsPoints = [1,2].map(() => []); console.log(centroidsPoints); // => [[],[]] let centroidsPointsCopy = [...centroidsPoints]; //copy array points.forEach(point => {   centroidsPointsCopy[0].push(point); }); console.log(centroidsPointsCopy); // => [[{x:1,y:2},{x:2,y:2}],[]] console.log(centroidsPoints); // => [[{x:1,y:2},{x:2,y:2}],[]] but expected [[],[]]     Why don't i get expected behaviour since i copied default array with  [...centroidPoints]   Sorry if duplicate, i only found answer for "array1=array2" copy;


I have to recreate the following table in LaTeX, but I cannot get it to work perfectly.    But for now this is what I have been able to get:    This is the code I have so far:  \documentclass{article}  \usepackage{array, multirow, booktabs} \newlength{\Oldarrayrulewidth} \newcommand\VRule[1][\arrayrulewidth]{\vrule width #1} \newcommand{\Cline}[2]{%   \noalign{\global\setlength{\Oldarrayrulewidth}{\arrayrulewidth}}%   \noalign{\global\setlength{\arrayrulewidth}{#1}}\cline{#2}%   \noalign{\global\setlength{\arrayrulewidth}{\Oldarrayrulewidth}}}  \begin{document}  \begin{tabular}{!{\VRule[4pt]}p{200pt}!{\VRule[2pt]}p{100pt}!{\VRule[4pt]}} \specialrule{4pt}{0pt}{0pt} \multicolumn{2}{!{\VRule[4pt]}c!{\VRule[4pt]}}{\Large{\textbf{\MakeUppercase{Hoja de tareas}}}} \\ \specialrule{2pt}{0pt}{0pt} \multicolumn{2}{!{\VRule[4pt]}l!{\VRule[4pt]}}{\textbf{Nombre:} Iban Eguia Moraza} \\ \multicolumn{2}{!{\VRule[4pt]}l!{\VRule[4pt]}}{\textbf{Fecha:} 29 de marzo de 2015} \\ \specialrule{2pt}{0pt}{0pt} \multirow{3}{*}{     \parbox[t]{200pt}{\textbf{Identificación de Tarea :  T1}}      \parbox[t]{200pt}{\textbf{Descripción:}}      \parbox[t]{200pt}{Se debe hacer un análisis detallado de todos los requisitos     funcionales de la plataforma, para poder hacer un posterior seguimiento y comprobar su     cumplimiento.} } &  \textbf{Duración :  1 día} \\ \Cline{2pt}{2-2}      & \textbf{Esfuerzo: 2 horas} \\ \Cline{2pt}{2-2}      & \multirow{2}{*}{\textbf{Tareas previas:}} \\ \Cline{2pt}{1-1} \multirow{2}{*}{     \parbox[t]{200pt}{\textbf{Criterios de terminación:}}      \parbox[t]{200pt}{Se creará un informe de requisitos funcionales de la aplicación. El     comité de dirección será el encargado de validar y aceptar la tarea.} } & \\ \Cline{2pt}{2-2}     & \multirow{2}{*}{\textbf{Recursos:}} \\ \Cline{2pt}{1-1} \parbox[t]{200pt}{\textbf{Competencias, conocimientos y notas:}}  \parbox[t]{200pt}{Se debe conocer la materia en la que se trabaja para conocer los requerimientos que se necesitan para su completación.} & \\ \specialrule{4pt}{0pt}{0pt} \end{tabular} \end{document}   This gives me some warnings, and it does not even render the "Criterios de terminación" and "Identificación de Tarea: T2" titles. What I'd like to polish would be the part of the "Duración: 1 día", that should be much smaller, and the titles. Moreover, it would be great to get rid of the warnings:  (/usr/share/texlive/texmf-dist/tex/latex/base/t1cmss.fd) Runaway argument? { \parbox [t]{200pt}{\textbf {Identificación de Tarea : T1}}  ! Paragraph ended before \@xmultirow was complete. <to be read again>                     \par  l.16   ?  ! Missing { inserted. <inserted text>                  { l.22 ^^I^^I} &                 \textbf{Duración :  1 día} \\[1ex] \Cline{2pt}{2-2} ?  Runaway argument? { \parbox [t]{200pt}{\textbf {Criterios de terminación:}}  ! Paragraph ended before \@xmultirow was complete. <to be read again>                     \par  l.29   ?  ! Missing { inserted. <inserted text>                  { l.32 ^^I^^I} &                \\ \Cline{2pt}{2-2} ?    You can check all the code in GitHub:


Replace a value in a random position with specific with restriction

I need to replace randomly 10 % of a numbers in a column with other specific one.  e.g. randomly replace 10%  of any number with "1" except in first position   in file1.txt  1 1234567890 2 0987654321   out file2.txt  1 1234561890 2 0987651321


P/S:This is not duplicate, I already have an answer myself which map to the answer in the duplicated solution, what I need is the shortest expression that is possible.   l=[set()]*passwordLen l[0].add(1) print l   will give result  [set([1]), set([1]), set([1]), set([1]), set([1]), set([1])]   but I need  [set([1]), set(), set(), set(), set(), set()]   what is the shortest expression to create list of sets that could achieve this?  what I could think of is  l=[set() for _ in xrange(passwordLen)] l[0].add(1) print l


I am going to define a structure and pass it into a function:  In C:  struct stru { int a; int b; };  s = new stru() s->a = 10;  func_a(s);   How this can be done in Python?


Is there a covariant form of the Dirac delta function? And how to build a covariant form of an identity that contains Dirac delta? To be more precise, what I am looking for is Some distribution that becomes the delta function in Minkowski spacetime, but which we can use in general spacetimes consistently with the principle of general covariance. Is there such a thing?


Showing a free abelian group is generated by its basis

I'm following Massey's "Basic Course in Algebraic Topology" and I'm stuck on his section explaining free abelian groups. He seems to be using a definition of free abelian groups that differs from most others' definitions, and then he leaves it to the reader to show that they're the same, but I can't figure out the proof. More specifically:  He defines a free abelian group on an arbitrary set $S$ as an abelian group $F$ together with a function $\phi:S\to F$ such that for any abelian group $A$ and any function $\psi:S\to A$, there exists a unique homomorphism $f:F\to A$ such that $f\circ\phi=\psi$. He shows that free abelian groups over a given set are unique up to isomorphism, and then leaves the following as an exercise:     "Prove directly from the definition that $\phi(S)$ generates $F$.   [Hint: Assume not; consider the subgroup $F'$ generated by   $\phi(S)$.]"   I can't figure out this exercise, but it seems really important to understanding this particular definition of free abelian groups. My guess is to let $\langle\phi(S)\rangle$ be $A$ and let $\psi$ be $\phi$ in the above definition, but I can't produce a contradiction.  Thank you for your help.  Edit: I just realized this question is very related to , but I'm not convinced by the responses. The responses show that $\langle\phi(S)\rangle$ is isomorphic to $F$, but that doesn't seem (to me...) to show that they are equal, since $2\mathbb{Z}$ is isomorphic to $\mathbb{Z}$ without being equal.


Make typing in the file explorer just scroll down to that file alphabetically rather than search

In previous versions of Ubuntu typing in the file explorer would scroll down your directory alphabetically based on your typing. Now it does a find/search which is much slower and... a horrible experience for my frankly.  Is there a way to change this behaviour back to how it used to be?  Thanks


What is the word for a non-creative task?

Example:      "More Effort" is good for [non-creative] tasks, like building a wall or cleaning your room. But when it comes to creative tasks - like writing a novel or music - it is good to get your mind in a placid state where the work feels effortless.   i.e, it's a task you don't really have to think much about while doing. It's not cognitive, per se.


How to prevent screen from terminating once process ends

I'm launching a process in a named screen like:  screen -dmS myscreen bash -c "export VAR=123; cd /usr/local/myproject; ./myscript.py"   However, after a few minutes, my script crashes and when it exits the screen terminates so I can't see the debugging output. My script runs long enough so I can manually attach to the screen, but the screen still auto-terminates kicking me out of it.  How do I stop the screen from exiting when the process it's running stops?


Constants and compiler optimization in C++

I've read all the advice on const-correctness in C++ and that it is important (in part) because it helps the compiler to optimize your code. What I've never seen is a good explanation on how the compiler uses this information to optimize the code, not even the good books go on explaining what happens behind the curtains.    For example, how does the compiler optimize a method that is declared const vs one that isn't but should be. What happens when you introduce mutable variables? Do they affect these optimizations of const methods?


$e^{-x}f(x)=2+ \int_0^x\sqrt{t^4+1}dt$ function for finding the inverse

Let f be the real-valued function defined on the interval $(-1,1)$ such that $e^{-x}f(x)=2+ \int_0^x\sqrt{t^4+1}dt$ for all $x\in(-1,1)$ and let $f^{-1}$ be the inverse function of $f$. Then find the value of $(f^{-1})'(2)$.  This is my step  1-$f(x)=y$  2-$f^{-1}(y)=x$   3-$f^{-1}(x)=y$  4-$f^{-1}(x)'=\frac{dy}{dx}$  5-  $y=f(x)=2e^{x}+e^{x} \int_0^x\sqrt{t^4+1}dt$  6-  $y'=2e^{x}+e^{x} \int_0^x\sqrt(t^4+1)dt+e^x\sqrt{x^4+1}$  I am lost after this step, please help me as I have jolted down the step.


radius = float(input()) print('Enter the radius:', radius) pi = 3.1415 volume = (4 / 3) * pi * radius * radius * radius print('The volume is ', volume)   From this the expected value is   Enter the radius: 10.0 The volume is 4188.666666666667  However, I get the volume as 4188.666666666666  How do I fix this?


How can I discuss my suspension with the site's moderators?

I recently got a hefty 30 day suspension handed to me over at  and, wanting to discuss the particulars, I replied to the email the moderator team sent me, requesting a chance to discuss the suspension with them. That was 6 days ago. I haven't yet had a reply.  I would ping one of the mods in chat, like I would normally, but, as a suspended user, I can't use chat. I also can't flag, or alert them in any way over on that site, and it wouldn't be acceptable to alert them on a different site. And to top it all off, I can't send another mod message to them until they reply to me previous one.  Therefore, I am looking for some way to alert the site mods, and would be grateful if anyone could either help me, or even point those mods in the direction of the post.  I am aware that this may get closed as "too specific" but for those close vultures votes, think of this: change the site, and this could apply to any of the many SE sites and I have no other way of making this issue known.


Combinatorially showing $\lim_{n\to \infty}{\frac{2n\choose n}{4^n}}=0$

I am trying to show that $\lim_{n\to \infty}{\frac{2n\choose n}{4^n}}=0$. I found that using stirling's approximation, I can get: $$ \lim_{n\to \infty}{\frac{2n\choose n}{4^n}}= \lim_{n\to \infty}{\frac{(2n)!}{n!^2*2^{2n}}}= \lim_{n\to \infty}{\frac{(\frac{2n}{e})^{2n}\sqrt{2\pi (2n)}}{((\frac{n}{e})^n\sqrt{2\pi n})^2*2^{2n}}} =\lim_{n\to \infty}{\frac{2\sqrt{\pi n}}{2\pi n}} =0 $$  But this seems inelegant where there should be a more elegant, combinatorial proof. Is there an easier way?


How long can cooked potatoes last in an air-tight container at room temperature?

When stored out in the open they can last up to 2 hours at room temperature, but how long can they last in an air-tight container at room temperature?


If they're immortal beings wouldn't their population keep increasing and increasing if they could procreate?


Lets say I have a web app which has a page that may contain 4 script blocks - the script I write may be found in one of those blocks, but I do not know which one, that is handled by the controller.   I bind some onclick events to a button, but I find that they sometimes execute in an order I did not expect.   Is there a way to ensure order, or how have you handled this problem in the past?


Question 5.12 Tom M Apostol ( Introduction to analytic number theory)

This question is from textbook Introduction to Analytic Number Theory by Tom Apostol on page 127 and I am unable to solve it.  Let p be a prime. Then prove that $\binom{n}{p}$ $\equiv \lfloor\frac{n}{p}\rfloor ( \bmod p) $and also  if  $p^{x}$ divides $\lfloor\frac{n}{p}\rfloor $ then prove that $p^x$ divides $\binom{n}{p}$.  I tried only first part by using definition of $\binom{n}{p}$ but could not prove that it's equal to $\lfloor\frac{n}{p}\rfloor$. Can you please help. I am self studying it and there is no one to guide.


Quick way to add point features on a map

I am looking for a quicker way to add points. I am mapping the buildings on a satellite imagery, but every time I add a point, I need to press enter to close the action menu.  Is there a way to add points without going through the action menu?


Where does Ubuntu look for shared libraries?

When I run a process that links to a shared library at runtime (linked when the process starts, not linked later with dlload()), where does it look for that shared library (.so) file other than LD_LIBRARY_PATH?  Background:  I have some C++ code that I wrote that uses a particular third-party library. I have installed the library and compiled my code on two different platforms, both Ubuntu but different versions, and different versions of gcc as well. The library was compiled and installed from source, and is located in /usr/local/lib on both platforms. When I compile my code, I link with the pkg-config --libs parameters for the third-party library and I've verified that pkg-config --libs returns the exact same thing on both platforms.  My code compiles successfully on both platforms, and LD_LIBRARY_PATH is not defined (or defined as empty: "") on both platforms. However, when I run it on one platoform it works fine, and on the other I get this error:  error while loading shared libraries: libthrift-0.9.0.so: cannot open shared object file: No such file or directory   Funnily enough, the ones that doesn't work is the newer version of Ubuntu and gcc.  :/  So I'm trying to figure out how the working one is able to locate the library, so that I can make the broken one locate the library in the same way. (i.e., without setting LD_LIBRARY_PATH)  Update:  Here's my output from cat /etc/ld.so.conf.d/*  ...on the working (older) system:  /usr/lib/mesa /usr/lib32/mesa /usr/lib/alsa-lib # libc default configuration /usr/local/lib # Multiarch support /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu   ...on the broken (newer) system:  # libc default configuration /usr/local/lib # Multiarch support /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/mesa


Show that a complex function is identically zero.

Show that if $f:\{z : |z| < 1\} \to \mathbb{C}$ is analytic, bounded, and for some $0<a<b<2 \pi$ $$\lim_{r \to 1^-} \sup_{a \leq \theta \leq b} |f(re^{i\theta})| = 0 , $$ then $f=0.$ I tried to use Maximum modulus theorem of Liouville theorem, but we do not know whether $f$ is analytic on unit circle.


exam class - permute mc answer choices, generate answer key

I happily use the exam document class to create exams and quizzes. I often make at least part of my exams multiple choice, and I'd like to be able to      generate multiple versions of the exam by permuting the answer choices (automatically, rather than by hand as I do now), and   generate an answer key for each version when compiling the exam with answers on.      Do any of you do that or have suggestions about how I might be able to implement that?


Tags on StackOverflow Careers in the Experience section are too narrow to read

There seems to be a visual bug with tags in the Experience section of StackOverflow Careers.  Tested on Chrome and Safari and both appear bugged.  Tags appear fine in all other sections of the Careers page and other sites (SO, Meta SO, etc).


What are Grey Knights/Grey Jedi exactly?

From what I understand they are basically Force users who choose a mix between Sith and Jedi teachings without being either, Using both to reach a balance. Am I correct?


Matrix as a sum of two commuting matrices

The problem I'm attempting is to prove that, given an n x n matrix $A$, we can find matrices $B$ & $C$ such that $BC=CB$, $A=B+C$, $B$ is diagonalizable, and $C^n = 0$. I first tried simply breaking the matrix into upper & lower triangular matrices, but one is not guaranteed to be diagonalizable and the two don't necessarily commute. I'm considering having $B$ simply be $\lambda I$, but guaranteeing that $C^n=0$ seems tricky. Any suggestions?


Clarification on the proof for the Euclidean algorithm

Lemma: Let $m$ and $n$ be positive integers with $m \leq n$. If $r$ is the remainder of dividing $n$ by $m$, then $(n,m) = (m,r)$.   The proof is given as follows:     We have by the division algorithm that $n = sm + r$ with $0 \leq r < m$. Suppose that $d = (n,m)$ and $e = (m, r)$. Since $r = n - sm$ and $d \mid n,$ $d \mid m$ we have $d  \mid n - sm = r$.   The part I don't understand is how $d \mid n - sm = r$ is equivalent to $r = n - sm.$  It seems as if it is saying $n$ is the same as $d \mid n$.


Are there any reliable performance comparisons between vanilla Drupal 8 versus Drupal 7?  I have searched the web but only find the post "", which is far from encouraging.


I am seeking for books on foundations of Quantum Mechanics with subjects like the EPR experiment, Bell's theorem, the problem of measurement, entanglement, decoherence, nonlocality, interpretations, QM without observer, different formalisms etc.  I prefer modern books, post graduate oriented, with history, formalisms and different approaches for a young researcher specialize himself on the subject.  EDIT: the other  marked as "duplicate" do not fit my needs. I prefer books with higher modern mathematics, deep arguments and well-defined positions within the philosophy of science, post graduate oriented, if those exists. I need a book to get plenty knowledge as to do research in that academic area, not an intuitive approach.


If I have some money saved up, in our current economy what would be the best way to invest lets say... $1000-$3000 dollars? Or would it be best to just save this money? Any and all advice is welcomed. Thank you.


Determining whether an email is valid in PHP

From time to time I get blocked by hotmail servers.  The reason, as far as I digged in, is because my server is sending mails for non-existing users.  Hotmail seems to interpret these attempts as "if the user doesn't exist and you are attempting to mail it, you might be a spammer".  Since my DB is a bit old (has records from ~7 years ago), some emails, indeed, no longer exist - as well as some mail servers.  Two Scenarios: bad user input and inexistent email   BAD USER INPUT   John's email is johndoe@hotmail.com  But he inputs it as:  johndeo@hotmail.com  johndoe@ohtmail.com  Obviously, it will fail to deliver and Hotmail may interpret these attempts as email mining.   INEXISTENT EMAIL   Hotmail mail accounts are deleted after a certain period* of inactivity. That said, obviously, I can't mail them.  When a user tries to recover his account at my server, it may happens that the email he used to sign up isn't used by him and it no longer exists. I cannot know or control that and then the account recovery email will be sent anyway. Again, Hotmail may interpret it as email mining, since the best practices establishes that "one should know his receiver's correct and updated email".  *365 days as of this article:     HOW CAN I FIND OUT IF AN EMAIL EXIST?  How can I find if an email exists beforehand sending it my message?  The moment the user clicks the "Forgot Password" link and inputs his email, what PHP measures can I take to let him know that he inputted a non-existing email?


Can I download Image uploads posted along with questions?

I want to use a image from , and then use it in commercial project for showing available payments methods.  Can I? Or is it not allowed?


Is the disputed flag handled any differently in the new triage review queue. I marked  as very low quality, after choosing unsalvageable and this was disputed. From what I have read, if a question is edited, this puts the flag in dispute, but this question was not edited. I have no complaint, I just want to understand what is going on, as the triage queue seems like a really good initiative, so I want to help as positively as I can.


I need to customize the form that appears when users create a new document set. It's stored as “NewDocSet.aspx” under “_layouts”, which I can’t access. Is altering that file really the only way to get a custom form, or am I missing something? When I click Settings -> Customize Form in my document library, I get a message stating “Customizing the form for this SharePoint list is not supported.” It seems Infopath forms aren’t supported for doc libraries. (Google confirms.)  Any ideas? THANK YOU!


What color corrections are being used here?

Trying this one more time.     I like the moody tones and the softness. It seems curves are being used in some way but I'm not sure how. More examples: .  I'm not really sure how else to describe it except that I like the tones and the warmth. The photos are almost cinematic, with deep black and soft beige, almost? I tried messing around with beige overlays but still couldn't get it quite right.   I'm doing the best I can trying to explain myself. If you let me know how a better way, I'll take your suggestions and revise. Thank you.


Show that $lim_{n \rightarrow \infty}m(O_n)=m(E)$ when $E$ is compact.

Below is an attempt at a proof of the following problem. Any feedback would be greatly appreciated. Thx!  Let $E$ be a set and $O_n = \{x: d(x, E) < \frac{1}{n}\}$. Show  If $E$ is compact then $m(E) = lim_{n \rightarrow \infty} m(O_n)$.  This is false for $E$ closed and unbounded or $E$ open and bounded.   Note that all sets are real and measurable refers to Lebesgue measurable.  Suppose $E$ is compact. Then $m(E) < \infty$. Also, since each $O_n$ is an open set of $\mathbb{R}^d$, $m(O_n) < \infty$. If either of the following is true, we have that $lim_{n \rightarrow \infty}m(O_n)=m(E)$: $O_n \nearrow E$ $O_n \searrow E$ Now  $\bigcap_{n=1}^{\infty} O_n = \{ x:d(x,E) = 0\}$. That is, $x \in \bigcap_{n=1}^{\infty}O_n \iff \exists n> \frac{1}{\epsilon},\ n \in \mathbb{N} \iff x\in \{x \mid d(x,E) =0\}$. Then we have that $\bigcap_{n=1}^{\infty}O_n = E$ and $O_n \searrow E$. Thus $ \ m(E) = lim_{n \rightarrow \infty} m(O_n)$. Suppose $E$ is closed and unbounded. Let $E = \{(x,y): y = 2 \}$ and $O_n = \{(x,y): d(x,E) < \frac{1}{n}\}$. Since $E$ is a line in $\mathbb{R}^2$, $m(E) = 0$. Also, since the measure of a rectangle in $\mathbb{R}^d$ is its volume, $m(O_n) = \left| O_n \right| = \infty$, since the rectangle $O_n$ is unbounded. It is therefore apparent that $m(E) \not = lim_{n \rightarrow \infty} m(O_n)$. Suppose $E$ is open and bounded. Let $E=(0,1)$ and $O_n = \{x \mid d(x,E) < \frac{1}{n}\}$. $\mathbb{R}-E$ is closed and $O_n \in \mathbb{R}-E$. Since $\mathbb{R}-E$ contains all its limit points $lim_{n \rightarrow \infty}O_n = O \in \mathbb{R}-E$. Thus $lim_{n \rightarrow \infty} m(O_n) \neq m(E)$.


Look up element in dictionary and check type of object

How can I check if 'ksize' in config = {'median': {}, 'gauss': {'ksize' :( 3,3), 'sigmaX': 3}} is a tuple? Is there any option to get values only from 'ksize' and not from all the gauss values? I am looking for a universal function if I need to check different values in different config values in the future.


I wonder as if there exist a equivalent forumla to newton binomial $$(x+y)^n=\sum_{k=0}^{n} {n\choose k} x^{n-k}y^k$$ for three coefficients $(a+b+c)^n$ ?


How to define generic method that get T that contain some attribute ?

I have some attribute that i define.  I want to write some generic method that will get  where this  contain this attribute.   How to implement this ?


Why do we use sine/cosines in Simple Harmonic Motion?

For example, to calculate the displacement of the particle in an  we do:  $$x(t) = x_{\max} \cos(ωt+φ)$$  What do we find out taking the cosine of (ωt+φ)?  Example Graph:


I've got 12 items in arrays like this:  $item[1] = array('pseudo' => 'Item1', 'name' => 'apple', 'rarity' => '1', 'id' => '1' ); $item[2] = array('pseudo' => 'Item2', 'name' => 'banana', 'rarity' => '30', 'id' => '8' ); $item[3] = array('pseudo' => 'Item3', 'name' => 'cherry', 'rarity' => '23', 'id' => '12' ); $item[4] = array('pseudo' => 'Item4', 'name' => 'pear', 'rarity' => '27', 'id' => '18' ); $item[5] = array('pseudo' => 'Item5', 'name' => 'watermelon', 'rarity' => '70', 'id' => '14' ); $item[6] = array('pseudo' => 'Item6', 'name' => 'orange', 'rarity' => '100', 'id' => '17' );   What I need is to print 1 of the 6 items randomly but affected by its rarity, so the more rare it is the less times it will occur the rarity is from 1-100. How do I accomplish this using php?


ssh: connect to host myremotehost.com port 22: Connection refused

So I am trying to get ssh working on my server. I can connect on my local network with the local ip address of the server perfectly fine. When I try to connect remotely (through a domain name that I set-up for the server, which I know works) I get this connection refused error:  ssh: connect to host bahhudson.mine.nu port 22: Connection refused   From the research I have done into the problem it looks like something is going wrong with my router. I have configured port-forwarding, but that's the only think I can think is causing the "Connection Refused" error... My router is a WRT120N and I have configured it for port-forwarding based on , which seems somewhat outdated since some of those images are not exactly like what my router settings look like, but I have tried multiple ways for setting the portforwarding up, and I know that forwarding for port 80 works because my server has HTTP access which is working...  Also VPN access was getting blocked in what I believe to be a similar way, so the solution to the SSH port 22 being blocked might also be similar to that of the VPN being blocked as well.  Any ideas?  Thanks!


retrieve software RAID information using WMI

I need to get software RAID configuration info from a remote windows server (2003, 2008, 2012) on a local linux system.  I have  and , but have been unsuccessful at finding a solution, as has, it seems, anyone else trying to do a similar thing.  (I would have included other similar links, but serverfault forbids me.)  WMI is the preferred method of retrieving this info because it requires no additional, non-default software to be installed on the remote windows server, but any other windows non-install solutions are also acceptable.  I have also looked through and searched the WMI reference without success on this topic. (http:// msdn.microsoft.com/en-us/library/aa394572%28v=vs.85%29.aspx)  Edit:  I'm thinking that winexe(1) is the answer.  I have seen and considered the link to the vb script(2) in the accepted answer of the duplicate question.  I consider that question to be similar enough to mine to be a real duplicate.  (1): http:// winexe.sourceforge.net/    (2): http:// www.anchor.com.au/hosting/dedicated/monitoring_windows_software_raid


I have been running 12.04 on a Virtual Box VM for some time.  It's my main development machine, so quite important.  The disk size is 8Gb.  Recently I started to get pop-up warnings about low disk space.  I cleaned up what I could and kept going.  The messages would stop for a while, then start again.  This morning my IDE (phpStorm) started complaining that it was out of disk space and could not save changes.  This seemed odd to me, since the alerts had just started again and were reporting that I had 200Mb left.  (In past days I have received alerts with less than 100Mb left, but have still operated OK).  Anyhow, I did some quick research and decided that I needed to resize the VM disk and then run GParted.  In preparation for this, however, I stopped the machine to make a clone of it.  Now, neither the clone or the original machine will boot.  They just hang with a cursor flicking in the top left.  I'm sure there are a number of ways to deal with this, but I'd like to get a handle on the options before I rush in.  Any ideas?


Which Stack Exchange website has the highest question close percentage?  I see on  that Medical Sciences Stack Exchange's question close percentage is 39.5% (probably lower than usual due to COVID-19-related leniency), and I wonder if any other Stack Exchange website is topping that.  The percentage I quote is computed over the last 90 days, which is the longest available span on the statistics page (looking at shorter spans, e.g. one day, increases the variance).


Can we have a better canonical reference for our policy against recommendation questions?

Currently, when I need to explain the issues with recommendation questions, I link to . ... except that that's more or less just about shopping recommendations on SU. Now that we've expanded, can we have a canonical, site-agnostic meta post that details why most recommendation (product/book/software/etc) questions are bad, what defines a "good" recommendation question, and outlines a policy on this?


How do I make Android consider my WiFi Access Point as valid (blue?)

We have a very large wifi network at Stack Exchange, and the primary guest network is tightly locked down.  Our firewall rules permit essentially just http/https and vpn connections.    When our Android phones connect to the wifi, they show good coverage but the WiFi icon never turns from grey to blue.    What is the Android phone checking to make the grey/blue wifi icon decision in JB 4.2.2?


How to find miRNA binding sites on a specific gene?

I am trying to find miRNAs that bind to the 3'UTR of a specific gene. What is the best way of doing that (that is, with a good scoring analysis that is most commonly used by researchers in this area)? I would also like to know the other possible methods if there are multiple ways of doing this.


How do I check if the value in a 2D array is the a certain number?

Hey guys im working on an ulam's spiral problem and I want to search through the 2D array I have created and find the number entered by the user (numb). I don't get why the if statement (marked with a comment) is always returning false  Edit: Here is the partial code, I have run my genUlam function through the debugger and it DOES in fact return the number, unfortunately this is an assignment so i cannot post the entire code.   public static void main(String[] args)    {     //create scanner object     Scanner input = new Scanner(System.in);      //get input for dimensions     //System.out.print("Enter dimension: ");     int dimension = 3;      //check if dimensions are odd     if (isOdd(dimension) == false)     {        //if input for dimensions is even, get the next odd dimension        dimension += 1;     }      //get input for number in center    // System.out.println("Enter number in spiral: ");     int numb = 2;       //check that number in center is in range of 1 to dim^2     if (numb > Math.pow(dimension,2) && numb < 1)     {         System.out.println("Number not in range");         System.exit(0);     }      //create 2D array using my function     String[][] ulam = {{"1", "2", "3"},{"4","5","6"},{"7","8","9"}};    //check to see if the number user entered does exist, then print array    for(int r = 0; r < dimension - 1; r++)   {      for(int c = 0; c < dimension - 1; c++)      {      //String current = ulam[r][c];      /*the line below should be returning true when match is found, but it is returning false no matter what*/      if(ulam[r][c].equals(Integer.toString(numb)))        {        printArray(ulam, r, dimension);        }        else         {         System.out.println("match not found");        }      }   }   }     public static void printArray(String[][] array, int row, int dimension)   {      for (int i = 0; i < dimension - 1; i++)      {         System.out.println(array[row][i] + " ");      }   }     }


I'm currently studying DeBranges book about Hilbert Spaces of Entire functions. This questions deals with problem 60 on page 61 (page 71 in the pdf on his website ). Let $s_n,t_n$ be (potentially infinite unbounded) positive sequences such that $s_n<t_n<s_{n+1}<t_{n+1}$ (interlacing property) and let $$f(z)=\prod_{n=1}^\infty\frac{1-z/t_n}{1-z/s_n},\qquad z\neq s_n.$$ Then $f$ defines a meromorphic function with only simple, real poles and zeros on $\mathbb{C}$ which is real for real $z$. I want to show that it is in fact real if, and only if, $z$ is real. I tried working with a few examples and found the following problems: Let's go finite first. If we disregard the poles, then there is an easy counterexample: $$f(z)=(z-1)(z+1)=z^2-1,\qquad \text{then }f(\mathrm{i})=-2\in\mathbb{R}.$$ Okay, the poles are relevant here. In particular $$f(z)=\frac{z^2-1}{z},\qquad \text{then }\Im(f(a+\mathrm{i}b))=\frac{b(a^2+1+b^2)}{a^2+b^2}\neq 0\quad \text{for }b\neq 0.$$ But why? What part of the pole property makes this work, if we multiply by a pole? Is it the interlacing part? Again, but why? I tried computing the Imaginary part of finite products - there it actually works out. By partial fraction decomposition we obtain the following sum $$f_n(z)=h+\sum_{k=1}^n\frac{G_n(s_k)}{F_n'(s_k)(z-s_k)},\qquad\text{where } h\in\mathbb{R},\;G_n(z)=\underbrace{\prod_{k=1}^n (1-z/t_k)}_{\text{numerator}},\;F_n(z)=\underbrace{\prod_{k=1}^n(1-z/s_k)}_{\text{denominator}}$$ by computing the residues. The interlacing property of the zeros and poles guarantees that $G_n/F_n'$ doesn't change sign and thus we get a positive imaginary part for $z\in\mathbb{C}^+$. The problem arises now if we take the limit to infinity, because then the strict inequality might become an equality. So once again I don't see a reason why the imaginary part shouldn't be zero. I would much appreciate any input. My only idea would be to do a partial fraction decomposition on all of $f$, but there I don't see why it should converge at all. Is there some result I don't know which allows me to do the decomposition on all potentially infinite poles?


Picking a guitar string of fixed length to get any nth harmonic, is it possible?

In physics textbook, we can calculate the nth harmonic of a vibrating string of a fixed length. How can we do this in a real guitar?  For example, if I just pick a single open string, how can I get any arbitrary harmonic for this?  More precisely,    the first harmonic has 2 nodes and 1 anti nodes the second harmonic has 3 nodes and 2 anti nodes the nth harmonic has n+1 nodes and n anti nodes


How to prove $a^x\times a^y=a^{x+y}$ for cardinals?

How can I prove this: $$a^x\times a^y=a^{x+y} $$ when $card(A)=a$ , $card(X)=x$ and $card(Y)=y$.


Difference of using 'exampleText' instead of "exampleText" in JavaScript arrays?

Is there any difference between using '' or "" in JavaScript (example below)?   var sports = ['soccer', 'baseball', 'basketball']   or  var sports = ["soccer", "baseball", "basketball"]   This array is a super simple example, but would there any difference or cases in more advanced JavaScript where '' would make more sense than "" or vice-versa? Learning through Codecademy and they've used both interchangeably without any explanation.


When one loses weight, where does the lost poundage (I assume comprised mainly of fat) go?  Is it urinated out? Defecated out? If a combination of both, does the percentage of each differ depending on how much of what your are losing was pure fat?


I have seen a file named lock in /var/cache/apt/archives in my Ubuntu 14.04. This file has only root access. When I try to display the contents of this file using sudo nano lock the file seems empty. What is actually the purpose of this file?


I had like 303 or so consecutive days in Physics.SE but they reset. To my best knowledge I visited everyday so is there a limit/bug?


Make script executable from within script itself

I would like a script that will show me the percentage of reserved blocks. If it can done another way, that is good.  This works if I manually make it executable. Can I make it executable from within the script itself?  cat > somescript.sh << \EOF #!/bin/bash  block_count=$(sudo tune2fs -l /dev/sda1 | awk '/^Block count:/ {print $NF}') reserved_block_count=$(sudo tune2fs -l /dev/sda1 | awk '/^Reserved block count:/ {print $NF}')  perl -e 'printf("%.1lf%%\n", ($ARGV[0] * 100.0 ) / $ARGV[1])' "$reserved_block_count" "$block_count" EOF


Lowering mortgage downpayment vs Investing in stocks?

I live in a country where currently mortgage interest rates are historically low (around 3-4% for 300K 30 years mortgage, and the interest is also tax deductible), and the banks are willing to finance a 100% of the house via a mortgage. I am married, 35 years old, and expect to have relatively stable employment for the next 15 years. Let's say I have around 100K euro as savings.   My two options as I see them;   Putting the 100k I have as downpayment, thus lowering the mortgage from 300K to 200K, gaining a better interest and repaying the mortgage in a lower amount of time (say 20 years instead of 30) Not putting any down payment at all, investing the 100K (in a cheap S&P  500 ETF).   I'm not expecting a definite answer, more of a pros and cons of each approach.


Comprehensive list of mathmode dots with explanations

I have read    that there are differences between the multitude of dots commands that TeX and amsmath offer. However, I am not sure up to this day when to use which, and how critical it really is whether I use the correct one or not.  The document  by Herbert Voss points out:     It is not easy to see the differences between some of them.   That obviously does not help me any further.  Could you provide some explanation for each of the commands, and in which context to use them for the rest of us? Further, some example explaining how big the difference between the commands really is would be great.


Logistic Regression with independently weighted regularization terms

For a standard logistic regression problem I'm interested in examining the impact of individual weighting of the parameters and in general the impact of regularization for completely separable data.  Does anyone know of a package in python which allows individual regularization weights for each parameter?   Thanks  (logistic regression, not SSE).


Finding WW2 records of a Luftwaffe pilot named Adolf Schwartz

I’m trying to find records on my grandfather, his name was Adolf Schwartz and he was a Luftwaffe pilot in world war 2. I only have a picture of him. Does anyone know where I could find his records? He was born is 1913 in Rostock, Germany.


Resources requested by a servlet aren't cached

I have an html file that can be accessed by browsing to  https://localhost:8080/contextRoot/home.html   This html uses 2 images:      The first image is packaged in my war file and loads fine. When I reload the page, it is fetched from cache instead of re-downloading it. I see this in the developer tools of my browser.  The second image also loads fine, but it is downloaded every time the page is requested. It is never cached. It uses a special java servlet to handle what we call static content:  <servlet>     <servlet-name>staticFileServlet</servlet-name>     <servlet-class>com.company.web.file.StaticFileServlet</servlet-class> </servlet>  <servlet-mapping>     <servlet-name>staticFileServlet</servlet-name>     <url-pattern>/static/*</url-pattern> </servlet-mapping>   This servlet searches the computer's disk for the folder C://images/ for a file called image1 and serves it by writing those bytes to the response, while also heading a content-type header to the response (so the browser knows what kind of file it is receiving).  I think I might have to add additional headers to explain the browser that this content should be cached. Can the Cache-control header help me here? However, I thought browsers were smart enough to cache requests regardless of what headers I (don't) use.   Here are the response headers for an image that is succesfully cached (served by being the war file)  Accept-Ranges:bytes Content-Length:354 Content-Type:image/gif Date:Mon, 04 Jan 2016 09:43:42 GMT ETag:W/"354-1449227028000" Last-Modified:Fri, 04 Dec 2015 11:03:48 GMT Server:Apache-Coyote/1.1   Here is an example of an image that is served by the servlet and isn't cached:  Cache-Control:max-age:864000 Content-Type:image/jpeg Date:Mon, 04 Jan 2016 13:59:04 GMT Server:Apache-Coyote/1.1 Transfer-Encoding:chunked   EDIT: my files are behind an SSL connection, which could cause the deny of caching. However, I'm certain it is not the server denying this caching because   It is caching some images. There no headers (pregma, etag, cache-control...) set on the response.   Does google chrome automatically refuse caching from (some) ssl connections?


I have written a piece of code that counts the number of lines in a file (I wasn't able to find a built-in method that could acheive this in the IO classes). My code below:  try {     while(!line.equals("null")) {         line = bufferedReader.readLine();         a = a + 1;         System.out.println(a + " " + line);     } } catch (NullPointerException N) {}   The problem I'm running into is that the count still increases while the variable 'line' evaluates to "null". I understand why this is the case; the while statement won't check the condition until after the entire code block has been run, in which case 'a' will have increased once again. Solutions I have considered:  1) Set 'a = -1', whereas I currently have 'a = 0' before this block of code 2) Use if statement to break the loop before the count variable is reached. This is how I would modify the code block:  try {     while(!line.equals("null")) {         line = bufferedReader.readLine();         if (line.equals("null")) {break;}         a = a + 1;         System.out.println(a + " " + line);     } } catch (NullPointerException N) {}   My problem with the above? (1) seems too contrived while (2) seems redundant. I wanted to see if there's a better way to approach this - thanks for your suggestions.


I need to create a map showing slope direction and dip angles in QGIS.  How do I get either:  the dip angle to show up next to the direction arrow  or  the dip arrow symbol to change depending on the slope dip angle    I have tried drawing a line with an attribute (dip angle) and then attempting to format the line based on the attribute, which then allowed me to colour code the lines according to how steep the slope dip was. (not ideal to clear data display but it worked) However when I attempted to add more data the whole lot vanished and reloading the layer from an earlier version has none of the dip data on it.     Fixed it


Relation between energy, frequency and wavelength

Frequency $f$ and wavelength $\lambda$ of light don't alter after reflection. If that is the case, then energy should also not alter after reflection as $E=h f$. But energy gets altered after reflection. How is that possible?


I didn't use cycles render a long time and got a problem. If I use dark environment lighting, blender doesn't render it smooth. Maybe it happens because I'm using denoising, I don't really know. So here is how it looks:  And the whole render look like this:  Gray spots mess up all render. I tried to search how to remove them, but still didn't find anything.


Since I was first learned English, I know that any number greater than 1 comes with s for plural (except for some exceptions like Mice and Feet). 6 Cars, 2 Trees, 3 Dogs, 9 Years  So if someone ask me how old are you I will say 6 years old  but when I read a report in news website I find they say a 6 year old boy (not years)  so when to remove the plural s?


we all study mathematics , and all of us learn mathematical methods to solve problems , we learn how to prove , how to think mathematically   but the question is, what is mathematics ? how can we define it as a branch of science ?


how to define a general conditional for a complete text

I wonder how to define a newcommand of the type with general conditionnal    \def\a{}   which givefor each call in the text  %\begin{comment}  %\end{comment}    when a=0 and   \begin{comment}  \end{comment}    for any other value of a  Thanks


What UX solutions are there for the EU cookie legislation?

The EU cookie legislation  is rightly or wrongly are being introduced, there has been much negative comment from both legal and technical commentators - that said it has implications.  What UX solutions or otherwise have you been working through to resolve the need of 'gaining a user's prior consent' when cookies are used?      You may have read yesterday on the bbc   and guardian sites that this   legislation has been deferred in the   UK for a year so  that 'a workable   solution' can be found.            It would be nice to maintain this   thread with examples like the ICO one   below - however they may prove to be   thin on the ground!


Is there any way to publish game for android

I know about blender for android but that's just blender player and no export/publish for android.    Is there any way for build a single android apk from blender game? No Gamekit, is there another way ?


I am looking for a short story from late 70's or so.   Two unrelated Englishmen who survived a famine (everyone went hungry, but nobody starved) in their youth live on a remote planet- I think a mining planet. A tenclone arrives (5 men, 5 women who know of the brilliant man they were cloned from), and is amused and dismissive of these geezers who are individuals.   The tenclone has an accident, 9 are killed. The one who survives must learn from the Englishmen how it is possible to love others as a way to escape the loneliness he now experiences. At the end the survivor leaves on the ship which is bringing in a twelveclone as a replacement.


Energy of particle in General Relativity

my question is basic and elementary. I can't seem to understand why the formula for the energy of a particle is $E= -pU$ where $p$ is the 4-momentum of the particle and $U$ is the 4-velocity of the observer. Actually what bothers me also is that when we say an observer has, say, a 4-velocity $U$, we mean it has this velocity w.r.t us (i.e. the person who's doing the calculation) right? the same thing for the 4-momentum of the particle! In other words, for the formula of the energy above why shouldn't it be proportional to the velocity as measured by the observer (not to those making the calculation as we do)?


I need help solving for $P(t)$.  $$\frac{dP}{dt} = k(M-P)P$$  This is a question related to population. I'm not the best at math and any help would be appreciated.


Reading a 5 Band resistor with Gold as a middle band?

Can anyone read the resistor that the arrow is pointing to?  From what I know you can not have a gold band as a number and if I am reading it correctly it has a tolerance of 0 which does not seem right.


Background  I'm fairly new to tikz, and I am currently trying to create a figure with variables to easily change dimensions when needed. I am however having some troubles when attempting to apply arithmetic to my variables.  Problem  As I understand it \def\VARNAME{INITIALVALUE}, defines a variable. Using \def\a{2.4} as an example, 2*\a will evaluate as 4.8 as expected whilst 2\a will however evaluate as 22.4. I seem to hit a snag however when I attempt to multiply a variable which I have defined as a sum of two other variables.  Is what I'm trying to do not possible using the \def command or am I missing something? Is it preferred to instead use \newlength and \setlength? or perhaps \pgfmathsetmacro?    MWE:  \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture}  \def\thickness{5mm}   \def\lambda{9cm}    \def\slotW{5mm}       \def\secW{\lambda/2-\slotW}  \draw(0,  -\thickness) rectangle +(\secW,-\thickness)    ; % as expected \draw(0,-2*\thickness) rectangle +(2*\secW,-\thickness)  ; % this seems to evaluate to 2*\lambda/2-\slotW not 2*(\lambda/2-\slotW) as I expected \draw(0,-3*\thickness) rectangle +(2*(\secW),-\thickness); % this won't evaluate at all  \end{tikzpicture} \end{document}


How to get apps(processes) per user on a terminal server?

Is it possible to get the running apps per user on a terminal server? I can get all background processes with System.Diagnostics.GetProcesses() but this is not what I want. I would like to get something similar to the Users tab in the Task Manager.


Check if the application is already installed

I want to check if an app is alredy installed through launch conditions.If yes i want to exit the installer,if no the installation should continue.Could anyone tell how to achive this in c# installer?.  Regards, Harsh Suman


I tried to implement outlier detection for one dimension using inter quartile. For instance, a given variable cost or revenue or profit. but I'm missing outliers in other dimensions when running for one dimension.  How to detect outliers for multi dimensional data , like cost and revenue and profit at once.  Is there any efficient algorithm for this?


I am using MikTeX with PDFLaTeX and it has worked fine. After an update if MikTeX xwatermark throws an error: ! Extra \endgroup.  \document ->\endgroup  \let \BeforeStartOfDocument \@firstofone \cpt@beforest...  l.5 \begin{document}  Things are pretty mixed up, but I think the worst is over.  Test tex file: \documentclass{article}  \usepackage{xwatermark}  \begin{document} Text \end{document}  But as I understand it Xwatermark has not been updated since 2012!? What could be producing the error?


If $H \leq G$ such that $[G:H]=2$ then $a^2 \in H $ for every $a\in G $   If $a \in H $ then $a^2 \in H $ so I took $a\in G-H $ and wrote $G=Hx \cup Hy $ for some $x,y \in G $ but wasn't able to arrive anywhere. Any hint?


I have tried playing VCDs and DVDs but I always get this type of error: ubuntu 14.04

File reading failed: VLC could not read the file (Input/output error).


Where to put anchor tags in Angular CSR Applications such that routes get indexed?

I built this site with Angular 10: https://fireflysemantics.com/ And when the top level domain is visited it reroutes to this: https://fireflysemantics.com/welcome However There's no link to that from anywhere within the app, so I don't think Google has any way of indexing that page. What would be the best way of telling Google to index the page.  From my research it seems I could do something like this:    Welcome to example!   <app-root></app-root>   Thoughts? Also any thoughts on the max number of links that this would work with and any other approaches?


Travel to Romania on Indian passport having Germany residence permit

I am an Indian and hold a German residence permit valid for 1 year. It expires in April 2017 and my Indian passport is valid until August 2021.  Can I travel to Romania with my visa issued by Germany (and my passport)?


Where should theoretical questions about the internet go?

I have a question about how the internet/web works (leaning towards the higher levels on the OSI model). I know Pro Webmasters is about a specific problem regarding the web, but how about theoretical?  Is it CS.SE? The tour says that questions about "computer architecture, networks" belong there.  Or Super User? The tour says:     Focus on questions about an actual problem you have faced. Include details about what you have tried and exactly what you are trying to do.


Can two people with different one time pads securely exchange a message like this?

Alice has a message, generates a one time pad, encrypts her message and sends it to Bob. Bob generates his own one time pad, encrypts the message again, and sends it back to Alice. Alice then decrypts this message using her one time pad, sends it back to Bob who then decrypts it the last time using his one time pad.  The only problems I see with this technique:   It is vulnerable to a man in the middle attack. It requires sending the message back and forth twice between sender and recipient. It doesn't scale well if you want to use it to communicate with multiple people. Requires a way of generating cryptographically secure random numbers.   Does this method of encryption have a name?  If we ignore the fact that it's vulnerable to a man in the middle attack, is this method of encryption information-theoretically secure?  Why isn't this method used widely, i.e. which of the above listed problems or other problems makes this method infeasible for production use?


How do I extend the desktop to the third monitor using a Displaylink USB-to-VGA adapter?

I have a DisplayLink USB-to-VGA adapter (17e9:0198 Newnham Research) I would like to add to my system (eventually two). I am running Linux  3.5.0-19-generic #30~precise1-Ubuntu SMP Wed Nov 14 21:43:28 UTC 2012 i686 i686 i386 GNU/Linux and Ubuntu 12.04.1 LTS.   I have an Asus G74Sx with the main screen and a second monitor on the VGA port. The DisplayLink-connected monitor shows green unless I hit CTRL-ALT-F1 in which case the other two monitors go blank and a login screen appears on the monitor connected to the DisplayLink. I can login and have a text-mode display.  What I really would like is to extend the desktop to the third monitor. Can anyone help?


No Video output when attempting to run Facade

I downloaded Facade from the official website. After installing it, I tried to play it, but after the initial loading screen, the game vanished into just the outline of the window it was in. The sound works fine, and the hand still appears where the mouse is, and I can type responses, but there is no visual at all. I tried adjusting my computer to the resolution it mentions on the website but my computer's resolution won't go low enough. Is there a way to fix this or is the game not compatible with my pc?   Device Manager lists my graphics card as:     Mobile Intel (R) 45 Express Chipset Family (Microsoft Corporation - WDDM1.1)


What exactly was, or happened in the Doom of Valyria?  I'm nearing the end of the ASOIAF books and despite countless references, I'm still not clear on what exactly the Doom of Valyria was. If I recall correctly, there have been many different mentions of what appear to be natural disasters. For example:  In A Dance with Dragons (Chapter 33), Tyrion is quoted as thinking:     An empire built on blood and fire. The Valyrians reaped the seed they   had sown.   The implication being that fire was the Doom of Valyria.  Fire is mentioned often, with clear references to the 'Fourteen Flames' which I believe to be a chain of volcanoes.  However  Many other seemingly natural disasters are described, including earthquakes and a tsunami(?).  This makes me wonder, are all these events chained? As in, related or even caused by each other? Was the Doom of Valyria a completely natural event?  Did magic play a part, in any form? I know from references in the books that magic was very prevalent in Valyria.  As stated I'm nearing the end of the books now, so any 'spoilers' which answer my question or relevant questions are very welcome.


As , we are renaming the Favorites feature to Bookmarks. This allows us to both match how it's currently used more closely and communicate what to expect from it better.  Some more background behind this:   The name "favorites" can be interpreted as giving implicit approval of the post.  In our user research related to the , we found that a significant portion of users used Favorites really as a way to record items of interest that they wanted to return to later (but definitely not necessarily because they like or approved of the post).  The new name reflects more accurately the way that the tool is used (and removes confusion that many users had about the term Favorite and what it implies). This change was made in the context of our work done on the Question Following project, stemming from the research and preparation that was done for that project (many of the original proposals in the Community for Follow attempted to tie it in to Favorites/Bookmarks).    If you're already using this feature, you should expect no changes beyond the naming and the icon. If you've never used it... well, it's got a different name now.  Here is the comparison of the old vs new UI on question pages:     In user profiles, the tab has been renamed to "Bookmarks" but is in the same location and has the same functionality as before.  We've also added a new search operator: inbookmarks. It replaces the existing infavorites operator in the search help pages and output, but both will be accepted and produce the same results.  Questions? Comments? Bug reports? Feel free to leave an answer here.


In English, there are three suppletive adjectives: good, bad and far. Their comparative and superlative forms derive from different stems, i.e., we have best instead of *goodest, worse instead of *badder and so on. Do linguists have an explanation for why suppletion occurred only for these three adjectives? And, more specifically, why good and bad?  It seems that there is something special about good and bad, because in other European languages, the corresponding adjectives are also suppletive. But, since the comparative and superlative forms are not cognate across the subfamilies, the process must have occurred independently in each one.


No Jailbreak Firewall for iOS (iPhone) for iOS 7

Is there a non jailbreak firewall for the iPhone or is there some way to set one up, somehow?


Get value from jstl text field through jQuery

I am working on a project in spring with jstl and jQuery. I have a text field in jsp page as -   <form:input path="suv.userName" cssClass="textField" placeholder="Username (Email-Id)"/>   Problem is - when i am trying to get the field value through jQuery as - alert($("#suv.userName").val());  I am getting the undefined message. But when i am trying with javascript as -   alert(document.getElementById("suv.userName").value);   I am getting the proper value. I think there is something problem in suv.userName haveing a '.' between. Please help how to get the value in jQuery.


Process in /System/Library/Frameworks/Accounts.framework/Versions/A/Support/accountsd taking almost all ressources (Catalina - MacOS 10.15.6)

I have Catalina 10.15.6 There is something running in the background at /System/Library/Frameworks/Accounts.framework/Versions/A/Support/accountsd that takes 50-90% of the CPU and 1Gig of memory. I fear that it's a virus. I saw that there is a similar question , but there was no feedback. I tried to remove it with I run malwarebyte: it told me that there is no malware on the machine override rwxr-xr-x  root/wheel restricted,compressed for accountsd? y rm: accountsd: Operation not permitted I'm affraid of breaking somethin if I go further I tried to follow the following points of the comments/answers  I deleted all the account in `system preferences > Internet accounts'  I rebooted 2x the machine in safe mode by holding shift   Despite those steps nothing happened: the fan is still full on an almost all ressources of the CPU taken in <user>/Library/Keychains, there is the following list: login.keychain login.keychain-db login_renamed_1.keychain-db metadata.keychain metadata.keychain-db metadata.keychain-db.C07BBB57-D5A7-435B-9CAD-1AE65E5FBCC5  Which one should I delete? What finally solved the problem: So what finally solved the problem was to reset the NVRAM (Non-Volatile Random Access Memory) with the command alt+cmd+p+r upon starting thanks for hints below


If the double type can handle the numbers 4.35 and 435, why do 4.35 * 100 evaluates to 434.99999999999994?

As I understand this, some numbers can't be represented with exactitude in binary, and that's why floating-point arithmetic sometimes gives us unexpected results; like 4.35 * 100 = 434.99999999999994. Something similar to what happens with 1/3 in decimal.   That makes sense, but this induces another question. Seems that in binary both 4.35 and 435 can be represented with exactitude. That's when it stops making sense to me. Why does 4.35 * 100 evaluates to 434.99999999999994? 435 and 4.35 have an exact representation in the double type dynamics:   double number1 = 4.35; double number2 = 435; double number3 = 100; System.out.println(number1); // 4.35 System.out.println(number2); // 435.0 System.out.println(number3); // 100.0 // So far so good. Everything ok.   System.out.println(number1 * number3); // 434.99999999999994 !!! // But 4.35 * 100 evaluates to 434.99999999999994   Why?  Edit: this question was marked as duplicate, and it is not. As you can see in the accepted answer, my confusion was regarding the discrepancy between the actual value and the printed value.


How was semi-colorization done in Kill Bill?

In Kill Bill some of the scenes are in partial color with black and white backgrounds and colorized foregrounds. For example, near the end of volume 2, Beatrix is driving to Bill's location and the background is in black and white, but her car is in blue.  How did they achieve this effect?


Proof Verification: Prove a nonzero, proper, prime ideal in a PID is maximal

I am going through the 'Algebraic Preliminaries' section from Algebraic Curves by William Fulton. I just want to make sure my algebra is not too rusty.   I saw a proof here () but I want to check if mine also works. The main fact I'm making is every irreducible generates a principal ideal (perhaps this is wrong? It just seems obvious to me, and I didn't bother proving it independent yet).  Question: Let P be a nonzero, proper, prime ideal in R, where R is a PID. Show P is maximal.  Proof attempt: I shall perform proof by contradiction. Suppose P is not maximal. Then P $\subset$ I $\subset$ R, for some principal ideal I.   Let h be some element in R. If h is irreducible, it is contained in some principal ideal, and thus is also contained in I insofar as I is defined to be maximal.   If h is not irreducible, it can be expressed as a product of irreducibles (with will be unique up to ordering since a PID is also a UFD). Since, the ideals generated by each of these irreducibles are within I, each of these irreducibles are also within I, and thus can be expressed as a power of the irreducible generating I, h is also within I.   Such an argument can be used to place any element from R into I. Thus, R $\subset$ I. Obviously, I $\subset$ R, and so we have equality. In particular, P is maximal.   --  Thank you for your help!


Is infinity an element of the natural numbers?

I am wondering, whether $\infty \in \mathbb{N}$.


Why aren't particles constantly "measured" by the whole universe?

Let's say we are doing the double slit experiment with electrons. We get an interference pattern, and if we put detectors at slits, then we get two piles pattern because we measure electrons' positions when going through slits. But an electron interacts with other particles in a lot of different ways, e.g. electric field, gravity. Seems like the whole universe is receiving information about the electron's position. Why is it not the case and the electron goes through slits "unmeasured"?  Bonus question: in real experiments do we face the problem of not "shielding" particles from "measurement" good enough and thus getting a mix of both patterns on the screen?


Suppose that f : [a, b] → R is continuous and that f([a, b]) ⊂ [a, b]. Prove that there exists a point c ∈ [a, b] satisfying f(c) = c.

Suppose that $f : [a, b] \to \mathbb{R}$ is continuous and that $f([a, b]) \subset [a, b]$. Prove that there exists a point $c \in [a, b]$ satisfying $f(c) = c$.   (If either $f(a) = a$ or $f(b) = b$ there is nothing left to show, so you might as well assume that $f(a) = a$ and $f(b) = b$. Since $f$ takes its values in $[a, b]$ this is the same as assuming that $f(a) > a$ and $f(b) < b$.)  So far, I have:  Pf. Assume $f(a)>a$ and $f(b)< b$.  Let $x, y \in [a,b]$ such that $f(a)=x$ and $f(b)=y$ which means $f[a,b]=[x,y]$. Notice $[x,y]\subset [a, b]$. Since f is continuous on $[x,y]$, there exists some $c \in [a,b]$ such that $x$ is less than or equal to $c$ is less than or equal to $y$...  This is where I am stuck because I don't think I can just assume by Intermediate Value Theorem that some $f(c)=c$?


Method to predict outcome as percentage of two categories?

In real world example I have elemental composition data for groundwater, which is known to be coming from two sources. I have control data where all predictors are from source A and data where all predictors are from source B. I would like to be able to take an unknown water sample and predict what percentage is source A vs. B based on the elemental composition of that sample.   The problem is not obvious to me because it is not a categorical outcome, but rather the relative contribution of two potential categories - if that makes sense.  I've looked for similar questions but couldn't find one - be gentle! Thanks


If nonempty, nonsingleton $Y$ is a proper convex subset of a simply ordered set $X$, then $Y$ is ray or interval?

This is from Exercise 7 in p. 92 in Munkres's Topology.  Except for the trivial cases such as $Y$ is empty set or singleton, it seems if $Y$ is convex in an simply ordered set $X$ then $Y$ is interval or ray.  But I cannot start my proof because I cannot use $\sup$ or $\max$ functions.  What should I do?


I need to write a function that generates an id that is unique for a given machine running a Windows OS.  Currently, I'm using WMI to query various hardware parameters and concatenate them together and hash them to derive the unique id. My question is, what are the suggested parameters I should use?  Currently, I'm using a combination of bios\cpu\disk data to generate the unique id. And am using the first result if multiple results are there for each metric.  However, I ran into an issue where a machine that dual boots into 2 different Windows OS generates different site codes on each OS, which should ideally not happen.  For reference, these are the metrics I'm currently using:  Win32_Processor:UniqueID,ProcessorID,Name,Manufacturer,MaxClockSpeed Win32_BIOS:Manufacturer Win32_BIOS:SMBIOSBIOSVersion,IdentificationCode,SerialNumber,ReleaseDate,Version Win32_DiskDrive:Model, Manufacturer, Signature, TotalHeads Win32_BaseBoard:Model, Manufacturer, Name, SerialNumber Win32_VideoController:DriverVersion, Name


TOC entries and labels for included PDF pages

I am embedding full pages from another PDF document (using the pdfpages package), but I would like to be able to declare my own section headings before each embedded document (for e.g. hyperlinking / TOC purposes). pdfpages has an experimental feature which lets me do this, but the problem is that I want to put all of these embedded documents inside a section, so I need to insert a section heading and a subsection heading on the first document I embed. Unfortunately pdfpages doesn't seem to be able to do this. Is there a way for me to do this?  Edit: Thank you for the suggestions. I am also in need of something similar for general labels — at the moment I am abusing the addtolist option of \includePDF but the objects I'm labelling aren't really figures or tables.


Is there a proof of Gödel's Incompleteness Theorem without self-referential statements?

For the proof of Gödel's Incompleteness Theorem, most versions of proof use basically self-referential statements.   My question is, what if one argues that Gödel's Incompleteness Theorem only matters when a formula makes self-reference possible?  Is there any proof of Incompleteness Theorem that does not rely on self-referential statements?


Which command should I use for textual subscripts in math mode?

Textual subscripts like in W_{total} should be typeset in an upright text font (so that code isn't good practice), as has been  in   . Now there are several ways to achieve this, and I'm somewhat confused which I should use:   W_{\rm total} is nice and short, and appears to work in all circumstances, but I expect LaTeX people will frown upon it :-) Is there any good reason against this? W_{\mathrm{total}} – is this the LaTeX equivalent of the \rm approach? W_{\textnormal{total}}  as total is text and not math ... In , Ulrike Fischer suggests a more complicated approach. Even W_{\operatorname{total}} appears to work, but it seems inappropriate.   Note: I always assume here that amsmath is loaded.  I've already asked some questions above, but my main question is: which of these options is the best practice for textual subscripts?    Let me point out why I haven't mentioned \text, \textrm or \textup above. Those commands (mostly) keep the font of the context they're used in, e.g., in an italic context, \text and \textrm would give italic subscripts, and all three yield bold subscripts in a bold context.  Final note: This question is similar to, but not the same as all those  about the  between , , , ,  that have been asked before. Maybe it's still a duplicate ...


I mount C:/, and I create a link from my Ubuntu desktop to Windows desktop. However, when I restart the computer, mount C again, and double click on the link, I get the error message This link cannot be used because its target “/media/me/209A9ACE9A9AA038/Users/me/Desktop” doesn't exist.  So I guess the 209A9ACE9A9AA038 part is some kind of hash that changes every time I mount C. So how can I make a link that will work persistently?   P.S. : I don't need auto-mount, but I want a link that will work whenever I mount the drive.   Thanks for any help!


Finding statistical significant difference between multiple linear regressions (in R)?


Is there syntactic sugar to shorten the OnPropertyChanged construct?

Is there any way to shorten this copy-paste code? The 26 words that follows contain actually just 4 piece of information:  The visibility, the type, the name of the property and the behavior (which is the same for every property all over the world).  private PrinterInfo _currentConfiguration;  public PrinterInfo CurrentConfiguration {     get { return _currentConfiguration; }     set     {         if (_currentConfiguration != value)         {             _currentConfiguration = value;             OnPropertyChanged("CurrentConfiguration");         }     } }


What's the risk of installing Cyanogen Mod on unsupported phone?

My device is not listed as supported on website . I have ZTE Skate, and some other ZTEs are listed, but not mine.  Is it possible to install the mod on Skate, and what's the risk? If phone is not listed, does it mean, that it was just not tested, or the mod wouldn't work?


does not work in my case.    Terminal:/$ sudo add-apt-repository ppa:/alexlarsson/flatpak Output:Err:17 http://ppa.launchpad.net/alexlarsson/flatpak/ubuntu cosmic Release         404  Not Found [IP: 91.189.95.83 80]


A and B are have a significant correlation. B and C have a significant correlation. Can A and C still not correlate significantly?

I have a dataset where I test for correlation and then if the correlation is significant. And basically my results are A correlates with B significantly and B correlates with C significantly, but A doesnt correlate significantly with C.  It is kind of unintuitive for me, I would have thought that A would also significantly correlate with C. Can anyone explain me why this is perfectly reasonable? I read about this question:   But I dont think thats the exact same scenario here.


Get users by custom field and field type

I'm using Drupal 7.  I'm trying to get all users with custom field field_id:  $users = user_load_multiple(array(), array('field_id' => '123456789')); var_dump($users);   and I got the following error:  PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'base.field_id' in 'where clause': SELECT base.uid AS uid, base.name AS name, base.pass AS pass, base.mail AS mail, base.theme AS theme, base.signature AS signature, base.signature_format AS signature_format, base.created AS created, base.access AS access, base.login AS login, base.status AS status, base.timezone AS timezone, base.language AS language, base.picture AS picture, base.init AS init, base.data AS data FROM {users} base WHERE (base.field_id = :db_condition_placeholder_0) ; Array ( [:db_condition_placeholder_0] => 123456789 ) in DrupalDefaultEntityController->load() (line 191 of C:\wamp\www\my_proj\includes\entity.inc).  My questions: 1. How can get users by custom field ?  2. How to query the field type ? (is it text, int, float, etc..).


I have seen the equation of a wave written as  $y = A \sin (kx – \omega t)$. However sometimes I see it written as $y=A\sin(\omega t-kx).$ Please notify the correct one and provide sufficient reasons.


Converting a Uniform Distribution to a Normal Distribution

How can I convert a uniform distribution (as most random number generators produce, e.g. between 0.0 and 1.0) into a normal distribution? What if I want a mean and standard deviation of my choosing?


Australia is well known for having very strict rules on what food and plant-based materials can be brought into the country, to try to keep the country free of diseases. Some food/animal/plant things can never be brought into the country, some may be if suitably declared, and a very small number are always fine.  What's the situation with chocolates though? I'd quite like to take a nice box of chocolates with me as a gift for someone when I go to Australia, but only if I'll be allowed to take them in. Does anyone know what the rules are for chocolates? Are they a never / usually ok if declared / normally fine thing?


Can we switch terminals at Heathrow (LHR) for shopping only?

We will be flying into and out of Terminal 5 at Heathrow. Now, my wife has taken fancy to a certain duty-free store located at Terminal 3. Assuming we factor in enough time before boarding our outbound flight from Terminal 5, are we allowed to enter Heathrow from Terminal 3, shop and then shuttle over to Terminal 5?


Find 2 x 2 matrices E and F such that EF = - FE?

The questions specifies that EF cannot equal 0. I was just wondering if there was an intuitive way to find an example of this relationship, without having to define each matrix, multiply them out and come up with a few conditions that need to be satisified. Could eiegenvectors and eigenvalues be used? Thanks


Does perception affect damage done to deathclaws?

The advice I've seen with regards to deathclaw defense is that endurance and weapon damage are the items that matter.  I have never seen anyone explicitly say that perception does not affect damage however.


PhD admissions - (undergraduate) credit/no-credit influence on acceptance

I plan on doing a PhD in computational linguistics, which I intend to start in about 3 years. I have one more year of undergraduate study, and 5/6 of the courses remaining are for my minor in Applied Linguistics.  I plan on taking 2/6 of those classes as credit/no-credit (CR/NC) because I'm also working two jobs, and worst-case scenario I'll fall behind in these classes, but not so far behind that I wouldn't pass with 75% (and still receive credit).   that:     Admissions committees do not place as much weight on courses outside the major as courses in the major. If you are a physics major, for instance, a C in a US History course is not going to be as problematic as a C in electricity and magnetism.   These CR/NC courses are not in my majors (Computer Science and French), so I don't think that they would raise flags to admissions committees, but I also don't want admissions to think "oh he seriously slacked off his last year of undergrad!"  Do admissions committees care about CR/NC courses in undergrad?


Which one is correct or is preferable in this context:   We want to be free... and we wait/we've been waiting for that moment our whole life/our whole lives.  We want to be free... and we wait/we've been waiting for that moment all our life/all our lives. We want to be free... and we wait/we've been waiting for that moment all of our life/all of our lives.   Is there any difference in meaning between them, or they can be used interchangeably? Is the word "of" optional in this instance?


Is there any ways to copy all file to one specific sub-folder under the same parent-folder?

So for example i have one folder called "test". Inside that folder, i created one another folder called "player" and a lot of text file, let's say 50 files.  [root@ip-10-0-7-70 test]# ls kaka.txt  player  rooney.txt   Now i want to move all of that text file into "player" folder. What's the best way to do this?  I tried   cp -r ls | ^egrep 'player'   but it didn't work.


How to switch screen unlock from Pattern to Slide

On my Nexus 7 2013 Wi-Fi with Android 5.0.1 Lollipop I used the Slide setting for the lock screen. To experiment with a VPN, I switched to pattern lock.  After deleting the VPN entry I had created, I tried to switch back to Slide. However, the Slide and None options are grayed out and unusable under Settings -> Security -> Screen lock. Only the Pattern, PIN, and Password options are available.  How can I switch from Pattern to Slide?


i have a question why we use <!doctype HTML> outside of <HTML> tag? and don't use inside it?


How can an observer know that he is in an accelerating reference frame?

Question: Could a mechanical experiment be performed in a given reference frame which would reveal the information about the acceleration of that frame relative to an inertial one?  My Guess: I have assumed that the observer in accelerating frame has no contact with any observer in inertial frame. Because if he did, both the observers may simply measure the acceleration of some accelerating object with respect to their frames and conclude that the measured values of accelerations are unequal.  Assuming the isolation of the observer in accelerating frame, now, Newton's laws of motion cannot be applied in an accelerating frame (I know they can be applied provided we introduce fictitious forces but suppose the observer does not do so in his calculations).   So I think one of the experiments can be: we measure the net momenta of two masses before and after a head-on collision. If the two net momenta happen to be equal, the frame is inertial otherwise it is accelerating  Does this reasoning make sense?


How would I make this PHP Script SQL Injection Proof?

<?php   $conn = mysql_connect("localhost", "root", "") or die ('Error connecting to MySQL!'); mysql_select_db("aspire");   $earnedpoints = false; $account = $_POST['name']; $account = mysql_real_escape_string($account);   if ($account == "") {     echo 'Enter an account name!';     exit(); }   $ip = $_SERVER['REMOTE_ADDR']; $time = time();   $query = mysql_query("SELECT *, SUM(`times`) as amount FROM votingrecords WHERE account='$account' OR ip='$ip'"); $lasttime = mysql_fetch_array($query); $amount = $lasttime['amount']; $insertnew = false;     if ($amount == "") {     $insertnew = true; } $timecalc = $time - $lasttime['date']; if (!$insertnew) {     if ($timecalc < 21600) {           echo ' Hello '. $account .' you have already voted with this account ('. $account .') or IP ('. $ip .') in the last 6 hours!';         echo ' Last voted on: '. date('M d\, h:i:s A', $lasttime['date']) .'';         echo '';         echo '';         echo '<meta HTTP-EQUIV="REFRESH" content="10; url=/">';         echo '';         echo '';         echo '

You will be redirected to the main website in 10 seconds.';         echo '';         echo '';         exit();     } else {                         $update = mysql_query("UPDATE votingrecords SET account='$account', date='$time', times=times+1 WHERE ip='$ip'");             if (!$update) {                 $message  = 'Invalid query: ' . mysql_error() . "\n";                 $message .= 'Whole query: ' . $update;                 die($message);             } else {                 $earnedpoints = true;             }         } } else {     $success = mysql_query("INSERT INTO votingrecords (`account`, `ip`, `date`, `times`) VALUES ('$account', '$ip', '$time', 1)");     if (!$success) {             $message  = 'Invalid query: ' . mysql_error() . "\n";             $message .= 'Whole query: ' . $success;             die($message);     } else {         $earnedpoints = true;     } }         if ($earnedpoints) {     $points = mysql_query("UPDATE accounts SET votepoints = votepoints + 2 WHERE name='$account'");                     if (!$points) {               $message  = 'Invalid query: ' . mysql_error() . "\n";             $message .= 'Whole query: ' . $query;             die($message);     }     mysql_close($conn);     echo '';     echo '';     echo '<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.gtop100.com/in.php?site=80994">';     echo '';     echo ''; } else {     echo 'There was an error processing your request.';     exit(); } ?>     Hey everyone,  I'm very inexperienced with PHP scripting and I've been told that my script is vulnerable to SQL injection? But I'm not sure how I would make it to be SQL injection proof since I'm not much experienced in that field and i'm afraid I might mess up the code.  Could anyone help me with this? I would greatly appreciate it.


Why is the unit for capacitance so large?

Most capacitors are in the µF, nF and pF range. I know there are some special ones that go that high, but at the time faraday was around, and the unit was named after him, they didn't have such a thing. Why is the unit so large if we rarely use caps with that high of a value?


Can I be admitted into a PhD program with non-thesis MS degree?

If I do a non-thesis MS program in statistics, will I be eligible for an admission in to a PhD program in Statistics later in my life? The MS program I am looking into is a non-thesis program but I still have to complete a research project requirement (which involves oral presentation as well as some form of a written report) towards the end of the program...I am still not sure if it can lead to a PhD program though.  Thanks!


I saw the two identities  $$ -\log(\sin(x))=\sum_{k=1}^\infty\frac{\cos(2kx)}{k}+\log(2) $$ and $$ -\log(\cos(x))=\sum_{k=1}^\infty(-1)^k\frac{\cos(2kx)}{k}+\log(2) $$ here: .  How can one prove these two identities?


Verify the string " 2 Sep 2018 09:00 " is a valid date format

I know there are multiple questions asking to verify a valid date. But I was unable to find out the exact format. So please do not mark this as a duplicate.  I have a date returned as a string E.g., 2 Sep 2018 09:00 in my web page. I need to verify this is a date as a part of my selenium tests. Appreciate if someone could help me to verify this as a valid date format in Java.  Thanks


$E\subset C[0,1]$ closed with functions of $C^1$ is finite dimensional

I want to prove that if $E$ is a closed linear subspace of $C[0,1]$ and the elements of $E$ are functions of class $C^1$, then $E$ is finite dimensional. I have tried to prove that the unit ball in $E$ is compact, but I don't know how to do it. Can somebody help me? Thank you very much!