I have code that looks like this:  var a = []; for(var i = 0; i < 10; i++) {     a[i] = function() {         console.log(i);     } }   Unfortunately, it seems that i is being passed by reference, so all the functions in a output 10. How do I make it so that each function outputs the value that i had when it was created? I.e. a[0]() gives 0, a[1]() gives 1, etc.  EDIT: to clarify, I do not want a to store the values 0-9. I want a to store functions that return the values 0-9.


What's the fastest connection speed / shortest elapsed time using Migration Assistant?

When using Migration Assistant to move users, files, and folders from an old Mac to a new one, you have a few different choices, depending on the Macs involved. Presuming that both Macs have appropriate ports, which ports should be used in a real-world situation? Please do not provide quotations of theoretical port speeds; I'm looking for real-world experiences as to what will get the job done faster.  Port choices:   FireWire 400 in target disk mode FireWire 400 to 800 in target disk mode FireWire 800 in target disk mode 100 Megabit Ethernet to Gigabit Ethernet in the OS Gigabit Ethernet to Gigabit Ethernet in the OS Thunderbolt cable in target disk mode


ugly color for directories in gnome- terminal?

Some of my folders are highlighted in green   What does the green highlighting means? How can I remove the highlight and make them look similar to others?  terminal : gnome-terminal.  system : Ubuntu 16.04


Showing that $(\partial_{z}f_{n}(z_{n}))^{k} \rightarrow (\partial_{z}f(z_{o}))^{k}. $ via Compact Sets and Cauchy Estimate?

In the text "Function Theory of a Complex Variable" by Robert E. Greene and Steven G. Krantz I'm having difficulty verifying my appoarch to proving to Exercise 41 on (pg.100) much of the details pertaining to the proof of $\text{Proposition}\, \, \,  (1.2)$ can be seen in $\text{Lemma (1.2)-(1.3)}.$ Also what makes the question unique is the particular appoarch taken throughout $\text{Lemma (1.2)-(1.3)}.$  $(1.0)$  Let $f_{n}$ be continuous on the open set $U$ and let $f_{n}  \rightarrow f \in U$ uniformly converage on compact sets then prove that $f_{n}(z_{n}) \rightarrow f(z_{o})$   $\text{Proposition}\, \, \,  (1.2)$  If the $f_{n}$ are also holomorphic and if $0 < k \in \mathbb{Z}$, then prove that in $(1.3)$  $(1.3)$  $$(\partial_{z}f_{n}(z_{n}))^{k} \rightarrow (\partial_{z}f(z_{o}))^{k}.$$  To prove $(1)$, one must rely on the Cauchy Inequality's and compactness arguments much of the formal developments can be seen in $\text{Lemma (1.2)-(1.3)}$  $\text{Lemma (1.2)}$  Allow $\Psi$ be a compact subset of $U$ such that there is an $r >0$ such that, for each $z \in \Psi$, the closed disc $\overline{D(z,r)}$ is contained in $U$. Fix an r. Then the set  $$\Psi_{r}=\overline{\Bigg(\bigcup_{z \in \Psi}D(z,r) \Bigg)}$$  compact subset of $U$.  $\text{Lemma (1.3)}$  $\text{Theorem 1.3} \, \, \text{(The Cauchy estimate)}$.  Let $f: U \rightarrow \mathbb{C}$ be a holomorphic function on an Open set $U$ such that $P \in  U$ and assume that the closed disc $\overline D(\zeta,r)$, $r>0$ is contained in $U$.$M=\sup_{z \in \overline D(\zeta,r)}|f(z)|$ Then for $k=1,2,3...$ we have  $$\bigg| \partial_{z^{k}}f(P) \bigg |  \leq \frac{k!}{r^{k}}\sup_{z \in \overline D(\zeta,r)}|f(z)|.$$  Applying the Cauchy Inequality's our original proposition in $(1)$ now becomes for each $z \in \Psi$ the following bound   $$\left| \partial_{z^{k}} (f_{n_{1}}(z_{1})-f_{n_{2}}(z_{2}))  \right|\leq \frac{k!}{r^{k}}\sup_{|\zeta -z| \leq r} |f_{n_{1}}(\zeta) - f_{n_{2}}(\zeta)| \leq \frac{k!}{r^{k}}\sup_{\zeta \in \Psi_{r}}|f_{n_{1}}(\zeta)-f_{n_{2}}(\zeta)|.$$  So for all $z \in \Psi$ we can construct the following estimate  $$\left| \partial_{z^{k}} (f_{n_{1}}(z_{1})-f_{n_{2}}(z_{2})) \right| \leq \frac{k!}{r^{k}}\sup_{\zeta \in \Psi_{r}}|f_{n_{1}}(\zeta)-f_{n_{2}}(\zeta)|$$  The rhs side goes to $0$ as $n_{1},n_{2}\rightarrow \infty$, since $\Psi_{r}$ is compact such that ${f_{n}(z_{n}})$ converges uniformly on $\Psi_{r}$ Thus $(\partial / \partial_{z} f_{n}(z_{n}))$ is uniformly Cauchy on $\Psi_{r}$  $\text{Summary}$  In summary construction of the Compact Subset $\Psi_{r}$ is to allow one at least at the global level to use compactness arguments to allow for the uniform convergence of $(\partial_{z}f_{n}(z_{n}))$.In summary at an intuitive level for the subset $\Psi_{r}$ to be compact one takes $\overline{\Bigg({\bigcup_{z \in \Psi}D(z,r)} \Bigg)}$ to from $\Psi_{r}$.Which means we have a set that is not "too large" in which we can have functions defined on $\Psi_{r}$ for one to have Cauchy criterion for $((\partial / \partial_{z}f_{n}(z_{n}) \rightarrow \partial / \partial_{z}f_{n}(z_{o}))$ uniformly on $\Psi_{r}$.


Travelling from India to Canada: Transit visa in the UK?

I will be traveling from India to Canada via United Kingdom in British Airways flight. The stopover in London is for 6 hours. I will be staying in the airport only. Do I need a transit visa for United Kingdom?


Why must normalisable eigenfunctions have $E > V_{min}$?

I have read normalisable eigenfunctions of the Hamiltonian operator. $$\hat{H}\phi = E\phi$$ If $\phi$ is to be normalisable we must have $E > V_{min}$ Why is this?


How to install Ubuntu on a laptop alongside Windows Vista?

I have Windows vista 64 bit with a free D: drive that has nothing on it.   How do I install Ubuntu Dual Boot  The drive is formatted but did I do it right? How can I tell?


Fix the flair display within post revision view

The post revisions view doesn't present a proper abbreviated reputation flair. In fact, it shows the full reputation as-is, without a thousand-separating comma. Can this be fixed? Consider :  The problem is not really an issue, until you , where content starts to stick into the margin:


Create view with all events till today + 2 more

to create block with events, which will be shown on homepage. Is it possible to create view, which will show all events, till today + 2 more, which are in future and closest to today date? Like it is shown on this diagram  2017-04-16 Event6 nonvisible  2016-09-15 Event5 visible  2014-03-12 Event4 visible  ----------------- today  2013-12-20 Event3 visible  2012-12-20 Event2 visible  2009-12-20 Event1 visible


I want to install ns2 on my Ubuntu 12.04. As usual am trying to install some essential software before installing it. I tried to install:  sudo apt-get install perl xorg-dev g++ xgraph libxt-dev libx11-dev libxmu-dev   And I get this message:  Reading package lists... Done Building dependency tree        Reading state information... Done Package xgraph is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'xgraph' has no installation candidate   What should I do?   I ve searched everywhere online for a solution but got none.   How can I solve this?


I was exploring a cave (curved hole going deep in ground). I encountered these three 'things'. What should I call them?


Is it possible to encrypt home folder on windows 7?

Ubuntu and MaxOS has an ability to encrypt home folder in case laptop is stolen. Is it possible to do same thing on Windows 7? I need to encrypt home folder so it will be encrypted and decrypted runtime using my password, so if laptop is stolen it is no way for a stealer to remove HDD and read / decrypt sensitive data.  If such thing is possible, what version of Windows 7 provides that functionality? Is "home premium" enough?


Given any strictly-increasing continuous function $f$ such that $f(0) = 0$ and $f(1) = 1$, show that $$\int_0^1 [f(x)+f^{-1}(x) ]dx= 1.$$  I tried using mean value theorem but it won't work. I tried few examples it is correct.   Edit:  If I draw  graph of picture, and seeing integral as area, we can see the integral is just area of the square $\{(0,0),(0,1),(1,1),(1,0)\}$.   Please give me a hint to attack this problem analytically.


How to type non-printable ASCII characters in Mac OS X Terminal?

To communicate with a serial-type device over a telnet socket, I need to type the null character (ASCII 0) and all other non-printable ASCII characters.  On Windows, you hold ALT and type the ASCII code.  How do I do this on Mac OS X?


pgfplots: "minor y tick num" not working as expected (not showing)

\documentclass{scrartcl}  \usepackage{pgfplots} \pgfplotsset{compat=1.15}  \begin{document}  \section*{\texttt{minor y tick num} Works} \begin{tikzpicture}     \begin{axis}[     %     axis x line = bottom,     axis y line = left,      %     grid = both,     minor x tick num = 1,     minor y tick num = 1,     %     xmin = 0,     xmax = 10.2,     xtick = {0,1,...,10},     %     ymin = 0,     ymax = 1.05,         %     ]     \end{axis} \end{tikzpicture}  \section*{\texttt{minor y tick num} Does Not Work} \begin{tikzpicture} \begin{axis}[     %      axis x line = bottom,     axis y line = left,      %        grid = both,     minor x tick num = 1,     minor y tick num = 1,     %                    xmin = 0,     xmax = 10.2,     xtick = {0,1,...,10},     %        ymin = 0,     ymax = 1.05,     ytick = {0,0.2,...,1.2}, % <--- Difference     %            ] \end{axis} \end{tikzpicture}  \end{document}      Problem   As soon as I define ytick = {0,0.2,...,1.2}, the minor y ticks   disappear. Maybe I don't see the obvious :=).


The question reads     $$U_n = (1+x)^n - 1 - nx$$   Show that $U_2 \geq 0$   Hence or otherwise show that $(1+x)^n \geq 1 + nx$ for all $x \gt -1$.   Obviously the $U_2 \geq 0$ is very easy, I can do that without any trouble but I cannot see how it links to the 2nd part of the question.


How to type a circumflex over a greek letter in text mode?

I am trying to type a circumflex over a Greek letter in \chapter. In particular, I'm using this package:  \usepackage{textgreek}   However, if I write \^{\textPi} I get this result:    while I want the circumfex to be over the letter. Can anyone help me to solve this issue?


Who are the people on left and right side of superman? The headline says Do they return to their planet?  So they could be aliens, Is the first one is The Mask?? He looks like him. I am not a comic book fan, so if it is Mask, then he and Superman are in same universe? If not who is he? and the girl right to superman?   Any reference to future movies?


Expectation value for $\frac{1}{r}$ in the $|nlm\rangle$ state of hydrogen

