I was generalizing the following integral: $$\int_{0}^{\infty}\frac{\sin^{2n+1}x}{x}\mathrm{d}x \hspace{40pt} n\geq 0$$ We can start by noting that $\sin x =\dfrac{e^{ix}-e^{-ix}}{2i}$ and thus $\displaystyle \sin^{2n+1}x=\frac{(-1)^n}{2^{2n}}\sum_{r=0}^n (-1)^r \binom{2n+1}{r}\sin(2r+1)x$. This implies $$\begin{aligned}\displaystyle \int_{0}^{\infty}\frac{\sin^{2n+1}x}{x}\mathrm{d}x &=\frac{(-1)^n}{2^{2n}}\sum_{r=0}^n (-1)^r \binom{2n+1}{r}\int_{0}^{\infty}\frac{\sin(2r+1)x}{x}\mathrm{d}x \\ &=\frac{(-1)^n\pi}{2^{2n+1}}\sum_{r=0}^n(-1)^r\binom{2n+1}{r} \\ &=\frac{(-1)^n\pi}{2^{2n+1}}\sum_{r=0}^n\left((-1)^r\binom{2n}{r}-(-1)^{r-1}\binom{2n}{r-1}\right)\end{aligned}$$ Where I have used the well known  $\displaystyle \int_{0}^{\infty} \frac{\sin(2r+1)x}{x}\mathrm{d}x=\int_{0}^{\infty}\frac{\sin x}{x}\mathrm{d}x=\frac{\pi}{2}$ and the property of binomial coefficients that $\displaystyle \binom{n}{r}+\binom{n}{r-1}=\binom{n+1}{r}$ Since the above sum telescopes, we have $$\displaystyle \int_{0}^{\infty}\frac{\sin^{2n+1}x}{x}\mathrm{d}x=\frac{(-1)^n\pi}{2^{2n+1}}(-1)^n\binom{2n}{n}=\frac{\pi}{2^{2n+1}}\binom{2n}{n} ~\forall ~ n\in \mathbb{Z^{+}}$$ I would like to know other methods for evaluating this integral.


I want to calculate the determinant of the following matrix $$\begin{pmatrix} \alpha +\beta&\alpha\beta&0&\cdots&0&0\\ 1&\alpha + \beta &\alpha \beta&\cdots&0& 0\\ 0&1&\alpha + \beta & \cdots &0&0\\ .&.&.&.&.&.\\ .&.&.&.&.&.\\ .&.&.&.&.&.\\ .&.&.&.&.&.\\ 0&0&0&0&1&\alpha + \beta\end{pmatrix}$$  Here is my attempt    Is this correct?  I used Laplace


Im much confuse with the node editor to get the different material effects. Is there any website where i can download the material for free.


If $a$ is a zero of $f(x)$ in some extension of $F$, show that $g(x)$ is irreducible over $F(a)$, given $f(x)$ and $g(x)$ are

Suppose that $f (x)$ and $g(x)$ are irreducible over $F$ and that    $\deg f (x)$ and $\deg g(x)$ are relatively prime. If $a$ is a zero of $f (x)$ in some extension of $F$, show that $g(x)$ is irreducible over   $F(a)$.   I understand that $f(a) = 0$ implies that $[F(a):F] =$ deg $f(x)$ and that all elements of $F(a)$ are of the form $c_{n-1}a^{n-1} + \dots + c_0$, but from here I can't to find a way to relate the coprimeness to show that $g(x)$ can only factored as a unit and a polynomial from $F(a)[x]$.  Anyone have any ideas?


I'm on a new computer and I haven't downloaded Data Loader in years but now, I'm having all kinds if issues.  So apparently, I have to download Zulu JDK 11 (msi) first, Then download and unzip Data Loaded and install. Which opens a command prompt... After I follow all of the command prompt steps, then I get an error.  Am I supposed to install Java too? And if so, do I download Java or Zulu first?  Apparently a lot of people are having this same problem with no resolve.  Any help would be much appreciated.


Base document page numbers with pdfpages

I'm writing a report, in LaTeX. And I need to include, as appendices, other latex documents I have written. I am currently doing this using pdfpages and it works. However, the inserted PDF has no page numbers and it overlays my base documents page numbering, resulting in no page numbers on the PDF pages. My questions:   How to solve the above problem. Is there a better way to do this.


I saw this thread:    You are using CI and unit tests, right?  Do you do anything more before pushing out new releases?  What kind of guidelines do you follow when writing unit tests?   Basically, I'm wondering how you make sure that each release is good enough.


How to write in Brazilian Portuguese using a US keyboard?

I've used Linux and FreeBSD as my main desktop environments from 2000 to 2006. Back then we would have to edit keyboard maps to make Portuguese Brazilian work. Since then, I stopped using Linux as desktop and moved to MacOS because it was very time consuming to just get things done.  I've been hearing about all the evolution of the Linux desktop in the last decade and a couple of weeks ago I just bought a new Dell XPS preloaded with Ubuntu 16.04 and what a surprise... I just can't get my keyboard to work correctly!  At first I couldn't get it to write the cedilla "ç" using US-international. By following the instructions in  I could get it to work, but now all consonants get "accented" (.e.g., '+s becomes ś or '+r becomes ŕ), which is just not possible in Portuguese. The expected behavior would be 's or 'r.  Why is it so difficult to just get things right?  I would like to know if is there any solution or workaround to this problem.  EDIT: Someone marked this as duplicate of another question on how to use multiple languages. This is not the issue here. My question is how to make Ubuntu/Linux correctly work to write Brazilian Portuguese using a US keyboard.  In other words, typing ' followed by s should output 's and not ś, meanwhile typing ' followed by a should output á and typing ' followed by c should output ç.  So, the question is how do I get this behavior?  EDIT: As I got no real answer I coded a small ibus input method, based on ibus-tmpl for solving this. Probably not a good solution, but the quickest workaround I could find. It is available on


