Materials required to convert NiMH rechargeable 24V/6Ah circuit (20 C-cell) to Li-Ion rechargeable circuit

Below is a picture of a battery shell for a NiMH circuit for a power assist wheelchair battery.  I'm taking a guess that each of the 20 batteries is 1.2V because the entire circuit is 24V.  These are rechargeable.  I'd like to convert this circuit to the same voltage (24V) and same capacity (3Ah).    First, is this possible given the space you see in this wheelchair battery shell, and the circuit board in the pictures?  Second, what are the material requirements to be able to convert this circuit from NiMH to Li-Ion and the type of charger as well?  What materials will I need to solder/weld the materials together, etc.. for the actual labor?  I'm an electrical novice, so please ask me more questions (as comments) and I'll do my best to answer.  Note: right click image and open in a new window to make it larger!


Why isn't user being added to sudoers list?

On a CentOS 7 server, a user is added to the wheel group, but then that same user is not able to run sudo commands.    What specific commands need to be added to the below in order for the user named wannabe_sudoer_user to be allowed to run sudo commands?  The Specifics:    Here is the terminal log that shows the failed attempt to add the wannabe_sudoer_user user to the sudoers list:  [wannabe_sudoer_user@localhost ~]$ su - Password: Last login: Mon May 15 13:58:21 PDT 2017 on ttyS0 [root@localhost ~]# gpasswd -a wannabe_sudoer_user wheel Adding user wannabe_sudoer_user to group wheel [root@localhost ~]# exit logout [wannabe_sudoer_user@localhost ~]$ sudo mkdir /opt/atlassian/  We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things:      #1) Respect the privacy of others.     #2) Think before you type.     #3) With great power comes great responsibility.  [sudo] password for wannabe_sudoer_user: wannabe_sudoer_user is not in the sudoers file.  This incident will be reported.


Java if statement to convert a string to an int

I am trying to make a statement that converts a string to an int according to the following:  very negative = -2 negative = -1  neutral = 0  positive= 1  very positive = 2    Here is what I have, and for some reason, whenever I call this function it returns 5000, which indicates an error:    public static int convertSentimentToInt(String sentimentString)   {       int sentimentInt;        if (sentimentString == "Very negative")         sentimentInt = -2;       else if(sentimentString == "Negative")           sentimentInt = -1;       else if(sentimentString == "Neutral")           sentimentInt = 0;       else if(sentimentString == "Positive")           sentimentInt = 1;       else if(sentimentString == "Very positive")         sentimentInt = 2;       else           sentimentInt = -5000;        return sentimentInt;   }   I know the string I am passing as a parameter is one of these options ("Very negative", "Negative", etc.) because I test it before.


Adding new geometry column using PostGIS?

This is probably pretty straight forward. I want to add a new geometycolumn (27700) to my table which is currently in 3857, but i dont want to alter the points to the new geomtery.   How would i go about this?


$S$ is a compact subset of $\mathbb{R}$ and $T$ is a closed subset of $S$ $\implies$ $T$ compact

If $S$ is a compact subset of $\mathbb{R}$ and $T$ is a closed subset of $S$, then $T$ is compact.     How can I show this using the definition of compactness, and separately showing this by the Heine-Borel theorem.


yesterday I tried to install skype using the terminal, but I did something wrong because skype did not get installed and today, when I opened the pc, an error message appeared. It seems that while trying to update a package something went wrong. The message that appears says that I should update packages but when I try this appears(translated to english):  An irresolvable error has occured while initializing the packages information. Inform of thus error to the update-manager and include the following message:  'E:Malformed line 60 in the source list /etc/apt/sources.list (analazing dist)'   This is a link to the text I get when I issue gedit etc/apt/sources.list    When writting: sudo LANG=C apt-get update and sudo LANG=C apt-get check  appears the following:  sudo LANG=C apt-get update  E: Malformed line 60 in source list/etc/apt/sources.list (dist parse) E: The list of sources could not be read.  sudo LANG=C apt-get check Reading package lists... Done Building dependency tree        Reading state information... Done   How to solve this?


Read the output of a command into a variable

I am making a bash script but I'm totally new and got lost.  I've made this code  cat * | grep "|*parameter1*|" | grep "|*parameter2*|" | cut -f 8,11,12,15,21,23,34 -d "|" | wc -l   which works just fine, but I need to read the wc -l output into a variable so I can make an average after that with another bash command. Then, print out that average and make it readable to the user.


Using the lmodern package, I had the typical font size issues in math mode: for example the sums were not large enough in some of my equations. To solve this I followed egreg's answer to the following question:   The solution works for the sums but now my brackets are not scaled correctly anymore. Making a minimal working example I noticed that the issue is related to the fourier package. So I suppose there are incompatibilities somewhere. I know fourier has incompatibilities with other math fonts packages such as mathptmx, in my case it might be related to lmodern. Is it possible to use fourier and lmodern and avoid the scaling issues I have with my equations?  MWE:  \documentclass[a4paper, 12pt, twoside,openright]{report} \usepackage{lmodern} \usepackage[upright]{fourier}  % declare `cmex` to be arbitrary scalable \DeclareFontShape{OMX}{cmex}{m}{n}{   <-7.5> cmex7   <7.5-8.5> cmex8   <8.5-9.5> cmex9   <9.5-> cmex10 }{}  \SetSymbolFont{largesymbols}{normal}{OMX}{cmex}{m}{n} \SetSymbolFont{largesymbols}{bold}  {OMX}{cmex}{m}{n}  \usepackage{amsmath} \usepackage{amssymb} \usepackage{bm}  \begin{document}     \begin{equation}     U_{qq} = \sum_{i < j \leq N_m} q_i q_j \left[ \sideset{}{'}\sum_{\bm{n}} \frac{\text{erfc}(\alpha \lvert\bm{r}_{ij} + L\bm{n}\rvert)}{\lvert\bm{r}_{ij} + L\bm{n}\rvert} + \frac{1}{\pi L} \sum_{\bm{n} \not= 0} \frac{1}{n^2} \exp(- \frac{\pi^2 n^2}{\alpha^2 L^2} + \frac{2 \pi i}{L} \bm{n} \cdot \bm{r}_{ij}) \right]     \end{equation} \end{document}   Result with fourier:   Result without fourier:


How do I get rid of this crease when joining/creating new faces?

So I'm trying to create the face of a character model by starting around the eyes and mouth but when I try and join the edges to connect it creates this weird crease. I want to smooth it out but I can't seem to get rid of it. What I'm doing is pressing F with the selected vertices to create a new face to connect and this happens.  Any help to getting rid of it is appreciated, thanks!


How do I calculate my passive Wisdom (Perception) check?

My 1st level Wizard has a Wisdom of 13 (modifier +1) and proficiency in Wisdom saving throws, but not proficiency in Perception. Does that mean my passive Wisdom (Perception) score equals 10+1 or 10+1+2 (adding my proficiency bonus).


How do I erase/format a harddisk from a live CD?

I need to format a drive containing an old install of Ubuntu 10.04, to install Vista (not my idea!) Vista setup apparently refuses to format non-FAT32 or NTFS partitions. However, I can't seem to format it from my live CD (Ubuntu 11.04) at all; I keep getting "device is busy" errors. What is the simplest way to format this drive?


Is energy conserved in an expanding universe?

In a  by Sabine Hossenfelder, it is mentioned that in an expanding universe, energy is not conserved. The reason for this is that there is no time translation symmetry, an experiment performed at one time will not necessarily give the same result as an otherwise identical performed at another time, so Noether's theorem will not apply. She then goes on to state, that strictly speaking, that energy cannot be defined in an expanding universe, but if we ask what the energy would be if the universe was not expanding, and then see what happens to if it starts expanding, we would see that this energy is not conserved. The example given, is for light which is redshifted as the universe expands. She asks where does its energy go as it redshifts? Then answers her own question by saying that "it is just not conserved." Is this true? Or are there some subtitles that I have missed in the explanation? To clarify, I am talking about the total energy of the universe, not some particular system within it.  I received a  asking me to edit my question explaining why it is different from the  one. So I am placing my comment on the matter here: The  asks if the total energy is zero, and the answers reflect this. 3 of 6 equate the stress-energy tensor of the universe to zero, but this is not what I had in mind when I asked the question. 1 of the answers talks about a particular region of space within the universe. 1 of the answers just restates what I wrote in my question, about the difficulty defining energy, and the last one simply states that the total energy in the universe is not zero, but doesn't talk about other constant values. Furthermore, the single answer this question received is in contradiction with the linked questions answers. It claims that time translation symmetry holds for the whole universe in the context of GR, while answers on the linked question claim it does not.


I want to align content that starts in the middle of a line and content that starts at the beginning of the next line (for a thesis Authorization to Submit page). E.g.:  Major Professor:        ___________________________ Date: _________________                         Professor Name, Ph.D.   An example I saw combined \indent and non-breaking spaces (backslash space). This is a little messy and difficult to get just right, since \indent adds a fixed space instead of jumping to an indent level (like MS Word).  Is there any way to jump to a fixed indent level (say, 2 inches into the body) in the middle of a line? Or is there a better way to do this?  This code illustrates the kind of thing I'm doing:  \noindent{}M\indent{}A\\ \indent{}B % does not line up!   I want something like:  \noindent{}M\fixindent{1in}A\\ \fixindent{1in}B % lines up!


The behavior of a div with responsive design

I got this div with an image inside that whenever I shrink the browser window the div starts to add space vertical. I have taken two screenshots, one screenshot describes how the div acts when it is stretched and the second shows how it pushes its height when it's shrinking.      The CSS-rules for this div is:   #Rectangle_3 {     float: left;     height: 383px;     width: 99.688474%;     background-color: white;     position: relative;     top: 0px;     left: 0px;     z-index: 75;     margin-top: 20px;     margin-left: 0%;     clear: none;     background-image:url("img/bluegreenconcert.png");      -webkit-background-size: 100%;     background-size: 100%;     display: block;     background-attachment: scroll;     min-width: 0px;     min-height: 0px;     margin-left: auto;     margin-right: auto;     clear: none;     margin-top: 0px;     max-width: none;     max-height: none;     background-position: 0% 0%;     background-repeat: no-repeat no-repeat;   }   I need help to find a solution to stop the div to push itself down when it is getting resized. Closest to a solution I have come to is to remove background-size. This will take away the extra vertical space added, though the div becomes non responsive if I do.  Here is another code sample of another div at the same page and it work as intended when resizing browser window.  #background1 {     float: none;     width: 100.2%;     height: 2735.71%;     color: rgb(0, 0, 0);     position: relative;     top: 0px;     left: 0px;     z-index: 63;     background-image:url("img/background.png");     -webkit-background-size: 100%;     background-size: 100%;     margin-top: 4px;     margin-left: -0.21%;     clear: none;     display: block;     min-height: 0px;     margin-right: auto;     min-width: 0px; }   As you can see the code samples are very similar. Though #Rectangle_3 adds extra space.


How to find mod for $19^{33} \pmod{20413}$?

Struggling to understand how to answer this question as the formula previously used required n to be a multiple of the previous number, which as 33 is involved this method is no longer effective. From the mark scheme the answer to the question should be 6338.   Appreciate the help