I'm trying to derive $\left\langle \frac{1}{r} \right\rangle = \frac{1}{n^2 a_0}$ (where $a_0$ is the Bohr radius) for the $| nlm\rangle$ state of hydrogen.  I've separated the radial and angular parts of the hydrogen wavefunction and split up the integration to yield  \begin{align}\left\langle \frac{1}{r} \right\rangle &= \int R^*_{nl}(r) {Y^{m}_{l}}^*(\theta, \phi) \frac{1}{r} R_{nl}(r) Y_{l}^{m}(\theta, \phi) r^2 \sin \theta ~\mathrm dr ~\mathrm d\theta~\mathrm d\phi\\ &= \int {Y^{m}_{l}}^*(\theta, \phi) Y_{l}^{m}(\theta, \phi) \sin \theta ~\mathrm d\theta ~\mathrm d\phi \int \limits_{0}^{\infty} r R^*_{nl}(r) R_{nl}(r) ~\mathrm dr\\ &= \int \limits_{0}^{\infty} r R^*_{nl}(r) R_{nl}(r) ~\mathrm dr\end{align}  But from here, I'm not sure how to continue. Since $R_{nl}(r)$ is defined as $$R_{nl}(r) = \left( \frac{2 Z}{n a_0} r \right)^l \sum \limits_{k = 0}^{n - l - 1} a_k \left( \frac{2 Z}{n a_0} r \right)^k e^{-Zr/n a_0}$$ where $$a_{k + 1} = \frac{k + l + 1 - n}{(k + 1)(k + 2l + 2)}a_k$$  How do I deal with the sum inside the integral (especially a sum that requires recursion to compute coefficients)?  Have looked this  so far.


How do I configure the search domain correctly?

I recently installed Ubuntu GNOME on my work computer, replacing Windows 7, because I will be doing a lot of Linux development work.  Many of our configuration and development scripts use shortened URLs for servers on the company network. That is, they use http://server rather than http://server.location.company.com. I never had problems with these URLS in Windows, but I have not been able to get them to work correctly in Ubuntu. It is not feasible for me to simply type the entire fully-qualified URL because the shortened form is used all over the place in various scripts, but I am able to access the long-form URLs.  When I connect to the company's VPN using the , the shortened URLS do work correctly.  Based on the research I have done so far, I think that I need to configure location.company.com as a search domain on Ubuntu, but my attempts at doing this have failed so far. Here is what I have tried:   In the "Network Connections" app, edit my wireless connection. Under the IPv4 tab, select Automatic (DHCP) addresses only. Then type in location.company.com as a search domain, and put our DNS server in as well. This made no noticeable difference. Modifying dhclient.conf as described . Running dpkg-reconfigure resolvconf to make sure that it dynamically updates resolv.conf.   I am also worried that at this point I have tried several different things and they could be interfering with each other. I know that some parts of this configuration changed in the last couple of years with Ubuntu, and it can be hard to find the most current information. It is not completely clear to me how network-manager, resolvconf, dhclient, and other configuration files work together in the newest versions of Ubuntu.  So, my question: How can I configure my computer to make the short-form URLs work correctly in Ubuntu 14.10?  Or, which network configuration programs should I be using to do this, how should I configure them, and how can I verify that they are working correctly?  Thanks for your help! Let me know if I can provide any additional info.  Edit: Here is my /etc/resolv.conf, which I believe was generated by resolvconf.  # Add Company Nameservers and Domain nameserver 192.168.200.53 nameserver 192.168.200.65 search location.company.com nameserver 127.0.1.1 search location.company.com # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 127.0.1.1 search hsd1.co.comcast.net


ERROR: Exception in thread "main" java.lang.NullPointerException while running Arduino IDE on PI

When i am opening my Arduino IDE on my Raspberry PI 4, its getting JAVA Error: Exception in thread "main" java.lang.NullPointerException     at processing.app.I18n._(I18n.java:51)     at processing.app.Preferences.init(Preferences.java:210)     at processing.app.Base.main(Base.java:117)  Not sure why this is happening. Please help me to solve this problem.


How do I backup my Stackexchange favorites for offline use?

The more I use Stack Exchange, the more it is getting a knowledge-base for me. All questions, that I need for later reference I mark as favorite. Now I need to store these pages locally on my laptop. It is really time-consuming:  I could use Ctrl+S on each favorite question page  on Linux: there could be a solution with wget -N -r -l 1 "https://stackoverflow.com/users/1069083/rubo77?tab=favorites"  this will download all favorite questions but it creates no correct index.html Another approach would be to use the  to automatically follow into all your Stack Exchange-accounts. But that would have to be somehow limited to only favorites links on your  in each stack. cross-platform: You would need a firefox-plugin that downloads links recursively but only within the favorite-area of the  in your stack  Additionally, I would like to  and


Is gift authorship for PhD advisors rampant in academia?

I have had an issue with my PhD advisor where they were essentially attempting to coerce me into inappropriately adding them as a co-author on a paper that they had no part in. They agreed that they should not be an author according to ethical standards, but essentially threatened me that there would be "problems with my graduation" if I did not add their name to the paper. They have refused to collaborate with me on this paper as well as any future paper because they "are too busy" and "no professors really do research".  This appeared to be a very serious ethical breach to me, so I immediately went to the department chair to describe the situation, and started looking for a new PhD advisor. However, some of the reactions I got to the situation disturbed me. The chair of my department openly stated that all of my research is "owned" by my advisor (whatever that means) and implied that I was a bad student for not adding my advisor to the paper. He even went so far to suggest that I add my new advisor's name to the (finished) paper in order to start off on good terms! Another professor trivialized the problem, stating that compared to what many PhD students have to deal with gift authorship is "not that bad". A third professor stated that it was clearly unethical, but that it was unfortunately the norm.  It seems to me based on this small sample size (as well as hearing other PhD student's experiences) that gifting authorship to uninvolved PhD advisors is rampant. This is obviously a terrible practice. Is this behavior really rampant in academia? And if so, what happens to PhD students who refuse to participate in this practice?  A further point about my situation: I am in a theoretical scientific field where there is no lab, etc., so there is no complications arising from that sort of thing. Although even if I were working on a grant and using lab equipment gift authorship would be unethical.


Using math expression in short caption for listoffigures

\documentclass[12pt,a4paper]{article} \usepackage{amsmath}  \begin{document} \listoffigures  \[     \{[\phi(t+h),p(t+h)]_2\} \]   \begin{figure}[htb] \centering     something here     \caption[math $x+y$ ]{math $\{[\phi(t+h),p(t+h)]_2\}$ }     % \caption[math $\{[\phi(t+h),p(t+h)]_2\}$ ]{math $\{[\phi(t+h),p(t+h)]_2\}$} \end{figure}   \end{document}   I want to use a short caption for \listoffigures. However, the simple math expressions  ($x+y$) can work. But a more complicated math expression like  \caption[math $\{[\phi(t+h),p(t+h)]_2\}$ ]{math $\{[\phi(t+h),p(t+h)]_2\}$}     does not work.  Am I misunderstanding something in typing math using latex?


What is known about the quotient group $\mathbb{R} / \mathbb{Q}$?

Let $G = \mathbb{R} / \mathbb{Q}$. Is this an interesting group to study?  Is it isomorphic to any more natural mathematical objects?


I can't get into my field research prize

I finished all my field research tasks last night and attempted to capture Raikou, but ran out of Pokeballs. I fled the capture, assuming I could come back later and do it again once I had collected more.   Today the prize is still there, but every time I click it takes me to a blue and white screen and nothing happens. I have rebooted and signed out to try and restart it but now I don't know what to do. Any ideas? Has anyone experienced this?


Relaxation of rules for the sites and other suggestions

I would like to request relaxing of moderation rules to some extent, at least for new users, so that it will help new users like me get answers to their questions. It will also enable us to learn more about the sites and understand the rules on our own.  The forums I've seen, allow opinion and discussion unlike these Q&A sites. There can be a separate Stack Exchange site which can integrate all topics. It can be a site for many kinds of 'off topic' questions just like a forum, rather than a boring Q&A site. It can also have moderators from various fields to keep an eye on it, based on the tags. It is difficult for everyone to find the best place to ask their questions on their own.  I feel these 'strict' rules keep the sites running in the long run and make moderation much easier. If the question is from a new user, that's it! It's 'on hold' with the reason as 'off topic' or 'too broad' or something else. I don't think those with good reputation ever end up with a question being put on hold!  It should not be a condition that the user should know at least something about what he wishes to ask. Questions are asked in forums and Q&A sites basically to simplify the work to be done. If a person can search using search engines, all day long, to find an answer, then there would be no need for forums and Q&A sites at all!!  Some more suggestions:     Questions and answers can have gold badges for most number of votes and most number of moderator votes and all gold badge questions can be grouped together. The moderators can also regularly keep posting updates and information related to their field which should be easily accessible to everyone.   If these things are reviewed then it would be of great help to many users and other than that these groups of sites have an excellent power in shaping individuals and those who work. I expect positive opinion from moderators and site administrators in this regard.


Permission issue on restore of the db from primary to secondary

while restoring the User DB from primary to secondary replica through query in cmd prompt and got following error message  Msg 262, Level 14, State 1, CREATE DATABASE permission denied in database 'master'. RESTORE LOG is terminating abnormally.Msg 3013, Level 16, State 1, RESTORE LOG is terminating abnormally.  provided sa permission on the user, but still it did not work. where should i need to look.


I am currently working on an android app that takes the contents of a requested website and searches it for certain words. I am unsure though how I can convert the InputStream into a String. I'm a pretty unexperienced so I guess my code is a little ugly: public class MainActivity extends AppCompatActivity implements View.OnClickListener{  private AppBarConfiguration mAppBarConfiguration; String EanCode; String FddbData; InputStream stream;  public void Urlconnect() {                                                                         final Thread ConnectThread = new Thread(new Runnable(){         public void run(){             try {                 URL url = new URL("https://fddb.info/db/de/suche/?udd=0&cat=site-de&search=" + EanCode);                 URLConnection connection = url.openConnection();                 InputStream stream = (InputStream) connection.getContent();                 StreamToString();               } catch (Exception e){                 e.printStackTrace();             }         }     });     ConnectThread.start();  }  2:     public void StreamToString() throws IOException {      Scanner scanner = new Scanner(stream);     StringBuffer sb = new StringBuffer();      while(scanner.hasNext()){         sb.append(scanner.toString());     }      Logger logger = Logger.getLogger(MainActivity.class.getName());     logger.info(sb.toString() + "bananeneis");      FddbData = sb.toString(); }  } This is the Error I am getting: W/System.err:     at java.io.Reader.<init>(Reader.java:78)     at java.io.InputStreamReader.<init>(InputStreamReader.java:72)     at java.util.Scanner.<init>(Scanner.java:568)     at com.example.prepper.MainActivity.StreamToString(MainActivity.java:22)     at com.example.prepper.MainActivity$4.run(MainActivity.java:9)     at java.lang.Thread.run(Thread.java:764)  Any Help is appreciated! EDIT 2: Solved by removing InputStream in  URLConnection connection = url.openConnection();  InputStream stream = connection.getContent();  StreamToString();


