I'm having problems with creating a DIN A 2 Layout in QGIS 3.0  Where can I define the page size? I defined it in the arrangement settings ("Page Setup") but when I create a rectangle the Layout is still in DIN A 4 ...

I am trying to change the page size in the QGIS 3.0 Composer but I am not able to see the Composition tab.  I have right clicked an empty space in the toolbar but did not see anything about composition.  I am using Windows 7.  I tried looking at the QGIS docs but they are still in testing.


I often encouter this problem and it really bugs me on why it is so. So let's take this example into account :  [me@localhost:~]$ sudo command > /some/file.log   As far as I know, this will not work if the user has no permission to write in /some/file.log, even if the command is executed as sudo. I found some workarounds on this website so that's not a problem, but I would like to know what is the reason behind it ? Why would the command be executed as sudo, and the redirection as user ? Any solid reason to back this up ?

Why does redirection, using sudo give me an error for the following commands?   $ sudo printf "foo" >/etc/file bash: /etc/file: Permission denied  $ sudo printf "foo" ~/file; cat ~file >/etc/file  bash: /etc/file: Permission denied   ...yet I have no such problem when I use an editor, or cp. I don't think I've ever tried this before, so I don't know if there is something haywire on my system, or if this is normal. It seems a bit restrictive to be normal, but(?) maybe it is intended to be restrictive...  (using Ubuntu)


I am a university student taking a course in Mathematics Teaching, and one assignment is the following problem, to be solved using only Euclidean geometry as is presented in Euclid's Elements. Unfortunately I have no idea where to start.  While I am required to present a very formalized solution, as if it were a proposition in Euclid's book, I am confident in my ability to produce it if I had just an idea for a solution to this problem.  Here is the problem:     Consider a quadrilateral $ABCD$, and $M_1 ... M_4$ the midpoints of its sides $AB, ..., DA$ respectively.   Draw the segments $AM_3, BM_4, ...$ as in the picture.   Show that the triangles $t_1, ...., t_4$ have total area equal to that of the quadrilateral $q_1$   Thank you.

I have some troubles with this problem :     Let $ABCD$ be a convex quadrilateral. $M$, $N$, $P$ and $Q$ are the   midpoints of the sides $AB$, $BC$, $CD$ and $AD$.  $AN$, $BP$, $MD$   and $CQ$ are interescting in $X$, $Y$, $Z$ and $T$ like in the figure   below. Prove that $[XYZT] = [AMX] + [BYN] + [CZP] + [DTQ]$.   It is noted with $[ABC]$ the area of $ΔABC$.     Since $M$, $N$, $P$ and $Q$ are midpoints, the first thing that came in my mind was the median property : the median divides a triangle in two echivalent triangles (with the same area).  I would appreciate some suggestions.  Thanks!


I was recently talking to someone online and she said that she was in the Army and then she went on to tell me that she had a lump sum of 45,000$ co.i g to her but she needed my bank account routing number, asked for my social security number, and then told me that she was going to have the Army wire me the money into my account now my question;     Is this a scam?

A man in  west  coast  Austria wants to deposit money  into  my account.  I'm in Alabama.  I had to get an online  account.  I did that, but he says his bank manager  needs all this information:   DOB SSN    online access username  online access  password   security  question and answer   bank name   bank address   bank number  person who is on the account     their name their address    account no   routing no     OK. Is it safe  to do this or am I being scammed?  I don't want him  to be able to end up withdrawing all my money instead of depositing money.


I am porting some javascript code (not my strongest language) and came across this:  Common._nowStartTime = +(new Date());  Common is a module and nowStartTime is a property of that module. I'm not sure what the right hand of the expression means? Why prefix with the unary + operator?

I've seen this in a few   function fn() {     return +new Date; }   And I can see that it is returning a timestamp rather than a date object, but I can't find any documentation on what the plus sign is doing.  Can anyone explain?


The experiment goes like this. The coin is tossed repeatedly and independently until two successive tails are obtained. And the probability of getting a head is $p$. Let $q_n$ be the probability that we stop at $n^{th}$ coin toss. What is the recursion for $q_n$?

Assume a coin has a probability p to get a head H. Suppose a coin is tossed until the partern T,T appear in the last 2 tosses. Once he got T,T then the game is finished. What is the expected number of flips is expected for the game?  I tried to find out the distribution of $N$ where $N$ stands for the expected value of the no. of tosses before getting T,T, but i don't know what kind of distribution is that, seems need another apporaches


The flag queue on meta sites is separate from the flag queue on main sites. It's one more thing to check, and it's low-volume so there's no incentive to check it often because it would be empty most of the time. Yet sometimes flags indicate that urgent action is needed (e.g. flamewar in progress).  In addition, as meta sites have rather lower activity, this means moderators can sometimes go for a while without visiting the meta sites, leaving flags to linger. This is especially true since moderators receive a notification on the main site for each new meta question, so in the absence of such notification, there is little reason to think something big is happening on meta and thus to visit the meta site and find out about a flag.  Please unify the flag queue between the main site and the meta site. I think putting meta flags in a separate category (like there are now categories for spam, not an answer, etc.) would be sufficient to distinguish them when needed.  MSO before the MSE split is obviously a special case.

Abstract  There's no need to have two flag queues (one for meta, and one for main) for moderators to check.  There's also no need to have two edit queues, if suggested edits were allowed on meta sites.  We should have one flag queue and one edit queue for both main and meta SE 2.0 sites.  Background  Most of these sites have a low traffic level and low participation.  How low traffic are they?  Moderators get pinged in their global inbox for questions on Meta sites because we're desperately trying to make sure that any traffic is successful.  Our meta traffic is picking up rapidly, but it's nowhere near the point that it's sensible to check meta's  flag queue.   The Problem  The flag and edit queues are currently separate on the meta and main sites.  This reduces the flag handling time, and is yet another queue for mods to check.  The undesirability of a separate edit queue is used to justify the  on meta sites.   The Solution  The flag queue on meta should be integrated with the main site flag queue.  Additionally, suggested edits should be implemented on meta, and this queue integrated with that of the main site.


Let $F$ be a field of characteristic $p>0$, and let $a \in F - F^{p}$. Show that $x^{p} - a$ is irreducible over $F$.   I didn't get a good idea to solve that question. But I'm not looking for an answer, I would just like a hint. Thanks for the advance.

Hungerford's book of algebra has exercise $6$ chapter $3$ section $6$ [Probably impossible with the tools at hand.]:     Let $p \in \mathbb{Z}$ be a prime; let $F$ be a field  and let $c \in  F$. Then $x^p - c$ is irreducible in $F[x]$ if and only if $x^p - c$   has no root  in $F$. [Hint: consider two cases: char$(F) = p$ and   char$(F)$ different of $p$.]   I have attempted this a lot. Anyone has an answer?


You can compute the slope of linear regression (without weights) by:  cor(x, y) * sd(y) / sd(x)  If we have add weights (w) in here as well - how do you compute the slope then?

This wiki page  has formulas to calculate $\alpha$ and $\beta$. Could anyone tell me how to derive the formulas in weighted case?


This question arised while reading through this question: . There it is stated that Darth Sidious was loyal the Rule of Two in new canon.  From the novel Darth Plagueis, we know that   Plagueis existed and was a Dark Lord of the Sith. Plagueis was the Master of Darth Sidious. Plagueis was alive during the events of The Phantom Menace. Plagueis was killed by Darth Sidious.   From these information we can of course conclude that Sidious disobeyed the Rule of Two, since Plagueis, Sidious and Maul co-existed during the events of The Phantom Menace.  But the novel Darth Plagueis is not canon anymore, so my question is:  What information is still valid in canon? And for the points not being valid anymore, what do we still know about them in canon?  If the author of the cited question is correct, than at least 3. must be false in canon. What about the other points?

I read and loved  but with all the recent changes to what is and isn't canon I'm losing track.  There's a common theory that Supreme Leader Snoke is Darth Plagueis, most are discounted because Plagueis is a Muun. But where does that information come from? What current canon information do we have about Plagueis that disproves this theory and what has been marked as Legends?


Let $\omega$ be a primitive $n$-th root of unity. Prove that $\omega^k$ is a primitive $\tfrac{n}{\text{gcd}(n,k)}$-th root of unity.   To prove this, I have to show that if$\quad \omega^n = 1 \quad$ then $\quad (\omega^k)^{\tfrac{n}{\text{gcd}(n,k)}} = 1 \quad$, as well as to show that $ \quad \forall m < \tfrac{n}{\text{gcd}(n,k)} : (\omega^k)^m \neq 1 \quad$.  The first one is easy: $(\omega^k)^{\tfrac{n}{\text{gcd}(n,k)}} = (\omega^n)^{\tfrac{k}{\text{gcd}(n,k)}} = 1^{\tfrac{k}{\text{gcd}(n,k)}} = 1$  But i am having a hard time proving the second identity. Does anyone know how to prove this and can help me with that?  Greetings, Octavius

This is an exercise from "Contemporary Abstract Algebra" I'm not sure how to solve.     Exercise: Let $\langle a\rangle $ be a (cyclic) group of order $n$. Prove that the order of $a^k=\frac{n}{\gcd(n,k)}$.   Direction: (1) Let $d=\gcd(n,k)$, thus by the Euclidian algorithm we can find $X,Y\in\mathbb{Z}$ s.t. $d=Xn+Yk$, thus, $a^d=a^{Xn+Yk}=a^{Xn}a^{Yk}=(a^n)^X(a^k)^Y=(a^k)^Y$. What to do from here?  (2) We know that $d|n$, thus $\langle a^{n/d} \rangle$ is of order $d$ and $\langle a^d \rangle$ is of order $\frac{n}{d}=\frac{n}{\gcd(n,k)}$. Is it mean that $d=k$? Where is my mistake?


I am trying to show that $$\text{Gal}(L|\Bbb{Q}) \cong \Bbb{Z}/4\Bbb{Z}$$ where $L = \Bbb{Q}\Big(\sqrt{2+\sqrt{2}}\Big)$.    So first, I   showed minimal polynomial of $a=\sqrt{2+\sqrt{2}}$ is $x^4-4x^2+2$ with splitting field $\Bbb{Q}(a)$. This splitting field has degree $4$ which implies that $|\text{Gal}(L/\Bbb{Q})| = 4$? I am not sure if this is correct and what follows from here.