I recently performed a code audit on client, I found these lines of code that was subjected to a blind SQL injection  Code snippet:  <?php if ($_GET['id'] != ''){ $groepsindeling = $_GET['id']; } else { $groepsindeling = $_GET['group']; } breadcrumb($groepsindeling); ?>  <?php $groep = "SELECT * FROM `menubalk` WHERE `webnr` LIKE '%$webnr-%' AND `hoofdgroep` = '$_GET[id]' ORDER BY `naamt1` ASC"; $groepres = mysql_query($groep); while ($groeprij = mysql_fetch_array($groepres)){ ?>   I patched it immediately by using the mysqli_real_escape_string() function.  New code:  <?php if ($_GET['id'] != ''){  $groepsindeling = mysqli_real_escape_string($_GET['id']);  settype($groepsindeling, "integer");  }  else { $groepsindeling = mysqli_real_escape_string($_GET['group']); } breadcrumb($groepsindeling); ?>  <?php $groep = "SELECT * FROM `menubalk` WHERE `webnr` LIKE '%$webnr-%' AND `hoofdgroep` = '$_GET[id]' ORDER BY `naamt1` ASC"; $groepres = mysql_query($groep); while ($groeprij = mysql_fetch_array($groepres)){ ?>   I did further testing to see if the code would work it worked against the boolean based blind SQL injection, but it seems like a failure as a time based blind SQL injection is still applicable here.  All suggestions are appreciated.


For $a_1=\sqrt a , a_2=\sqrt{a-\sqrt{a}}, a_3=\sqrt{a-\sqrt{a+\sqrt {a}}} ,\ldots $ , We have $a_n$ as    $$\lim_{n\rightarrow\infty}a_n=\frac {A-1}6+\frac 23\sqrt{4a+A}\sin\left(\frac 13\arctan\frac {2A+1}{3\sqrt3}\right)\tag1$$ where $A=\sqrt{4a-7}$   Note: We have $- , + , +$ every three terms.  How we can prove this relation? (I want to prove it in general not only $a=2$ and period is $3$ not $4$)


python error about declaration list and assignment value at the list

a=[['']*2]*2 a[0][1]='previous'     a[1][1]='new' print(a[0][1])  The result of this code is 'new' instead of 'previous'. When I changed the declaration of list as a=[ [[''],['']], [[''],['']] ] now it is okay. But why difference?


I'm making an isometric map for a game, I can draw it, but I don't know how to implement a sort of 3d collision detection without Threejs or other 3d library.  It is possible? Maybe make the block an Object can help? I have searched a lot on the web, but I found only libraries. Thank you!  This is my JavaScript code:    var canvas = document.getElementById('canvas'),  ctx = canvas.getContext('2d'),  width = canvas.width = window.innerWidth,  height = canvas.height = window.innerHeight,  stop = false;  var tw, th; var player;  setup(); draw();  function setup(){   ctx.translate(width/2,50);    tw = 60; //tile width   th = 30; // tile height   player = new Player(2,3,2);  };  function draw(){    ctx.clearRect(-width/2,-50,width*1.5,height+50);      for(var i = 0; i < 5; i++){       for(var j = 0; j < 5; j++){         drawBlock(i,j,1,tw,th);       }     }      if(!stop){      requestAnimationFrame(draw);     } }  function drawBlock(x,y,z,w,h){   var top = "#eeeeee",      right = '#cccccc',      left = '#999999';   ctx.save();  ctx.translate((x-y)*w/2,(x+y)*h/2);   ctx.beginPath();  ctx.moveTo(0,-z*h);  ctx.lineTo(w/2,h/2-z*h);  ctx.lineTo(0,h-z*h);  ctx.lineTo(-w/2,h/2-z*h);  ctx.closePath();  ctx.fillStyle = "black";  ctx.stroke();  ctx.fillStyle = top;  ctx.fill();   ctx.beginPath();  ctx.moveTo(-w/2,h/2-z*h);  ctx.lineTo(0,h-z*h);  ctx.lineTo(0,h);  ctx.lineTo(0,h);  ctx.lineTo(-w/2,h/2);  ctx.closePath();  ctx.fillStyle = "black";  ctx.stroke();  ctx.fillStyle = left;  ctx.fill();   ctx.beginPath();  ctx.moveTo(w/2,h/2-z*h);  ctx.lineTo(0,h-z*h);  ctx.lineTo(0,h);  ctx.lineTo(0,h);  ctx.lineTo(w/2,h/2);  ctx.closePath();  ctx.fillStyle = "black";  ctx.stroke();  ctx.fillStyle = right;  ctx.fill();   ctx.restore();  }  function drawTile(x,y,stroke,col){   ctx.save();  ctx.translate((x-y)*tw/2,(x+y)*th/2);   ctx.beginPath();  ctx.moveTo(0,0);  ctx.lineTo(tw/2,th/2);  ctx.lineTo(0,th);  ctx.lineTo(-tw/2,th/2);  ctx.closePath();  if(stroke){   ctx.stroke();  }else{   ctx.fillStyle = col;   ctx.fill();  }   ctx.restore();  }  function Player(x,y,z){   this.x = x;   this.y = y;   this.z = z;   this.w = 10; //width   this.h = 10; //height } canvas{   width:100%;   height:100%; } <canvas id="canvas"></canvas>


Regexp - Match any character except "Something.AnyChar"

I have a string:  Input:     "Feature.. sklsd " AND klsdjkls 9290 "Feass . lskdk SDFSD __ ksdljsklfsd" NOT "Feuas" "Feature.lskd" OR PUT klasdkljf al9- .s.a, 9a0sd90209 .a,sdklf jalkdfj al;akd      I need to match any character except OR, NOT, AND, "Feature.any_count_of_characters"  the last one is important this start with: "Feature.   This is followed by any number of characters and then ends with: " character.  I'm trying to solve this using lookahead or lookbehind but I can get the expected output, only a portion of characters that I don't want.  My expected output is      "Feature.. sklsd " AND klsdjkls 9290 "Feass . lskdk SDFSD __ ksdljsklfsd" NOT "Feuas" "Feature.lskd" OR PUT klasdkljf al9- .s.a, 9a0sd90209 .a,sdklf jalkdfj al;akd    All that is in black.  To test it i'm using these links:  http://gskinner.com/RegExr/ http://regexpal.com/   Thanks.  EDIT  Check this link   inside the link i get matched some expression. But i don't need the expression that matched. i need the inverse, how i can get it?  Thanks.


Why is $\sin \theta$ just $\theta$ for a small $\theta$?

When $\theta$ is very small, why is sin $\theta$ taken to be JUST $\theta$?


If $(G, \oplus)$ has order $2n$, prove that every proper subgroup of $(G, \oplus)$

These questions are really bothering me. Any help would be much appreciated.  Let $p$ be prime  a) If $(G, \oplus)$ has order $2p$, prove that every proper subgroup of $(G, \oplus)$ is cyclic  b) If $(G, \oplus)$ has order $p^2$, prove that $(G, \oplus)$ has a subgroup of order $p$


80s or 90s postapocalyptic cartoon where a group of kids traverse a wasteland searching for sages?

I have a vague recollection of a cartoon I saw sometime in the late 90s. As Scandinavia was a bit behind in releases back then I believe it was broadcasted in early 90s or late 80s in its original run. The animation style is similar to that of Spider-man the Animated Series from the early 90s and Highlander the Animated Series. The premise of the show is similar to Highlander the Animated Series series, but with a more gritty tone. The world has been plunged into a radioactive wasteland after a nuclear war, I think, or some other catastrophe. A group of kids/young adults traverse wildlands looking for "sages" that has preserved the old world knowledge. The one scene I remember vividly is when the group encounters one of the "sages", the one concerned with atomic/nuclear power. The sage removes his cowl to show a face scarred by radiation, this is never shown as his face is never seen but it is implied. After he has given his knowledge he sends the group away and activates some kind of self-destruct sequence, an atomic explosion follows. The purpose of the group I cant remember but it was similar to that of Highlander, overthrowing a tyrant. Does any of this sound familiar or have I gotten it mixed up with Highlander? It was 25 years ago so it is not unlikely.


Can I install Ubuntu on a Lenovo Ideapad A10?

I have a Lenovo Ideapad A10 Android 4.2.2 netbook with a Rockchip RK3188 processor. The Rockchip RK3188 is a fast ARM SoC primarily designed for tablets. Unfortunately I soft bricked it and I wasn't unable to flash a recovery firmware since Lenovo does not support the device or maybe the developers are too lazy to create a recovery image for the device. Anyway I'm asking if I can install Ubuntu onto the device's internal storage?  I was able to run Slackware from the external SD card, but somehow it's quite buggy. I cannot install picuntu on it, and I think Lenovo does not allow it or there are some other reasons behind it.


Moderator messages not showing on Pets site

The last mod message I've seen is for December 6th, but there's been activity on the meta site since then with no notification in the diamond on the header bar. It's either specific to the Pets site, or to the beta sites, as I don't see this behavior on the Photography site where I also moderate.


Can Hydrogen Fusion via CNO Cycle Occur in First Generation Stars

CNO cycle requires the presence of carbon, nitrogen and oxygen to undergo hydrogen fusion. Does this mean that for first generation stars, no matter how big they are, can't undergo hydrogen fusion by CNO cycle because there is no carbon, nitrogen and oxygen present?   I can't seem to find any website which mentions this. All they say is if a star is large enough, it will undergo hydrogen fusion via CNO cycle, they don't specifically mention it having to be a second generation star.


How do I completely remove Ubuntu 12.04 on my Mac?

I have dual booted Ubuntu 12.04 on my Mac using disk utility and the rEFIt tool.The battery life is very bad and therefore I want to switch back to Ubuntu 10.04 . How can I completely remove the 12.04 partition?


Can Unregistered Users delete their questions?

If I were to accidentally ask a question as an unregistered user, could I go back and delete that question?


Review indicator flag showing (orange) but no reviews pending

Screenshot below but the gist is that I'm seeing the flag but no edits seem to be pending.


I have a long series of equations in an align environment and I want to highlight only the last one (final result) using \color{red}. However, the label number stays black (unlike to what happen in the equation environment). How do I change also the color of the number?  MWE  \documentclass[11pt,a4paper]{report}  \usepackage{amsmath, amssymb} \usepackage{color}  \newcommand{\colorlabel}[1]{%   \refstepcounter{equation}%   \tag{\textcolor{#1}{\theequation}}}  \begin{document}  \begin{equation} \label{eq:equation} \color{red} a = b + c \end{equation}  \begin{align} \label{eq:align} a &= b + c \nonumber \\ & \colorlabel{red}\color{red} = e + f \end{align} Eq~\eqref{eq:equation} shows that referencing using the equation environment gives black text. Eq~\eqref{eq:align} shows that referencing using the align environment gives colored numbers with black brackets.  \end{document}     UPDATE  Building on jarauh's solution, I am currently using   \newcommand{\colorlabel}[1]{%   \refstepcounter{equation}%   \tag{\color{#1}{\theequation}}}   which, however, keeps the brackets black. Also, when references, the number is colored but not the brackets. This behavior is different from the one shown using equation (everything is black when referenced). I would like to have a consistent behavior between them (it would be great to have one single command, without manually modifying the color before/after the equation).


Bounty system shouldn't ask me if I'm sure before telling me I can't do it

This is not a big deal, just a minor UI complaint that I have about the process of awarding a bounty.   Currently, whenever a user tries to award a bounty, the very first thing that happens is a notification that pops up saying "Are you sure you want to award your bounty to this answer? THIS CANNOT BE UNDONE!" As far as I can tell, this kind of confirmation dialog was first suggested in the answer here: () and it makes sense to show it sometimes, since we currently don't allow unaccepting an answer.  However, it's unnecessary in situations where the system already doesn't allow the bounty to be awarded, such as before the 24 hour wait period is up or when trying to award it to deleted answers. (Actually, another odd thing is that I can try to award a bounty on a deleted answer, even though I can't try on my own. I guess it was thought to be too obvious to require comment that you can't give a bounty to yourself, but not obvious enough that you can't award it to deleted answers?)   So, in situations like these, there should be no confirmation dialogue, since it is not possible to complete the action in the first place. The confirmation dialogue should be a step that occurs AFTER the system checks to make sure that the user is mechanically capable of awarding the bounty.


int main() {   struct node   {     char i;     int a;   };   printf("sizeof(struct node) =%d\n",sizeof(struct node));   return 0; }   The output for this program is 8 byte. Here sizeof(int)+size(char) is not equal to 8 byte. Still, we are getting 8 byte. It is because of padding. Thats fine. But in the following program, this very concept is being violated. Why?  int main() {   struct node   {     double i;     int a;   };   printf("sizeof(struct node) =%d\n",sizeof(struct node));   return 0; }   if sizeof(double) is 8 byte then sizeof(struct node) should be 16 byte(as per first program). But it is printing 12 byte. Why?


Font corruption: lines through characters

I have a problem where a one-pixel high white line is displayed through certain letters of text. Almost always only a single character type is affected at once, and only in one font size (though that size can change over time). Most of the time things are fine, but this happens several times a day. It happens frequently in Firefox, but system dialogs, menus, etc. can also be affected. It's been happening ever since I upgraded to 10.10. Only restarting seems to fix it.  Two examples (in the first, only the larger "r" is corrupted):     Any help would be appreciated, thanks.  Edit: I've since noticed that I can (sometimes) make the fonts appear correctly by zooming in/out all the way and returning to the default in Firefox (one or two steps, then going back, does nothing) seems to make the problem go away temporarily.  Edit 2: I figure it's worth noting that the solution below doesn't fully work for me any longer (I'm now using Ubuntu 11.10). It does significantly reduce the frequency of this problem occurring.  Edit 3: Still around in 12.04. The fix provided by Vanni works perfectly now for me, but apparently doesn't for some.  Edit 4: This seems to be an xorg problem, with Vanni's answer fixing it for many Intel video cards. I've had this occasionally happen with AMD graphics cards in 13.10 and 14.04, but very rarely (only two or three times).


In what format does piped output get sent and received from one command/program to another?

When a command is piped to another command in what way or in what format does the piped output exist/get sent? Is it a temporary file? Is it a string? And how does the command that receives the piped output decode/read that output?    Example:  echo "Someone string" | ./program | tail     Does the program "program" receive the output of echo as a file? How would the program read in that input?


Python: find a string between the first occurrence of two substrings

I have a text like this:   text='gn="right" headers="gr-Y10 gr-eps i36">121.11<\\/td><\\/tr>
<\\/td><\\/tr>
'   I would like to get the value 121.11 using regex out of it. So I did this:  import re b=re.search('gr-Y10 gr-eps i36">(.*)<\\\\/td', text) b.group(1)   and I got this as output:  '121.11<\\/td><\\/tr>
'   How can I get what I am really looking for, which is 121.11 instead of the line above?


Does Ubuntu Server 18.04 LTS support AMD EPYC 7742?

Does Ubuntu Server 18.04 LTS support HPE ProLiant XL675d Gen10 Plus wiwh AMD EPYC 7742 CPU? Thank you.


How can I disable Ctrl+Q for all applications (system wide)?

A lot of applications like Firefox, Chrome etc, get closed when I accidentally press Ctrl+Q instead of Ctrl+W because of the proximity of the Q and W keys on the keyboard. Is there a way this shortcut can be removed or reset on a system wide basis?


How to get permission for editing fstab file in debian

I wanted to change my fstab file to be able to solve "Error mounting" (I tried to delete the last line of fstab file)   # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point> <type> <options> <dump> <pass> # / was on /dev/sda5 during installation UUID=8a97edce-fb5d-4dfb-8843-1d6a8f40c8ed / ext4 errors=remount-ro 0 1 # /home was on /dev/sda7 during installation UUID=20c4aa72-06e1-47eb-acae-2ca0a53ebc93 /home ext4 defaults 0 2 # swap was on /dev/sda6 during installation UUID=638f2aee-806c-4845-bb1b-3bff47728184 none swap sw 0 0 /dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0 #/dev/sdb1 /media/usb0 auto rw,user,noauto 0 0   But now I need "permissions to save the file."  How to do it?


Click won't work on button added dynamically

I'm adding a button dynamically depending on div existence, so I have this:  function addVideoButton(id) {     var div = document.createElement('div');     div.className = 'video';     div.dataset.videoid = id;     div.dataset.params =     "modestbranding=1&am;showinfo=0&vq=720&color=white&theme=light&fs=1"     div.innerHTML = '<button class="play c-btn"><use xlink:href="#play"></use>WATCH VIDEO</button>';     var title = findTitle();     document.getElementById(title).appendChild(div); }   Also, I have the below piece so when these types of buttons are clicked, a param is taken (video id) and then a video is played on a modal  // show frame for the video modal     $(this).find('.play').on("click", function() {       showFrame(getIframe(videoId, params), "video");     });   However, I noticed that if I add the button dynamically as above, then click event binding won't work, if I clicked, it won't start the modal, what am I missing?


what is the difference between Synchronization and Mutex

what is the difference between Mutex,Semaphore and synchronization.  Is synchronization is way to achieve mutex in java.


Find all entire functions $f(z)$ such that $|f(z)|=1$ for $|z|=1$  Hint: First show that $f(z)$ is a polynomial.  Clearly one can not use Cauchy Estimates to prove that $f(z)$ is a polynomial, the other way is to prove that $f(z)$ has a pole at infinity which I am not sure how to prove that, are there any other ways to prove that a given entire function is a polynomial ?  Thank you !


How can I use Gödel numbers to make a proof?

As we know, any proposition can translate to Godel numbers, such as  $$( \exists x)\space (x=sy)$$Its Godel numbers is $2^8 × 3 ^4 × 5^ {13} × 7^ 9 × 11^8 × 13^{13} × 17^ 5 × 19^ 7 × 23^ {17} × 29^ 9=a \space big \space number $  We also could get the character sequence "$( \exists x)\space (x=sy)$" through prime factorization of 243,000,000.  Such as$$243,000,000=2^6×3^5×5^6 $$ $$6\space\space\space\space\space 5\space\space\space\space\space 6 $$ $$\downarrow\space\space\downarrow\space\space\downarrow$$ $$0\space\space\space=\space\space\space 0 $$ So the Godel numbers of "$0=0$" is $243000000$  There are four axioms in Godel's PM system, here are two of them: $$(p\lor p)\subset p$$ $$p\subset (p\lor q)$$ through these two axioms, we can prove "$(p\lor p)\subset(p\lor q)$" is a true theorem.   And these two axioms and a theorem all have a corresponding Godel numbers, can we prove this theorem is true through Godel numbers? If it works, how?  Many people think it is a question unrelated with Mathematica, but what I think is that if Gödel numbers could make a proof, then we can build an Association between characters and numbers in Mathematica, and add some rules, then we can prove propositions. But I’m not sure Gödel numbers can make a mathematical proof.


When I insert the double money sign $$ we have the equation stressed centered. I would like to know if it's possible to have a substitute for the double money sign $$. I'm looking for a symbol to get the equation stressed and written from the left side to the right side of the page instead to have the equation centered.  Thanks


Prove that a complete metric space without isolated points is uncountable

I have seen similar question to mine, but have not been able to find an approach such as this approach to this question. So the problem is to prove that any complete metric space without isolated points, is uncountable. My attempt so far has been the following: From the definition of isolated point we know that all such elements belong to the set $ X\setminus X' $. Since there is no such element, we conclude that  $ X=X' $. Because $ X\neq\emptyset$, and $ X=X' $, we deduce that $ X $ is infinite. We maintain that $ X $ is uncountable. Suppose on the contrary that it is countable. Then we assume it to be $ X=\lbrace x_{1},x_{2},\cdots\rbrace $. Let $ x_{1}\neq y_{1}\in X $ and $ r_{1}<1 $ be respectively a point and a positive real number, such that $ x_{1}\notin N_{r_{1}}[y_{1}] $.(The notation $ N_{r_{1}}[y_{1}] $ simply means a close ball with center $ y_{1} $ and radius $ r_{1} $.) Then, we choose point $ x_{2}\neq y_{2}\in X $ and $ r_{2}<\frac{1}{2} $ to be a point and a positive real number such that$ N_{r_{2}}[y_{2}]\subset N_{r_{1}}(y_{1}) $(Should I state the usage of "Axiom of Choice" here?If yes,how?). Because $ X $ is an infinite set, we are allowed to repeat this process infinitely(Is this true?). Therefore we attain a chain of closed balls: \begin{align*}   N_{r_{1}}[y_{1}] \supset N_{r_{2}}[y_{2}] \supset\cdots\qquad;r_{n}<\frac{1}{n}  \end{align*} Let $ b_{n}=\lbrace N_{r_{n}}[y_{n}]\rbrace $ be a sequence in $ X $. We claim that $ \lbrace b_{n}\rbrace $ is Cauchy.(I have no idea how to proceed further.) Could you please assist me with the questions embedded in the text and suggest a way to complete the proof?


Query Spotlight indexing status from Terminal

Is there a way to get the indexing status of Spotlight using Terminal commands?  I know that I can just press command+space and type anything to get a progress bar, but I would like to be able to get the same information from a shell.  PS: I'm aware of  but the old question was asked for Yosemite and the existing answer regarding Terminal commands just says it wasn't possible then. Here's hoping that Apple improved this somehow in the meantime.


Can't vertically align to the center  and  despite being inline-level elements

.searchbar { display: block; border: 1px solid red }  .searchbar input[type=text] { float: left; width: 80%; box-sizing: border-box; border-radius: 30px; display: inline-block; outline: none; border: 3px solid black; padding: 16px; margin: 6px; vertical-align: middle; }  .searchbar button { width: 16%; box-sizing: border-box; display: inline-block; padding: 16px; margin: 6px; border:none; vertical-align: middle; } <div class = 'searchbar'> <form> <input type = 'text' placeholder = 'Click here'> <button type = 'button'>Search</button> </form> </div>    In order to align both elements vertically, I used vertical-align: middle and, according to , it works with inline-level elements. Despite setting their display values to inline-block, it doesn't seem to work . As you may have already noticed, <input> isn't aligned to the center as if it had not effect. In fact, if I were to delete vertical-align: middle, it would look the same. Also, it seems that <input> bottom margin isn't working. However, it should since it's a block-level element.


Let $A \in \text{M}_{n \times n}(\mathbb{C})$. How do I see that if $\lambda_1, \dots, \lambda_n$ are the eigenvalues of $A$, then for any polynomial $P(\cdot)$, I have that $P(\lambda_1), \dots, P(\lambda_n)$ are the eigenvalues for $P(A)$?


How can I stop using beta iOS on my iPhone?

I'm currently on the beta program on my iPhone. How can I stop using the beta versions and go back to the newest version of iOS (non-beta)?


The loading screen hints nor the information by buying the item itself are pretty informative. So I just bought one hopfeully expecting some stat window or some stuff like that.  But nothing aswell. I let him just run around a floor and pick up some stuff which worked fine but didn't feel worth paying money for it, as this is anyway what the whole game is about.  After one or 2 raider attacks in which he got damaged I haven't yet found a way he generates on.  So now I decided to sent him into the wastelands.  And here again I have just open questions.  How is he treat? What are his possibilitys in exploring? how long can i let him outside before he gets in trouble or risking loose him?  And after all: why they put in a tool and say "just pay for it" without releasing what it is able to?  summarized my question is: What are the dos and don'ts for my Mr. Handy?  So I sent him in the wastelands.


The latex file coding is not there but the pdf file is there

I wrote all my coding in the .tex file. The next day when I opened it the coding is all gone and the pdf file is opening with it and is displayed as an output. How do I bring back my coding?


May a Chinese citizen visit Hong Kong for five days?

I am a U.S. citizen traveling to Hong Kong for one week, My friend is a Chinese citizen and lives in Beijing. Is she allowed to freely travel to Hong Kong for five days? If not, what does she need to do in order to visit Hong Kong?


Linux - Delete last two files automatically

In Linux, one folder is created every morning and 5 files are created in that folder.  At the end of the day (Midnight), the last two files in that folder have to be deleted. How can I accomplish this?


How can I take browser screenshots at a higher resolution than my browser supports?

I need to take a screenshot of a website as it would appear on a very high resolution monitor... say 16000x12800 pixels. My laptop's screen has a native resolution of 1280x800. Basically, I need to simulate having a monitor resolution much higher than my monitor and video card actually supports. I want the screenshot of the site to look pretty much how it does when you hit CTRL MINUS (zoom out) in Firefox repeatedly, but without any loss of pixels due to scaling. How can I do this? Is there some way to use virtual machine software to simulate a super-high-res display? If not, is there some way to open a browser window bigger than the screen, and then capture its contents as a PNG somehow? Anything else that might work?  Here was an answer:   But it doesn't work. Firefox remains in the resolution of the physical screen. The window blinks and shrinks back to normal resolution.  Please Help!!


How to reset the looks of the Command Prompt window, in Windows?

I have made several customizations to how the Command Prompt window looks in Windows and now I want to reset it to its original state.  How can I do that? I just want it to look that way it does after you install Windows.


How to get wifi direct( wifi p2p) on my HP DM1 laptop?

I am an Ubuntu newbie. I have a HP DM1 laptop with Ralink RT5390 wifi card. It has the ability to connect on wifi direct with my Nexus 7 in Windows while using latest drivers located at Mediatek site. But I am unable to use wifi direct in Ubuntu. I found wpa2_supplicant supports this and installed the same, but still wifi direct is not functioning.  Can anyone help?


Which countries can I visit with my Netherlands work permit?

I have a valid work permit in the Netherlands. And I was just asked to visit Spain to help out a client of the company.  Am I allowed to travel to Spain with my Netherlands work permit?


I am learning Linux.  I was surprised to see that the parameter order seems to matter when making a tarball.  tar -cfvz casual.tar.gz snapback.txt bucket.txt   gives the error:  tar: casual.tar.gz: Cannot stat: No such file or directory tar: Exiting with failure status due to previous errors   But if I issue the command like this:  tar -cvzf casual.tar.gz snapback.txt bucket.txt   the tarball is created without errors  Can anyone explain to me why the parameter order matters in this example or where I can find that information to learn why myself?  I tried it the way I did in my first example that received an error with the logic of putting the required parameters c and f first followed by my other parameters.  I want to completely absorb Linux, which includes understanding why things like this occur.  Thanks in advance!


create a new desktop background from default background

I am using Ubuntu 14.4.3 and really like the default cyan background.  I want it to not change with time. However, I cannot find the file in /usr/share/backgrounds. I was hoping to construct an image background and install that. Does anyone have a solution for this?  (edited to add the following)  Here is a shot of the one I want


real analysis proof ? how to prove this problem

we are given that $S ⊆ T ⊆ \Bbb R$ and they are u.b prove that .$$\sup S ≤ \sup T$$ What I did : sps. $M$ is the u.b of $T$ which means for all $x$ in $T : x≤M$ and from $S ⊆ T$ we can say that $M$ is also an u.b of $S \implies$ for all $x$ in $S : x ≤  M$ I stopped here ): what should I do to prove it


I'm looking to unit test a method that returns a random float as an ID. I am trying to use Red Green Refactor, but am stumped by the randomness of the code. Below find the method I am trying to test. I am aware that I am technically supposed to write the test first, but I don't know how to test for random.  public Random ReturnDevID()                 {                     var rnd = new Random();                     rnd.NextDouble();                     return rnd;                 }


How to add the next date of subscription if the month is January from 29,30,31 to avoid the same date in February in javascript?

I would like to set the month and date of next month from the date of subscription. Example: If today is 30th January, then the next date of subscription should change to the 30 days after 30th Jan means if the month is not leap then it should set to 2nd March instead of 30th Feb. Along with this also when the month is December, the month should set to Jan. This is the code I have thought to use which is solving my Dec to Jan problem but I am still unsure about the February thing. var now = new Date(); if (now.getMonth() == 11) {     var current = new Date(now.getFullYear() + 1, 0, now.getDate()); } else {     var current = new Date(now.getFullYear(), now.getMonth() + 1, now.getDate()); }


Running, either in promiscuous mode or not :   tcpdump -i "$INTERFACE" -vvv -n -XX -S -s0 -e   I got a bunch of lines and this conclusion when I stopped it :  601 packets captured 938 packets received by filter 230 packets dropped by kernel   Why the difference ? Where are the 107 packets missing ? And is it possible at all to get/capture 100% of the packets on the local network - it's just me behind a router ?


The soundcard I want to use is detected and works (it only recently switched to dummy output and didn't allow me to go back). HDMI is no longer listed under Audio and Video - KDE Control Module; everything under audio module is set to dummy output and its the only 'soundcard' on the list now. I can view my previous sound cards in alsamixer, but changing the settings from there does nothing. How can I get my real soundcards to work again? I have already tried the following answers without success:  EDIT: name@name-desktop:~$ lspci -vvv | grep -A8 Audio 00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Kaveri HDMI/DP Audio Controller         Subsystem: ASRock Incorporation Kaveri HDMI/DP Audio Controller         Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+         Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-         Latency: 0, Cache Line Size: 64 bytes         Interrupt: pin B routed to IRQ 43         Region 0: Memory at ff764000 (64-bit, non-prefetchable) [size=16K]         Capabilities: <access denied>         Kernel driver in use: snd_hda_intel         Kernel modules: snd_hda_intel -- 00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 01)         Subsystem: ASRock Incorporation FCH Azalia Controller         Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-         Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-         Latency: 32, Cache Line Size: 64 bytes         Interrupt: pin A routed to IRQ 16         Region 0: Memory at ff760000 (64-bit, non-prefetchable) [size=16K]         Capabilities: <access denied>         Kernel driver in use: snd_hda_intel  Could this image possibly help?:  There is another soundcard but I'm unsure of what its for because it never outputs sound, but it does have a lot of settings: that sound card is labelled as "HD-Audio Generic".   So I went into Software & Updates under the Additional drivers tab and I see this:  It was on Do not use the device so I changed it and applied the settings but unfortunately the soundcard isn't back even after reboot.


In a $2 × 4$ rectangle grid shown below, each cell is a rectangle. How many rectangles can be observed in the grid?   My attempt: I found a formula somewhere, Number of rectangles are $= m(m+1)n(n+1)/4 = 2\times4\times3\times5/4 = 30$.  Can you please explain this?   Upadte - The post  looks similar, but that has $3 \times 4$ grid and I need more variant explanation.


How to show that the following relation is transitive (What is the idea?)

Suppose we consider the following set  $$ X = \big\{ (p,q) : p \in \mathbb{Z} \ \text{and} \ q \in \mathbb{N} \big\}$$  Define the following relation $$(p_1,q_1) \sim (p_2,q_2) \iff p_1q_2 = p_2q_1$$  We can easily verify that this relation is both symmetric and reflexive. I am having trouble many with transitive. The issue that I am having is we can't really "divide". So what we assume is the following:  Suppose that $(p_1,q_1) \sim (p_2,q_2)$ and $(p_2,q_2) \sim (p_3,q_3)$. This means that the following equations are satisfied:  $$p_1q_2 = p_2q_1$$ $$p_2q_3 = p_3q_2$$   We would like to show that the following equation is satisfied: $$p_1q_3 = p_3q_1$$   I am kinda lost in how to do that?


How to optimize objective in the Grassmann manifold?

For Stiefel manifold, it contains all the orthogonal column matrices  $$St(d,M) = \{X \in R^{M \times d} | X^TX = I\}$$  For Grassmann manifold, it is  $$Gr(d,M) = \{col(X), X \in R^{M \times d}\}$$  For an objective problem $$ \min_{X \in St(d,M)} f(X)$$  can we solve above optimization using  $$ \min_{X \in Gr(d,M)} f(X)$$  Is above transform legal? or $f(X)$ should satisfy some conditions?


Is the Mann-Whitney U Test appropriate for assessing the busiest day of the week?

We have ten years of data where the average overall reveals that Monday is the busiest with the most visits to the hospital.   We would like to provide a p-value to support that observation.   Given that the Mann-Whitney U test is a test of the hypothesis that "" - then could use this test to assess that the cohort of "all Mondays" is larger than the cohort of "all other days"?   Would that be an appropriate use of the Mann Whitney U test to provide assess confidence such as p < 0.05?    (NOTE of clarification: This question is different than the answer  as we are not asking for the most appropriate statistic for assessing busiest day which that question asks, instead we are asking specifically whether Mann-Whitney U test is appropriate to use in this particular class of problem.)


Hello so I have this condition:  if (DateTime.Now.Subtract(dateTimePicker_Doc_BirthDate.Value).Days/(365)<18) {     this.errorProvider1.SetError(this.dateTimePicker_Doc_BirthDate, "Atleast 18 years old");     valid = false; }   And I want to make another that contains graduation of this person and set restriction that at the time when he graduat must be atleast 18 years older.  I have tried this: but it does not work  if (DateTime.Now.Subtract(dateTimePicker_Doc_Graduation.Value).Days / (365) < 18 + (18)) {     this.errorProvider1.SetError(this.dateTimePicker_Doc_Graduation, "Atleast 18");     valid = false; }


Software Updater on 16.04 not showing Ubuntu 18.04 update

Software Updater on Ubuntu 16.04 doesn't show Ubuntu 18.04 update. I have checked and all settings are good.  What do I need to do?


How bias arises in using maximum likelihood to determine the variance of a Gaussian?

While reading , I ran into the following explanation for why there is an error in estimating the variance of Gaussian distribution using Maximum Likelihood. On ,      Illustration of how bias arises in using maximum likelihood to   determine the variance of a Gaussian. The green curve shows the true   Gaussian distribution from which data is generated, and the three red   curves show the Gaussian distributions obtained by fitting to three   data sets, each consisting of two data points shown in blue, using the   maximum likelihood results (1.55) and (1.56). Averaged across the   three data sets, the mean is correct, but the variance is   systematically under-estimated because it is measured relative to the   sample mean and not relative to the true mean.   I'm pasting figure 1.15 and the required equations (1.55, 1.56) here for convenience.  $\mu_{ML} = \frac{1}{N}\sum_{n=1}^{N}x_n$   $\sigma_{ML}^2 = \frac{1}{N}\sum_{n=1}^{N}(x_n - \mu_{ML})^2$    I can imagine how maximum likelihood estimation would look pictorially. However, I'm not able to understand the figure or the explanation. I would appreciate if someone could label the figure or explain what points are considered in each part of the figure and why the curve could look like that in each case.  I looked up , and I'm able to understand why there is a factor of $\frac{N-1}{N}$ between the true $\sigma^2$ and $\sigma_{MLE}^2$.  ${\rm I\!E}[\sigma_{MLE}^2]= (\frac{N-1}{N})\sigma^2 $


How to grant apt-get permissions required to install software?

I am new to Linux, can anyone be kind enough to help me know how to install software from the terminal?  I tried to install java by entering the command in the terminal  sudo apt-get install openjdk-7-jdk   but i get errors ,  E:Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E:Unable to lock the administration directory (/var/lib/dpkg/), are you root?   I also tried root  su -   but it says that the password is incorrect, so what is root ?  Advance Thanks for the help Guys.


Edit: I originally asked this question in 2016. This was before the scandals of the Astros and Red Sox came to light, where the teams allegedly used devices such as cameras, smartwatches, and trash can lids. As well as coordinating efforts with non-players. My question never pertained to such methods of sign-stealing, as I believe it should be obvious why this is wrong.      The question was more about what made it unethical for a player to attempt to manually analyze and decipher an opposing team's signs, using nothing more than his IQ of the game, skill, and experience.   My question pertains mostly to baseball, but I imagine it is just as relevant in other sports as well. Every so often I hear about a disgruntled team, accusing the other team of stealing signs. I don't get it. What actually makes it wrong?  This just seems like any other aspect of the competition that is fair game. For example, if a pitcher inadvertently "tips" his pitches, and the other team is smart enough to pick up on it and use that knowledge to their advantage, then it is generally considered a flaw of the pitcher. It is now his responsibility to correct the problem, and improve his skills by becoming more deceptive and unpredictable. I wouldn't blame the opposing team for cheating; I would say they played smart baseball. I'm having a hard time understanding how "decrypting" signals is any different?  Additionally, the coach who creates the signals does so with the intention to obfuscate them as much as possible. Obviously this is to maximize competitive advantage. So does that not imply competition even within this narrow aspect of the game?  Someone help me out please. What makes stealing signs wrong that teams rightfully take exception and feel cheated?


What are character special and block special files in a unix system?

How are character special files and block special files different from regular files in a Unix-like system? Why are they called “character special” and “block special” respectively?


How to typeset the size of multidimensional objects using siunitx?

What I want to write is  The square has a size of \SI{3 \times 4}{\cm\squared}.   However, it does not compile. These may be alternatives, but it's not semantically correct since an area is not determined by a range  The square has a size of \SIrange[range-phrase=$\times$,range-units=single]{3}{4}{\cm\squared}.   nor a list:  The square has a size of \SIlist[list-pair-separator=$\times$,list-units=single]{3;4}{\cm\squared}.   At least the last option generalizes nicely:  The cube has a size of \SIlist[list-separator=$\times$,list-final-separator=$\times$,list-units=single]{3;4;5}{\cm\cubed}.   Is there a semantically correct way of doing this that I have missed in the manual?  \documentclass{article} \usepackage{siunitx} \begin{document}     % The square has a size of \SI{3 \times 4}{\cm\squared}.      The square has a size of \SIrange[range-phrase=$\times$,range-units=single]{3}{4}{\cm\squared}.      The square has a size of \SIlist[list-pair-separator=$\times$,list-units=single]{3;4}{\cm\squared}.      The cube has a size of \SIlist[list-separator=$\times$,list-final-separator=$\times$,list-units=single]{3;4;5}{\cm\cubed}.  \end{document}


Java synchronized static methods: lock on object or class

The Java documentation says:      It is not possible for two invocations of synchronized methods on the   same object to interleave.   What does this mean for a static method?  Since a static method has no associated object, will the synchronized keyword lock on the class, instead of the object?


Unable to resolve "E: Unable to correct problems, you have held broken packages."

In Ubuntu 12.04,I am trying to install less and handlers using npm.While installing npm I found this error  sudo apt-get install npm Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  npm : Depends: nodejs-dev (>= 0.4) E: Unable to correct problems, you have held broken packages.   Please help me to resolve this issue. Thanks for the helping me.


Do electrons really perform instantaneous quantum leaps?

This is not a duplicate, non of the answers gives a clear answer and most of the answers contradict.  There are so many questions about this and so many answers, but none of them says clearly if the electron's change of orbitals as per QM can be expressed at a time component or is measurable (takes time or not), or is instantaneous, or if it is limited by the speed of light or not, so or even say there is no jump at all.  I have read this question:      where Kyle Oman says:     So the answer to how an electron "jumps" between orbitals is actually the same as how it moves around within a single orbital; it just "does". The difference    is that to change orbitals, some property of the electron (one of the ones described by (n,l,m,s)) has to change. This is always accompanied by emission or absorption of a photon (even a spin flip involves a (very low energy) photon).   and where DarenW says:     A long time before the absorption, which for an atom is a few femtoseconds or so, this mix is 100% of the 2s state, and a few femtoseconds or so after the absorption, it's 100% the 3p state. Between, during the absorption process, it's a mix of many orbitals with wildly changing coefficients.      where annav says:     A probability density distribution can be a function of time, depending on the boundary conditions of the problem. There is no "instantaneous" physically, as everything is bounded by the velocity of light. It is the specific example that is missing in your question. If there is time involved in the measurement the probability density may have a time dependence.   and where akhmeteli says:     I would say an electron moves from one state to another over some time period, which is not less than the so called natural line width.     where John Forkosh says:     Note that the the electron is never measured in some intermediate-energy state. It's always measured either low-energy or high-energy, nothing in-between. But the probability of measuring low-or-high slowly and continuously varies from one to the other. So you can't say there's some particular time at which a "jump" occurs. There is no "jump".     where annav says:     If you look at the spectral lines emitted by transiting electrons from one energy level to another, you will see that the lines have a width . This width in principle should be intrinsic and calculable if all the possible potentials that would influence it can be included in the solution of the quantum mechanical state.   Experimentally the energy width can be transformed to a time interval using the Heisneberg Uncertainty of   ΔEΔt>h/2π   So an order of magnitude for the time taken for the transition can be estimated.     So it is very confusing because some of them are saying it is instantaneous, and there is no jump at all. Some are saying it is calculable. Some say it has to do with probabilities, and the electron is in a mixed state (superposition), but when measured it is in a single stable state. Some say it has to do with the speed of light since no information can travel faster, so electrons cannot change orbitals faster then c.  Now I would like to clarify this.  Question:   Do electrons change orbitals as per QM instantaneously? Is this change limited by the speed of light or not?


Why $\int _c^df^{-1}\left(y\right)\:dy+\int _a^b\:f\left(x\right)dx=b\cdot d-a\cdot c$?

Why $\int _c^df^{-1}\left(y\right)\:dy+\int _a^b\:f\left(x\right)dx=b\cdot d-a\cdot c$ ? where f is an bijective function and $f(a)=b,f(c)=d,$ I don't understand graph... I can't see on graph this equality, so have somebody patience to explain me on graph this equality?  I think it is not duplicate, because he wants a rigorous proof, not a draw, and I want to understand from graph, I think is not duplicate... I don't know why they think is duplicate


As a Moroccan citizen travelling from Budapest to Morocco with a layover in UK for 8 hours do I need a visa to transit?

I am a Moroccan citizen travelling from Budapest to Morocco with a layover of eight hours at London Stansted Airport. I only have cabin baggage and have a Ukrainian passport (mentioned in case it helps in something :) )  Do I need a visa to transit?


What is the different between an Normal and Admin account?

What is the different between an Normal user account and the Admin account in Ubuntu?  You must always enter your password if you want do something. Can you give a Normal account  "limitations" to do not install or remove anything or to not open any program? Can you also "hide/deactive" the terminal and console for a normal user?


Uncertainty principle and multiple observers

My understanding is that an observer can measure the precise location of a particle so long as the corresponding uncertainty in momentum measurement is not an issue and vice-versa.    Say there is such an observer, interested in the precise position of a particular particle.  Now, consider a second, independent observer, unbeknownst to the first, who is trying to measure the exact momentum of the same particle without caring about the position.  As a thought experiment, we assume that the two observers are somehow able to access the same particle at the same time in some way without being aware of each other.  Can both observers get their desired results?


I am trying to master the homemade Neapolitan pizza, from dough preparation to cooking it.  After following the recommendations at Seriouseats.com for the dough preparation, I came across some doubts regarding the oven use.  I understand that ideally I would make it in a 900F wood oven, but at home we don't have such equipment!  What is the best practice to make the Neapolitan Pizza in a regular gas oven that heats up to 530F? (i.e. temperature, time, tray positioning...) Are there changes in the way the dough has to be prepared?


For a gain of +$X on the underlying security, would the gains on a single LEAP be identical to the gains on 100 shares of that security?

I have 100 shares of stock X which I am very long-term bullish on, and lately I've been considering selling those 100 shares and buying a LEAP for as far out as possible instead. The furthest I can buy expires in January 2020.  But I'm not positive that if the stock went up $100 between now and January 2020, that I would make the same amount as I would just owning my 100 shares.  How can I calculate it to be sure? I know the option greeks but don't they change over time? Or is it that once you've bought one, they stay the same for the duration of ownership? Do I need to pull out some Black-Scholes for this?  For instance, if I own 100 shares and the stock moves up $100, I gain $10,000 (100 x 100). But if I owned a single LEAP, would I have gained $10,000? I suppose it depends on the delta....see, here's where I get stuck. I don't know.


Re-locating points randomly at certain distance in QGIS

I have GPS coordinates which identify aid projects in Africa. Now, I want to re-locate these projects, such that each project is re-located by 100 km in a random direction from its original location. (Extra: I have country layers; can I force QGIS to re-locate only within the original country?) I tried the Virtual Layer & Geometry Generator, both didn't work so far. Any leads? I use QGIS 3.14.15.


How to print files containing asterisks?

I have a sample text file as shown below. I want to read the file and print each line on the terminal. I wrote a sample shell script test_sample.sh.  The directory containing the shell script and text file contain others files too. When I run the shell script. It works fine, but the command output is mixed with output of the files residing in the directory.  % ./test_sample.sh sample.txt == abc == abc.txt readme.txt sample.txt test_sample.sh I have a car. abc.txt readme.txt sample.txt test_sample.sh My car is clean.   Question is how do I get to print just the lines of the text file?  test_sample.sh  #!/bin/bash fname=$1 while read p; do     echo $p done < $fname   sample.txt  == abc ==  * I have a car. * My car is clean.


Eeeek! SE Android app crashes a lot after latest beta update (v1.0.66)

The latest beta update made the app crash a lot:   when I press 'Add comment'. after deleting a comment. after up/down/unvoting a post (happened when I upvoted an answer) after editing a post (but the edit is applied).   Spec: Nexus 5 on Lollipop 5.1.1, SE App v1.0.66 (beta)


Modulo division: Find all integers $k \geq 2$ such that $k^2 = 5k(\mod 15).$

Find all integers $k \geq 2$ such that $k^2 = 5k(\mod 15).$  Using arithmetic on $\mathbb{Z}_{15},$ $\bar{k}^2 = \bar{5}\bar{k},$ may I divide both sides by $\bar{k}$ to arrive at $\bar{k} = \bar{5}?$


how to connect to sqlite database in android studio?

I created a sqlite database (mydb.db) using sql browser then I created assets folder in the android application and added the mydb.db file on it.  How to connect to this database? I use this code, but it doesn't work properly.  SQLiteDatabase db; db = openOrCreateDatabase("DataBase.db",     SQLiteDatabase.CREATE_IF_NECESSARY, null);  Cursor c = db.rawQuery("SELECT * FROM user", null); c.moveToFirst(); while(!c.isAfterLast()) {     Toast.makeText(this, c.getString(0) + " " + c.getString(1), Toast.LENGTH_SHORT).show();     c.moveToNext(); } db.close();


Find, with proof, all functions $f:\Bbb N \to \Bbb N$ such that for all $n \in \Bbb N, f(n) + f(f(n)) = 2n+3$. Any ideas?


Why is $H_\delta^d$ monotone decreasing in $\delta$ in the definition of Hausdorff measure?

In trying to understand the definition of Hausdorff dimension I'm trying to get a good understanding of Hausdorff measure. On wikipedia they first make the following definition (:     Let $(X,d)$ be a metric space, $S$ be any subset of $X$ and $\delta>0$   be a real number, then define      $H_{\delta }^{d}(S)=\inf {\Bigl \{}\sum _{{i=1}}^{\infty  }(\operatorname {diam}\;U_{i})^{d}:\bigcup _{{i=1}}^{\infty  }U_{i}\supseteq S,\,\operatorname {diam}\;U_{i}<\delta {\Bigr \}}$.   Then we take $\lim_{\delta\to 0} H_{\delta }^{d}(S)$ as a definition of $d$-dimensional Hausdorff measure.  What I am stuck on right now is the motivation for this limit that they give saying:  "Note that $H_{\delta }^{d}(S)$ is monotone decreasing in $\delta$, since the larger $\delta$ is, the more collections of sets are permitted, making the infimum smaller."  As I understand it we are taking the infimum over a set of sums of all the diameters of each set in a cover. Now say we increase $\delta$ so that we can cover $S$ with a $\delta$-ball. Then how is increasing $\delta$ even more going to permit a cover with an even smaller "total diameter" than before? I might have forgotten or misunderstood something trivial but I don't see why the infimum would necessarily change by allowing "bigger" sets in the covers.   In conclusion my question is:  Q: Will someone give an explanation to why the statement made in the above quotation is true (and/or preferably give some intuition for it)?  (My level is undergraduate.)


Why are two functions from class.h not recognized on class.cpp?

I'm starting with C++ and maybe this isn't the best way to submit the question, just tell me if so.  I'm having a problem with two functions on GraphImp.h, I've implemented them on GraphImp.cpp and used the suggested firm from Visual Studio yet it won't recognize it, when I try to create a new graph it will tell me it's an abstract class.  GraphImp.h  #ifndef GRAPHIMP_H #define GRAPHIMP_H  #include "Iterable.h" #include "FuncionHash.h" #include "FuncionCosto.h" #include "Tupla.h" #include "Array.h" #include "Lista.h" #include "ListaOrdEnc.h" #include "Grafo.h" #include "ColaPrioridad.h" #include "FuncionCosto.h" #include "Tabla.h" #include "TablaAbierto.h"  typedef unsigned int nat;  template <class V, class A> class GrafoImp : public Grafo<V, A>{ public:      Matriz<bool> AdyacentMatrix() const;         void LoadEdges(Puntero<ColaPrioridad <Tupla<V, V, A>, int>> cola, const FuncionCosto<V, A>& costo) const;  private:     ... };   #include "GraphImp.cpp" #endif   GraphImp.cpp:  #ifndef GRAFOIMP_CPP #define GRAFOIMP_CPP  #include "GrafoImp.h"  template<class V, class A> Matriz<bool> GrafoImp<V, A>::AdyacentMatrix() const {     Matriz<bool> output = Matriz<bool>(vertices.ObtenerLargo()); foreach(Tupla<V, V, A> arista, aristas->ObtenerIterador()) {     int i = this->ObtenerIndice(arista.ObtenerElemento1());          int j = this->ObtenerIndice(arista.ObtenerElemento2());     output[i][j] = true; } return output; }   template<class V, class A> void GrafoImp<V, A>::LoadEdges(Puntero<ColaPrioridad<Tupla<V, V, A>, int>> cola, const FuncionCosto<V, A>& costo) const{     ... }   Graph.h  #ifndef GRAPH_H #define GRAPH_H  #include "Iterable.h" #include "FuncionHash.h" #include "FuncionCosto.h" #include "Tupla.h" #include "Array.h" #include "Lista.h" #include "ListaOrdEnc.h" #include "Matriz.h" #include "ColaPrioridad.h"  enum TipoConexo  {     NO_CONEXO, DEBILMENTE_CONEXO, FUERTEMENTE_CONEXO };  typedef unsigned int nat;  template <class V, class A> class Graph abstract  { public:     ...     virtual Matriz<bool> AdyacentMatrix() const abstract;     virtual void LoadEdges(Puntero<ColaPrioridad <Tupla<V, V, A>, int>> cola, const FuncionCosto<V, A>& costo) const abstract; };  #endif   Sorry about the spanish, I've translated the essentials so I think it will be legible ;)


How come Naruto is in same year as Sasuke even after failing graduation 2 times?

In academy graduation, Iruka said to Naruto that you fail graduation last year and year before that. Then how come he is in same year as Sasuke and Others. Thus that means Naruto is older then all ?


Where can I learn "everything" about strange attractors?

I have a (possibly very) limited math background, but I would like to find a book, website, or other type of work that will teach almost everything about strange attractors.  As a motivating example, I found a recurrence of the following form:  $$x_{n+1} = a x_n + y_n$$ $$y_{n+1} = b + (x_n)^2$$    I'm very interested in finding more exact values (for $a$ and $b$) for the recurrence, and knowing how to do this.  I'd also like to be able to prove that this defines a strange attractor.  So anything that would allow me to do this would be great, but I'd be especially interested in finding a "Bible" on chaos and strange attractors, kind of like Artin's Algebra, Herbert Wilf's Generatingfunctionology, or some other work that can be considered to be the guide to the subject.


Why do I only hear sound from the speakers with A2DP headset connected?

I have a  bluetooth stereo headset (using A2DP) I'd like to use on my Lubuntu machine. The headset works fine with my phone.  Please note that unlike all other Ubuntu flavours, Lubuntu does not come with Pulseaudio.  It is detected by Lubuntu's Blueman Bluetooth configuration application and I can establish a connection successfully. It also appears to actually communicate as it shows data being sent back and forth. However, Sound keeps coming out of the loudspeakers only, while the headset remains silent. I would have expected the sound to come from my headset at this point.  Where do I start troubleshooting here?


Could it ever be possible to generate small gravitational waves?

Would it ever be possible to make a device that could generate small,short gravitational waves?  If so, it would then be possible to use artificial gravitation for space travel.  Assuming that gravitational waves would be longitudinal -1st half of wave, slightly compressed space-time, to 2nd half, slightly rarified space-time. Were it possible, then with say 3 such devices focus these waves so that the rarified portions (sic) converge. Were that possible, you would then create a "pseudo-gravity" source. A vehicle could then "lift itself up by its own bootstraps." But could such a thing as a "gravitational wave generator" ever be built?


Clarify terminology regarding truncated and censored distributions

I'm looking for clarification on the definition of truncated distributions and on terminology for censored distributions and truncated distributions. I recently had a [dialog on SO][1] regarding [a relatively ancient posting by Prof. Brian Ripley on Rhelp][2] where Ripley had suggested dividing a Weibull density by the Weibull cumulative mass function (CMF) ( in R: pweibull(trunc_point, shape , scale ) ) evaluated at the truncation point.  After looking at it a bit longer I decided he probably meant instead to use the expression 1-pweibull(trunc_point, , ) as the denominator for a left-truncated distribution.   After looking at the original posting I see that he included the argument lower=FALSE, so the CMF was being evaluated as I thought it should be with the function value being integral of the density to the left of the first argument. My efforts at levity were not appreciated and I've answered my question, but I see no means of deleting a question which I have now answered for myself.


proving the inequality $\frac{1}{\sqrt[n]{1+m}}+\frac{1}{\sqrt[m]{1+n}}\ge 1$

I wish to prove the following inequality:  $$\frac{1}{\sqrt[n]{1+m}}+\frac{1}{\sqrt[m]{1+n}}\ge 1$$  I tried to use different ideas, I tried using squeeze theorem or assuming $m\gt n$ and working my way from there, but I did not manage to prove this inequality.   Any suggestions?


I would like to know if there is a way to get the a "tree-menu" on Ubuntu like in windows (see printscreen)?   I look for a solution where the user could chose any file as start point (for instance startup of the tree-menu could be /etc/emacs  or var/www/htlm  or /opt/   ...)  The number of tree-menu should be multiple : on the printscreen I have 3 tree-menu : 1"documents" 2"owncloudLA" and 3"BACKUP_AD".   I am using ubuntu 14lts.


Can you change your mind after discarding during Monolith Arena?

In Monolith Arena, :  after the tiles have been drawn, the player must DISCARD ONE OF THE THREE TILES into the discard pile.  This is during the player upkeep step, so the sequence of events:  Draw three tiles Discard one tile Consider the remaining tiles and potentially play them  Is it against the rules to retract the discarded tile or change your mind, directly after discarding it, without input from the other player(s)? Asking for a friend.


Set space after inline code environment which ends with a space in comments

When writing comments, it is possible to write a space after the last character of the code so that it looks like A:<space>. When writing it within a question, however, it does not work.  But there is another problem which occurs when writing something like this in comments. There, it will look like A:<space><end of inline code><no space although " " was written><normal text> Note that there is no normal space between the space written within the inline code environment and the ongoing normal text. I would like to have a normal space after the end of the code block, too.   only answers one part of the problem: Inline code in a question. &lt;a&nbsp; produces <a  and there is a space behind <a  if it is set.  For comments, however, &lt;a&nbsp; does not work. Using the NO-BREAK-SPACE as suggested in  to this question does not work either.


Computing the limit $\lim_{n \to \infty} \sum_{k=1}^{n} \sqrt{n^4+k}\sin \frac{2k \pi}{n}$

I'm pretty sure this is a Riemann sum, but I can't solve it. I tried to write it as the integral of a function which equals the product of $\sin(2 \pi x)$ and something, but so far it didn't work.  $$\lim_{n \to \infty} \sum_{k=1}^{n} \sqrt{n^4+k}\sin \frac{2k \pi}{n}$$


Why B-tree indexing is used instead of hash based indexing?

I have an employee table which has index on name. I want to understand how Oracle works at high level   My understanding based on resources mentioned below:-  DB constructs the index table/map where it will keep the name in sorted fashion with memory location as the value.  Question :-   My question is will oracle bring all index table/map entries in memory from disc and then do the binary search  or is it the search at disc level without bringing all index table records in memory? If I compare this approach with Java based data structures, Oracle is maintaining the TreeMap of column where key is employee name and value is memory location of that entry. So to find any entry, look up time will be log(n). My question why not DB/oracle takes hash based approach where it keeps the hashtable where it calculate the memory location based on name value and put the entry there. So lookup time to find entry will be O(1) .   Resources I referred


set -u finds unset value in heredoc in bash script

I have a script that I've simplified here:  #!/bin/bash # test.sh  set -u  ### test-script ### cat <<SCRIPT > ~/test-file-output #!/bin/bash set -e  usage() {   cat <<EOF Does a thing EOF }  for opt in "$@"; do   case $opt in     -h|--help)       usage       exit 0       ;;     *)       echo "Invalid option: $opt" >&2       usage       exit 1       ;;   esac done SCRIPT chmod +x ~/test-file-output   and because the parent script has set -u it is catching the opt var in the child script in the heredoc; the child script sets opt to the value of $@.  Is there a way to get it to ignore all the vars and text in the heredoc since it's not part of the parent script itself? I thought it would treat the heredoc as a giant string and not parse it according to script syntax.


How can I log terminal output to a file but leave the terminal window active to allow answering of prompts?

I am trying to run a big script that prompts for answers along the way. I want to run it in verbose mode and thus there will be significant output and I'd like to capture it.  Therefore I'd like to run it in a way that allows me to answer the questions as well as sending the output to a file.  Can this be done ?  Thanks.  Mike


Why do these two ways of understanding constant acceleration give different results?

I have a question pertaining to the concept of acceleration and it's formula - Both seem to give me different answers.  I was asked:     A train is moving at a velocity of $20\ \mathrm{m/s}$. It hits the breaks and starts slowing down at the rate of $8\ \mathrm{m/s^2}$. How long does it travel before coming to a stop?    $a=-8\ \mathrm{m/s^2}$ $u=20\ \mathrm{m/s}$ $v=0$ $s=?$ (Displacement is asked)   According to the formula of $s= \frac{(v^2-u^2)} {2a}$, answer I got was 25 meters.  BUT!  My concept of acceleration explains me this :    According to my intuition of acceleration and velocity, when  an object is said to be accelerating at $-8\ \mathrm{m/s^2}$, it means that with every passing second, it's velocity will reduce $8\ \mathrm{m/s}$. So,   At 1st second - Velocity = $20\ \mathrm{m/s}$ - It'll travel 20 meters. At 2nd second - $v = 20\ \mathrm{m/s}-8\ \mathrm{m/s}=12\ \mathrm{m/s}$ -  Train travels 12 meters At 3rd, it travels 4 meters. At 4th, it halts.   So total is 20+12+4 = 36 meters. It travels 36 meters before halt.  Where am I going wrong in my conceptual understanding, I really don't understand!


Ignore watermarked stock pictures from image search

When I search for images on Google, mostly it gives results related to stock websites with watermarked images. I want these sites to be ignored when I perform a search—is there any possibility to do it?


Prove or disprove 'If $\gcd(a,b)=1$ then, $\gcd(a^2,b^2)=1$, with $a,b\not= 0$'  I need to prove this statement. I think it is true and also the converse is true.  I took some examples such as $\gcd(2,5)=1$, and $\gcd(4,25)=1$...  But how can I prove this? I know that $1=ax+by$ for some $4x,y\in \mathbb{Z}$.. But not sure   How to go from there..   Any clue?


Can`t run spark app because of java.lang.NoClassDefFoundError: org/postgresql/Driver

I can`t run mt Spark app because  java.lang.NoClassDefFoundError: org/postgresql/Driver  I did same like  but when I try to start my app I get this Exception.  Exception in thread "main" java.lang.NoClassDefFoundError: org/postgresql/Driver     at SparkRecommendationMatrix.<init>(SparkRecommendationMatrix.scala:31)     at Main$.main(Main.scala:26)     at Main.main(Main.scala)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:606)     at org.apache.spark.deploy.SparkSubmit$.launch(SparkSubmit.scala:292)     at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:55)     at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala) Caused by: java.lang.ClassNotFoundException: org.postgresql.Driver     at java.net.URLClassLoader$1.run(URLClassLoader.java:366)     at java.net.URLClassLoader$1.run(URLClassLoader.java:355)     at java.security.AccessController.doPrivileged(Native Method)     at java.net.URLClassLoader.findClass(URLClassLoader.java:354)     at java.lang.ClassLoader.loadClass(ClassLoader.java:425)     at java.lang.ClassLoader.loadClass(ClassLoader.java:358)     ... 10 more   My bild.sbt file:  name := "untitled12"  version := "1.0"  scalaVersion := "2.10.4"  libraryDependencies ++= Seq(   "org.postgresql" % "postgresql" % "9.2-1003-jdbc4",   "org.apache.spark" % "spark-mllib_2.10" % "1.0.0" )  resolvers += "Akka Repository" at "http://repo.akka.io/releases/"   and my java code   val classes = Seq(     getClass, // To get the jar with our own code.     classOf[org.postgresql.Driver] // To get the connector.   )    val jars = classes.map(_.getProtectionDomain().getCodeSource().getLocation().getPath())    // set up environment   val conf = new SparkConf().setAppName(name).setJars(jars)   //.setMaster("spark://192.168.10.122:7077")   val sc = new SparkContext(conf)


Is this reply promising a money order and cashier check a scam?

Lately, I have been tied up with my moving soon, among others. I got a reply from my ad for moving sale at craigslist, the author of which claims to be currently living on the other side of Atlantic ocean:     Hi, Thanks for your response. I'm going on a vacation to London but I   will instruct my assistant to prepare and mail your payment which I'm   sure you will get in about 4 - 6 business days. I'll add $20 extra for   the delay. I'll pay by M O or cashier check so send me your info (i.e   full name, mailing address and your phone number) so payment can be   mailed out immediately. I will also make arrangement for pick-up which   will be after you must have received and cashed the payment. Awaiting   your info. Thanks   I have seen similar scams before, but they send checks instead of money order or cashier check. I later learned that checks are not guaranteed for the payment, but cashier checks and money orders are, since they are made when the payer pays first to the finance institutes that issue cashier checks and money orders. So how can the quoted scam that promises to send me cashier check or money order work, I wonder?  Thanks!


I would like to dissolve only polygons that are adjacent to one another.  Ultimately I would like to start with a raster representing landscape patches and delineate the separate patches.  Here is my example, drawing from the raster::rasterToPolygons function in R:  r <- raster(nrow=18, ncol=36) set.seed(999) r[] <- runif(ncell(r)) r <- r > 0.7 pol <- rasterToPolygons(r, fun=function(x){x==1}) pol.union <- rasterToPolygons(r, fun=function(x){x==1}, dissolve=T)  plot(r) plot(pol, add=T)  plot(r) plot(pol.union, add=T)   Without using the dissolve=T argument in rasterToPolygons, it returns a single polygon for each pixel where r==1 (189 polygons).  If I use dissolve=T it dissolves all of these into a single polygon.  What I want is something in between where each non-adjacent patch is it's own polygon (it would look like pol.union when plotted but would contain more than one polygon).  I believe what I want is to take pol and dissolve only the adjacent polygons.  I realize that this may require some input as to what is considered "adjacent" (i.e., whether only polygons sharing a boundary are considered adjacent or if polygons sharing a single point are considered adjacent).


What are the antonyms of "append" and "prepend"?

I need the antonyms for "append" (that is, I need a word that means "to remove at the end", since "append" means "to add at the end") and "prepend" (that is, I need a word that means "to remove at the beginning", since "prepend" means "to add at the beginning"). Do those words exist?  Would it be possible to use "behead" in a general context or is it limited to killing somebody?


Why is lookDev mode not working in blender 2.9

Good day, I recently upgraded to blender 2.9 and my lookdev mode (material preview mode) is not rendering at all. I can see how my materials look in render view mode but in lookdev my materials just appear grey like in the picture I attached. This is my lookDev view (material preview)  Here is my render view perfectly working  I did some research and found that I am not  the only one facing the issue. I even upgraded my blender version (it was suggested as a possible solution) but that didn't solve the problem. I am using an HP laptop. May anyone please help me with my predicament. Thanks in advance


Every subspace of a vector space has a complement

I want to see if my proof is true or I thought very trivially?    If $H$ is a subspace of a finite dimensional vector space $V$, show there is a subspace $K$ such that $H\cap K=0$ and $H+K=V$    So far I have tried :    $H\subseteq V$ is a subspace $\Rightarrow\,\exists\;K=(V-H)\subseteq V$ $K$ is a subspace because it's the sum of two subspace $V$ and $(-H)$ Now we should prove that $H\cap K=0$ We assume $H\cap K\neq0\Rightarrow\exists\,\vec u\neq0\,,\,\vec u\in H\cap K$ $\vec u\in H\cap K\Rightarrow \begin{cases}\vec u\in H\\\vec u\in K\,\Rightarrow\vec u\in V-H\Rightarrow\vec u\in V,\,\vec u\notin H\end{cases}$ That's a contradiction so our hypothesis was wrong and $\vec u=0$


How to search a value in all tables in a database in sql server

I want to get all the tables and column name having 'Hedge' as a column value. How can I find them?


Unit test is throwing a linking error when functions are defined in .cpp file and compiles successfully when defined in .h file

I am trying to implement my own vector data structure. The code works fine, but when I write my unit tests, there is a linkage error where inside my unit test, the code is not getting linked  Upon encountering this error, I tried accessing a public data member of the class. I also tried accessing the member function which was defined in the header file instead of the source file. These two methods seem to work successfully.  CODE SNIPPET FROM THE UNIT TEST     GIVEN("A vector with some items") {     MyVector<int> v(5);     REQUIRE(v.capacity_ == 5); //works     REQUIRE_NOTHROW(v.test()); //DOESN'T WORK     REQUIRE(v.size() == 5);    //DOESN't WORK    } }   CODE SIPPET FROM THE SOURCE FILE:  /***  * Size of MyVec  * @tparam T  * @return Type int  */ template<class T> int MyVector<T>::size() {   return this->size_; }  // Sample test function template <class T> void MyVector<T>::test() {   return; }   /tmp/ccgR8GPW.o: In function `____C_A_T_C_H____T_E_S_T____0()': tests_vector_impl.cpp:(.text+0x25ce2): undefined reference to MyVector<int>::test()  tests_vector_impl.cpp:(.text+0x25dbc): undefined reference to `MyVector<int>::size()' collect2: error: ld returned 1 exit status```


Problem with dependencies installing packet tracer 7.3 in Ubuntu 20.04

I download the deb package from the official cisco's page, before run sudo dpkg -i PacketTracer_730_amd64.deb I get this error:  Selecting previously unselected package packettracer. (Reading database ... 500916 files and directories currently installed.) Preparing to unpack PacketTracer_730_amd64.deb ... Unpacking packettracer (7.3.0) ... dpkg: dependency problems prevent configuration of packettracer:  packettracer depends on libdouble-conversion1; however:   Package libdouble-conversion1 is not installed.  packettracer depends on qt-at-spi; however:   Package qt-at-spi is not installed.  dpkg: error processing package packettracer (--install):  dependency problems - leaving unconfigured Processing triggers for bamfdaemon (0.5.3+18.04.20180207.2-0ubuntu2) ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for gnome-menus (3.36.0-1ubuntu1) ... Processing triggers for desktop-file-utils (0.24-1ubuntu2) ... Processing triggers for mime-support (3.64ubuntu1) ... Processing triggers for gnome-icon-theme (3.12.0-3) ... Processing triggers for shared-mime-info (1.15-1) ... Errors were encountered while processing:  packettracer   when I search for those package libdouble-conversion1 and qt-at-spi seems like they aren't compatible with Ubuntu 20.04 and aren't in the default ubuntu repositories.  How can I install this dependencies?


I have an hard disk with 4 primary partitions used to dual boot Ubuntu and Windows, but I have 300 GB of unallocated space.  How can I use it?


What is the procedure to use ISCAS-85 benchmark Circuits for testing?

Could you please explain the detailed procedure about using ISCAS-85 benchmark Circuits for testing available at the below link   How do we start, could you please explain in detail the steps how to use it


I'm running Ubuntu in a dual boot with Windows 10. I wanted to install Counter strike Global offensive on Ubuntu, but it's not letting me because it's telling me "Not enough space...".   Is there any way I can add more space so that I can install it? I only have 6.8GB and the game itself has 13GB. I have tried reinstalling Ubuntu by using USB Boot. I have Ubuntu 16.04 and I'm new to all this. I don't really know much about it.


Linkediting error that I can't detect myself

I get these errors and I can't understand why:  Source.cpp #include <iostream> #include "priority.h"  int main() {     PriorityQueue test(std::vector<int> {1, 2, 3}); }  priority.h #pragma once #include <vector>  template <typename T> struct PriorityQueue {     std::vector<T> heapMin;      PriorityQueue();     PriorityQueue(std::vector<T>);     void minHeapfy(int);     /*void insertElement();     T priorityMax();     T priorityExtractMax();*/ };  priority.cpp #include "priority.h" #include <algorithm>  template<typename T> PriorityQueue<T>::PriorityQueue() { }  template<typename T> PriorityQueue<T>::PriorityQueue(std::vector<T> initializare) : heapMin(initializare) { }  template <typename T> void PriorityQueue<T>::minHeapfy(int pozitie) {     int st = pozitie * 2 + 1, dr = pozitie * 2 + 2;     int imin = pozitie;     if (st < heapMin.size() && heapMin.at(st) < heapMin.at(imin))     {         imin = pozitie;     }     if (dr < heapMin.size() && heapMin.at(dr) < heapMin.at(imin))     {         imin = pozitie;     }     if (imin != pozitie)     {         swap(heapMin.at(pozitie), heapMin.at(imin));         minHeapfy(imin);     } }  I thought that there might be wrong with the initializing list, and I deleted it, but I still get the error. Why is that? This is my first time using templates, so if I'm doing something wrong with them, please guide me. Thanks:)


I am having trouble understanding what defines Entailment operator. On Mathoverflow I posted this question on what I perceive to be .  Consider: :     P therefore Q  P            Therefore, Q   My question is could we have arbitrarily defined it such as:     P therefore Q  P            Therefore, P   However, if an advanced civilization receives information in the form of following nested structures/containers or packets, how will they interpret Modus Ponens if in an alien land Modus Ponens is not defined?    Therefore, it raises the validity of MP. How do we define the implication or entailment operator? Because if we use an argument that relies on implication or entailment operator ipso facto, then it is trivial that logic is circular.  Is there a flaw in my rationale?


When I vote to close using the Android app, it says "Flag submitted"

As the title says, when I cast a close vote using the Android app, it shows a mesage saying "Flag submitted":    It should say "Close Vote submitted" instead, or maybe "Your vote has been recorded" like on desktop. Apparently, this , but it seems it has reappeared.  Also, the button on the dialog you get when entering a custom close reason also says "Flag" - it should say "Vote to close" or something like that instead.


Let $N$ be a normal subgroup of $G$. Let $G/N = \{gN : g \in G \}$. Show that the $(G/N, \circ, 1_{G/N})$ is a group, where:  $\circ : G/N \times G/N \rightarrow G/N$ is defined by $(gN \circ hN) = ghN$ and $1_{G/N} = 1*N$.  Thanks for your help.


Can a form tell if there are any modal windows open?

How, being inside the main form of my WinForm app can I tell if there are any modal windows/dialogs open that belong to the main form?


Unable to use built in events (Event Reference)

Salesforce has functions that do a lot of basic web app functionality for you, called Event Reference. They can be found here   On the editRecord Event Reference, found here   essentaily, I create a   <ui:button label="Edit" press="{!c.editRecord}"/>   on my component, reference the attribute on the page and add the function from the docs in the controller  editRecord : function(component, event, helper) {     var editRecordEvent = $A.get("e.force:editRecord");      console.log("record id is: " + component.get("v.item.Id"));     console.log("editRecordEvent value is: " + editRecordEvent);      editRecordEvent.setParams({         "recordId": component.get("v.item.Id")     });      editRecordEvent.fire(); }   correct?  Here is the odd thing. From the console.logs, I get the record id, but the editRecordEvent returns undefined. What is going on? Is there something I need to reference in my component to use Event Reference?


Can I sacrifice creatures that are attacking before they are blocked?

If I declare my attackers as two 1/1 goblins, and my opponent declares his blockers as two 2/2 cards, before the creatures deal damage to each other, can I sacrifice my goblins to ? The 2/2 cards would still have 2 toughness before  triggered. None of the abilities require attacking as a trigger, so let's just say I was "testing the waters" and if one of my goblins was blocked, I would have sacrificed it and the other would have attacked.


Collective Noun "jury" with plural phrase, singular or plural?

Curious if this textbook example is correct. According to the textbook, "are" is incorrect and "is" should be used instead. Why is this?     After days of testimony, the jury, including its two alternative members, are in deliberations and expected to deliver a verdict this afternoon.   (not naming the textbook so it makes cheating harder)  I would understand if the sentence lacked the including its two alternative members phrase, but I think that the inclusion of the plural phrase would require a verb which agrees with a plural subject. In this special case, how does the rule apply? Why?


I am struggling to understand the concept of a "light wave" From what I understand, when a charged particle accelerates, it creates a disturbance in electromagnetic field that travels through space. Is a photon a single oscillation then? Often times we are shown "light waves" being created by something that is continuously oscillating, so is each oscillation its own photon?  The graphics I've seen of light waves often show many many sinusoidal oscillations in the E and B field, is this one photon as it moves through time or is this many disturbances in space?  Basically trying to visualize what happens when a photon is created. I feel comfortable with the idea of oscillating electric and magnetic fields but can't quite rap my head around whether a photon is a single piece of energy or the composition of many oscillations? Does this oscillation create a disturbance that moves in a single direction (perpendicular to direction of acceleration) or all directions (like a pebble dropped into a pond?)  Apologies if these questions are a bit convoluted, struggling to rap my head around what's happening.   Thanks so much!


Workspaces vertically and horizontally disposed

On Ubuntu 18.04, is there a way to have 4 workspaces in a 2x2 disposition not in 1x4?


What canon evidence is there that Stormtroopers are/are not still clones?

Reading this article about , my nerd-rage started flaring as they claimed that Stormtroopers were still Fett-Clones 20 years after the rise of the Empire.  As I started thinking about it, I realized that everything I had read saying that Modern-Day Stormtroopers not being clones was from the EU - C Level books or games.   One of the quotes often cited for backing the idea that the Stormtroopers are clones comes from Princess Leia:     Aren't you a little short for a Stormtrooper?   But through the movie, paying close attention, Stormtroopers are often shown to be slightly different heights. One even hits his head in the doorway while others walk through uninjured.                                  Is there any G Canon fully canon (non-Legends/Infinities) evidence to support the idea that Stormtroopers are, or are not still clones at the time of Episode IV?


. I am reposting here to add visibility to the issue.    The URI detector breaks when it encounters a degree symbol (°) or U+00B9:  °08'06.5%22S+59°54'08.7%22W/@-3.1351316,-59.9374329,14z  The link was copied and pasted from the browser's address field. This problem is exacerbated on travel since we often link to Google maps.


Is possible to use 2 normal maps on the same model?

I can use to texture a model the normal map of the model and also the normal map of the material/texture ?(This is correct or i am thinking  wrong?).  FOR EXAMPLE : I have a brick and a coppy it to create details ,some cracks,and than i create a normal map.I waht to add also a texture(normal map) to give a porous look.Is this possible?


How does a Panasonic Lumix FZ1000 compare with a Canon EOS 1000D?

I have the chance to get a Panasonic Lumix FZ1000 (as a gift from my employer, of my choice), how does this compare with the camera I have, a Canon EOS 1000D ?  My Canon works perfectly well, but is the Panasonic Lumix FZ1000 a good one to upgrade to ? As you can probably tell I dont know much about cameras, although I do take a lot of photos, travel photos, landscapes but also candid portraits so a better zoom would be good...


What does a linear transformation do to a vector in $\mathbb{R}^2$

$\newcommand{\Reals}{\mathbb{R}}$Doing some linear algebra. This question has me intrigued. I imagine it causes the vector to rotates the $x$ axis. But I mean, is there more to it?  $$ T_{A(\theta)}: \Reals^2 \to \Reals^2,\qquad A(\theta) =  \left[\begin{array} {rr}\cos \theta & -\sin \theta \\   \sin \theta & \cos \theta \\ \end{array}\right]. $$ What, geometrically, does the linear transformation $T_{A(\theta)}$ do to a vector in $\Reals^2$?


Why does the NameError occur despite globally declaring the variables

The first function(widget_cancel) is used to remove the widgets from a gui using tkinter. The second function is used to create the labels and entry widgets in the gui. The problem that I am facing is that despite globally declaring the variable names in the second function(adding) …I seem to be getting a error while calling the first function(widget_cancel), the error is below this code and I have tried .destroy() too but it doesnt seem to work THE CODE IS: def widget_cancel():      Username.place_forget()    def ADDING():       global Username,passw,addrss,emil,lblfrstrow,lblsecrow,lblrdrow,lblfrtrow,lblfifrow,lblsixrow,ag,imagecalen,okbtn,submitbtn      # Definging the first row      lblfrstrow = tk.Label(root, text ="Username -", )      lblfrstrow.place(x = 50, y = 20)       Username = tk.Entry(root, width = 35)      Username.place(x = 150, y = 20, width = 100)                  lblsecrow = tk.Label(root, text ="Password -")      lblsecrow.place(x = 50, y = 50)                 passw = tk.Entry(root, show="*", width = 35)      passw.place(x = 150, y = 50, width = 100)                 lblrdrow = tk.Label(root, text ="address -", )      lblrdrow.place(x = 50, y = 70)       addrss = tk.Entry(root, width = 35)      addrss.place(x = 150, y = 70, width = 100)       lblfrtrow = tk.Label(root, text ="DOB -", )      lblfrtrow.place(x = 50, y = 90)       lblfifrow = Label(root, text ="email -", )      lblfifrow.place(x = 50, y = 110)       emil = tk.Entry(root, width = 35)      emil.place(x = 150, y = 110, width = 100)       lblsixrow = tk.Label(root, text ="age -", )      lblsixrow.place(x = 50, y = 130)            ag = tk.Entry(root, width = 35)      ag.place(x = 150, y = 130, width = 100)               imagecalen= Button(root, text ="c",                                 bg ='blue', command = image)     imagecalen.place(x=130, y=90, width = 10)      okbtn = Button(root, text ="ok",                                 bg ='white', command = rom)      okbtn.place(x = 150, y = 230, width = 55)        submitbtn = Button(root, text ="Submit",                                 bg ='blue', command = submit)      submitbtn.place(x = 150, y = 320, width = 55)  THE ERROR IM GETTING IS:  Username.place_forget() NameError: name 'Username' is not defined  How do I resolve this...thanks in advance...btw in writing the code in sublime text editor and running it on git bash


How to check the EIP value with assembly language?

I want to get the current value of the EIP register with assembly language. Is that possible?


Endless runner game: Dynamic world vs Static world

I've seen a lot of tutorials on how to build infinite runners and came up with a question about game optimization.   This types of games are built on two ways, according to my research; these are:   Set the player and camera static. Usually on the origin of the world space, and have all the environment assets created on the distance and move them towards the user.  The environment assets are created on a straight line to infinity and the player and the camera both move forward until the player loses. This means the environment's position will not be changed once they are created.     My question arises from here. Which of the two involves less calculations? Which one gives the player a better feel of movement? Is the difference actually significant (in terms of performance) or is it just a trivial question?


In Ubuntu, is there something like the control panel of Windows from where I can uninstall a program?


Rule for suffix to describe where someone is from

Is there a rule or pattern to describe where someone comes from? Some examples of places, with the word to describe people from that place:  New York / New Yorker London / Londoner Toronto / Torontonian Paris / Parisian Boston / Bostonian Brazil / Brazilian Mexico / Mexican Vancouver / Vancouverite  There are -er suffixes, -ian suffixes, -an suffixes, and -ite suffixes. Possibly others that I could remember. Is there a general rule for determining which suffix to use when you see the name of a place for the first time?


How do I move a single folder from one Subversion repository to another repository?

I have a "docs" folder in a Subversion repository named "project". I've come to the conclusion that it should really be kept under a separate Subversion repository named "project_docs".  I'd like to move the "docs" folder (and all of its revisions) to the "project_docs" repository. Is there a way to do this?


I am a new user of Ubuntu Mate and I liked it.  Well, I was a user because I couldnt play videos from Netflix so I have to return to windows. What can I do to play Netflix videos?


I'm running Python 3.4.2, and I'm confused at the behavior of my code. I'm trying to create a list of callable polynomial functions with increasing degree:  bases = [lambda x: x**i for i in range(3)]   But for some reason it does this:  print([b(5) for b in bases]) # [25, 25, 25]   Why is bases seemingly a list of the last lambda expression, in the list comprehension, repeated?


I have 29GB free on the sd card and only 101mb on storage,before I had 800mb and installed batman arkam,the download stopped at 91%

Because I hadn't sufficient memory,but the files remains on mine phone but i can't find them and delete theM. On google play it says that the game isn't installed and in the phone either.How to free my phone? And other question how to use the space on sd card..? I have samsung galaxy s4 with 4.4.2 android NO ROOT


How to Use Ubuntu when you have no access to previous owners password

I have an old gateway420gr that I was hoping to use as my computer crashed. I been unable to get past authenticity issues as I don't know the original owners passwd. I can't access the internet via a wired connection. I have tried to access the Grub via recovery mode to attempt to change the user passwd but to only get " Manipulation Token error" message. While waiting for someones response to this question, I will try to read other comments! also, is there a way to get a live bootable dvd? William


What's the difference between  and ,  and ?

What's the difference between <b> and <strong>, <i> and <em> in HTML/XHTML? When should you use each?


String replace even and odd values in C#

I have a string in C# with "wiki syntax" that i would like to replace values in.   "My '''random''' text with '''bold''' words."  translate to:  "My random text with bold words."   The problem is that I would like to replace pairs of values to different values.  odd ''' =>  even ''' =>


is the  mysqlhotcopy — A Database Backup Program best way to backup the large data in mySQL??


sed append a text with many lines after matching of multiple strings while the text remains many lines in sed command

In the question:   Now I'm running sed inside script to append a large text. But how to not concatenating strings in one sed command. That is to say for example, I want to insert the following text:  firstline secondline thirdline fourthline   And in sed, I want to write something like the following in a script file:  sed -i '/Hello World/a \\ firstline\\ secondline\\ thirdline\\ fourthline' file   Instead, now i'm matching many unordered strings.  Dont know how and where to break like this after requiring matching multiple strings. The \\ is definitely nicer and easy to modify especially if there are large numbers of appended lines.


Now these days I am customizing Ubuntu and I want some icons on my desktop in customizes OS like   My computer Home Trash   How can I create these icons on my desktop. And I am in chroot environment so I can use only terminal to do any thing with my customize OS. So please tell me how can I do that with the help of terminal.