I have a service that returns dict. In my controller i set it to $scope variable:  .controller('viewCtrl', function($scope, myService) {     $scope.mydict = myService.mydict; }   But then when i change value in input:  <input ng-model="mydict.mykey">   mykey value changed in service myService.mydict too. But i want only change it in $scope.mydict variable.  I tried do this:  var localDict = myService.mydict; $scope.mydict = localDict;   This didn't work. When use ng-value - then it doesn't track it after change.


Show that these curve families are orthogonal: $f(xy) = C$ and $y^2 - x^2 = D$

Let the function $f : \mathbb{R} \rightarrow \mathbb{R}$ be differentiable and its derivative is never zero. Show that these curves are orthogonal:  $$f(xy) = C$$ $$ y^2 -x^2 = D$$  $C$ and $D$ are real numbers.  Edit: I checked the duplicate flag and I do not fully agree with it, for this question is somewhat different. Furthermore, after I posted (as my first post) this question I solved it and was writing an answer for it. It took some time because of the formatting. But then the post closed which made me lose my progress.  In conclusion, to the curators who are reading this, do not dismiss questions so easily.  Anyway, where is my answer:  Let $$ g(x,y) = xy $$ $$ f\circ g = f(g(x,y)) = f(xy)$$  Differentiating with respect to $x$ the first two equations we get:  $$ (f(xy))' = 0 $$ $$ 2yy' -2x = 0 $$  Applying the chain rule, and simplifying we get:  $$ (y+xy')f'(xy) = 0 $$ $$ y' = \frac{x}{y} $$  Simplifying further the first equation (we can divide by $f'(xy)$ because its never zero) we get:  $$ y' = -\frac{y}{x} = m_1 $$ $$ y' = \frac{x}{y} = m_2$$  Since $ m_1 = -\frac{1}{m_2} $, we can assume that the tangent lines of the first family of curves is perpendicular to the tangent lines of the second family of curves. Making these curves orthogonal.  Edit 2: The duplicate is more alike than I thought, the curator is most likely correct.


Density Function of Uniform Distribution?

I had this problem from my last question: Given that: $X \sim \text{Uni}(a,b)$. I know that the density function is: $$f_X(x) = \begin{cases} \dfrac{1}{b-a} &x \in [a,b] \\ 0 & \text{otherwise}. \end{cases}$$ Then How can this help me to find the density function of : $-X$? Note: what is the right way to write the density function of : $-X$? will it be $f_{-X}(-x)$ or $f_{X}(-x)$ or $f_{-X}(x)$?


Is there anyway to tell when the last query was made against a database?

Is there anyway to tell when the last query was made against a SQL 2008 R2 database without downloading a third-party tool ?


Different model result with log-transformed vs. original dependent variable in linear mixed model

I fit my data with linear mix model using y and log-transformed y like below:  fit1 = lmer(y~Visit+Treatment+(1|Subject.ID)) fit2 = lmer(log(y)~Visit+Treatment+(1|Subject.ID))   Treatment effect in fit1 is not significant, but it is significant in fit2 (with log(y) ).  I'm confused about how should I interpret the model result.   Can anyone explain what is the correct way to interpret mixed model result when dependent variable is log-transformed vs not log-transformed.  Thanks a lot in advance!


A verb meaning "Answering question in a way that doesn't answer it"

Take an example:  Me : Where can I find the best pizza in the city?   Friend:1000s of people are dying of hunger and all you care about best pizza.  In this case he does reply to my question but it doesn't help me.  Is there a word/group of words to express this?


Area under curve of ROC vs. overall accuracy

I am a little bit confused about the Area Under Curve (AUC) of ROC and the overall accuracy.  Will the AUC be proportional to the overall accuracy? In other words, when we have a larger overall accuracy will we definitely a get larger AUC? Or are they by definition positively correlated?  If they are positively correlated, why do we bother reporting both of them in some publications?  In real case, I performed some classification task and got the results as follows: classifier A got an accuracy 85% and AUC of 0.98 and classifier B got an accuracy of 93% and AUC of 0.92. Question is, which classifier is better? Is it possible to get results similar to these (or do my results indicate a bug in my implementation)?


If $[G:H]=n$, is it true that $x^n\in H$ for all $x\in G$?

Let $G$ be a group and $H$ a subgroup with $[G:H]=n$. Is it true that $x^n\in H$ for all $x\in G$?   Remarks. The answer is positive whenever $H$ is normal, e.g., for $n=2$. In general, by using the normal core of $H$, one can find an $m\ge 1$ such that $x^m\in H$ for all $x\in G$.


Tapping on tags like  removes ++ from search criteria. Also I can't select right questions via tag menu. Results show [c] tagged questions, not [c++]. Old version of app did it well.   App Version: 1.6.0.10 Device: iPad Air 2 (Wi-Fi) OS Version: Version 10.0.2 (Build 14A456)


How to convert indentation to space in Vim?

I typed following command in vim to show white space characters, such as eol, tab, and space.  :set listchars=eol:$,nbsp:_,tab:>-,trail:~,extends:>,precedes:<   This file was cloned from git repository.  Indentation is setup for tabs.  How do I convert indentation to space?   50 addtask listtasks$  51 do_listtasks[nostamp] = "1"$  52 python do_listtasks() {$  53 >-import sys$  54   print('Hello World')$  55 >-for e in bb.data.keys(d):$  56 >->-if d.getVarFlag(e, 'task', False):$  57 >->->-bb.plain("%s" % e)$  58 }$


I have align environments in each section of my TeX file and I use \numberthis\label to label the last equation in the align environment. But this labels or numbers the equations in the order they are in the file. Can I have a sectionwise numbering of the equations in the align environments? For example, the last equations of the 1st and 2nd align environments(assuming I have only got 'align' environments) in section A to be labeled as A.1 and A.2?  MWE-  \documentclass[english,aps,amsmath,amssymb]{revtex4-1}  \newcommand\numberthis{\addtocounter{equation}{1}\tag{\theequation}} \begin{document}    \section{section1}   \begin{align*}   x&= 1\\    &= 21313\numberthis\label{eqn}  \end{align*}  \begin{align*}  x&=    1\\   &=    2324\numberthis\label{eqn}  \end{align*}    \section{section2}   \begin{align*}   x&=   1\\    &=   34\numberthis\label{eqn}  \end{align*}   \begin{align*}  x&=    2\\   &=    345\numberthis\label{eqn}  \end{align*}    \end{document}   In this example, I have 4 equations and they get numbered from 1 to 4. I want to keep using the align environment and \numberthis command. And want to have numbering based on section like 1.1 and 1.2 (or A.1 and A.2) for the equations in the first section. How do I change the scope of numbering with \numberthis?


I am using Etoro to trade US stocks and they charge overnight fees. However, nowhere can I find a definition of what an overnight fee in the context of stock broking is. Their Terms & Conditions only state that they charge an overnight fee and an internet search for overnight fees only delivers results for postal services.  Is an overnight fee the fee charged to the client for accepting orders while the market is closed, or is it charged on all stock holdings, i.e. a daily charge for open positions?


Gauss's law in a uniform charge distribution extending infinitely in all directions

Let us assume the universe filled with positive charge. About a particular point, all the positive charged particles will be symmetrical. Now consider a sphere of radius $r < \infty$ and apply Gauss law. According to Gauss law the electric flux through the sphere will be some finite value as it contains some positive charge. But by symmetry the electric field through the sphere and hence electric flux will be zero. This is a contradiction.


According to dictionary:  adjective     well known for some bad quality or deed.   But sometimes I see news or people say:   infamous [person] infamous [movie] ...   and I checked these person or movie don't have bad manners or bad quality at all, and it sounds to me "infamous" in these cases more positive (or I am wrong). So should I understand "infamous" with a negative meaning?  EDIT: For example, one video went viral about a dad having an interview at home and his toddler broke into the room, it was funny, and the event was harmless (I guess). And now I am reading this article:  . If according to dictionary, then it means bad deed. But this event went viral and peope loved it.


Why my tweet is not appearing on the timeline of the person I am following?

I have tried tweeting someone I follow couple of times.  My tweets appear on my profile but when I look at the other person's timeline, my tweet is not there. I am following him but he is not following me.


What is the affine connection, and what is the intuition behind/for affine connection?

Here is the definition of affine connection, as appears in Milnor's book Morse Theory.  DEFINITION. An affine connection at a point $p \in \text{M}$ is a function which assigns to each tangent vector $\text{X}_p \in \text{TM}_p$ and to each vector field $\text{Y}$ a new tangent vector$$\text{X}_p \vdash \text{Y} \in \text{TM}_p$$called the covariant derivative of $\text{Y}$ in the direction $\text{X}_p$. (Note that our $\text{X} \vdash \text{Y}$ coincides with Nomizu's $\nabla_\text{X} \text{Y}$. The notation is intended to suggest that the differential operator $\text{X}$ acts on the vector field $\text{Y}$.) This is required to be bilinear as a function of $\text{X}_p$ and $\text{Y}$. Furthermore, if$$f: \text{M} \to \mathbb{R}$$is a real valued function, and if $f\text{Y}$ denotes the vector field$$(f\text{Y})_q = f(q)\text{Y}_q$$then $\vdash$ is required to satisfy the identity$$\text{X}_p \vdash (f\text{Y}) = (\text{X}_p f)\text{Y}_p + f(p) \text{X}_p \vdash \text{Y}.$$ (As usual, $\text{X}_p$ denotes the directional derivative of $f$ in the direction of $\text{X}_p$.)  I have two questions.  This definition of affine connection is quite terse here—I'm just seeing text on a page and not really understanding what is going on here. Is it possible somebody could help me parse through/explain what is really being said here with regards to affine connection? Could somebody supply their intuitions behind/for affine connections?  Thanks.


How to prove that $\sum_{i=0}^n 2^i\binom{2n-i}{n} = 4^n$.

So I've been struggling with this sum for some time and I just can't figure it out. I tried proving by induction that if the sum above is a $S_n$ then $S_{n+1} = 4S_n$, but I didn't really succeed so here I am. Thanks in advance.


How can I get the product keys for software on my PC?

How can I find the product keys for my Windows operating system and software installed, like Office, Adobe Creative Suite, and other software which requires an activation key?


Skip second leg of outbound flight and continue to original destination over land

I travel with Air China from Paris to Kathmandu with a stopover in Chengdu. I am considering not taking the Chengdu to Kathmandu flight and travel over land to Kathmandu from Chengdu. Will I be able to use my return flight in Kathmandu?


so I have a problem, I need to put in a dot symbol between my equations in verbatim mode. For some reason it does not work in verbatim mode, but I surely need my equations in verbatim. So do you guys know how to solve it?  here is are the screenshots


Error while using minted package to write a LaTeX code snippet in a document

I wish to write a LaTeX code snippet in a document and hence I loaded the minted package. But upon compiling, the following error popped up :  ! Package minted Error: You must invoke LaTeX with the -shell-escape flag. See the minted package documentation for explanation.  Kindly help me out with this issue!  Thanks in advance!


I forgot my apple iPhone 5 iCloud username and password and need help resetting

I was in a hospital, and I forgot my apple iPhone 5 username and password and also my iCloud username and password. Can someone help me wipe the phone and get a new iCloud username and password?


Expand a list when doing list comprehension in python

Here is the code:  import itertools, time x = {1:[1, 2], 2:[2, 3], 3:[3, 4]} l = [1, 2, 3] * 10000000 start = time.time() y = [x[i] for i in l] y = list(itertools.chain.from_iterable(y)) print(y[:6]) print(time.time() - start)  start = time.time() y = [] [y.extend(x[i]) for i in l] print(y[:6]) print(time.time() - start)   The first approach is to allow the inner lists to be nested, then flatten them out when the comprehension is finished. The second approach is to construct a flat list during comprehension.  It seems the first approach is a bit faster:  3.8479559421539307 4.469805955886841   I am wondering if there are better (faster) ways to do it?


Let $B^n$ be a n-dimensional disc (ball) with boundary $S^{n-1}$. Prove that  $B^n/S^{n-1}$ is homeomorphic to $S^n$.  Could someone check my proving, please?  Let  put the ball $B^n=\{x\in\mathbb R^n\mid |x|\leq 1\}$ into $\mathbb R^{n+1}$ using $x\mapsto (x,0)$. Then we can use homeomorphism $(x,0)\mapsto (x,\sqrt{1-|x|})$. We fall into the half of the sphere $S^n$. The boundary of the ball after this will turn just into points of the form $(*,0)$. If you pull it to the point then we will get suspension $S^{n-1}$ or $S^n$.