So I want to show that $\mathbb{Q}(\sqrt{2+\sqrt{2}})$ is Galois over $\mathbb{Q}$ and determine its Galois group.   My thoughts are as follows:  Define $\alpha := \sqrt{2+\sqrt{2}}$. Then it is easily shown that $\alpha$ satisfies $\alpha^4-4\alpha^2+2=0$.  Define $f(x) := x^4-4x^2+2$. Then $f$ is irreducible over $\mathbb{Q}$ by Eisenstein with $p=2$.  So we have that $f$ is the irreducible polynomial for $\alpha$ over $\mathbb{Q}$.   Further $|\mathbb{Q}(\alpha):\mathbb{Q}|=4$.  For $\mathbb{Q}({\alpha})$ to be Galois, it must contain all roots of $f$.   Define $K=\mathbb{Q}(\alpha)$ for convenience.  Define $\alpha := \alpha_1$.  Since $f$ has only even powers, we know that $-\alpha := \alpha_2$ is a root, and therefore contained in $K$ since $K$ is a field.  We note that the other two roots are $\alpha_3=\sqrt{2-\sqrt{2}}$ and $\alpha_4=-\sqrt{2-\sqrt{2}}$.  So in order to show $K$ is Galois, it must be shown that $\alpha_3$ and $\alpha_4$ lie in $K$.  Now $\alpha_1^2=2+\sqrt2$ and so $\sqrt2 \in K$. Thus $-\sqrt2 \in K$ since $K$ is a field.  Can somebody explain why $\alpha_3$ and $\alpha_4$ lie in $K$?  Next we are to determine the Galois group of $K$.  Assuming $K$ is Galois, since it has degree $4$ over $\mathbb{Q}$ (shown earlier), we know that its Galois group has size $4$. There are only two groups of size $4$, namely $V_4$ and $C_4$, the Klein four group and the cyclic group of order $4$.  How do we determine which of these choice is in fact the Galois Group?


I am locked out of my laptop after restarting it. When I am in the login screen, I have 3 options:    me / registered user guest session remote login   When I click on the password field/text box that says log in, or press enter, it disappears. I can only press Esc and i am taken back to the 3 options, so I tried to just start typing the password, but nothing happens.   What can the problem be? Ubuntu did install some updates and I installed GIMP and libimobiledevice.   I tried to look for previous questions/answers, but nothing seem to match my problem. Can anyone help? I am a novice here and I don't want to give up or start from scratch. I have done so much on it already.Thank you in advance.

My Ubuntu is stuck in a login loop when trying to enter my desktop. When I login, the screen gets black and soon after that the login screen comes back.   I've read that the problem might be caused by an error depending on the graphics, here's my graphics card: ATI Radeon 7670M


For example, take K1, from the Kryptos sculpture, which has been long solved. It's text is as follows:  EMUFPHZLRFAXYUSDJKZLDKRNSHGNFIVJ
YQTQUXQBQVYUVLLTREVJYQTMKYRDMFD  Now, I already know they keywords used (because the solutions are online) and they are PALIMPSEST and KRYPTOS. However, I do not understand how you would go about finding these keywords if you do not already know them.   Any help would be appreciated!

I'm studying the  with its cryptographic puzzles K1 to K4.  I understand that the keyword "palimpsest" was reverse-engineered using the tableau (and brute-force computer processing), but Sanborn always said that all sections could be solved using pencil and paper.   There are theories about the Morse, but I haven't come across a good explanation of how to tease "palimpsest" out of it.  I've been frustrated trying to find this in the Kryptos Yahoo group.  I'm not concerned that it has any "meaning" just whether or not there is any other way to derive the keyword other than brute-force, from e.g. the Morse code.


Options are  (A) equals 1 (B) does not exist (C) equals $\frac{1}{\sqrt{\pi}}$ (D) 0. I have multiplied each numerator with $\sqrt{n+1}+1$, $\forall n = 1$ to $\infty$ and then got $a_{n}=\frac{n!}{(2+\sqrt{2})(3+\sqrt{3})\ldots((n+1)+\sqrt{n+1})}$. So this must converge to 0 right since the fraction comes as $\frac{n!}{(n+1)!+\mathrm{something}}$ ?

Let $$a_n=\left(1-\dfrac{1}{\sqrt2}\right)\dots \left(1-\dfrac{1}{\sqrt{n+1}}\right),n\ge1$$ Then find $\lim_{n\to \infty} a_n$.   How can I proceed? I am stuck at the first step. Please help.


I'm currently learning PHP and I'm new to OOP. I'm trying to create an object to handle MySQL queries and connections.  This is what I've created so far:  class MySQLDatabase {      private $connection;      function __construct() {         $this->open_connection();     }      public function open_connection() {         $this->connection = mysqli_connect(DB_SERVER, DB_USER, DB_PASS, DB_NAME);         if(mysqli_connect_errno()) {             die(                 "Database connection failed: " . mysqli_connect_error() .                  " (" . mysqli_connect_errno() . ")"             );         }      }      public function close_connection() {         if(isset($this->connection)) {             mysqli_close($this->connection);             unset($this->connection);         }     }      public function query($sql) {         $cleaned_sql = mysqli::real_escape_string($sql);         $result = mysqli_query($this->connection, $cleaned_sql);         $this->confirm_query($result);         return $result;     }      public function mysql_prep($string) {                    $escaped_string = mysqli_real_escape_string($this->connection, $string);         return $escaped_string;     }      private function confirm_query($result) {         if (!$result) {         die("Database query failed.");         }     } }   And on the public-facing side (doing a test to make sure things work as expected):  $sql = "INSERT INTO users (id, username, password, first_name, last_name) "; $sql .= "VALUES (1, 'jbloggs', 'secretpwd', 'Joe', 'Bloggs')"; $result = $database->query($sql);   Currently, I just get the output of: Database query failed.  The issue seems to be something to do with my mysql_prep function, as when I remove that all works fine.   Any advice is greatly welcomed.  Thanks in advance! Alex.

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


I'm currently using Libre Office 5. I was hoping someone here can help me out.

i m using ubuntu 10.10. please tell me how to type in hindi fonts in open office word. please help


I want to show default image describing that image not found  when one of the images in page is not found .  How to do it ?

I have a web page that includes a bunch of images. Sometimes the image isn't available, so a broken image is displayed in the client's browser.  How do I use jQuery to get the set of images, filter it to broken images then replace the src?    --I thought it would be easier to do this with jQuery, but it turned out much easier to just use a pure JavaScript solution, that is, the one provided by Prestaul.


Consider the random variable $A$ whose prior belief if $A\sim \mathcal{N}( \mu,\sigma_{\mu})$, where both parameters are known. Suppose that I draw a realization of the random variable $X\sim \mathcal{N}(A,\sigma_x)$, but I observe its realization $x$ if and only if $x \leq k$. The threshold $k$ is also known.  How can I do the bayesian updating for the case in which the realized $x$ is larger than $k$ and hence not observed? My attempt, which I'm not sure if it makes sense:  Consider the standard case, in which I do observe $x$. The posterior probability is:  $$ \begin{align*} \pi (A \mid \ x ) \propto \pi(x\mid A) \pi (A) \end{align*} $$ where $\pi (A)$ is the density of the parameter $A$. Now, if $x$ is realized but not observed ($x>k$), the posterior mean $\hat{A}|\{\text{not observing } x\}$ would be:  $$ \begin{align*} \hat{A}|\{\text{not observing } x\} =  \dfrac{\int_{-\infty}^{+\infty}A \color{blue}{P(X>k)}\pi (A) \, \rm d A}{\int_{-\infty}^{+\infty}\color{blue}{P(X>k)}\pi (A) \, \rm d A}  \end{align*} $$  Does that make sense?

Suppose that a signal or observation $s_1$ is drawn from the normal distribution $\mathcal{N}(\mu,\sigma^2)$, where $\sigma^2$ is known but $\mu$ is not. We want to estimate $\mu$ based on $s_1$.  Suppose further we have a normal prior distribution for $\mu$, which is $\mathcal{N}(\mu_0,\sigma_0^2)$.  In this case it is easy to determine the posterior distribution given $s_1$, which is normal (normal is a conjugate prior), and the posterior mean is also easy to determine as $$E[\mu|s_1]=\frac{\mu_0/\sigma_0^2+s_1/\sigma^2}{1/\sigma_0^2+1/\sigma^2}.$$  Now to my question: But what if we cannot observe $s_1$ directly; instead, we only know whether the realization of $s_1$ is above or below a certain threshold $t\in\mathbb{R}$. That is, instead of observing $s_1$, we only observe $\mathbf{1}\{s_1\ge t\}$ ($\mathbf{1}$ is the indicator function).  Since the "evidence" is now an interval rather than a point realization, how to compute the posterior mean $E[\mu|\mathbf{1}\{s_1\ge t\}]$? Is the posterior distribution even normal? I am at a loss here. Any help or references to help would be greatly appreciated.  Edit: I computed the posterior distribution numerically. See the plot below (where the "signal" indicates the realization is above a threshold). The posterior density is clearly not symmetric, hence not normal. So the question remains: Is there a closed form expression for the posterior density, or a somewhat simple expression for the posterior mean?


I have the following question:let $f(z)$ be continuous on the closed unit disk, $\{z: |z|\leq 1\}$, and analytic on the open unit disk, $\{z: |z|<1 \}$, with $f(e^{it})=0$ for $0\leq t \leq \pi/4$. Prove that $f(z)=0$ on the open unit disk.  I try to apply maximum modules principle but I couldnt get the result. Any help would be great.

Suppose that $f:\mathbb{C}\rightarrow\mathbb{C}$ is analytic on the open unit disc and continuous on the closed unit disc. Assume that $f(z)=0$ on an arc of the circle $\{z\in\mathbb{C}:|z|=1\}$. Show that $f(z)=0$.


I want to know how to type the middle symbol below. I tried detexify but it didn't get what I wanted.

Browsing through a copy of Counterexamples in Analysis (Gelbaum  & Olmsted), I'm quite enjoying the typeface used for 'script' letters (see links to examples below); visually it's somewhere between what I'd now call calligraphic and fraktur, and semantically it's used where now we'd use mathcal, mathfrak or mathbb.  I was therefore procrastinatiously looking for a LaTeX-usable font to include these characters, but couldn't seem to find any. I'm certain they're not unique to this text or publisher, so figured my lack of success was probably more to do with searching with the wrong keywords. If anyone has any ideas I'd be grateful.


I am wondering if it is possible to add a new property as an extension property to the string class. What I'm looking for is something like this  string.Empty   I would like to make an extension, ex:  string.DisplayNone;   Can I add extension properties to the string C# class that I can call in a similar manner like when I do string.Empty?

