Average distance between two points on a unit square.

Consider the unit square $S =[0,1]\times[0,1]$.  I'm interested in the average distance between random points in the square.  Let $ \mathbf{a} = \left< x_1,y_1 \right>$ and  $ \mathbf{b} = \left< x_2,y_2 \right>$ be random points in the unit square.  By random, I mean that $x_i$ and $y_i$ are uniformly distributed on $[0,1]$.  The normal approach is to use multiple integration to determine the average value of the distance between $\mathbf{b}$ and $\mathbf{a}$.  I would like to try another approach.  $\mathbf{a}$ and $\mathbf{b}$ are random vectors, and each element has known distribution. So, the vector between them also has known distribution.  The difference between two uniformly random variables has triangular distribution.    So $\mathbf{c} = \mathbf{b} - \mathbf{a}$.  Then, the average distance is the expectation of $\lVert \mathbf{c} \rVert$.  Perhaps it would be easier to calculate the expectation of $\lVert \mathbf{c} \rVert^2$.  In any case, I am not sure how to calculate the expectation for $\lVert \mathbf{c} \rVert^2$.  Can someone guide me in the right direction?


Receiving error when referencing the variable assigned to getElementById

My html code <!DOCTYPE html>    <meta charset="UTF-8">  <meta name="viewport" content="width=device-width, initial-scale=1.0">   <link rel="stylesheet" href="style.css">     <title>The Chat App</title>

WELCOME TO THE CHAT APP,
 WHERE YOU CAN CHAT ONLINE!

      Vanilla js code window.onload = function(){const heading = document.getElementById("heading")}; console.log(heading.value);  This code causes this error: app.js:6 Uncaught ReferenceError: heading is not defined at app.js:6 Any help would be much appreciated.


Show that this sequence converges to $0$

