I have a simple HTML upload form, and I want to specify a default extension ("*.drp" for example). I've read that the way to do this is through the ACCEPT attribute of the input tag, but I don't know how exactly.  <form enctype="multipart/form-data" action="uploader.php" method="POST"> Upload DRP File: <input name="Upload Saved Replay" type="file" accept="*.drp"/><br /> <input type="submit" value="Upload File" /> </form>   Edit I know validation is possible using javascript, but I would like the user to only see ".drp" files in his popup dialog. Also, I don't care much about server-side validation in this application.


Does the wording of the Wrathful Smite spell imply that there are other living beings that aren't considered "creatures"?

I've been playing D&D 5e for about a year, and as I've understood, every living being falls under the "creature" category: humanoids, beasts, monstrosities, monsters, constructs, undead, celestials, fiends, etc.  However, the Paladin spell Wrathful Smite reads as follows:     Additionally, if the target is a creature, it must make a Wisdom saving throw   or be frightened of you until the spell ends   This made me question the meaning of "creature".  Does it imply that there are other living beings, aside from "creatures"?


Can "each" be substituted by "either" in a construction like "There were two girls, either with a flower"?

Can "each" be substituted by "either" in a construction like     There were two girls, either with a flower?   And if so, is it clear that totally there are two flowers?  Is it crucial that the sentence is affirmative? Will   "There were two girls, neither had a flower"   sound better?


Is $\sum\limits_{n = 1}^\infty (-1)^n\frac{H_n}{n}=\frac{6\ln^2(2)-\pi^2}{12}$ a valid identity?

A while ago I asked a question about an identity that I found while playing with series involving harmonic numbers. However, since the methods I used were not the focus of my question, I never explained how I got this result. So here it goes...  NOTE: It may be of help to work backwards through this problem instead. This is just how I did it.  We start by defining $H_n$ as the $n^{th}$ harmonic number. We also take note of the identities:  $$ \sum_{n=1}^\infty \frac{(-1)^n}{n} = -\ln(2)$$ $$ \sum_{n=1}^\infty \frac{1}{n^2} = \frac{\pi^2}{6}$$  Now we note that:  $$ \tag{1}H_n = \sum_{k=1}^\infty \frac{1}{k} - \frac{1}{k+n} = \sum_{k=1}^\infty \frac{n}{k(k+n)}$$  Since $\sum_{k=1}^\infty \frac{1}{k} - \frac{1}{k+n}$ is a telescoping series.  Dividing by $n$ we get: $$\tag{2} \frac{H_n}{n} = \sum_{k=1}^\infty \frac{1}{k(k+n)}$$  Since $ \sum_{n=1}^\infty\frac{H_n}{n}$ is obviously divergent, I took a look at the alternating series:  $$ \tag{3}\sum_{n=1}^\infty(-1)^n\frac{H_n}{n} = \sum_{n=1}^\infty(-1)^n\left(\sum_{k=1}^\infty \frac{1}{k(k+n)}\right)$$  We must now multiply this series by 2 and add $\sum_{n=1}^\infty\frac{1}{n^2} $ which is necessary for the next step.  So we have:  $$\begin{align}\tag{4}\sum_{n=1}^\infty\frac{1}{n^2} + 2 \sum_{n=1}^\infty(-1)^n\left(\sum_{k=1}^\infty \frac{1}{k(k+n)}\right) & = \left(\frac{1}{1}\cdot\frac{1}{1} + \frac{1}{2}\cdot\frac{1}{2} + \frac{1}{3}\cdot\frac{1}{3}+\cdots\right) \\ & -2 \left(\frac{1}{1}\cdot\frac{1}{2} + \frac{1}{2}\cdot\frac{1}{3} + \frac{1}{3}\cdot\frac{1}{4}+\cdots\right)  \\ & +2 \left(\frac{1}{1}\cdot\frac{1}{3} + \frac{1}{2}\cdot\frac{1}{4} + \frac{1}{3}\cdot\frac{1}{5}+\cdots\right)  \\ & -2 \left(\frac{1}{1}\cdot\frac{1}{4} + \frac{1}{2}\cdot\frac{1}{5} + \frac{1}{3}\cdot\frac{1}{6}+\cdots\right) \\ & + \cdots \end{align}$$  With a very careful (and possibly illegal) rearrangement of this expanded sum, we can finally obtain: $\\$ (NOTE: It may be easier to work backwards through this step)  $$ \begin{align} \tag{5}\sum_{n=1}^\infty\frac{1}{n^2} + 2 \sum_{n=1}^\infty(-1)^n\left(\sum_{k=1}^\infty \frac{1}{k(k+n)}\right) &= \left(-\frac{1}{1} + \frac{1}{2} - \frac{1}{3} + \cdots\right)\left(-\frac{1}{1} + \frac{1}{2} - \frac{1}{3} + \cdots\right) \\ & = \ln^2(2)\end{align}$$  Thus, we have:   $$\tag{6}\sum_{n=1}^\infty(-1)^n\frac{H_n}{n} = \frac{6\ln^2(2) - \pi^2}{12} = -0.5822...$$   are 3 graphs from computing the actual value of the sum. The first graph is of the difference between the actual sum and  $\frac{6*ln^2(2)-\pi^2}{12}$ for k up to 14000. As you can see it seems to converge on 0. You can ignore the 2nd and 3rd graphs.  QUESTIONS:  Is the method used from step 4-5 (or vise versa) legal even though it involves conditionally convergent series? If not, is there any restrictions and/or rearrangements I can use to make it legal?  Is there any known generalizations for $\sum_{n=1}^\infty(-1)^n\frac{H_n}{n^q}$ that extend this result?  Recommended readings that cover this topic would be greatly appreciated as well.  Thanks, Dom


I wanted to simply say congratulations to my friend for his university graduation. But I was kind of stuck for choosing the correct terms.  Congratulations on your graduation   or  Congratulations for your graduation   or what?


I'm trying to setup remote connection to my Windows 10 machine. During the setup I noticed that my installation is missing some settings all the tutorials have. Can anyone tell me why I'm stupid and what I should do? Below you can find a screenshot of what I'm talking about. The first image is how it should be. The second picture is a screenshot on my machine.      Edit: After popular request, my windows version:


How do we encourage musical aptitude in a two-year old?

In what ways can we encourage musical aptitude in a two-year old?


If $n>$1 and $S_n= \frac12 + \frac13 +\cdots + \frac1n$, show $S_n$ is not an integer.

At the back of the book which contains this problem, a hint is given to consider $$S_n\cdot2^{k-1}\cdot3\cdot5\cdot9\cdot\ldots$$ where $2^k \le n < 2^{k+1}$.  I don't know how this helps? I know that every positive integer can be written as a sum of powers of 2, but not sure if this is relevant.


A geometry question: Let $ABCD$ be a convex quadrilateral. Prove that AD is parallel to BC.

Let $ABCD$ be a convex quadrilateral such that the length of the segment connecting midpoints of the two opposite sides $AB$ and $CD$ equals $\frac{AD+BC}{2}$ . Prove that AD is parallel to BC. I assume that AD is not parallel to BC but I can't find any contradiction.


Asymptotic behaviour of logistic regression

Assume that we use logistic regression with a given regression function r(x) for each sample vector x. Is is true that if we have infinite samples, we have r(x) = log(p(x)) - log(q(x)) where p(x) is the probability that vector x has label 1 and q(x) is the probability that vector x has label -1. In other words, the regression function asymptotically gives the difference of log probabilities in the two classes.


What is available memory while using free command?

The output of the free command that I fired on my linux host is as belows:  free               total        used        free      shared  buff/cache   available Mem:      263846320    47746620     3290072     1140808   212809628   214382420 Swap:             0           0           0   I am not able to figure out what this available part is specifying. The free memory is very less shown i.e around 1.24% even though the total memory is way high and used memory is around 18.09% only.  free -h               total        used        free      shared  buff/cache   available Mem:           251G         45G        3.1G        1.1G        202G        204G Swap:            0B          0B          0B   Does it mean I wont be able to start more applications as free memory is very less. The used memory is 18% only. So shouldn't free memory be 72% and not 1.24% as the command is showing above.  I am confused. Can anyone help?


Is it possible to use a type that takes a template parameter as a template parameter?

Consider the following program.  #include <vector> #include <unordered_set>  /**  * Convert any templated iterable container to a std::unordered_set.  */ template <typename T> std::unordered_set<T> vectorToUnorderedSet(const std::vector<T>& container) {     std::unordered_set<T> set;     for (T t: container) {         set.insert(t);     }     return set; }  int main(){     std::vector<int> vec {1,2,3};     std::unordered_set<int> set = vectorToUnorderedSet(vec); }   If I compile it with the following command, it compiles and runs fine.  g++ -std=c++11 -O3 -Wall -g TemplatePlay.cc -o TemplatePlay -pthread   Now, I'd like to generalize this function, so that it can take any templated container as input.  Here is my first attempt.  /**  * Convert any templated iterable container to a std::unordered_set.  */ template <typename T, typename C> std::unordered_set<T> containerToUnorderedSet(const C<T>& container) {     std::unordered_set<T> set;     for (T t: container) {         set.insert(t);     }     return set; }   This fails with the following error.  g++ -std=c++11 -O3 -Wall -g TemplatePlay.cc -o TemplatePlay -pthread TemplatePlay.cc:8:51: error: ‘C’ is not a template  std::unordered_set<T> containerToUnorderedSet(const C<T>& container) {                                                    ^ TemplatePlay.cc: In function ‘int main()’: TemplatePlay.cc:18:60: error: no matching function for call to ‘containerToUnorderedSet(std::vector<int>&)’      std::unordered_set<int> set = containerToUnorderedSet(vec);                                                             ^ TemplatePlay.cc:8:23: note: candidate: template<class T, class C> std::unordered_set<T> containerToUnorderedSet(const C&)  std::unordered_set<T> containerToUnorderedSet(const C<T>& container) {                        ^~~~~~~~~~~~~~~~~~~~~ TemplatePlay.cc:8:23: note:   template argument deduction/substitution failed: TemplatePlay.cc:18:60: note:   couldn't deduce template parameter ‘T’      std::unordered_set<int> set = containerToUnorderedSet(vec);                                                          ^   Next, I tried the magic incantations mentioned in , but I don't understand the syntax, so it's possible that I implemented it incorrectly.  /**  * Convert any templated iterable container to a std::unordered_set.  */ template <typename T, template <typename> class C> std::unordered_set<T> containerToUnorderedSet(const C<T>& container) {     std::unordered_set<T> set;     for (T t: container) {         set.insert(t);     }     return set; }   This resulted in the following error.  g++ -std=c++11 -O3 -Wall -g TemplatePlay.cc -o TemplatePlay -pthread TemplatePlay.cc: In function ‘int main()’: TemplatePlay.cc:18:60: error: no matching function for call to ‘containerToUnorderedSet(std::vector<int>&)’      std::unordered_set<int> set = containerToUnorderedSet(vec);                                                             ^ TemplatePlay.cc:8:23: note: candidate: template<class T, template<class> class C> std::unordered_set<T> containerToUnorderedSet(const C<T>&)  std::unordered_set<T> containerToUnorderedSet(const C<T>& container) {                        ^~~~~~~~~~~~~~~~~~~~~ TemplatePlay.cc:8:23: note:   template argument deduction/substitution failed: TemplatePlay.cc:18:60: note:   template parameters of a template template argument are inconsistent with other deduced template arguments      std::unordered_set<int> set = containerToUnorderedSet(vec);                                                             ^ Makefile:8: recipe for target 'TemplatePlay' failed make: *** [TemplatePlay] Error 1   If possible, what are the correct incantations for defining a templated method which takes a type requiring a template parameter?  The  to the  does not address these compiler errors.