I'm a fan of extension methods in C#, but haven't had any success adding an extension method to a static class, such as Console.  For example, if I want to add an extension to Console, called 'WriteBlueLine', so that I can go:  Console.WriteBlueLine("This text is blue");   I tried this by adding a local, public static method, with Console as a 'this' parameter... but no dice!      public static class Helpers {     public static void WriteBlueLine(this Console c, string text)     {         Console.ForegroundColor = ConsoleColor.Blue;         Console.WriteLine(text);         Console.ResetColor();     } }   This didn't add a 'WriteBlueLine' method to Console... am I doing it wrong? Or asking for the impossible?


My three friends and I are very interested in playing Table-top rpg's but we're having some trouble getting started. We're looking for a pretty beginner friendly game that doesn't require an experienced GM to have a good time. None of us have ever played a table-top but I've listened to a few play sessions of various games. I'll probably be the GM but it all seems daunting.   So what we're looking for is...   Beginner Friendly Able to play and have fun with no experience GM Not too rule heavy? (Easy to teach and learn) Not too heavy on the budget (we're all college students)

I've always wanted to play Dungeons and Dragons, but where I live it's more of an underground thing, so it was difficult to find other players. After recently moving to a new school, I made a few nerdy friends who didn't know D&D, so I've shown them some stuff. Some of them loved the idea, while others were a bit more apprehensive, since we're basically a group of gamers.   So we're planning to get together and play a bit and experiment. I've been reading the books for a while and told them to read the first chapters to get the basic idea. The thing is, although the game (4 ed.) has everything to please everyone, it has a lot of (somewhat unnecessary) rules. So I was wondering if anyone could point me in the direction of a fantasy RPG that has great storytelling potential and also the tactical combat possibilities of 4e.   Requirements summary:   Good for a group of entirely new gamers (no experienced GM) Still has tactical combat "like 4e" but much more rules light Supports storytelling, not tactical only


I left a beef roast in a crock pot covered - 10 hours -forgot to plug it in. Meat was still cool to touch. Home kept at 72 degrees. Safe to cook and eat or throw it out?

If I left food out of the refrigerator for some period of time, is it still safe? If I left it out too long, can I salvage it by cooking it more?


I recently googled why is cathode labelled with k  and here is the result   takes you to a question on electronics, which is essentially identical to the question I googled. It has two answers, the accepted one has 15 upvotes, the other has 4 downvotes. The featured snippet shown in the screenshot is from the downvoted answer. As you can imagine, the problem is not unique to Stack Exchange. Try c is char always signed for another example. I wonder what, if anything, can be done to prevent search engines from quoting misinformation from within a page, whether that be from a bad answer or from comments?

I googled .  Like (almost) always, SE was first.  However, they actually answered my question in a fancy box!    I read it, and clicked the link because I needed to know how many upvotes the answer got. It got 2 upvotes and is near the bottom, since there are many answers to this question.  The top (selected) answer has 317, and is also the description being pulled for the second top listing, as shown above.  Here is the question:   I would think this should be fixed, but maybe it is intentional, as the shown answer DOES agree with the top answer, and is short enough to fit properly.


How would I underline an equation with a curly brace and an explanation?, like I've pictured below?   I've tried to use the amsmath package, but the \underline directive does not produce the brace and creates ugly space between the A, B and =.

I am looking to do something of the following:    To get text underneath the underbrace. Is it involving \stackrel or some sort of similar command?


Prove or disprove that $$ \{x: 2x^2\cos(1/x) \le 1\} \cup \{0\}\  \text{is complete}.  $$  Define $$f(x)=\begin{cases} 2x^2\cos\left(\frac{1}{x}\right), & x\neq 0\\ 0, &  x=0  \end{cases}$$ Clearly, $f$ is continuous and $T=f^{-1}\big((-\infty,1]\big)$ which is closed and hence $T$ is complete.   Am I right?

$S=\{x\in\mathbb{R}: 2x^2\cos{1\over x}=1\}$  $T=\{x\in\mathbb{R}:2x^2\cos{1\over x}\le 1\}\cup\{0\}$  I need to tell whether they are complete metric space under usual metric. As they  are closed subsets of complete metric space $\mathbb{R}$, so they are complete. Am I right?  Edit: $S=f^{-1}\{1\},T=\{0\}\cup f^{-1}(-\infty,1]$  $f$ is continuous.


I recently downloaded Texmaker to my Mac running OS Lion. It works good apart from that i can't see my dots and commas in the tex editor. I've tried changing the font size but the problem persists. Has anyone had similar problems and are there any known solutions ?

I am getting the following strange and somewhat annoying behavior in TexMaker for OS X 10.9:    It happens any time a period immediately follows a curly brace.  Why?  Is there any way to fix this...?  Thanks for any tips!