I just added a new SSD to my laptop. I installed Windows on it, and booted into Windows, and all is good.  Then I installed Ubuntu 14.04 on my second SSD, rebooted, and no GRUB menu appeared! I installed some updates, rebooted again, then did sudo update-grub, which gave me this:  Generating grub configuration file ... Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported. Found linux image: /boot/vmlinuz-3.16.0-39-generic Found initrd image: /boot/initrd.img-3.16.0-39-generic Found linux image: /boot/vmlinuz-3.16.0-30-generic Found initrd image: /boot/initrd.img-3.16.0-30-generic Found memtest86+ image: /boot/memtest86+.elf Found memtest86+ image: /boot/memtest86+.bin done   Still no Windows found! I can see the drive with Windows installed, because it is auto-mounted when I log in. WTH is going on and how do I fix it?  Here is the output of lsblk. My Windows install is on sdc, and the drive mounted to /windows is a big NTFS drive for media.  NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT sda      8:0    0 111.8G  0 disk  └─sda1   8:1    0 111.8G  0 part / sdb      8:16   0 698.7G  0 disk  ├─sdb1   8:17   0 668.9G  0 part /windows └─sdb2   8:18   0  29.8G  0 part  sdc      8:32   0 223.6G  0 disk  └─sdc1   8:33   0 223.6G  0 part /media/chris/920E78CD0E78ABBB sr0     11:0    1  1024M  0 rom


Is there any way to individually control each program's sound volume in Windows XP? It'd be better if it was built-in instead of an app, but whatever works.


I have a doubt about the pluralization of irregular family names. What if the family name is an irregular plural form like "mice"? Should you say "the Mice" or "the Mices"?


What Ubuntu distribution should I install?

I got a PC with the following configuration:  Intel Core2Duo 2.6Ghz 4GB of RAM DDR2 667 Nvidia 7200GS 256mb  The graphics card is the weak point of my computer. I tried to install Ubuntu 14.04 but the graphics effects we're running very slow, although the rest was working well. Now I installed Lubuntu and everything it is running ok but I think it is too simple, I would like a distribution more like Ubuntu.  What Ubuntu distribution can you recommend me for my configuration ?  Thanks in advance.


Wordpress Redirect: Default Password Reset URL

I would like to redirect the default wordpress password reset url /end-point. So the url before the password is reset.  /wp-login.php?action=lostpassword  redirect to /password-reset/ (which is aalready setup)  I have created a custom page, so any user querying the old url will be redirected to the new page.


Problem regarding proving a real valued function to be continuous.

My question is -     Let, $f:[a,b]\to\Bbb{R}$ be a continuous function. Define   $g:[a,b]\to\Bbb{R}$ by $$ g(x)= \begin{cases} f(a), & \text{when}\quad  x=a\\ \operatorname{sup}_{(a,x]} f, & \text{otherwise} \end{cases} $$   Prove that $g$ is continuous on $[a,b]$.   I am able to prove the continuity of $g$ at $a$ in the following manner- By continuity of $f$ at $a$, we get - for any $\varepsilon>0\exists\ \delta>0$such that $f(a)-\varepsilon<f(x)<f(a)+\varepsilon\ \forall x\in(a,a +\delta)$. Thus for any $x\in(a,a +\delta)$, we have $f(a)-\varepsilon<\operatorname{sup}_{(a,x]} f<f(a)+\varepsilon\implies|g(x)-g(a)|<\varepsilon\ \forall x\in(a,a +\delta)$, since $f(a)=g(a)$, done.  Now, I want to work with the reamining $(a,b]$. So, I take a point $x_0\in(a,b]$ and $f$ is continuous at $x_0$. Choose $\varepsilon>0$. Then for this $\varepsilon>0,\exists\delta>0$ such that $f(x_0)-\varepsilon<f(x)<f(x_0)+\varepsilon\ \forall x\in(x_0 -\delta,x_0 -\delta)$. My claim is - $g(x_0)-\varepsilon<g(x)<g(x_0)+\varepsilon\ \forall x\in(x_0 -\delta,x_0 -\delta)$ or equivalently $\operatorname{sup}_{(a,x_0]} f-\varepsilon<\operatorname{sup}_{(a,x]} f<\operatorname{sup}_{(a,x_0]} f+\varepsilon\ \forall x\in(x_0 -\delta,x_0 -\delta)$. But I can't prove it rigorously. Can anybody complete my proof? Thanks for assistance in advance.


"! LaTeX Error: File `umsb.fd' not found." although the file is present

Solved: it was a bug in the import texlive package.    I've just got to reinstall my tex-live install and after that I've got the following problem during compilation using a dissertation template:  (/usr/local/texlive/2019/texmf-dist/tex/latex/amsfonts/umsa.fd) (/usr/local/texlive/2019/texmf-dist/tex/latex/amsfonts/umsb.fd) chapter 1.  ! LaTeX Error: File `umsb.fd' not found.   I do not understand it, since the file is there:  zoltan@aprosag ~/Dropbox/design/My_papers/TUD_dist_vorlage $ head /usr/local/texlive/2019/texmf-dist/tex/latex/amsfonts/umsb.fd %% %% This is file `umsb.fd', %% generated with the docstrip utility.   I've used LaTeX for a few documents, but I am still very far from being an expert, and my assumption that the files in parenthesis are the ones what the engine try to load at the moment, seems to be incorrect or there has to be some other issues. What does the files in the parenthesis mean? Why is the problem only related to umsb and not to umsa? Since I have not seen any other clue, I do not know how to proceed with the debugging.  Unfortunately the error is related to the used template. I would like to understand the error before I am looking for another template.  I've used pdflatex to compile the document.


what are the benefits and harms of having light font on saturated colored background?

the example could be seen from the new google calendar   it was white font on a saturated color box (colorful, very 'rich' in colors', 'bright', or im not sure what's the technical way of describing this)   what are the benefits and harms of this because it appear to be very very hard to see the font when this is done  p.s. hello this is not duplicate cos 'bright' colors arent dark, and also there's no answer to google calendar, so it shoulnt be 'duplicate'


Show that the countable product of metric spaces is metrizable

Given a countable collection of metric spaces $\{(X_n,\rho_n)\}_{n=1}^{\infty}$.  Form the Cartesian Product of these sets $X=\displaystyle\prod_{n=1}^{\infty}X_n$, and define $\rho:X\times X\rightarrow\mathbb{R}$ by  $$\rho(x,y)=\displaystyle\sum_{n=1}^{\infty}\frac{\rho_n(x_n,y_n)}{2^n[1+\rho_n(x_n,y_n)]}.$$  Show that $\rho$ is a metric on $X$ whose induced topology is equivalent to the product topology on $X$.  So basically what this problem is saying is that there's a canonical way to define a metric on the countable product of metric spaces.  I showed in a previous problem that the topology induced by $\rho_n$ is equivalent to that induced by $\frac{\rho_n(x_n,y_n)}{1+\rho_n(x_n,y_n)}$.  And thus we can go ahead and just assume that $\rho_n< 1$ for all $n$ and replace our infinite series by  $$\rho(x,y)=\displaystyle\sum_{n=1}^{\infty}\frac{\rho_n(x_n,y_n)}{2^n}.$$  Now comes the interesting part: how should I go about showing that the product topology on $X$ and the topology induced by $\rho$ are equivalent?    The basis for the product topology given to me in my book's definition is that of cartesian products made up the $X_n$ except for finitely many which are $O_n$ for some open subset of $X_n$.  However I believe I was able to improve upon this and show that I could decompose these into a basis where the $O_n$ were all open balls induced by their respect $\rho_n$ metric.  For $\rho$ I'm using the basis of open balls that it induces, as I can see no other reasonable choice.    However I can't seem to match these two bases up.  There are many different points $\{x_n\}\in X$ which make my infinite series less than a certain value and there is so much freedom in which terms in the series I choose to reduce in size that it seems hopeless to try and fit an open ball induced by $\rho$ into any one of my basis elements for the product topology.    Is there a more appropriate strategy for proving these two topologies are equivalent?


How many different $4$ letter words can be formed by using "MISSISSIPPI".  my answer to this will be $\binom{11}{4}=330$.  Is this correct?


Here is another example where cleveref does not capitalize when it should

This question is similar to (but not a duplicate of)   The original post makes a code example, which does not seem to always reproduce the problem.   Here is a better attempt.  The following code is supposed to output \cref usages as capitalized label names, but it does not really work.  Section is output as capitalized, but definition is output as lower case.  I'd be happy if someone could help me figure out why it doesn't seem to work.  I'm also attaching an image to show that "definition" is given in lower case despite using the capitalize option.    \documentclass[a4paper]{article} \usepackage{pgf}  \usepackage{color} \definecolor{blueye}{rgb}{0, 0.2, 0.5} \usepackage{mathtools} \usepackage[colorlinks=true,allcolors=blueye]{hyperref} \usepackage[capitalize]{cleveref} \usepackage{amsthm} \usepackage{framed}  \newtheorem{protodefinition}{Definition}[section]  \newenvironment{definition}    {\colorlet{shadecolor}{green!5}\begin{shaded}\begin{protodefinition}}    {\end{protodefinition}\end{shaded}}  \crefname{protodefinition}{definition}{definitions} \Crefname{protodefinition}{Definition}{Definitions}  \begin{document}  \section{Introduction} \label{sec.intro}  The problem we examine in this article is that of using Boolean operations to decompose a set of partially overlapping regions into a valid partition.  In particular, given $V=\{A_1, A_2, ..., A_M\}$, suppose that for each pair $(A_i,A_j)$, we whether $A_i \subseteq A_j$, $A_i \supseteq A_j$, or $A_i \cap A_j = \emptyset$.  We would like to compute the maximal disjoint decomposition of $V$.  We define precisely what we mean by maximal disjoint decomposition in \cref{def.mdd} of \cref{sec.1253}.  \subsection{Maximal Disjoint Decomposition} \label{sec.1253}  \begin{definition}   \label{def.mdd}   If $D$ is a disjoint decomposition such that for any other disjoint decomposition $D'$ it holds that $|D| > |D'|$, then $D$ is said to be a \emph{maximal disjoint decomposition}. \end{definition}  \end{document}


What I want to do is pass IEnumerable to a method and have it return a copy of IEnumerable. However, I want each  in the collection to be a copy, rather than just the collection being a copy.  An example:  // some random data from L2S var data = (from p in sourceData            select new            {                a = 1,                b = "hello",            }).ToArray();  var dataCopy = data.Copy(); // somehow i want 'dataCopy' to be a deep copy of 'data'  foreach (var d in dataCopy) {     // alter the item in the collection somehow     d.b = d.b + "1"; }  // combine both sets of data var finalData = data.Union(dataCopy);   So the collection 'finalData' has twice as many items as 'data' or 'dataCopy'. So all the 'b' parameters in 'dataCopy' have "1" appended to the end, but since they still reference the objects in 'data', all the 'b' parameters in 'data' ALSO have "1" appended to the end.  Since these are anonymous types, I can't simply 'clone' the object using the BinaryFormatter method, because the anonymous type isn't serializable. And I can't create a new  from scratch using Activator.CreateInstance since the anonymous type doesn't have a parameterless constructor.  I realise that I could work around this by initially selecting my data into a class marked as Serializable, but I really don't want to have to modify that much code since each time i query the database, the parameters will be different...  Alternatively, could anyone recommend a replacement for the anonymous type? eg:  var data = (from p in sourceData            select new SomeSortOfAnonymousTypeReplacement(new            {                a = 1,                b = "hello",            })).ToArray();   which would then implement a cloneable interface?


How were the number of rounds for different key sizes of AES selected?

The number of AES rounds increases with the key length. Why increase the number of rounds at all, and how were these round counts chosen?


Somebody explained me this problem, but I am not sure to understand what is wrong.  Three people go to a bar to have a drink. To pay the bill everyone gives $10. The barman gives back $5 coins. Every people take $1 back and leave the $2 other dollar for the barman.   If everybody give \$10 and get \$1 back, they paid \$9 right?  3 * $9 + $2 = $29   Where is the missing dollar?


I am writing my PhD thesis. In my manuscript I have Figures in the text and Photographic plates (a figure of figures) in the annexes. The two elements are different and I would like create a new environment of Plate that follows the same structure of the Figure environment. Where can I find the Figure environment to modify it?  The new environment table should have exactly the same structure than the figure environment but replacing the word figure by the word Planche (in French).