How to get solutions in elementary functions to the following non-linear ODE

$y\frac{\text{d}^2y}{\text{d}x^2}-2\left(\frac{\text{d}y}{\text{d}x}\right)^2+xy^3\frac{\text{d}y}{\text{d}x}=0$. I want to get solution in elementary functions in order to do asymptotic analysis. I tried the problem with Mathematica. It did not give any solutions.


Could we dispense the near clipping plane?

Would it be, at least theoretically, possible to render without a near clipping plane? Could raytracing ignore this perchance?   Quite many budding 3d artists have a WTF moment the first time they encounter the clipping plane. If this could be avoided then it would be a big win for usability of 3D authoring apps. Its not one of those things a normal artist would think about until explained.


Disk data recovery after partial format – TestDisk and PhotoRec failed to find anything

So I was trying to create a bootable USB to reinstall Windows for a friend, but mistakenly started partitioning the wrong disk (probably the dumbest mistake I could have made).  This disk is a 1 TB WD Black in NTFS format, hooked up as my D: drive to Windows for a variety of photos, documents, movies and game installs – the basic home stuff.  There was about 400 GB of files on the drive (i.e., it was about 40% full).  The following sequence of events occurred:  diskpart select disk 1 // wrong disk number clean create partition primary select partition 1 active format fs=ntfs // note the missing 'quick' argument   It then ran to about 3% when I realized my mistake.  So I hit Ctrl+C to cancel the formatting.  In Windows' disk management tool the drive now shows up as healthy, active, primary NTFS partition that is 100% free and 931 GB capacity.  So after some googling, I downloaded . I tried analyzing and then the deeper analysis of the drive, which just came back with 1 available partition that is fully empty. The only files found were within the "System Volume Information" folder. It didn't seem to be able to restore any MFT copies or lost partitions, but I'm not an expert with these things so maybe I did something wrong – I wasn't sure exactly what guides and steps to follow since I did more than a simple diskpart clean.  After all that failed me, I attempted running PhotoRec to see if any files could be found. That also failed with 0 files found.  I'm out of ideas now, but from my (limited) knowledge, at most 3% of the drive was re-written in the format, so the rest of the drive should have intact data that can be recovered. What more can I try?  Update: Using Frhed, a hex editor, to load up the partition gave "A disk read error occurred...BOOTMGR is compressed" (image below). Trying to scroll through the sectors everything shows 0 – but without a boot sector, it can't be read so is this reliable?  Update 2: according to  on Tom's Hardware forum, using Ctrl+C to interrupt the command doesn't actually stop the formatting, it runs in a separate process in the background. Since I didn't immediately reboot my PC it has indeed overwritten the entire disk. Thanks for all the help, I wouldn't have needed to ask this question if I had known this sooner.


$\{r \in \mathbb Q\mid r>0 \text{ and } r^2 < 2\}$ has no least upper bound.

In my real analysis book, when they show that the rational numbers does not have the least upper bound property, they show that the set $\{r \in \mathbb Q : r>0 \text{ and } r^2  < 2\}$ is non-empty and bounded above, but does not have a least upper bound. I understand the argument fully, but I'm having trouble understanding where they came up with some of it. Their argument goes as follows  Define $B = \{r \in Q : r>0 \text{ and } r^2  < 2\}$. Suppose $p \in B$.  Define the rational number $q$ by  $$q = p + \frac{2-p^2}{p+2} = \frac{2p+2}{p+2}$$  Then we have  $$q^2-2 = \frac{2(p^2-2)}{(p+2)^2}$$  I understand that this shows for any $p \in B$ there is a $q \in B$ such that $p<q$. My question is why did they decide to define $q$ this way? Where is the logic for choosing $q$ to be that expression?  Thank you.


asked in July explains why it is not possible for the time being to submit content in posts or comments that contains Unihan characters. It’s a spammer thing, fair enough.  As  makes clear, the workaround for posts is to convert your Unihan text to HTML entities: these are parsed and appear correctly.  However, HTML entities are still HTML and as such are not parsed at all in comments, as . In other words, since Unihan glyphs are banned from both posts and comments and HTML entities are not parsed in comments, it seems to be completely impossible to post text containing Unihan glyphs in comments at all, except on sites where the ban has been manually removed, like Japanese.SE.  This seems like a rather substantial limitation. And in any case, the blanket ban on Unihan is unduly heavy-handed and inflexible (not to mention perplexing to the user, when the only feedback you get is “Body/comments cannot contain that content”).  In , tchrist suggested that the ability to post Unihan glyphs could be made a rep-based privilege; that is, a certain amount of reputation is required to include these glyphs, otherwise it fails. A requirement of, say, 125 rep points would presumably cut off at least 99.99% of spammers, and it would have the added benefit of being able to maintain—and broaden—the restriction indefinitely to mitigate spam, while still allowing legitimate users to post relevant content.  (The feedback message would have to be improved as well, though; something like, “Due to large volumes of spam written in certain non-Latin scripts, you need at least 125 reputation points to be able to include non-Latin text in your post” or words to that effect.)  Can this be implemented?  Alternatively, as pointed out in Normal Human’s reply, since comments already require a certain amount of rep meant to deter absolute newcomers (and, by extension, also spammers), can the ban just be removed from comments and applied only to posts?  (Editing this just to bump it on the front page, to hopefully have some kind of discussion or feedback on the matter.)


When people move places from one apartment to another one they can say 'we moved' or 'we relocated'. Is it also valid to say 'we shifted'?      These definitions do not provide such an example.


Is it a good idea to expire passwords after a time relative to their complexity? Is it a good way to teach users to use secure passwords? ()  I'm thinking of giving hints on how to make the password stronger, and displaying the expiration date of the new password while the user is typing it.  EDIT: There seems to be a lot of answers pointing out that storing the relative difficulty of passwords (or something that hints of it) is insecure. That is true for most systems used today, but it doesn't have to be. If the passwords expire in 1/1000 the time it would take all computers on earth to crack it, it would still be fairly secure. The point of a variable expiration would be to allow less secure passwords, rather than forcing everyone to use one that will be secure until the heat death of the universe. Switching passwords every few years, while being allowed to use a 10-20 character shorter password, is probably a good tradeoff for many people.   It turns out that this security concern isn't even the real issue, as the great people over at . From a security perspective, expiring passwords are used to limit the time a compromised password (e.g. from shoulder surfing) can be used. As they point out, if you have access to the hashes, and thus the ability to attack them locally to avoid any rate limiting set up on the site, you probably have enough access to the system to do whatever you want anyway.


I tried looking to find a solution but could not see anything. It might be that I am looking up the wrong thing since I not really sure what is happening. (new to java) Anyways my assignment is to: Write a console program in a class named Weather that reads an input file of temperatures, with real numbers representing daily high temperatures. Your program should prompt for the file name to read, then read its data and print the change in temperature between each pair of neighboring days. Here is what I wrote import java.io.*; import java.util.*;  public class Weather {     public static void main(String[] args) throws FileNotFoundException {         Scanner input = new Scanner(System.in);         System.out.print("Input file? ");         String fileName = input.nextLine();         Scanner file = new Scanner(new File(fileName));         double first = file.nextDouble();         while (file.hasNext()) {         if (file.hasNextDouble()) {             double second = file.nextDouble();             double diff = second - first;             System.out.println(first + " to " + second + ", change = " + diff);             first = second;         } else {             file.next();         }     }     } }  Test two throws an error, when it is asked to do 2.7-4.5 it gives -1.799999... instead of the wanted and expected -1.8. (see photo) When I tried to fix this by changing the system.out.print to " + Math.round(diff)); it still gave the wrong answer. Any suggestions or ideas what I should search to find the answer on this forum.


Independent events satisfying $P(A_n)<1$

So I'm working on my mathematical probability class, and I have the following question:  Suppose $\{A_n\}$ are independent events satisfying $P(A_n)<1$ for all $n$.  Show   $P(\bigcup _{n=1}^\infty A_n)$=1  iff $P(A_n i.o.) =1$. So, the backwards direction was trivial.  For the forward direction,  what I have so far is   $P\left(\bigcup_{n=1}^{\infty}A_{n}\right)^{C}=0=P\left(\bigcap_{n=1}^{\infty}A_{n}^{C}\right)=\prod_{n=1}^{\infty}(1-P\left(A_{n}\right))$  Since the $A_n$'s are independent.  Now, since $P(A_n)<1$,  we have  $1-P\left(A_{n}\right)>0$.  Hence, for the infinite product to be $0$,   we must have an infinite number of $1-P\left(A_{n}\right)<1$,   hence for an infinite number of $n$'s,   $P\left(A_{n}\right)>0$.  Now, I'm not sure if that's sufficient. Does that imply the desired conclusion that $P(A_n i.o.)=1$  I feel like it should....(Or did I make another mistake!)


Homeomorphism between spaces with the complement finite topology

Describe the homeomorphism between spaces with the complement finite topology $\mathcal{T}_{\text{CF}})$. Do the same with the complement countable topology $\mathcal{T}_{\text{CN}})$    We know that, as $f:X \to X'$ an homeomorphism, it is continuous, open and close, so for each closed set $F$ of $X$ we have that $f(F)$ is closed too, and be closed means to be finite. Unfortunately, I don't know how to continue.


As of + present perfect continous sentence

As of July 2019, how many Indian players have been inducted in the ICC hall of fame?    In this sentence, is the month of July included or not?


Find all functions $f: \mathbb{R}\rightarrow \mathbb{R}$ satisfying a functional equation

Find all functions $f: \mathbb{R}\rightarrow \mathbb{R}$ satisfying: $f\left ( x \right )f\left ( y \right )+ f\left ( xy \right )+ f\left ( x \right )+f\left ( y \right )= f\left ( x+y \right )+ 2\,xy$  I tried the standard way: $x=0, x=y, x=1,...$ but without any success. I spent quite some time trying to solve it but didn't succeed.   I tried to reduce it to Cauchy's 1-4 equations but didn't succeed. In the corse of it, I found interesting works of Aczel, Erdos and even Putnum, but they are not directly related, I guess.  Any idea? I am interested in this problem but I couldn't solve!


Is there a word to describe a person who is always curious?

Is there a word or phrase for describing a person who is always curious? Curiosiac?  Example usage (as requested by a comment):     The boy is such a ___, he asks questions all the time!   UPDATE  I appreciate all your answers, but my question was if there was any word - a noun - to describe a person of that kind, e.g. maniac, lunatic, weirdo, nerd, etc.


Passive Wisdom (perception) is common and we use it often. But I read on this forum that there are other passive stats. My Question is now what other passive stats exist and when should you use them?


What was Boromir or his father thinking about the One Ring?