I have a class called Tile which represents a tile in a game.  In my main screen, I have a loop that draws the tiles on the user's screen.  I want to turn each of these tiles into their own objects.  I need to store the data for each tile(coordinates, etc) in an array so that I can access them later.  I also need to store this array in a class property so I can access them in any method of the main screen class.  My code throws an exception on the line boardTiles[totalTiles] = new Tile(...);  I assume it's because I am improperly assigning the objects to the array somehow.  How do I fix this?  The main screen java code:  public class MyGame extends JPanel {      public Tile[] boardTiles;      private void drawHexGridLoop(Graphics g, Point origin, int size, int radius, int padding) {         double ang30 = Math.toRadians(30);         double xOff = Math.cos(ang30) * (radius + padding);         double yOff = Math.sin(ang30) * (radius + padding);         int half = size / 2;          int[] diceSpaces = {2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12};         diceSpaces = shuffleInts(diceSpaces);          String[] resourcesDefault = new String[]{              "Lumber", "Lumber", "Lumber", "Lumber",             "Whool", "Whool", "Whool", "Whool",             "Stone", "Stone", "Stone",             "Wheat", "Wheat", "Wheat", "Wheat",             "Brick", "Brick", "Brick",             "Wasteland"};          String[] resources = shuffleStrs(resourcesDefault);          int totalTiles = 0;         for (int row = 0; row < size; row++) {             int cols;             cols = size - java.lang.Math.abs(row - half);             for (int col = 0; col < cols; col++) {                                 int xLbl = row < half ? col - row : col - half;                 int yLbl = row - half;                 int x = (int) (origin.x + xOff * (col * 2 + 1 - cols));                 int y = (int) (origin.y + yOff * (row - half) * 3);                 String resource;                 resource = resources[totalTiles];                 int assignedDice;                 if(resource.equals("Wasteland")){                     assignedDice = 0;                 } else {                     assignedDice = diceSpaces[totalTiles];                 }                 drawHex(g, x, y, radius, resource, assignedDice);                 boardTiles[totalTiles] = new Tile(totalTiles, xLbl, yLbl, resource, diceSpaces[totalTiles]);                   totalTiles++;             }         }     } }   Tile.java:  import java.awt.*; import javax.swing.*; public class Tile {      public int xCoord;     public int yCoord;     public int xPoly;     public int yPoly;     public String resource;     public int diceNumber;     //Starts in top left, goes clockwise.  Indicates what occupies a corner(settlement or city and player that owns it.     public String Corner1;     public String Corner2;     public String Corner3;     public String Corner4;     public String Corner5;     public String Corner6;     //Starts on top, goes clockwise.  Indicates if a player's road occupies a certain side of the tile.     public String Side1;     public String Side2;     public String Side3;     public String Side4;     public String Side5;     public String Side6;     public boolean hasRobber;     private PolygonObject hexagon;      Tile(int ID, int posX, int posY, String resource, int diceNumber){           this.diceNumber = diceNumber;        this.resource = resource;      } }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I have a lwc component that used apex controller on account page when the account updated, my component is not refreshing with latest data updated on account. Is there any listener available in lwc?  handleUpdate() something like?  Code:   import { LightningElement, api, wire, track } from "lwc"; import { refreshApex } from '@salesforce/apex'; import getAccount from "@salesforce/apex/AccountHealthCheckController.getAccount"; refreshApex(this.account); //ERROR refreshApex(getAccount); //ERROR export default class AccountHealthChecklwc extends LightningElement {  @api recordId;   @track account;   @track error; @wire(getAccount, { accountId: "$recordId" })   wiredGetAccount({ error, data }) {     if (data) {       this.error = undefined;       this.validationMessages( data );       console.log(this.summary);     } else if (error) {       this.error = error;       this.account = undefined;     }   }   validationMessages( value ) {   this.account = value;    //LOGIC } }

Okay, i'm looking to see if I can get some help in understanding the documentation as laid out here:   I want to refresh a component after a record CRUD operation, the form is being populated from a call to an apex method. The data from this method (called with the @wire service) is then passed into a js function that splits the data into complete and incomplete todo items. Wire service call is:     @wire(getTodos, {     searchKey: '$searchString'   })   sendForSplitting({     error,     data   }) {     if (error) {       this.error = error;     } else if (data) {       this.splitTodos(data);     }   }   In an event handler i want to trigger an update to this dataset, the documentation above seems to reference that I can refresh the apex on a wired method. From that doc:      To refresh a wired method, you must pass the argument the wired method receives (which is the wired value).   To date, I have tried both:     handleCreate() {     return refreshApex(getTodos, {       searchKey: '$searchString'     });   }   and    handleCreate() {     return refreshApex(this.sendForSplitting({       error,       data     }));   }   Both of which throw errors - refresh failed because configuration is not available. How can I make this work? I want to ensure the lists update upon user interaction without having to resort to a manual refresh of the page...


I have the following class:  public class BookProcessor {      private Map<String, Double> bookToValueRecord = new HashMap<>();     private Map<String, Integer> bookToCountRecord = new HashMap<>();     private int counter = 0;      public void processBook(Book book) {         counter++;         recordBook(book);         if (counter % 5 == 0) {             printSomeReport();         } if (counter % 10 == 0) {             printAnotherReport();         }     }      private void printAnotherReport() {        //just print something     }       private void printSomeReport() {         //print something else here     }      private void recordBook(Book book) {         bookToValueRecord.put(book.getTitle(), book.getValue());         bookToCountRecord.put(book.getTitle(), bookToCountRecord.getOrDefault(book.getProduct(), 0)+book.getCount());     } }   My idea was to create a Test class BookProcessorTest with field BookProcessor testee; I dont know if I need to mock it or not? One of my tests will be shouldProcessBook(). In this test I will create a sample Book object, then I will call testee.processBook(myBookObject), but then what should I assert or verify? Should I check if this record has been saved into bookToValueRecord? If yes, how, given that this is a private field? Also, how to test that after saving 5 books into my Map, I am printing some report? Should I test that printSomeReport() has been called? If yes, how, given that printSomeReport is private method?

How do I unit test (using xUnit) a class that has internal private methods, fields or nested classes? Or a function that is made private by having  (static in C/C++) or is in a private () namespace?  It seems bad to change the access modifier for a method or function just to be able to run a test.


i have a problem with syntax in the align environment:  \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{pgfplots} \begin{document} \begin{alignat*}{4} P'_1(t)&=-\lambda P_1(t)+\lambda P_0(t)\\ \Leftrightarrow &&\qquad  P'_1(t)+\lambda P_1(t)&=\lambda e^{-\lambda t} && (2.6)\\ \Leftrightarrow &&  e^{\lambda t}P'_1(t)+\lambda e^{\lambda t}P_1(t)&=\lambda e^{\lambda t} e^{-\lambda t}=\lambda \\ \Leftrightarrow && \frac{d}{dt}(e^{\lambda t}P_1(t))&=e^{\lambda t}P'_1(t)+\lambda e^{\lambda t}P_1(t)=\lambda\\ \end{alignat*} \end{document}   I just want to have the first line exactly above the equation in the second line but the && commands are pulling the first line to the left. Is there any easy possibility to fix this?  Thank you

Take a look at this here:  \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} \begin{align*} \Leftrightarrow \qquad P'_1(t)+\lambda P_1(t)&=\lambda e^{-\lambda t} && (2.6)\\ \Leftrightarrow \qquad e^{\lambda t}P'_1(t)+\lambda e^{\lambda t}P_1(t)&=\lambda e^{\lambda t} e^{-\lambda t}=\lambda \\ \end{align*} \end{document}   Is it possible to have the equivalences below each other like the equations are?  \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} \begin{alignat*}{4} P'_1(t)&=-\lambda P_1(t)+\lambda P_0(t)\\ \Leftrightarrow &&\qquad  P'_1(t)+\lambda P_1(t)&=\lambda e^{-\lambda t} && (2.6)\\ \Leftrightarrow &&  e^{\lambda t}P'_1(t)+\lambda e^{\lambda t}P_1(t)&=\lambda e^{\lambda t} e^{-\lambda t}=\lambda \\ \end{alignat*} \end{document}   This almost works but i have the mention problem that the first line is pulled to the very left.


What importance does the minimum of an identical and independently distributed random variables play in probability distribution?

$X_1$, $X_2$, $X_3$ are independent random variables, each with an exponential distribution, but with means of $2.0, 5.0, 10.0$ respectively. Let $Y$= the smallest or minimum value of these three random variables. Derive and identify the distribution of $Y$. (The distribution function may be useful).    How do I solve this question? Do I plug in each mean to the exponential distribution? I would appreciate it if someone could explain this to me, thanks.


As the title says,     Find all positive integers $n$ for which $(n-1)!+1$ is a power of $n$.   The solutions I've found are $\{2,3,5\}$ (thanks Brandon!), but I'm having difficulties proving that these are the only ones. What I've got so far is that $n$ must be prime since $(n-1)!+1$ would not be congruent to $n$ if $n$ were composite.

How to find all positive integers $n$ such that $(n-1)!+1$ can be written as $n^k$ for some positive integer $k$?


Disclaimer  Please, if you don't like self-answers just avoid this thread. (For more details see: )  Context  Given a measure space $\Omega$ with sigma-finite measure $\lambda$.  Consider a finite measure $\kappa<\infty$.  Then there exists a decomposition: $$\kappa=\kappa_{ac}+\kappa_s\quad(\kappa_{ac}\ll\lambda,\kappa_s\perp\lambda)$$  Moreover the singular measure splits into: $$\kappa_s=\kappa_{sc}+\kappa_{pp}$$  Question  Is the last decomposition w.r.t. singletons or w.r.t. atoms? (See the wikipedia articles  and .)  Moreover, can it make a really important difference? (I guess so but cannot imagine what...)  Remark  The absolutely continuous measures are characterized precisely by the measurable functions: $$\kappa_{ac}(E)=\int_Ehd\lambda\quad(h\geq0)$$

Let $\Omega$ be a measure space with measure $\mu$. (Here, a measure is only meant to be countable additive!)  Consider a subset $A\in\Sigma$.  Then according to the  it is an atom if: $$(1)\quad\forall E\subseteq A:\quad\mu(E)<\mu(A)\implies\mu(E)=0\quad(\mu(A)>0)$$ and according to the  it is an atom if: $$(2)\quad\forall E\in\Sigma:\quad\mu(E\cap A)=0\lor\mu(E^c\cap A)=0\quad(\mu(A)>0)$$  Now, these definitions agree for the really trivial cases: $$\mu\equiv0$$ $$\mu\equiv\infty$$ but they differ for the less trivial case: $$\quad\mu(E\neq\varnothing):=\infty,\,\mu(\varnothing):=0$$ namely the atoms are w.r.t. (1) all nonempty subsets whereas w.r.t. (2) only the singletons.  Excluding this pathological case, are the definitions equivalent? (More precisely, assume there exists a measurable subset $0<\mu(F)<\infty$.)  So far I checked that: $$(2)\implies(1):\quad\mu(E)<\mu(A)\implies\mu(A\setminus E)>0\implies\mu(E)=0$$ but what about the other direction?


I'm running 100' away from 150A main Service panel to 100A sub panel, my question is: what wire gage shoul I use? Thanks

I am adding an attached garage to my house.  I'm going to be putting in a 100 Amp subpanel which is about 60 feet away and run through the basement joists.    What gauge wire do you recommend for either aluminum and copper?  Also, do you recommend one or the other?


I want to install Ubuntu onto my sandisk usb stick NOT onto my hard drive win 10. There isn't enough room (with all my other stuff) and I don't want to overwrite (as bad as win 10 is). Plus I want the luxury of mobility - tablet to pc and vice versa and even external!!!

If you are hurrying to reply, System → Administration → StartUp Disk Creator -- no, that's not what I'm talking about.   I want to try Ubuntu 11.04's Unity without touching my existing Ubuntu install.  To do this, I need to install the nVidia drivers first (sigh).  To do this, I need changes to persist a reboot.  To do this, I need to really install Ubuntu on a USB key.  How do you do that?    What I tried   I tried to make a USB key from , then boot from it, then choose "Install Ubuntu." The installer refused to install to the installation media itself. I tried, from my installed copy of Ubuntu:  sudo kvm /dev/sdb --cdrom .cache/testdrive/iso/ubuntu_natty-desktop-i386.iso   ...but the installer didn't detect the disk properly.


I'm writing an article about Conway's Game of Life, and I'm using the Springer LNCS template.  In my article, I must sometimes show some game of life patterns, for example the following:    To generate such pattern, I used the Tikz package. The code (without other formatting commands) is the following:  \begin{tikzpicture}   \fill[black] (1,4) rectangle (3,6);   \fill[black] (11,3) rectangle (12,6);   \fill[black] (12,2) rectangle (13,3);   \fill[black] (12,6) rectangle (13,7);   \fill[black] (13,1) rectangle (15,2);   \fill[black] (13,7) rectangle (15,8);   \fill[black] (15,4) rectangle (16,5);   \fill[black] (16,2) rectangle (17,3);   \fill[black] (16,6) rectangle (17,7);   \fill[black] (17,3) rectangle (18,6);   \fill[black] (18,4) rectangle (19,5);   \fill[black] (21,5) rectangle (23,8);   \fill[black] (23,4) rectangle (24,5);   \fill[black] (23,8) rectangle (24,9);   \fill[black] (25,3) rectangle (26,5);   \fill[black] (25,8) rectangle (26,10);   \fill[black] (35,6) rectangle (37,8);   \draw[step=1cm,gray,thick] (0,0) grid (38,11); \end{tikzpicture}   As you can see, this is pretty bad, expecially as I must now produce dozen of such patterns, and manually specifying the coordinates of every black cells is... well, not viable.  The question is: is there a way to achieve the same result as above, but using (for example) a matrix-style input?  What I mean is something like:  \sort-of-matrix-command {     W & W & W & W & W & B \\     W & B & W & W & W & W \\     B & W & B & B & W & W \\     W & W & B & B & B & W \\     B & B & W & W & W & W \\     W & W & W & W & W & W \\ }   where "W" or "B" stand for white cell and black cell respectively.  If it is not possible, any other way which is faster than the one I'm currently using is well accepted.  Thank you in advance!

Can you create images like this:    when you have something like  0 = green (#54ff00) 1 = white (#ffffff) 2 = red   (#ff0000) 3 = blue  (#0048ff)  Image (Python list of integers defined above): [[2,0,0,0,0,0,0],  [0,3,0,0,0,0,0],  [0,3,2,1,1,0,0],  [0,3,2,2,2,1,1],  [0,3,2,0,0,1,0],  [0,0,0,0,0,1,0],  [0,0,0,0,0,1,0]]   with TikZ?  How far I got  The following MWE defines all colors, produces a grid of the correct size (though the size is determined by hand):  \documentclass[varwidth=true, border=2pt]{standalone} \usepackage{tikz} \usepackage{xcolor}  \begin{document}     \newcommand\n{7}     \definecolor{green}{HTML}{54FF00}     \definecolor{wite}{HTML}{FFFFFF}     \definecolor{red}{HTML}{FF0000}     \definecolor{blue}{HTML}{0048FF}     \begin{tikzpicture}         \foreach \x in {1,...,\n}{             \foreach \y in {1,...,\n}{                 \begin{scope}[shift={(\x,\y)}]                   \draw [fill=green] (0,0) rectangle (1,1);                 \end{scope}             }         }     \end{tikzpicture} \end{document}   Of course, I could simpy make a lot of adjusted                   \begin{scope}[shift={(\x,\y)}]                   \draw [fill=green] (0,0) rectangle (1,1);                 \end{scope}   but I've wondered if this can (with reasonable effort) be done in TikZ / LaTeX.  My problem is giving TikZ the color array. I don't have any idea how to do this. I only know two types of looks in TikZ:  \foreach \x in {0,1,2,3,4,5}{...} \foreach \number in {1,...,\n}{...}   I have never seen a nested over a 2D-array. All I have seen so far were 1D-Arrays of tuples (with fixed tuple size).


The power adapter of the piano should be AC/DC 21V, 1.5A.  But I can't find in a short time to buy something exactly like that, but I found this options:   20V, 3A or  24V, 3A   Can I use one of this to power the piano or it's not ok?

Power supplies are available in a wide range of voltage and current ratings.  If I have a device that has specific voltage and current ratings, how do those relate to the power ratings I need to specify?  What if I don't know the device's specs, but am replacing a previous power supply with particular ratings?  Is it OK to go lower voltage, or should it always be higher?  What about current?  I don't want a 10 A supply to damage my 1 A device.


I  tried it to relate with  concept of maxima and minima but not able to  get the idea behind this method

Definition of centre of conics states that, "The point which bisects every chord of the conic passing through it is called centre of the conic"  General equation of second degree is $S:ax^2+2hxy+by^2+2gx+2fy+c=0$ If we partially differentiate $S$ with respect to $x$ and $y$, and then set both partial derivatives to $0$  . Solving two equations give centre of conics. Could someone explain simple logic behind this approach i.e. why we get centre using above methodology?


im using htlatex to transcript a latex file to html for a web application. It seems to work fine with most of my equations, but as soon as I use \frac or \dfrac the images of the equations become very blurry.  Somehow I also had to stop using the equation environment in favor of $ $.   Im not sure if a minimum example would help?  \documentclass[12pt,a4paper]{article}   \usepackage{amsmath} \usepackage{booktabs} \usepackage{amsthm} \usepackage[english]{babel} \begin{document} $F_i=\left(\dfrac{L_i}{Y_i}\right)^\alpha $ \end{document}   After using "htlatex file.tex" the output is realy blurry

Is there any tool that can convert Latex documents to HTML documents, so that all math is presented with ?  (Obviously, it is fairly easy to hack together a quick Perl script that is able to do a crude conversion, but I am interested in a bit more robust solutions — at least it should get all cross-references right automatically.)


Has anyone been like this? 2021-06-24 15:40:05.259 28697-32228/com.telkom.wifiidgo E/OneSignal: Unknown error getting FCM Token java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.android.gms.tasks.Task com.google.firebase.messaging.FirebaseMessaging.getToken()' on a null object reference

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


In original dota it was not possible. Is it possible to use poof on all meepos with a single command now? I've tried ctrl-W with unified attack order ON but it doesn't work. (or maybe it was considered as OP)

Is there a way for me to bind a key that will allow multiple units in my control group to all use the same spell at once?  For example, if I have 3 centaurs as chen, and I have them all selected. Can I press one key to make them all warstomp at the same time?   Or if I have 3 familiars as Visage. When I have all three selected, is there a button I can press to have them all stun at the same time?


I booked an apartment in Barcelona for the 19th March, but obviously I’ll be unable to attend due to the coronavirus.   I have paid for the apartment up front, in full.   I messaged the apartment owner on booking.com regarding a potential refund.  I got a message back saying I’d have to request to cancel the booking for free and then go from there?   Why would I have to do this? I’ve paid up front, so why is there a cancellation fee?  Also, is there any chance of me getting a refund?

We are non-EU citizens and are banned to travel to Europe during this time. We had made non-refundable reservation of Ibis Styles Paris Meteor Avenue d'Italie via booking.com.  However we're not allowed to make a refund due to the Coronavirus situation and Schengen border closures.  The reschedule of booking are offered until December 31, 2020. A free cancellation is preferred as we are not sure on our travel plan.  Under the FC conditions apply for the above booking? Should we get a full refund from booking.com?


I'm using Trello as a GTD (getting things done) system and made a dashboard containing few list : Today, Next actions, Later ...  I'm used to tracks, a gtd web application which allowed me to make a card disappear until its due date. So when the due date comes, the card re-pop on my dashboard. I was using this a lot for reminders for project review, or check for people replies.  I can't find this option in Trello so I have a lot of cards in my later list and it is difficult to prioritize them. I saw the function allowing me to filter on due date but yet, this is not so handy.  Do you know if this feature is available or if is there a way to answer this need?

Probably not with Trello, but maybe with some integration.  What I need is a solution for archiving cards because I'm not going to work with them now, but later they would come back, so I would remember doing what should be done.  Something in the lines of some email "follow up" services out there that help you remind things and at the same time keep your inbox clean.


I have the following 2 objects  List<string> list1 List<string> list2   On list 1 I have 3 items On list 2 I have the same 3 items in a different order.  I need a simple method to return that both lists are equal when they contain the same elements regardless of order

I would like to compare two collections (in C#), but I'm not sure of the best way to implement this efficiently.  I've read the other thread about , but it's not exactly what I'm looking for.  In my case, two collections would be equal if they both contain the same items (no matter the order).  Example:  collection1 = {1, 2, 3, 4}; collection2 = {2, 4, 1, 3};  collection1 == collection2; // true   What I usually do is to loop through each item of one collection and see if it exists in the other collection, then loop through each item of the other collection and see if it exists in the first collection. (I start by comparing the lengths).  if (collection1.Count != collection2.Count)     return false; // the collections are not equal  foreach (Item item in collection1) {     if (!collection2.Contains(item))         return false; // the collections are not equal }  foreach (Item item in collection2) {     if (!collection1.Contains(item))         return false; // the collections are not equal }  return true; // the collections are equal   However, this is not entirely correct, and it's probably not the most efficient way to do compare two collections for equality.  An example I can think of that would be wrong is:  collection1 = {1, 2, 3, 3, 4} collection2 = {1, 2, 2, 3, 4}   Which would be equal with my implementation. Should I just count the number of times each item is found and make sure the counts are equal in both collections?    The examples are in some sort of C# (let's call it pseudo-C#), but give your answer in whatever language you wish, it does not matter.  Note: I used integers in the examples for simplicity, but I want to be able to use reference-type objects too (they do not behave correctly as keys because only the reference of the object is compared, not the content).


I have discovered that I am related to someone specific who lived in 1066.  How likely is this? In other words, the answer could be “No big deal. When you go back that many generations,the math shows that you are X percent likely to be related to anyone, where X is large - say 50-90% - because you have so many ancestors and the population then was so small.” Or the answer could be “WOW, that’s significant. Because the likelihood of that is small, where X is low.” So maybe the general question is “What is the likelihood that Person A, living now, is related to Person B, living in 1066?” And to specify even more narrowly, let’s constrain to the European/ Scandinavian/ Finnish populations that existed then.

I was thinking about something the other day (that is probably stupid), and thought this would be a good place to talk about it.  If someone wanted to draw its family tree over the last 1000 years, he'd write a binary tree with a depth of about 40 (counting 25 years on average between each generations). This tree would have 240 leaves, or about 1012 ancestors on the deeper level. That is obviously much more than the total world population and a stupid figure when you think about it.  The only explanation that I can think of is that a real genealogy tree must have "linked" branches at several levels that change the actual number of ancestors. Anyway, for an average person, how many ancestors would that make? Could one assume that all or nearly all of the persons that lived in its country or world region a 1000 years ago would be part of its ancestors?


Which of these sentences is correct?     You mentioned having been in a hospital last year.      You mentioned being in a hospital last year.

A few days back, I asked a question - why in reported speech is the present perfect tense sometimes not back shifted to the past perfect tense ? For example:     He said that he has painted the door.   Someone said - "if the situation is still relevant and the results of it can be seen, heard or felt then the present perfect tenses are not back shifted to past perfect tenses." And this was all about indirect speech, and I totally agree with what was said.  Now let's take a case which is not indirect speech. For example:     1) He noticed that he has finished painting the house.   My question is, is this sentence correct under the condition that finishing the painting has some present relevance ?     2) The president learned that the earthquake has caused havoc across   the country.   My question is, is this sentence correct under the condition that the earthquake has recently come and the effects of it can still be seen ?     3) I realized that he has left his wallet.      4) It was unclear that she has painted the door.   Are these 4 sentences correct or do I need to use 'had' in place of 'has' ?


I've installed latex with sudo apt install texlive-full and sudo apt-get install texlive-lang-arabic . I'm using Texmaker. But I can't run the script below: \documentclass[12pt,a4paper,oneside]{report}  \usepackage{hyperref}  \usepackage{xepersian} \settextfont{Titr} \setlatintextfont{Lato Thin}    \begin{document} \textbf{سلام لاتک! }  این یک نوشته‌ی آزمایشی است  \end{document}  the errors occurred : ! Package fontspec Error: The font "Titr" cannot be found. ! Font TU/Titr(0)/m/n/12=Titr/OT at 12.0pt not loadable: Metric (TFM) file or i

I want to write some Persian text in Texstudio. Which package should I use? I've heard about xepersian but I don't know how to use it. Any help would be appreciated.  \documentclass{article}  \usepackage{xepersian}  \settextfont{XB Roya}  \begin{document}  سلام!  \end{document}


The  was deleted last night by the Community user.    Normally, I wouldn't see an issue with this, but for this particular deletion, I can see three issues:   We try not to delete good content There are multiple upvoted answers We often use previous answers on Meta (as well as badly asked questions) to form the precedent (and to use as duplicates) when users ask questions like this in the future   On a personal note, I find it easier to link to one of my previous answers whenever possible.  This seems like a bug with the deletion algorithm, , the deletion algorithm should never delete questions with upvoted answers.  I'm going to go ahead and undelete it, but I'm bringing this up in case there was either:    A policy change A bug   So is it either of the above or something else?

As I found out earlier today, users who are deleted . This goes against established conventions, for two reasons:  As moderators, we constantly tell users that we won't unilaterally delete questions that have upvoted answers.  Even our . See also .   This 'delete my user' process allows a user to get around this policy by simply deleting their own account. Since nothing stops them from creating another account, it's quite possible this harms our mission of keeping good content around. Also, it allows users to delete their own questions whose answers have received bounties, which can take away the bounty award; this behavior was recently prevented for normal question self-deletions. I propose that we make changes to the user deletion algorithm:  If a user is deleted and they have questions with upvoted answers, those questions are disassociated from the user's account instead of being summarily deleted. Questions without upvoted answers are treated like they are currently: they are deleted when the user is deleted.  This should be the same for destroyed users as well.


Let $n$ be a positive integer, and define $f(n)$ as $n +\lfloor\sqrt{n}\rfloor$, where $\lfloor x\rfloor$ is the greatest positive integer less than or equal to $x$.  Prove that the sequence $n, f(n), f(f(n)), f(f(f(n))), \ldots$ contains a perfect square.

Let $m$ be a natural number. Define $f(m) = m + \lfloor\sqrt{m}\rfloor$. Prove that at least one of the number among $m, f(m), f^2(m), \ldots$ is a perfect square. Here $f^k(m)$ denotes the composition of $f$ over itself $k$ times.  I tried the question, but the greatest integer along with square root is creating trouble.


I know the title sounds a bit ridiculous, but that's actually what I'm asking. The sentence in question is as follows:     "Well, of course robots don't deserve rights, they're not even living things!", may be a common response to the problem dealing with future robotic ethics.   I don't know if I'm correct in using it like that, but I would like some feedback on if this is right, and if not, what should I do?  By the way, I'm using MLA format and I couldn't find anything useful on the internet about this situation. Honestly, I don't know what to call this type of quote so I had a hard time looking it up in the first place.

I've seen and used quotations that I'm not sure is correct. If it is correct, I'd like to know what it is called. If it is incorrect, I'd like to know how to punctuate it correctly. Here is an example of this usage in a hypothetical text conversation.     Mary: I cleaned him out.      Joe: Wait, do you mean, "I won all of his money, so now he has none"?   To add some clarity, I believe the second example below also illustrates the same usage of quotes.     Bob: I think I heard him say, "I like you".     Bob hearing "I like you" is purely hypothetical. It's possible that Bob misheard "I despise you" for "I like you".  Is it correct to use the hypothetical content within quotes? If not, how should it be punctuated?   Update  Every definition of quotation or quote, and every rule I've read regarding their usage mentions an origin or source of text or speech. To me, this implies that there must be an original source in order for something to be considered a quote. However, in the cases above there is no original source as the whole quotation¹ is made up.  Is there an authoritative definition of quotation that includes a hypothetical or entirely paraphrased quote¹? Or if no such definition can be found, is there an example of this type of quote¹ in an authoritative work?  ¹The usage of quote or quotation here may be incorrect in accordance with the outcome of this question.


While going through the  original STL(Standard Template Library) source code, I encountered the following from the memory allocator function file:   template <class T1, class T2> inline void construct(T1* p, const T2& value) {     new (p) T1(value); }   I am not able to understand it completely and have the following question/doubts:   It appears to me that it has something to do with copy constructor of type T1? Why the above function is template on two type T1 & T2?. It should have been T1* for first and *T1 for second(value). why new has been used in the above logic?. I looked the uses of it and found the following in file     void push_back(const T& x) {   if (finish != end_of_storage) {       construct(finish, x);         ....         ....     }    So based on above, finish has already acquired the memory and been passed into it. The other parameter is x which is value of same type T. These are the few concepts which I am able to think/understand.  It appears to me very general yet important function which has been used throughout STL logic. Could somebody can explain it the above concept?

Has anyone here ever used C++'s "placement new"? If so, what for? It looks to me like it would only be useful on memory-mapped hardware.


Should a player make a roll for things like:   He is travelling and wants to play a flute Wanting to carve a goblin's teeth as a trophy Wanting to play on a drum that he found  Wanting to split through of a captured enemy   or can they be considered as automatic success?

I've tried to focus my group heavily on Role Playing, perhaps too well given some of my recent problems, which are Orthagonal, and linked mostly to provide historical context.        A lot of the answers to these questions revolve around "have off the rail's multiple angles" and "don't make people roll for information they must have". That seems well understood to me at this juncture, in fact I have been doing just that, and I think it's causing some other problems.  I have only rarely made people roll for anything (combat aside) anymore, unless it's absolutely non critical. I try to get the players to Role Play their investigations and give them information when they look in the right places, and their are multiple right places.  This results in skills, especially social/mental, being completely inessential, and players not gaining important information because they aren't poking around the right area at all, or asking people who aren't interested in talking to them because they're currently a bunch of random Joe's.  The players aren't stuck at this time, I'm just trying to get better and not have functionally dead scenes, that don't rely on the players to play "what is the GM thinking" nor do I want to just give them every answer.  The reality is, I'm not sure when to make them roll to find things out. what criteria? or other advice, can I use to decide that the players are better off making a Roll to move forward than to purely use Role Playing?  update This question focuses on the Social and to a lesser degree Mental aspects, as it's usually pretty easy to tell when a Physical Roll is needed, even out of combat. It's harder to tell when to make people roll for things they can talk their way through.  I'm playing World of Darkness 2nd Edition, but answers not specific to that are welcome.


When an LED is burned out, specifically which part is burned out? Is it the semiconductor or the wires? Can we use a burned out LED to generate electricity?

Let us suppose we have an LED with the allowed voltage range of 1.5V to 4.5V and we gave it somewhat 12V. Now we know that the LED will instantly stop forever. But I want to know what will happen to the material (the semiconductor, etc) when this happens.


First: I'm not looking for specific solutions, I'd like this to be a bit more broad to support other peoples similar situations.  I'll keep it short (unless more info is requested). I'm managing a webshop and there's a problem I keep getting, Google Webmasters gives me something along these lines:     3000 duplicate titles   3000 duplicate descriptions   95% of these are my product overviews. Some finctional examples:     example.com/products/watches (page 1)   example.com/products/watches (page 2)   example.com/products/watches (page N) Or example.com/products/bracelets (page 1)   example.com/products/bracelets (page 2)   example.com/products/bracelets (page N) Etc     I have no good solution thusfar to fix this. These pages are dynamic, I might have:     /men,watches,rings,brandname (page 1 - N)   /watches (page 1 - N)   /brandname (page 1 - N) /woman,bracelet,silver (page 1 - N)     As you can see, might be a brand, might be a category, or both. I can't just take a snippet of a brand, because that means every page containing that brand will have duplicate titles again. I cant take some text from the (first) category, because all combinations where that category is first will have, again, the same title.  I'm out of ideas. I have a canonical tag to indicate multiple pages, I have link rel="prev|next" in my head and I can't seem to find any good topics about this.  How can I fix duplicate titles for multiple product overview pages?

I have a category page that leads to an additional 100 pages. For example:  www.example.com/category <- this is my category page   www.example.com/category-2.html <- this is paginated content  My question is, do I need unique meta tags for each and every page, or is there any way that my category page's meta tags can be used by all the numbered pages?


I have several dual processor 3ghz Pentium D Dell 620 systems with at least 2gb of memory.  I want to move them off XP and do not want to go to  Win7.  Am I limited to 13.04 or can I go to a later release.

For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and  such as:    with a lighter desktop than the usual Gnome and Unity  with the even lighter LXDE desktop   Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements?


Going a bit mad here, pulling my hair out. The site on  works on IE and Firefox (only tested those) and doesn't work on Chrome. I've tested this on my computer and a remote server and the same issue occurs.   alpha.draser.co.uk config  server {     listen 37.230.100.89:80;     root /var/www/draser/alpha/public;     index index.php index.html index.htm;     server_name alpha.draser.co.uk;     location / {         try_files $uri $uri/ /index.php$is_args$args;     }     location ~ \.php$ {         fastcgi_split_path_info ^(.+\.php)(/.+)$;         fastcgi_pass unix:/var/run/php5-fpm.sock;         fastcgi_index index.php;         include fastcgi_params;     } }`   draser.co.uk config  server {     listen 37.230.100.89:80;      if ($http_referer ~* (buttons-for-website.com)) { return 444; }      server_name www.draser.co.uk draser.co.uk;     return 301 https://draser.co.uk$request_uri; }  server {     listen 37.230.100.89:443 ssl;      if ($http_referer ~* (buttons-for-website.com)) { return 444; }      root /var/www/draser/live/public;     index index.php index.html index.htm;      server_name www.draser.co.uk draser.co.uk;     ssl_certificate /etc/nginx/certs/draser/draser.crt;     ssl_certificate_key /etc/nginx/certs/draser/draser.key;     ssl_ciphers "ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4";     ssl_protocols TLSv1 TLSv1.1 TLSv1.2;     ssl_prefer_server_ciphers on;     ssl_session_cache shared:SSL:10m;     add_header Strict-Transport-Security "max-age=63072000; includeSubDomains";     add_header X-Frame-Options DENY;     add_header X-Content-Type-Options nosniff;     ssl_stapling on; # Requires nginx >= 1.3.7     ssl_stapling_verify on;      location / {         try_files $uri $uri/ /index.php$is_args$args;     }     location ~ \.php$ {         fastcgi_split_path_info ^(.+\.php)(/.+)$;         fastcgi_pass unix:/var/run/php5-fpm.sock;         fastcgi_index index.php;         include fastcgi_params;     }      location ~ /\.ht {         deny all;     } }   `  Edit: Tested all 3 browsers on both PCs. Tried clearing the Chrome cache to no avail.

I am running Apache 2.2.15 (CentOS 6.6) with a HTTP-only domain   demo.xml-director.info  Using wget I can retrieve the content properly   wget -S http://demo.xml-director.info --2015-01-05 13:31:41--  http://demo.xml-director.info/ Resolving demo.xml-director.info (demo.xml-director.info)... 176.9.146.28 Connecting to demo.xml-director.info (demo.xml-director.info)|176.9.146.28|:80... connected. HTTP request sent, awaiting response...    HTTP/1.1 200 OK   Date: Mon, 05 Jan 2015 12:31:41 GMT   Server: Zope/(2.13.22, python 2.7.6, linux2) ZServer/1.1   Content-Length: 20227   Expires: Sat, 01 Jan 2000 00:00:00 GMT   Content-Type: text/html;charset=utf-8   X-Ua-Compatible: IE=edge,chrome=1   Content-Language: en   Vary: Accept-Encoding   Keep-Alive: timeout=15, max=100   Connection: Keep-Alive Length: 20227 (20K) [text/html] Saving to: 'index.html.4'   However Chrome/Firefox always change the request from http to https because of HTST. However for this particular domain there is no HSTS configured.  The server runs SSL for www.xml-director.info with enabled HSTS support. However there is further alias here that would map demo.xml-director.info to www.xml-director.info.   How can this problem be resolved.  VHOst for www.xml-director.info:  <VirtualHost *:443>     ServerName www.xml-director.info     ServerAlias xml-director.info      SSLEngine on     SSLCertificateFile /etc/httpd/certs/15742445repl_2.crt     SSLCertificateCHainFile /etc/httpd/certs/15742445repl_2.ca-bundle     SSLCertificateKeyFile /etc/httpd/certs/zopyx.com.key      CustomLog /var/log/httpd/xml-director.info.log combined     DocumentRoot /var/www/xml-director/landing-v1      Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains"      <location "/">         Options +Indexes         Header set Access-Control-Allow-Origin "*"         Header set Access-Control-Allow-Methods "GET,PUT,POST,DELETE"     Header set Access-Control-Allow-Headers "X-Requested-With,Content-Type"     </location>  </VirtualHost>  <VirtualHost *:80>     ServerAlias www.xml-director.com      ServerAlias www.xml-director.info     ServerAlias www.xml-director.de     ServerAlias xml-director.com     ServerAlias xml-director.info     ServerAlias xml-director.de      RedirectPermanent / https://xml-director.info/ </VirtualHost>   and for demo.xml-director.info  <VirtualHost *:80>     ServerName  demo.xml-director.info     RewriteEngine On      RewriteRule ^/(.*) http://127.0.0.1:12020/VirtualHostBase/http/demo.xml-director.info:80/xml-director/VirtualHostRoot/$1 [L,P]     RewriteRule ^/$    http://127.0.0.1:12020/VirtualHostBase/http/demo.xml-director.info:80/xml-director/VirtualHostRoot/$1 [L,P]      CustomLog /var/log/httpd/demo.xml-director.info.log combined     AddOutputFilterByType DEFLATE text/html text/xml text/plain text/css text/javascript      CacheRoot /tmp/cache     CacheEnable disk /     CacheIgnoreCacheControl on      KeepAliveTimeout 15     KeepAlive on      ExpiresActive On     ExpiresByType image/gif "access plus 10 day"     ExpiresByType image/jpg "access plus 10 day"     ExpiresByType image/jpeg "access plus 10 day"     ExpiresByType image/png "access plus 10 day"     ExpiresByType text/javascript "access plus 10 day"     ExpiresByType text/html  "access plus 1 hour"     ExpiresByType text/html  "access plus 1 hour"     ExpiresByType text/css  "access plus 10 days"      <Location "/">         Order allow,deny         Allow from all     </Location>  </VirtualHost>


I had a programme on my taskbar and it had an icon.  Sometime later I changed the executable and/or moved it, but now the icon is gone from the taskbar.  The application still runs.  If I unpin it and execute the programme, it does show the correct icon on the taskbar:    But as soon as I pin it, I get this:    So it looks like it's trying to get the icon from a place that doesn't exist.  Ideas as to how to refresh this icon?

Normally, to refresh the icon cache in Windows, we have to reboot.  Is there a way to refresh the icon cache in Windows 7/8 without rebooting?


I do not have a Final Fantasy XIV account but I have Final Fantasy XIV original disc. Do I have to buy A Realm Reborn to play it?

Square Enix seems to be treating them like separate games at times, but also calls them just fixing the old one. I can't find any conclusive evidence on this. What do I need to do to play?  Update:  I try logging into the website to download the client, and it says I need to sign in to the game first. I can't sign in to the game until I have the client installed, but my disks are for the old client. Where do I go from here?


I'm relatively new to Blender and trying to import an architectural render from SketchUp 2017.   I export from SketchUp with Collada, then import, and end up with something like this:    The meshes with problems do have two materials:    Putting the correct material on top helps some. Deleting the secondary material helps some of the time, but not all of the time.  Any ideas what this is? I've heard that importing from Collada can require hours of cleanup, but in this case am not sure where to start.  Thanks!

Any ideas what's causing those chunks of geometric artifacts?  Argh.


I applied for a Schengen visa from the UAE Greek embassy. The visa was refused with the reason reason      information provided regarding justifications for the purpose and conditions of the intended stay was not reliable.   I was trying to understand the reason and I hope the following should be the one.  I applied alone with all documents and the reason I gave is Honeymoon travel. I didn't mention any information about my fiancée's passport as she has Oman residency and she will apply through the Oman embassy.  The documents that I submitted are   visa form Noc from sponsor confirmed travel tickets for me and my fiance. Complete itinerary accomodation confirmations bank statement with sufficient balance and travel insurance   Another reason I think: I am travelling to Europe from India and returning to India. But I provided the round-trip tickets from UAE to India also. Maybe this travel is a bit confusing.  I wanted to reapply. Should I apply again with the same documents, only adding my fiancée's passport detaila and stating she applied separately for a Schengen visa? Or should I book full-flex airline tickets from UAE to Europe and reapply with changed itinerary so it will be simple to understand?  Or I can apply for different embassy with different bookings as I heard reapplying for Greece Embassy is tough to get again?  Or please provide your valuable opinions and advise.

Schengen refusal formulae can be difficult to understand sometimes.  Sometimes an applicant receives a refusal with:       Justification for the purpose and conditions of the intended stay was not reliable.     often accompanied by:       Your intention to leave the territory of the Member States before the expiry of the visa applied for could not be ascertained.   What is meant by this refusal reason?  What are they trying to say?


I have this given circuit:    I can see by the look of it that this is a power rail "choosing" circuit. When VBUS is applied and there is no +5V, then the body diode of Q1 simply conducts.  I am trying to understand what the logic behind this circuit is, when VBUS and +5V are supplied externally at the same time. I think that Q1 is being turned off when +5V is higher than VBUS, but I can't explain it.  I would appreciate some hints, as I cannot really follow the scenario here with the Q2 and Q3 transistors.

The Raspberry Pi B+ models have a protection circuit between the USB connector and the 5V net on the board.  They recommend putting a similar protection circuity on a Pi HAT before 'backpowering' the pi through its GPIO header along with a polyfuse.  I understand why this is the recommendation, but I'd like to understand more about how this circuit works.  I did some searching before posting this question and found information on using a MOSFET as a low voltage drop diode, but they all had the gate wired directly to ground without the pair of PNP's and the resistors.  What are they doing for this circuit?  Also, is this primarily using the body diode?  In which case, what's the relevant info on the datasheet that qualifies DMG2305UX for this application?  In the other circuits I found, it appeared low Rdson and Vgsth compatible with the circuit seemed like the relevant characteristics.


I read in fluid dynamics  that the potential energy stored in the molecule of water due to the attraction by the other molecules is negative. Can energy be negative and what does it mean to have negative energy??

Sorry to ask the long way, but trying to make the question clear so that I can get a clear answer.   Why does it make any physical sense for a body to have negative potential energy?   If a body A is at infinite distance from another body B, it has zero gravitational potential energy, but if it is at "zero" distance from another body B, it has negative infinite potential energy, and acquires infinite kinetic energy in the process of getting there.  Please don't tell me that the zero point of potential energy is arbitrary, and it could just as well have zero potential energy when it is at zero distance from another body B, and positive infinite potential energy when it is at infinite distance from the other body B. How can it have this? When body A is at infinite distance from the other body B, then it is not influenced by the other body B at all, it is as if the other body B does not exist at all, so then the potential energy in body A must be zero, as there is no gravitational field of the other body B to cause any potential energy in body A.  But then the question is if the potential energy contained in the body A is zero at infinite distance from the other body B, then how is it possible for this zero potential energy to be reduced further and get changed to kinetic energy as the body A accelerates towards the other body B, so that the potential energy becomes negative? As I see it, if the body A never had any potential energy to begin with, then this not present energy cannot change into kinetic energy, otherwise we would be creating kinetic energy out of nothing.   Why does it make any physical sense to say that the body is in "potential energy debt", ie the potential energy is reduced to negative when it was zero to begin with?


I noticed that this answer that was hit with a few down votes had a message beneath it which I haven't seen before. I have looked in the help and can't find anything to state where it came from.  Is it something that a moderator can attach to an answer or does it come from somewhere else?

I was reviewing Low Quality Posts today and saw this message. Is this something new?     This post doesn't cite any references or sources. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.


so I have tried to open my ubuntu in virtualbox and it doesn't work (it did earlier today). The thing is that I can open it but it doesn't show me the desktop, it only shows like a big terminal:    Edit: Ok now I remember i was unistalling libstc++6; I have worked on that virtual machine for the whole day but while i was removing libstc it like bugged/freezed (idk if the removing had finished) as I could not log in, the keyboard didnt work. Then I shut it down and started it again and that happened.

Accidentally executed this command and now many of my programs are not working.  sudo apt-get --purge remove libstdc++6   sudo apt now not working and some other stuff.  How do I revert this?  Distributor ID: Ubuntu Description:    Ubuntu 16.04.4 LTS Release:        16.04 Codename:       xenial   edit  I followed melebius by installing via dpkg -i ,libstdc++6 and it seems successful   root@server:~# sudo dpkg -i libstdc++6_5.4.0-6ubuntu1~16.04.10_amd64.deb Selecting previously unselected package libstdc++6:amd64. (Reading database ... 71540 files and directories currently installed.) Preparing to unpack libstdc++6_5.4.0-6ubuntu1~16.04.10_amd64.deb ... Unpacking libstdc++6:amd64 (5.4.0-6ubuntu1~16.04.10) ... Setting up libstdc++6:amd64 (5.4.0-6ubuntu1~16.04.10) ... Processing triggers for libc-bin (2.23-0ubuntu10) ...   But when i tried to install something i get this error  root@server:~# sudo apt-get screen apt-get: error while loading shared libraries: liblz4.so.1: cannot open shared object file: No such file or directory root@server:~#


Sometimes, when using my phone, suddenly my browser (Google Chrome) opens up and tries to open a Spam URL. This will occur again and again, until I restart the phone.  It does not seem to be related with the app I am using at that specific moment, and it keeps happening even if I kill all running apps.  Now I wonder: Is there a way to find out what is making my browser open this URL? Is this logged somewhere, or can this be logged somehow?  Android Version is 5.0.1, device is a Samsung Galaxy S4.

I've recently bought a new Android smartphone. After setting it up and loading my contacts onto it I thought that would be it.  Now after some days, every time I unlock the phone it takes a few seconds before it opens the default browser and opens some spam website. I tried to see what was causing it. I removed any apps I didn't know I could trust, but the problem persisted. After trying to solve it for some time I gave up and reset the phone to factory default. Now after having it reset to the default it ran without issues for roughly a week before the problem reappeared.    I tried to uninstall some apps in order to see if they were to cause of it, but nothing changed after doing so. However I did notice that if I turn off the wifi it won't even try to open the browser (I haven't tried mobile data since I don't have a bundle). This makes me feel like it might be related to something on the network but that wouldn't explain why only that phone would have the issue when there are at least 6 android phones on that very same network.  I hope that there is someone who can help me find the cause of this issue and help me solve it.  TL;DR When unlocking my phone, it opens the browser and tries to open a spam website. But only does so while connected to the wifi.  Things I've tried so far:   Factory reset (only helped for a limited time) Clearing the browser cache and all related data  Removing any app I don't know to be reliable Attempting to find what triggers it (seems like some type of internet connection is required??)   The device is the Doogee Shoot 1. As for the browser, the default is set to be the Android browser, but if I change the default it would use Chrome just as well. It seems to really just use the browser that is set to default.


I tried sudo apt-get install --install-recommends winehq-devel but it shows:   Reading package lists... Done Building dependency tree        Reading state information... Done Unable to locate package winehq-devel

I am looking for a step by step instruction to guide me in the ways of installing, configuring and debugging many of the issues new users have when dealing with Wine in Ubuntu.  What is the recommended way of installing Wine, some of the key issues that it has and how to solve them?  If I have a specific problem with an App in Wine, how do I go about solving it? What are the recommended steps to ensure that I can fix a problem related to an app I wish to use?


Rudin in Real and Complex Analysis uses this in a proof near the beginning of chapter 9:     $\displaystyle \left \vert{ \frac {e^{-ixu}-1}{u}}\right\vert \le \vert x \vert$ for all real $u \ne 0$   Why is this true?  Edit: I believe $x$ is real

Could you help me to prove  $$ |e^{i\theta} -1| \leq |\theta| $$  I am studying the proof of differentiability of Fourier Series, and my book used this lemma. How does it work?


It used to be that logging out of your email, there was a button, often at the top right corner, that said 'log out'.   Now for things like facebook, gmail etc, logging out is actually quite difficult, hidden in a dropdown menu from somewhere  (try it now, log out of your facebook, gmail, stackexchange).   Is logging out becoming more difficult, and why?

I have recently observed many sites that do not have a log out button. Either it's not there or hidden somewhere so that you have to find it. Why do you think this has been done? Does it apply to every category of site - for example a social networking site versus a banking site?


There is the quote, . And then there are the quotes,  and . I'm not concerned about who said the quotes or why. My question is focused on whether a single word phrase exists that you could call each of the derived quotes, which are based on another quote (particularly, the first one, in this example). So something with meaning similar to "modified quote", "derived quote", "adjusted quote", "inspired quote", or "allusion quote", but as a single word if possible. Does such a word exist?

Allow me to explain: There is a famous quote from the movie      "All work and no play makes Jack a dull boy"   I can also paraphrase it: Jack was dull because he didn't play enough.  My question is, what if I intentionally modify the original quote and turn it into the following?     All work and no play makes Pouya a dull boy   This is neither a quote nor a paraphrase. Is there any word for these kinds of phrases?


The  claimed they capture the first image of blackhole, at the center of galaxy M87. In the image we can see lightrays are bent near the blackhole, but how do we receive the light rays if the definition of the event horizon is the boundary where light cannot escape? Does the picture just show a place that is further outside of the blackhole? What's the significance of this?

The photograph of the black hole, at the centre of galaxy M87, is now a part of human history. We are told that the red-colour is caused by hot gas, matter & radiation around the "edge", the Event Horizon. Given the power of the gravitational forces emanating from black hole, why aren't these three things drawn into the abyss? If light is bent/ drawn into the BH, how does this red image arise? The logic, here, would be that a body, on the Event Horizon, is immune from the gravity--which sounds pretty fatuous?


I have pixel art, I want to draw. When player jumping I want to animate the art to squash stretch to have a feeling. But when I scale the art it get's distorted, as demonstrated in the image.  In one video I heard a rule to always scale to multiples of 100% ratio. So 150% is not allowed otherwise pixels collapse into each other. I haven't experienced that in this image but is it ok to scale arbitrarily in pixel art? I see they scale the sprite arbitrarily in Celeste Game Player . But It feels wrong to me.

Recently I was coaching a developer who's new to making pixel art games, and realized there's some "conventional wisdom" around scaling pixel art that's not obvious to a newcomer, and might not be well documented. So, here's an attempt to fix that....     I've heard I should only scale pixel art by 200%, 300% etc. not in-between sizes like 120%   Why is that? Shouldn't scaling "just work" the way it does with other images? What if I really need to make my character just a fraction larger or smaller to get the right gameplay or look? How do I fix this?  I'm told it's "bad" to use pixel art at different scales in one game - why?    For example, if I scaled up my character so each sprite texel is 4x4 screen pixels, while my background art is scaled up so each sprite texel is 6x6 screen pixels. Isn't a pixel a pixel at the end of the day?


The example is given below:        My questions are:  1-How do we get the matrix $B$?   2- can not the diagonal elements be arranged as follows instead 2,2,3,3,3?    3- From where the 1 below number 3 in matrix B came?  Could anyone help me answer these questions, please?

given is  $\begin{pmatrix} 3&0&-1&0&0 \\ 1&3&0&1&0 \\ 0&0&3&0&0 \\ 0&0&0&3&0 \\ 0&0&0&0&-3 \end{pmatrix}$  I have to determine the jordan form and also give a jordanbase.  I got this so far:   Eigenvalues are $l_1 = 3, l_2 = -3$ whereas $P_A(x) = (x-3)^4 * (x+3)$. Eigenvectors are for $l_1 = 3$: $(0,1,0,0,0)$ and $(-1,0,0,1,0)$   for $l_2 = -3$: $(0,0,0,0,1)$   This means, that we still need two vectors. How can I get them? How can I get then the jordanbase?


I'm having troubles with a question.  Prove that $\mathbb{R}$ and the interval [0,1] have the same cardinality.  Can you help me, please?  Thank you in advance!

Homework problem, intro to topology. Here's what I've done so far. Am I on the right track? And, how would you advise me to proceed from here?  I have already established that $\left |[0,1] \right | = \left |[0,1) \right|$. Now I wish to show that $\left |[0,1) \right| = \left |\mathbb{R} \right |$. I will try to do this by constructing a bijection $f: [0,1) \rightarrow \mathbb{R}$.  Given $x \in [0,1)$, consider the following countably infinite subset of $\mathbb{R}$: $x^c = \{x+1, x-1, x+2,x-2,x+3,x-3,\ldots   \}$.  Then we have that $$ \bigcup_{x \in [0,1)} x^c = \mathbb{R}, $$ and if $x_1, x_2 \in [0,1)$ with $x_1 \neq x_2$, then $x_1^c \cap x_2^c = \varnothing$.


"That's a very, very funny question given the time frame, would have been even funnier if it was a month in the future."  My friend corrected me, and said it should be "were a month in the future" Is that correct if both question and month are singular?

In which cases should I use the subjunctive mood?     I suggest that every applicant fill out the form carefully.        If she were rich, she would live on Long Island.


As introduced in most standard GR textbooks, the exterior derivative of a p-form $X$ is defined in a coordinate basis as $(dX)_{\mu_1....\mu_{{p+1}}}:= (p+1) \partial_{[\mu_1}X_{\mu_2....\mu_{{p+1}]}}$ (1). One can show that this transforms as a tensor (or more specifically a p+1 form)  when changing from one coordinate basis to another coordinate basis. However, in GR, the definition of a tensor means that it must also transform appropriately when we go to an anholonomic basis (non-coordinate basis). Since in GR we assume that the connection is torsion free then we can write the exterior derivative in the form $(dX)_{a_1....a_{{p+1}}}= (p+1) \nabla_{[a_1}X_{a_2....a_{{p+1}]}}$ (2) which is a tensor in the full sense (ie in coordinate and anholonomic basis). When we define the exterior derivative on manifolds with torsion-full connections, how do we do this? Do we just use the definition (2)? If so, it seems odd that we should start the definiton of (1) if (2) is more general. Also I thought the exterior derivative was useful because it is not meant to be related to the connection but (2) is related to the connection.

In Sean Carroll's GR book, pg 84, the exterior derivative $d$ is defined as $$(dA)_{\mu_1\mu_2...\mu_{p+1}} = (p+1) \partial_{[\mu_1}A_{\mu_2...\mu_{p+1}]}\tag{2.76}$$ where $A$ is a $p$-form and the RHS is the appropiately normalized and antisymmetrized partial derivative. But on pg. 454, equation E.5,  he replaced the partial derivative with a covariant derivative: $(dA)_{\mu_1\mu_2...\mu_{p+1}} = (p+1) \nabla_{[\mu_1}A_{\mu_2...\mu_{p+1}]}\tag{2.76}$ Are these two definitions the same?


Is this really a paradox? God, at the point in time when the question is posed, is Omnipotent - so he must be able to. But in creating something that He cannot later move, does this power simply come at the cost of his own Omnipotence?   Does denying God the power to die also deny his Omnipotence?

The easiest way to explain this question is with a thought experiment:  Consider God, the ultimate of everything, who is wholly omnipotent (all-powerful) and omniscient (all-knowing). Let's just say, hypothetically, that he wanted  (this is a totally random example I just happened to be reading about; I could have just as easily said He wanted Bob to score a free-throw in basketball 3 times in a row tomorrow, or Sally to knit a blue sweater on Sunday, November 4th, 2012).  But anyways, one way He could do this (get X group of people to save a man from a burning car) is: At the beginning of time, God could instantly plan out the future and set in motion a massive chain of events, from the creation of light and stars, the creation of Earth and the creatures, mankind, then civilization with all the conflicts and progress and glory that comes with it, such that one day, a few people would come from out of nowhere—complete strangers to each other—and save this man (also a stranger) from under a burning car. God need not intervene at all this whole time, He merely "ignited" the chain of events from day 1 and watched it unfold exactly as He planned. Let's call this Universe A.  He could also, being all-powerful, just freeze time for a bit and skip a few steps, creating the world and universe instantly, with all the civilizations and animals and things in place, putting all the strangers there together next to a car which is already on fire and the man trapped under it. Then press play, and presto, you have the exact same scenario, without billions of years of buildup. Let's refer to this as Universe B.  God is obviously capable of doing both. My question thus is whether there is an  (really any difference at all) between Universe A and Universe B. Personally, I don't think this kind of power is outside of God's capability; he should, after all, have no problem with creating identical universes which match up exactly once they reach "biker under the car" moment where He unfroze time in Universe B. At that moment, Universe A and Universe B are exactly the same, right? Or is there somethinge special about Universe A, with all it's buildup, that separates it intrinsically from Universe B? In other words, is it outside of God's ability to make them exactly equivalent?


We were taught in school that when followed by a noun starting with a vowel sound, "the" is pronounced "thee". In other cases, it's pronounced "thuh" (aside from the emphatic "the").  I have noticed that some Americans say "thuh only" and "thuh hour" (these are the only examples I could find off the top of my head). Is this just a regional accent thing or are there exceptions to the simple rule I was taught in class?

Although there are rather simple rules determining the pronunciation of "the", native speakers quite often deviate from these rules (including, e.g., TV shows). According to the Longman Pronunciation Dictionary,     The EFL learner is advised to use [ðə] before a consonant sound (the   boy, the house), [ði] before a vowel sound (the egg, the hour). Native   speakers, however, sometimes ignore this distribution, in particular   by using [ðə] before a vowel (which is in turn usually reinforced by a   preceding ʔ), or by using [ði:] in any   environment, though especially before a hesitation pause. Furthermore,   some speakers use stressed [ðə] as a strong form, rather than the   usual [ði:].   My question is: when native speakers use [ðə] instead of [ði] before a vowel sound, do they do it on purpose or accidentally? If it is on purpose, how do they (typically) decide which pronunciation to use? What is a valid reason to use [ðə] before a vowel sound?