What is the multiplication of $\sum_{k=0}^{n} {n \choose k} \cdot {n \choose k}$ in terms of $n \choose k$

I know that ${n \choose k}$ $ = $ ${n \choose n-k}$ $ = \frac{n!}{(n-k)!(k)!}$, so I would write $$ \sum_{k=0}^{n} {n \choose k} \cdot {n \choose k} = \sum_{k=0}^{n} \frac{n!}{(n-k)!(k)!} \cdot \frac{n!}{(n-k)!(k)!} = \sum_{k=0}^{n} \frac{(n!)^2}{((n-k)!(k)!)^2}$$ however from this point I do not know how to get it in terms of ${n \choose k}$. My book claims that this is equal to ${2n \choose n}$, but I can not see the connection between the two. Even when I write out ${2n \choose n}$, I do not see anything that is connection these two. $${2n \choose n} = \frac{2n!}{(2n-n)!(n)!} = \frac{2n!}{(n)!(n)!} = \frac{2n!}{((n)!)^2}$$ edit: Indeed the book claims indeed that $\sum_{k=0}^{n} {n \choose k} \cdot {n \choose k} = {2n \choose n}$ what has been suggested in the comments


I'm trying to align my equations so that the align takes up a fresh line. My code at the moment is  \begin{align} \frac{d}{d x_3}(|\hat R(\omega,x_3)|^2 + |\hat T(\omega,x_3)|^2) &= \frac{d\hat R}{d x_3}\overline{\hat R} + \frac{d \overline {\hat R}}{d x_3}\hat R + \frac{d \hat T}{d x_3} \overline {\hat T} + \frac{d \overline {\hat T}}{d x_3}\hat T \\ \nonumber &+ \hat R \overline{\hat R}(\Delta_{4}-\Delta_1)-\hat{R}^2\overline{\hat R} \Delta_2+\overline{\hat R}\Delta_3 \\ \nonumber &+\hat R \overline{\hat R}(\overline{\Delta_4}-\overline{\Delta_1})-\overline{\hat R}^2\hat{R} \overline{\Delta_2}+\hat R \overline{\Delta_3} \\ \nonumber &- \hat T \overline{\hat T}(\Delta_1+\Delta_2\hat R) \\ \nonumber &- \hat T \overline{\hat T}(\overline{\Delta_1}+\overline{\Delta_2}\overline{\hat R}). \\ \nonumber \end{align}   How can I align this such that the right hand side starts under the derivative? I want to fill the page better. Thanks in advance.


In Windows, what are the P and U file attributes?

I downloaded two apps in zip files this morning, and when opening them up in 7-Zip, unusual file attributes appear in the files listed. And when extracted to Windows 10, they appear as P and U, usually together.  Any idea what they stand for? I've never seen them before.


"I only bought that because / I bought that only because"

I want to say that the item I purchased was only my second choice, and I bought it because my first choice doesn't ship to my country.  A or B?  A:     I'll start by noting that I only bought the [item name] because my first pick — [first choice name] — doesn't ship to [country].   B:     I'll start by noting that I bought [item name] only because my first pick — [first choice name] — doesn't ship to [country].   And while we're here: is it grammatically correct today "because item doesn't ship to.." (meaning the company doesn't ship it to..)


How to disable drag and drop functionality in direct list web part on the page of sharepoint 2013

I have a test.aspx page on which i have inserted a web part i.e. OOTB web part which is a library. According to the requirements, I need to disable drag and drop functionality for the users. User will not be able to add any documents on this web part, web part will only show them the list view of all the documents in the library. I changed the "style" to"Shaded" used css but still no success.


I'm supposedly eligible for an inheritance from a distant relative. Offer appears to be legitimate

About 12 months ago, I received a letter ostensibly from a company carrying out genealogical research for law firms. It said that they were dealing with the estate of someone who had left money to my late mother, who died about 20 years ago. They wanted me to authorise them to take action to transfer the bequest to me, while taking a percentage of the sum as commission. The letter did not state the size of the bequest, but noted that it would depend on their success or failure in processing other claims on the same estate.  The letter was accompanied with a professional-looking multi-page brochure, and the company had an extensive professional-looking website.  My thought was that, at the best this was a mix-up of names, but since the company was not asking for any personal or financial information about me or my late mother that they had not already stated in the letter, except for confirmation of my date and place of birth, I decided to go along with it and authorised them to proceed.  I heard nothing until a few days ago, when a letter arrived ostensibly from a different firm of solicitors, stating they were dealing with the person's estate (she had died without making a will), had used the genealogy research company to trace a more than 100 relatives of the deceased who were beneficiaries of the estate, and enclosing a cheque for my share of the total. Given the large number of claimants, I was a little surprised by the size of the cheque - close to a 5-figure sum.   This firm of solicitors also looks legitimate - they have a website, a high street address in the area where my mother used to live, etc. The cheque is apparently drawn from the company's named account with major UK bank, not an anonymous money transfer company.  The name and date of death appears genuine - a Google search found a report of her death (she was living in a care home, aged over 90) in the obituary column of a local newspaper.   All that seems fine, but there are a few "red flags" lurking in my mind:    The first letter contained absolutely no information about the deceased person, except her name, which was a very common one (Mary Smith) - probably the sort of name one would choose, if setting up a scam? The story has changed from "someone left money to your mother, who is dead, and we want to pass it on to you" in the first letter, to "someone died without making a will, and you are one of their relatives" in the second. The name itself did not "ring any bells" regarding friends of relatives of my mother who I knew of. My mother had lived in this area for the whole of her life, and never mentioned any relatives she had lost touch with. An email to the solicitor named in the second letter produced an immediate out-of-office reply, but no further response. I have not (yet) tried to contact them by other means - e.g. by phone or via their website.   Cash the cheque and celebrate my good luck, or call the police?  UPDATE 10 Nov 2018:  Curiouser and curiouser: Today I received a letter from someone in another part of the UK, headed "Dear Family" and purporting to explain the circumstances surrounding the end of Mary Smith's life.    To add to the mixed messages, it states that two of her relations have been "spent many months working hard" on the administration of the estate - no mention of the two legal firms who (ostensibly) sent the previous letters!  After a couple of pages of family history, the punchline is "we have decided to gift whatever sum we are entitled to, to [yet another private individual, who was involved in caring for her at the end of her life] and we invite you do to the same, by sending a personal cheque to [contact details] ...  Now that's the sort of scam I have heard about before!!


What lies at the very edge of the expanding universe?

We all know that the universe is expanding at an accelerated rate and it might appear much like a soap bubble. That is where the phrase dark energy whose essence is unknown and which is thought to have caused this comes from. But that is not what this question is really about. If we could stand at the very edge of the expanding universe...   What would we see just outside of it? Pure blackness or other expanding bubbles of multiverses? How about at the very edge? Would there be a membrane of some kind? What about at the inside of the edge? Of course this last question is easy to tackle because we would just see our own universe.


My question is about flags... Many times the users asks question with no code, without effort and their work behind his question. We have to ask/comment him "Show your effort" , "What are doing so far " and so on.. So Is there any kind of flag for this ? or If it is not It should be added.


Why can we use induction when studying metamathematics?

In fact I don't understand the meaning of the word "metamathematics". I just want to know, for example, why can we use mathematical induction in the proof of logical theorems, like The Deduction Theorem, or even some more fundamental proposition like "every formula has equal numbers of left and right brackets"?  What exactly can we use when talking about metamathematics? If induction is OK, then how about axiom of choice/determincacy? Can I use axiom of choice on collection of sets of formulas?(Of course it may be meaningless. By the way I don't understand why we can talk about a "set" of formulas either)  I have asked one of my classmates about these, and he told me he had stopped thinking about this kind of stuff. I feel like giving up too......


In Doctor Who, The Hungry Earth, how did Amy and Rory wave to themselves?

In , where Amy, Rory and The Doctor visited a drilling site a couple on the ridge waved to them.   The Doctor says that that's them 10 years in the future. But if Rory and Amy are sent back to the 40's by the Weeping Angel, how could that have happened?


Texture doesn't show up after UV wrapping

I have made a model, UV mapped it and made a UV image, but it doesn't show up on the actual model. I feel like I'm doing everything right, and don't understand what I'm doing wrong. Blender version is 2.77.


Hei, Can somebody help me with making those lines from the picture?


Execute command in terminal an don't wait its return

I need to run Firefox browser from terminal. Browser works fine, but terminal still waits for Firefox to return and if I do CTRL+C, it terminates Firefox. How to run command to make Firefox work independently from terminal?


Alternative definition of $\|f\|_{\infty}$ as the smallest of all numbers of the form $\sup\{|g(x)| : x \in X \}$, where $f = g$ almost everywhere

Recall that $\|f\|_\infty = \inf\{M\ |\ |f(x)|\leq M \text{ for almost every } x \in X\}$, for every function $f$ defined on $X$. Show that, if $\|f\|_\infty$ is finite, then $\|f\|_\infty$ is also the smallest of all numbers of the form $\sup\{|g(x)| : x \in X \}$, where $f = g$ almost everywhere with respect to the Lesbegue measure.   I am trying to understand how $L^{\infty}$ is defined. Could someone help me see how to prove the above fact?


Does Minecraft require a constant Internet connection?

My son has played the small version of Minecraft on an Android tablet and wants the full version (either PC or Xbox 360), but we do not have Internet access at home. Will he be able to play the game?


Let $f (z) $ be an entire function such that $|f (z)|≤K|z|$, $∀z∈\mathbb{C}$, for some $K>0$. If $f (1) =i$, then$f (i) $ is

Let $f (z) $ be an entire function such that $|f (z)|≤K|z|$, $∀z∈\mathbb{C}$, for some $K>0$. If $f (1) =i$, the value of $f (i) $ is (A)  $ 1 $ (B)$-1$ (C) $i$ (D) $-i$      how can I able to solve this problem?totally stuck.


I have two sting lists  List<string> list1=new List(){"1","2","3"}; List<string> list2=new List(){"1","2"};   What will be the easiest way to check if list1 contains the values in list2.


Does feedback really sent when I try to vote things?

It seems like good way of being nice to users: I mean, you simply say that you got their feedback instead of forcing them to sign up / log in.  But I am a bit suspicious about it so I wanted to ask. Is it really sent and (if yes) does it affect anything?


User login REST POST returns HTML format

I want to login to drupal through JSON,  I read  issue, but non of the proposed solutions helped me do that using Postman on drupal 8.2.5. specially when I send this specification :  POST: http://example.com/user/login?_format=json Content-type: application/json Data: { "name": "admin", "pass": "myPassword" }   Response is: 200 OK,  But the result is in HTML foramt and just shows the login page of drupal website!


How to fix terminal title-bar icon in Ubuntu?

I applied a Mac OS theme to my Ubuntu 18.04.4 LTS.   The new icons are coming properly in titlebar of all applications except for terminal and gedit like below.    You can see that between the minimise-maximise buttons and the title of my terminal there's a big useless image which is the new theme's icon.  How to fix this?


How does the system determine which one close reason should be displayed on a closed question, given the close votes?

When voting to close a question, it's possible for users to vote for any close reason, even if others have voted for different reasons. However, in the end, once the question reaches five close votes for any reason, only one of those reasons can be displayed.  How does the system determine which one close reason to display, given the votes made by users?


How could I add an epigraph to each chapter in classicthesis?

I am using classicthesis for my Master's Degree dissertation and I would like to add epigraphs in each chapter. My idea is to include a simple sentence before the text. Any suggestions to do that? Thanks a lot!


How to increase video memory in VirtualBox?