How could the One Ring help them? Leaving aside the evil inside the One Ring, how could the One Ring bring any help to Gondor?  It seems that one of the useful powers of the One Ring is that it could control the lesser Rings given to the Elves, Dwarves and Humans. But how could that help with their war?


Finding the confidence level and number of successes?

Given that the sample size is $1500$ and the confidence interval of $p$ is $(0.050, 0.083)$. Find the confidence level and the number of successes.  I have so far that $E=Z_{1-\alpha/2}∗\sqrt{(p∗({p-1}))/n}$   Where $p$ is the center of the given interval, so $p = (0.050+0.083)/2 = 0.0665$  Also, the error $E$ as the difference of the midpoint and the endpoint of the interval so $E=0.0665-0.050=0.0165$   Plugging this into the equation I got that  $0.0165=Z_{1-\alpha/2}*\sqrt{((0.0665)(1-0.0665))/1500}$   Solving for $Z_{1-\alpha/2}$ gives $Z_{1-\alpha/2}=2.56$ and since $Z_{2.96} = 0.99$   $Z_{1-\alpha/2} = 0.01$  Is what I have so far right? If so, how do I find the number of successes? Is it just to multiply 0.99 by the number of trials?   So that way I would get $1500*0.99=1485$ ?


Product of 5 consecutive integers cannot be a perfect square

Problem: Show that the product of any five consecutive positive integers cannot be a perfect square.  Proof: Let $N=n \times (n+1) \times (n+2) \times (n+3) \times (n+4)$, where $n \in \mathbb{N}$. We know the that N must have at least:    one factor is divisible by 5,  two or three factors are even,  one factor of the even factors, is divisible by $4$,  and one factor is divisible by $3$.   To proof the statement above we need to assume that the product of any five consecutive positive integers is a perfect square to lead us to a contradiction. Hence, I know there will be cases for us to test for. However, I am unsure where to start after mentioning everything above. Can anyone help me from here?


Should redirecting URLs be included or excluded from the XML sitemap?

Currently, we're working on optimizing a website for search engines. Would you advise adding to the XML sitemap the URLs of the pages that are being redirected, or the redirect target URLs?  In my opinion, I should exclude the redirects, but I don't know what the best practice is.


MSSQL Insert takes over 5 hours, when inserting more than specific number of rows

I have a question connected with MS SQL. When inserting less then about 1350000 rows to the table it all takes about 2 minutes, but when number of inserted rows is bigger, then a time needed to insert data grows to about 5 hours.  The problem is not connected with query or indexes, because everything has been working fine for a long time and nothing has changed in the structure of query, tables or indexes. Problem appeared for the first time about 2 weeks ago and it appears repeatedly on days, when number of inserted rows is bigger than +-1350000. For example on one day number of ins rows is 1200000 and the process takes 2 minutes, on the other day number of rows is 1450000 and it takes 5-6 hours to insert data.  I tried to rebuild indexes, but it has not helped.  :)


Does “make offline” option in Google Maps works with applications that utilize Google Maps?

If i'm using the google map api in a third party app I'm making, can I make use of the offline map function of Google Maps?


$f\colon [0, \infty) \to \mathbb R$ is $C^2$ and $f(x) \to 0$ as $x \to \infty$. If $f'(x) \to b$ as $x \to \infty$, show that $b = 0$.

Suppose $f\colon [0, \infty) \to \mathbb R$ has continuous first and second derivatives and $f(x) \to 0$ as $x \to \infty$. If $f'(x) \to b$ as $x \to \infty$, show that $b = 0$.   Shall I start by assuming $b$ is not $0$? Or use limit definition of derivative?


Why does Pokémon Gold sometimes delete my save data?

I purchased Pokémon Gold, second hand, but it keeps deleting its save data at random intervals. I started playing it the other day, and when I came back a day later, found that the data had been deleted.   , however the user asks concerning their game not being able to save at all. To test, I quickly started a new game, saved, and restarted. The save file was there as it should have been, although when I came back the next day, that new data had also been deleted.   I do not think this could be from a dry battery, either, as if it was, it would not be able to hold a save at all. Why does Pokémon Gold randomly delete my save?


If I want to shoot darker shots, is it better to increase the lighting and then darken in post to retain clarity?

I'm just getting started - in my last shoot, I was using a 6D with a 50mm/1.4.  In low light, the pictures looked fantastic on the viewfinder but on the computer screen, appeared extremely grainy.  For future shoots, if I want to achieve something like this:     Should I shoot with way more light / lower ISO to retain clarity, and then just darken in post?  What kind of setup would be needed to achieve the above?    With my setup -   Camera Canon EOS 6D  Lens EF50mm f/1.4 USM  Focal Length 50mm  Shutter Speed 1/40 s  Aperture f/1.8  ISO/Film 6400  I was getting very grainy results that I had to soften in post (in case you want to see my attempts):      Any tips would be much appreciated.


Small connector alternative for 10/100base Ethernet

I have been looking for a small connector that I can use for Ethernet 10/100 base communication. There were some similar discussions here about the same topic, but I couldn't find a solid answer.  In my application, I don't want to use an RJ45 connector because of the form factor. I looked at some industrial connectors like "Industrial Mini IO" from TE, but the problem with those is now I have to deal with a big back shell for the cable itself although the connector helps with making the product smaller.     I was wondering has anyone used an RJ12 for a 10/100 base Ethernet application? That's currently one of the options I'm looking at and I'm not sure if it is the correct way.   If RJ12 is not a good option, does anyone know any small connector that I can use which also doesn't need a big back shell for the mating cable?


Negative Constant Positive Beta in Binary logistics

I have a dichotomous dependent variable as 0 and 1 and a continuous covariate. I went for a binary logistic regression and it came up with a positive B but negative constant. So is it a problem? How can i interpret this B efficiently and accurately? Thanks a lot  .


Sorry if this is a stupid question, but I'm very new to java.  Basically we are learning about interfaces and maps right now in my java class.  I created an interface that is really simple, and have also created other classes that implement that interface.  In my class that is a main actor, I am creating a map and I've created instances of these as you can see below.  I'm getting a NPE and I am not sure why.    private Scanner input; private Map<String, Command> map;  //~ Constructors .......................................................... // ---------------------------------------------------------- /**  * Creates a new Rocket object that reads commands  * from a predefined URL (the URL is in the lab assignment).  */ public Rocket() {     this(IOHelper.createScannerForURL(             "http://courses.cs.vt.edu/~cs1114/Fall2012/rocket-commands.txt")             );  }  // ---------------------------------------------------------- /**  * Creates a new Rocket object that reads commands  * from the given scanner.  * @param scanner The scanner to read commands from.  */ public Rocket(Scanner scanner) {     input = scanner;     map = new HashMap<String, Command>();     ForwardCommand forward = new ForwardCommand(this);     map.put("forward", forward);     LeftCommand left = new LeftCommand(this);     map.put("left", left);     RightCommand right = new RightCommand(this);     map.put("right", right); }  //~ Methods ............................................................... // ---------------------------------------------------------- /**  * Reads one word from the scanner (if there is any), and executes  * the corresponding command.  If the scanner has no words remaining,  * then nothing happens.  */ public void act() {     if (input.hasNext())     {         String word = input.next();          map.get(word).execute();     } }   }  The error is coming on the line map.get(word).execute();  I'm sure it is something obvious, but I am very new to coding so any help would be appreciated!


How calculate the indefinite integral $\int\frac{1}{x^3+x+1}dx$

How do I calculate the following indefinite integral?       $$\int\frac{1}{x^3+x+1}dx$$     Approach:  $x^3+x+1=(x-a)(x^2+ax+c)$ where   $a:$ real solution of the equation $a^3+a+1=0$  $c:$ real solution of the equation $c^3-c^2+1=0$  Then $$\int\frac{1}{x^3+x+1}dx=\int\frac{1}{(x-a)(x^2+ax+c)}dx=\int\frac{A}{(x-a)}dx+\int\frac{Bx+C}{(x^2+ax+c)}dx$$


Do we know for certain that Kylo Ren and not Rey killed that character

I am asking this question for my eight-year-old son: How do we know it was       Kylo Ren and not Rey that turned the light saber on Snoke?  Clearly Snoke and the cameras are focussed on Kylo Ren, but is it possible that this is why Snoke couldn't (or wouldn't) sense Rey?


How can I see which packages were removed with apt-get autoremove?

Despite claims that autoremove is safe, I have, more than once, removed important packages and then finding what was removed has been a struggle. How do I find out what was removed with this command post-facto?


How to quickly reference the same cell across different sheets

I have 60 Sheets with the same information but for different employees. I was wanting to create a summary sheet but without manually linking.  In the summary sheet, I want cell A6 from each sheet to appear in cells B1:B60. I tried entering 1 through 60 in cells A1:A60 and then using  =CONCATENATE("Sheet",A1,"!A6")   so that I could drag it down easily but it just returns Sheet1!A6.  Any ideas?  Thanks


My bash does not know the letter p. zsh does though.   When I type a p in bash, it simply ignores it, and even pasting in text that contains a p will result in no p in the pasted text.  This behavior is the same across terminals (I tried, urxvt, st and tty)  I tried commenting out everything in my ~/.profile, ~/.bash_profile and ~/.bashrc, the problem still persists. Using root though, everything is fine. My /root/.profile, /root/.bash_profile and /root/.bashrc are symlinked to the files in my home directory. So the problem can't originate there, but it's got to be something that is different for root and my user.  I use a custom keyboard layout, but when I switch to standard US keyboard layout, the problem still persists as well.   Just to rule  out as well: I do not use gnome.  Where else can I look?


Is it possible to run Ubuntu 20.04 LTS on intel core i7-1065g7?

I’m wondering if I could run Ubuntu on hp spectre x360 13t with a i7-1065g7 CPU, with 16gb of ram and a 1tb ssd


How to specify a temporary folder with more disk space via terminal?

I need more disk space at /tmp and /usr folders. How will achieve this?  An error appeared:   root@kali:/home/Downloads# ./netbeans-8.1-linux.sh Configuring the installer... Cannot create temporary directory /tmp/.nbi-5055107.tmp


Is it possible to install the Windows system files on a small SSD and have all important folders (C:\Program Files, C:\Users) on a 2TB data drive?  I assume this is how one would use an SSD to achieve higher performance


I am trying to understand the Hahn-Banach Theorem by solving the following problem.   Let $X$ be a normed linear space, $Y$ be a linear subspace of $X$, and $z \in X \setminus Y$ such that $$d = dist(z, Y ) = \inf_{y \in Y}\| y − z\| > 0.$$ Prove that there exists $f ∈ X^∗$ such that $\|f \| ≤ 1, f(z) = d,   f(y) = 0 $ for all $y \in Y$.   My questions is, can I argue that because  $Z:=X\setminus Y $ is a subspace of $X$ and because $d\in Z^*$, then by HBT $f|_{Z}=d$? How do I conclude $\|f\|\leq 1$?


When is it okay to use the term "Indians" when meaning "Native Americans?"

