Purple skin with white flesh yams/sweet potatoes have black/green spots after I boil them. Can I still eat them?

Our local food distribution site gives what they call sweet potatoes. They are purple looking on the outside with white inside. When I boiled them they got kind of black or green streaks in them. Am I cooking them wrong and are they safe to eat this way?  I peel and cut into cubes and boil till fork tender.


How do I move the launcher to another screen?

I have physically swapped the my two screens around and have used the display setting to switch them so that the mouse moves between the two screens in the expected way.  But now the launcher is attached to the screen on the right, so how can I move it to the left screen?


When is the $n$th term sufficient to guarantee convergence of a series

If $K$ is a field complete with respect to a non-archimedean absolute value, then the $n$th term test (checking whether the $n$th term of a series goes to zero) is sufficient to check convergence of a series in $K$.  I was wondering if we have any results that guarantee, under additional hypothesis, whether a series in $\mathbb{R}$ converges by just making sure that the $n$th term goes to zero. An example would be the alternating series test. Are there others?


Exception in thread "main" java.lang.NullPointerException but didn't use null

I'm currently working on a pipe system in Java where many processors can write in it and read from it. The code compiles without any errors but when I try to run it, it throws me the following exception: Exception in thread "main" java.lang.NullPointerException     at Processor.main(Processor.java:42)  And here is my code so far:  class Pipe {     private float[] buffer;     private boolean buffer_blocked;  public Pipe() {     this.buffer = new float[10];     this.buffer_blocked = false; }  public synchronized void send(int chnl, float value) {     while (buffer_blocked) {         try {             wait();         } catch(InterruptedException e) {}     }     buffer_blocked = true;     buffer[chnl] = value;     buffer_blocked = false;     notifyAll(); }  public synchronized float receive(int chnl) {     while (buffer_blocked) {         try {             wait();         } catch(InterruptedException e) {}     }     return buffer[chnl]; } }  public class Processor { private static Pipe pipe;  public Processor() {     // empty constructor }  public static void main(String[] args) {     Processor P1 = new Processor();     Processor P2 = new Processor();     P1.pipe.send(0, 6.1f);         // write     float number = P2.pipe.receive(0); // read;     System.out.println(number); // should print 6.1 } }   I read something about that the array must not contain null pointers when it comes to setting values but I didn't use null pointers. I appreciate any kind of help, thanks in advance!


Form validation - When should error messages be triggered?

I'm working on a registration form with real-time inline validation. I'm wondering when we should trigger error messages:   before, when the field is in focus and until the user has entered a valid answer while, when the user is typing and until the has entered a valid answer after, when the field is out of focus


Are one sentence questions allowed on Stack Exchange?

I was about to ask a question on a Stack Exchange site but I didn't have any details to put in the body so I was deciding to post the question with just one sentence. Is that an OK thing to do on the Stack Exchange network or should I somehow find details for my question before I post it?


How to install software from Ubuntu Software

Actually I'm beginner at Ubuntu. Please help me to install VLC, Office and so many software. When I clicked install in Ubuntu software, then it was showing waiting for install.  When i opened terminal and trying there, then it was showing me some messages:   E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?   Sometimes it shows:  E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).   What is root? Need I go to root? Or how could I install all software successfully?


What Kept Gollum Alive After Losing the Ring?

The rings of power (or maybe just the One Ring) prolongs life but does not increase it.  This allowed Gollum to live way beyond a normal lifespan which is explained in the lore.  However, he loses the Ring and it is found by Bilbo in the goblin caves during The Hobbit.  Bilbo is fifty years old when he finds the Ring and gives it to Frodo when he is 111 but he is described in the books to be very well preserved for his age.    I'm not sure how much time passed between Bilbo giving the ring to Frodo and Frodo arriving at Rivendell the first time but I assume it to be within a few months to a few years.  In that short time after Bilbo gives the ring to Frodo, old age starts manifest itself and both visibly and physically his age starts to catch up with him.  Now Bilbo is still within a natural life span but without the Ring he becomes much closer to the frail hobbit his age should be.    My question is, if time caught up to Bilbo so quickly after losing the Ring, how was Gollum able to live 60+ years without the Ring without his true age catching back up to him?  I don't recall in the books but in the movies he is still pretty limber for someone who is a few hundred years old.


I am very much interested in logic, study & interpretation of formal languages and proof theory and other aspects related to logic and semantics. But I believe I lack a good foundation. As part of degree, I only did one module on discrete mathematics which was not very deep.   I understand that logic is based lots of sets, relations and these aspects are important to understand other things that predicate and first order logic, semantic interpretation.....,  In short my question is, can I get some help about the books i can go through to master the important foundation of logic and then possibly books about important subtopics.


Is there a difference between doing something like  SELECT *  FROM table1 INNER JOIN table2 ON table2.ObjectId = table1.table2ObjectId  WHERE table2.Value = 'Foo'   vs   SELECT *  FROM table1 INNER JOIN table2  ON table2.ObjectId = table1.table2ObjectId AND table2.Value = 'Foo'


$\lfloor \frac{n}{27} \rfloor=\lfloor \frac{n}{28} \rfloor$

If $n$ be a non-negative integer then solve for $n$:$$\left\lfloor \frac{n}{27} \right\rfloor=\left\lfloor \frac{n}{28} \right\rfloor$$  My Attempt: $$\left\lfloor \frac{n}{27} \right\rfloor=\left\lfloor \frac{n}{28} \right\rfloor=k$$  I am able to get $k<28$ but can't proceed from here


Do you recommend Native C++ to C++\CLI shift?

I have been working as a native C++ programmer for last few years. Now we are starting a new project from the scratch. So what is your thoughts on shifting to  C++\CLI at the cost of losing platform independent code. Are there are any special advantages that one can gain by shifting to C++\CLI?


How to avoiding losing your current browsers websites when being redirected by wireless login pages

It is common for public Wi-Fi access points to include login pages, even at times, when they’re free (i.e. Starbucks, many airports, hotels, etc).  I’m often in a situation where I’ll open up Chrome/Firefox, with and all my previously open tabs will start to reload.  If there is a wireless login redirection page, however, every tab is redirected and reloaded and the previous page is lost from history (and the back button won't return to it).  Is there any way to avoid or circumvent this behavior?


Inference/regression if we only observe the value is too high or too low

I want to do a regression to figure out the relationship between $y$ and  $x$ given some sample data. My problem is that within the sample data, while $x_i$ is always observed, I do not directly observe $y_i$. Instead, I observe if $y_i>z_i$, where $z_i$ is some observed number.   For example, I will have to train the model $y=\hat{f}(x)$ on the below sample data: $$(x_1=2, y_1>1)$$ $$(x_2=3, y_2<4)$$ $$(x_3=10, y_3>2)$$ ...  Then I can use the trained $\hat{f}(x)$ to make predictions of $y$ on any new $x$, $y^*=\hat{f}(x^*)$  How do you think I can approach this problem?


Changing one inner list's element changes all inner lists python


Figuring out how much VMWare hardware capacity I need during the planning phase

So, I know there are a lot of great tools for analyzing current resource utilization and so on, but that's not what I'm looking for.   What I'm trying to figure out is the best way to plan how much hardware I need to buy (for simplicity, let's stick to just racks of servers, not networking and so on).   I know what our planned VM allocation will be for when we start off, but if I know I'll have X web servers, Y app server and Z DB servers (and I know what RAM, CPU, storage and network I want to allocate to each), is there a good way to figure out, "Ok, I need N blades with the following hardware specs...?  I assume it's whatever my VMs need plus some overhead for the hypervisor and host OS plus some engineering wiggle room, but I'm hoping someone has a slightly more robust approach.   Every time I tried googling I got people trying to advertise tools for analyzing an existing install, which isn't what I'm looking for.   Note that this is NOT a generic capacity planning question as the VTC moderator closed me for.  ().  I fully understand benchmarking and growth over time. What I’m specifically asking for is much more bounded than that: given that I already have estimates what virtual server resources I need, how do I translate that into a rough estimate of initial hardware to purchase?  I recognize that once I’ve done that I’ll need to do the real work of benchmarking performance, balancing my VMs across racks and all that.


"The file I sent (to) you". Using the preposition

to send somebody something     to send something to somebody   Is it necessary to use the preposition in sentences like these, in which the direct object stands before the verb?     Open the file I sent (to) you.     What does she give (to) him?   I suppose both options are correct and the preposition might or might not be used. Am I right?


Select N random elements from a List in C#

I need a quick algorithm to select 5 random elements from a generic list. For example, I'd like to get 5 random elements from a List<string>.


As an Albanian studying in Italy, how can I apply for a tourist visa for the UK to visit my friends?

I'm an Albanian citizen pursuing a PhD in Italy where I have a residence permit (permesso di soggiorno).  How can I apply for a tourist visa for the UK to visit my friends?


What will happen when there are no more letters in the alphabet for Ubuntu codenames?

. . What I don't know is what will happen in 4 years from now (if my maths aren't that bad, 2017) when there are no more letters in the alphabet for the codenames. Will it goes backwards (ie. XYZYXW)? Will start over from A? Will use combinations (AB, AC, AD...), like Amourous Bosnians?  Did anyone get a wind of this?


Error installing nvidia driver on 18.04 server

I tried to install drivers, I have tried to clean apt and purge existing nivida driver, now I cannot uninstall any packages.   Here is error:   Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies:  cuda-drivers : Depends: libnvidia-gl-410 (>= 410.48) but it is not going to be installed                 Depends: nvidia-compute-utils-410 (>= 410.48) but it is not going to be installed                 Depends: nvidia-dkms-410 (>= 410.48) but it is not going to be installed                 Depends: nvidia-driver-410 (>= 410.48) but it is not going to be installed                 Depends: nvidia-kernel-source-410 (>= 410.48) but it is not going to be installed                 Depends: nvidia-utils-410 (>= 410.48) but it is not going to be installed                 Depends: xserver-xorg-video-nvidia-410 (>= 410.48) but it is not going to be installed                 Depends: nvidia-settings (>= 410.48) but it is not going to be installed  libnvidia-ifr1-410 : Depends: libnvidia-gl-410 but it is not going to be installed  nvidia-410 : Depends: lib32gcc1 but it is not going to be installed               Recommends: nvidia-settings (>= 331.20) but it is not going to be installed               Recommends: nvidia-prime (>= 0.5) but it is not going to be installed or                           bumblebee but it is not going to be installed               Recommends: libcuda1-410 but it is not installable               Recommends: nvidia-opencl-icd-410 but it is not installable E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).   And this error trying to fix unmeet dependencies: I have tired to remove/clear cache package.   The following packages were automatically installed and are no longer required:   lib32gcc1 libc6-i386 ocl-icd-libopencl1 Use 'sudo apt autoremove' to remove them. The following additional packages will be installed:   libnvidia-gl-410 nvidia-compute-utils-410 nvidia-dkms-410 nvidia-driver-410   nvidia-kernel-common-410 nvidia-kernel-source-410 nvidia-prime nvidia-settings nvidia-utils-410   xserver-xorg-video-nvidia-410 Recommended packages:   libnvidia-compute-410:i386 libnvidia-decode-410:i386 libnvidia-encode-410:i386   libnvidia-ifr1-410:i386 libnvidia-fbc1-410:i386 libnvidia-gl-410:i386 The following packages will be REMOVED:   nvidia-410 nvidia-410-dev The following NEW packages will be installed:   libnvidia-gl-410 nvidia-compute-utils-410 nvidia-dkms-410 nvidia-driver-410   nvidia-kernel-common-410 nvidia-kernel-source-410 nvidia-prime nvidia-settings nvidia-utils-410   xserver-xorg-video-nvidia-410 0 upgraded, 10 newly installed, 2 to remove and 0 not upgraded. 8 not fully installed or removed. Need to get 0 B/45.1 MB of archives. After this operation, 205 MB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 166080 files and directories currently installed.) Preparing to unpack .../libnvidia-gl-410_410.48-0ubuntu1_amd64.deb ... dpkg-query: no packages found matching libnvidia-gl-390 Unpacking libnvidia-gl-410:amd64 (410.48-0ubuntu1) ... dpkg: error processing archive /var/cache/apt/archives/libnvidia-gl-410_410.48-0ubuntu1_amd64.deb (--unpack):  trying to overwrite '/usr/share/egl/egl_external_platform.d/10_nvidia_wayland.json', which is also in package nvidia-410 410.48-0ubuntu1 Errors were encountered while processing:  /var/cache/apt/archives/libnvidia-gl-410_410.48-0ubuntu1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)