So I am using a vm for ubuntu and i want to use my full 2GB of video memory from my graphics card, and i can boost the memory to 256MB but its nowhere near what i want. Is there a mod, driver, ANYTHING, that can allow me to get more than a useless 256MB of video memory?


How can I deserialize this XML in C#?  I want to print all strings of each ArrayOfString in a line.   How can I do that?   <ArrayOfArrayOfString      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"     xmlns:xsd="http://www.w3.org/2001/XMLSchema"      xmlns="http://library.org">      <ArrayOfString>         <string>1</string>         <string>Jack</string>         <string>The Alchemist</string>     </ArrayOfString>     <ArrayOfString>         <string>2</string>         <string>Henry</string>         <string>The Catcher In The Rye</string>     </ArrayOfString> </ArrayOfArrayOfString>   p.s.: The above XML is a response from a web service, so suppose that I have it as a string. I don't wanna use Serializable classes and blah blah, I JUST wanna iterate over it, and print out children. I'm new to this so please don't confuse me with irrelevant URLs. (In that URL XML is in a path, not a string, and children are not identical.) Thanks


Understanding System level read and write functions

Due to my dissatisfaction with std iostream and stdio, I decided to create my own io library. And it is good for my education.  But I have a slight problem. Linux read(), when operating on a terminal file descriptor, won't return until new line. So if I ask it for 10 bytes, Even if I type 20 bytes it won't return. To make matters worse, those 10 extra bytes are not recorded in the buffer I pass it.  What happened to those 10 extra bytes? Does Linux have a buffer it uses for reads? Can I access this buffer instead of providing my own?


Why does "Airplane Mode" keep toggling on my HP laptop in Ubuntu 18.04?

I have an HP Spectre x360 convertible laptop and I'm running Ubuntu 18.04. Every time I turn the screen sideways or in tablet mode and back, 'Airplane Mode' is activated. In fact, when I boot up and login, I have to manually turn off 'Airplane Mode' and turn wifi back on. I don't want to disable the gnome rfkill plugin like so: 'gsettings set org.gnome.settings-daemon.plugins.rfkill active false' because then I can no longer use bluetooth. Also, for some godforsaken reason, even when I DO disable the plugin, the gnome shell turns on 'Airplane Mode' anyway, which means that I have to go turn wifi back on EVERY time I log in. This is so annoying, I really liked where 18.04 was going but this is seriously breaking the whole gnome shell experience.


How to Recover Deleted Windows Partition with complete Data?

Actual scenario is, while i am installing Ubuntu for the first in my windows machine along with windows OS. accidentally I deleted all other partition and I formatted my entire disk, so i lost my entire data what are all Present on my Disk... i wanna my data back...    is their a solution to recover my Data Back?


Characteristic polynomial and minimal polynomial of a linear operator $T$ coincide

Can anyone provide some hint on how to proceed with the proof of the following:      The characteristic polynomial and minimal polynomial of a linear operator $T$ coincide if and only if for a certain vector $y$ in $V$ ,vectors $y,Ty,\ldots \ldots ,T^{n-1}y$ are linearly independent i.e. the set $\{y,Ty,\ldots,T^{n-1}y\}$ forms the basis of $V$


Adobe Acrobat XI has a , meaning it should work, right? I right click acrobat.exe, and the installation wizard pops up and installs successfully with no errors. However, I tick the 'open application' box at the end of the installation and...nothing happens. Adobe Acrobat isn't appearing in my list of installed apps. Basically it's not working at all, despite a very promising installation. WineHQ has this to say on installing Acrobat XI:  What works opening documents, OCR. No problems by now. Acrobat asked me to install Adobe Application Manager (), so i did installed and no problem since then. What does not Isn't able to install. As first review said, use winetricks atmlib , and copy the acrobat folder into proper .wine folder.  Wine beginner here. Could someone explain what he means by use winetricks atmlib , and copy the acrobat folder into proper .wine folder. Could someone guide me through those steps slowly? Thanks. Greatly appreciated, really want to get acrobat working :)


I'm trying to come up with a command which should increase a counter and return a string including the current value of the counter.  Have a look at the following minimal example:  \documentclass{article}  \newcounter{mycounter} \newcommand{\mystepFAILS}{\stepcounter{mycounter}foo\themycounter} \newcommand{\mystepWORKS}{foo\themycounter}  \begin{document}  \section{\mystepFAILS}  \section{\mystepWORKS}  \end{document}   Why does the command with \mystepFAILS throw an error? What is so special about \stepcounter? Any ideas?


Frequently my Ubuntu 14.04 server filesystems changed to read-only.  I ran fsck and rebooted which solved my issue.   How to fix the issue permanently?  end_request: I/O error, dev sda, sector 65563152 Buffer I/O error on device sda5, logical block 1313602 lost page write due to I/O error on sda5 Aborting journal on device sda7-8. Buffer I/O error on device sda5, logical block 1313603 lost page write due to I/O error on sda5 Aborting journal on device sda6-8. Aborting journal on device sda5-8. EXT4-fs error (device sda5) in ext4_reserve_inode_write: Journal has aborted EXT4-fs error (device sda6): ext4_journal_start_sb: Detected aborted journal EXT4-fs (sda6): Remounting filesystem read-only EXT4-fs error (device sda5): ext4_journal_start_sb: Detected aborted journal EXT4-fs (sda5): Remounting filesystem read-only   let me know for more info  thanks


I have an crawler in python for get brands of vehicles.  My function return an array with all brands and search for models each brand.  But some brands do not have models and I would like that when the brands did not have models it would skip to the next brand and not finish running the script.  I try this:  all_brands = [u'Acura', u'Alfa Romeo', u'Asia', u'Aston Martin', u'Audi', u'Bentley', u'BMW', u'Buggy BRM', u'Buick', u'Cadillac', u'Carver Concept', u'Chamonix', u'Changan (Chana)', u'Chery', u'Chevrolet', u'Chrysler', u'Citroen', u'CN Auto', u'Crosslander', u'Daewoo', u'Daihatsu', u'Dodge', u'DS', u'Effa', u'Engesa', u'Envemo', u'Fargo', u'Ferrari', u'Fiat', u'Ford', u'Fyber Buggy', u'Geely', u'GMC', u'Great Wall', u'Gurgel', u'Hafei Towner', u'Haima', u'Honda', u'Hummer', u'Hyundai', u'Infiniti', u'Isuzu', u'Iveco', u'JAC', u'Jaguar', u'Jeep', u'JIN BEI', u'Jonway', u'JPX', u'Kia', u'Lada', u'Lamborghini', u'Land Rover', u'Landwind', u'Lexus', u'Lifan', u'Lincoln', u'Lobini', u'Lotus', u'Mahindra', u'Maserati', u'Matra', u'Mazda', u'McLaren', u'Mercedes Benz', u'MG', u'MG Spayc', u'MINI', u'Mitsubishi', u'Nissan', u'Oldsmobile', u'Pagani', u'Peugeot', u'Plymouth', u'Pontiac', u'Porsche', u'Rely', u'Renault', u'Rolls-Royce', u'Saab', u'Saturn', u'Seat', u'Shineray', u'Shuanghuan', u'Smart', u'Spyker', u'SsangYong', u'Subaru', u'Sunbeam', u'Suzuki', u'TAC', u'Tesla', u'Toyota', u'Troller', u'Volkswagen', u'Volvo']  for brand in all_brands:     soup_brand = get_html(link_base + str(brand_url))      if soup_brand is None:         return      print "Crawleando: "+str(count_url)+"/"+str(count_brands)     print "Marca atual: "+brand_url      first_vehicle = soup_brand.find(attrs={"class":"titulo_anuncio"})      if first_vehicle is None:         return #Here it was to jump to next tag but it to the script


Does lifelink still trigger if I concede before damage?

In a multiplayer game one of my opponents has a  and is at 39 life and I am at 2 life. He attacks me with a 2/2 lifelink creature, but before damage is dealt I concede. Does the lifelink still gain my opponent enough life to win with felidar sovereign at the beginning of his upkeep, thereby letting my other opponent lose the game or do I only lose and do my opponents still need to continue the game to determine who wins?


Why is space a vacuum? Also, why doesn't air from the Earth escape into space?

Why is space a vacuum? Also, why isn't the air from the Earth escaping due to the vacuum in space? The ozone layer is only gas and a magnetic field, so why doesn't the air escape from Earth into space?


A special kind of bst file for a custom bibliography file

I would like to automatize the handling of my bibliographical references once for all, and to achieve this, I would like to use bibtex. I am aware of the existence of various bst files, for various styles of bibliographies: numerical labels, alphanumerical labels etc, but I would like to mix them, and to keep certain bibliographical references always in the same order, and always on the top of my references lists. But I don't know how to do it. I would like the output to look like the bibliography produced by the following LaTeX source code:  \begin{thebibliography}{100} \addtolength{\leftmargin}{0.2in} % sets up alignment with the following line. \setlength{\itemindent}{-0.2in} \bibitem[EGA]{EGA} {\sc A. Grothendieck} et {\sc J. Dieudonn\'e}, \emph{\'El\'ements de g\'eom\'etrie alg\'ebrique, (Publ. Math. I.H.E.S.}, tomes $4$, $8$, $11$, $17$, $20$, $24$, $28$, $32$, $1960$-$1967$). \bibitem[EGA I]{EGA1} {\sc A. Grothendieck} et {\sc J. Dieudonn\'e}, \emph{\'El\'ements de g\'eom\'etrie alg\'ebrique, I. Le langage des sch\'emas, (Publ. Math. I.H.E.S.}, tome $4$, $1960$). \bibitem[EGA II]{EGA2} {\sc A. Grothendieck} et {\sc J. Dieudonn\'e}, \emph{\'El\'ements de g\'eom\'etrie alg\'ebrique, II. \'Etude globale \'el\'ementaire de quelques classes de morphismes, (Publ. Math. I.H.E.S.}, tome $8$, $1961$). \bibitem[EGA III.1]{EGA31} {\sc A. Grothendieck} et {\sc J. Dieudonn\'e}, \emph{\'El\'ements de g\'eom\'etrie alg\'ebrique, III.1. \'Etude cohomologique des faisceaux coh\'erents (Premi\`ere partie), (Publ. Math. I.H.E.S.}, tome $11$, $1961$). \bibitem[EGA III.2]{EGA32} {\sc A. Grothendieck} et {\sc J. Dieudonn\'e}, \emph{\'El\'ements de g\'eom\'etrie alg\'ebrique, III.2. \'Etude cohomologique des faisceaux coh\'erents (Seconde partie), (Publ. Math. I.H.E.S.}, tome $17$, $1963$). \bibitem[EGA IV.1]{EGA41} {\sc A. Grothendieck} et {\sc J. Dieudonn\'e}, \emph{\'El\'ements de g\'eom\'etrie alg\'ebrique, IV.1. \'Etude locale des sch\'emas et des morphismes de sch\'emas (Premi\`ere partie), (Publ. Math. I.H.E.S.}, tome $20$, $1964$). \bibitem[EGA IV.2]{EGA42} {\sc A. Grothendieck} et {\sc J. Dieudonn\'e}, \emph{\'El\'ements de g\'eom\'etrie alg\'ebrique, IV.2. \'Etude locale des sch\'emas et des morphismes de sch\'emas (Seconde partie), (Publ. Math. I.H.E.S.}, tome $20$, $1964$). \bibitem[EGA IV.3]{EGA43} {\sc A. Grothendieck} et {\sc J. Dieudonn\'e}, \emph{\'El\'ements de g\'eom\'etrie alg\'ebrique, IV.3. \'Etude locale des sch\'emas et des morphismes de sch\'emas (Troisi\`eme partie), (Publ. Math. I.H.E.S.}, tome $28$, $1966$). \bibitem[EGA IV.4]{EGA44} {\sc A. Grothendieck} et {\sc J. Dieudonn\'e}, \emph{\'El\'ements de g\'eom\'etrie alg\'ebrique, IV.4. \'Etude locale des sch\'emas et des morphismes de sch\'emas (Quatri\`eme partie), (Publ. Math. I.H.E.S.}, tome $32$, $1967$). \bibitem[1]{1}{Some less important reference} \end{thebibliography}   whose output looks like this :    The group of "EGA" references (that is, all references except the last one) is the list of references that I want to keep in this order (labels appear to be already sorted in alphabetical order, but it could not be the case) and always on top of my bibliography.