It has always been a personal pet peeve of mine when Native Americans are referred to as "Indians." It has nothing to do with respect for Native Americans or political correctness; it is entirely about actual correctness. Calling them Indians means having to actually differentiate between Indians, from the subcontinent of India, and Indians, from the Americas. It seems like laziness is the biggest factor. It is far easier to say and write/type "Indian" than "Native American." But, my History teacher and even my textbook both use the word "Indian." Is this really acceptable practice in higher education (it's my freshman year)? Is it accepted in academia in general?


I would like to start Skype in the background in the startup. I installed Skype with Software included in Gnome 16.04.  I succeed to add it to the startup but I don't know how to avoid to have the windows opened. I just want to keep it running in the background.  Thanks for your help !


I'm working on logo design in adobe illustrator. It's typography with border and I have problem. When I export it do png or jpg in small size it looks blurry and overall bad. I'm working on pixel preview in illustrator with all options like Align to pixel grid etc. The simple parts are fixed but i have no idea how to fix all the curves in letters like S, A, E, O ect. Example bellow. Fixed areas after export looks sharply and clean.  Is there any way to create logo from regular font that will look good in small png files?


Where can I download Windows 8 legally, from Microsoft?

I obtained a licence key for Windows 8 through DreamSpark. Is there a way to download a Windows 8 ISO image like you could for Windows 7? I am on a non-Windows machine, so I cannot use the Secure Download Manager to download Windows 8 directly using DreamSpark.


I'd like to insert a URL into this document. Is there a "correct" way of doing that? If so, is there a way to turn it into a link inside the final pdf generated with pdfTeX or XeTeX?


How to change the text after username@ in Ubuntu

I just installed Ubuntu and opened an admin panel where I saw that I accidentally allowed the system to use my laptop's name. Can anyone suggest how would I remove it?


What is this type of wire-connector called?

I am having the hardest time finding something like this on Mouser. I have find things similar, without the screw for example, but never exactly this. Is there a generic name for this type of connector?  If you type something like PCB 2 Way Connector into Google then your search is through, but Mouser apparently has a different naming convention for these little connectors.   This is the closest thing I could find, but I either need a 4-way connector or a 2-way. Ideally I would like to find the same connectors as shown below.    Examples:


What happens if you keep taking double duals?

It's well known that if $X$ is a Banach space, then $X^{**}$ contains a copy of $X$, so we'll informally say $X\subset X^{**}$. It's also well known that in general we don't have $X=X^{**}$. So what if, starting with a Banach space $X$ such that $X\subset X^{**}$ but $X\neq X^{**}$, you considered the sequence $$X\subset X^{**}\subset X^{****}\subset X^{******}\subset\cdots$$ Not sure why this sequence would be of any interest but...is it possible that the inclusions are all strict in this infinite chain?  EDIT: Some are (justifiably) suggesting that this question is a "duplicate" of the question of whether or not $X$ is reflexive iff $X^*$ is reflexive. While, in some sense, one could make that claim based on how the answer to my question almost immediately follows from the truth of that statement, I wouldn't go so far as to claim it's a duplicate question.


I’ve recently changed the password on my iPhone SE (running iOS 10.x?) and now I’ve forgotten it. I was able to use my iPhone for a few days from TouchID but after the iPhone restarted today, I can’t get into it. It's a 4 digit passcode.  I still remember my iCloud password. But the phone is not currently configured to back up to iCloud.  Would I be able to recover the Messages if I take my iPhone to an Apple Store? I don't have any trouble proving the iPhone and its data belong to me (I purchased the iPhone with my credit card, signed into my Apple ID and iCloud accounts). But my understanding is that they can't do anything either even if they want to.  Is there any way I can get back into my iPhone? Everything else can be erased, but I just really need access to my messages. For example, would I be able to jailbreak it given that it’s running a pretty old version of iOS?


How to draw an arc when the central coordinates are given

I tried the following:  \begin{tikzpicture}  \coordinate (A) at (4,5);  \draw (A) arc (-30:-150:1); \end{tikzpicture}   What this does is that it starts the arc from the coordinate A. Is there any simpler way to draw the arc, by using the central coordinates alone?


Finding the uncertainty of coherent states using operators

The coherent state is defined such that $a|\alpha\rangle =\alpha|\alpha\rangle $.  We can calculate the uncertainty using  $$\sqrt{\langle x^2\rangle-\langle x\rangle ^2}\sqrt{\langle p^2\rangle-\langle p\rangle ^2}$$  Substituting $$x=\frac{1}{\sqrt{2}}(a+a^\dagger)$$ and $$p=i\frac{1}{\sqrt{2}}(a-a^\dagger)$$ with $\omega=\hbar=m=1$ we find: $$x^2=\frac 1 2 (a+a^\dagger)(a+a^\dagger)=\frac 1 2 (aa+aa^\dagger+a^\dagger a+a^\dagger a^\dagger)$$  $$p^2=-\frac 1 2 (a-a^\dagger)(a-a^\dagger)=\frac 1 2 (-aa+aa^\dagger+a^\dagger a-a^\dagger a^\dagger)$$  $$\langle \alpha| x| \alpha\rangle =\frac 1 {\sqrt 2}(\alpha+\alpha^*)=\sqrt 2R(\alpha)$$ $$\langle \alpha| x| \alpha\rangle^2 =2R^2(\alpha)$$ $$\langle  \alpha| x^2| \alpha\rangle =(R^2(\alpha)-I^2(\alpha)+|\alpha|^2)$$  $$\langle  \alpha| p| \alpha\rangle =\frac i {\sqrt 2}(\alpha-\alpha^*)=-\sqrt 2 I(\alpha)$$ $$\langle  \alpha| p| \alpha\rangle^2 = 2 I^2(\alpha)$$ $$\langle \alpha| p^2|\alpha\rangle =(I^2(\alpha)-R^2(\alpha)+|\alpha|^2)$$  $$\sqrt{\langle x^2\rangle-\langle x\rangle^2}\sqrt{\langle p^2\rangle-\langle p\rangle^2}=0\ne\frac 1 2$$ Heisenberg's uncertainty principle states that this should be more than a half.  Where is the problem with this derivation?


Overriding CSS conditional rule with jQuery

I'm using the following CSS to hide my  tag and show a tab #aside-expander to enable the user to view it if required when the browser width is less than 1200px.  @media screen and (max-width: 1200px) {     aside#global-widget-base {         display: none !important;     }     #aside-expander {         display: inline !important;     } }   When using an click handler on the #aside-expander element in order to show the  again, the element is not displayed.  I assume this is due to the use of !important on the style element.  $('#aside-expander').click(function() {    $("#global-widget-base").css("display", "inline");  });   I wondered if anybody was able to provide a solution as to how I can show this element on demand?  I have already tried applying !important to my jQuery .css function to no avail.


Should I include "that" or not in sentences like "I saw (that) you waited for the bus"?

I saw you waited for the bus. (wrong unless add that)   I saw that you waited for the bus. (correct)         I saw a house destroyed on the road.  (wrong unless add that)   I saw that a house destroyed on the road. (correct)     But most of us omit “that” am I right?


what is the path the file system location where SMS messages stored?

Where in the file system are SMS messages stored? plese list the path


Traktor Audio 2 DJ soundcard configuration

I have a  (the first version of what it's now called simply Traktor Audio 2)  The problem in settings it only sees one output, when there should be two (I need that for Mixxx etc.)  Also I want to be able set the sample rate to one of these: 44.1, 48, 88.2, 96 kHz or at least check which one is set.   Additionally if possible setting the latency would be an advantage.  Some info:  $ aplay -l **** List of PLAYBACK Hardware Devices **** card 0: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 1: TraktorAudio2 [Traktor Audio 2], device 0: Traktor Audio 2 [Traktor Audio 2]   Subdevices: 1/2   Subdevice #0: subdevice #0   Subdevice #1: subdevice #1  $ cat /proc/asound/cards 0 [HDMI           ]: HDA-Intel - HDA ATI HDMI                       HDA ATI HDMI at 0xfdcfc000 irq 45 1 [TraktorAudio2  ]: snd-usb-caiaq - Traktor Audio 2                       Native Instruments Traktor Audio 2 (usb-0000:00:1d.7-8)


group and sort | last login time of users


For an instant message program, should your messages sent be left or right side?

For many IM programs, especially text apps for phones, you can see a conversation with a specific person. To quickly distinguish between messages sent and received, they are pushed to each side, like in this example.    I want to use this for what i'm making. I showed it to someone and found out we didn't agree on which messages should be left and which should be right.  I'm wondering which way I should put it now. which one is better, more used, and/or more intuitive


Using biblatex - having trouble getting it all working

I've been trying to get it all setup for a while but though the errors have stopped I can't actually get any references working.   Here's the references file :    32 @book{wrong,  33         author          = {Mr Writer},  34         title           = {My First Novel},  35         year            = {2012},   36         publisher       = {Harold & Mike},  37         location        ] {London  38 }   Here's how the reference displays in text (wrongii was a different reference):   }  Here's the code from the text that's calling the reference :     I'm trying a different way with this line \parencite{wrong}   I've also tried to print this Bibliography at the bottom of the page to no effect using :   \printbibliography   I've been rattling about various sites (including here) and can't seem to find the answer, any help much appreciated.  EDIT   This is my MWE that seems to display the same behaviour :   \documentclass[10pt,a4paper]{book} \usepackage[style=authoryear]{biblatex} \bibliography{mwe.bib}  \begin{document} This is some text that I'm going to try and 'cite' using the bib file thing.\cite{wrong}  That didn't work, maybe this will \parencite{wrong}  \printbibliography \end{document}   And here's the contents of the references.bib file :     1 @book{wrong,   2         author          = {Mr Writer},   3         title           = {My First Novel},   4         year            = {2012},   5         publisher       = {Harold \& Mike},   6         location        = {Leamingtion}   7 }   8    9  ~                                                                                ~                                           I'm not sure if this is a Texmate setting, I've read things about the backend = bibtex setting and tried that too (it didn't work). I want to have it in author year style, but to start I guess it'd be nice to just have something on there  Options within Texmaker for compiling :     This seems to have worked :     Here's the error message that I'm currently getting :       This is BibTeX, Version 0.99d (TeX Live 2013/Debian) The top-level auxiliary  file: dbmain.aux A level-1 auxiliary file: title.aux I found no \citation commands-  --while reading file dbmain.aux I found no \bibdata command---while reading file   dbmain.aux I found no \bibstyle command---while reading file dbmain.aux (There were   3 error messages)   Apparently I'm meant to use nocite{} ?   Sorry this post is ridiculously convoluted :(


Magic Mouse is frequently losing its connection to MacBook Pro

My Magic Mouse is intermittently losing its connection to my MacBook Pro.   First the mouse becomes unresponsive and a few seconds later, a picture of the mouse appears on the screen wit the words "Connection Lost." Then about 10 seconds later, the connections is "magically" re-established, without any action on my part.   Any ideas on what this could be due to and how I can stop this? I have changed the batteries and they are brand new. My software is also up-to-date unless there is a special bluetooth update that I have to go get somewhere.


Confusing option on the LQ queue dialog for commentary

In the dialog that lets you select a comment while recommending deletion for an answer, the choice for "this should be a comment" is confusing:    The current option (bold text) reads:     This is commentary on another post, not an answer   It's very confusing what "other post" this option is referring to. The non-bold text does a much better job of explaining what the option is.  To be more clear, this option should be changed to:     This is commentary on the question, not an answer   so that it's more clear which post this option is referring to.


How do I make a 8 meters(W) X 4 meters (H) banner on Photoshop?

I'm trying to make a 8 meters(W) X 4 meters (H) banner on Photoshop, but I can't figure out the right resolution for it, and for the other stuff like "Colour Mode," etc.


Most appropiate word for someone addicted to Internet

Apart from computer savvy or geeks,I am looking for the most appropriate English word for someone who is addicted to Internet?


If $X$ and $Y$ are uniformly distributed on $(0,1)$, what is the distribution of $\max(X,Y)/\min(X,Y)$?

Suppose that $X$ and $Y$ are chosen randomly and independently according to the uniform distribution from $(0,1)$. Define $$ Z=\frac{\max(X,Y)}{\min(X,Y)}.$$ Compute the probability distribution function of $Z$. Can anyone give me some hints on how to proceed? I can only note that $\mathbb{P}[Z\geq 1]=1$ and $$F_Z(t)= \mathbb{P}[Z \leq t]=\mathbb{P}[X\leq Y, Y\leq tX]+\mathbb{P}[Y \leq X, x\leq tY]$$


Can we say that $\frac{a+b}{c+d} \leq \frac{a}{c} + \frac{b}{d} $

If $a,b,c,d$ are positive real numbers, can we say that $\frac{a+b}{c+d} \leq \frac{a}{c} + \frac{b}{d} $ is always true? If no, can you please give insignts on under which conditions this might be true.   Any references to a similar type of inequalities are also welcome  Thank you,


Icon missing when application is launched

I've created an application launcher in /usr/share/applications that launches rdesktop. The file specifies an icon name and I've added the icons to:   /usr/share/icons/HighContrast/48x48/apps /usr/share/icons/HighContrast/22x22/apps /usr/share/icons/HighContrast/256x256/apps /usr/share/icons/HighContrast/32x32/apps /usr/share/icons/HighContrast/scalable/apps-extra /usr/share/icons/HighContrast/24x24/apps /usr/share/icons/HighContrast/16x16/apps /usr/share/icons/hicolor/scalable/apps /usr/share/icons/hicolor/128x128/apps /usr/share/icons/hicolor/16x16/apps   I then drug the launcher to the taskbar and the launcher with the correct logo is visible in the taskbar. However, when I start the task, a new icon is created in the taskbar, a square with a question mark in the center.  What icons do I need and where, so that the taskbar displays the correct icon for the application when it is launched?  The .desktop file contents:   [Desktop Entry] Version=1.0 Terminal=false Icon=mswindows Type=Application Categories=Network; Exec=rdesktop win7shared1 -g 1680x1000  Name=win7shared1 GenericName=rdesktop Comment=Open windows desktop  Keywords=Windows StartupNotify=false


Setting to globally disable custom Stack Exchange site themes

I prefer uniformity and would rather see all  in the default style (generally all major SE sites use their own styles, the sites in beta state can't yet). This doesn't appear to be possible to achieve without creating site-specific network filter rules.  Another large voting-driven website Reddit allows disabling custom "subreddit" (i.e. "sub-site") styles site-wide in account settings — Stack Exchange should consider implementing this option as well.


How confident is my model? Is there a way to know?

I am interested in finding out how confident my model (say Logistic Regression) is in predicting the label of a new data point. For example, if it is not confident, I better abstain from making a prediction.   Logistic Regression outputs probabilities, which gives you a notion that there is confidence in prediction. But in fact, it is not. $P(y|x)$ being 0.3, doesn't tell me that the model is confident in its prediction or not. All, we can say is that it believes 100% that class A is 0.3 and other class is 0.7.  Can we use confidence intervals of LR as some sort of confidence in prediction? E.g., larger the difference between upper and lower bound for a particular data point, less confident it is, and vice-versa?  If not, how can we build confidence in our prediction? Can anybody guide me to some paper or field of study?


Following is case scenario:    user visits site and enters mobile number in landing page on form submission (clicks submit button), i am looking for sending 4 digit pin in provided msisdn user will enter received pin in pin validation page if user entered pin matches sent one, access to the protected resource will be granted   Is there any java library or algorithm available to generate 4 digit pin for authentication purpose ?? What would be the best way to realize the above requirement?? Many thanks......


Is there a third dimension of numbers like real numbers, imaginary numbers, [blank] numbers?


Close reason for "do my job/homework for me" questions

With the "minimal understanding" and "what have you tried" close reason removed now, what is the proper way to handle the do-my-homework-for-me type of question, where a person clearly didn't put any effort into the assignment/problem and posted here instead?  For example:  - the OP simply posted their "set of codes[sic]" with a requirement on how to change its output, clearly without trying something first.  Are these questions now:   "Too broad" because we would have to "write a textbook" for the OP to understand the reasoning behind the answer? The answer in and of itself is rather short and simple... Actually I am starting to like this option now. The description of this close reason says "there are too many possible answers" "Not clear what you're asking"? But it is quite clear what the OP is asking... Acceptable? We should now be answering these types of question now? Doesn't sound good for the community... Downvoted and to be left open forever, hopefully unanswered? I would prefer to see closure or some feedback to the poster to go try something and come back. The "on hold" system is great for this...


In QED why is the electron a point particle?

I read Feynman's book but this still unclear to me.


Should moderators be able to convert answers into comments?

Clearly, that was the result of an inexperienced user.  If a question gets a bunch of replies, then the "comment" could easily get lost in the other answers.  I think that if there is no activity on the "comment" (no comments, no votes, etc.), then I think converting the answer to a comment is a valid operation for housekeeping purposes. If there are comments, votes, etc., then the answer should likely be left alone.


Ive only been introduced to Blender yesterday and have been trawling through the tutorials and loving it, definitely a new fan, albeit still taking very small steps.  I exported a VRML from a GIS application (ArcScene).  I have done little to the scene in Blender, apart from adding some material effects to the ground layer.  What I can't understand is why my final render has a lot of noise in it.  Can someone give me some pointers on how to get a better quality render?  Is it something to do with the render settings or have I missed something on the import/configuration of the scene?


Installation Error Virtualbox into my Ubuntu 18.04 LTS

I am trying to install VirtualBox from the Oracle Repository following this link: wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add - wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add - sudo add-apt-repository "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib" sudo apt update sudo apt install virtualbox-6.0 I want to install from the Oracle repository in order to fix the issue of VirtualBox Error: Kernel driver not installed (rc=-1908). But while trying to install Virtualbox 6 I have this error: ~$ sudo apt-get install virtualbox-6.1 Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  virtualbox-6.1 : Depends: libc6 (>= 2.29) but 2.27-3ubuntu1.2 is to be installed                   Depends: libqt5core5a (>= 5.12.2) but 5.9.5+dfsg-0ubuntu2.5 is to be installed                   Depends: libqt5widgets5 (>= 5.12.2) but 5.9.5+dfsg-0ubuntu2.5 is to be installed                   Depends: libvpx6 (>= 1.6.0) but it is not installable E: Unable to correct problems, you have held broken packages.  I have found a similar question here:  but none of the answers work, and here are the next steps of the top answer of the similar topic: ~$ sudo rm -i /etc/apt/sources.list.d/virtualbox.list rm: cannot remove '/etc/apt/sources.list.d/virtualbox.list': No such file or directory ~$ sudo rm -i /etc/apt/sources.list.d/oracle-virtualbox.list rm: cannot remove '/etc/apt/sources.list.d/oracle-virtualbox.list': No such file or directory  3rd day of trying to install a Windows VM on my machine, please help :) UPDATE: The duplicate links didn't help.


Prove that the convergence of $\prod_{n=1}^{\infty} b_n$ implies $\lim_{n→∞} b_n = 1$

So I am stuck on this question and am unsure how to solve it, would be appreciated if someone could help me out, thanks! :)  Question  Consider a sequence $(b_n)_{n=1}^{\infty}$ of non-zero real numbers. By definition, the infinite product $\prod_{n=1}^{\infty}$ converges if the sequence $(p_n)_{n=1}^{\infty}$, where  $p_n=\prod_{k=1}^{n}b_k$  converges to some non-zero number. Prove that the convergence of $\prod_{n=1}^{\infty}b_n$ implies $\lim_{n\to\infty}b_n=1$