Geometric interpretation of $\frac {\partial^2} {\partial x \partial y} f(x,y)$

Are there any geometric interpretation for the second partial derivative? i.e.  $$f_{xy} = \frac {\partial^2 f} {\partial x \partial y}$$  In particular, I'm trying to understand the determinant from  for determining whether a critical point is a minima/maxima/saddle points:  $$D(a, b) = f_{xx}(a,b) f_{yy}(a,b) - f_{xy}(a,b)^2$$  I have no trouble understanding $f_{xx}(x,y)$ and $f_{yy}(x,y)$ as the of measure of concavity/convexity of f in the direction of x and y axis. But what does $f_{xy}(x,y)$ means?


Consider P(n). Show that it is true for n > 2 given the two statements below are true...

For every natural number n, consider P(n) a statement. Prove that if the following two statements are true: 1) for all n ∈ N, P(2^n); 2) for all n > 2, P(n) ⇒ P(n − 1); then P(n) is true for all natural numbers n ≥ 2.  Other questions ask you to use the method to solve this problem, and I want to make sure I'm using the best method, even though I think the method I used works, I'm wondering the best solution.   My method: For x=2, P(2^2) = P(4), and P(4)⇒P(3), thus P(3) (minimum case). Then for i ∈ {1,...,∞}, given P(2^(n+1)), Because P(n)⇒P(n-1), P(x) for all X between P(2^n) and P(2^(n+i)) is true, and since 2^(n+i) goes to infinity as i does, P(x) is true for all x.


Java converting char to string won't work

Why does this return false? How can I get it to return true?  public class Test {     public static void main(String [] args) {         char character = 'X';         String x = Character.toString(character);         System.out.println(x == "X"); // returns false     } }


How to make sed regex syntax work as python or javascript?

I have asked a question   In which @RomanPerekhrest showed me a different regex syntax.   \(=([^)]*\)) can capture [^)]* as group 1 . This is confusting for me .  You can check the result on            This \(([^\)]*)\) is the correct one in my mind, but it is broken in sed.  So I wonder how to make sed use the regex syntax standard as python or javascript (common standard in many languages).


I'm trying to use \pounds in a heading that I'm making bold using \textbf, i.e. something like \textbf{NHS budget increase: \pounds{350} million a week?} but the £ sign doesn't come out bold. How do I make the £ go bold?


Is gender a creature statistic relevant to Polymorph?

Assuming a creature with two genders (male / female), is said gender part of its game statistics block for the purposes of Polymorph effects?  In some species also the male has different statistics than the female. Such is the case of the androsphynx and gymnosphynx. Those are moot, so don't need to be considered for this question's scope.


PHP X MYSQL | Error in Injecting data using $_POST