Let $G$ be a group and $H$ a normal subgroup of order 2. Prove that if $G/H$ is cyclic, then $G$ is abelian.  I understand that if $G/H$ is cyclic, it is generated by a single element, i.e. $G/H = <xH>$, $x\in H$, and hence any $g \in G/H$ is  $g = (xH)^n, n\in \mathbb{Z}_{\geq 0}$, so $g = x^nH$. Thus for any 2 elements, $f,g \in G/H, fg = x^nHx^mH = x^{n+m}H = x^{m+n}H = x^mHx^nH = gf$, so $G/H$ is abelian.  Is this correct, and if so, can I use it to show G is abelian? What is the significance of H being order 2?  Any help appreciated!


Why is Apache executing .php.html files as PHP?

I have an odd problem...I'm using a documentation generator which generates a lot of output like docs/foo.php.html. It's XHTML, and thus contains <?xml...> tags at the beginning of file. The problem is, Apache has somehow decided to run it through the PHP interpreter, even though ".php" appears in the middle of the filename, and not at the end. This, in turn, triggers a PHP error, because it sees "<?" as the command to start executing PHP code, and immediately gets confused by the "xml..." which follows it.  How do I configure Apache to ONLY execute .php files and not .php.html files? The string "php.html" does not appear explicitly anywhere in my Apache config files. There is a line "AddHandler php5-script .php", but I don't see how that would also include ".php.html" files.


How can I find asymptotic for $\chi(n)$, if $\chi^{\chi^\chi} = n$. Is here self-qualification estimation? I tried to take the logarithm of both sides, but to nothing has come.


Can I delete any of the default apps the come with OS X?

Is it possible to delete any of the default apps in OS X? I suppose it is possible, but will anything break if I do?  There's some, such as Stickies, iChat, Dictionary, etc. that I either have no use for, or have replaced with my own apps that provide similar functions.  Thanks guys!