Define $f : [0,1] \to \mathbb{R} $ differentiable satisfying $f(0)=0$ and $0<f'(x)<1$. Prove:  $\displaystyle\int_{0}^{1} f^3(x) \, dx < \left(\displaystyle\int_{0}^{1} f(x) \, dx\right)^2$ I found the following answer,  Define $F(x)=\displaystyle\int_{0}^{x} f^3(t) \, dt - \left(\displaystyle\int_{0}^{x} f(t) \, dt\right)^2$ We have $$F'(x)=f^3(x)-2 \left(\displaystyle\int_{0}^{x} f(t) \, dt\right)f(x)=f(x)\left[f^2(x)-2 \left(\displaystyle\int_{0}^{x} f(t) \, dt\right)\right]$$ and $$\left[f^2(x)-2 \left(\displaystyle\int_{0}^{x} f(t) \, dt\right)\right]'=2f(x)\left[f'(x)-1\right]$$ from which we can arrive at the conclusion.  But I felt a little confused. In the past I usually proved the inequality by classical inequalities and something like Taylor expansion to use the condition about derivative. But this answer is little out of my expectation. Do we have other proofs or ideas to arrive at $\displaystyle\int_{0}^{1} f^3(x) \, dx < \left(\displaystyle\int_{0}^{1} f(x) \, dx\right)^2$? And other thoughts about solving these types of issues? I think when we talk about $\left(\displaystyle\int_{0}^{1} f(x) \, dx\right)^2 >\ldots \,$ it's a little difficult to deal with. I don't quite know what tools to use.


How can I view Google Photos that are not in a Google Photos album?

Go to  Add a few photos to a photo album Go back to All Photos   See all of the photos there, even ones you copied to the Album. No problem here, per se. At least not yet.  What if you want to delete photos that you did not copy to that album?  Where is the selector or filter that filters those "in an album already" photos from this main view?  Or is there a way to create such a filtered view such that I can then cherry-pick photos for deletion?


Existence of variables in execution of recursive Javascript function (memoization)