We're using this kind of solder sponge made of brass in our electronics course:    One kid told me that he had seen this before. I wondered a bit, because they are all new to soldering. Finally he brought that thing into the class and it turned out to be steel wool, used in the kitchen.    Is it ok to use that instead? If not, why not?


Do I use "has" or "have" when talking about a sports team?

For example, if I want to talk about a team's chances of winning a competition, which of these would be correct?  What do I say?     United have the best chance of winning.   United has the best chance of winning.   The team is made up of many players so I think it should be plural; therefore, I think have sounds correct. But someone told me it should be has as the team is just one thing.


Should you pick a baby up everytime it cries?

My husband and i have differing opinions on this. I don't believe in the term 'spoilt'. I would be very happy if my daughter was 'spoilt' in the sense that she expects to be treated with the highest possible respect and love and affection in all her relationships.   Also it would not bother me if she think she is special and unique (that's exactly what I want her to think). Mother's face is a mirror for the baby - through the mother's reactions and attention, the child learns that she is a lovable and valuable human being.   I spend all my time with my baby when she is awake. I play games with her, I smile, and laugh, and I never ever let her cry. I rush to pick her up immediately, even if it's the middle of the night, I force myself to get up, no matter how tired I am (I admit it's hard sometimes, and I do let her cry for 10-20 seconds sometimes, but never more).


Whats the best way to make my Unity game moddable?

Basically the title. I'm building a game with several NPCs and complex systems, and I want it to be nice and modular for modders right from the beginning. So far, I have looked into:  , I don't completely understand these, probably will have to write some custom loading code? I don't know how/if this will let the modders write code.  Lua-Based Modding, I don't particularly like Lua, but I will fall back to it if I absolutely have to (The Unity-Lua  makes this a seemingly very fast way.)  Exposed C# (original idea from this ). But again, as stated in the question raw c# has a lot of disadvantages, not to mention the security risks and compatibility issues.  Minecraft-Style? Completely custom? Basically a lot of events and registries? I'm not sure about this option. To give you an example, there are several Tribes in the game. Ideally, if a modder wanted to make a new tribe they would need to extend from some Tribe base class and then register/add their custom tribe to my AvailableTribes list. Not to mention the models, animations, and sounds for the Tribe NPCs and such.   Any help is appreciated!


My PC has both Ubuntu and Windows 7 installed. I have installed all my drivers in Windows like Nvidia graphics, motherboard etc. Shall I install them in Ubuntu too?  I looked on the web for my Nvidia drivers and I have found a .run file. How could I install it on my Ubuntu?


How to connect to device via SSH over direct ethernet connection

I have a device that I need to connect to over SSH. The device is connected to my workstation via a direct ethernet connection. I'm attempting to assign the connected device an IP address somehow that I can SSH to, however all of the guides I'm finding have the user configure the IP from whatever device they're working with (namely Raspberry Pi's and so on). This is not something I can do with this device as I've no physical interface to work with.  I've been recommended to setup a DHCP server on my workstation so it would take care of this for me, however I've no idea how to configure it and none of the guides I have followed have been helpful. With that approach, I seem to have been able to bind an IP to the interface the device is connected on, however SSHing to that IP just brings me back to my own machine.  So my main question is: How do I assign an IP address to a device directly connected to my computer via ethernet cable without having any kind of access to the device (no interface, keyboard, monitor, etc). If the answer is to set up a DHCP server on my machine, how do I properly configure this and get an IP I can SSH to?  For reference, I am using Ubuntu 16.04 with OpenSSH installed. The device is also running some flavor of Linux and has SSH software installed, but again there's no way to interact with it except through SSH. I also do not have access to my router, so plugging the device in there and letting the router do the work is not an option.


Is it grammatical to say "I saw her dropping the ticket" as opposed to "I saw her drop the ticket"?

What is the difference between using the past tense and the present participle, since both sentences indicate the speaker witnessed the action of the ticket being dropped?


"James Watt invented the steam engine, which substituted machine power for human power." I've read this phrase, and thought "that can't be worded right, it ought to be 'substituted human power for machine power,' as in 'substitute this for that." Is the phrase worded correctly, or am I gone and crazy?


Recently I started investigating what can I do to protect the app we develop from hacking it. We agreed that we will use local License Server (without internet connection) + Machine HW Lock. I found a lot of tools that are capable of doing this. I'm not searching here for a recommendation for a tool to use, but rather I want to know what kind of features I should expect there.  Our company really worried about guys who tries to crack the software (they had a lot of problems around that in the past), but this is the first .Net app in our company, which has a lot of specifics.  For me to check the license in my app with the tools I investigated so far, I need to insert single call to this library that checks the license in the code. Theoretically this call can be removed. Of course the app will be obfuscated and it will be really hard to do that, but I guess it is still possible. There is also an option for a cracker to substitute the tool with the dummy dll that does nothing.   Should I be worried about that? And what solutions do I have if I should?


Colour Temperature and the thermal temperature

I understand that Colour Temperature correlates with the object's thermal temperature, such as a red-hot piece of iron being ~360c and the incandescent bulb filament is about 2500c.   Why are sources of light, such as LEDs and florescent tubes, that emit white to white-blue light (which according to Colour Temperature, would be around 4500+c) cool, or nowhere near 4500c, when touched?  Also, why is the sky considered 10,000k? Especially if the surface of the sun is only ~5770k?


Why do rain waves form and what is their connection to the texture of the surface they're on?

When it rains and water flows down an inclined street, ripples may form that are carried along with the current. Here's a picture with an example of what I'm talking about    I'd like to know what the fluid mechanical mechanism is for the formation of these waves. A quick google search reveals that they've been identified in some scientific literature as "rain waves" (if you have a jstor subscription you can see ) but I've only been able to find phenomenological descriptions of their properties without any details of the physics giving rise to them. In particular, I'm curious if people think that the surface on which the water is flowing must have a particular texture in order to give rise to the waves.


The volume boot has only 0 bytes disk space remaining

I've seen the thread to counter this issue (can't link it because the two pictures below is my limit apparently) and even successfully ran through it in the past. However this time the commands aren't working. It appears that I need dependencies for some reason:    At first I thought it wasn't an issue but after purging all extra dependencies then running autoclean/autoremove, I realized it indeed did nothing. I've also tried to run apt-get -f install as suggested to no luck. I'm greeted the standard y/n install prompt. When I type y and continue, this is eventually displayed:


natural deduction: introduction of universal quantifier and elimination of existential quantifier explained

Currently, I am dealing with the calculus of natural deduction by Gentzen. This calculus gives us rules to manipulate so-called sequents.  Definition. If $\phi_1,\dots, \phi_n,\phi$ are formulas, then $\phi_1\dots\phi_n\vdash\phi$, often abbreviated by $\Gamma\vdash\phi$, is called a sequent.  Can somebody please explain to me the following two inference rules?   Introduction of the universal quantifier.   $$ \begin{array}{c} \Gamma\vdash\phi\\ \hline \Gamma\vdash\forall x(\phi) \end{array}\text{, where $x$ does not occur as a free variable in $\Gamma$.} $$   Elimination of the existential quantifier.   $$ \begin{array}{c} \Gamma\vdash\exists x(A)\qquad \Gamma, A\vdash B\\ \hline \Gamma\vdash B \end{array} \text{, where $x$ does neither occur as a free variable in $\Gamma$ nor as a free variable in $B$.} $$  I am especially interested in what the restriction that $x$ is not allowed to occur as a free variable in $\Gamma$ (and also not in $B$) is all about. I have heard the following explanation for the necessity of this restriction:     Otherwise we could derive $\exists x (A(x))\rightarrow \forall x (A(x))$. But this is not a logically valid formula; and we want to have a correct calculus.   Although I can reconstruct this argument, I do not really understand the two rules given above. I have no intuition why $x$ should not be a free variable in $B$ or in $\Gamma$, for example. Could you please explain the intuition behind these inference rules?  EDIT: Another question, but a related question: Can you give an example of a proof which uses the rule of existential quantifier eliminination where there is some free variable occuring in $B$?


Prove $\mathbb{P}(\sup_{t \geq 0} M_t > x \mid \mathcal{F}_0)= 1 \wedge \frac{M_0}{x}$ for a martingale $(M_t)_{t \geq 0}$

Let $M$ be a positive, continuous martingale that converges a.s. to zero as $t$ tends to infinity. I now want to prove that for every $x>0$ $$ P\left( \sup_{t \geq 0 } M_t > x \mid \mathcal{F}_0 \right) = 1 \wedge \frac{M_0}{x}. $$ My approach: I thought that rewriting the conditional probability to an expectation would help so we obtain that we must prove: $$ \mathbb{E} \left[ 1_{\sup_{t \geq 0 } M_t > x}  \mid \mathcal{F}_0 \right] = 1 \wedge \frac{M_0}{x}.$$ A hint to me was given that I should consider stopping the process when it gets above $x$. Thus a stopping time that would do this is $\tau = \inf\{t\geq 0 : M_t>x\}$. But now I'm stuck as I want to apply optional sampling results but we have an indicator which complicates things. How could I proceed from this? Any help is appreciated!


Why is there no method to comment in JSON?

I was practicing JSON, then suddenly, I came across a communication problem which can only be handled using comment so that I could become able to transfer my logical data structure efficiently to other my programming fellows. I google to search out how to comment in JSON, but the answer that I found was "You can't make comments in JSON". So why did JSON developers not add a method to comment in JSON so other developers can perceive the data correctly? I also posted this same question to code project too, hope I will get the desired answer.


Why keyword `self` create a second field if i wana set a value in this field?

i try to find a answert about my question, but I can not find a good explanation. The code below shows, that ClassA and ClassB extends from ClassAbsract. But if I try to set the value from input to self._x python creates a new _x field at the UML diagram. In the ClassA and ClassB I just wanna set _valueA or _valueB. But here is the same, the defined variable is listed two times at the UML.  What is the mistake in my demo? I use the InteliJ PyCharm IDE  class ClassAbstract:      _x = None      def setXvalue(self,input):         self._x = input + 1    class ClassA(ClassAbstract):      _valueA = None      def setXvalue(self,input):         self._valueA = input + 2   class ClassB(ClassAbstract):      _valueB = None      def setXvalue(self,input):         self._valueB = input + 3


In reality, it is not practical for ciphers such as stream ciphers and AES to generate keys using a TRNG, so instead they have to use a CSPRNG. As an LFSR can generate pseudo random numbers,so can a LFSR be adapted so it can be used as CSPRNG, and what are the other ways to construct a CSPRNG.


Finding $g_i:\mathbb{R}^n\to\mathbb R$ s.t $f(x)=\sum\limits_{i=1}^nx_i\cdot g_i(x)$

Let $f:\mathbb R^n\to\mathbb R$ differntiable and $f(0)=0$. Prove exist $g_i$ s.t for $x=(x_1,\dots,x_n):f(x)=\sum\limits_{i=1}^nx_i\cdot g_i(x)$. hint:$f(x)=\int\limits_0^1f\prime(tx)dt$.   I dont have any idea how to solve it. maybe we can build $g_i=f(x_i\cdot x)$ but im not sure it may help since I cannot take one time $\int f(x_1\cdot x)dx_1$ and in another $\int f(x_n\cdot x)dx_n$).  how can I build the sequence of functions and furthermore, what is the intuition for this type of questions involves building functions $\varphi:\mathbb R^n\to\mathbb R^m$ based on given condition with sums or diffrentiablity or partial derivatives?