The Question For any fixed $k'\in\mathbb{N}$, for any $a\in\mathbb{R}^+$ and for any $n\in\mathbb{N}$, define the function $f:\mathbb{N}\to\mathbb{R}$ given by \begin{equation*}  x_n=f(n)=\frac{n^{k'}}{(1+a)^n}.   \end{equation*} I want to show that $(x_n)$ converges to $0$. For clarification, I don't include $0$ in $\mathbb{N}$. Attempts at Solution For any $\varepsilon>0$, I need to find a $N\in\mathbb{N}$ such that for any integer $n \geq \mathbb{N}$, the following holds: \begin{equation*}  \left | \,\frac{n^{k'}}{(1+a)^n}-0 \, \right | <\varepsilon.   \end{equation*} Since $x_m>0$ for any $m\in\mathbb{N}$, I can drop the absolute value signs and we get \begin{equation*}  \frac{n^{k'}}{(1+a)^n}<\varepsilon.   \end{equation*} So, I considered $x^{k'}=\varepsilon(1+a)^x$ for any $x\in\mathbb{R}^+$. That equation does not have a closed form solution I think, so I will denote the bigger root of that as $x^*$. Now $N=\lceil x^* \rceil$ should be a candidate for the convergence definition. This is where I get stuck: how do I put that $N$ back to the convergence definition and show that $N$ really is a good candidate? I wonder if there are any elegant proofs for this; mine is too ugly. Also, I have a simple inequality that should play a role in this but I do not see how it fits. (My "proof" did not use the inequality) For any fixed $k'\in\mathbb{N}$ and for any $n\geq k'$, consider $(1+a)^n$. \begin{align*}  (1+a)^n&=\sum_{k=0}^{n}\binom{n}{k}a^k1^{n-k}\\  &=\sum_{k=0}^{k'-1}\binom{n}{k}a^k+\binom{n}{k'}a^{k'}+\sum_{k=k'+1}^{n}\binom{n}{k}a^k\\  &>\sum_{k=0}^{k'-1}\binom{n}{k}0^k +\binom{n}{k'}a^{k'}+ \sum_{k=k'+1}^{n}\binom{n}{k}0^k\\  &=\binom{n}{k'}a^{k'}.   \end{align*} Thanks in advance!!


Attempting to install steam and optimized drivers from Oibaf PPA, I was faced with a loop at login, where entering my credentials would briefly display a command-line and then return the login screen with fields emptied.


How does the size of insert affects the rate of Homologous Recombination in yeast?

When performing genetic knockouts in yeast using homologous recombination to replace a target gene sequence via a vector DNA, does the region between the flanking regions in the vector have to be the same length as the site of recombination in the host cell's gene?


Confidence intervals for a joint probability distribution

I've asked this question before but it was marked as a duplicate with  that didn't answer my question. My question is as follows: I have a 2-D probability distribution along the lines of this plot:  I know how to find the confidence interval for a 1-D probability distribution (by the definition of standard deviation or the 68-95-99 rule) but I don't know how to generalize that to 2-D to get a confidence region. I've been looking at Principle Component Analysis and covariance matrices, but most explanations or examples are for a 2D distribution of random vectors rather than a probability distribution so I'm not quite sure how to generalize it. How would I find the 1-$\sigma$/2-$\sigma$ regions for a 2D probability distribution? The question that was linked refers to random vectors, whereas what I have is a probability distribution from data, with a continuous 2-D probability function as opposed to random vectors. As such, I cannot find the covariance matrix between two vectors because I DO NOT HAVE TWO VECTORS, and therefore cannot apply the process described in the linked question. If I were to analogize to 1-D, my issue is the difference between the standard deviation for a random distribution of samples, $\sigma=\sqrt{\frac{1}{N}\sum (x_{i}-\bar{x})^{2}}$, and the standard deviation for a probability distribution $\sigma=\sqrt{\sum (x_{i}-\bar{x})^{2}P(x_{i})}$. As far as I can tell, the method involving the covariance matrix is a generalization of the former. I need a generalization of the latter. If I'm wrong in my understanding, please let me know, but I don't think the other question gives me what I need.


Sometimes after I grant a title to a landless councilor, he becomes ineligible for the seat for a while: why?

I've noticed several times that if I have a landless council member and I grant him a landed title, his seat becomes vacant and I cannot appoint him again.  After an unspecified amount of time he becomes eligible again.  Why is that? Is that a bug or is there a reason for that?


Irreducibility of $x^{2^n}+x+1$ over $\mathbb{Z}_2$

I'm trying to solve this problem from Hungerford V.5.9.  I have to show $x^{2^n}+x+1$ is irreducible over $\mathbb{Z}_2$ if n>2.  I would appreciate some hint cause I don't know how to start with it.Thanks!  EDITED: This question is completely different to   The reason is obvious, i m asking if this polynomial is irreducible. In the other question, we assume it is reducible without showing it.


Is it possible for a desktop computer to use a laptop's WiFi?

Given a curious setup, my desktop computer is now far from an accessible connection to the internet as it lacks WiFi, yet I do have a spare laptop lying around with WiFi capabilities. Is it possible to use the available WiFi connection in my desktop, through the laptop?   I've seen a couple of these questions thus far, but none have been specific to Windows 8.1, the operating system on both computers.  Thanks!


Without a calculator, find $\cos\frac{\pi}{3}$.   I started AP Calc today. I’m a sophomore and I skipped precalc and, well, I am utterly confused.  Can someone please teach me how to solve this from the basics by hand? Thank you so much!


Destructors of builtin types (int, char etc..)

In C++ the following code gives a compiler error:  void destruct1 (int * item) {   item->~int(); }   This code is nearly the same, I just typedef the int to another type and something magic happens:  typedef int myint;  void destruct2 (myint * item) {   item->~myint(); }   Why does the second code work? Does an int get a destructor just because it has been typedefed?  In case you wonder why one ever would like to do this: This comes from refactoring C++ code. We're removing the standard heap and replacing it with selfmade pools. This requires us to call placement-new and the destructors. I know that calling destructors for primitive types is useless, but we want them in the code nevertheless in case we later replace PODs with real classes.  Finding out that naked int's don't work but typedefed ones do was quite a surprise.  Btw - I have a solution that involves template-functions. We just typedef inside the template and everything is fine.


How to remove app which is greyed out, can't be deleted, won't open and doesn't appear in apps list?

I have this app with a greyed out icon which I'm trying to delete.    I tap and hold, and it asks me if I want to delete it and its data. I confirm and nothing happens.  I try to open it and nothing happens.  I go to Settings>General>Usage and it's not in the list.  I reboot the device and it's still here.  Is there another way to force deletion of this (ghost) app?


I'm new to Blender and trying to make a 3D model out of a 2D image. I made an inkscape 2D trace and saved as .svg file. When trying to import it to Blender, it does not show anything in the editor.  Any possible reasons you could help me with ?


Can not paste into Gnome Terminal from Netbeans

When I copy something from another window then my terminal and want to paste it into my terminal (on the command line) the paste option in Edit is grayed out. Ctrl+V does not work in GNOME Terminal 2.29.6.  I try to copy form netbeans into a terminal. If I paste it somewhere else, in gedit for example, it gets pasted. So it is copied.   Using Ctrl+Shift+C/V does not work.  Is this a settings of from some sort?


Limit point of poles is essential singularity? Am I speaking nonsense?

The following is exercise 15 in section V.1 of Conway's Functions of One Complex Variable ("Classification of Singularities"). I'm currently studying for a complex analysis qualifying exam and this has appeared in the past.     Let $f$ be analytic in $G=\{z:0&lt|z-a|&ltr\}$ except that there is a sequence of poles $\{a_n\}$ in $G$ with $a_n\rightarrow a$. Show that for any $w$ in $\mathbb{C}$ there is a sequence $\{z_n\}$ in $G$ with $a=\lim z_n$ and $w=\lim f(z)$.   The conclusion makes me want to apply the Casorati-Weirstrass theorem. However, the singularity at $a$ is not isolated. As far as I know, an essential singularity is a particular type of isolated singularity. Am I wrong about this?  Any help would be greatly appreciated.


Can't get this jQuery snippet to work with Wordpress

I'm using this little gem from CSS Tricks to apply a class to elements once they appear in the viewport window, but it doesn't seem to be working with my WP based site...  (function($) {  $.fn.visible = function(partial) {    var $t            = $(this),       $w            = $(window),       viewTop       = $w.scrollTop(),       viewBottom    = viewTop + $w.height(),       _top          = $t.offset().top,       _bottom       = _top + $t.height(),       compareTop    = partial === true ? _bottom : _top,       compareBottom = partial === true ? _top : _bottom;  return ((compareBottom <= viewBottom) && (compareTop >= viewTop));  };  })(jQuery);  var win = $(window); var allMods = $(".work-thumb");  allMods.each(function(i, el) {     var el = $(el);     if (el.visible(true)) {         el.addClass("already-visible");      }  });  win.scroll(function(event) {  allMods.each(function(i, el) {     var el = $(el);     if (el.visible(true)) {     el.addClass("come-in");  }  });  });   I can't for the life of me figure out what's going wrong.  Anyone have any ideas?


I need to complete this numbering item enviroment from roman arabic to \hgnum in   \begin{enumerate}[ label=\roman{enumi}--\arabic{enumi}--\!\!\!\!\!\babyloniannum{\value{enumi}}\!\!\!--\large\ngg\symbol{\numexpr "13000+\value{enumi}}--\hgnum{enumi}]   Here is the MWE:   \documentclass{article}   \usepackage{amssymb,amsmath}   \usepackage{tikz-cd}   \usepackage{fontspec}   \usepackage[czech]{babel} \usepackage{mypackage}     \usepackage{babyloniannum} %\setfont{NewGardiner}  \newfontfamily\ngg{Segoe UI Historic}   \MakeRobust\babyloniannum \MakeRobust\hgnum \usepackage{enumitem}      \begin{document}    \underline{motto:}{ každý den $\pm$ nový princip }\hfill{$\square$} \\  \\  \begin{enumerate}[  label=\roman{enumi}--\arabic{enumi}--\!\!\!  \!\!\babyloniannum{\value{enumi}}\!\!\!--\large\ngg\symbol{\numexpr  "13000+\value{enumi}}--\hgnum{\value{enumi}}]     \item rozhodovat se na hraně zajímavého \GoodBye{A}    \item *vždycky to tam máš (data v matematice) K{\hg \hgunits{5}}L    \item svoboda a volnost \item \hgnum{152123} \item  \end{enumerate} \end{document}


Unknown VBS script on my browser download folder

There is a _zipit.vbs on my download folder.  I use Firefox  The code opened in notepad below.  This file has been on my computer for 6 months. I dont know where it came from but googling seems to show that it's used at other places to zip things.  Does anyone know if this is part of a malware or if another process somewhere is calling it?  How do I find out if there are other processes that use this?       Set objArgs = WScript.Arguments     InputFolder = objArgs(0)     ZipFile = objArgs(1)     CreateObject("Scripting.FileSystemObject").CreateTextFile(ZipFile,       True).Write "PK" & Chr(5) & Chr(6) & String(18, vbNullChar)     Set objShell = CreateObject("Shell.Application")     Set source = objShell.NameSpace(InputFolder).Items     objShell.NameSpace(ZipFile).CopyHere(source)     wScript.Sleep 2000    I googled the SHA256 of it and it took it to    where it was part of another malware.    Any advice on what to do now?   Antivirus scans dont show up anything.


I am trying to change the text of an  link tag when it is clicked using jquery. The trick is that the  tag is created with jquery and does not exist on page load.  here's the fiddle:   the jquery looks like this:   $(document).ready(function () {  $("#round-button").click(function () {      // do something     $("#button-text").text("new text");  });  });   The a tag looks like this:
Blah!
  For some reason the code does not work. It works on other elements such as a button and even other  elements but on the "#roud-button" in particular it does not.  I have heard this is a commonish problem but when i tried to implement some of the usual solutions it did not work.  Any thoughts?  thanks


I cannot for some reason move a plugin folder for my server into /usr/lib/name  I get an error saying permission denied... I need this plugin to fix my issues... Does anyone know how I can get permission to perform this task?


I'm trying to compress a folder (/var/www/) to ~/www_backups/$time.tar where $time is the current date.  This is what I have:  cd /var/www && sudo tar -czf ~/www_backups $time"   I am completely lost and I've been at this for hours now. Not sure if -czf is correct. I simply want to copy all of the content in /var/www into a $time.tar file, and I want to maintain the file permissions for all of the files. Can anyone help me out?


I tried to build an openstack deployment from scratch starting with 7 physical servers and Ubuntu 16.04.  I've had no issues using 14.04 on the same setup.    After the initial setup in MAAS 2.0 beta3 (which is substantially different than 1.99) I had my machines in a ready state, installed openstack with apt-get.  When I go to run openstack-install, it complains that I don't have openstack installed, when I try to apt-get openstack again, it shows that I already have the most up to date version.  Is there something I'm missing?


Getting a USB PD 3.0 port to output a constant voltage

I am trying to use this  as a simple constant voltage source to power a compact adjustable DC-DC converter.   www.amazon.com/Charger-RAVPower-Adapter-Compatible-MacBook/dp/B07PLR7T1M  I want the high power density that these new GaN transistor converters have, but the only ones I've found have only a USB-like output rather than a simple constant voltage that I want to power my DC-DC converter. Is there a way to make this AC adaptor output just a constant 20V?  I have tried to research how the PD 3.0 system decides what voltage and current limit to supply, but I have not understood an explanation for what I want since it is not what the USB PD system was designed for. I am thinking the solution would involve connecting certain value resistors to certain pins in the connector to signal the adaptor to output a constant voltage. Can any USB experts help me?


net use command works in command prompt, but not in bat file

It's a small laboratory network that connects to another network via an FTP server.  FTP server is managed by the other network.  This lab network is basically 2 clients and one server with several other IP devices connected.  This lab server has Active Directory installed on it.  We have an account on each network. The names of these acct's are the same for each network, and they have the same password.  Password does have a % sign and a $ sign in it.  Trying to map drive at startup on the lab server to point to the FTP server.  Lab server is logged in with local admin acct.  Command I'm using to map drive: net use j: \x.x.x.x\LabTransfer /user:\username "password"   This command will work when typed in a command prompt; BUT fails to run when ran in a .bat file or .cmd file Error message: "System error 86 has occured. The specified password is not correct. Why would the net use command work at a command prompt and not in the .bat file?


repetition and character classes in regular expression

You can use character classes to match a range of characters rather than an exact match like this:  > str = "Daniel" > match = /A-Za-z/.match str => nil > match = /[A-Za-z]/.match str => #<MatchData "D">   The first example returned nil because "Daniel" does not match exactly to "A-Za-z". But the second example uses a character class where '-' has special meaning where it matches a range. So the regex engine checks the string and stops at the first occurance of a match, which is 'D' in this case.  Since the + modifier matches one or more occurances, I can return the full string this way:  > match = /[A-Za-z]+/.match str => #<MatchData "Daniel">   match[0] will provide the full string "Daniel" because the regex matched one or more occurences of essentially every letter in the alphabet.   With that knowledge, then the engine should also be able to match ALL a's in a string. But it doesn't:  > str = "Daaniaal" > match = /[a]+/.match str => #<MatchData "aa">   It seemed to stop after it matched the first two a's, even I used + modifier to match one or MORE occurances. Would have expected a result like "aaaa". How come this doesn't work?


I've been messing around with this complex function visualizer:   The picture it shows for $f(z) = z^z$ is pretty crazy, so I was wondering: is this function holomorphic?  In the real case we'd find the derivative of $f(x) = x^x$ by taking the log of both sides and applying the chain rule. Can we still do that here?


How to use dynamic variable in regExp using javascript?

I know this question already has an answer. I have read this [answer][1]. But it doesn't work for me. Since I am new to regEx and js, I didn't understand why they use these kinds of code like below for passing parameter.   var replace = "regex"; var re = new RegExp(replace,"g");   I have attached my code which I wrote in JSP. I used bootstrap validator. Please find it below  /* Get the domain name from the controller */   var domainName = ${domainName}                    /*Validation part*/            email: {                     trigger: 'blur',                     validators: {                         notEmpty: {                             message: 'The email address is required'                         },                         regexp: {                             regexp : /"^([\w-\.]+)@" + domainName/,                             message: 'The domain name is wrong and your domain name is: ' + domainName                         }                     }                 }   Here I have written regexp as /"^([\w-.]+)@" + domainName/. In message I have written the variable name as domainName. So the message has been shown in the GUI. I need to know how to pass the variable (domainName) to regEx. Please explain how to do that?  EDIT 1: If I hardcode regEx like this, it works. But hardcoding is not great idea.             regexp : /^([\w-\.]+)@(example.com|example1.com|uk.co|gmail.com)$/,   ANSWER: I solved this issue.  Once I got the domain name, I have divided the regex and domain name in separate variables and concatenated them in variable(pattern).      var domainName = ${domainName}          const pattern1 = String.raw`([\w-\.]+)`;         const pattern2 = (domainName);         const pattern = new RegExp("^" + pattern1 + "@" + pattern2 + "$");   I have mentioned the variable "pattern" in validation part and its worked successfully.                  email: {                     trigger: 'blur',                     validators: {                         notEmpty: {                             message: 'The email address is required and cannot be empty'                         },                         regexp: {                             regexp : pattern,                             message: 'The domain name is wrong and your domain name is: ' + domainName                          }                      }                 },    [1]: https://stackoverflow.com/questions/494035/how-do-you-use-a-variable-in-a-regular-expression


I have trouble when I use the command \cal{B} , sometime the content after this command  will be change to arrow or triangle or similar unwanted symbol . this is the code:-  \documentclass{article} \begin{document} \cal{B}=(b_i)$ \end{document}   any help appricated


Why does Oracle 9i treat an empty string as NULL?

I know that it does consider ' ' as NULL, but that doesn't do much to tell me why this is the case.  As I understand the SQL specifications, ' ' is not the same as NULL -- one is a valid datum, and the other is indicating the absence of that same information.  Feel free to speculate, but please indicate if that's the case.  If there's anyone from Oracle who can comment on it, that'd be fantastic!


How to interprete the following summerized data of a regression model?

Pridemore and Freilich analyzed homicide victimization rates by state for white non-hispanics. Here is the summarization of the regression model.   variable          Intercept RD    PS    YOUNG  DIV     UN    SOUTH beta               -5.230   0.109 1.758 18.293 5.710   5.710 0.257 stand.coef.                0.302 0.216  0.293 0.524   0.118 0.260 p.value            0.001    0.021 0.014 <0.001 <0.001  0.129 0.010          Where, RD is a measure of deprivation, PS is a measure of population structure, DIV is a divorce rate, UN is unemployment rate, SOUTH is a dummy variable that is 1 for a collection of 16 southern states.   The author tells from the summarization, "White non-hispanic rates remained significantly higher in the south when controlling for the covariates."   Now, the question is,  - How the authors reached this conclusion from this regression.  - Do I need to check any assumptions before accepting this conclusion as valid? If so, then what are those assumptions?  I appreciate if I would get a full explanation from this question.


How do we decide the direction of angular velocity vector?

I know that the angular velocity vector $\vec{\omega}$ points towards the axis of the circular motion and there is a formula  $$\vec{v}=\vec{\omega} \times \vec{r}$$  I want to know the origin of this formula which governs the direction of $\vec{\omega}$.  And why only this direction, why not the opposite direction?  Is it purely convention or is there some logic behind this?


Adobe Illustrator, two objects, want to subtract one from the other

I have two objects in Illustrator, a black circle and the silhouette of a person (in white). I want to subtract the silhouette from the black circle. So that everything but (what is left of) the black circle is transparent. How do I do this?


Using Vue.js to get the user's IP Address

My website looks up different IP Addresses to see if they are a known threat. I am putting a button in that is linked through Vue.js and on click, I want it to push the user's IP Address to the input box. I am having a lot of trouble trying to get the user's ip address.   In addition, I do not want any jquery since there is an error thrown whenever I try to use it.   This is an abridged version of my js code:  let app = new Vue({     el: '#app',     data: {     term: localStorage.getItem("searchTerm")     },     methods: {      showYourIP()     {       this.term = //User's IP Address     } }});   Html that calls it is:  <button class="button" id="yourIP" @click="showYourIP">Show Your IP</button>   Here is a link to my site so it's easier to understand what I'm trying to do:   You can look through my whole code there by right clicking and inspecting the page if that is easier.


How does an electron absorb or emit light?

It's a common understanding that atoms emit or absorb light when the energy of the photons is equal to the the difference in the energy levels in the atom. What I don't understand is how does an electron absorb light inside an atom? Is it that the atom as a whole absorbs light or the individual electrons absorb the light packets? Also I would like to know, what does one mean when you say that an electron absorbs photon. How does an electron absorb a photon??


How can I determine the current brew package count?

I tried to get the number of available brew packages by running  brew search | wc -l   but I don't know how accurate this really is. What do I need to take into account to get a more correct number?  PS: macports lists 19,889 packages online


Calculate determinant of Vandermonde using specified steps.

$V_n(a_1,a_2\dots, a_n)$ is a $n\times n$ Vandermonde matrix =   $$\left|\begin{array}[cccc]  11&a_1&\cdots&a^{n-1}_1\\ 1&a_2&\cdots&a^{n-1}_2\\ 1&a_3&\cdots&a^{n-1}_3\\ \vdots&\vdots&\ddots&\vdots\\ 1&a_n&\cdots&a_n^{n-1} \end{array}\right|$$  Replace $a_1$ by $x$ so that the first row is $1,x, \dots ,x^{n-1}$  $$V_n(x,a_2\dots, a_n) = \left|\begin{array}[cccc]  11&x&\cdots&x^{n-1}\\ 1&a_2&\cdots&a^{n-1}_2\\ 1&a_3&\cdots&a^{n-1}_3\\ \vdots&\vdots&\ddots&\vdots\\ 1&a_n&\cdots&a_n^{n-1} \end{array}\right|$$  Let $P(x) = V_n(x,a_2\dots, a_n)$.  (a) Show that $P(x)$ is a polynomial in $x$ of degree $\leq n-1$.   $z = 1\det() -x\det() + x^2\det() -\cdots+ (-1)^{n-1}x^{n-1} \cdot \det()$, where each $\det()$ stands for the determinant of a smaller matrix after removing the appropriate columns, rows.   Is this right? But isn't $z$ a polynomial of degree $n$?  (b) Show that $P(x)$ has $n-1$ distinct roots $a_2, \dots a_n$ and therefore has factorization $P(x) = k \prod_{i=2}^n(x-a_i)$ where the constant factor $k$ is the coefficient of $x^{n-1}.$  I'll be honest, I have no clue how to do this. Not even sure where to start. Nor do I know where to start on the rest.  (c) Show that $k = (-1)^{n-1}V_{n-1}(a_2,\dots a_n)$.  (d) Use parts (b) and (c) to deduce the recursion formula $$V_n(a_1, \dots a_n) = \left(\prod_{i=2}^n(a_i-a_1)\right)V_{n-1}(a_2,\dots a_n)$$  (e) Use part (d) to deduce that $V_n(a_1,a_2,\dots a_n) = \prod^n_{1\leq i< j\leq n} (a_j - a_i)$


I'm making pumpkin custard and it calls for 1 can evaporated milk AND 3/4 c.sugar. I have a can of condensed milk. Can I used the condensed milk instead? Add a little milk or water?


I scheduled a cron task:  0 */10 * * * aapa bash /home/aapa/scripts/es_backup.sh &>> /var/log/super/es_backup.log   It is running as logged into syslog:  Dec  4 08:17:01 dexter CRON[15552]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly) Dec  4 09:17:01 dexter CRON[15564]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly) Dec  4 10:00:01 dexter CRON[15573]: (aapa) CMD (bash /home/aapa/scripts/es_backup.sh &>> /var/log/super/es_backup.log) Dec  4 10:17:01 dexter CRON[15706]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)   But there is nothing in the output file (/var/log/super/es_backup.log). I don't think there is any issue in file permissions as the file is created by the same use (aapa).  $ ls -la /var/log/super/es_backup.log -rw-rw-r-- 1 aapa aapa 14215 Dec  4 00:20 /var/log/super/es_backup.log   Also when I ran the same command (bash /home/aapa/scripts/es_backup.sh &>> /var/log/super/es_backup.log) manually the output is indeed written to the log file.  Also the command is completing successfully as I see the backup is complete.  Not a duplicate This is not a duplicate to  as the I am not using sh as suggested in the answers. I am running the command in bash explicitly, so it should not be an issue of &.


Curly braces in text mode using MathTime Pro don't work

I'm trying to insert a curly brace in text mode, and typically I'd do this \{ \}:  However once I include the MathTime Pro font it refuses to work:  \documentclass[12pt]{article}  \usepackage[lite,subscriptcorrection,slantedGreek,nofontinfo]{mtpro2}  \begin{document}     \{test\} \end{document}   The error is:  Missing $ inserted. \{   Is there any workaround for this?


Where can I ask about finding a name for shop?

I'm looking for suggestions for a name for a new baby shop (with kids clothes and accessories).  What Stack Exchange site can I ask about this on?


Does the operator $(\hat{f}\cdot m )^\vee$ maps Schwartz in it self?

Given $m \in L^\infty$ and $\phi \in \mathcal{S}$ a Schwartz function, is it true that $(\hat{f}\cdot m)^\vee$ is a Schwartz function?? I trying to prove this so I could conclude that operator of the form $(\hat{f}\cdot m)^\vee$  maps $\mathcal{S}$ to it self. Attempt: Given $\alpha, \beta$ multi-index, we have to prove that $$\sup_{x \in \mathbb{R^n}}|x^\alpha\partial^\beta(\hat{f}\cdot m)^\vee(x)| < \infty. $$ When $\alpha = 0$, using some properties of Fourier tranform, we get $$\partial^\beta(\hat{f}\cdot m)^\vee(x) = ((2\pi i \xi)^\beta\hat{f}(\xi)m(\xi))^\vee(x) = ((\partial^\beta f)^\wedge\cdot m)^\vee(x).$$ Then, taking the absolute value of the expression above and by definition of inverse Fourier transform, \begin{align*} |\partial^\beta(\hat{f}\cdot m)^\vee(x)| = & \left| \int_\mathbb{R^n} (\partial^\beta f)^\wedge(\xi)m(\xi) e^{2\pi i \xi\cdot x} d\xi  \right| \\ \leq & \int_\mathbb{R^n} |(\partial^\beta f)^\wedge(\xi)||m(\xi)|d\xi \\ \leq &\|m\|_{L^\infty} \int_\mathbb{R^n} |(\partial^\beta f)^\wedge(\xi)|d\xi  \\ =& \|m\|_{L^\infty} \|(\partial^\beta f)^\wedge\|_{L^1}. \end{align*} The $L^1$-norm of $(\partial^\beta f)^\wedge$ is finite, since this is a Schwartz function. My problem is for $\alpha \neq 0$. For simplicity and in view of properties of Fourier transform, I changed $x^\alpha$ for $(-2\pi i x)^\alpha$ and I want to show that the supreme of $|(-2\pi i x)^\alpha \partial^\beta(\hat{f}\cdot m)^\vee(x)|$ over all $x \in \mathbb{R^n}$ is finite: \begin{align*} |(-2\pi i x)^\alpha \partial^\beta(\hat{f}\cdot m)^\vee(x)| =  & |(-2\pi i x)^\alpha ((\partial^\beta f)^\wedge\cdot m)^\vee(x)| \\ = & |[\partial^\alpha((\partial^\beta f)^\wedge \cdot m)]^\vee(x)|. \end{align*} How do I proceed from here?? Does it make sense the derivative $\partial^\alpha((\partial^\beta f)^\wedge \cdot m)$ ??


C# MVC Handle compilation error in views e.g. missing an assembly reference?

My question is regarding handling errors like "missing an assembly reference?" in views specifically layout.cshtml  e.g. if I have some code in Head tag in layout.cshtml  <head>  @{   @{          try         {             var EnableSomething = BusinessLogic.MyBLL.GetSetting("SettingName");         }         catch { }     } }  </head>   This will work properly, but what if someone came and change "MyBLL" to "MyBLL1", in Layout.cshtml or remove the BusinessLogic DLL or change the DLL in a way that "MyBLL" does not exist in that DLL.  If there a way to handle this kind of situation in layout.cshtml itself ? I know this is a strange situation but just wanted to know if there is any way to handle this kind of situation.  Thank you all.


has a rather interesting community list; it seems he joined Mathematics twice. One of the links ends up at a , the  doesn't exist (maybe because it was deleted as no longer welcome).    I can't check whether the account is duplicated on the accounts tab as in  because the  is broken (which reminds me of ).


Is it necessary to play Dark Souls I / II before I play III?

I want to play Dark Souls series. If I play the III before the others. Will I not understand the story (if there is a story, of course) or something else ?


whenever I try to render an image all the props/rigs and sky appear in the final render but the actual scene/environment does not. this is what I'm trying to render:   this is what is rendering:   please help this is for a final year multimedia major project!!!


How to log in to Stack Overflow if I lose my Facebook account?

I'm logged in to Stack Overflow from my Facebook account. Unfortunately Facebook asked me some security questions, and it seems I'm going to lose my account.  My problem is, if I lose it (at that time I can't login to Facebook) then how can I log in to Stack Overflow? If I log out from Stack Overflow I'm going to lose Stack Overflow access too.  Is there anything that I can do to keep access to my Stack Overflow account?


Need to delete a file I accidentally labeled in quotes in Linux

I have a file which I wrote and not thinking put the actual filename in single quotes like this:  'filename'  When I try to remove it using rm -f 'filename' it does not recognize that it is there I get the error:  rm: cannot remove 'filename'. No such file or directory.  Any suggestions?


How to speed up blender animation playback. It is slow

I've been trying to make this animation, and every where I've looked people don't have as low of fps.  I have a 16GB RAM computer with a new graphics card. (I'm able to play Mine craft and blow up a TNT town with Little lag) ( And I'm able to play counter strike at a constant 90 fps )  Example:


Proving that $\lim_{n\to\infty}(\int_{a}^{b}f(x)^ndx)^{1/n} = \max_{x\in [a,b]}f(x)$

I'm trying to prove the following statement:  $$\lim_{n\to\infty}\left(\int_{a}^{b}f(x)^ndx\right)^{1/n} = \max_{x\in [a,b]}f(x)$$  where $[a,b] \subset \mathbb{R} $ and $f$ is non-negative and continuous.  I've tried to prove it in a similar way that we prove that $\displaystyle\lim_{n\to\infty}(a^n+b^n)^{1/n} = b$ if $b>a$.  However, I'm stuck in the end with an iterated limit of the form $\displaystyle\lim_{n\to\infty} \lim_{\epsilon\to 0 } \left(\epsilon^{1/n}\max_{x\in [a,b]}f(x)\right)$.   Is this last expression equal to $\displaystyle\max_{x\in [a,b]}f(x)$? If not, could anyone please give me a hint as to how to go about this proof?


How to pass subarray as refference in Java?

In C++ we pass a subarray to a recursive function and after making changes to the subarray in the recursive function, the changes reflect in the original array. How do I achieve the same in Java as it does not support pointers? E.g., // C++ function  void function(int arr, int n){      if(arr[0]==arr[1]){           //shift arr[1]--arr[n-1] to arr[0]--arr[n-2]                      function(arr+1, n-1); // this is the line which i need help for.      } }


Why didn't Voldemort become the owner of Elder Wand?

I've read the question  and learnt that even Stealing the Elder wand makes a person owner of it.   Then why didn't Voldemort become the owner of elder wand even though he stole it from the tomb of Dumbledore, I know that Harry Potter was the owner of elder wand at the time Voldemort broke into Dumbledores tomb. Even though stealing is stealing.


Two mice heterozygote and black are reproduced. Find the probability of getting the filium dark and heterozygote

Well, here's what I did: P: Aa*Aa  F1: 1/4 AA, 1/2 Aa, 1/4 aa, SO the answer is 1/2, but out teacher did this: AA(1)    Aa(2)    aa(1) and she said we divide the number of filium for the phenotypes number and get 2/3. This is the probability. I don't get it.


Ring with additive group isomorphic to group of units

Is there a Ring $R$ with $(R,+) \cong (R^\times,\cdot)$? If $R$ is finite, clearly only the trivial ring does it (for cardinality reasons). But what about infinite rings? Are there even fields as example?


The following aligned equation gives an error 'Extra }, or forgotten \right.':  \begin{equation} \begin{aligned} U&=\mathbb{R}^{M N}\\ V&=\mathbb{R}^{2 M N}\\ W&=\mathbb{R}^{4 M N}\\ \min_{v\in V} \left\{E_p(v)&=\|\nabla v\|_{W,1}+\lambda \|\rho(v)\|_{U,1} \right\} \end{aligned} \end{equation}   Removing the \left and \right commands avoids the error:  \begin{equation} \begin{aligned} U&=\mathbb{R}^{M N}\\ V&=\mathbb{R}^{2 M N}\\ W&=\mathbb{R}^{4 M N}\\ \min_{v\in V} \{E_p(v)&=\|\nabla v\|_{W,1}+\lambda \|\rho(v)\|_{U,1} \} \end{aligned} \end{equation}   I don't understand why having the alignment marker inside a \left \right command is an error. How do I align an equation with the alignment inside a \left \right command?


I am having issues with my scene. I created a sand dune sort of mesh and everything is all good. I add in an HDRI and then get this:  As you can see, the sand has some sort of weird shading issue which I believe is called "shadow terminator artifacts". I've only seen three solutions:  Up the mesh density (didnt' work, even with my high poly 1mil mesh i got these artifacts) use the shadow terminator removal tool in blender 2.9 (Also didn't work, the shadows became too large) Disable smooth shading. (Did absolutely nothing)  I honestly am confused and have no idea how to fix this. The scene is literally just an HDRI rotated around slightly. One thing i will note, is that the shading issue goes away when i have a more diffuse HDRI (or none at all)  And here is everything in the viewport:  I also have tried switching out the HDRI for something else and still got the artifacts. What else can I try? EDIT: forgot to mention, I don't get this issue when I render with EEVEE.


Wrong pages in biblatex backref link with hyperref

I've encountered the same problem as described in  or  post: I'm using hyperref with biblatex option backref and the created backref links lead to wrong pages. The answers above didn't help. Any help  is appreciated. Here is my MWE, which reproduces the problem:  \documentclass{scrbook}  \usepackage[hyperref=auto, backref=true, style=chem-angew, backend=biber, sortcites=true, chaptertitle=true, doi]{biblatex}  \renewcommand{\cite}{\supercite}  \usepackage[pdftex, bookmarks=true, bookmarksnumbered=true, bookmarksopen=true, hypertexnames=false, breaklinks=true, linkbordercolor={0 0 1}, pdfpagelabels, plainpages=false, pdfencoding=auto, psdextra, pdfborder={0 0 .5}]{hyperref}  \usepackage{filecontents}  \begin{filecontents}{test.bib} @book{A01,   author = {Author, A.},   year = {2001},   title = {Alpha}, } @book{B02,   author = {Buthor, B.},   year = {2002},   title = {Bravo}, } @article{C03,   author = {Cuthor, C.},   year = {2003},   title = {Charlie}, } \end{filecontents}  \addbibresource{test.bib}  \begin{document} \pagenumbering{Roman} \tableofcontents \cleardoublepage \pagenumbering{arabic} \chapter{title} We are citing \cite{A01,C03} and \cite{B02}. \null \chapter{title} \null Now we cite \cite{C03} \printbibliography \end{document}   edit: now plainpages = false (was plainpages = true) in the code hypperref option, as suggested in first link -did't work, either.  edit2: I've tried  answer, which suggested to turn hypertexnames = true and it seems to work, but i'm not sure, if this has unpredictable consequences to my PhD thesis which i'm unable to see right now.


How to set an image generated by update-initramfs to be loaded by default

In my adventures in trying to revert a kernel upgrade (it broke my wifi for some reason), I was able to generate a boot image for the previous kernel (#update-initramfs -c -k 3.11.0-17-generic)  I deleted the newer kernel boot image for good measure (#update-initramfs -d -k 3.11.0-19-generic)  Now every other boot my machine goes into panic mode because it can't find the 3.11.0-19 kernel version, and I have to hard reset, which puts me into boot menu where I can select the proper version.  My question is, how can I make 3.11.0-17-generic my default boot kernel (at least until I figure out what caused the issue with 19 and can upgrade again)  Edit:  For future visitors, images created by update-initramfs -c should be visible in grub (for me its under Advanced Options for Xubuntu). Just follow one of the answers in


I have a here a java swing program that would act as a simple phonebook. i've used single dimension array to hold the inputted values. but when i selected delete to delete a record it would give me and error. i really have no idea about it.  here is the function used to delete the record       public void delete()         {     delname = (String) JOptionPane.showInputDialog(null, "Enter name to                 delete", "Delete", JOptionPane.QUESTION_MESSAGE);      for(int ctr=0; ctr<index; ctr++)     {         if(name[ctr].equals(delname))         {             name[ctr]= "";             name=rem(delname,name);             lisroutnum.remove(ctr);             JOptionPane.showMessageDialog(null, "Contact Deleted!", "Succesful", JOptionPane.INFORMATION_MESSAGE);             setVisible(true);         }         else         {             JOptionPane.showMessageDialog(null, "Name doesn't Exist!", "Error", JOptionPane.ERROR_MESSAGE);             setVisible(true);         }     } }`   here is the rem function      public String[] rem(String delname, String[] name) {     int x= name.length-1, i=0;     String[] newname = new String[x];      for(int c=0; c< x; c++)     {         if(!name[c].equals(delname))         {             newname[c]= name[c];         }     }     return newname; }   here is the error  Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at Project.Project.rem(Project.java:263) at Project.Project.delete(Project.java:243) at Project.Project.actionPerformed(Project.java:375) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252) at java.awt.Component.processMouseEvent(Component.java:6527) at javax.swing.JComponent.processMouseEvent(JComponent.java:3321) at java.awt.Component.processEvent(Component.java:6292) at java.awt.Container.processEvent(Container.java:2234) at java.awt.Component.dispatchEventImpl(Component.java:4883) at java.awt.Container.dispatchEventImpl(Container.java:2292) at java.awt.Component.dispatchEvent(Component.java:4705) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4533) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462) at java.awt.Container.dispatchEventImpl(Container.java:2278) at java.awt.Window.dispatchEventImpl(Window.java:2739) at java.awt.Component.dispatchEvent(Component.java:4705) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:746) at java.awt.EventQueue.access$400(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:697) at java.awt.EventQueue$3.run(EventQueue.java:691) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86) at java.awt.EventQueue$4.run(EventQueue.java:719) at java.awt.EventQueue$4.run(EventQueue.java:717) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75) at java.awt.EventQueue.dispatchEvent(EventQueue.java:716) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)   Please help me out!


When exactly do I get comment notifications?

Incredibly, I couldn't find a single, consolidated and up-to-date answer for this question. All I found was people complaining about missing notifications, discussions about changes in the notification system, and questions about @replies.  So here is what I think I know:   If I ask a question, I get notified about all comments, on the question or on any answer. If I write an answer, I get notified about all comments on my answer. Otherwise, I'm only notified if the comment contains a @reference to me   Is that really how it works? Do I get automatic notifications in any other situation?


I would like to know how to change the name of a txt file inside a directory.  I know that I can  mv test123 test456, but that only changes the name in the current directory.  What if I want to change the name of a txt file inside /home/folder1/?


Should not we apply pseudo-forces all the time as the Earth is a non-inertial frame of reference?

Clearly, the Earth is accelerating (as it has centripetal acceleration), and thus it is a non-inertial frame of reference. Then, why don't we use pseudo forces all the time? My teachers told me that the effect produced by the centripetal acceleration of the Earth on our calculations is negligible and hence we can safely neglect pseudo force. But how? I want rigorous proof with examples that show exactly how much we are compensating in exchange for neglecting that the Earth is a non-inertial frame of reference.


What is the Latest Version under WinXP? I download the Installer and it says WinXP not supported.  Please tell me what latest or most-good Version of Blender is running under WinXP?   Thank you!


What happens when merging random variables in Dirichlet distribution?

Imagine that  $$ X_1,\dots,X_k \sim \mathrm{Dirichlet}(\alpha_1,\dots,\alpha_k) $$  Since $x_i \in (0,1)$ for all $x_i$ and $\sum_{i=1}^k x_i = 1$, then $x_i$'s follow the first two axioms of probability and Dirichlet can be (and is) used as "distribution over distributions". Intuitively it should follow that  $$ X_1,\dots,X_{k-2},X_{k-1}+X_k \sim \mathrm{Dirichlet}(\alpha_1,\dots,\alpha_{k-2}, \alpha_{k-1}+\alpha_k) $$  since the properties of $x_i$'s would not change and the total "mass" of $\alpha_i$'s would not change.  But it's probability density function is  $$ f(x_1,\dots,x_k) \propto \prod_{i=1}^k x_i^{\alpha_i - 1}$$  and  $$ x_{k-1}^{\alpha_{k-1} - 1} \times x_k^{\alpha_k - 1} \ne (x_{k-1} + x_k)^{\alpha_{k-1} + \alpha_k - 1} $$  So merging of random variables in Dirichlet distribution does not seem lead to Dirichlet distribution over $k-1$ variables. What does it lead to?


me pasa el siguiente problema, al intentar abrir la terminal, desde el menú no abre, y desde Alt+F2 tampoco, al intentar abrir desde LXTerminal sale el siguiente error:  desktop:~$ gnome-terminal # Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error al llamar StartSereviceByName para org.gnome.Terminal: Se alcanzó el tiempo de expiración   Usando sudo gnome-terminal si la abre como root. Intenté algunas soluciones que encontré en foros sobre este problema, como re instalar el terminal, pero no encontré ninguno que sea exactamente el mismo error.


When a ball is thrown upwards, we initially apply a force $F=ma$ vertically upwards and it raises to a height $h$. A force $F=mg$ acts vertically downward (i. e $F=-mg$)  due to gravity and it causes it to stop moving higher once. If at that point, we consider the energy stored in ball, then it is $mgh$. As energy = work, and work=force*displacement, then why is work not equal to $mah$, or $-mgh$ as force $mg$ is never applied at any time. Maybe I am misunderstanding concept of work, and I too read that work and force should not be confused, but what's the logic here?


How do I find the longitude of the subsolar point?

On December 21, 2018 at 2:23pm PST I want to be standing as directly under the sun as humanly possible. Obviously the latitude of that point will be the Tropic of Capricorn. Assuming I have the right ascension for the sun at that time how would I know what line of longitude to stand on? Please use simple non-technical terms if possible.


Cannot set VLC as default through Get Info

I cannot set VLC as default.   I know about right-click → 'Get Info' but there is no drop-down to change the default so it's not possible to change it. I'm not sure why this is but I know from searching around that I'm not alone.


re-assigning shared_ptr from within object pointed to

consider the following code  struct base {   virtual void bar(std::shared_ptr<base>&) = 0; };  struct foo1 : base { /* ... */ };  struct foo2 : base {   void bar(std::shared_ptr<base>&obj)   {     // ...     if(some_condition)       obj = std::make_shared<foo1>();  // re-assign obj     // ...   } };  std::shared_ptr<base> x = std::make_shared<foo2>(); x->bar(x);                             // last line   Does this code envoke UB? (note: the re-assigning of obj will destroy the this object of call foo2::bar when called from the last line). If no data of bar are accessed thereafter, is the code still okay?  An alternative way of coding this would be  struct base {   virtual std::shared_ptr<base> bar(std::shared_ptr<base>) = 0; }; struct foo1 : base { /* ... */ };  struct foo2 : base {   std::shared_ptr<base> bar(std::shared_ptr<base> obj)   {     // ...     if(some_condition)       obj = std::make_shared<foo1>();     // ...     return obj;   } };  std::shared_ptr<base> x = std::make_shared<foo2>(); x=x->bar(x);   which should be safe in any case, shouldn't it? Is the extra copying in this code a performance issue?    edit. After Chris answer, I had a look at , which allows the following alternative implementation  struct base : std::enable_shared_from_this<base> {   virtual std::shared_ptr<base> bar() = 0; }; struct foo1 : base { /* ... */ };  struct foo2 : base {   std::shared_ptr<base> bar()   {     auto obj = shared_from_this();     if(some_condition)       obj = std::make_shared<foo1>();     // ...     return obj;   } };  std::shared_ptr<base> x = std::make_shared<foo2>(); x=x->bar();


I know theres probably a few different threads on this, but i feel this maybe a specific case...  I have somehow corrupted my copy of windows, as it now won't boot, and when i try to restore it, the restore file is corrupted. On top of this i cannot reset windows, as it constantly tells me there is a problem. When i was trying to find a way to boot my laptop, i was going through all the options, and realised that ubuntu was still on my laptop, although it does not ask my to boot into ubuntu when turning on. To get to ubuntu i have to press F11 when turning on my laptop, and after that click to boot from a USB or HDD etc... In that option menu is ubuntu, which when selected loads up. I now want to reset/remove my copy of windows but i'm not sure how i can do that from ubuntu.   Sorry if this is a little confusing, i'm struggling to describe it.  Thanks in advance.


Getting custom Wordpress pages with url parameters indexed by google

I have a Wordpress site set up that connects to a third party db to display data (widgets).  I have one template set up that will display a list of widgets:   Clicking through on a particular widget will bring you to a page like this:   So the widget information is queried based on the url arguments supplied.  This works well, but I'm having trouble getting my Google Custom Search (or Google at all) to pick up on these pages. Ideally, I'd like it to index all the widgets listed on the .../widgets list.  In the Google Search Console, I can navigate to Crawl > URL Parameters and I see my widget parameters listed, with my total number of widgets. I click edit, and made sure to select that it specifies content, and that Googlebot should crawl every url.  So, based on that it seems Googlebot is aware of these pages, but I cannot get them to appear in search results. Is there anything I've missed?


How to check who or what is using up the RAM?

I am using a shared workstation. Typing free -h returns me                total        used        free      shared  buff/cache   available Mem:            31G         30G        232M        292M        1.0G        608M Swap:          2.0G        997M        1.0G   How do I check what processes or who is using the memory?


How to run batch command with spaces from python?

I am trying to run  compile_command = r'"C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/MSBuild/15.0/Bin\MSBuild.exe" "input/Applications/EPMD-Software/IpProtector/IpProtector.sln" /t:Rebuild /p:Configuration = Release /p:Platform = x64' os.system(compile_command)   and getting     'C:/Program' is not recognized as an internal or external command,   operable program or batch file.   How do I get windows to understand the string with spaces? Can't rename "program files" unfortunately...  Thanks


How do we fetch data through REST service which hosted in azure from SharePoint site which in office 365?

How do we fetch data through REST service which is hosted in window azure, from SharePoint site which in office 365? Can we need to create app for SharePoint which contain restAPI endpoint or any better solution than this?


Does throwing a watch into the air cause it to gain or lose time?

Suppose I'm on a non rotating planet. I have two identical, perfect watches. I synchronize them. Then I throw one of them into the air and catch it. Does the one I throw into the air gain or lose time with respect to the one I was holding?


If we place a typical coin on a table, it will almost immediately fall due to gravity. However, with a little push it will roll and not fall anymore until friction eventually slows it down enough to come to a halt. Since it is a round object (disk-like) it will roll and therefore gain a spin angular momentum. Since it has an angular momentum (thanks to the motion) it will precess and experience a gyroscopic effect which prevents it from falling, as we can see the wobbling effect as it slows down.  Though I know this is the underlying explanation for why the moving coin doesn't fall immediately, I fail to see the underlying force/torque diagram, namely, as soon as it is tilted, a torque rotates it back to the vertical position, but I fail to deduce the direction of the torque diagrammatically. Without the tilt, the angular momentum is perpendicular to the face of the coin (so in the horizontal direction), but when titled the angular momentum also tilts, but the gravity force remains along the vertical. So how do we get to the torque that goes against the tilt?


I am trying to use arrays in Bourne shell (/bin/sh). I found that the way to initialize array elements is:  arr=(1 2 3)   But it is encountering an error:  syntax error at line 8: `arr=' unexpected   Now the post where I found this syntax says it is for bash, but I could not find any separate syntax for Bourne shell. Does the syntax stand the same for /bin/sh as well?


How to install a UserScript in Internet Explorer 9?

Is there any way to install a UserScript or GreaseMonkey script in IE9?  I know that  used to be able to provide this capability but it doesn't seem to work in IE9 at all.


Words or phrases related to obvious hidden agendas

I'm strugging to describe the concept of when someone is indirectly trying to influence another person to do or say something, but in quite a blatant or cliched way. One particular example is when someone theatrically winces or groans in order for another person to ask if they're alright/ask what's wrong.


Why does the number "99" appear (backwards, spelled in airborn fire) in Back To The Future part 2?

It seems to be a commonly accepted theory that the car skidded before going back to 1855. However, the car didn't really seem to skid, so much as explode. It certainly didn't appear to move in such a way that could possibly make those fire skid marks.  That said, I have a feeling the writers intended for the number 99 to be a way to pay tribute to some important event.  It might be possible that perhaps this was a tribute to Jules Verne. Michael Strogoff was publish 99 years before the movie was released. Dr. Brown's son, Jules, was also according to  born 99 years before the first film began (Jules had a brother named Verne). However, I can't help but wonder why Back To The Future would have a reference to a book that itself wasn't even a science fiction.  Or, perhaps that was the speed the doc was moving (I guessing the faster you go, the harder it is to control the time in which the Flux Capacitor will send you, which could explain why Doc was sent to the old west). But, I can't imagine the speed would appear in backward flames like that.  Does anyone have a more solid theory?


how do you look at the contents of an object in javascript

I am very new to javascript. When I do a typeof variable name, I get object{}. I need to look at the contents of this object. How would I do that in javascript?


Difference between "Ask question" suggestions & search

I am getting to different results when searching using the  & Ask question suggestions ("Questions that may already have your answer")  Because each search is provided to help finding the proper required content/question asked.  Then why a difference is maintained?


I have a computer that has no operating system.  I am currently downloading ubuntu to a memory stick in a usb port, later, I will try to upload it onto my computer.  Am I missing anything here?


How to make this email validation regex from regular-expressions.info work in javascript?

led me to  which have a bunch of explanation on email validation. The last regex seems the most accurate and recommended. I've searched SO for this regex but the implementations I found slightly differ.  I would like to test the following regex provided on the website with my current set of emails and make some tests.  I tried to make the title and this question as precise as possible (for you and the search engines), feel free to suggest edits.  The regex in question is the following:  \A(?=[a-z0-9@.!#$%&'*+/=?^_`{|}~-]{6,254}\z)  (?=[a-z0-9.!#$%&'*+/=?^_`{|}~-]{1,64}@)  [a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)* @ (?:(?=[a-z0-9-]{1,63}\.)[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+   (?=[a-z0-9-]{1,63}\z)[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\z   I escaped the / characters but it still doesn't seem to work for some reason.  My goal is to use this regex like so:  const regexEmail = new RegExp("...")   I created a sandbox for this regex available on , but the email address is not found.  I am no pro at regex and usually get only pre made stuff. The help of this community is greatly appreciated.


Is there a lightweight tool to crop images quickly?

I need to crop images often - photos, printscreens, etc., and loading gimp for such a simple task takes way too long. Can you recommend a faster alternative?


$9^{123456789} \pmod{100}$  I tried to do this in a simpler way:  $$9 \equiv 9 \pmod{100}$$  $$9^1 \equiv 09 \\ 9^2 \equiv 81 \\ 9^3 \equiv 29 \\ 9^4 \equiv 61 \\ 9^5 \equiv 49 \\ 9^6 \equiv 41 \\ 9^7 \equiv 69 \\ 9^8 \equiv 21 \\ 9^9 \equiv 89 \\ 9^{10} \equiv 01$$  I noticed that the odd powers always end in 9 and the even ones in $1$. The leftmost digit follows the sequence $0,2,4,6,8,$... in this order for odd numbers and the other way around for even ones. The sequence has $5$ numbers.  $123456789$ is an odd number. $123456789 \equiv 4 \pmod 5$ so the answer should be $69,$ which is the $4$th of the sequence... but it's $89.$ Close enough, but not quite. What did I do wrong and how can I solve this in this way?


Identification sci-fi book (series) -- Humans as servants & Alien masters with superior memories

More than 10 years ago, while traveling, I read one book in a series. I found it in a book exchange.  I think it was about humans in the far future being servants or slaves of an alien race.   The one characteristic of the this alien race is that they remember everything. They hear a story or view something and it is ingrained in their memory, there to stay for the rest of their life and can retrieve every detail at will. Since humans don't have that they are seen as inferior. I think also swords or other sharp weapons played a role.  I remember enjoying it tremendously and wanted to reread it and read the rest of the series, but unfortunately I never found it again.


As I can see it, nearly no managed mutual funds beat the index over more than 5/10 years. They don't only have to beat the index, they also must get the  fees back to outperform the index fund. So why would one invest in these management funds, if you will most likely not beat the index? (If you're no Warren Buffett)


Why do we say "attorney at law" and what is the difference between attorney and lawyer?

Basically I was just struck with the term 'attorney at law' as being a somewhat odd English construction. I can't think of any other time where we refer to another profession this way. In other words, can one be an Attorney at Butchery, or perhaps an Attorney at Plumbing? Aren't all attorney's "at law"? Which also made me wonder is there any difference between Attorney and Lawyer? I know that they are colloquially used to mean the same thing, but perhaps they were originally more (or less) specific? Or is it simply a redundancy?


Label shows in texture view but not in render?

can anyone tell me why a label texture might not show up in a render (full render or viewport preview render), whilst it seems completely fine in the texture/material viewport?  I followed a tutorial for this in another project and did it successfully yesterday and have copied the nodes from there exactly / followed the tutorial again. But I cannot seem to find what might be missing.   I am using cycles. There is light in the scene, the viewport seems to have the UV mapped correctly. It is not mapped to the inside of the bottle. I have recalculated normals. I have used File -> External Data -> Find Missing Files. I have reloaded / saved the texture file as a different name and mapped it anew.   Print:   Thanks


Show that $g_n(x)=nf(x+1/n)-nf(x)$ converges uniformly to $f'$

Let $f$ be a real valued, continuous and differentiable function on the real numbers with $f'$ uniformly continuous. Show that $g_n(x)$ with $$g_n(x)=nf(x+1/n)-nf(x)$$ is uniformly convergent to the derivative of $f$.   I cannot figure out how to solve this problem. If anyone could help me for this problem I would be very grateful.


Introductory book for group theory: recommendations

I am interested in learning the basics of group theory. I know a few basic theorems like Lagrange, Cauchy etc., but nothing from group actions. What would you recommend?


Every time I'm working with tables in LaTeX, I'm frustrated, because I can't find a clean way to type them. Suppose my code looks like this:  \begin{tabular}{c c c}   blablabla & blabla & bla blablabla \\   bla & blablablablabla blabla & blabla blablabla \\   blabla blabla blabla & bla & blablablabla bla \\ \end{tabular}   This looks dreadful in my code (imagine that there are even more columns and rows). I find it hard to read and quickly correct certain elements in it, if necessary. I therefore tried working with spaces and/or tabs to make it look like this:  \begin{tabular}{c c c}   blablabla              & blabla                   & bla blablabla     \\   bla                    & blablablablabla blabla   & blabla blablabla  \\   blabla blabla blabla   & bla                      & blablablabla bla  \\ \end{tabular}   However, when I now need to change something, the alignment changes too and after a while, I'm rather typing spaces than doing something useful. The code in my editor (TeXstudio) is also displayed in Verdana (because I find that easier to read), but as it isn't monospaced, it doesn't even look that nicely aligned.  How do you guys manage this? Does it bother you too that the table should be aligned nicely in your code or am I the only freak out here?


Is a limit ordinal necessarily a cardinal?

Maybe this is a trivial question. I see that every infinite cardinal is necessarily a limit ordinal, but is the converse true ?


Comma before "and" which is being used after a list of items containing other and/s

I am confused about whether one should put a comma before an "and" which is being used after a list of items containing at least one other "and".   I don't use the Oxford comma, and I feel it's not necessary to put a comma before an "and" which is before the last item. I do know that if one item has an "and" in it, then we have to put a comma before the "and" to clear any ambiguity. But I am confused about a particular sentence which is mentioned below:     I will certainly go to university with a more motivated and mature attitude and contribute to its multicultural environment.   Here, I don't think a comma is necessary before the "and" which is before "contribute", as there is no ambiguity. So should I put a comma or not? If I do not put one, is it grammatically incorrect?


MS SQL Server Error 18456 after database move

I have a windows service connecting to a SQL database. Recently, I was told to change the DB name in the connection string, all else was the same. When I attempted to connect, it threw Error 18456. With some research I found:   If I debug against the DB in visual studio on my machine, I get data If  I use SQL Server Mgmt Studio v18.2 (newest version?) on my machine, I get data If  I run it in SQL Server Mgmt Studio 2008 on my machine, I do NOT get data unless I run as Administrator   I am not SQL Server savvy and I don't know what the issue is or how to describe the issue to the DBA. Can someone help me identify the issue or give assistance in how to bring this to the DBA's attention? Thank you.  EDIT: I've installed the service code on a different server and it properly returns data. So this appears to be specific to the server and it's ability to get data from a SQL server. Additionally, both servers I am testing on have an operation which are able to connect to the Oracle. maybe this detail will spark some ideas? Unfortunately, I am not allowed to remote into the issue server as it is production, so I am unable to get much more info. Thanks again.


If product of finite elements in a ring is a unit then can we say each element as unit

In a ring If product of finite elements is a unit then can we say each element as unit  For ex., if $q_1 q_2 ... q_m$ is a unit, then can we say each of $q_i$ $\forall i$ is a unit how to prove this?


Computer won't boot without a USB drive?

I ran boot-repair and got   The computer won't even let me run the BIOS without the USB I installed Ubuntu from plugged in. Interestingly enough, I formatted that USB drive right after I installed, so I don't know why it would even be a factor here. Any advice?


Can nonrelativistic QM, as used in bound states, be derived from QFT?

Nonrelativistic QM can be applied to bound states like a hydrogen atom. QFT is used for free particles (whatever one means by particles) that shortly interact with each other and are free again after the interaction. Can QFT also be used for bound states?


There are many existing questions about using the pgfplots linear regression.   You can imagine using code such as:  \addplot table [draw = none, dash pattern=on, x=x_data, y={create col/linear regression={y=y_data}}, col sep=comma] {data.dat}; \addlegendentry{line A $\pgfmathprintnumber{\pgfplotstableregressiona}$}   But suppose you have two linear regressions, how do you get both values of \pgfplotstableregressiona ?


Method to determine if path string is local or remote machine

What's the best way, using C# or other .NET language, to determine if a file path string is on the local machine or a remote server?  It's possible to determine if a path string is UNC using the following:  new Uri(path).IsUnc   That works great for paths that start with C:\ or other drive letter, but what about paths like:  \\machinename\sharename\directory \\10.12.34.56\sharename\directory   ...where both refer to the local machine - these are UNC paths but are still local.


How to remove empty page after appendix and the next chapter?

I am using LaTeX for my thesis and I am getting a blank page after Appendix and the next chapter. My document class is book:  \documentclass[a4paper,oneside,12pt]{book}   I have tried inserting the following commands in my preamble but it does not seem to work:  \makeatletter\@openrightfalse\makeatother   and  {\let\cleardoublepage\clearpage  \input{appendix} }   and  \csname @openrightfalse\endcsname   could someone help me out with this?


Automatically get logged out as I try to login

I just started having this problem on 17.04. As I try to login on Ubuntu the screen just goes black for a second, and then I end up back on the login screen. I have tried reinstalling lightdm, that didn't work. I tried using gdm, that didn't work. I tried the following command sudo rm -v .Xauthority, didn't work.   The only thing that made it possible to log in was by creating a new user, but then I can't access my files. How do I solve this problem?


Why can't I click the button to add a new user?

I want to ask you something. I tried to create a new user account on Ubuntu 12.04, but, when I am in the "User Accounts" window and I go left-down (where the "+" sign is), I can't click on it. It's not click-able.


I am stuck with proving antisymmetry under the natural numbers. Prove "For each x,y E N, if x <= y and y <= x, then x=y. I am not really sure where to start with this proof.  Im assuming I will need to prove it directly. And I am only able to use defintion of addition, multiplication, and order in the natural numbers. Any tips for this proof would be so greatly appreciated.  Thanks!


Best location and permissions for socket files

I will have a couple of WSGI applications. They will communicate with nginx using sockets. For that purpose I've created the directory /run/wsgi in which I will place all the socket files that are needed.  My problem is that nginx is not able to access the socket file. I've given ownership of /run/wsgi to www-data to no avail. What would be the correct permissions for the directory?.  I chose the /run directory because the commonly used /tmp does not guarantee persistence of the files (according to the FHS). I'm open to discussion about this decision, though.  My applications will run under Ubuntu Server 3.0.0-30 with SElinux disabled. nginx was installed using apt-get.


Number of digits of N factorial in base B

Given the decimal integers N and B. How can the number of digits in N! in base B be calculated without calculating the value of N!?  Example: If N = 5 and B = 2, then N! = 5! = 120. Representing the value in base B, we get 1111000 which has 7 digits.  But I'm trying to get the result without calculating the value of N!.


Why can't particle nature of light shows Young double slit experiment?

I mean a single light ray can be comprise of many photon so its easy to understand the separation of light in two separate rays No. Of photons are entering through ¹st slit and No. Of photon through second slit so how can we say that only wave nature of light can show YDSE AND can somebody give me more examples of wave nature of light other than diffraction, polarisation Is refraction and reflection there?


For a connecting flight in Kiev, do I need a transit visa?

I am an Indian national and traveling to Latvia via Kiev, Ukraine. I have a 5.5-hour layover. Do I need a transit visa there? I hold a Schengen visa.


Intellij Java 2016 & Maven : how to embed dependencies in JAR?

I'm using Intellij Java 2016.2.2 and Maven to create a very simple Java console application.  I want to add an external library, so I add my dependency in Maven like this:  <dependency>     <groupId>jline</groupId>     <artifactId>jline</artifactId>     <version>2.12</version> </dependency>   It works fine when I run it in the IDE, but not in an external console (I have the following error: java.lang.NoClassDefFoundError).  I checked and for some reason, the external JAR is not added in the JAR I just generated. I also tried many things in "File -> Project Structure", but still not working...  I just want to build my JAR with my dependencies in it, so I can simply run my application in a console using:  java -jar myproject.jar   How can I do that? Thanks for your help!


HP Proliant ml350p g8 not booting after installing new CPUs

Our server: HP Proliant ml350p g8 has a single Xeon e5-2609 1.4Ghz processor. Our manager wanted to update it a little, so we looked at 2x E5-2609V2 processors...we ran it past HP Enterprise chat who said it was compatible.  We now have the new CPUs and when we installed them our Health LED was solid red and server wouldn't POST. We've tried each of the new CPUs individually and together but same result. We thought perhaps it was the BIOS (it was dated 2012!).  Our server is out of warranty so we initially wasn't allowed to download the latest BIOS, but our manager persuaded HP to give us the latest BIOS version (2015), which we have installed. Trying the CPUs again has the same result...server still won't POST  If anyone could please shed some light on what we have missed that would be great.  (We are in the process of getting quotes for HP Maintenance Contract - since we are past 30 days expired on our Warranty, so we can't get a care pack)


Can a student be admitted to masters programme even if his/her English level is lower than the minimum requirements?

Recently, I just won a scholarship from my government for pursuing a master's degree in some Canadian universities. I checked the minimum requirements for the English level and I noticed that almost all of them are asking for at least an overall score of 93 points or 100 on the toefl ibt examination (6.5 for IELTS but only 2 or 3 are asking for this last exam).   I recently received my score from ETS and I got 85 points in overall (26 points on the writing section as my strongest point). Although I know I am still missing a few more points, I have published one paper on the IEEE computer society, I have won 3 scholarships for continuing my education (70% scholarship in my home university, 100% scholarship for doing a summer internship in Canada and 100% scholarship for studying 6 months in Sweden), and I worked as a full time employee during my last semester as a web developer and programmer.   My bachelor is Computer Systems and IT. I am trying to pursue a MCs degree in Computer Science oriented towards data mining and cloud computing. The universities I am interested are McMaster, Dalhousie, University of Alberta, UBC and Waterloo.    Despite the fact that I don't have the "minimum English requirement", should you recommend me to retake and work on my English skills or should I try to apply for any of these universities?  All comments, suggestions and proposals are welcome :)


Strange artifacts along window borders after waking computer from sleep mode

NB: Nvidia has released an official fix; please see ,  and/or .  Upon waking up Ubuntu 16.04 from Suspend, the following graphical glitches appear around all windows, context menus, and similar:      This is currently known to affect the following NVIDIA cards running the proprietary drivers:  NVIDIA GeForce 610M, driver version 375.39, 340.102 NVIDIA GT 630M, driver version 375.39 NVIDIA GTX 650, driver version 375.39 NVIDIA GT 740M, driver version 378.13 NVIDIA GTX 745, unknown driver version NVIDIA GTX 850M, driver version 375.39, 378.13 NVIDIA GT 940M, driver version 375.39 NVIDIA GTX 950M, unknown driver version NVIDIA GTX 960M, driver version 378.13 NVIDIA GTX 970, driver version 375.39 NVIDIA GTX 970M, driver version 375.39 NVIDIA GTX 980 TI, unknown driver version NVIDIA GTX 1060, driver version 375.26, 375.39, 378.09 NVIDIA GTX 1070, driver version 378.09  The above above list has been sourced from reports from other users here on AU,  thread, and  thread. NB: This is be no means an exclusive list. It probably effects nearly all Nvidia cards.  Furthermore, this issue has been replicated on a clean install where the only change was a software update and the installation of the latest NVIDIA drivers.  What is going on, and how can it be resolved?


What is the sum of the reciprocal of primes? (Yes, it diverges..)

It's well known that the summation over 1/p diverges just as 1/n does. However, in the case of the sum of 1/n, we can establish upper and lower bounds to the sum with the integrals over 1/n and 1/(n-1). Therefore we can say that the sum is asymptotically equal to ln(x). Can we do anything similar for the sum of the reciprocals of the prime numbers?   I suspect there isn't a neat function due to the unpredictable distribution of prime numbers.


Anonymise a question instead of Deleting

I understand the reasons why you cannot delete a question that has answers as the people who posted the answers did so in good faith, but how about being able to disconnect your user account from the question or make the person who asked the question anonymous?  Let's say (as an example) I asked a question on car maintenance that I no longer want to come up when someone does a search on my profile as I am looking for a new job and actively posting on stack overflow so they may think that what I posted on the other site was dumb/stupid/offensive/some other reason?  It would be good if you could make you you user account 'Anon' with a stock icon for just that question. Obviously you will no longer receive notifications about this question but so what? As long as you have accepted an answer it doesn't really matter.


Run time Exception,Unable to start activity Null Pointer Exception: println needs a message

I am downloading the content from URL. But it is giving error NullPointerException : println needs a message. I have added URL and the html content of the website I want to print in Log.    protected String doInBackground(String... urls) {      String result = "";     URL url;     HttpURLConnection urlConnection = null;      try{         url = new URL(urls[0]);         urlConnection = (HttpURLConnection)url.openConnection();         InputStream in = urlConnection.getInputStream();         InputStreamReader reader = new InputStreamReader(in);         int data = reader.read();          while(data!=-1){             char current = (char) data;             result += result;             data = reader.read();         }      }catch (Exception e){         e.printStackTrace();     }      return null;    }   The error:  2019-04-28 17:36:44.355 15741-15741/com.example.guessthecelebraty E/AndroidRuntime: FATAL EXCEPTION: main     Process: com.example.guessthecelebraty, PID: 15741     java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.guessthecelebraty/com.example.guessthecelebraty.MainActivity}: java.lang.NullPointerException: println needs a message         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2913)         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3048)         at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)         at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)         at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808)         at android.os.Handler.dispatchMessage(Handler.java:106)         at android.os.Looper.loop(Looper.java:193)         at android.app.ActivityThread.main(ActivityThread.java:6669)         at java.lang.reflect.Method.invoke(Native Method)         at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)      Caused by: java.lang.NullPointerException: println needs a message         at android.util.Log.println_native(Native Method)         at android.util.Log.i(Log.java:166)         at com.example.guessthecelebraty.MainActivity.onCreate(MainActivity.java:65)   I want to connect it to the website and download the content into the Log.