For a recursive implementation of a Javascript function to return the nth entry in the following recursive sequence 1,1,2,3,5,8,..., I have created a function that memoizes the result to cut down the execution time.  Here is the code:  //This is the memoization function. function memoize(fn){     const cache = {};     return function(...args){         console.log("Before: ",cache[args], Object.values(cache), 'Execution related to', ...args)         if (cache[args]){              return cache[args]         } //If the key exists for the args, return its value.           const result = fn.apply(null, args); //Call to the slowFib to get value.         cache[args] = result;         console.log("After function call to slowFib) ", cache[args], Object.values(cache), 'Execution related to', ...args)         return result; //returns 1 for fib(1) and 0 for fib(0) base case.     }; }  function slowFib(n){     if(n<2){         return n     }     return fib(n-1)+fib(n-2) }  const fib = memoize(slowFib)   I understand how the recursive calls are being made and resolved, as well as how each of the inner functions is returned and invoked.  What I don't understand is how the cache object is updated.   I have investigated this by printing out values and executing the function to the console, and the following behavior in the picture confuses me:    Here, I have logged some variables over the course of the execution of fib(2) so that I can observe the behavior closest to the base case.  If you look at the expanded arrays, you will see that the cache object first stores the value 1 at the index of 0, for the execution of slowFib(1). However, when slowFib(0) is executed, we get a cache object that stores 0 at the 0th index and 1 at index 1.  I realize that the function somehow "remembers" that the value of 1 is supposed to be associated with 1, because it is called with slowFib(1), but it is stored in 0 because there is only one entry in the cache object.  Here are my questions:   Since there are multiple cache objects created within the nested returns of memoize, how does Javascript interpret the assignments? Does the cache object closest to the base case somehow bubble up? How did the cache object retain the positional information to allow it to place 0 and 1 with the correct indexes as keys (if you look at the screenshot, you can see clearly how it placed 1 in at index 1 after placing it at index 0).   Thank you!


I was trying to install Git on my Ubuntu 18.04 version with the command  sudo apt-get install git   But I was recieving the below shown error. How can I fix this one?   The following packages have unmet dependencies:    git : Depends: git-man (< 1:2.17.0-.) but 1:2.17.1-1ubuntu0.7 is to be installed


I had windows 10 but during a reset, it died ( I know my bad ). So I am attempting to wipe the drive and install ubuntu from a clean install but whenever I select to install ubuntu it only gives me a black screen. It's in UEFI and secure boot.  Can anyone tell me what I'm doing wrong?


Say if I have about 25 tabs open in my browser. Is there a way I could:   a) save all those URLs to a file and  b) Start a browser instance to load all of these URLs/   Browsers: Firefox/chrome (latest versions as of today).   If there's a browser that can do this, please do point that out as well


Equivalence between Kähler condition and $\partial_kg_{i\bar j} = \partial_ ig_{k\bar j}$

Let $(M,\omega)$ be a Kähler manifold. Why is the Kähler condition $$d \omega = 0$$ equivalent to $$\partial_kg_{i\bar j} = \partial_ ig_{k\bar j}$$ for all $i, j, k$?  I am looking for a reference.


I am running Ubuntu 14.04 32bit.   Recently, I decided to install ClamAV. It keeps warning me about this pua.win.trojan.xored-1. I read online that this means I have a rootkit.   I download and ran chkrootkit. It says the following:  The following suspicious files and directories were found:   /usr/lib/python2.7/dist-packages/PyQt4/uic/widget-plugins/.noinit  Searching for Suckit rootkit...  Warning: /sbin/init INFECTED   I just ran rkhunter and this came up:  /usr/bin/unhide.rb [ Warning ]   To remedy the problem, I am currently downloading a new Ubuntu ISO. I will re-install everything from scratch. Assuming that I have a rootkit, is this enough to solve the problem?    Update: I didn't know that rkhunter wasn't finished yet. Here is some more:  Checking /dev for suspicious file types                  [ Warning ] Checking for hidden files and directories                [ Warning ]


Prove that $u(x,t)=\int_{-\infty}^{\infty}c(w)e^{-iwx}e^{-kw^2t}dw\rightarrow 0$ if $x\rightarrow \infty$

I have the following problem:  Be the equation:  $$u(x,t)=\int_{-\infty}^{\infty}c(w)e^{-iwx}e^{-kw^2t}dw$$  Show that $u\rightarrow 0$ as $x\rightarrow \infty$, even when $e^{-iwx}$ does not falter if $x\rightarrow \infty$.  The problem gives the hint to use integration by parts. I was hoping you explain this problem or help me solve it, for your attention and any help: thank you very much.


Let $A$ be a $5\times5$ matrix that can be written in the form $A=BC$, where $B$ is a $5 \times 4$ matrix and $C$ is a $4 \times5$ matrix. Prove that $A$ is not invertible.


Why is "condensed nearest neighbour" Parametric?

Definition of "condensed nearest neighbour", at training time it chooses the c "best" training examples (where c is a hyper-parameter), and at test time uses the usual KNN prediction but based only on these c training examples.   So far, I looked-up many references and websites and researched on how to determine if a method is between parametric or non-parametric. I came up with below definitions,     A parametric algorithm has a fixed number of parameters. In contrast, a non-parametric algorithm uses a flexible number of parameters, and the number of parameters often grows as it learns from more data.   From .  Moreover, I found,     A parametric model, we have a finite number of parameters, and in nonparametric models, the number of parameters is (potentially) infinite.    From .  My question is, why do we count it as a Parametric model?


If $x\leq y$ then $\phi \left( x\right) \leq \phi \left( y\right)$ and $\phi \left( x\right) =x$ for all $x\in\mathbb{R}$.

Let $\phi :\mathbb{R} \rightarrow \mathbb{R}$ be a one to one map such that $\phi \left( x+y\right) =\phi \left( x\right) +\phi \left( y\right)$ and $\phi \left( x^{2}\right) =\phi \left( x\right) ^{2}$ for all $x,y\in\mathbb{R}$,  $\phi \left( xy\right) =\phi \left( x\right) \phi \left( y\right)$ for all $x,y\in\mathbb{R}$ and $\phi \left( q\right) =q$ for all $p\in\mathbb{Q}$.  Claim1. If $x\leq y$ then $\phi \left( x\right) \leq \phi \left( y\right)$.  Claim2. $\phi \left( x\right) =x$ for all $x\in\mathbb{R}$.  My proof-trying of Claim1. By the definition, $x\leq y$ $\Leftrightarrow$ $\exists z$ $(z\geq 0 \wedge $x+z=y$)$. Thus, $\phi \left( x\right) +\phi \left( z\right) =\phi \left( y\right)$. Hence, we obtain $\phi \left( x\right) \leq \phi \left( y\right)$. But, I don't sure. Can you check?  Can you give a hint for claim2?  Recall that


This question is related to  (asked by user @GeraltofRivia). In fact it is what I understood the question to be before it was edited.     Let $n\in\mathbb{N}$. For what $1\le r\le n-1$ is $\binom{n}{r}$ divisible by $n$?   When $n$ is prime, this is obviously true for all such $r$. I believe that the case where $n$ is the product of two primes or a power of a single prime shouldn't be too hard to treat, however the general case looks like a combinatorial mess to me. Does anyone have some insight on how the problem can be solved for arbitrary $n$?


Without using mod_rewrite, what is the best way to redirect all subdomains to https?

I am currently using mod_rewrite to redirect all subdomains to https, but multiple sources have suggested that      Using mod_rewrite to do this isn't the recommended behavior. See      The  suggest Redirect and RedirectMatch:     A common use for RewriteRule is to redirect an entire class of URLs.   For example, all URLs in the /one directory must be redirected to   , or perhaps all http requests must be   redirected to https.      These situations are better handled by the Redirect directive.   Remember that Redirect preserves path information. That is to say, a   redirect for a URL /one will also redirect all URLs under that, such   as /one/two.html and /one/three/four.html.   Unfortunately, both of these documents (and anything else I have found) are only considering matching a single domain, rather than all subdomains. RedirectMatch seems like a good candidate for a relatively simple task like this, but I can't seem to get "http" to match as I expect:  RedirectMatch permanent "^http://(.*)$" "https://$1"   My guess as to why that doesn't work is because the redirectMatch is looking for a path and not a URI, but at this point I am stuck. Is it possible to accomplish a redirect of all subdomains to https without mod_rewrite, or is that the best available method?


Why does my Minecraft skin overlay not display in-game?

When I play Minecraft, the skin I created does not display the skin overlay (eg. hoodie/headphones), but when I look at my skin using a viewer (eg. namemc.com or minershoes.com) the headphones and hoodie show up. I have downloaded the Steve template from minecraft.net and layered my skin on top of it and found nothing wrong. Does anyone know why this is happening? Thanks in advance!


I have the following algorithm. Could any one please let me know how I can put it in a minipage?   \begin{algorithm}\small  {Start}\;   \eIf{A is bigger than B}{   \eIf{if A is bigger than C}{  A;  }{ C;  } }{ \eIf{B is bigger than C}{ B;   }{ C; } }  \caption{A B C comparison}  \end{algorithm}


How does Minecraft generate it's texture (ex. which block is grass and which one is stone)?


I'm wondering about a way to exclude the axis labels and axis graduation from how latex will center the figure with respect to the caption. Labels and graduation along the y-axis (assuming it lies on the left of the figure) will tend to move the rest of the content to the right. I feel like it looks better when only the "main" content serves for centering purposes. Is such feature available?


Domain over which a polynomial is strictly positive

$$Q(x) = x^k + a_1x^{k+1}+ ... + a_nx^{k+n}$$ where $k,n$ are positive integers is a polynomial with real coefficients. I have to show that $Q(x)/x^k$ is strictly positive for all real x satisfying $$0<|x|<1/(1+\sum_{i=0}^n |a_i|)$$  Now the polynomial formed after division(which is legal since $x$ is non-zero) is the general $n$ degree polynomial $1+a_1x+...+a_nx^n.$ This approaches $1$ as $x$ approaches $0$. But how can I obtain the right hand part of the inequality? Furthermore, I tried substituting $x=1$ to obtain the right hand denominator but the it doesn't give the sum of the absolute values.


Is it normal to have a MBP's temp at ~50?

My MBP runs very hot and I thought the fans were broken because there's no air blowing out the back and no fan noise as I used to hear in my older MBP so I installed  Apparently, the fans are running mostly at around ~1200rpm and the temps are 50-55c, is this normal? should I modify the settings? I can even feel the heat just from using the keyboard.


Does most of the formatting remain intact when a standard thesis PDF is converted to Word?

Overall formatting of the PDF document which was built from LaTeX and then later converted to MS Word.


What check is required to break open a chest?

It might be to force the lock off or smash the chest entirely. I wasn't sure if you can use a Saving throw to open it (In this case a Strength check) or if you have to use skill modifiers in checks (Athletics).   I'm confused because if you a Proficient in strength, the modifier is added to the "Saving Throw". I don't think Athletics is appropriate for this check.


Need to install TP-LINK AC1300 Archer T3U

I am using Ubuntu 20.04 LTS.  I bought TP-Link AC1300 Archer for 5 ghz support but currently not able to make  it work.  I need to git repo having the right driver.  Any adhoc paid support  is there?


Is the gravitational waves velocity also $c$, regardless the adopted inertial frame, and the source movement conditions?

The second postulate of STR was made exclusively for light (electromagnetic waves)?  If gravitational waves also travel at velocity $c$, then are they obliged to fulfill this second postulate?  Any wave of field (anti matter, dark matter, dark energy), traveling at velocity $c$, must obey this same postulate?  Since gravitational waves are not contained in the second postulate, does the invariance of these waves need to be proved?  Is Ligo results a proof of the velocity $c$ of gravitational waves?  Can Ligo prove the invariance of gravitational waves?


What happens if I toss a coin with decreasing probability to get a head?