how do I disable recursive search in nautilus 3.6

Recursive search in nautilus 3.6 completely breaks my keyboard navigation. I often navigate network volumes, and typing to get directly to a folder and clicking enter was very quick. Now typing removes everything in the view and imposes a 30 second delay which is completely useless.  If it showed whats in the current directory immediately, and then searched it would be fine, but as it is now I just want to turn it off. I couldn't find anything in dconf-settings. Anyone know how to disable it?


I want find the index of a given DOM node. It's like the inverse of doing   document.getElementById('id_of_element').childNodes[K]   I want to instead extract the value of K given that I already have the reference to the child node and the parent node. How do I do this?


I have a LaTeX template of journal article (European Alliance for Innovation). Containing two columns. I'm facing an issue while adding image into two column. While, scaling image solve my issue, but problem is that image showing above on the text of second column. How can i solve this issue? bellow is my code.    \begin{figure}     \centering     %\includegraphics [scale=0.1]{3D}     \includegraphics [scale=0.8]{ThesisFigs/myfig/lpyear.png}     \caption{Yearly Publications on the topic of Link Prediction}     \label{Fig:2}  \end{figure}    after excuting the above code, this is what i'm getting.


I am proving a result of vector analysis here it is.  A vector field $F$ is continuous in a Domain $D$ is conservative $\iff$ the line integral of tangential component of $F$ along every regular curve in $D$ depends only on the end points of the curve. Moreover the line integral is simply the difference in potential of the end points  The definition I am using for Conservative field is :-  A vector field $F$ is said to be conservative if there exist a scalar field $\phi$ defined in the domain $D$ such that $F=$$\nabla$$\phi$  I know we have to use concepts of path connected and simply connected but I don't know where to start exactly . Hints or solution is really appreciated.


How to implement a xor gate with nand gates

I try to resolve a problem, how to implement a xor gate with nand's gate.  A xor B = A'B + AB'  So, this becomes :  A xor B = A'B + AB' + AA' + BB' = A(A' + B') + B(A' + B') = (A + B)(A' + B') =   (with De Morgan apllied on the second term)  = (A + B)(AB)' = ..... ?  In this point i am blocked. If someone can help me, please. Thank you.


Should "State" be capitalized on its own?

Say we had the following:     Higher Education spending, clout, and influence in New York State is substantial. Within the State’s borders...   Should the latter instance of State be capitalized or not?


Getting Mac address using GetAdaptersAddresses

I am using "GetAdaptersAddresses" function (using C++) to get the MAC address of the computer. GetAdaptersAddresses  returns a link list of PIP_ADAPTER_ADDRESSES for all the adapters connected to the system. I want to fetch the physical address of the Ethernet card specifically. Currently it comes at the first node of the list returned by the GetAdaptersAddresses and the MSDN document () does not specifically mentioned about the order of the adapters in the list, and could be changed based on the connected adapters. The order is not reliable. Moreover, the order is different on different machine. Ethernet card is assured to be always connected to the device and the mac address is never changed.  How to traverse the list to fetch the physical address of Ethernet card? (I understand that the'Description' and 'Friendly name' can not be used as they can be changed)


How to evaluate $\int_{0}^{2\pi}e^{\cos \theta}\cos( \sin \theta) d\theta$?

For $\alpha \in \mathbb{R}$, define $\displaystyle I(\alpha):=\int_{0}^{2\pi}e^{\alpha \cos \theta}\cos(\alpha \sin \theta)\; d\theta$. Calculate $I(0)$. Hence evaluate $\displaystyle\int_{0}^{2\pi}e^{\cos \theta}\cos( \sin \theta)\; d\theta$.  Hint: To evaluate the integral that expresses $\displaystyle\frac{dI}{d\alpha}$, consider $\displaystyle\frac{\partial}{\partial \theta}(e^{\alpha \cos \theta}\sin(\alpha \sin \theta))$.  How do I do this question? I think this might have something to do with the Fundamental Theorem of Calculus, but I'm not sure.  I computed $\displaystyle I(0)=\int_{0}^{2\pi} d\theta=2 \pi$, and $\displaystyle I(1)=\int_{0}^{2\pi}e^{\cos \theta}\cos( \sin \theta) d\theta$. Following the hint I get  $$\begin{align} \frac{\partial}{\partial \theta}(e^{\alpha \cos \theta}\sin(\alpha \sin \theta)) & =\alpha e^{\alpha \cos \theta} \sin (\alpha \sin \theta) + e^{\alpha \cos \theta}\cos(\alpha \sin \theta) \alpha \cos \theta \\ & =  \alpha e^{\alpha \cos \theta} \sin (\alpha \sin \theta) + \frac{dI}{d \alpha} \cos \theta. \\ \end{align}$$  Is this correct so far?  The answers in the question referred as a duplicate does not help. I'm in a course dealing with real values, not complex.


PC won't boot (Asus P5K pro mainboard) No beeps, no screen output

My Asus P5K Pro won't boot.    When I connect the power   Powerled on mainboard lights up normally. (doesn't flash, just turns on)  When I press the power button;   fans spin up powerleds on the front do NOT light up (normally they would) no beeps no screen output    I have managed to boot up a few times after taking out mainboard battery and clearing CMOS RAM. It looked like each time when I changed a random settings in the BIOS (like boot order, or time) I would get the same problem again.  But now I can't get it to boot up, even after clearing CMOS RAM.  I have tried to replace the mainboard battery with a new one, did not help.  Has anyone experienced this before? Any ideas are greatly appreciated!  UPDATE: I don't feel it has anything to do with the power supply. Disconnecting HDD, DVD, USB etc. did not change anything. Also, after clearing CMOS RAM, I have been able to work on this computer for a few days with all devices attached.  UPDATE: I have also tried to remove graphics card and memory, still no beeps.  UPDATE: FIXED: Swapping out the PSU seemed to do the trick, allthough seeing the circumstances this didn't seem likely. After swapping back to the old one, PC didn't work again.  Let's see if it holds up.


Proof by induction of the Inequality of Harmonic numbers: $H_{2^n} \ge 1+ \frac n2$

My question is, for the question below, in the inductive step, where does $\dfrac{1}{2^{(k+1)}}$ come from?And where does $2^k$ come from in the third last step?


How to link my QGIS plugin main class to mouse events from a custom Tool?

I want to execute the merge(self,aLayer) method after clicking with the tool I've created, i.e. after the mouse click I want the control to come to the main.py module how can I do that using Python programming?  I have two files one is mouseevent.py and the other one main.py.  class MouseClick(QgsMapTool):     canvasDoubleClicked = QtCore.pyqtSignal(object, object)      def __init__(self, canvas,layer,Vertex_list,mergeDlg):         QgsMapTool.__init__(self, canvas)         self.canvas = canvas         self.layer=layer         self.Vertex_list=Vertex_list         self.mergeDlg=mergeDlg         self.rb = QgsRubberBand(self.canvas, QGis.Line)         self.rb.setColor(QColor(255, 0, 0))         self.rb.setWidth(2)         self.rb.reset()     def canvasPressEvent(self, event):          if event.button() == 1:             print "helo"             x = event.pos().x()             y = event.pos().y()             Lpoint = self.canvas.getCoordinateTransform().toMapCoordinates(x, y)             print 'Then Left points are',Lpoint       def canvasMoveEvent(self, event):         pass      def canvasReleaseEvent(self, event):         #Get the click         if event.button() == 2:             print "hello right"             x = event.pos().x()             y = event.pos().y()             Rpoint = self.canvas.getCoordinateTransform().toMapCoordinates(x, y)             print 'Then Right points are',Rpoint             self.Vertex_list.append(Rpoint)             print 'The list after right click is',self.Vertex_list      def canvasSelectionChanged(self,layer):          pass     def activate(self):         pass      def deactivate(self):         pass      def isZoomTool(self):         return False      def isTransient(self):         return False      def isEditTool(self):         return True   Main.py:  def merge(self,aLayer):     canvas=qgis.utils.iface.mapCanvas()     aLayer=canvas.currentLayer()     aLayer.removeSelection()     selection=aLayer.selectedFeatures()     print 'length is',len(selection)   def run(self):     """Run method that performs all the real work"""     mergeDlg = MergeDialog()     Vertex_list = []     global Vertex_list     MergeByFreeHand.readConfigfile(self)     AreaList=[]     Value=99     canvas=qgis.utils.iface.mapCanvas()     aLayer=canvas.currentLayer()     aLayer.removeSelection()     qgis.utils.iface.setActiveLayer(aLayer)     count=0     global count               tool = MouseClick(canvas,aLayer,Vertex_list,mergeDlg,count)     qgis.utils.iface.mapCanvas().setMapTool(tool)


What kind of licensing is needed for using Windows images with PXE?

I was thinking of using thin clients with PXE booting, using a Windows virtual disk image and CCBoot in Wine on Linux. Even though it is a single Windows image, it may be distrubuted to many clients. With this in mind, what are the Windows licensing requirements for this setup?  As opposed to the possible duplicate this question specifically asks for licensing requirements of PXE boot images. Also the solution to the possible duplicate does not answer my question.


Can I access an outer class instance from an instance of that outer classes inner class anonymously?

Java Pseudo Code  public class Foo{     public void doStuff(){         System.out.println("Kill all humans...");     }     public class Bar{         public Bar(){             Foo.this.doStuff();         }     } }   You can have a nested class access it's outer class instance through <Class Instance>.this, to look properties or variable values or even invoke methods if you wanted WITHOUT having to pass a reference of the outer class instance to the inner class instance (I'm assuming that is the anonymous part?).  Does C# have something equivalent?


Is it possible to reduce Starcraft 2's disk footprint?

Is it possible to minimize disk space usage?    I only want to play multiplayer anyway and the biggest chunk of the download is the campaign.  Since the multiplayer game is playable after only 10% of the whole download, I am wandering if one could simply stop it there somehow?  Update: It seems you can delete some folders and save lots of GB:   I tried this, but the folders I deleted are immediately re-downloaded at the next start via Battlenet. Maybe you have to start it differently?  Can you create a batch script that does the job?  What about updates? Is this even possible without repairing those missing folders?


inner join and left join, how do these 2 statements work when they have inverted statements?

Learning about joins and I understand the difference in what inner joins and left joins do,  returns rows when there is a match in both tables, and left join returns all rows from the left table, even if there are no matches in the right table. I get that. however in this example i am following along with, how they make the join confuses me: select * from person join car on person.car_id = car.car_id;  gives me every person in the db that has a car_id value that isnt null. select * from person left join car on car.car_id = person.car_id;  gives me every person in the db, regardless including those with a null car_id value; what I dont get, are why these two statements are identical (apart from the left join) but these two values are inversed: inner join: car on person.car_id = car.car_id; left join: car on car.car_id = person.car_id; can someone offer me a clear explanation as to why these statements are swapped about in the inner and left joins?


How to center align a dynamic text using a specific point?