The volume “Filesystem Root” has only 533.9 MB disk space remaining

I have run into this problem two days ago. The OS warns me that root has limited disk space:    So I would like to add more space to the root filesystem. These are the partitions I have:      sda9 : /home sda7 : / sda8 : swap  I would like to reduce the size of /dev/sda6 which is 70 GB in size,    How can I reduce the size of /dev/sda6 and convert it into free space? How can I add more space for /?


sh script name -sh: /bin/sh^M: bad interpreter: No such file or directory

I have the following prompts  [/share/registrazioni/Script] # cat delete_7gg.sh #!/bin/sh find /share/registrazioni/ -type f -mtime +7 -delete [/share/registrazioni/Script] # which sh /bin/sh [/share/registrazioni/Script] # chmod +x delete_7gg.sh [/share/registrazioni/Script] # ./delete_7gg.sh -sh: ./delete_7gg.sh: /bin/sh^M: bad interpreter: No such file or directory   why do I get /bin/sh^M: bad interpreter: No such file or directory ? I made the script with vi. I made the script in a qnap qts 4.3.6 that I can reach via ssh.  The script should simply delete files older than seven days.  I can't install dos2unix because the system has no package manager.  I just expected to make a script and put it into cron. but I'm receiving that error instead.


In my company, we have an ec2-instance, of which I didn't have any knowledge about. My predecessor would have created that and didn't provide any information about that.  Now suddenly something stopped working, and on the investigation, found out that php-fpm has stopped on that instance. Now I have to log in to  that instance and restart the service. The issue is I don't have the .pem file or ssh port for that server.  For pem file, I created an AMI and started a new server from that image with a new PEM file. Now I have got the pem file but I don't know the ssh port. I tried all the default and other ports which are used in my company, but nothing works.  sh-3.2#ssh -i company_sydney.pem -p  22  ec2-user@xx.xx.xx.xx ssh: connect to host xx.xx.xx.xx port 22: Connection refused   Now I want to find the ssh open port to that server. I tried to search for any such utility, but no success.  This is my brute force approach for the problem to find ssh port  for i in {1..65535}  do     ssh -i company_sydney.pem -p  $i  ec2-user@xx.xx.xx.xx done   Is there any other way to get this done or any such utility already available.  Edit My question in not about missing PEM file, I do have the file. I am looking for tools and help in port searching.  Output of nmap  sh-3.2$ nmap xx.xx.xx.xx Starting Nmap 7.50 ( https://nmap.org ) at 2018-12-12 12:59 IST Stats: 0:02:47 elapsed; 0 hosts completed (1 up), 1 undergoing Connect Scan Connect Scan Timing: About 48.85% done; ETC: 13:04 (0:02:55 remaining) Nmap scan report for ec2-xx-xx-xx-xxx.ap-southeast-2.compute.amazonaws.com (xx.xx.xx.xx) Host is up (0.34s latency). Not shown: 571 closed ports, 426 filtered ports PORT   STATE SERVICE 21/tcp open  ftp 53/tcp open  domain 80/tcp open  http Nmap done: 1 IP address (1 host up) scanned in 532.29 seconds   Security Group Details:    Port 21 is not the SSH Port  Edit 2 I found out the ssh port using the brute force method. But I am still curious for tools like Nmap or something else, which could have been used for this purpose. Is there any tool, that does the same thing as my small shell script.