Yesterday night, while I was trying to sleep, I found myself stuck with a simple statistics problem. Let's imagine we have a "magical coin", which is completely identical to a normal coin but for a thing: every time you toss the coin, the probability to get a head halves. So at t = 1 we have 50:50, then 25:75, then 12.5:87.5 and so on. At t = ∞ we are going to have 0:100.  My question is: if I toss this magical coin infinite times, can I say I am sure I am going to get at least one head? On one hand, I thought, the law of large numbers states that if an event is repeated infinite times, every state that is possible is bound to happen. On the other side, however, at t = ∞ the probability to get a head is zero.  Surely the solution of the problem is fairly easy, so what am I doing wrong?


I've got an expression like this:  /* pierwszy */  using System;/* drugi */   and I want to match all comments in this line.  But this regex:  \/\*(.*)\*\/   is unfortunately not working, because it matches that:  pierwszy */  using System;/* drugi   So, as you can see, it matches the whole expression. Anybody knows how to write a regex to match subgroups, not the whole expression?


Me and my sibling want to play Minecraft together. Is there a way to use Bluetooth instead of WiFi to get connected? If so, how? We have MCPE version 15.0.


How to reinstall Ubuntu in a dual boot system with more storage space?

I just installed Ubuntu 18.04 as a second OS in my Acer notebook, (alongside with Windows 10) using 2 partitions, / and /home (sda5 and sda6). However, I found that I might have reserved less space than I'd have liked. So I was pretending to reinstall it.   Is it safe to just format both partitions from the Live USB, free some more from the Windows partition (sda3) using Windows' Disk Manager (already freed 40 GB) and create 2 new partitions with the allocated space distributed correctly? Is it possible that Grub2 will break after it?


Suddenly the wifi option from the main tray and settings is gone

I was using my laptop, due to low battery issue it switched off and when I booted it again, The wifi option was missing from the top right tray and it doesn't even appear in the settings. I am attaching the picture describing the output of command lspci -knn | grep Net -A3; rfkill list Output: 06:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BCM43142 802.11b/g/n [14e4:4365] (rev 01)     Subsystem: Dell Wireless 1704 802.11n + BT 4.0 [1028:0016]     Kernel modules: bcma 07:00.0 Ethernet controller[0200]: Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller [10ec:8136] (rev 07) 0: dell-rbtn: Wireless LAN     Soft blocked: no     Hard blocked: no 1: hci0: Bluetooth     Soft blocked: yes     Hard blocked: no   UPD: If there is any package that you think I should install, it will be a great help if you also mention if it is possible to manually download those. I don't have any other method to connect to internet on my laptop.


cpanel - I'd like to add CNAME for domain.com

I want to change an A record of my root domain www.domain.com to CNAME dyndns.org.  But the cpanel gives me the following error:  already has a SOA record. You may not mix CNAME records with other records for the same name.   Can you please explain what this means? And how do I fix it?


Production server (This is the correct behaviour)  >>> $str = "àáâãäåæçèéêëìíîïðñòóôõöøùúûüý"; => "àáâãäåæçèéêëìíîïðñòóôõöøùúûüý" >>> strtoupper($str); => "àáâãäåæçèéêëìíîïðñòóôõöøùúûüý" >>> mb_strtoupper($str); => "ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝ"   New local environment  >>> $str = "àáâãäåæçèéêëìíîïðñòóôõöøùúûüý"; => "àáâãäåæçèéêëìíîïðñòóôõöøùúûüý</string>" >>> strtoupper($str); => "ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝ</string>" >>> mb_strtoupper($str); => "ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝ</string>"   I can't find anything on the internet regarding this </string> at the end of the variable.  It also fails with iconv function   Production server  >>> iconv('UTF-8', 'ASCII//TRANSLIT', 'áè'); => "ae"   New local environment  >>> iconv('UTF-8', 'ASCII//TRANSLIT', 'áè'); => "'a`e"    I followed the instructions regarding PHP found in  but no luck, I ignored MySQL since I'm not using it, I also ignored the Apache one since I have Nginx.  I started to think it's because mbstring extension but can't find anything related with that.  EDIT: It's not a duplicate  because it's not an issue with MySQL and I already tried the solutions exposed there. It's not a matter of get an alternative for iconv but to fix the environment to do the same as Production.


What assets/earnings are included as "income" when determining capital-gains tax rates?

According to , people pay varying long-term capital gains tax based on an income-based rate schedule.    It appears that a person with single tax-filing status who earns less than $39,375 (in 2019) and that sells assets held for more than one year would essentially not pay any capital gains tax.   My question: is this $39k limit based on just income from a job or does it also include the capital gains as part of this income?  To help me be sure I understand, could you indicate the tax rate of each of the following single-filing status scenarios?   $36k income on W2  +  $4k from selling long-term assets. $10k income on W2  +  $30k from selling long-term assets.  $0 income on W2  +  $40k from selling long-term assets.   It seems to me that each of these scenarios would be taxed at the 15% rate, but I'm trying to make sure I understand this correctly.


Color from imported OBJ not displayed in Blender

I want to import some .obj file that I have made with MeshLab. The point cloud file was actually in .pcd format and I used pcl_pcd2ply tools from PCL to change it into PLY-Format. Then I import it into Meshlab and make the mesh out of it. I used the texture and texture color as the object color. At the end, I have some file in MTL, PNG(for texture color) and the OBJ-Formats.  When I drag the OBJ file in Meshlab it shows the mesh with some color (before in point cloud just some random points). Then I tried to import the OBJ into Blender I could only see the mesh without the color. How can I solve this problem? Thanks in advance


How to print dates between two different dates

I want to print dates between 2 different dates (i.e. start date and two dates)  If start date is 2013-09-05 and end date is 2013-09-10, then I want result as  2013-09-05 2013-09-06 2013-09-07 2013-09-08 2013-09-09  2013-09-10    ..... etc  During month end and month start, it should print correct dates.


How to create an External Column in SharePoint 2013 designer?

I want to create External column  but I can't see the option to select the type.


Lost account after changing default Google account

Google made me change my default e-mail address to a GMail one a couple of months back and now I can't log into StackOverflow.  I have tried to Restore my account on the log-in screen but have had no joy.  Is there a way of getting my old account back?


I was trying to prove this, and I realized that this is essentially a statement that $n^5$ has the same last digit as $n$, and to prove this it is sufficient to calculate $n^5$ for $0-9$ and see that the respective last digits match. Another approach I tried is this: I factored $n^5-n$ to $n(n^2+1)(n+1)(n-1)$. If $n$ is even, a factor of $2$ is guaranteed by the factor $n$. If $n$ is odd, the factor of $2$ is guaranteed by $(n^2+1)$. The factor of $5$ is guaranteed if the last digit of $n$ is $1, 4, 5, 6,$ $or$ $9$ by the factors $n(n+1)(n-1)$, so I only have to check for $n$ ending in digits $0, 2, 3, 7,$ $and$ $8$.  However, I'm sure that there has to be a much better proof (and without modular arithmetic). Do you guys know one? Thanks!


Is it secure to encrypt with EC "for myself"?

I want to encrypt some small amount of data using ECDH for use by myself later, but I don't want to generate an ephemeral keypair like in ECIES, due to time and space constraints.  Would it be safe to use my existing EC keypair to encrypt data "for myself"?  In this case I don't need to store any key material with the ciphertext, which is nice.  But is it secure? Alternatively I could just hash my private key and use that as the symmetric key. Would that be more or less secure?    The encryption goes as follows. Let $P$ be my public point on the curve secp256k1 and let $P=[d]G$ hold with $d$ being my private key. I encrypt a message $m$ as follows:   I perform an ECDH agreement with my own public key, i.e. compute $S=[d]P$ I hash the common point with SHA256 to get the key $K=H(S)$ I generate a 16 byte IV uniformly at random using a CSPRNG: $IV\xleftarrow{\$}\{0,1\}^{128}$ I encrypt the message using AES-256-CBC as $c=E_{K,IV}(m)$ I return $(IV,c)$, knowing that I can re-derive $K$ using only my key-pair


Can holders of Israeli residence visas enter area A in the West Bank?

I know that is is illegal for Israeli citizens to enter area A of the West Bank. However, foreign citizens that enter Israel are usually allowed to travel to such areas.   Are holders of an A1 visa (residence visa valid for 3 years) in a foreign passport covered under the ban on Israelis entering (such visa holders would have both an Israeli non-citizen-resident ID Card and a foreign passport)? Or does this ban exclusively apply to those who are citizens?


How do I stop Outlook Out-Of-Office from replying to certain addresses?

When I am out of the office, if I turn Out-of-Office on, it auto-replies to the automated emails I get from our Bug Tracking system, which leads to our Bug Tracking system getting full of message about my holiday.  With Outlook Out-of-Office, how do I set it to not respond to certain 'From' addresses? I see its something to do with the optional Rules in the O-o-O dialog, but its not that clear how to stop it from replying using the rules.  I'm on Outlook 2003 and Exchange 2003 but advice for any version will probably be useful to people.


Lookup DNS entry by hostname without FQDN

I have a Windows Server 2012 R2 server that has the AD role installed on it. All machines, Linux and Windows use the AD DNS server for name resolution. When making DNS queries on Linux using NSLookup I have to type the FQDN (mynode.domain.com). But in Windows, I only need the hostname (mynode). So, my question is, is there a way to just use hostnames on Ubuntu?   Here is the output I get when trying just the hostname:  Got SERVFAIL reply from 192.168.0.2, trying next server ... server can't find mynode: NXDOMAIN   Any help with this, as always, is appreciated.


Title pretty much sums it up.  The external style sheet has the following code:  td.EvenRow a {   display: none !important; }   I have tried using:  element.style.display = "inline";   and  element.style.display = "inline !important";   but neither works. Is it possible to override an !important style using javascript.  This is for a greasemonkey extension, if that makes a difference.


How can we provide "hashCode" method or so in javascript like the one in Java?

I want to use a javascript set whose elements are objects. However, I want two objects to be considered equal in a default way(same address). So how can we provide "hashCode" method or so in javascript like the one in Java?


sudo blkid and cat /etc/fstab info  I have tried options given below, but nothing worked.  After logging in, type "journalctl -xb" to view system logs,  "systemctl reboot" to reboot, "systemctl default"  or ^D to try again to boot into default mode".    PS:  [UNSUPP] Starting of Arbitrary Executable File Formats File System Autmount Point not supported. [FAILED] Failed to start Load Kernel Modules.


If a creature starts their turn in another's space, are they forced to move out?