I need to center align a dynamic text using a pre-defined point (top and left). If I use the following code, the dynamic text will left align the point.  CSS   .outer {         display: block;         position: relative;         width: 100%;         max-width: 640px;         height: 480px;         background-color: #EEE;         background-size: contain;         background-repeat: no-repeat;         background-position: center center; } .inner {         display: block;         position: absolute;         min-width: 100px;         min-height: 50px;         padding: 20px; } .inner--3 {         left: 45%;         top: 200px;         text-align: center; }   HTML

             Peter Wyatt

   I want to achieve Figure 1 !    I tried everything and still it gives me Figure 2 as the output! Is there anyway I can achieve this using CSS?


Why do we write WHERE 1=0 or 1=1 in SQL query under WHERE clause?


Hide number of edits to review in the header when the user already reached the daily limit

I reached my daily limit many times for reviewing edits on Stack Overflow.  Yet, I always have the number of edits to review. And when clicking on it, it tells you that you can't review more; you reached daily limit. This annoyed me when I forgot that I already did.    I suggest when the daily limit is reached to either:   Hide it Turn it to gray color, or any other non-attracting color.


Is it possible to reverse a command in the bash shell?

I was wondering if there is a (simple) possibility to redo/reverse a command that was executed in the bash shell? (to make it undone)  Is there something similar to the ctrl+z combination to redo any action (for example in word or LibreOffice)?


writing bracket under only block vector matrix

I write column vector using \bmatrix then I want to write underbrace and add text in this brace. but I don't how to do this. My code is    \documentclass [a4paper, 12pt, oneside]{Thesis}  \usepackage{amsmath,amssymb,amstext,amsfonts} \begin{document}      \begin{align*}     B&=      \begin{pmatrix}      \begin{bmatrix}      1 \\                 2 \\      3\\      \underbrace{b_{1}}      \end{bmatrix}      \end{pmatix}     \end{align*} \end{document}   The bracket is written in column vector but I want to put bracket and b_{1} outside the column vector. Please help me in doing this


What is a good word for all sentient races?

I'm creating a historically inspired campaign where the standard fantasy races are extremely intermingled, and conflict is usually based on politics or religion, rather than species divisions. I can't, however, think of a good word to separate the PC races (Elves, dwarves, humans, halflings... you guys know.) from the monsters and creatures who live outside society. Basically, if in the real world someone would say: "I refuse to kill another human." in this setting I need a catch-all word to replace human.  Sentient sounds too sci-fi. Kindred sounds too... Vampire-y. Any suggestions?


How would I output all the possible combination of 7 numbers from 30 different numbers in an array in Javascript?

For example I've array generated with the loop like this.  var array=[]; for(var i=1; i<=30; i++)   {    array.push(i);    }  console.log(array);   I want to output the combination of all the possible group of 7 numbers from the array. For example a sample output may look like : [1,5,14,4,30,23,19]. If I would to calculate the possible combination with the combination formula. It would be something like this: n!/r!(n-r)!  And it is going to be a huge number. I've found a  ,  but what it does is that it prints out all the possible numbers according to the length of array. But my need is to find out the possible combination of 7 numbers from total 30 integers.  How would I solve this problem logically and practically with javascript.


I started the Android language Studio and I only need one step to finish this first TD.  Here are the instructions from TD:  In MainActivity, create an array of Boolean values mQuestionTrichee, to browse with variable mIndexActuel  ok, so here that's I did:  private static final String A_TRICHE = "a triche"; private boolean[] mQuestionTrichee = new boolean[mTabQuestions.length];   After, I have the value of Question Cheat [mIndexActuel] in the Bundle in the onSaveInstanceState () method:  @Override protected void onSaveInstanceState(Bundle outState) {     super.onSaveInstanceState(outState);     Log.i(TAG, "onSaveInstanceState");     outState.putInt(KEY_INDEX, mIndexActuel);     outState.putBoolean(A_TRICHE, mQuestionTrichee[mIndexActuel]); }   So, then, I have to get its value in onCreate ():     @Override protected void onCreate(Bundle savedInstanceState) {      super.onCreate(savedInstanceState);     Log.d(TAG, "onCreate appelee");     setContentView(R.layout.activity_main);     mQuestionTrichee[mIndexActuel]=savedInstanceState.getBoolean(A_TRICHE);   }   but I have this error later:      java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.os.Bundle.getBoolean(java.lang.String)' on a null object reference   I tried to browse my table in the method onCreate () or onSaveInstanceState () but nothing changed I still have it.  Here's what I added:       if(savedInstanceState != null)     {         for(mIndexActuel=0; mIndexActuel < mTabQuestions.length; mIndexActuel++)         {             if(mQuestionTrichee[mIndexActuel]==true)             {                 mQuestionTrichee[mIndexActuel] = true;             }             else             {                 mQuestionTrichee[mIndexActuel] = false;             }         }         mIndexActuel = savedInstanceState.getInt(KEY_INDEX,0);         mQuestionTrichee[mIndexActuel] = savedInstanceState.getBoolean(A_TRICHE);     }


[i am trying to insert a table into a two column document. but i was unable to do it. i have tried many things but not able to get the correct way. I want the table to be in center of the page even the document is two column oriented  \lipsum[1]   \begin{table*}     \centering       \begin{tabular}[b]{l l l l l l l l}      &   2011 &  2012 &  2013 &  2014 &  2015 &  2016 &  2017        \\ \hline Networking &    0.15 &  0.23 &  0.42 &  0.65 &  0.85 &  1.01 &  1.15        \\ NoSQL &     0.07 &  0.13 &  0.29 &  0.5 &   0.8 &   1 &     1.2     \\ Infrastructure Software  &  0.14 &  0.44 &  0.83 &  1.08 &  1.25 &  1.6 &   1.9     \\ SQL &   0.62 &  0.88 &  1.31 &  1.75 &  2.25 &  2.45 &  2.7     \\ Cloud  &    0.36 &  0.62 &  1.19 &  1.82 &  2.52 &  3.05 &  3.65        \\ Storage &   1.1 &   1.75 &  3.09 &  4.2 &   5.5 &   6.4 &   6.95        \\ Computation &   1.53 &  2.29 &  3.65 &  4.92 &  6.4 &   7.1 &   7.6     \\ Apps \& Analytics       &   0.52 &  0.99 &  1.69 &  3.45 &  5.29 &  6.65 &  7.75        \\ Professional Services         &     2.8 &   4.42 &  6.15 &  10.1 &  13.5 &  16 &    17.2        \\       \end{tabular}     \caption{This is the caption for complicated table}     \label{tab:1} \end{table*}   \lipsum[1]


Example of nonconvex function with nonempty subgradient

I understand subgradient is well defined for convex functions such as $f(x)=|x|$ but not for nonconvex functions. I don't have a good intuition how subgradient is defined for a nonconvex function. Can someone please provide a simple example that subgradient does exist for a nonconvex function? I tried to search but without success. Of course somebody have asked questions involving keywords nonconvex and subgradient, but that doesn't mean the same question.


I'm trying to hide a process from task manager. Is it possible ? Btw. it isn't a malware program or something else.


What happens when you stack "unblockable" and "unblockable except by"?

During a recent game meetup I used  to give all my creatures unblockable. Another player responded by targeting one of my creatures with  to give it "can't be blocked except by artifact creatures and/or black creatures."   We decided (reluctantly in my case) that this might override the unblockable. Our reasoning was that because the revised wording of unblockable is so similar (can't be blocked) the exception would apply to both instances of it.  Are we right?


Evaluate:$\int_0^{\pi/2}\frac{x \sin x \cos x}{(a^2 \cos^2 x+b^2 \sin^2 x)^2}dx$

How to evaluate the integral of   $$\int_0^{\pi/2}\frac{x\sin x\cos x}{(a^2 \cos^2 x+b^2 \sin^2 x)^2}dx$$


Regarding finding details of image though url in apex

i want to know the details (size,height,width) regarding the image through  url without downloading the image is this possible via apex and if yes then please give the solution


I get that you need pointers for handling something that grows and shrinks dynamically. In instances where that isn't the case, to my understanding, you use pointers when: your object is too big to be stored on the stack, or when you would like a function to modify data outside of its scope (why not just use references here?). Is this line of thinking correct? Other uses I can think of are for polymorphism and forward declarations. The other example people always give is pointer arithmetic and handling array indices, but then why not just use C++ iterators which just wrap pointers... Are there any other (common) cases? I used to think that pointers were useful as they allowed for objects to be passed around without the need for a full copy to be made, but surely move semantics allow you to accomplish that without the need for handling pointers? Overall, I feel like I am using too many unnecessary pointers in my codebase and I would really appreciate it if someone could definitively clear things up.


Could someone please verify whether my solution is correct?     For ring homomorphism $\phi:R\to S$, prove that $\phi(R)$ is a subring of $S$.   Subset/nonempty: Since $\phi(0_{R})=0_{S}$, then $\phi(R)\subset S$ and $\phi(R)\neq \varnothing$.  Closure under subtraction: Let $\phi(r),\phi(s)\in \phi(R)$. Since $R$ is a ring, $r-s\in R$ and $\phi(r-s)\in S$. Then $\phi(r-s)=\phi(r)-\phi(s)\in \phi(R)$.  Closure under multiplication: Since $rs\in R$ and $\phi(rs)\in S$, then $\phi(rs)=\phi(r)\phi(s)\in \phi(R)$.     I am not sure what to say for closure, whether it should be stated that $\phi(rs)\in S$, etc.


How to find a basis of $\Bbb R(t)$ over $\Bbb R$?

I am reading field theory.  I dont understand the following fact:     What will be a basis of $\Bbb R(t)=\{\frac{f(t)}{g(t)}:f(t),g(t)\in \Bbb R[t]\}$.   I know that $\Bbb R(t)$ is a field and hence a vector space too over $\Bbb R$.  Also a basis of $\Bbb R[t]$ is $\{1,t,t^2,\ldots ,t^n,\ldots\}$  But how to find  a basis of $\Bbb R(t)$?


This is my draft:  \appendix \section{Grafer} \begin{figure}[!h] \begin{subfigure}{.5\textwidth}   \centering   \includegraphics[width=\linewidth]{Graf_forsøk1.png}   \caption{57\textdegree C}   \label{fig:f1} \end{subfigure}% \begin{subfigure}{.5\textwidth}   \centering   \includegraphics[width=\linewidth]{Graf_forsøk2.png}   \caption{51\textdegree C}   \label{fig:f2} \end{subfigure} \begin{subfigure}{.5\textwidth} \centering \includegraphics[width=\linewidth]{Graf_forsøk3.png} \caption{49\textdegree C} \label{fig:f3} \end{subfigure} \begin{subfigure}{.5\textwidth} \centering \includegraphics[width=\linewidth]{Graf_forsøk4.png} \caption{42\textdegree C} \label{fig:f4} \end{subfigure} \caption{Grafer/Primærdata} \label{fig:fig} \end{figure} \section{Rådata} \captionof{table}{Temperaturer for blandinger ved ulike utgangstemperaturer}\label{sophisticatedtable} \centering \begin{tabular}{ |p{3cm}|p{3cm}|p{3cm}| }  \hline Forsøk nr. & T ved tilsetning av TBC & T etter 5 min.\\ \hline1&58\textdegree C&57\textdegree C\\ \hline2&52\textdegree C&51\textdegree C\\ \hline3&50\textdegree C&49\textdegree C\\ \hline4&43\textdegree C&42\textdegree C\\  \hline \end{tabular}   This is what is generated:   I cannot for the life of me get the figure to appear under appendix A. I've tried h,h!,!h,ht and the figure still appear at the bottom of the page. How can I get this figure to appear under the section that I've written it?


Finitely generated graded modules over $K[x]$

I need some help on this exercise from A Course in Ring Theory by Donald S. Passman     Find all finitely generated graded $K[x]$-modules up to abstract isomorphism. Remember, $K[x]$ is a principal ideal domain.   The result is supposedly similar to the well-known  in the non-graded case.  So let $M$ be a finitely generated $K[x]$-module with a minimal generating set of homogeneous elements $\alpha_1, \ldots, \alpha_n$ with $d_i$ the degree of $\alpha_i$ (such a set exists because every element of M is a sum of homogeneous elements). We then get a surjective graded homomorphism $$\phi \colon K[x](d_1) \oplus \ldots \oplus K[x](d_n) \to M,\;e_i \mapsto \alpha_i,$$ where $K[x](d_i)$ denotes the graded module $K[x]$ with its grading shifted upwards by $d_i$ and $e_i = (0,\ldots,1,\ldots,0)$. So the homomorphism theorem for graded modules states that $M$ is - as a graded $K[x]$-module - isomorphic to $$\left(\phi \colon K[x](d_1) \oplus \ldots \oplus K[x](d_n)\right)/\ker(\phi).$$ How do I go on now?  Obviously $\ker(\phi)$ is a graded submodule of something like a free-graded $K[x]$-module. Is there maybe an analogue to the  for the graded case which lets me express this quotient in a nice way ?  Thanks for helping me out!


Decorator pattern with generic programming in C++: how do I refer to a nested class of the template class argument

I am creating generic decorator-pattern classes and in one decorator implementation I am trying to access a nested class of the class which I use as a template argument, like this: class A { public:     class Nested     {     }; };  template<class GenericClass> class SomeDecoratorImplementation  {     void doSomethingWithNestedClass(GenericClass::Nested& nested) {} };  Why does this work: class A { public:     class Nested     {     };          class Listener     {     public:         virtual void somethingChanged() = 0;     }; };  template<class GenericClass> class SomeDecoratorImplementation : GenericClass::Listener {     void somethingChanged() override {} };  int main() {     SomeDecoratorImplementation<A> test; }  but not this? class A { public:     class Nested     {     };          class Listener     {     public:         virtual void createdNestedClass(Nested& nested) = 0;     }; };  template<class GenericClass> class SomeDecoratorImplementation : GenericClass::Listener {     void createdNestedClass(GenericClass::Nested& nested) override {} };  int main() {     SomeDecoratorImplementation<A> test; }  This results in the following error:  To further simplify the question, why does this not compile? Shouldn't the type GenericClass::Listener be logically the same as GenericClass::Nested for the compiler? Why is inheritance here possible, but composition not? template<class GenericClass> class SomeDecoratorImplementation : GenericClass::Listener {     void createdNestedClass(GenericClass::Nested& nested) {} };


Why did Robb not pursue alternative ways of crossing the river in "Baelor"?

In the "Baelor" episode of Game of Thrones, I was confused when the Starks had to negotiate with the Frey clan in order to cross the river. Was there no other way across the river? Did they not have boats or enough resources to quickly build a bridge?  Is this explained better in the books?


How to prove for each positive integer $n$, the sum of the first $n$ odd positive integers is $n^2$?

I'm new to induction so please bear with me. How can I prove using induction that, for each positive integer $n$, the sum of the first $n$ odd positive integers is $n^2$?  I think $9$ can be an example since the sum of the first $9$ positive odd numbers is $1,3,5,7,9,11,13,15,17 = 81 = 9^2$, but where do I go from here.


A young baseball fan wants to collect a complete set of 262 baseball cards. The baseball cards are available in a completely random fashion, one per package of chewing gum.  How many boxes of chewing gum does the fan need to buy in order to have a full set with probability ≥ $0.99$?  I was told I need more info to solve this problem. However, this is all the info given. Is this missing data?


Two questions in one sentence (embedded question)

In a question like this (I took it from an English course):     Can you tell me if there's anything you don't have any doubts about?   Is this correct? (grammatically speaking)  Because for me it seems that I should use the question structure in the second part two, looking like this:     Can you tell me if is there anything you don't have any doubts   about?   Which one is right?


Let $f$ be entire and suppose that $\text{Im} f\ge0$. Show that $\text{Im} f$ is constant.

How do you show that if $f$ is entire and if $\text{Im} f\ge0$, then $\text{Im} f$ is constant? Is this even true in the first place?


Search results only for the current language

I have a site with 4 languages and am using the builtin search to look for content on the site. How is it possible to restrict the search results only to the currently selected language?  I tried looking into Configuration > Search Pages, but do not see any way how to do that there.


Prove: if $a,b\in G$ commute with probability $>5/8$, then $G$ is abelian

Suppose that $G$ is a finite group. If $P( ab=ba ) >5/8$, prove $G$ is abelian.


How to change the value of a passed variable in a function in javascript?

Inside a function, I'd like to change the value of a global variable that is specified by the function's argument.  A = 1; B = 2; C = 3;  function myFunction(variable) {     variable += 10; }  myFunction(A); myFunction(B); myFunction(C);    I'm looking for these results:  console.log(A);   // 11 expected console.log(B);   // 12 expected console.log(C);   // 13 expected   I can't output the new value via a return statement because it's computed inside the callback function of a post request.  How to achieve this?


Is it true that if $n = 2^k$ for some integer $k\geq 1,$ then $\binom{n}{\frac{n}{2}}$ is an even number?

Question: Fix a natural number $n.$   Is it true that if $n = 2^k$ for some integer $k\geq 1,$ then    $$\binom{n}{\frac{n}{2}}$$    is an even number?   Note that $\frac{n}{2}$ is always an integer, so the combination is defined.   Recall that to calculate $\binom{n}{\frac{n}{2}},$ we calculation a fraction with numerator $\frac{n}{2}$ numbers starting with $n$ and then decrease by $1,$ and denominator $\frac{n}{2}$ starting with $1$ and then increase by $1.$  I notice that $n$ in numerator always cancels with $2 \times \frac{n}{2}$ at the denominator, so the number of even numbers for numerator is more than in denominator.  However, I do not take into account the power of $2$ in both numerator and denominator.   Any hint would be appreciated.


I would like delete  since it's been closed. Is there a way to delete a closed question? I am owner, so why am I not able to delete it the normal way? Do I have to ask some moderator?


"His mathematics are weak" - grammatically correct?

We were studying Nouns today and certain words related to different subjects came which seem to be plural but are actually singular like Mathematics, Ethics, Physics etc and so, we must a singular verb with them..   But then came one sentence,      His mathematics are weak.    Anyone who can clear whether this sentence is correct or not? And if it is then what possibly is the reason?


I am trying to study assignment in python I was confused by this.  >>> a=343434;b=343434 >>> a is b True >>> a=343434 >>> b=343434 >>> a is b False


How can I save shell output to a variable in LaTeX?

I need to be able to execute a shell command through LaTeX [*] and have the resulting output available for use later on in the form of a LaTeX 'variable' (e.g., via a subsequent \newcommand command). If necessary a temporary file could be used to hold the output, although I would like to avoid this. I have been able to use  \immediate\write18   to invoke a bash command before, but this was only used to write to a temporary file.  [*] I realise that the -shell-escape flag must be set for this to be allowed


Abstract Algebra - ideals of the ring $\{a/b : b\text{ odd}\}$

Let us have a ring $R$ defined as $R=\{a/b:a,b \in \mathbb{Z} \text{ and } b \text{ is odd}\}$. Show that if an ideal is not the zero set, then it is generated by $2^n\cdot(\text{odd}/\text{odd})$.


My question iv very obvious: There are how many Lie algebras of dimension $3$ up to isomorphism?  I studied many texts but not getting a single word answer, plesae tell me about this.


How do I reformat an HDD to remove all partitions and erase all data?

I have acquired an SSD which I have performed a clean Windows 8.1 install upon it.  Works great.  It is the first in the BIOS boot order to load and it is the drive connected to my first SATA port via AHCI.  My HDD (which once held Windows for me; what the SSD replaces as the OS holder) has been backed up of all files I wish to keep, so the issue of losing files does not factor into my question.  I want to use this drive in tandem with the new SSD to hold all media and temporary files created by Windows (set in the environment variables, natch) and the programs installed on it.  However, there's a bunch of partitions on it from the previous Windows installation and any kind of exploration into the Disk Management tool does not outwardly show a feature to completely obliterate everything on a drive (including the partitions).  Google has only turned up sites about erasing everything to donate a drive but doesn't go into detail if the options and procedures outlined erases all partitions and the containers themselves.  The sites I found also speak about re-installing Windows, which is not my aim here.  How do I completely format an HDD to erase everything including partitions back to a completely empty state with zero multiple partitions?  I wish to use the NTFS file system and have a large allocation unit size since this will hold large media files more so than small temporary text files.  The drive is 2 TB.  (I heard about  but it does not explicitly say if it wipes out partitions as well.  I am getting conflicting and personally confusing (at least to me) information about DBAN and partitions as  talks about.)  ANSWER: Use the command utility DISKPART.  As @chue-x explained and linked from  (and I have confirmed by doing it):  Type cmd at the metro start screen.  Right-click the Command Prompt program that pops up in the upper right search.  Select "Run as Administrator".  DISKPART  list disk  (note the number of the disk you want to erase all partitions on, mine was 1.)  select disk 1  clean


Let $F$ is a field, and $R = M_n(F)$. Prove that  (i) Every minimal left ideal of $R$ are isomorphic to each other  (ii) Prove every simple $R$-module are isomorphic to each other  I have if $M$ is a simple $R$-module, then there is a maximal left ideal $I$ of $R$ such that $M \cong R/I$. Now the big problem of mine is that I can't determine how the maximal ideal of $R$ look like? Why $R$ is semi-simple?


How to make a python program accept an input

I have written the following program and it works as expected however I would like the user to input something This is my code:  from fractions import Fraction from math import log10  def maxnum(x):     return ''.join(str(n) for n in sorted(x, reverse=True,                           key=lambda i: Fraction(i, 10**(int(log10(i))+1)-1)))  for numbers in [(1, 34, 3, 98, 9, 76, 45, 4), (54, 546, 548, 60)]:     print('Numbers: %r\n  Largest integer: %15s' % (numbers, maxnum(numbers)))   I would like it to print out "enter the numbers" user inputs the numbers he would like to concatenate into a larger number and then the program outputs it in the same way as the code above. How do I do that Thanks in advance


Trigonometric limit: Dividing the Numerator and Denominator by $\theta\;?$

I can not see how mathematically one can divide the numerator and denominator by theta. Can some one explain this in a different way. When you divide two fractions you multiply the first fraction by the reciprocal of the second. This is not the case here.     Divide numerator and denominator by $\theta$. ($\sin\theta$ also works.) $$\eqalign{\lim_{\theta\to0}\dfrac{\sin\theta}{8\theta+\tan\theta}&= \lim_{\theta\to0}\dfrac{\dfrac{\sin\theta}\theta}{8+\dfrac{\sin\theta}\theta\cdot\dfrac1{\cos\theta}}\\&=\dfrac{\lim\limits_{\theta\to0}\dfrac{\sin\theta}\theta}{8+\lim\limits_{\theta\to0}\dfrac{\sin\theta}\theta\lim\limits_{\theta\to0}\dfrac1{\cos\theta}}\\&=\dfrac1{8+1\cdot1}\\&=\dfrac19.}$$


So. There are spinning black holes. Could there be a not spinning black hole?   Or even if it would exist, it would start spinning because of stuff?


What are the actual symptoms of the common cold?

Everyone knows (and passionately hates) the runny nose, coughing, sneezing, aching/sore joints, and the drowsiness associated with the cold. But these symptoms are just the body trying to get rid of the rhinovirus. What does the cold actually do to you, and what would happen if the body did not fight it? Would you just die?


Epidemiologists are in control here, and they were the ones who convinced PM Andrej Babiš to seal the borders in an order issued on March 12. To do this, the cabinet used the crisis law, which allows it to ban the "entry, presence and movement of individuals in or on specified areas or territories."  Source:   Can you please explain to me why the pronoun "it" is used in the second clause. It seems to be to me unnecessary. Would it be the version "crisis law, which allows to ban" wrong in terms of grammar?


I need a substitution for Parmesan cheese

I am doing bread in a jar for a gift basket. It calls for Parmesan cheese(beer bread)  what can i use for replacement if i have no Parmesan cheese. Is it necessary to add this ingredient?


Find the value of a function that satisfy $f(x+1)=f(x)\cdot f(y)$, for all $x,y\in\mathbb{R}$.

Let $f(x+1)=f(x)\cdot f(y)$, for all $x,y\in\mathbb{R}$. If $f(1)=8$ then find $f\left(\frac{2}{3}\right)$. I'm trying to find it as below. \begin{align} f(1)=f(0+1)=f(0)\cdot f(y)=8\\ f\left(\frac{2}{3}\right) = f\left(-\frac{1}{3}+1\right)=f\left(-\frac{1}{3}\right)\cdot f(y). \end{align} Since I can't find $f(y), f(0), f\left(-\frac{1}{3}\right)$, now I confused how to find $f\left(\frac{2}{3}\right)$. Any hint to solve that?


Why is there another user with the same name as mine?

My nickname on Stack Overflow is , while doing an "ego search" on Google, I also found .  How is this possible? Shouldn't nicknames be unique?


How can i use ArcGIS server 10 mapservices in OpenLayers2?

I'm new in OpenLayers. I'd like to use mapservice of ArcGIS server 10 in open layers.I search and found examples of  using an ArcGIS Server 9.3 Rest API layer for OpenLayers. I found OpenLayers.Layer.ArcGIS93Rest instance but not ArcGIS 10 . How can I use ArcGIS server 10 services in Openlayers? I wrote the below code . I use ArcGIS server 10 and The REST is working right .  <!DOCTYPE html>  <html lang='en'> <head>      <title>My OpenLayers Map</title>        <script type='text/javascript' src='OpenLayers.js'></script>     <script type='text/javascript'>          var map;          function init() {            map = new OpenLayers.Map('map_element',{}); var arcgis = new OpenLayers.Layer.ArcGIS93Rest("MyName","http://xxxxxxx/ArcGIS/rest/services/test/MapServer",            {layers: "show:0,1,2,3,4"});                      map.addLayers([arcgis]);                      }      </script> </head>  <body onload='init();'> <div id='map_element' style='width:1000px; height:500px;'> </div> </body> </html>


Is there any research or data on horizontal vs. vertical navigational menus?

I've seen many sites using both horizontal (top) navigation, vertical (left) navigation, and both across web sites for a long time. My understanding is that they're both conventions, but I would assume there must be some data out there supporting one route over the other.   My question is: are any studies or data for or against horizontal or vertical navigation (as suggested above) with regards to primary navigation (specifically on a smaller site or web app).  I've read some interesting things that are flipping me back and forth between liking horizontal more than vertical and vice versa. For example if you look at Jacob Nielsen's post on  you get the feeling that more important content should be on the left -- but you could take that as it being more important for the navigation (the user's escape routes) to be in that valuable space.


Find $\int_{-\infty}^{\infty} \frac{\sin^4{k}}{k^4}dk$ using Parseval's Theorem

I'm having a little trouble with this one. So far I've found that $$g(k) = \sqrt{\frac{2}{\pi}}\frac{\sin{k}}{k}$$ when $f(x) = 1, |x| < 1$ and $0$ elsewhere. I've also found the convolution $(f*f)(x)$ is $$\frac{1}{\sqrt{2\pi}}\begin{cases}0&x\le -2\\\\\int_{-1}^{x+1}(1)\,dx=(x+2)&-2<x<0\\\\\int_{x-1}^1(1)\,dx=2-x&0\le x<2\\\\0&x\ge 2\end{cases}$$ And the Fourier transform of this is $$\frac{2}{\pi}\frac{\sin^2{k}}{k^2}$$ I'm sure that from here the answer is quite simple, however I'm having a hard time figuring out the last step. Any help is appreciated.


Routing Applications sound to different sound device? (Windows)

Anyone know how I can set for an application to output its audio to a specific device in Windows? I'm dealing with applications where it's not possible to go into their settings and choose which output device you want to use.


If a,b,c are real numbers satisfying $a+b+c =0; a^2+b^2+c^2=1$.  Prove that $a^2 b^2 c^2 \le \frac{1}{54}$.


At the  and  Review pages1), when you hover the area next to a comment, the buttons for upvoting and flagging a comment do not light up.2)  After clicking the "add / show n more comments" button, the buttons re-appear:    Unfortunatily that option is not available when there are just a few comments.  1) This glitch is not seen on the  and  Review pages.  2) Observed in Chrome 31, IE 11, Firefox 25, Opera 12.