I am having difficulty with \cite,  would not compile some of the cites.  It is save in a file with extension .bib and the rest of the cites work fine but these ones do not. Any help?  @ONLINE{nistasd,       title  = "",       author = "",       note   = "\url{https://physics.nist.gov/PhysRefData/ASD/levels_form.html}",       year   = ""     }   @MastersThesis{lopez,     title    = {No wayout},     school   = {Universidad de Pamplona},     author   = {P. Lopez},     year     = {2007},  }   MWE:  \documentclass[a4paper,12pt]{report}  %%%%%figure beyond 100 %\usepackage[titles]{tocloft} %\cftsetindents{figure}{0em}{3.5em} %\cftsetindents{table}{0em}{3.5em} %%%%%%%%%%%%%%%%%%%%%%%%%  \usepackage{graphicx,rotating} \usepackage{multirow} \usepackage{siunitx,booktabs}%for table decimals number \sisetup{separate-uncertainty}% \usepackage[export]{adjustbox} \usepackage[sectionbib]{chapterbib} \usepackage{setspace} \onehalfspacing \usepackage{amssymb}%checkmark on table \usepackage{parskip}%paragraph separation \setlength\parskip{5pt}%separation after title    \usepackage{fancyhdr} \fancyfoot{} \fancyhead{} \pagestyle{fancy}  \fancyhead[R]{\textbf{\cfoot{\thepage}}}{\slshape \rightmark}   \renewcommand{\headrulewidth}{0pt} %lets the head rule disappear. \lhead{\textbf{\nouppercase{\rightmark}}} %\addtolength{\oddsidemargin}{2.cm} \usepackage[left=3.5cm,right=2.5cm,top=3.5cm,bottom=4cm,headheight=1cm]{geometry} \usepackage{wrapfig}  \usepackage{nccmath} \usepackage{tabularx,ragged2e,booktabs,caption,makecell} \usepackage[section]{placeins} \usepackage[textfont=normalfont]{subcaption} \usepackage{url} \urlstyle{same} \newcommand\apj{1925ApJ....61...38R}  % Journal abbreviations  \addtolength{\topmargin}{.25in}  %topmargin control \setlength{\parindent}{0pt} \setcounter{secnumdepth}{3}  %to include subsection in table of cont. \setcounter{tocdepth}{3} \pagenumbering{roman}       %change page number style \flushbottom   \begin{document}  This is given problem to compile  \cite{browning2008basic} and this \cite{Siegman:98}. and this \cite{lopez}   and this \cite{nistasd} and this \cite{doi:10.1063/1.2142102}     \bibliographystyle{ieeetr}\newpage\cleardoublepage \bibliography{sourcespectra}  \end{document}   Here are some entries in the file sourcespectra.bib:   @book{browning2008basic,   title={Basic Plasma Physics},   author={Browning, B.},   isbn={9781409219194},   url={https://books.google.ie/books?id=pItUOwAACAAJ},   year={2008},   publisher={Lulu.com} }   @inproceedings{Siegman:98, author = {A. E. Siegman}, booktitle = {DPSS (Diode Pumped Solid State) Lasers: Applications and Issues}, journal = {DPSS (Diode Pumped Solid State) Lasers: Applications and Issues}, keywords = {}, pages = {MQ1}, publisher = {Optical Society of America}, title = {How to (Maybe) Measure Laser Beam Quality}, year = {1998}, url = {http://www.osapublishing.org/abstract.cfm?URI=DLAI-1998-MQ1}, doi = {10.1364/DLAI.1998.MQ1}, abstract = {}, }    @MastersThesis{lopez,     title    = {No wayout},     school   = {Universidad de Pamplona},     author   = {P. Lopez},     year     = {2007},  }  @ONLINE{nistasd,       title  = "",       author = "",       note   = "\url{https://physics.nist.gov/PhysRefData/ASD/levels_form.html}",       year   = ""     }     @article{doi:10.1063/1.2142102, author = {Shinsuke Fujioka and Hiroaki Nishimura and Katsunobu Nishihara and Masakatsu Murakami and Youngces-G Kang and Qincui Gu and Keiji Nagai and Takayoshi Norimatsu and Noriaki Miyanaga and Yasukazu Izawa and Kunioki Mima and Yoshinori Shimada and Atsushi Sunahara and Hiroyuki Furukawa}, title = {Properties of ion debris emitted from laser-produced mass-limited tin plasmas for extreme ultraviolet light source applications}, journal = {Applied Physics Letters}, volume = {87}, number = {24}, pages = {241503}, year = {2005}, doi = {10.1063/1.2142102}, URL = { http://dx.doi.org/10.1063/1.2142102}, eprint = {http://dx.doi.org/10.1063/1.2142102} }      [![enter code here][2]][2]


Mathematics absent from the wizarding world?

As someone from a scientific education background I can't help but notice that while, for example, biology is mentioned (and at times important) in the Harry Potter books and potions (akin to chemistry), there are no mentions made of math courses.   The logical explanation to me seems that as a writer, Rowling understood that for most of the target audience, maths won't be at the top of the list of interesting subjects.  However, is there an in-universe explanation as to why mathematics seems absent from the wizarding world?    What about Muggle-born kids who are taught and like math but are then shipped off to Hogwarts where, seemingly, math is a no-no?


MapServer and OpenLayers: Properly using MAXSCALEDENOM in mapfile (google baselayer)

My base layer: google map  My points on the map: from an airports.db file, set up as a WFS layer in the OpenLayers code.   As of now:  map loads, points in the correct places on the map.  My goal:  when the page loads in the browser, the points should not display on the initial zoom. When you zoom in to the second level, they should.  I've successfully done this before using just an OpenLayers map, but never a google map as a base layer.  For MAXSCALEDENOM I've tried all sorts of values, but the points are always displaying.  Here is the Airports LAYER in the mapfile.  LAYER             NAME Airports             DEBUG 5             METADATA                     "wfs_srs" "EPSG:3857"                     "wfs_title" "Airports"                     "gml_featureid" "Name"                     "gml_include_items" "all"                     "wfs_enable_request" "*"                     "wfs_encoding" "UTF-8"                     "wfs_extent" "-180 -90 180 90"             END             TYPE point             STATUS ON             MAXSCALEDENOM 20000             LABELITEM 'Name'             CONNECTIONTYPE OGR             CONNECTION '/tmp/navhome/navdata/airports.db'             DATA 'select "POINT(" || LONG || " " || LAT || ")" as WKT_GEOMETRY, * FROM airports WHERE name LIKE "S%"'             #DATA 'select "POINT(" || LONG || " " || LAT || ")" as WKT_GEOMETRY, * FROM airports WHERE ICAO != "ZZZZ"'             PROJECTION                     "proj=latlong"                     "ellps=WGS84"                     "datum=WGS84"             END # PROJECTION     END # LAYER   Here is the OpenLayers code for the WFS layer:  var wfs = new OpenLayers.Layer.Vector("Airports", {             styleMap: new OpenLayers.StyleMap({                     externalGraphic: "red_pin.png",                             graphicWidth: 18,                             graphicHeight: 18             }),             wrapDateLine: true,             strategies: [new OpenLayers.Strategy.Fixed()],             protocol: new OpenLayers.Protocol.WFS({                     srsName: "EPSG:3857",                     version: "1.0.0",                     url: "http://my_url/cgi-bin/mapserv.exe?map=/tmp/navhome/navcore/airports2/airports_viewer.map&SERVICE=WFS&VERSION=1.1.0&srsName=EPSG:3857",                     featureType: "Airports"             })     });     map.addLayer(wfs);   Any input on this matter is appreciated. I assume it has something to do with the extent, but I'm not totally sure.


How can I configure `Alt-Tab` to show only windows from the current workspace?

When switching windows using Alt-Tab, I would like to see only windows from the current workspace.  Is there a way to configure that?  Relates to


Indicator icons do not appear after upgrade to Ubuntu 17.10

Only GNOME extension and native icons are displayed. Other icons like Dropbox, shutter, enpass etc. do not appear in the top bar.   Am I missing something? I already tried using extensions that I used with GNOME before but nothing (Topicons Plus, Ubuntu appindicators etc.) seems to help.  Currently I'm using Ubuntu Xorg, but in Wayland I have the same issue.


Stern-Brocot tree where each node has two fathers


If $X$ is a finite set of cardinality $n$, where $n$ exists in $P$, show that the following conditions on a function $f: X \to X$ are equivalent:

(a) $f$ is an injection (b) $f$ is a surjection (c) $f$ is a bijection  I know that (c) implies (a) and (b) and (a) and (b) imply (c). I also have the following definition that I've been playing around with:  If there exists a bijection from the set $X$ to the set $Y$, we write $ \#X=\#Y$ and we say that the sets $X$ and $Y$ have the same cardinality.  Since we are dealing with $f: X\to X$, does that imply that $f$ is an injection (since $f(x_1)=f(x_2)\to x_1=x_2$)  But I'm not sure what to make of this...


Why do popular but not ideal questions keep being closed?

I notice a really worrying trend of some really popular questions being closed and eventually deleted. Some of them became legends already, like this one  ? Yes, it does not fit the format ideally, but what is point of obeying the letter of the law to such extent that it becomes ridiculous? Ok, closing is fine if community leaders became so pedantic, but why go so far as to even delete it? At this point it looks like burning old pictures just because you don't like them.  Update: Summary  For now I heard only two clear arguments:   Those questions pollute search results.  Those questions don't play well with enforcing question and answer standards.   Both of that statements are easily verifiable and to my experience are just false.


$G$ is a finite group, prove that $G$ is abelian when $G/C(G)$ is cyclic.

Is it true that when $G/C(G)$ is cyclic, then $G$ is abelian?  The original question is     Prove that if $G$ is a finite non-abelian group, then $4|C(G)|\le G$.    Proof from the answer book: suppose that $1<G/C(G)<4$, then $G/C(G)$ is of order 2 or 3 and therefore cyclic. Hence $G$ would be abelian, a contradiction.    As is said in the title, I have no idea how the implication in the last sentence goes...


Force all values in a dictionary to be unique?

I need to maintain a mapping between enum values, and a multi-value type (name+number). e.g.   ABC : {"john", 123} DEF : {"paul", 234} GHI : {"ringo", 345}   I planned to do this using a Dictionary of some type but strictly speaking not only the keys should be unique, but the values too - it's like a bi-directional dictionary.  Then I need to be able to write a method MyEnum lookup(string name, int number) which I'd planned would call .Single(x => x.Value.name == name && x.Value.number == number) But I'm struggling to find the right types and apparently the KeyValuePair returned cannot be null which is a problem if there is no match.  What is a good way to approach this?


If $a,b,c,d,e,f$ are non negative real numbers such that $a+b+c+d+e+f=1$, then find maximum value of $ab+bc+cd+de+ef$

$(a+b+c+d+e+f)^2=$ sum of square of each number (X)+ $2($ sum of product of two numbers (Y) $)$ $ab+bc+cd+de+ef \le Y$ since all are positive.  Therefore $1\ge X+(ab+bc+cd+de+ef)$  Edit: From AM GM inequality, $$X\ge 6(abcde)^{1/3}$$and for am-gm inequality for a,b,c,d,e,f: $$1\ge 6(abcdef)^{1/6}$$ Hence $X\ge 6.\frac{1}{36}$ and $X\ge \frac{1}{6}$.   Is this correct?


I am using dual boot operating systems on my Dell Inspiron N4050 laptop with Windows 8.1 and Ubuntu 13.10. The time in Windows remains correct while I keep using it. But when I log into Ubuntu and then again restart my laptop and login to Windows, my Windows clock always shows the wrong time, a difference of about 5 hours. I have configured my region and synchronized it to the time at windows.com, but I am still facing the same problem. Please give me guidance.


How to send line of terminal output to variable?

In c++, I want to send a command to the terminal(system()) and then send whatever output the terminal shows into a variable, but I don't know how. I'm aware of the std::getline() function, but I'm not sure that would do the trick. If you know a way to complete this task, please let me know. Thanks in advance.


I've made roux some time ago. Forgot to put the date on the container. How long will it keep in the fridge? I'll be making a sauce in a day or two...


How do I match the UV map with the image used as texture

How can I make the UV map coincide with the image used as texture  (see image below) and apply it to the material of the model? I seem to have a confusing UV map.  ]


I'm in Southern Germany and just captured this animal crawling along my wall at considerable speed, apparently hiding from the light. It looks like a entipede from afar (about two dozen legs), and closer inspection reveals it has long legs, a clearly visible head, two long feelers, and striped hind legs. It's about 3-4 cm (1.5in) in length if I recall correctly. Below are the best-quality photos I managed to take before setting it free outside. I'm as ignorant about arthropods as I am averse to them, and I'd very much like to know if this one is harmful or not, and whether to expect more of those around the house.


Which Ubuntu distribution should I install on my PC

I am new to Ubuntu, but I want to try some flavor of it. My issue is that I don't know which distribution of Ubuntu should I go for.  My PC has the following specs.:  HP Pavilion Media Center a6037.fr   Ref.: RY906AA   Date: 20.03.2007   Motherboard:  ASUS - microATX - 24,4 cm (9,6 po) x 24,4 cm (9,6 po)   Chipset : Intel 945G Intel Core 2 Duo, 1,8 GHz   Socket : 775   2 GB; PC2-4 200 Mo/s     Could you please give me some information?


Check out date (month) increases in datepicker

Good day everyone! I am building a hotel booking application on android, my problem is when I select a date in the check-in editext via datepicker, the month in check out reservation shows the next month in the datepicker. How can I resolve this problem? Thank you. Here is my line of code for date picker.      etin = (EditText) findViewById(R.id.etcheckin);     etin.setInputType(InputType.TYPE_NULL);     etout = (EditText) findViewById(R.id.etcheckout);     etout.setInputType(InputType.TYPE_NULL);      etin.setOnClickListener( new View.OnClickListener() {          @Override         public void onClick(View view) {              showTruitonDatePickerDialog(view);         }     });      etout.setOnClickListener(new View.OnClickListener() {          @Override         public void onClick(View view) {              showToDatePickerDialog(view);         }     }); }  public void showTruitonDatePickerDialog(View v){     DialogFragment newFragment = new DatePickerFragment();     newFragment.show(getSupportFragmentManager(), "datePicker"); }  public void  showToDatePickerDialog(View v){     DialogFragment newFragment = new ToDatePickerFragment();     newFragment.show(getSupportFragmentManager(), "datePicker"); }  public static class  DatePickerFragment extends DialogFragment implements DatePickerDialog.OnDateSetListener{     public Dialog onCreateDialog(Bundle savedInstanceState){         final Calendar c = Calendar.getInstance();         int year = c.get(Calendar.YEAR);         int month = c.get(Calendar.MONTH);         int day = c.get(Calendar.DAY_OF_MONTH);          DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), R.style.Theme_AppCompat_DayNight_Dialog_Alert, this, year, month, day);          datePickerDialog.getDatePicker().setMinDate(c.getTimeInMillis());         c.set(2018,11 ,31);         datePickerDialog.getDatePicker().setMaxDate(c.getTimeInMillis());         return datePickerDialog;     }      public void onDateSet(DatePicker view, int year, int month, int day) {         // Do something with the date chosen by the user          Calendar cal = Calendar.getInstance();         cal.setTimeInMillis(0);         cal.set(year, month, day, 0, 0, 0);         int mont = month + 1;         etin.setText(mont + "/" + day+ "/" + year);         // etin.setText((etin.getmonth + 1) + );     } }  public static class ToDatePickerFragment extends DialogFragment implements DatePickerDialog.OnDateSetListener {     // Calendar startDateCalendar=Calendar.getInstance();      @Override     public Dialog onCreateDialog(Bundle savedInstanceState) {         // Use the current date as the default date in the picker          String getfromdate = etin.getText().toString();         String getfrom[] = getfromdate.split("/");         int year,month,day;         year= Integer.parseInt(getfrom[2]);         month = Integer.parseInt(getfrom[0]);         day = Integer.parseInt(getfrom[1]);         final Calendar c = Calendar.getInstance();         c.set(year, month, day + 1);         DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), R.style.Theme_AppCompat_DayNight_Dialog_Alert, this, year, month, day);         datePickerDialog.getDatePicker().setMinDate(c.getTimeInMillis());          c.set(2018,11, 31);         datePickerDialog.getDatePicker().setMaxDate(c.getTimeInMillis());         return datePickerDialog;     }     public void onDateSet(DatePicker view, int year, int month, int day) {          Calendar cal = Calendar.getInstance();         cal.setTimeInMillis(0);         cal.set(year, month, day, 0, 0, 0);           etout.setText(month + "/" + day + "/" + year);     } }


Drag & drop does not work on Ubuntu desktop

I am using Ubuntu 19.04, downloaded and installed yesterday. You know how in Windows we can drag and drop files from the file manager onto the desktop, and back and forth? It's a super basic function... that Ubuntu seems to lack.  I did research beforehand, but these solutions don't work for me:    disabling the experimental new view in Nautilus preferences (the option doesn't exist in Ubuntu 19) source:  running Nautilus as root (try it already) source:    More than drag and drop, I want to right-click on the desktop and create shortcut or text files and stuff. But nope, Ubuntu does not let me. I'm feeling frustrated with Ubuntu. Is Ubuntu 19 just not the right distro for me? Maybe Linux Mint... or just go back to using Windows. >.>"


I've started making home lemonade recently and all the recipes boil about one cup of sugar in one cup of water. I never questioned that until my father saw the process and asked why don't I just add water and sugar to lemon juice or add boiling water to the pitcher with lemon juice and sugar and I couldn't really tell, I just knew the sweetness was greater in my experience.


How to change the size & position of a dialog-based window programmatically?

I have code which creates a dialog-based window:  m_window = CreateDialogParam(GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_DIALOG1), NULL, DlgProc, 0); ShowWindow(m_window, SW_SHOW);   How to change the size and the position of that dialog-based window programmatically not from the resource(.rc) file?


in triangle ABC there satisfies equation: $\cos A \cos B+\sin A\sin B\sin C=1$, determine possible values of $C$

Question  in triangle ABC there satisfies equation: $\cos A\cos B+\sin A\sin B\sin C=1$, determine possible values of C  What I have so far  I've noticed that the given equation looked similar to $\cos(A-B)$ which was $\cos A\cos B+\sin A\sin B$.   This I can extrapolate that $\cos(A-B)-\sin A\sin B+\sin A\sin B\sin C=1$  Thus $\cos(A-B)=1+\sin A\sin B+\sin A\sin B\sin C$  and when i factor out the common terms:  $\cos(A-B)=1+\sin A\sin B(1-\sin C)$  Right here I am not sure how to proceed and I got stuck


How to extend Int32 to add FromSomething?

I'd like to add a method to the Int32 to do a "FromSomething" stuff.  Something that could allow me to write something like this:  Int32 i = Int32.FromSomething(mySourceData);   How could I achieve this?


What is wrong with code snippets/blocks on Stack Overflow?

I wasn't following Meta Stack Overflow too closely so maybe something was changed that I'm not aware of. But each time I paste a snippet from a Python console I'm getting wrong formatting. What I'm doing wrong? It seems that >>> is confusing for Stack Overflow. I've tried to escape it with backslashes, and it was working fine in preview but doesn't work after the question is rendered.  I was able to observe that problem on: recent Chrome (Windows, Mac), Safari 4 (Mac).  Here is  I wasn't able to make right.  Funny, I think the snippets are rendered just fine on Meta Stack Overflow. Here is one:  >>> def throw(): raise Exception()  ...  >>> a=1 >>> a=throw() Traceback (most recent call last):   File "<stdin>", line 1, in <module>   File "<stdin>", line 1, in throw Exception >>> a 1


Is their a way to move multiple vertices gradually at a time?

I have moved multiple vertices gradually but a set of vertices at a time not all at a time, as shown in the animation below (First I moved the four vertices from top, then three, then two and at last the last vertex).  I wanted to do the same thing as shown in the animation below but all at a time.


How to use WEEK and DAYOFWEEK functions in SQL Server

I have a simple code written in MySQL which returns the week number based on specific date:  Is there any equivalent in SQL Server? I was trying to use it by none function works  WEEK(ADDDATE(date,5-DAYOFWEEK(date)),3)


Creating multiple parallel lines using ArcPy?

I'm using the following code to create multiple parallel lines  import arcpy, math  offset = 3 offset_original = offset features=[] arcpy.env.overwriteOutput = True  infc="Export_Output_4_SmoothLine" talhao = "Export_Output_5"  spatialRef = arcpy.Describe(infc).spatialReference  def CopyParallel(plyP,sLength):     part=plyP.getPart(0)     lArray=arcpy.Array();rArray=arcpy.Array()     for ptX in part:         dL=plyP.measureOnLine(ptX)         ptX0=plyP.positionAlongLine (dL-0.01).firstPoint         ptX1=plyP.positionAlongLine (dL+0.01).firstPoint         dX=float(ptX1.X)-float(ptX0.X)         dY=float(ptX1.Y)-float(ptX0.Y)         lenV=math.hypot(dX,dY)         sX=(-dY*sLength/lenV);sY=dX*sLength/lenV         leftP=arcpy.Point(ptX.X+sX,ptX.Y+sY)         lArray.add(leftP)         rightP=arcpy.Point(ptX.X-sX, ptX.Y-sY)         rArray.add(rightP)     array = arcpy.Array([rArray, lArray])     section=arcpy.Polyline(array, spatialRef)     return section   with arcpy.da.UpdateCursor(infc,["SHAPE@"]) as cursor:     for shp in cursor:         i=0         while i <= 100:             print str(i)             if (i > 0):                 offset = offset + offset_original             twoLines=CopyParallel(shp[0],offset)             temp=twoLines             features.append(twoLines)             i=i+1  arcpy.CopyFeatures_management(features, "test")   It happens that after a while he starts to create lines in this way    How do I get these intersections or not create them in the script?


Keep track of successful pin in Bandit CTF 24 to 25

I am doing the bandit wargame of OverTheWire and am trying to pass . I successfully got the password with the script below but I'd like to recover the successful pin. I tried implementing a counter but was unsuccessful. Do you have any idea on how I could proceed ? Code: for i in {0000..9999}; do    echo UoMYTrfrBFHyQXmg6gzctqAwOmw1IohZ $i;  done | nc localhost 30002


Is it possible to export a QGIS project to Mapnik xml?   I'm using QGIS 2.4 and Quantumnik does not seem to work with that version.


If $A$ is invertible show that $\det(A) \neq 0$

If $A \in M_{n\times n}(F)$ is not invertible then the rank of $A$ is less than $n$, thus $\det(A) =0$.    I proved that way, but looks like too simple so I think maybe there is a trick that I missed. Or I proved it right?   Modification: ($\Rightarrow$) If $A$ is invertible, $AB=I$, $\det(AB)=\det(A)\det(B)=1$ so $\det(A) \neq 0$ ($\Leftarrow$) If $\det(A) \neq 0$ , by Cramer's rule, $Ax=b$ has a unique solution and it means $A$ is invertible ($x=A^{-1}b$)    Now I think I complete the proof.


How can I override or disable a parent theme's CSS file?

I am trying to override the menu.css file in the default Classy theme through my library file. I have read through the documentation, but anything I tried doesn't work.  What would be the correct markup to override or disable this file?


SCP files from machineB to machineA by logging into machineA

I am trying to scp the files from machineB to machineA. I need to run the scp command from machineA to copy files from machineB to machineA.  The file that I need to copy from machineB is -   /bat/data/snapshot/5.data   And where I need to copy the file into machineA is -   /data01/primary   in which I have root access as well and /data01/primary has only root credentials.  Below is the ls -lt on machineA  david@machineA:/$ ls -lt  drwxr-xr-x   3 root root  4096 Nov  7 17:43 data02 drwxr-xr-x   3 root root  4096 Nov  7 17:42 data01 drwxr-xr-x   4 root root  4096 Nov  7 17:26 opt   So I was trying the below scp command on machineA to copy the files -   scp david@machineB:/bat/data/snapshot/5.data root@machineA:/data01/primary   but I am always getting -   Host key verification failed.   I do have root access to machineA but not root access to machineB. And I can ping machineB from machineA as well. And both machines are in production domain as well.


C extracting decimal places of floatingpoint number

I know there are some truncating issues or kind of rounding issues in float. but truncation for any value should be same. but here Can anyone explain. why outputs for 4.2 5.2 etc are extracting 19 as decimal part while 1.2, 2.2 etc as 20.  By the way the program is trying to represent pattern as follows  1.23 => 100 and 23  4.2 => 400 and 20 etc..  I guess in my machine 4.2 is stored as 4.1999998092651367187500000000000000000000000000000000000 while 1.2 as 1.2000000476837158203125000000000000000000000000000000000 But why ? whats differs from 1.2 and 4.2.  #include <stdio.h>  int main(void) {     for ( float value = 1.2 ; value < 100; value++){     printf("Obtained value : %f real part : %d decimal part : %f \n", value, (int)value * 100, (value - (int) value) * 100);     }     return 0; }


$X$, $Y$ and $Z$ are three random variables where their pairwise correlations are the same, i.e., $corr(X,Y)=corr(Y,Z)=corr(X,Z)=\rho$ what are the possible values of $\rho$?  I was asked this in an interview (data analyst).


Is there a shortcut to minimize just the selected window in Ubuntu?

I'm running Ubuntu 20.04 LTS. There is a place in the settings where I can add a shortcut for minimizing all open windows. I was wondering if there is a way to add a shortcut for minimizing just the selected window. Because there isn't such an option in the settings.


Why is the QGIS 2.10 raster clip function not working correctly?

I am using QGIS 2.10 and everything seems to work just fine so far, except for the raster clipping function (Raster>Extraction>Clipper). I'm using a vector poligon as a mask layer, but after launching the function, it just does nothing - not even showing an error.


Find all integers $x$ such that $\frac{2^x+1}{x^2}$ is an integer.

We need to find all integers $x>1$ such that $$\frac{2^x+1}{x^2}$$is an integer. I have pointed out that $x=3$ works. And none of the even integer will work. How do I proceed?


By my understanding their charge could have been called positive, and the charge of the proton and positron called negative. What are the historical reasons for this?


If I was to take a bunch of magnets and arrange them in a sphere (And keep them there with glue or plastic or something) so that the north pole faces the outside of the sphere and the south pole faces the inside, would the magnet have the same pole no matter what way I turn it or would the magnet be neutralized or something.  I'm envisioning a sphere made of magnets so that no matter what way I turn it it is always the same pole and that a bunch of these repelling each other would be really cool, is this possible?  In effect would this create a monopole magnet?


Why does this give me september 30 rather than oct 1?    var dob = new Date("1999-10-01") console.log(dob.toString())


When does the isomorphism $G\simeq \ker(\phi)\times \operatorname{im}(\phi)$? hold?

Suppose you have a group isomorphism given by the first isomorphism theorem: $$G/\ker(\phi) \simeq \operatorname{im}(\phi)$$ What can we say about the group $\ker(\phi)\times \operatorname{im}(\phi)$? In particular, when does the following hold: $$G\simeq \ker(\phi)\times \operatorname{im}(\phi)?$$ I ask this question because i want to prove that $GL_n^+(\mathbb{R}) \simeq SL_n(\mathbb{R}) \times \mathbb{R}^*_{>0}$, with $GL_n^+(\mathbb{R})$ the group of matrices with positive determinant. I proved that $SL_n(\mathbb{R})$ is a normal subgroup and that $GL_n^+(\mathbb{R})/  SL_n(\mathbb{R}) \simeq \mathbb{R}^*_{>0}$, using the surjective homomorphism $\det(M)$. I tried something with semidirect products but I got stuck.


What are the differences of watching a 1080p and a 720p version of the same media on a 720p screen?

Say I have 1280x720 pixels on my screen and the current resolution is set to 1280x720 as well. What are the differences between the 1080p version and the 720p version of the same media? Is it noticeable to an end user (a non-video expert or enthusiast)?  Clarification Edit: The question was in regard to .mkv files rather than YouTube videos.


Should I use plural or singular fore 'more than one' and why?

I was writing the sentence and understood I do not know whether to use plural or singular:  If more than one attribute was / were found ...


My interest in Blender comes from wanting to use it to model physical structures and produce architectural drawings; what I have so far is really impressive, but there doesn't seem to be too much information about my particular interest.   Are there any (Blender-) resources that would be particularly useful for architects? E.g. packages of standard 'elements' like windows, doors, roofs or whatever, or perhaps a discussion group specifically for architects?


How to avoid multiple "of-phrases" in one sentence?

I often find myself inclined to write something like the following:     Let's think about this problem from the point of view of readability   and self-obvious design.   Two *of*s, which come one after another, look bad and sometimes disrupt the flow of thought. And it may be even worse — I start trying to introduce even more nested attributes, recursively.  I tried rewriting the top sentence using the readability and self-obvious design as an attribute of point of view, but that's even worse in my opinion.  How can I avoid such repetitive pattern and still be able to express complex attributes of subjects?


How to calculate distance in miles in an array of coordinates in javascript?

I have an array of geocoordinates as follows: const coordinates = [     { lat: 40.54735374702427, lon: -74.39442702644757 },     { lat: 40.27735374702427, lon: -74.43442702644757 },     { lat: 40.19735374202427, lon: -74.84442702644757 } ]  How do I get the total distance with all the coordinates combined like so: Distance between coords[0] - coords[1] added to coords[1] - coords[2] etc. for all the elements in the array to get the total distance in miles. I also want to take into account the curvature of the earth. NOTE: All coordinates are made up for the purpose of this question.


How do spell slots work for druid/sorcerer in DnD 5e?

Please forgive the ignorance of this question. I'm new to DND and am DM with a group of lower level players. We are playing DnD 5e. Please explain spell slots for a druid and/or sorcerer... am I correct to say: Each day players "prepare" list of spells for that day, and place one in each spell slot to use later.... -is this correct? -can each spell be used only once per day? -do spells come from ALL spells for that level or only known spells? -if it comes from known spells, how does a druid or sorcerer add to list of known spells? For instance, I have a level 2 sorcerer who wants to use the same spell every round. We've played with the understanding that he can use that spell every time, but only as many times as spell slots he has. But, I think we are understanding this wrong. Thanks for your help. I've read a ton but I am still confused on this.


how to 1 patterntText to replaced with Regex.Replace

string inputText="lorem impsum dolar sit amet lorem"; string patternText="lorem"; string replacementText="XXXX"; Regex.Replace(inputText, patternText, replacementText, RegexOptions.IgnoreCase);   output:XXXX impsum dolar sit amet XXXX  But how do I make only one change ?  should be such that  : XXXX impsum dolar sit amet lorem


I am trying to use an if/else statement incorporating the java scanner for a username and password application

So I am asking the user for their username, and if the user types in "username" then he/she will have "Correct, that is your username!" displayed and if they get it wrong they will get "Incorrect, that is not your username!" displayed.  The problem I am having is that whenever I type the username, in this example the username being "username" I have the Incorrect message displayed.   I would like to know where I went wrong and if this question has been asked a million times if someone could direct me to one of those posts where this has been solved that would be great since I can't seem to find one that's like this problem.  import javax.swing.*;  import java.util.Scanner;  public class userID {  public static void main(String[] args) {      Scanner input = new Scanner(System.in);      String username;     String password;     String email;     String scanner1;      username = "username";     password = "password";     email = "emailhere";      System.out.println("------------------------------------------");     System.out.println("Welcome to the ID memory tester");     System.out.println("Author: me");     System.out.println("------------------------------------------");      System.out.println("What is your username?");       scanner1 = (input.nextLine());       if (scanner1 == username) {         System.out.println("Correct, that is your username!");     } else {         System.out.println("Incorrect, that is not your username!");     } }   }


Calling @Html.Partial to display a partial view belonging to a different controller

I am developing an ASP.NET MVC 3 application, whose content pages have a common pattern of layout elements. However, because the login page does not follow this layout, I cannot place this layout in \Views\Shared\_Layout.cshtml.  So I would like to add another shared layout, say, \Views\Shared\_Content.cshtml, and call it from the content views... but unfortunately those views belong to different controllers.  Is there any way to invoke @Html.Partial for a view belonging to a different controller?


Is the Ubuntu on Dell machines stock Ubuntu?

I'm interested in a Dell machine with Ubuntu pre-installed (just for the sake of knowing it's 100% Linux compatible)  The Ubuntu that's being installed on Precision and XPS13 models, is that a stock Ubuntu or did Dell add some specific things to make it work with their hardware?  If i wanted to switch to Fedora or Elementary and then back to Ubuntu at some point in the future, it would be reassuring to know that a stock Ubuntu would just work without major tweaking.