This is a part of a question to show absolute convergence/divergence of improper integrals. So my professor simplified the question to this $\frac{2}{\pi} \sum\limits_{n=1}^{\infty} \frac{1}{n+1} $ and then proceeded to say that "it is a well known fact that $\sum\limits_{n=1}^{\infty} \frac{1}{n+1} $ diverges". My question is that shouldn't it converge ? As I can say that the values of the individual terms in the series $\sum\limits_{n=1}^{\infty} \frac{1}{n+1} $ will finally tend to $0$ as $n$ approaches $\infty$. I cannot ask this in class as the lectures are pre recorded and the doubt session is quite far away.


How to list the properties of a JavaScript object?

Say I create an object thus:  var myObject =         {"ircEvent": "PRIVMSG", "method": "newURI", "regex": "^http://.*"};   What is the best way to retrieve a list of the property names? i.e. I would like to end up with some variable 'keys' such that:  keys == ["ircEvent", "method", "regex"]


Brief concept about price movement of a particular stock

suppose one company has 1M share, 100K Sold out,900K left and the current price of each stock is $5. so if i buy another 100K what will be the stock price . assume that no one selling .


Rate of convergence of modified Newton's method for multiple roots

I've got a problem with a modified Newton's method. We've got a function $f \in C^{(k+1)}$ and $r$ which is it's multiple root of multiciplity $k$. Also $f^{(k)}(r) \neq 0$ and $f'(x) \neq 0 $ in the neighbourhood of $r$.  The modified Newton's method is $$x_{n+1} = x_n - k\frac{f(x_n)}{f'(x_n)}$$ How to prove that $x_n$ converges to $r$ quadratically?  I found one method using a function $G(x) = (x-r) f'(x) - kf(x)$ but then it's said that $ G^{(k+1)}(r) \neq 0$ but it comes from the fact that $f^{(k+1)}(r) \neq 0$, but it doesn't necessarily have to be true, am I right? We know that $f^{(k)}(r) \neq 0$, but we have no information about the $k+1$st derivative. I would appreciate if somebody explained to me precisely, why it quadratically converges.


Is it acceptable to use "Just wondering" as a question?

I often find myself writing sentences such as: "I am wondering if the landlord replied to you yet?"  And I always end up removing the question mark and rephrasing the sentence. In speech it is easy to inflect such a sentence so as to infer that it is a question, but in reality "I am wondering" is a statement and I feel it should not have a question mark when written down.  So is it acceptable to use "I am wondering" as a question?


What is the fastest car in GTA 5, and where can I find it?

What car is the fastest (when upgraded) in GTA V and where can I find it?


What commands can I run in the Terminal, and how do I use them?

I just found the Terminal and I want to know which commands I can run, and what they do.  Is there a command that would list me the available commands?  Is there a command that tells me how to use the commands (like "help" in the Windows command prompt)


How to view as another country IP address?

I need to view the Google music, but that is restricted in our country. Can I access it using any other fake IP address or how to view that?


Does anyone know what happened to the daily builds of Ubuntu-Gnome?  They are not present at


In how many ways can eight distinct balls be distributed to three distinct boxes so that each box must contain at least one ball?   So in order to approach this problem I was first thinking of assigning one ball to each box. Since there are 8 total balls I have 8C3 ways of picking 3 of them. Out of those 3 that I picked they can be arranged in 3 different ways since there are 3 boxes. Now I have to arrange the remaining 5 balls. This can be done in 5x5x5 ways. Then I multipled 3(8C3)(5x5x5) to get my final solution. However my textbook says the solution should be 5796. What is wrong with my approach/what adjustments can be made to make my approach work?


How to model entity types that can contain each other?

I'm having a hard time figuring out how to model a database with a Many-to-Many relationship between a concept of Markets & regions of the world.  The issue I'm running into is that a Market is just a region for doing business. It could be North America, and include multiple cities, provinces, and countries, or it could be the city of Ottawa, Ontario, Canada. Meaning, a Market can contain many regions, or regions can contain many Markets.  I've seen some structures for this concept with a separation between a Global Market which would be ones that include more than one country, and a Regional Market which would be only within one country. But this is treating them as two different entities when, by nature, they're the same.  Is there a standard model for structuring data that could efficiently convey the parent in the relationship? To easily be able to say The North American Market contains these countries, which would enable deriving provinces & cities, but also say The USA contains these Markets or Texas contains these Markets.


Can $p$ divide both $a_1 − a_2$ and $a_1 + a_2$?

If $a_1^2 ≡ a_2^2 \pmod p$, then $p$ divides $a_1^2−a_2^2$, so $p$ divides the product $(a_1 − a_2)(a_1 + a_2)$. I read in a chapter related to  quadratic residues and nonresidues that  unique prime factorization now tells us that $p$ divides $a_1 − a_2$ or $p$ divides $a_1 + a_2$, and so either $a_1 ≡ a_2 \pmod p$ or $a_1 ≡ −a_2 \pmod p$.  Why? It could be the case where both $p$ divides $a_1 − a_2$ and  $p$ divides $a_1 + a_2$.


How can I use/model a custom diode in LTSpice?

I would like to simulate the behaviour of a zener diode in LTspice. Consider the following schematic         – Schematic created using   I'm interested in simulating its performance when Vcc changes from the rated value (say 12V), for example when Vcc varies from 11 to 15 V.  Now, I know how to simulate this behaviour in LTspice for a generic diode or even for a particular diode which is available in the model library, but when it comes to using a custom diode, I have no idea on how to specify the diode parameters.  Looking into the documentation I was able to come up with a setup that is the correct one, that is, I can specify a custom diode model but now I'm having problems in understanding where to find all the parameters since the datasheet of my diode of choice does not provide all of them. In the LTspice model shown below I've picked a 4.7 V zener diode that was available just to have a base model to edit (and a 1k resistor just for reference).    The diode I'd like to use is a 3V . How can I simulate, as realistically as possible, the behaviour of this diode given the few parameters available in the datasheet?


Remove the current row from table using jquery

I want to remove the current row of the table by clicking the button using jquery  i have tried this , please help me.


I thought '30-day' and '30 days' are right. But, when I typed 30 days plank challenge, all subject was written as 30 day. Can I use 30 day instead of 30 days? It's tricky! Please help me.


Two different formulas for standard error of difference between two means

I mostly see this formula when searching for a formula for the estimate of the standard error in difference between two means, and it is also used in . $$\Delta=\sqrt{s_1^2/N_1+s_2^2/N_2}$$ But I've also seen this one (and this is the one my book uses): $$\Delta'=\sqrt{\dfrac{\left(N_1-1\right)s_1^2+\left(N_2-1\right)s_2^2}{N_1+N_2-2}\left(\dfrac{1}{N_1}+\dfrac{1}{N_2}\right)}$$ As these are two very different formulas, how come they are used seemingly interchangeably?


The loop ones. I've never seen them before.


$f:[-1,1]\to \mathbb{R}$ is a continuous function such that  $f(2x^2-1)=(x^3+x)f(x).$ Find $\lim_{x\to 0}\frac {f(\cos x)}{\sin x}$  My approach : Using the functional equation I got f is an odd function. $\implies f(0)=0$  let $g(x)=\frac{f(\cos x)}{\sin x},x\ne 0\implies |g(2x)|= \frac{1+\cos^2x}{2}|g(x)|\le |g(x)|$ $\implies |g(x)|\le |g\left(\frac {x}{2^n}\right)|...(1)$   Also By replacing $x$ by $\sin x$ in the given functional equation we get $g(2x)=-\frac{1+\sin^2x}{2}\frac{f(\sin x)}{cos x}...(2)$ From (1) and (2) we get, $|g(x)|\le \left|\frac {1+\sin^2 \frac{x}{2^{n+1}}}{2\cos \frac{x}{2^{n+1}}}f\left(\sin\frac {x}{2^{n+1}}\right)\right|$  lets $n\to\infty\implies |g(x)|\le 0\implies g(x)=0\,\,\forall x\in[-1,1]-\{0\}.$  $\implies \lim_{x\to 0}\frac {f(\cos x)}{\sin x}=0$


Customizing tray/taskbar date display in Ubuntu with GNOME 3

On previous versions I had the date displayed. Now it just shows the current day but not the day's number or the month.   Is there a way to customize the clock or tray/taskbar more in GNOME shell on Ubuntu 17.10 and later?


I'm a new to LaTex. I'm trying to make my CV using Latex. I used tables. But when I use table, it jumps to next page instead keeping continuous with others. Here is my script,   \documentclass[10pt]{article}  \usepackage[top=2cm,bottom=2cm,left=2cm,right=2cm]{geometry} \usepackage{fontspec} \usepackage{hyperref} \usepackage{enumitem} \setlist{nolistsep} \usepackage{changepage} \usepackage[table]{xcolor} \usepackage{graphicx}  \begin{document} \centerline{\huge\textsc{My Name}} \vspace{1cm} \begin{minipage}{0.4\textwidth}     \begin{flushleft}         \textbf{Contact Information}\\         \vspace{0.2cm}         \begin{tabular}{p{2.5cm}ll}             Name &: &\\             Address&: & \\             Tel&: & \\             Email &:& \href{Email}{Email}         \end{tabular}\\         \vspace{0.2cm}         \textbf{Personal Information}\\         \vspace{0.2cm}         \begin{tabular}{p{2.5cm}ll}             Date of Birth & : &\\             Nationality & : & \\             Sex & : & \\             Marital State & : &\\         \end{tabular}      \end{flushleft} \end{minipage} \hfill \begin{minipage}{0.4\textwidth}     \begin{flushright}     \end{flushright} \end{minipage}\\ \vspace{1cm} \hfill \begin{table}[!htbp]     \begin{tabular}{p{5cm}p{12.5cm}}         &\\         \textbf{EDUCATION} & \\         \hline         &\\         Date & \textbf{Master} \\         & University\\          &\\         Date & \textbf{Bachelor} \\         & University\\         &\\         \multicolumn{2}{l}{\textbf{PROFESSIONAL EXPERIENCE}}\\         \hline         &\\         &\\         Period& \textbf{Designation}\\         & Company\\         &\\         Period& \textbf{Designation}\\         & Company\\         &\\         Period& \textbf{Designation}\\         & Company\\         &\\         Period& \textbf{Designation}\\         & Company\\         &\\         Period& \textbf{Designation}\\         & Company\\         &\\         Period& \textbf{Designation}\\         & Company\\         &\\         Period& \textbf{Designation}\\         & Company\\         &\\         Period& \textbf{Designation}\\         & Company\\         &\\         Period& \textbf{Designation}\\         & Company\\         &\\         Period& \textbf{Designation}\\         & Company\\         &\\         Period& \textbf{Designation}\\         & Company\\     \end{tabular} \end{table} \end{document}   Thanks you in advance


I use the standard style in latex and want to override it, to remove the quotation marks from Conference Type. In my bbx file I use:  \RequireBibliographyStyle{standard}   I thought I could use the following to get Rid of all quotation marks. But that doesnt work.  \DeclareFieldFormat{title}{#1}


$A∆B=C <=> B∆A=C$ I don't idea. Is this correct task? Maybe the <=> means something else i don't know?


Convert date in format MM/DD/YYYY to MySQL date

I have a PHP function that gets passed a date in the format MM/DD/YYYY I need to then convert this so that it can be added to a MySQL field that is of type date  How would I go about doing this in PHP?


How can I call func in iframe from parent?

I want to call func which in iframe , from parent.  If the func is in parent I could call it like : parent.func();  but I want to call func which is in iframe and I want to call it from parent? js says I could not find func? How can I call it?  thanks


Sometimes values will have an "&" in them, and when this occurs, my syntax does not error, but it stops parsing the passed value at the "&".  How can I handle the "&" character so that it keeps the string together?  http://www.bakedzititipsforanyonewithlittleknowledge/first.aspx?vax=Red%20&%20Black,Fire,House,Basket,Blanket  string fulladdress = HttpContext.Current.Request.Url.AbsoluteUri; string encodedString = System.Web.HttpUtility.UrlEncode(fulladdress); string Information = Request["vax"]; Information = Information.Replace("&", "%26"); Response.Write(vax);   And I am calling this from an external program so I can not use the + Server.UrlEncode(value)); at the end of my website in the call.  I have to format a different way.  EDIT --- Sample output:  Red & Black Fire House Basket  Blanket  What I am getting is ?vax=Red%20&%20Black Fire House Basket Blanket


If the derivative approaches zero then the limit exists

I have a homework question, looks simple but I can't figure out a way to solve it. Any clue or help will be helpful.  Let $f: [0,\infty)\rightarrow\mathbb R$ be a differentiable function such that $\lim_{x\rightarrow\infty}f'(x)=0$.  Prove or disprove: $\lim_{x\rightarrow\infty}f(x)$ exists (infinite limit is also considered as a limit).  Thanks a lot!


How to make Samba4 Internal DNS resolve names without domain

I have a Samba4 AD-DC configured with internal DNS. I followed the configuration at     I use this samba as my DNS for the network, but I find that it does not resolve names that don't have the domain suffix. Example:  # dig tarl.domain.example.com ...  ;; QUESTION SECTION: ;tarl.domain.example.com.         IN      A  ;; ANSWER SECTION: tarl.domain.example.com.  900     IN      A       10.0.0.2 ...   But, if I query without domain:  # dig tarl ... ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;tarl.                          IN      A ...   I have read and searched but could not find how to make Samba DNS resolve without domains. All I found was configuring DHCP to send a list of domains to try for these cases, but I prefer samba to handle this.  Thanks in Advance! Regards.


Switch to mobile site on standard browser

At the moment I am using damn slow dialup internet and desperately need a link to switch to mobile site for faster browsing.  There should be a link to switch to mobile site also in desktop web browser.


So I have this one torus which I copied to get another torus. I did this by clicking shift+D. But now, Blender treats the tori as if they were one entity. If I select one, the other is automatically selected. I'm assuming this happened because I didn't separate them immediately by clicking P. How can I disconnect them now?


How do I return to default wallpaper on login screen in LightDM?

With the change to 12.04 came the new feature of having the login screen matching the selected user's wallpaper. It's a cool feature, but not for everyone. I'd like to go the other way and go back to having a default login screen (lightDM) wallpaper that doesn't change to match the selected User's wallpaper. Is this possible?