The validation loss is decreasing very slowly and the accuracy after 100 epochs is significantly lower than the train accuracy. What seems to be the problem here and how can I fix it? Do I decrease the number of nodes in the hidden layer, or use dropout?


In my book they calculated the $28$th Fibonacci number and said $F_{28} = 3 \times 13 \times 19 \times 281 = 317811$. This made me wonder if there was an easier way to find the $28$th Fibonacci number than by doing it by hand.


Fragment glitches in Blender when camera's far away from object

Another problem has risen about my Earth. When the camera starts to go away from the Earth, these weird fragments appear. I've figured out that it's the Earth map coming through the clouds and atmosphere but only at a distance. They're far apart enough and I don't know if it's a setting that causes this.


If two electrons are travelling side by side with the same velocity with respect to me, they are standing still with respect to each other. For me, they will exert on each other an electrostatic force minus a magnetic Lorentz force. But, as seen from their point of view there is only an electrostatic force. So according to me their acceleration will be greater than the one they will "feel". So how can one solve this issue ? Maybe though the acceleration will be weaker as seen by me, the time lenght during which they will accelerate will be longer too (according to me). As seen by the electrons, the acceleration will be greater but will last shorter.  Is this reasoning correct ? Can someone do the exact calculation ?


Give user2 read only permission to user1's subdirectory