Application of Taylor's theorem, Baby Rudin 5.15

Suppose a ∈ R1, f is a twice-differentiable real function on (a,∞), and M0, M1, M2 are the least upper bounds of $|f(x)|, |f'(x)|, |f''(x)|,$ respectively, on $(a, ∞)$.   Prove that $M_1^2 ≤ 4M_0M_2$.  Hint:  If $h > 0,$ Taylor’s theorem shows that $f'(x) = \frac{1}{2h} [f(x + 2h) − f(x)] − hf''(ξ)$ for some $ξ ∈ (x, x + 2h). $ . . .    My question is how to apply Taylor's theorem so that we get  $$f'(x) = \frac{1}{2h} [f(x + 2h) − f(x)] − hf''(ξ)$$ for some $ξ ∈ (x, x + 2h).$


Understand numpy.isclose criteria to raise exception (atol and rtol)

import numpy as np a = 8820749763.729916 b = 8820749763.729918 np.isclose(a,b,rtol=1e-10,atol=1e-10)  The above evaluation gives True on python 27 and numpy 1.11.1. I know I am on a relatively older setup here, but is this expected? My understanding is atol=abs(a-b), and since the diff is clearly larger than 1e-10, this function should raise an exception. Would you pls help me to understand it?


I am loading a user via  in my themename.theme. Now I would like to view some of the fields in my template. But how to get/render the fields?  I can use  to render the whole user. But I would like to access only some fields and make them available in the template.