Inspired by this question:   That Q&A concludes that it is possible for two creatures to unwillingly share the same space; for example, one creature could be pulled by thorn whip into the space of another creature.  Once the thorn whip caster's turn is over, when it is one of the other two creature's turns (either the one who was pulled or the one's whose space was invaded), they will of course start their turn in another creature's space.   From the PHB, p. 191:     Whether a creature is a friend or an enemy, you can’t willingly end your move in its space.   Are they allowed to end their turn in the other creature's space if they don't use any movement, or must they move out of the space (if they can; i.e. they have movement)?    Related:     (accepted answer seems to imply that the other character would have to move, but this is not supported and comments dispute that unsupported point; also, that question is about the character moving on their turn, mine is not)  (not the same as my question as it talks about sharing space on the creature in question's turn, whereas mine is about not moving on your turn to avoid this)


Nodes in the node editor are different than on tutorial

I'm new to blender and I'm trying to use the Volumetric light, I have watched some tutorials and none serves me, this for example    I use the version 2.72 b but when the boy tutorial, enter the node editor does not appear to me like I needed as indicated in the photo, someone can recommend me someone who can help me.      and me neither, not shown me the same components in the menu "add" in the node editor.  Thanks and sorry for my bad English.


Why won't my HP Envy x360 laptop with Ryzen 7 3700U boot Ubuntu live CD?

I recently bought an  with a    Ryzen 7 3700U processor,  16GB of RAM and a 512GB NVME SSD.     I want to install Linux on it, but both Ubuntu, Manjaro, and plain Arch linux won't boot. I can get to the grub menu, but once I select the option to boot, the screen goes black and nothing happens.    By the way, I'm trying to boot Ubuntu 19.04, Manjaro 18.04, and Arch 08.01.2019 and yes, I've disabled Secure Boot already.  Any ideas? Is it possibly an issue with the kernel version?  Or maybe a boot argument I need to pass through grub?


Im currently trying to implement footcites into my document  \documentclass[11pt]{report} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage[backend=biber, style=numeric, citestyle=reading ]{biblatex}  \usepackage{footnote} \makesavenoteenv{figure}         \addbibresource{Bibliografia.bib}  \begin{document}      \begin{figure}[H]             \includegraphics[width = 1\textwidth]{Tesis/Imagenes/AC1.jpg}         \captionof{figure}{ Gráfica de tensión \footcite{AC} }         \label{Resistiva}   \end{figure}  \end{document}   Where the content of my bib file is   @article{Linear,     author    = {{Bob T. Smith}},     date      = "2008",     title     = " Linear circuit design handbook Newnes ISBN 0750687037 Instruments",     url       = "http://es.wikipedia.org/wiki/Circuito_lineal" }  @article{AC,     author    ={{AllAboutCircuits}},     date      = "2015",     title     = "Introducción a Teoría de C.A.",     url       = "http://www.allaboutcircuits.com/textbook/alternating-current/chpt-11/power-resistive-reactive-ac-circuits/" }   However Im getting this     As you can see theres 2 footcites one from my text and another from my label, this shouldnt look like this but only one at the bottom


Can I make estimated tax payments instead of withholding from my paycheck?

My employment provides me with a W-2 at the end of the year, and I currently have taxes withheld from my paychecks. In the opposite of this question, , I'd like to know if I can elect to have zero withholdings from my paycheck and instead make estimated payments with a 1040-ES.  In this case, I have a generally good idea of my exact tax liability, so I can easily make quarterly payments without trying to predict fluctuating income. I'd just like to make sure it's legal to make quarterly estimated payments if you have income that would ordinarily pay taxes through withholdings.


I am just wondering that sentence mean present tense.     I am afraid I have got no money.   If it is a present tense, why that writer use "have got"?


In the following code, I traced by using debugger I fail to understand 1. why B b2() is never called but skipped. 2. Why auto_ptr calls base (A) destructor only when object created is derived (B)?   class A { public:     A(int x_) : _x(x_) {cout << "A::A( " << _x << ")" << std::endl; }     A(const A& src) : _x(src._x) {cout << "A::A(copy " << _x << ")";}     ~A() { std::cout << "A::~A " << std::endl; }     int x() const { return _x; }; protected:     int _x; }; class B : public A { public:     B():A(0) {cout << "B::B( " << _x << ")";}     B(A a):A(a.x()) {cout << "B::B(A) ";}     ~B() { std::cout << "B::~B "; } }; int main() {     B b1(11); //which calls A(int) -> B(A a) -> {A::x() -> A(int)} -> ~A()}     B b2();   //It's never called, why?     std::auto_ptr<A> aptr(new B); //Calls A(0)->B()-> ~A() ==> why ~A() only but not ~B() ? } /*Actual Result: B b1(11) => It prints following         A::A(11)         A::A(11)         B::B(A)         A::~A /// Why B b2() is not called??? auto_ptr<A> aptr(new B) => It prints following. Why ~B() is not called?     A::A(0)     B::B(0)     A::~A B b1(11) destructors => It prints following     B::~B     A::~A */


XAML ResourceDictionary not loading correctly with a single keyset

I've been working on a WPF application and have come across some rather strange behavior concerning resources defined in the Application.Resources element of my App.XAML file.   I really only need a single string resource defined in my ResourceDictionary, and I attempted this with the following XAML:  <Application x:Class="MyClass.App"          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"          xmlns:sys="clr-namespace:System;assembly=mscorlib">     <Application.Resources>         <sys:String x:Key="htmlHelpFilePath">.\Help\glossary.chm</sys:String>     </Application.Resources> </Application>   And then attempted to access it with the following code:  ResourceDictionary resourceDictionary = App.Current.Resources; string htmlHelpFile = (string)resourceDictionary["htmlHelpFilePath"];   This unfortunately resulted in htmlHelpFile being set to null. The debugger also revealed that resourceDictionary had zero keysets.   I started to play around and found that simply adding another resource into my Application.Resource XAML element allows for the dictionary to properly populate, so I ended up settling with:  <Application.Resources>     <sys:String x:Key="htmlHelpFileName">glossary.chm</sys:String>     <sys:String x:Key="htmlHelpFileDirectory">.\Help\</sys:String> </Application.Resources>   This solution is works as expected and I have moved on with my work, but I am absolutely mystified by why this is behavior is occurring in the way that its occurring. My knowledge about the inner workings of XAML configured WPF applications is very basic, and would love to know the reason for this bizarre behavior.


Shortcode output appearing at the top of the page only

I've found a few solutions to this but I am echoing some html and I have not been able to put those solutions (to return intead of echo, for example) to use. This is my function:  function get_loggedin_avatar (){global $current_user;     if ( is_user_logged_in() ):         get_currentuserinfo();           echo '';         echo get_avatar( $current_user->ID, 96, left );         echo '';     endif;  } add_shortcode( 'loggedinavatar', 'get_loggedin_avatar' );   I see if I change all the echoes to returns, the avatar is output in the right spot but the link html stays at the top of the page.   I thought that perhaps making the html into variables that could be returned might work but I couldn't get that to work. Output buffering (or at least my attempt at it) did not work either.  ** this is not a duplicate of  as output buffering did not work with my specific example.


Why is exponentiation right associative?

From :     In order to reflect normal usage, addition, subtraction,   multiplication, and division operators are usually left-associative   while an exponentiation operator (if present) is right-associative   For example, we evaluate $2^{2^2}$ as $2^4$ rather than $4^2$. All other operations besides exponentiation, tetration, etc. are inherently left associative. Is there any reason why it's different for exponents?


Cartoon with a boy that has a red rhino monster and chases and fights other monsters

What cartoon (with the word kaiju was in the title) has a boy that has a red rhino monster and chases and fights other monsters?  All I can remember is the boy had (I think) red and black hair and he bonded with a rhino that was red and black. He used a glove to control the monsters. His friends help him out.


Below is my situation:  Is completely (vacuum) sealing leftover meat in the freezer absolutely necessary? I would always just use a plastic bag to cover the meat and fold it around couple of times so it's almost as good as sealed (usually grocery plastic bag is much bigger than the piece of meat) and have never had a problem with it last a decade or so I have been cooking.  But recently I got this new roommate who insists on me using special small plastic bags with sealers to use and he is being very paranoid, obsessive about it.  So my question is: Is he right?


Shimming object that doesn't have constructor

I am using 3rd party library, and there is specificly a method that I want to shim.   public virtual QueueRuntimeInfo GetQueueRuntimeInfoAsync(string queuePath);   This method return QueueRuntimeInfo object. Here is the implementation of that class, which there is no constructor:  public class QueueRuntimeInfo {     internal QueueRuntimeInfo(string path)     {         this.Path = path;     }     public string Path { get; internal set; }     public long MessageCount { get; internal set; } }   Now, I want to shim GetQueueRuntimeInfoAsync method, which return QueueRuntimeInfo object, and then I want to set its property manually in my code.  Here is my shim method:   ShimManagementClient.AllInstances.GetQueueRuntimeInfoAsyncString = (managementClient, queuePath) =>         {             QueueRuntimeInfo queueRuntimeInfo; // what to do?!             return queueRuntimeInfo;         };   I think I can shim get methods of QueueRuntimeInfo class (PathGet and MessageCountGet). But still need to create the object somehow.


Global variable passed in a function not affected by it on the global scope

First of all, I'm sorry for asking this which was seemingly asked before, but... In the questions I found, people talk about scope (and I'm familiar with the concept) or about some "callback" or "asynchronous" things that I don't really understand. The reason why I ask this is because all my global variables so far, were normally affected by the great number of functions. The code I have is way too big for me to paste it here, but I'll give you an example.  var ContainsSomeNumber = 50; var AnObjectWithSomeValues ... var TheFunctionInQuestion = function(nameRepresentingTheObject, nameRepresentingNumberVar){    if(nameRepresentingTheObject.lestSayName ==== "SomeString"){       nameRepresentingNumberVar+=5;    } }   Now the thing is, it understands both variables and gets the correct result when I pass them into the function, however, the ContainsSomeNumber variable remains unaffected by the function on a global scale. If I place an alert or log to show me how much it is inside the function, it shows 55, as it should. But once I try to access the modified global variable in another place with the modified value after the function has been run successfully (chrome and firefox show no foul play), it returns the same unmodified value of 50. Is the problem because I didn't use hardcode versions of variables to pass in the function, or what? Because like I said, it sees and modifies it the right way, but only inside the function. Shouldn't scope see the variable as a global one as I didn't write "var" in front of the one I used in the function? I mean, I didn't declare it as a new variable, plus it took it's global value normally. Why doesn't the global variable stay modified by the function?


British Punctuation versus American Punctuation

I've learned that American English use double quotation marks and place periods inside quotation marks while British English use single quotation marks and place periods outside quotation marks.     American: He called this phenomenon "the memory of water."      British: He called this phenomenon 'the memory of water'.   But some media adopt another style similar to the following sentence. Is this style British or American English?     He called this phenomenon "the memory of water".   Another question about American punctuation: Which of the following is correct in American English?     Did he call this phenomenon "the memory of water?"      Did he call this phenomenon "the memory of water"?


Where is Google Maps extension for ArcGIS?

I need to import Google Maps into ArcGIS for Desktop and apparently I need to activate a Google Maps extension. I'm working on ArcGIS 10.0 and there are no such extension. Do I have to install a new extension?


Remove notifications for one specific email account on Mountain Lion's Mac Mail

Is it possible to set or disabled Mail notifications on a per-account basis on Mountain Lion's notification center?  I have shared an email address that gets a lot of emails that I only need to check once in a while and it would be great if I could disable notification for this email. I can't find any settings to do this on Mail preferences or Notifications preferences.


Using OpenStreetMap data in QGIS, but street names repeat too much

I have downloaded some roads in a section of Los Angeles from OpenStreetMap. I used overpassturbo.eu to generate the data, using the expression highway=primary. However, because these streets are broken into many segments (bridges, changes in speed limits, etc.), the street names repeat too much. Is there a way in QGIS, or elsewhere, to edit this data to remove some of these repeating street names? I have been looking for something in QGIS, but so far no luck.