Server: Debian   I am user1, with directory /home/user1/website/logs I want to give a new user, called user2, read access to files located in /home/user1/website/logs without giving user2 access to anything else within user1's home directory and without setting up a shared directory.   How could this be accomplished if possible, or is it impossible?  EDIT: In addition, I need to keep permissions of all files contained in /home/user1/website/logs constrained such that world never has any permissions to it. It needs to just be accessible to the users on the server.


How to insert page number in Beamer navigation symbols?

I created a presentation with Beamer, and I used Darmstadt theme.  But, this theme doesn't have the page number.  I know that I can insert the page number in Footline with:  \setbeamertemplate{footline}[frame number]   But, how can I insert the page number in "Navigation symbols", like this picture?


When can we interchange the derivative with an expectation?

Let $ (X_t) $ be a stochastic process, and define a new stochastic process by $ Y_t = \int_0^t f(X_s) ds $. Is it true in general that $ \frac{d} {dt} \mathbb{E}(Y_t) = \mathbb{E}(f(X_t))  $? If not, under what conditions would we be allowed to interchange the derivative operator with the expectation operator?


According to Gödel's Incompleteness theorems, there exist problems in any sufficiently powerful, consistent system of arithmetic that are undecidable form the axioms of said system.   *What known problems exist in physics(if any), exhibit Gödel Undecidability?  And a sub-question, why are most certain that a ToE can be derived under these conditions?(This question is different from the others in that I am asking what is the motivation of unification given such limiting restraints, regardless, this is not my primary question.)


apt-get will not shut off after failed install of app

System will not update nor can I install/remove application because the application apt-get will not release the process.  Rebooting the laptop does not resolve this matter.  I'm very new to this OS and still find myself fumbling around to self fix issues. I get the following error :  Error when attempting to an update of system using the GUI ....  Not all updates can be installed .... Recommend to do a partial update which I do and get the next error .... Unable to get exclusive lock  This usually means that another package management application (like apt-get or aptitude) already running. Please close that application first.   This all started when I was attempting to install apps for Netflix to run per instructions   The last command that was executed was sudo apt-get install pipelight-multi which installed then presented text licencing agreement and OK at the bottom. Clicking on OK with the mouse pointer or pressing the ENTER button did not get past this screen.  In frustration, I closed the terminal program. Which leads me to the area I am at now.  Per MUSHER's request to input the following into Terminal and post(ps aux | grep -i apt)  root      6734  0.0  0.0   7628   880 ?        S    Jul28   0:00 sudo apt-get install pipelight-multi root      6735  0.0  0.1  35840  1332 ?        S    Jul28   0:05 apt-get install pipelight-multi root      6792  0.0  0.0  55328   848 pts/2    Ss+  Jul28   0:02 /usr/bin/dpkg --status-fd 44 --unpack --auto-deconfigure /var/cache/apt/archives/libunistring0_0.9.3-5_i386.deb /var/cache/apt/archives/libgettextpo0_0.18.1.1-5ubuntu3_i386.deb /var/cache/apt/archives/libmpg123-0_1.12.1-3.2ubuntu1_i386.deb /var/cache/apt/archives/libodbc1_2.2.14p2-5ubuntu3_i386.deb /var/cache/apt/archives/cabextract_1.4-1_i386.deb /var/cache/apt/archives/ttf-mscorefonts-installer_3.4ubuntu3_all.deb /var/cache/apt/archives/wine-compholio-i386_1.7.23~ubuntu12.04.1_i386.deb /var/cache/apt/archives/wine-compholio_1.7.23~ubuntu12.04.1_i386.deb /var/cache/apt/archives/libcapi20-3_1%3a3.12.20071127-0ubuntu11_i386.deb /var/cache/apt/archives/libosmesa6_8.0.4-0ubuntu0.7_i386.deb /var/cache/apt/archives/mesa-utils_8.0.1+git20110129+d8f7d6b-0ubuntu2_i386.deb /var/cache/apt/archives/pipelight-multi_0.2.7.1~ubuntu12.04.1_i386.deb root      8670  0.8  2.3  59116 24084 ?        SN   06:10   0:27 /usr/bin/python /usr/sbin/aptd root      9751  0.0  0.6  15180  6928 ?        S    06:31   0:00 /usr/bin/python /usr/share/apt-xapian-index/update-apt-xapian-index-dbus libby    10203  0.0  0.0   4392   848 pts/4    R+   07:02   0:00 grep --color=auto -i apt


How and why do normalization and feature scaling work?

I see that lots of machine learning algorithms work better with mean cancellation and covariance equalization. For example, Neural Networks tend to converge faster, and K-Means generally gives better clustering with pre-processed features. I do not see the intuition behind these pre-processing steps lead to improved performance. Can someone explain this me?


I deleted var folder accidentally in my ubuntu 12.04. please help me to get back my home folder

I did something really stupid. I apologize!!  I just wanted to learn laravel framework and installed.   The bad time came to use "gulp" command in terminal.  Next what all happened I don't know. My sudo stopped working network(wifi, LAN, Bluetooth, USB) also stopped working. In the middle often my hard disk(/dev/sda1) automatically shows full. Yesterday when I start computer shows graphics error.. pressing Ctrl+Alt+F1 got terminal and accidentally typed rm -rf /var/*    Please help me to get my data back please please..