I need to prove that  $$\int^1_0 f(x)dx=f(0)+\frac{1}{2}f'(a)$$ where $f$ is continuous and differentiable in $[0,1]$ and $a\in(0,1)$.    I know that as $f$ is continuous in $[0,1]$ there exists $c\in (0,1)$ such that $\int^1_0 f(x)dx=f(c)$. Now maybe I should show that $f(c)=f(0)+\frac{1}{2}f'(a)$ ? If I should I don't know how to do it. The other approach that I had, was going by the definition of $\int^1_0 f(x)dx$ to see if I could somehow get a similar result to the right side of the equation above, it didn't seem to lead anywhere. Do you have any idea how to approach it?


jQuery not affecting content loaded by AJAX

I have a div element, which when clicked will toggle a class on it's parent.  $('.q-header').on('click', function() {     $(this).parent('.question-wrap').toggleClass('miniturised'); }); // the 'miniturised' class hides child elements. // therefore when q-header is clicked the child elements are toggled   I have a button on my site, when clicked, it will load one of the aforementioned div elements to the site via AJAX.  $('#addqs').on('click', function() {     var response;     $.ajax({ type: "GET",             url: "./qt-single-line.html",             async: false,          success : function(text)          {              response = text;          }     });     $('#final-row').before(response);     return false; });   The divs loaded via AJAX are unaffected by the first function which toggles the class 'miniturised'. Why is the new AJAX content not affected by my JS?  Edit: The HTML element looks like so

   On a normal DOM element, when I click q-header, miniturise is toggled. This doesn't work on dynamic elements, I know this. I want to know how to solve this, please.


Checkmark option appears to be missing - can't accept answer!

I signed up yesterday and asked a question on StackOverflow - and received an answer within about an hour. But I can't find anyway to 'accept' it. I realize there's supposed to be checkmarks, but they're not showing. Am I missing something totally obvious?! I've tried two different browsers (Chrome and Firefox) and turning off the adblocker on my Chrome. But still nothing! Here's the view I currently have of my question and comments:


Why a high voltage AC always present in SMPS AC to DC power adapters

I'hv seen every 2 pin SMPS AC to DC adapters shows a little high voltage respective to the ground on the out put, on both + and GND wires(or more if more wires present).  This voltage is high enough to light small neon bulbs or a line tester, but very low current, barely could be felt. This voltage vanishes if I connect the output to ground somehow, e.g. touch it while standing on floor bare foot.  As the size of the adapter increases, the AC voltage and current increases. When laptop adapters are powered from a ungrounded AC outlet, they gives reasonable shock from the 19V DC(or whatever else) output.  Perhaps this is the reason why many 3 pronged laptop adapter carries a warning CONNECT ONLY TO GROUNDED OUTLET Connecting to a grounded outlet magically vanishes the high voltage.  I am aware about the EMI filtering capacitor connected between high voltage and low voltage ground, I tried to solve this by removing them, but this trick is not working.   Why and how this mysterious AC voltage is created ?  Is it harmful to sensitive electronics components ? Is there any way to solve this without grounding the DC output side ?


Can less follow (by pressing F) a piped input (similarly to a file)? For a file that is being written to, the command  less <file>   will follow the file when pressing F.  But if I have a command that pipes output directly into less, like this  command | less   pressing F will do nothing.  So it looks like pipes cannot be followed like files can? Or maybe it has to do with command also writing to STDERR? The effect I'm trying to achieve is always see the latest output of the command: just like keeping PageDown pressed!  A related remark holds for G (go to end): when piping directly to less, it won't work.


My  is on the battlefield. On my opponent's turn he brings in , targeting my cub to return my cub to my hand. I respond with  to make my cub hexproof. Does my cub remain on the battlefield or back in my hand?  Second question It is my opponent's turn. My  is on the battlefield. I spend energy to make the hydra hexproof and +1/+1. My opponent casts reflector mage, targeting the hydra. Does the hydra remain on the board?  I would say cub stays and hydra goes to hand. Thanks for your help.


I am working on an e-commerce website (written in ASP.NET MVC). I want to build a blog for my website to create some content and improve the Search Engine Ranking of the website/ I can think of 2 options for the blog domain:  my-site.com/blog blog.my-site.com  Which option is recommended? Appreciate an explanation.


How does the comparison in Strings work?

When I compare ("String"=="String"), what exactly I am comparing, the two objects or two  references?  Please explain the output of following code snippets:      1) System.out.println("String".toString()=="String"); // output is true  2) System.out.println("String".trim()=="String"); // output is true  3) System.out.println("String ".trim()=="String"); // output is false   According to statement 1 and 2, the output of 3rd statement should also be true. Please explain what is going on here.


From the descriptions I've seen online, once I have set up a supply line between two settlemens they should share resources. However, when I look at their respective inventories they seem separate.  How does resource sharing work, exactly? What happens when I set up a supply line?


I am generating a fairly large index of .txt, .tex, and .pdf files. This process has worked for a long time, and the size of the index is not the issue. I have added logic to insert additional links in the index and now am running into:  TeX capacity exceeded, sorry [save size=80000]  Questions:  What are the typical causes of this kind of problem, and any suggestions on how to determine the cause of this. Can the save size be increased?  Of course any solution that just allows me to increase the save size would be preferable if it works, the first question is only important if the size can't be increased or I run into this problem again. Notes:  Generating smaller indices seems to work just fine, only when I attempt to generate the entire index do I run into problems, so coming up with a MWE will be difficult.


How to put the hash of a PDF file in the PDF file?

I know it sounds strange.. but, are there any ways in practice to put the hash of a PDF file in the PDF file? And after geting the hash in the PDF file - if someone would do a hash check of the PDF file, the hash would be the same as the one that is already in the PDF file? :) maybe with MD5, since it's known to have weaknesses? Example:   [user@notebook ~] wget -q http://renyi.hu/~csirmaz/nws06/xajanlo.ps -O Md5-xajanlo.ps; wget -q http://renyi.hu/~csirmaz/nws06/xutasit.ps -O Md5-xutasit.ps; md5sum Md5-xajanlo.ps; md5sum Md5-xutasit.ps; sha512sum Md5-xajanlo.ps; sha512sum Md5-xutasit.ps; rm Md5-xajanlo.ps Md5-xutasit.ps 583bdceb34826c38ac7f1fdac3aca807  Md5-xajanlo.ps 583bdceb34826c38ac7f1fdac3aca807  Md5-xutasit.ps c82d26f77ccd4597622fc985d4220aedad6f866555c6db82db2d6d17e22016268a3e88d0b0cd89a8e536ae7d666c446edeb77edef2fca783739e4bff9d7032be  Md5-xajanlo.ps 205c18b396bee84995d8c325787600ca88ca3d9758c4dfe89cdaa242ab9513710057c5fce55afb2c6ef3117703be7c31266a1fa6fbac1f369b82f0719587c60c  Md5-xutasit.ps [user@notebook ~]


So the question asks :  $$ f_X(t) = \begin{cases} t^2/3,&\text{if }t\in[-1,2]\\ 0,&\text{otherwise} \end{cases} $$  If $Y= X^2$ what is the range of $Y$? Calculate $\mathbb{E}[X^2]$ directly using the density of $f_Y(t)$.  So, so far, regarding $Y$ for $t\in[1,4]$ I have done the following.  $$f_Y(t) = P(X^2 \leq y) = P(X \leq \sqrt{y}) = \int_0^{\sqrt{y}} t^2/3 \mathrm{d}t= \sqrt{\frac{y^3}{9}}$$  But the expected value of   $$\mathbb{E}[X^2] = \mathbb{E}[Y] =\int_1^4 \sqrt{y^3/9}  \sqrt{y} \mathrm{d}y = \frac{7}{3}$$  Which does not equal the $\mathbb{E}[X^2]$ I calculated from using the density of X:  $$\mathbb{E}[X^2]= \int_1^2 t^2/3 t^2 \mathrm{d}t = 11/5$$  So is the range of Y or the density of Y calculated incorrectly? Or I am doing the integral of the density in a wrong way?


Date and Time only partially visible in Big Sur

As you can see in the image above, the date and time are dimmer than normal. How do I fix this?


From my understanding your limited to 10 settlers + 1 extra settler per Charisma special point. This is PER SETTLEMENT. Including the bobble head that is a total of 22 settlers per settlement.  Does that mean someone could acquire a total of 22 settlers in each and every settlement of the game before reaching the upper maximum?


Hiding the field label when creating a content type

I have created a content type called "Design" in which there are 3 fields. When creating this content type I want to hide the label of fields. How would I do that?


Substituting sweetened condensed milk for evaporated milk

I am making caramel. The recipe calls for 2 - 12oz. cans of evaporated milk. I want to use sweetened condensed milk. Do I use the same amount?


If I have $\sum_{n=2}^{\infty} \frac {1}{n\log n}$ and want to prove that it diverges, can I use following?  $$\frac {1}{n\log n} \lt \frac {1}{n}$$   $\sum_{n=1}^\infty \frac 1 n$ diverges, but the limit of $\frac 1 n$ equals to zero so the comparasion I think isn't useful. Or can I say it diverges because $\sum_{n=1}^\infty \frac 1{\log n}$ also diverges?   And If I have $\sum_{n=2}^\infty \frac {(-1)^n}{(n)}$ I can use the Leibniz rule. $\sum_{n=1}^\infty \frac 1 n$ diverges, but the limit of it equals to zero, so I am confused if this series diverges/converges again. I understand that $\sum_{n=1}^\infty \frac 1 n$ has an infinite sum, but what to do in this case?


" Migrated fom " message disappeared when scroll the page

Some days ago I saw a migrated question in Meta : .  In the last session of the question there is a banner like Migrated from Stack Overflow    But when I scrolled to bottom for reading the answer, the banner vanished:    I refreshed the page it come again. Is that a bug ?


I wrote a server and client Java TCP Socket, It works on private network(192.168.2.x) but how I have no idea how make it work with public ip. I think I should open a port in the router and use my server ip and this port to init client socket! I tried it and did not work.  Init of sockets here:  Socket clientSocket = new Socket(IP, PORT);  ServerSocket server = new ServerSocket(PORT);