I have been trying to input data from $_Post variables but I cannot spot where the error is? Hope you can help me.  Below is the code:  $conn = mysql_connect("localhost", "root"); if (isset($_POST['studLog'])) {  $uName = $_POST['uName'];  $pWord = $_POST['pWord'];   mysql_select_db("sis_main", $conn);   if (mysql_num_rows(mysql_query("SELECT * from student where stud_uname='$uName' and stud_pword='$pWord'"))) {   include("stud-view.html");  } else {   echo 'Account doesnt exist!';   echo "

";   echo "GO BACK!";  } } else if (isset($_POST['studReg'])) {   mysql_select_db("sis_main", $conn);  $stdID = $_POST['studID'];  $fname = $_POST['firstNme'];  $mname = $_POST['midNme'];  $lname = $_POST['lastNme'];  $stadd = $_POST['stAdd'];  $ctadd = $_POST['ctAdd'];  $bdate = $_POST['bDate'];  $gendr = $_POST['gender'];  $email = $_POST['email'];  $mobno = $_POST['mobNum'];  $uname = $_POST['newUName'];  $pword = $_POST['newPWord'];  $age = birthday($bdate);   if (mysql_query("INSERT INTO student values (`$stdID`,`$fname`,`$lname`, `$mname`,`$stadd`,`$ctadd`,`$age`,`$bdate`,`$gendr`, `$email`,`$mobno`,`$uname`,`$pword`);")) {   echo 'Account Successfully Regsitered!';  } else {   echo 'ERROR: '.mysql_error();   echo "GO BACK!";  }   } }      ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '@gmail.com, 09981744039, kuyschan, kuyschan)' at line 1


What are good resources for a beginner, non-computer genius type of person, to learn Plain TeX?

I noticed that there are a lot of "beginner" resources for LaTeX, lots of novice friendly tutorials etc.  Are there similar resources available for Plain TeX that are geared towards beginners?    Please note, prior to answering, that this question only relates to "Plain TeX".     To the best of my research, all of the TeX.SE existing answers setting out beginner resources deal only with "LaTeX".  The answer:   is great for people who want to learn LaTeX.  It does not however address those people (including me) who want to get started on learning Plain TeX.  The answers given so far are well thought out "Plain TeX" beginner resources.  Related:   Related:


NSF IIS status date changed, status still pending

It has been close to three months since my NSF IIS proposal submission. The status date changed today on NSF Fastlane but the status is still pending. Does it mean it is going to be declined?


How to prove that $\Gamma(x) \leq x^x$ for $x \geq 1$

Where can I find a (simple?) proof that $\Gamma(x) \leq x^x \,\,\,\, \forall x \geq 1$? $\Gamma(x)$ is the Gamma function defined as $$ \Gamma(x) = \int_0^\infty t^{x-1} e^{-t} \, \mathrm{d}t $$


How can I DNAT a packet coming through a bridge back to its source with iptables?

I have a host1 that has a WAN interface eth0 (1.2.3.4) and a LAN interface eth1 (10.41.82.1). Inside the LAN is a host2 with the IP address 10.41.82.2.  Incoming connections to 1.2.3.4:22 are forwarded to host2 using the following iptables rules on host1:  root@host1:~# iptables -t nat -A OUTPUT     -d 1.2.3.4 -p tcp --dport 22 -j DNAT --to 10.41.82.2:22 root@host1:~# iptables -t nat -A PREROUTING -d 1.2.3.4 -p tcp --dport 22 -j DNAT --to 10.41.82.2:22   This works fine, except when host2 is trying to access 1.2.3.4:22:  root@host2:~# telnet 1.2.3.4 22 Trying 1.2.3.4...  root@host2:~# ping 1.2.3.4 PING 1.2.3.4 56(84) bytes of data. 64 bytes from 1.2.3.4: icmp_seq=1 ttl=64 time=0.125 ms 64 bytes from 1.2.3.4: icmp_seq=2 ttl=64 time=0.279 ms  root@host2:~# tcptraceroute 1.2.3.4 22 traceroute to 1.2.3.4, 30 hops max, 60 byte packets  1  * * *  2  * * *  3  * * *  4  * * *  5  * * * (and so on)   It seems like the packets are being forwarded in a circle. As you can see, pinging works, so the routes and IP forwarding are set up properly.  What did I do wrong and how can I fix the problem?    UPDATE:  As mentioned in BillThor’s response and as is described in the , I need to add an SNAT rule. I have done this now (note that I have added the LAN address of host2 for -d, as this rule is applied in POSTROUTING where the destination of the packet has already been changed):  root@host1:~# iptables -t nat -A POSTROUTING -d 10.41.82.2 -p tcp --dport 22 -j SNAT --to 10.41.82.1   Unfortunately, this does not solve the problem, and everything is still the same as described above. Interestingly, the SNAT rule never seems to be matched, according to the counters shown when running iptables -t nat -nvL.    UPDATE 2:  I discovered that when I run tcpdump -i eth1, even when I run it with parameters irrelevant to this case, such as tcpdump -i eth1 port 34238, it suddenly works. But only while tcpdump is running.  What I didn’t mention so far because I thought it was irrelevant is that eth1 is actually a bridge, and host2 is a Xen domain. I am starting to suspect that my problem might be related to this.


Wide page layout option for 1080p and 1080i screens

Wondering whether SO/SU/SF/Meta could have an option for a 'wide page layout', for those of us with 1080p/1080i resolutions. The unused whitespace on both sides of the middle 'column' could be put to better use.


Fibonacci sequence proof, how should I proceed?


I've been trying to write a regular expression to match the URL of a website. Apparently  (http:\/\/www.)([a-zA-Z0-9])(\.[a-zA-z])\/"\s   does not work. The URL has to start with http://www. and can have up to one or more alpha numeric characters.


How can I have 2 abstracts in 2 different languages?

I'm using a template I found on overleaf to make journal-like papers. The given format only has one abstract, but now I'm required to present two abstracts, one in Spanish and one in English. How can I modify my template to use two abstracts without messing up the format of presentation? Here's the link of it:


Function is Continuous When Restricted to Closed Sets Which Cover the Space

Suppose that $\{A_i\}$ is a finite collection of closed sets in $X$ such that $X = \bigcup A_i$, and $f : X \to Y$ restricted to each $A_i$ is continuous. Then $f$ is continuous.   Okay. The base case ($n=2$) is just the pasting lemma. I am having a little trouble with the inductive case, specifically with what the hypothesis is and how to deal with continuity with respect to subspaces. I believe the inductive hypothesis is to assume that any function over a topological space that is the union of $n-1$ closed sets such that the function restricted to each of these $n-1$ closed set is continuous must be continuous over the whole space. Then I assume I have a topological space $X = \bigcup_{i=1}^n A_i$, where each $A_i$ is closed, and a function $f : X \to Y$ such that $f|_{A_i}$ is continuous for each $i$. Thus $X = \bigcup_{i=1}^{n-1} A_i \cup A_n$, where $C = \bigcup_{i=1}^{n-1} A_i$ is closed since it is a finite union of closed sets. If I can show $f|_C$ is continuous, then I simply apply the pasting lemma to finish the problem. Give $C$ the subspace topology, and notice that each $A_i$ is closed in $C$. Thus we have a topological space $C$ that is the union of $n-1$ closed. But do I still have continuity $f$ restricted to $A_i$ since I am no longer considering them subspaces of $X$ but of $C$? When one says $f|_{A_i}$ is continuous, is one saying that $f$ is continuous when restricted to $A_i$ and $A_i$ is given the subspace topology?  EDIT:  I think I figured out the lemma I need. Claim: Let $A$ and $C$ be subspaces of $X$ such that $A \subseteq C$. Topologize $C$ with subspace topology with respect to $X$. Then the subspace topology on $A$ as a subspace of $X$ (call it $\tau_X$) is the same as the subspace topology of $A$ as a subspace of $C$ (call it $\tau_C$).   Proof: Let $U$ be open in $X$. Then $A \cap U$ is some open set in $A$ as a subspace of $X$. Since $C$ is a subspace of $X$, $C \cap U$ is open in $C$ as a subspace of $X$. Then $A \cap (C \cap U) = (A \cap C) \cap U = A \cap U$ is open in $A$ as a subspace of $C$, thereby proving $\tau_X \subseteq \tau_C$. Now let $O$ be some open set in $C$ as a subspace of $X$. Then $A \cap O$ is some open subset of $A$ as a subspace of $C$. But $O = C \cap U$ for some open set in $X$. Therefore $A \cap O = A \cap (C \cap U)= A \cap U$, which is also open in $A$ as a subspace of $X$. Hence $\tau_C \subseteq \tau_X$  Kind of obvious. But it was hard to spot the need for this lemma when I was considering subspace of subspaces and continuous functions, etc. Am I right in thinking this is the lemma I need?


find + grep to Search for Files Containing Multiple Strings

I have the following being sent to my command line:  find /base/dir1 /base/dir2 -type f -exec /x/y/z/grep -e lolol -e wow {} +   This returns each file containing one or both of the supplied strings (lolol and wow). What I would like to do is to only return the files that contain both strings (AND not OR). If possible how could I accomplish this?  EDIT: The searched strings would need to be present in each file returned but not necessarily on the same line.  EDIT 2: I do not have the -r or -R options


The contribution to the propagator from a particular trajectory is  $e^{\frac{iS[x(t)]}{ћ}}$. Does anyone knows how to get to this $e^{\frac{iS[x(t)]}{ћ}}$? As in showing me any reliable source regarding this because I try searching for how to come up with it but to no avail. Sorry for this stupid question as I just started.


Conceivably it expands with the speed of light. I do not know, but curious, if there is an answer. At what velocity, does our universe expand?


I have method like this: public async Task<IEnumerable<DataResponse>> GetAsync() { ... }  I use reflection and I want to get the type "DataResponse", but I get type "Task<IEnumerable>"     static void Main(string[] args)     {         var assemblies = GetAssemblies();         IEnumerable<Type> controllers =             assemblies.SelectMany(a => a.GetTypes().Where(t => t.IsSubclassOf(typeof(ControllerBase))));          foreach (var controller in controllers)         {             var methods = controller.GetMethods();             foreach (var methodInfo in methods)             {                 var returnType = methodInfo.ReturnType;             }         }     }  How do I get types excluding standard types ("task", "IEnumerable", e.t.c)?


I wanted to share with you my resolution of this exercise.     How many different groups of order $15$ there are?   My resolution:     We're looking for groups such that $|G|=15=3\cdot 5$. Then: $G$ has an unique Sylow $3$-subgroup of order $3$ ($P_3$) and an unique Sylow $5$-subgroup of order $5$ ($P_5$).      Furthermore, $$|P_3 \cap P_5|\  \Large\mid\ \normalsize|P_3|,\ |P_5|$$   So $$|P_3 \cap P_5|=1\implies P_3 \cap P_5=\{e\}.$$      Then:$$|P_3\cdot P_5|=\displaystyle\frac{|P_3|\cdot |P_5|}{|P_3 \cap P_5|}=|P_3|\cdot |P_5|=3\cdot 5=|G|,$$      and $$G=P_3\cdot P_5 \simeq P_3 \times P_5 \simeq \mathbb{Z}/3\mathbb{Z} \times \mathbb{Z}/5\mathbb{Z}.$$   It's everything correct and well justified? There's some things that I didn't say, for example that a subgroup a prime $p$ as order is cyclic, and thus isomoprhic to $\mathbb{Z}/p\mathbb{Z}$. Maybe I did something wrong. I would appreciate someone to look and criticize my exercise.  Thank you.


Search for last 30 days "a particular tag" answers for a particular user is returning all answers given by that user instead

What I am trying to do is fetching all answers posted by me which are tagged with a particular tag. Here the example tag I have chosen is  and the site is .  Visit this link:   So, it shows that I have posted 2 answers in the last 30 days whereas I have posted 61 answers in all for that particular tag.  When I click on the  it should return all those 61 answers and it is doing so too.  But when I click on the "2", instead of returning just the 2 answers, it is returning all the 61 answers.  Similar is the case if I switch to any other tags. For example, let's take the .  Here too, it shows only 2 answers for me in the last 30 days, but when I click on the "2" the search returns  that I have posted so far.  So, is this a bug or that is the way it is supposed to be?


Just a question out of curiosity, what would happen if the event horizons of 2 black holes of the same mass were to come into contact? Would both gravitational accelerations be canceled where the event horizons overlap?


Origin of the words arithmetic and geometric progression

Why are  and  called arithmetic and geometric respectively?


Which tables should be emptied when clearing database-stored cache manually?

Prior to D8 to clear cache manually one could truncate all tables beginning with cache_.  In Drupal 8 there are still tables starting with cache_, but there's also a cachetags table.  Is the advice in D8 still to truncate cache_* if you need to clear cache manually? Is it safe/required/recommended to truncate the cachetags table along with the cache_* tables?  I'm aware there may be contrib modules doing things differently, I'm mostly interested in what core does, and what's considered "best practice" for Drupal 8 in general.


Is there a built-in way to simulate assignment of values to arguments?

I have a decorator that I use to suppress and log exceptions within a function. The code is something like this:  def log_exceptions(func):     def wrapper(*args, **kwargs):         try:             ret = func(*args, **kwargs)         except Exception as e:             print(e)             print(args, kwargs)  # also log what arguments caused the exception         return ret     return wrapper   A problem here is that, it is hard to manually match the printed argument values to the argument names of the function, because positional arguments could also go inside kwargs, and there may be args and kwargs arguments in the inner function as well. So, it would be useful to match the args and kwargs values in the wrapper with argument names in the inner function.  My question is then, is there a built-in way to do this matching? If not, what would be an elegant way to implement it?


Receive Notifications for Comments on any Answers to Your Question

If I ask a question, I would like it if I got a notification if someone as commented on any answer to the question I have asked.    So I ask "How do I foo".  Joe Answers "One way to Foo is to Baz."  Then Ted comments on Joe's Answer "You could also bar".  I would like to get a notification about Ted's comment.  The rationale being that sometimes if a question is getting a little old (I tend to watch my recent questions actively), a useful comment will be posted and I might not see it a timely fashion.


Is Ph.D relevant in academics because of the university under which it is done or the paper publications? I am planning to join for Ph.D under a relatively new university but I hear often that it's the papers that count and the quality papers in it. The university as long as it's registered with the government / legal doesn't matter. Is that true?


When to use #!/bin/ksh and #!/bin/sh? Need example

Also what are the main differences between these two. To execute a script is it necessary to write this at the beginning of script?


How can we open our firewall to allow Google Analytics?

We operate a firewall which blocks all internet access for users on our company network. However we would like our intranet to track users with Google Analytics.  How can we open up our firewalls to only allow access to googleanalytics.com ?  I have searched Google extensively and it seems Google do not provide an IP range which we could use in our firewall config.   How can we white-list googleanalytics.com ?


Error message when I'm on the login page with wordpress: cookies blocked

When I'm on the Login page in production, I've the cookies blocked error. Screencapture:


systemd doesn't detect dead daemon process

I have a aaa.service file (controlling the JBoss), that besides other regular stuff contains  [Service] Type=forking ExecStart=/my/script start ExecReload=/my/script restart ExecStop=/my/script stop PIDFile=...   /my/script start creates the PID-file and service aaa status shows it issuing a strange warning:  Supervising process xxx which is not our child. We'll most likely not notice when it exits.   Full output:     Loaded: loaded (/etc/systemd/system/aaa.service; disabled; vendor preset: disabled)    Active: active (running) since Tue 2019-01-22 20:55:16 CET; 34min ago   Process: 32435 ExecStart=/my/script start (code=exited, status=0/SUCCESS)  Main PID: 32542     Tasks: 0 (limit: 512)    CGroup: /system.slice/aaa.service  Jan 22 20:54:56 I011-830 su[32447]: (to aaa) root on none Jan 22 20:54:56 I011-830 su[32447]: pam_unix(su-l:session): session opened for user aaa by (uid=0) Jan 22 20:55:16 I011-830 aaa[32435]: Starting JBoss application server: Starting JBoss application server: Jan 22 20:55:16 I011-830 systemd[1]: aaa.service: Supervising process 32542 which is not our child. We'll most likely not notice when it exits.   Now my actual problem is, that if the process get killed other then by issuing service aaa stop, the systemd doesn't detect it. Even more it claims, that it's running and don't want to start it again:  # cat <pid-file> No such file or directory # service aaa status    Loaded: loaded (/etc/systemd/system/aaa.service; disabled; vendor preset: disabled)    Active: active (running) since Tue 2019-01-22 20:55:16 CET; 40min ago   Process: 32435 ExecStart=/konsens/app/aaa/init/aaastart (code=exited, status=0/SUCCESS)  Main PID: 32542     Tasks: 0 (limit: 512)    CGroup: /system.slice/aaa.service  ... # service aaa start # <--- Instant return, no process started   How can I achieve following goals?   systemd should be able to start and stop my service service aaa status should show the status of the process regardless if it was started by systemd or manually issuing /my/service start systemd should be able to start service after it was killed manually systemd should be able to stop service, that I have started manually


Can I no longer ask about what technology exists?

I've recently had two questions closed because they are not constructive or subjective. In both cases I was asking for specific information and while perhaps more than one answer would be valid, they would not be subjective in nature.  For question one  I'm asking about a very specific comparable technology to an existing library. I'm not asking for opinions about which is best, I'm just looking for them. In this case I find such questions valid because there is no straight forward manner by which they can be found via web searching.  The other question  is a targeted question about one particular language and devices on which it may not work. Again, it is not an open ended question and it is not subjective. It is also very difficult to obtain this information via general searching.  Both questions have value to people browsing the site (provided they have answers) which would be difficult to locate elsewhere. Neither of them invite open-ended or chatty discussion, nor are they requests for opinions about technology. The answers in both cases are expected to be limited -- if there were an abundance of answers searching would have revealed it.  Does it make sense to close such issues just because they may appear, at a glance, as subjective questions?


If this speculation about Jon Snow is true, would he be allowed to leave the Watch?

So, Jon joined the Night's Watch under the assumption he was the bastard of Ned Stark. This makes sense, since bastards aren't entitled to land or any of the like. But, lets for a second assume that Jon is a Targaryen,  the true born son of Rhaegar and Lyanna. Is there a precedent that would allow him to leave the Watch and take up his true name?


I have a USB drive sitting in my raspberry pi and I'm trying to sshfs into the drive.  I already changed the permission of most files and directories on that drive but when I try to chmod 777 datenbank as root it responds with the error:  chmod: changing permissions of 'datenbank': Operation not supported


Is there a canon in the Star Trek universe?

Most of the time star trek delved into time travel, it was to correct history and keep the future/present the same. But the new Star Trek movies starring Chris Pine had history altered, and this means everything we used to know about the original series may very well be completely different. It is accepted that there are multiple alternate universes, but does this mean there can't ever be TRUE CANON in star trek? Edit: I'm not wondering how the new star trek fits in with the original, certain it shouldn't. I'm asking if there is a canon, or if there is any point of one in star trek


DeveloperQuestion.com copying StackExchange content

These guys appear to be scraping content from StackExchange sites and replacing some of the words with synonyms, possibly to avoid page rank issues with duplicate content.  http://developerquestion.com  Take for example this post: http://developerquestion.com/mysql-errcode-17-cant-createwrite-to-file-tmp/  The original on ServerFault:   It's an interesting find. I wouldn't mind the scraping so much if the content was not messed around with. Some of the language doesn't even make sense. They have also ripped off the entire layout of the site.


is it possible to export model with animation made through shaders to FBX?

I have a model with an animated shader on it, and I would like to export it to fbx, but without losing this animation is it possible?


How do you make corrections to a published paper?

What's the best way to make corrections to a published paper? Should I amend the original paper and mention in a footnote (or similar) what was changed and why or prepare a completely separate document and put that on my website/append it to the original paper?  I'm not so much worried about how to get it to the publishers that handle the paper, but rather about how to go about it. I would especially like to hear from people who have done something like that or know someone who did.


How much can a grappler with reach move a grappled creature inside its reach?

This is a follow up from .  A creature with a 15' reach is grappling a creature with a 5' reach. My question in this situation is: how much can the grappled creature be moved if it remains within the grappling creature's 15' reach? ie. can it be moved 30' and what type of action is required for this movement?


"ffmpeg: command not found" - But it's in the current directory?

I'm trying to convert some .png files I have into a movie using ffmpeg. I'm using the tutorial:    The files have names Image001.png, Image002.png, ..., Image500.png, and Image501.png. I manually installed ffmpeg this morning from their website, so I don't have to do step 1. I then proceed to run:  cd Downloads cd python-meep cd Images   Where both my images and my folder containing the manually downloaded ffmpeg are located. Next, I type:  ffmpeg -qscale 5 -r 20 -b 9600 -i Image%03d.png movie.mp4   To my surprise, this is the error message I get:  ffmpeg: command not found   What's going on here? Any suggestions would be appreciated. Thanks!  P.S. Could be relevant that I'm using Ubuntu 14.04.


Installing printer for all user profiles on xp machine

I am using gprint as a shell call to print pdf files. I have to install the network printer first, but the program runs under a different account. Is there anyway to install a network printer under Windows XP so that it is available to all accounts on the machine?


How can I set mouse sensitivity, not just mouse acceleration?

I can't find a single desktop environment that supports setting both mouse acceleration AND mouse sensitivity. I don't want any mouse acceleration, but I want to increase the speed of my mouse. That means that if I move the mouse the same distance, the pointer will move the same distance every time, no matter how quickly I move the mouse.  KDE will let me set mouse acceleration to 1x, but the mouse moves too slow then, and I can't figure out how to increase the speed. I am willing to accept a CLI solution, but I have only been able to get xinput to change acceleration. I don't recall having much luck with xset, either.


Ubuntu 14.04: '/boot/grub/i386-pc/normal.mod' not found (SolusVM)

Running Ubuntu 14.04, was doing some normal maintenance and updates last night, also added a VirtualHost.  The instance of Ubuntu is installed as a VPS in my SolusVMWare software. This means I cannot physically mount or plug anything into it so that another instance or startup of Linux could run.  I wondered why it wasn't connectable one day and realized in the VNC that it was stuck at a screen in start-up prompting the console for "grub rescue".. Is it possible for me to get all of my files back somehow and make a new VPS? Or is there a way to get the problem situated through grub rescue? Any ideas?  If it helps I get this..  Booting from Hard Disk... error: file '/boot/grub/i386-pc/normal.mod' not found. Entering rescue mode... grub rescue>   Please keep in mind I'm trying to keep what's on my Linux serer.


General Relativity for an orbiting object

I'm trying to understand something about time dilation on orbiting bodies in General Relativity.  I was watching the Matt Parker video  and he seems to calculate the time dilation of the GPS satellite as ($r_s$ is the Schwartzchild Radius) : $t_0 = t_f*\sqrt {1-r_s/r}$ The article in Wikipedia  under Circular Orbit is: $t_0 = t_f*\sqrt {1-(3/2)*(r_s/r)}$ My logic says the orbiting satellite is in free-fall, so does not feel the effects of gravity $t_0 = t_f$


Change the name of service before Installation

I am working on utility which is used to install service application. I want to add one more feature as install service with custom service name and display name.  So far I tried with using CreateProcess with command string as   ExePath sysNameId:XXX -install. using this I am able install service but the name is not able to change.  Can anyone give me some leads on the same?  Below Is the code I am using to install service.      function ExecuteServiceCommand(pStrCommand: string; var Output, ErrorList: TStringList): Boolean; var   startUpInfo : TStartupInfo;   processInfo : TProcessInformation;   SecurityAttr : TSecurityAttributes;   hPipeErrorsRead    : THandle;   hPipeErrorsWrite   : THandle;   hPipeOutputRead    : THandle;   hPipeOutputWrite   : THandle;   CreationFlags     : DWORD; begin   //initializing ProcessInfo   FillChar(ProcessInfo, SizeOf(TProcessInformation), 0);    //Initializing SecurityAttr   FillChar(SecurityAttr, SizeOf(TSecurityAttributes), 0);   SecurityAttr.nLength              := SizeOf(TSecurityAttributes);   SecurityAttr.bInheritHandle       := True;   SecurityAttr.lpSecurityDescriptor := nil;    //Create Piping handles   CreatePipe(hPipeOutputRead, hPipeOutputWrite, @SecurityAttr, 0);   CreatePipe(hPipeErrorsRead, hPipeErrorsWrite, @SecurityAttr, 0);    //initialing StartupInfo   FillChar(StartupInfo, SizeOf(TStartupInfo), 0);   StartupInfo.cb          := SizeOf(TStartupInfo);   StartupInfo.hStdInput   := 0;   StartupInfo.hStdOutput  := hPipeOutputWrite;   StartupInfo.hStdError   := hPipeErrorsWrite;   StartupInfo.wShowWindow := SW_HIDE;   StartupInfo.dwFlags     := STARTF_USESHOWWINDOW or STARTF_USESTDHANDLES;    // define flags   CreationFlags := CREATE_DEFAULT_ERROR_MODE or                    CREATE_NEW_CONSOLE or                    NORMAL_PRIORITY_CLASS;    // execute the process and get output   if CreateProcess(nil,                 PChar(pStrCommand),                 nil,                 nil,                 true,                 CreationFlags,                 nil,                 nil,                 startUpInfo,                 processInfo                 ) then    begin      Result := true;      // close write handles      CloseHandle(hPipeErrorsWrite);      CloseHandle(hPipeOutputWrite);       // do something to read console output      CloseHandle(hPipeErrorsRead);      CloseHandle(hPipeOutputRead);    end   else    begin         //DoSomething    end;    Result := true;  end;   Calling for the function ExecuteServiceCommand is  ServiceEXEname.exe sysNameId:XXXX -install  Thanks in Advance.


How do I show depth in a photograph?  Blurring in the foreground and focusing on an item in the background.


Series Divergence - Apostol Calculus Vol I, Section 10.20 #7

Prove that $\displaystyle\sum_{n=2}^\infty\frac {(-1)^n}{\sqrt{n}+(-1)^n} $ diverges.  It is easy to see that this absolutely diverges, however how can it be proven to diverge in general? The idea as posted in another forum was to group the terms in the sequence as follows:  $$\sum_{n=2}^\infty \frac{(-1)^n}{\sqrt{n}+(-1)^n}=-\sum_{n=1}^\infty \left(\frac{1}{\sqrt{2n+1}-1}-\frac 1 {\sqrt{2n}+1}\right)$$  and then show that this sequence diverges. I did end up getting an answer from that forum (thank you!) however it depended on results from WolframAlpha which seem extremely difficult to solve by hand. This question is from Apostol's Calculus, written in 1969, so I'd like to have a solution which doesn't depend on WolframAlpha.


How can I find email older than 10 years in Gmail? I need my messages since the beginning; I guess 2003 or 2004. I see only since 2007!


For holomorphic functions, if $\{f_n\}\to f$ uniformly on compact sets, then the same is true for the derivatives.

Let $\Omega$ be an open subset in $\mathbb{C}$. Let $\{f_n\}$ be a sequence of holomorphic functions on $\Omega$ such that $f_n\to f$ pointwise and converges uniformly on any compact subset $K\subseteq \Omega$. Then by Cauchy Theorem and Morera Theorem, $f$ is holomorphic. Let $f_n$ and $f'$ be the derivatives of $f_n$ and $f$ respectively. Prove that $f_n'\to f'$ uniformly on any compact subset $K\subseteq \Omega$.   How to prove?


's description of a brachistochrone curve is      the one lying on plane between a point A and a lower point B, where B is not directly below A, on which a bead slides frictionlessly under the influence of a uniform gravitational field to a given end point in the shortest time.   I was wondering if there was a counterpart to the brachistochrone curve, which would be the curve such that, given the aformentionned conditions, a bead would travel from A to B in the longest, finite amount of time.  I assume such curve would be some kind of concave version of the brachistochrone.


In Python, why can't variables of immutable types be memorized using decorators?

def genfunc(func):     memory=0     def modify_memory(x):         print('before:',memory)         memory=func(x,memory)         print('after:',memory)     return modify_memory  @genfunc def addby(x,mem):     return mem+x  addby(5) addby(5)  The code above receives the following error:  UnboundLocalError: local variable 'memory' referenced before assignment  But if we change it to the following (just change memory to a list and use its first element only): def genfunc(func):     memory=[0]     def modify_memory(x):         print('before:',memory[0])         memory[0]=func(x,memory[0])         print('after:',memory[0])     return modify_memory  @genfunc def addby(x,mem):     return mem+x  addby(5) addby(5)  it runs successfully and outputs: before: 0 after: 5 before: 5 after: 10  Why is that?


TikZ data visualization (still?) not working properly for external file?

I have some troubles using external files for the data visualization library of TikZ. This is my MWE:  \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{datavisualization} \begin{document}  \begin{tikzpicture} \datavisualization [scientific axes, visualize as line] data [read from file=foo.csv] ;  \end{tikzpicture} \end{document}   Where foo.csv is basically just  x,y 0,0 1,1 2,2   The same problem has been described in  a year ago. Compilation produces the error  ! Package PGF Math Error: Sorry, an internal routine of the floating point     unit got an ill-formatted floating point number `'. The unreadable part was near ''..  See the PGF Math package documentation for explanation. Type  H <return>  for immediate help.  ...                                                l.7 ... scatter ] data [ read from file=foo.dat ];   One solution is to replace all commas with spaces in foo.csv and to add separator=\space to the data options. However, this ONLY works if column headlines are specifically named x and y, despite the pgf manual stating otherwise.  To sum it up: importing data in \datavisualization only works for space separated values and only if the columns are named x and y for me. Is this a bug? Am I missing something?


MySQL: "UPDATE command denied to user ''@'localhost'"

For some reason when I installed MySQL on my machine (a Mac running OS X 10.9) the 'root' MySQL account got messed up and I don't have access to it, but I do have access to the standard MySQL account 'sean@localhost' which I use to log into phpMyAdmin.  I am trying to reset the 'root' password by starting the mysqld daemon using the command mysqld --skip-grant-tables and then running the following lines in the mysql> shell.  mysql> UPDATE mysql.user SET Password=PASSWORD('MyNewPass')  ->                   WHERE User='root';  mysql> FLUSH PRIVILEGES;  Problem is when I try to run that MySQL string the daemon spits back a ERROR 1142 (42000): UPDATE command denied to user ''@'localhost' for table 'user'  as if I didn't use the -u argument when I started the mysql shell, either though I did.  Any help is muchly appreciated as I am lost at this point. :/


UPDATE query is not "an updateable query"

I get "Operation must use an updatable query"  when I try to run this;  UPDATE survey  INNER JOIN assay_depths  ON survey.hole_id = assay_depths.hole_id  SET survey.depth = [assay_depths].[max_depth] WHERE survey.depth = -1;   The problem is in the WHERE. Something to do with the '-1'?  UPDATE:  hole_id         azimuth   depth    dip 230DD93_L43         312    0       -78 230DD93_L44         318    34.2    -82 230ER99E33          315.5      -1      -65 230ER99E34          337.5      -1      -65


How to justify the definition of summation $s_n=\sum_{i=1}^n a_i=a_1+\cdots+a_n$?

I read  and found that they define summation via recursion, so I decided to formalize the proof that that this definition is actually valid. I've two questions:   Does my proof contain any error? Are there other simple ways to define summation?   Thank you so much!     Suppose that $(a_1,\cdots,a_n)$ is a finite sequence in $\mathbb N$. Show that there is a sequence $(s_1,\cdots,s_n)$ such that $s_1=a_1$ and $s_{i+1}=s_i+a_{i+1}$ for all $1\leq i<n$.   My attempt:  We define mapping $f$ as follows: $f: \mathbb N\times\mathbb N\to\mathbb N\times\mathbb N: (i,a)\mapsto\begin{cases} (i+1,a+a_{i+1})&\text{if }i<n\\ (i+1,a)&\text{if }i\geq n \end{cases}$  By recursion theorem, there is a unique sequence $(p_i\mid i\in\mathbb N)$ such that $p_0=(1,a_1)$ and $p_{i+1}=f(p_i)$. Let $\pi:\mathbb N\times\mathbb N\to\mathbb N$ be the projection to the second co-ordinate i.e. $\pi(i,a)=a$. Let $s_i=\pi(p_i)$ for all $1\leq i\leq n$, then $(s_i\mid 1\leq i\leq n)$ is the required sequence. It's clear from the definition of $s_i$ that $s_{i+1}=s_i+a_{i+1}$ for all $1\leq i<n$.


I wish to run Ubuntu from my thumbdrive. Is there a "Flavor" that you would recommend? I truly thank you!  Larry


Mesh will not show any material colors in the cycles quick render (shift + z)

I have a part of my mesh that is supposed to have an emission material (applied in cycles). I can see the material in the preview window on the side, and the nodes are the same as any other basic material (emission > material output), but it just won't appear when I do quick renders, in the way that the other materials appear. In fact, even if I apply a material that is being used in another part of the mesh, this one part will still only appear as gray.I also want to say that these are only materials, and I haven't added any UVs or anything to the other parts of the mesh, which display their materials just fine.  No emission    No material appears at all


Remove online account icons from Ubuntu dock

I have connected two Google accounts to my Ubuntu 19.10 PC to access easily to the documents stored in Google Drive. Ubuntu has added the accounts to 'Files' shortcuts, which is how I "mount" GDrive:   But it also added two icons to the dock, which are completely useless, since I can use them only to mount the "drives" and still have to access them through the Files app. A left click on the icons does nothing and with right click I get a menu with four entries of which only the first two work:   How can I remove those useless icons from the dock?


Accessing instance variables withing ActiveRecord model

Been following Rails Testing Prescriptions. The Task table has a column named completed_at. Why can I only write to it with self.completed_at = date (completed_at = date fails) but I can access the attribute without self in the complete? method?   class Task < ApplicationRecord     belongs_to :project    def mark_completed(date = Time.current)     self.completed_at = date   end    def complete?     completed_at.present?   end end   Thanks in advance


what is the difference between a method within JS function and to it's prototype?

As output of both the below JS class is same, then what is special here with prototype?  One of the feature of prototype is get rid of duplicate code, in what case this is possible with prototype?  1.     function Person(name) {         this.name = name;         this.sayName = function () {             console.log(this.name);         };     }     var person1 = new Person("Nicholas");     person1.sayName();   2.   function Person(name) {         this.name = name;     }     Person.prototype.sayName = function () {         console.log(this.name);     };     var person1 = new Person("Nicholas");     person1.sayName();


A word to describe "a curve and inaccurate road"?

Is there a word to describe "a curve and inaccurate road"?


Do we have a policy about self-plagiarism?

The  currently says  In the context of Stack Exchange sites, any copying and pasting of any amount of text or code that wasn't written by you is plagiarism if you try, explicitly or implicitly, to pass it off as your own work. (italics mine)  There is also a concept of . Should this also be addressed in the FAQs? In other words, is it OK to copy (large parts of) your own answer  without proper attribution?


Is this any different from just returning new System.currentTimeMillis()?

I just stumbled accross this method   public static Date getNowDate() {     final Calendar cal = new GregorianCalendar();     cal.setTime(new Date());     return cal.getTime(); }   which gets called like this:  getNowDate().getTime()   Is this any different from just calling  System.currentTimeMillis()   ?


What to call a family you make yourself?

What do you call a family you create yourself through marriage or having children?   I want to distinguish between the family I was born into (my birth family) versus the one I made.


Short story about a man finding out his (ex?)wife is a rebel leader of a robotic society

I've been trying to google this for years. I'm pretty sure I read it in a short story collection, but don't remember the collection or the author or even the name of the story or any of the characters in it. It may have been from one of those 'years best scifi'/'worlds best scifi' compilations, but I'm not solid on that.  Things I do remember:   a man is being investigated because his wife (a genius roboticist) defected to another country, which is run by or just has a lot of robots in it that don't follow the three laws of robotics. the fact that his society disallows strong AI and requires every robot to follow all three laws and the other society doesn't is propagandized to be a reason why his society is superior to the other one there's something of a cold war going between the two of them he himself is an investigator trying to sort out how its possible to be invisible from the omnipresent security of the society in which he lives, because rebel operatives seem to be able to graffiti things without getting caught by the cameras. Spoilers:        He catches someone who tells him that its because they're using hoodies with IR LEDs in the rims to wash out their faces, and that the person is not really an operative so much as a disgruntled teen who built something using the equivalent of the Anarchist's Cookbook, which was disseminated by the man's wife, apparently.      he's about to be tortured or something and a robot and his wife bust into the containment facility he's in and helps him escape, and they start heading towards the border with this other society. His wife is graphically killed by a government robot that apparently doesn't follow the three laws in the escape attempt, but the rescuing robot seems unworried.      giant black robots that don't look like they follow the three laws pop up out of the tops of buildings as they fly(?) over them, and the man realizes his wife was right all along   Super Spoiler       they get to the other society and he has a moment where he encounters his wife. Again. and again. And realizes there are literally hundreds of clones of her. Nice.


Probability about three independent exponential random variables

Suppose we have three independent exponential random variables $A$, $B$ and $C$  with respective parameters $1$, $2$ and $3$.   Calculate $P(A<B<C)$.  The hint says this problem could be solved with calculus and without calculus. I am really curious how to approach it with different methods.


Can microwave with convection replace an actual oven?

cross posted from diy -- people suggested I ask the question here.  I live in a townhouse with a small kitchen and I am wondering if something like this item:   implies that it can be used as a microwave and as a conventional oven where you would bake things.  I understand the space inside it is limited but as my kitchen is very small if it can serve both roles, that would be a life saver. I understand I wouldn't be cooking with ovens much, but could you do the basic things, like baking, etc...


Let $d=GCD(n^2+5,n^3-5n^2+6n)$ show that $d|630$   My work: $d|n^3+5n,n^3-5n^2+6n\implies\ d|5n^2-n,5n^2+25\implies d|n+25 $ Now I can't go further!!


C++ compile error about operater-overloading, type-conversion, and int promotion

#include <iostream> using namespace std; int main() {     string a = "";     a += '0' + 1; // got compiled     a = a + ('0' + 1); // compile error     return 0; }   why the second one got a compile error but the first one not?  prog.cc: In function 'int main()': prog.cc:6:11: error: no match for 'operator+' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')     6 |     a = a + ('0' + 1); // compile error       |         ~ ^ ~~~~~~~~~       |         |        |       |         |        int       |         std::string {aka std::__cxx11::basic_string<char>}   I think first '0' + 1 will get integer promotion and turn to type int, then compiler will try to find overloading operator function, trying to implicitly convert int to char.  please help explain in detail what conversion happened, which overload function called, what the compiler does.  thx very much!


Among the earliest telescopes were Galilean telescopes, modeled after the simple instruments built by Galileo, the first person having used telescopes to study the stars and planets.    I know "having used" should be changed to "to have." Could someone point out the rule or reasoning behind this?


Same error as JadeHouse:  [9940:9940:0228/003228.235113:ERROR:process_singleton_posix.cc(433)] readlink failed: Permission denied (13) [9940:9940:0228/003228.235232:ERROR:process_singleton_posix.cc(256)] readlink(/home/robert/.config/google-chrome/SingletonLock) failed: Permission denied (13) [9940:9940:0228/003228.235288:ERROR:process_singleton_posix.cc(256)] readlink(/home/robert/.config/google-chrome/SingletonLock) failed: Permission denied (13) [9940:9940:0228/003228.235313:ERROR:process_singleton_posix.cc(280)] Failed to create /home/robert/.config/google-chrome/SingletonLock: Permission denied (13) [9940:9940:0228/003228.235794:ERROR:process_singleton_posix.cc(433)] readlink failed: Permission denied (13) [9940:9940:0228/003228.235824:ERROR:process_singleton_posix.cc(256)] readlink(/home/robert/.config/google-chrome/SingletonLock) failed: Permission denied (13) [9940:9940:0228/003228.235924:ERROR:chrome_browser_main.cc(1496)] Failed to create a ProcessSingleton for your profile directory. This means that running multiple instances would start multiple browser processes rather than opening a new window in the existing process. Aborting now to avoid profile corruption. [9940:9977:0228/003228.268812:ERROR:browser_gpu_channel_host_factory.cc(121)] Failed to launch GPU process.    sudo killall google-chrome   says no processes running rm /home/subham/.config/google-chrome/SingletonLock says access is denied   Curiously I can choose Chrome as my default web browser but nothing will start it. google-chrome-stable in Terminal produces the failed to launch GPU process error above.


Hierarchical or TwoStep cluster analysis for binary data?

(This question is an edited version of a question I  which one user recommended would benefit from more focus).  I have 2000 questionnaires from respondents which ask 33 different questions about which issues are present in their lives - i.e. alcohol abuse, domestic violence, mental health, child abuse, learning difficulties etc.  Each question can only be answered yes/no (which I've re-coded as 1/0).  I'd like to use this dataset to start creating n profiles of respondents to define which variables naturally cluster together e.g. (alcohol abuse and domestic violence), (mental health, child abuse, domestic violence), (alcohol abuse, learning difficulties) across some/all of the 33 differnt variables.    indicates that hierarchical cluster analysis is not appropriate for a dataset of this scale/type due to sensitivity of the position of how data is sorted in the dataset, and recommends two-step cluster analysis instead.   Consequently, I'd be really interested in your input on whether hierarchical, two-step or other methods are most appropriate for exploring clusters of responses that natually associate together using a binary dataset.


I wish to show that  $$ \det \begin{pmatrix}  x & a & a & a\\ a & x & a & a\\ a & a & x & a\\ a & a & a & x \end{pmatrix}=(x-a)^3(x+3a).$$ Obviously, I could expand it out and try to notice some factors as I go, but that seems rather tedious. Is there a particularly fast way of demonstrating the above identity?


Novel with plot element of a water world with multi-armed creatures which communicate by joining arms

This novel had a female protagonist as I recall.   A spacecraft was travelling with some purpose, dropped out of hyperspace mid-journey to find a planet with undersea cities and aliens something line sea-stars, with multiple arms, communicated with each other by joining arms, formed a network that way.   I recall that later in the narrative this planet was destroyed.


Many ASUS laptops have a suffix added to their model number. I'm wondering what this stands for and what the differences between machines with different suffixes can be?  For instance on my laptop, it says BU401LA-FA273G. According to the ASUS website, BU401LA is the model number. Then what does the FA273G mean? In general what can be the differences between my BU401LA-FA273G and, say, a BU401LA-FA366G?  (In particular I'd like to know whether the charging port can differ but please give a general answer so it may be of use to others.)


Can I minimize a window from the command line?

I would like to be able to choose any already-open window and minimize it from the command line. Is this possible?


Deleter more than 50 e-mails in gmail in 2020

Last time when I selected the e-mails on a page to delete, after selecting 50, gmail offered that it could mark all the e-mails having that label. Now it does not. How can I select all that 9000 e-mails now?


$p(x)\geq 0 \forall x\Rightarrow p(x)+p'(x)+p''(x)+...+p^{(n)}(x)\geq 0$


Selecting one every n frames from a video using ffmpeg

I was trying to extract one every N frames from a video using ffmpeg. I tried using this command: ffmpeg -i input.mp4 -vf "select=not(mod(n\,10))" 1_every_10/img_%03d.jpg  I wanted to verify that it is working as expected. So I extracted all frames using: ffmpeg -i input.mp4 -vf "select=not(mod(n\,1))" all/img_%03d.jpg  And then I tried to see if 2nd image from the first command matches image number 20 from the second command, and it didn't match. Confirmed both visually and using diff command like  diff all/img_020.jpg 1_every_10/img_002.jpg  Binary files all/img_020.jpg and 1_every_10/img_002.jpg differ  Anyone knows what could be going on? Thanks!


In C#, do you need to call the base constructor?

In C#, if I have an inherited class with a default constructor, do I have to explicitly call the base class' constructor or will it be implicitly called?  class BaseClass {     public BaseClass()     {         // ... some code     } } class MyClass : BaseClass {     public MyClass() // Do I need to put ": base()" here or is it implied?     {         // ... some code     } }


A friend of mine, George, called the other day. The poem "The Road Not Taken" is one of Robert Frost's most famous works.   How come sentence 1 requires commas and sentence 2 does not? Both phrases ("George" and "The Road Not Taken") both specify the subject.


What is a Minecraft mod really, and how can I sanely manage them?

I have found a few mods for minecraft I like a lot. I know you cant use them all at the same time. I know that some go together well, so how do I find out what goes with what?  Is there a way to load some for now, and unload them later so that I can change them out? I got a patch device but I don't think it works that well.  I tried to play with this stuff on my own but I got things so messed up that I had to delete everything and start over. So what am I doing wrong?  KH


How can I install drivers before Windows boots?

If there's a bad hardware driver that is causing Windows to crash during startup, how can you update the driver?  Do I need to make a boot disk?  I have the driver installation disc that came with it and tried to boot from it; obviously that didn't work.  Is there a way to do this?  I'm not sure if it's indeed a bad hardware driver that's causing the crash, but I'm getting a BSOD with a DRIVER_IRQL_NOT_LESS_OR_EQUAL - among other things I want to try updating the drivers, but I can't get into Windows to do it the normal way.


Multiplying the voltage of an output pin on an Arduino board

I am in hold of an Arduino board and 12V DC motor.  I need to be able to control the motor speed gradually, my intention is to output a PWM current in range of between 0 and the maximum 5V of the board to the motor.  My question is what do I need to have in order to multiply the output from the range of 0 - 5V to 0 - 12V to fit the motor?


Can we use a closure within a closure in javascript?

If I write something like below   function sum(x){    return function(y){        return function(z){              return x + y + z; } } }   and call it like  sum(2)(3)(4) // output is 8  can we call the above function, an example of closure within a closure ???


Prove the triangle is equilateral given that a quadrilateral related to its circumcircle is a kite

Let $\triangle ABC$ be a triangle. Let $Γ$ be its circumcircle, and let $I$ be it’s incenter. Let the internal angle bisectors of $∠A,∠B,∠C$ meet $Γ$ in $A',B',C'$ respectively. Let $B'C'$ intersect $AA'$ at $P$, and $AC$ in $Q$. Let $BB'$ intersect $AC$ in $R$. Suppose the quadrilateral $PIRQ$ is a kite; that is, $IP = IR$ and $QP = QR$. Prove that $\triangle ABC$ is an equilateral triangle.    I can prove upto isosceles triangle. How to prove equilateral?


I'm trying to get cyrillic data from MySQL database using php I set utf-8  $db = mysql_select_db(DB_DATABASE) or die(mysql_error()) or die(mysql_error());      mysql_query("SET character_set_client = utf8");     mysql_query("SET character_set_connection = utf8");     mysql_query("SET character_set_results = utf8");   And when i set cyrillic data in db it works properly, but when I'm trying to get it:   $product["id"] = $row["id"];     $product["first_name"] = $row["first_name"];     $product["last_name"] = $row["last_name"];     $product["vk_id"] = $row["vk_id"];     $product["points"] = $row["points"];      // push single product into final response array     array_push($response["users"], $product);  echo json_encode($response);   And it gives me \u0416\u0430\u043c\u0431\u044b\u043b  and when I change json_encode($response); to json_encode($response, JSON_UNESCAPED_UNICODE);  it gives me :Р–Р°РјР±С‹Р  How can I get readable cyrillic data?


If k-folds cross-validation gives k models, how can we decide which to use?

I clearly have a major misunderstanding of k-folds cross-validation. Suppose that you have some training data, and you use 5-folds cross-validation to train a model with it. Unless I am very much mistaken, you now have five models. So how are you going to decide which model to use in practice? You may have some test data, but picking a model based on that data is rightly considered cheating (the test data should always be truly independent).


How to find the ID of an element that was clicked

What I have is a class of table rows that, when one of them is clicked, activates a function in jQuery capturing the id of the element that was clicked. I have seen several posts on how to do this (i.e  or ), but none of them have worked for me.  So, I thought that this would work:  $(".yourStockTabs").click(function() {     if (sellStockClicked === true) {         var ids = $(this).attr("id");         alert(ids);     } });   But it does not. The sellStockClicked === true part is the checker to make sure that a button has already been previously clicked. I figured at first maybe the code to get the attribute was incorrect or maybe the variable wasn't true, but I found that neither of these were the case because I removed the if function and commented out the id part and just had it alert something, but it still did not.  Here is the full code:  $("#sellStockButton").click(function() {     var sellStockClicked = true;     alert("Please click on the row of the stock that you would like to sell.\n\nWhen you are finished, click this button again.");     $(".yourStockTabs").css("background", "#E50000");     $(".yourStockTabs").css("cursor", "pointer"); }); $(".yourStockTabs").click(function() {     if (sellStockClicked === true) {         var ids = $(this).attr("id");         alert(ids);     } }); $("#sellStockButton").click(function() {     if (sellStockClicked === true) {        var sellStockClicked = false;      } });


How is it ensured that Anime Fillers do not "clash" with eventual plot elements?

Are fillers "approved" by the original author (i.e. the mangaka) or do studios just write fillers and hope for the best?


Can someone help me with the following question. I have mangaged to solve this question using well ordering prinicple but cant proof it by the induction method. I cant proof that n+1 holds in the equation. Please be as detailed as possible. The question could be found in link below, it is listed as question number 2.     Prove by either the Well Ordering Principle or induction that for all nonnegative integers $n$:   $$\sum_{i=0}^n i^3 = \left(\frac{n(n+1)}2\right)^2.\tag1$$   .


There "is" or "are" a wealth of opportunities?

Which is correct: "there ARE a wealth of opportunities" or "there IS a wealth of opportunities?"


Evaluation order of multiple conditions inside "if" clause

I was trying to find the order of evaluation inside if clause when more than 2  conditions are specified. I found multiple results to talk about how 2 conditions are evaluated. My questions is when I have something like,  it=seqMap.find(a);  if( a !="" && it==seqMap.end() || isEven ) { //Do something }   I understand that this is not the right way to write code and braces are important but I am trying to understand how this will work, out of curiosity.


What should I have to kill the Eye of Cthulhu in Terraria?

I have some OK stuff such as decent weapons and armor, but can you look at this list of what I have and suggest some new stuff I should get and/or improve to kill the Eye of Cthulhu? List of some stuff I have:   Gold chestplate and helmet with Iron greaves. Healing Potions, Archery Potions, Bowls of Soup, Ironskin Potions, and some "cheap" Potions. 9 Hearts of health and 8 Stars of Mana. Demon Bow with some Unholy Arrows and Fire Arrows. Space Gun. Some Grenades. Water Bolt spell. Phaseblade.


Strength Bonus for Dual Wielding Two Handed Weapons With Extra Arms

Assuming I have a creature, with four natural arms (or a person with extra vestigial arms — RAI I know this is unintended, but RAW it's seemingly legit) and they decided to, instead of quad-wielding one handed weapons, dual wield two handed swords. According to the rules, the offhand weapon gets 1/2 Str bonus. However two handed weapons use 1+1/2 Str bonus.  How would this strength bonus/penalty work, assuming said creature or player could not access the Double Slice feat?  The similar question  does not explain how the bonus damage to strength is handled.


why ls -a command showing file name in red color?

As shown in the above picture, When I do the command ls -a is one specific file name in red color. Why is it so?


Does Liouville's theorem hold if the function is bounded from below?

Given f an entire function, assume there exists an m>0 s.t. |f(z)|$\geq$ m $\forall$ z $\in$ $\mathbb{C}$. Show that f is constant. It seems awfully a lot like liouville's theorem but I am not sure on the bound.


When I render something, as image or video, is there any option to change the contrast or saturation of the image without having to use any external software? Thanks in advance.


Is electric potential always differentiable?  If so, why?  If it isn't always, then what properties of a charge-distribution are required to make it differentiable?


Java BufferedReader back to the top of a text file?

I currently have 2 BufferedReaders initialized on the same text file. When I'm done reading the text file with the first BufferedReader, I use the second one to make another pass through the file from the top. Multiple passes through the same file are necessary.  I know about reset(), but it needs to be preceded with calling mark() and mark() needs to know the size of the file, something I don't think I should have to bother with.  Ideas? Packages? Libs? Code?  Thanks TJ


I have this code :   if (is_dir($dir)) {             if ($dh = opendir($dir)) {                 while (($file = readdir($dh)) !== false) {                     print_r(" ".$file. " ");                     $data = array(                         'emplacement' => 'uploads/slidesFiles/'.$file                     );                     $jpgId = $CI->dataaccess::InsertJpg($data);                     $data = array(                         'idSlideZip' => $zipId,                         'idSlideJpg' =>$jpgId                     );                     $CI->dataaccess::InsertJpgToSlide($data);                 }                 closedir($dh);             }         }   My folder :     But when I am using the read dir function to loop into my folder, I dont have the expected order wich is the next :     I tried to reorder with the sort function but that is not the result expected.    Any idea ?


Change in basis related to conic-sections

I was trying to solve some change of basis exercises, so I've done them and I want you to tell me if I've done it correctly.     1) Given the coordinates system $(O'; X'' Y'')$ asociated to the    basis $B=[{b_1=\frac{1}{\sqrt{2}}; \frac{1}{\sqrt{2}};  > b_2=\frac{-1}{\sqrt{2}}; \frac{1}{\sqrt{2}}}]$ with origin in    $O'=(2;5)$, find the intersection between $Q: y''^2=-4 \sqrt{2} x''$    and the straight line in $(O,XY)$ $V=(0;5)+t(-1;1) t\epsilon R$    Well, first I tried to write $Q$ in terms of $X$ and $Y$, and not in terms of $X''$ and $Y''$. I used the formula:  $(\begin{matrix}  X''\\  Y'' \\  \end{matrix})$ =$(C)_B$ × $(\begin{matrix}  X-2\\  Y-5 \\  \end{matrix})$   Then I replaced those values in the equation of $Q$ and I got $Q: \frac{(-x+y-3)^2}{2}=-4 \sqrt{2} \frac{(x+y-7)}{\sqrt{2}}$   After that, I found the intersection between $Q$ and $V$ using equations and I got that the intersection points in $(O;XY)$ are $P_1(3;2)$ and $P_2(-1;6)$      2)Given the coordinates system $(O,X'Y')$ asociated to the basis    $B=[{b_1=\frac{1}{\sqrt{2}}; \frac{1}{\sqrt{2}};  > b_2=\frac{-1}{\sqrt{2}}; \frac{1}{\sqrt{2}}}]$ with origin in    $O=(0;0)$ and the ellipse $9X'^2+5Y'^2-3X'+2Y'-10=0$ find the    coordinates of the centre of the ellipse in $(O,XY)$    So, here I found the centre of the ellipse in $(O,X'Y')$ and it was $(\frac{1}{6}; - \frac{1}{5})$, then, doing something similar to what I've done before I found out that the centre in $(O,XY)$ was $( \frac{11}{30 \sqrt{2}};$ $\frac{-1}{30 \sqrt{2}}$)


How to make google index press releases or new items as they are released

I have noticed that several website news items are indexed immediately by Google. Even questions posted on stackexchange.com are indexed by Google within minutes. Can someone tell me how i can do that with the website which has frequent news items on website.  How can i achieve this with otherwise with has frequent news or press releases posted.


What are Codominant vs Dominant Genetic Markers?

When talking about types of genetic markers, the adjective "dominant" and "codominant" are often used. I don't fully understand their definitions and found contradicting definitions.  Foll and Gagiotti (2008)  Typically reading from , they list give two examples of markers of each type   Codominant markers   SNP microsatellite  Dominant markers   RFLP  AFLP    reddit   indicates that RFLP are codominant markers (unlike stated in  Foll and Gagiotti (2008)).  wageningenur  On  (random website I never heard of before), they define dominant and codominant markers based on gene expression suggesting that the terms dominant and codominant used for markers have the same definition than those used for allelic effects on the phenotype (dominance, recessivity, overdominance, etc..).  Questions   What are the definitions of dominant and co-dominant genetic markers? Can you please offer examples for each type and explain why they fit in one or another category? Do the terms dominant and codominant have the same definition when used to describe a marker and when used to describe allelic effects on the phenotype (dominance, recessivity, overdominance, etc..)?


Removing Advanced MacCleaner Icon from Lauchpad

Had problem with "Advanced Mac Cleaner".  After some effort, and plenty of time, I think I have found and removed all files concerning this malware.  My only apparent remaining problem is that the Advanced MacCleaner icon remains in my Launchpad.  I really, REALLY don't want to bring any of the amc files back from trash unless I absolutely have to (and would prefer to empty trash entirely after I am sure this whole problem is solved.)  Anyone got a fairly easy fix for this final step that a basic laymen (computer wise) like me could implement w/o too much difficulty?  Thanks.


Layers with the same projected coordinate system and geographic coordinate system do not overlap

I have a blank map, I've set the data frame to the same projected coordinate system as the data I'm going to add. I have added one shapefile and it looks good. When I wave the cursor over the map the decimal degrees displayed in the lower right corner of the data frame are correct.    I then attempted to add a Excel table that has lots of points with the decimal degrees for each point. I added the table, and used the Display XY Data option to display the points. The resulting points do not overlap the first shapefile, even though the two are actually just about identical. I've checked the projected and geographic coordinate systems and they're the same.   When I zoom in on the layer with the points I find that in the lower right hand corner of the data frame it registers everything as being at -85.489, 0 decimal degrees, which is clearly wrong. The measure tool shows that the points are mere millimeters apart, which they're not.  Based on similar question on this site I tried using the project tool on my points and projecting it into the format it already was in (i.e. the same projected and geographic systems as the shapefile) that didn't work, it just wound up warped.  What has gone wrong with displaying my data?


dell inspirion 7559 -- ubuntu 16.04 booted up using `nomodese` to login screen successfully but desktop is now showing after logging in

I'm a very novice user of ubuntu, tried installing ubuntu on my dell 7559 15" laptop. Installed it successfully after some search, I had to press e and add the following line to grub bootloader nomodeset added that... installed it successfully after when I went to start the ubuntu   I repeated the added nomodest in bootloader again to run ubuntu 16.04 ran it to login screen image below.    once I logged in no desktop loaded, the following image     Any Idea?   Kindly help me, what should I do to get it working...


Let us say we have a mighty man crossing a bridge, carrying 4 bags of concrete, each of which weighs 50 pounds.    Let us say, for the sake of the argument, that the mighty man himself weighs 300 pounds.  The support capacity of the bridge $x$ is less than the 500 pounds they weigh together - therefore, the mighty man cannot carry the concrete in a stack across the bridge - it will fall.  However, the mighty man does have the ability to juggle all the concrete bags so that he is only in contact with one of them at a time.    Is there such a value of $x$ possible that he can cross the bridge juggling all four bags of concrete at once, or will the bridge necessarily exceed its support capacity?


how to remove all the application from ubuntu 18.04 LTS?

how to remove all the application from Ubuntu 18.04 LTS? i installed a lot of software's and packages ,i don't remember what all are they......can you please help me  ? i want to the OS like fresh installed  thank you


Why do I see myself twice when I run the who command?

When I run who on my ubuntu laptop I see myself listed twice.  Once with pts/0 and once with pts/2.  Why is that?


Forecasting stock prices with ARCH Model

I am pretty confused about the ARCH model and forecasting of stock prices / stock returns. I have read some literature about forecasting with different models (AR,MA,ARMA) and i get the concept of them and I also implemented them on a time series (of a stock price in R). Now i want to do forecasting with a ARCH model but all I can find in the literature is the forecasting of volatility of a time series but not on forecasting of the time series itself. Is it even possible to do such a forecast with the ARCH model? And if so can you explain to me how i should approach?


How do I use UNetbootin to install Ubuntu without getting unmet dependencies?

I am trying to install Ubuntu 15.x without a bootable USB thumbdrive using UNetbootin. I was not able to install UNetbootin:  sudo apt-get install -f unetbootin   It resulted in unmet dependencies, and here is the exact error text:  The following packages have unmet dependencies: unetbootin: Depends: libqt4-network (>= 4:4.5.3) but it is not installable               Depends: libqtcore4 (>= 4:4.6.1) but it is not installable               Depends: libqtgui4 (>= 4:4.5.3) but it is not installable               Depends: p7zip-full but it is not installable               Recommends: extlinux but it is not installable E: Broken packages   I currently have Ubuntu 10.04 on my system.


Does the music I’ve purchased from iTunes Store stay permanently even if my Apple Music subscription expires,

Not really a big problem I’m just wondering


I have already tried all the usual fixes to this .. no luck so far  sudo apt-get dist-upgrade  Reading package lists... Done Building dependency tree        Reading state information... Done Calculating upgrade... Done The following packages have been kept back:   libglib2.0-0:i386 libhwloc-plugins 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.   none of the following help  sudo apt-get update sudo apt-get upgrade sudo apt-get -f install


"I don't know why / write it" - which is grammatically correct?

Which sentence is grammatically correct?   I don't know why did I write it I don't know why I did write it


I have an odd list, interrupted by normal text introducing its last item:  \documentclass{memoir} \usepackage{enumitem} \usepackage{lipsum} \begin{document} \lipsum[1] \begin{enumerate}[itemsep=-4pt] \item My first item \item My second item\\ Along with these should be mentioned: \item My third item \end{enumerate} \end{document}   The text between item two and three, "Along with these...", is supposed to break out of the list and start at the left edge of the textblock. How do I push it to the left, if that's at all possible?  I already tried the following between item 2 and 3,   \end{enumerate} \vspace{-2\baselineskip} Along with these should be mentioned: \vspace{-\baselineskip} \begin{enumerate}[itemsep=-4pt] \setcounter{enumi}{2}   but the inter line space was somewhat off.


How to add command line options to shortcut?

How can I add command line options to an executable in a shortcut in Windows XP?  For example in the shortcut properties in target I have:  "c:\path\to\exe\pogram.exe"   I want to add some options:  "c:\path\to\exe\program.exe -option1 -option2"   However when I do this I get an error saying that the name specified in the target box is not valid.


Positive integer $n$ such that $2n+1$ , $3n+1$ are both perfect squares

How many positive integer $n$ are there  such that $2n+1$ , $3n+1$ are both perfect squares ?   $n=40$ is a solution . Is this the only solution ? Is it possible to tell whether finitely many or infinitely many solutions exist ?


When should a graduate student accept a peer-review request?

I have recently published my first research paper and have already received a request to review a manuscript. The journal's impact factor is low, but it is open access, and the paper's topic is relevant to my field of study. What factors should I keep in mind when deciding whether to accept or decline the request to review? What level of expertise is typically expected from a good-quality review?


I'm trying to run a makefile used by my company, when I type 'make' in my shell I get this error:     Can't locate YAML/Tiny.pm in @INC (you may need to install the YAML::Tiny module) (@INC contains: /Library/Perl/5.18/darwin-thread-multi-2level /Library/Perl/5.18 /Network/Library/Perl/5.18/darwin-thread-multi-2level /Network/Library/Perl/5.18 /Library/Perl/Updates/5.18.2 /System/Library/Perl/5.18/darwin-thread-multi-2level /System/Library/Perl/5.18 /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level /System/Library/Perl/Extras/5.18 .) at ./yaml-html.pl line 21.   BEGIN failed--compilation aborted at ./yaml-html.pl line 21.   And when I run:     sudo cpan install YAML::Tiny   I get:     Reading '/Users/altiire/.cpan/Metadata'     Database was generated on Thu, 13 Aug 2015 04:41:02 GMT   YAML::Tiny is up to date (1.69).   I'm on OS X Yosemite


C++ Is it safe to test for NaN using cast to long?

As I understand it NaN's are represented by all 1's in the exponent part of a double's representation and non-zero fraction. (Info from )  Is it safe to test for NaN using something like:  double num = 1.0;  // Do something to make num NaN  double* pointer = &num; unsigned long long num2 = *((unsigned long long*)pointer);  if((unsigned long long)num2 == 0x7FF8000000000001) {     // Got a NaN }   I hope that 0x7FF8000000000001 is the correct test.  Since the fraction has to be non-zero to represent a NaN, then I guess the fractional part of the double representation can by anything, so perhaps a more sophisticated test would be required, which converted the fractional part to 1, as shown in the number 0x7FF8000000000001. (Note the 1 on the end, in the fractional part.)  So, would something like this ever be safe to use?  Edit: As Mike mentioned, in the example I should have used a pointer to get the bits, I will make this change now...


Is it possible to tell if a unjailbroken phone has been jailbroken in the past?

I heard that a phone can be jailbroken and then "un-jailbroken." Is it possible to tell if an "un-jailbroken" phone has been jailbroken in the past?


I have 4 questions regarding the imaginary and complex numbers. (And some ideas)  My questions are about the way that I’m trying to come up with a proof to the equation i²=-1 (and from there maybe also the equation sqrt(-1)=i or -i) without of course first accepting them to be true axiomatically.  I would like to hear your ideas! The following is not any kind of proof itself, but just some ideas that I am having and I would like to know if they are correct or not and what are your ideas about them.    We start by having 2 axes, one for the real numbers and one (at right angles to it) for the imaginary ones, forming the complex plain. But because we have not defined any complex numbers yet we should better avoid naming it "complex plain" just yet.  xx' axes are the axes of the real numbers  yy' axes are the axes of the imaginary numbers  *(note 1: we should not call "i" or any other imaginary number, "imaginary" yet. At least not before proving them to be so)  *(note2: angles are measured counterclockwise from the x’x axes)  I will first take i and give this new definition where: i=1<90° (or i=(1,90°))  1) i=1<90°  That notation means that i is a number on top of a vector with a length of 1 unit and 90° degrees angle counterclockwise from the x’x axes.  I will also take -1 and make it a vector on my complex plain. -1 of course is a number on a vector with 180° of angle from the x’x axes and a length of 1 unit. Therefore -1 can be written as a vector of (1<180°). This can also be written as -1=(1,180°) but I'll just stick with the complex polar form for the rest of this approach.  *(note3: the symbol < means "angle" by the way)  2) -1=1<180°  Then I will proceed on squaring this new i number.  Squaring i will also square the vector (1<90°) and we all know that squaring this vector in polar form equals to ( 1*1 < 90°+90° ) which equals to (1<180°)  i²=(1<90°)² =>  i²=(1*1 <90°+90°) =>  i²=(1<180°)  Therefore I ended up with this equation i²=(1<180°)  3) i²=(1<180°)  i² therefore is a new number upon our new vector (1<180°) that has a length of 1 and an angle of 180° counterclockwise from the xx' axes  Using (2) We know that -1=1<180°  So squaring the i, will lead us upon the real number -1  So to recap the whole thing we did:  i²=(1<90°)²  => Step 1  i²=(1*1 < 90°+90°) => Step 2  i²=(1<180°) => using (2) Step 3  i²=-1 Step 4  sqr(-1)=±i ??? Step 5  And here are my 4 questions:   1) Is it correct to go from step 1 to step 2 ?  2) Can we therefore prove that i²=-1 from the 3rd step i²=(1<180°) ?  3) Can we then say that from i²=-1 we can get to sqr(-1)=±i step 5 ?  4) And even further, can we then define the imaginary and complex numbers and base their new definitions (and maybe the whole ℂ) in this new equation i=1<90° instead of this i²=-1 or ±i=sqr(-1) equation?    Main goal for me is to get a better understanding on the whole concept of imaginary numbers, and I have to be honest with you, that the way I was introduced in school to the imaginary numbers and being told that people just accepted this idea just because it worked is not the best way, the already open mind of a student, to be introduced in complex analysis and beyond.  Are imaginary numbers created or invented? A 'meaning' can mean a lot of things, but most importantly a 'meaning' in mathematics is a way to logically connect 2 and more things together and see how they cooperate. Algebra and geometry for example.   You name it!  Thanks for your time.


Adding buffer when writing byte[] to OutputStream

In my method, I'm saving data from file to an output stream.  For now, it looks like this  public void readFileToOutputStream(Path path, OutputStream os) {     byte[] barr = Files.readAllBytes(path)      os.write(barr);     os.flush(); }   But in this solution, all bytes are loaded into memory, and I want to use buffer to release some of it.   What can I use to supply my reading with buffer?


So today I was watching Grown-up again and saw the tooth of Lenny's daughter fell and we can see she had no teeth. Similarly, I remembered a scene with a missing tooth in the Hangover part 1. So I thought, how do they do toothless shots? Are the actors really toothless and they wore prop teeth for the previous scenes? So I searched for the Hangover missing tooth scene and found an :  The missing tooth, how did they do that? Ed Helms: "When I was 15 I lost a tooth and had an implant put in. Cut to 20 years later, I'm doing this part and the script calls for my character to lose a tooth. We did some camera tests blacking it out, we made a prosthetic with a gap in it, but that made me look like a donkey, so I vetoed that right away. And then I just finally called my dentist and said, 'You know, I've had this implant for 20 years. What's it involve in taking it out?' And he said, 'It’s actually not that big a deal. We can do that.' So we took it out and I was toothless for three months, for the run of the movie."  But my question is, is it always possible to hire such an actor who has lost his/her tooth in the past? Each director/producer may not get that lucky. But there are a lot of movies where tooth picking or losing is shown. Like the girl in Grown Ups or the guy in The Tommyknockers (). So what do they do then? How are they able to show a toothless mouth?


One comment per user per post but be able to reply to existing comments

I want to restrict my users to be able to comment only once per post but be able to reply to existing comments. How can I do that?  I found this code which will do the half trick. With this code the comment form is hidden if they already comment in that post but they cant reply to existing comments.   <?php global $current_user; $args = array('user_id' => $current_user->ID); $usercomment = get_comments($args); if(count($usercomment) >= 1){     echo 'disabled'; } else {     comment_form(); } ?>


How should a SO answer be credited when used in an open-source project?

I've looked through a few of the questions about the licensing of posts on SO, but haven't found any really satisfactory answers. Can an answer be used in an open source project (with an MIT license)? I'm not looking to simply cut and paste, because I would need to modify the snippet to suit my project and also because the answer is in a different programming language. Also, if the answer can be used, how should it be credited? Should it just be a link to the SO page? Should it include the user name? Should the user be contacted?


Secondary database log file in alwayson is very big

I have an alwayson environment (AlwaysOn AG).  Database [UsersDb] in the slave server, His log file is very big . How can I reduce his size(shrink)?


Let $G = (V, E)$ be a simple undirected graph with $n = |V | \ge 1$ vertices. A subset $U \subseteq V$ of the vertices is called a vc-set if for every edge $\{i, j\} \in E$ either $i \in U$ or $j \in U$ (or both). Let $U^∗$ be a vc-set for $G$ that has the smallest size possible (meaning there does not exist any other vc-set $U'$ such that ($|U'| < |U^∗|$). A subset $W \subseteq V$ of the vertices of $G$ is called an in-set if for all $i, j \in W, \{i, j\} \not\in E$. Let $W^∗$ be a largest possible in-set in $G$ (meaning there is no other in-set, $W′$, such that $|W^∗| < |W^{'}|$). Prove that $|W^∗| = n − |U^∗|$. I tried to use the basics of graph theory but was of no use as I got stuck and back to the starting point. If you could help me I would be really grateful thanks a ton!


PHP readdir() not returning files in alphabetical order

I am reading through a directory with some pictures and such using a pretty simple implementation of readdir() like the following:  if ($handle = opendir($path)) {     while (false !== ($szFilename = readdir($handle))) {     if ($szFilename[0] !== '.') {         if (is_file($path.$szFilename)) {                 // do stuff             }         }      }  }   The problem that I am having is that the files are not being read in alphabetical order as the docs for readdir() state:     Returns the filename of the next file   from the directory. The filenames are   returned in the order in which they   are stored by the filesystem.   Another weird thing is that, on the local testing server, the same code works great.  This is running on a server using the LAMP stack in both cases.  I know that I can build an array and just sort it, but I was wondering if I was missing something in what I was doing.


PHP header(): 302 Moved Temporarily error

In my webapp I have opened a modal and in that modal I'm processing some data using with ajax in another page(ajax.php), after the processing is done in the ajax.php I do:  header("location: blah.php");   But since I'm in another page and the whole process is going on with ajax request the page doesn't do anything, when I check the ajax request via FireBug, I see the request goes red with this error:  302 Moved Temporarily error   How can I redirect in this scenario?  Thanks in advance