Is it possible that I got a virus without clicking what I downloaded?

A couple of days ago I accidentally downloaded a file that looked very shady. My antivirus (Avira) pinged me that the file was suspicious, so I immediately deleted it, and then cleared my browsers downloads and also emptied the recycling bin. It was a .exe file, so it was very obviously a virus.  Then, just now a few minutes ago while I was browsing reddit, I noticed a tiny popup window in the top left of my screen which flashed by super quickly, and then disappeared, without me being able to notice what it said.  Is it possible that I infected myself, despite not clicking the .exe file?  I have run a full scan by Avira, and I just downloaded Malwarebytes and ran a scan of that too. Malwarebytes found one threat ("Stubinstaller.exe or something, which internet told me was nothing dangerous), while Avira found "OpenCandy.Gen" which was then moved to quarantine.  Did I infect my computer, or was the popup (likely) something unrelated?  (In case it is relevant, I am running a 64bit Windows 7)  EDIT: I just found the logs in Avira of the event; It shows it found "PUA/EDownloader.Gen7", and that "Access denied" action was performed.  EDIT2: I am using Chrome  EDIT3: This is not a duplicate of  this. I am asking "Is it possible that I have been infected", not "how to remove a known infection".


Grinched? Winter Bash seems to have gone missing

We just noticed on the Tavern on the Meta, that hats seem to have vanished on chat.  They also seem to be gone on regular chat, and I don't see the snowflake on Meta Stack Exchange some of the time (it's randomly appearing by the looks of things then vanishing).  I usually use Vivaldi, but the same issue on Firefox (I'm on 57 or thereabouts).  I suppose we can blame load, or hats..  or is it a hat hating grinch?      Totally glitched grinched I guess


Where can I learn the meanings of RPG terminology?

Words like 'campaign', 'system', 'dX', etc. Is there a good web resource with them all on a single page?


Distributions other than the normal where mean and variance are independent

I was wondering if there are any distributions besides the normal where the mean and variance are independent of each other (or in other words, where the variance is not a function of the mean).


iPhone makes shutter sound when taking photos despite being on mute

I recently purchased a refurbished iPhone 6. It's been set up from my old device's iCloud backup and updated to iOS 10.2.1.   Unfortunately,  via the physical mute switch, my iPhone will make a shutter sound whenever I take a photo using the built in camera. I'm using my device in the United States, so .  Why would an iPhone camera be making a shutter sound while set to silent?  Edit: Worth noting that  worked for my last iPhone


Calculate the following series using telescoping

I have the following series  $$\sum_{k=1}^\infty \frac{(k-1)!}{(k+N)!},\quad\text{where }N \in \mathbb{N}. $$  I have found out that the series is equal to  $$\sum_{k=1}^\infty \biggl(\frac{1}{k}\cdot \frac{1}{k+1}\cdot _{...} \cdot \frac{1}{k+N}\biggr)$$  I also know that for $N=1$ we can use partial fraction expansion and we get a telescoping sum of $1 + \frac{1}{2} - \frac{1}{2} + \frac{1}{3} - \frac{1}{3} + ... + \frac{1}{k+1}$ which leaves $1$ if $k$ is heading to $\infty$.  Does anyone have any idea how I can go about doing this ?


the following is true in Java  "abc"=="abc"   Why? The two Strings are two different objects, they should not have the same object identity?


Disable Network Time synchronization in Ubuntu 16.04

How to enable network time synchronization on Ubuntu 16.04? How to verify/ensure that network time synchronization is disabled?


How can the loop be stopped using "Enter" key in C?

I want stop the loop when I will press Enter key. But can't stop the loop.  I need help to get rid of this problem.Thanks in advance.  #include<stdio.h> #include<ctype.h> int main() {     char ch;     do     {         printf("Enter any character:\n");         ch=getch();//any character can be entered      }while(ch!='\n');//stop when enter key is pressed      printf("Enter key has been pressed");     return 0; }


Why is it that I am unable to format my pendrive in exfat using gparted?

When I go to Gparted and try to format my pendrive to exfat,the option is greyed out and I am not able to select it however I can choose other file systems such as ext4,ntfs,etc.  Why is that ?


Transparency is showing up white on UV mapping

As you can see by the screen shot my label has transparency that's instead showing up white when I uvwrap the label on the bottle. I know it has to be something simple but there's no option to make it recognize transparency (like when bringing in an image to the modeling window I can select alpha transparency).


What happens if an answer I downvoted gets undeleted?

Seeing the undeletions happening from time to time, I was just wondering what would happen to the -1 rep that a downvoter gets when downvoting an answer.   states, that all reputation is returned when a post gets deleted, but (at least as far as I understand it) it does not explain what will happen on undeletion.  consider following scenarios:   I downvote an answer (I get -1 rep) The answer gets deleted less than 60 days after posting (I get my +1 rep returned)   Now, what will happen if the answer...   ...gets undeleted less than 60 days after posting? (AFAIK, I will get -1 again.) ...gets undeleted less than 60 days after deletion but not posting? (Which event does count for the 60 day limit - if any?) ...gets undeleted more than 60 days after posting? (will everything stay as is?) ...gets undeleted more than 60 days after deletion?   In those four cases, what will happen to my or the answerers reputation? My understanding is, that reputation changes get reverted, but I could not find any information regarding the 60 day cap. Does it affect deleted post at all, or does it solely count for posts that are         (emphasis mine - visible means different things for 10k and <10k users)  If this is true, another question that arises is: are the days counted continuously? So, if a question gets deleted after two days and undeleted another two days later, does the "days visible on site count" stand at 0, 2 or 4?    note: I realize that I ask multiple questions here, but I think that these can be answered with few words and are very closely related as they regard the same mechanism, so they won't require a (too) broad answer.


Supremum and infimum of $\{\frac{1}{n}-\frac{1}{m}:m, n \in \mathbb{N}\}$

I would like to verify my proof of the following:  Let $A=\{\frac{1}{n}-\frac{1}{m}:m, n \in \mathbb{N}\}$.  I want to show that $-1$ and $1$ are the infimum and supremum respectively.  First I will show that $-1$ is the infimum.  To show this I will first demonstrate that it is indeed a lower bound.  Observe: $$\frac{1}{n}-\frac{1}{m} \geq \frac{1}{n}-1 \geq -1.$$  I now claim that $-1$ is the greatest lower bound.  So, by the archimedean property, there exists an $x \in \mathbb{R}$, $x>0$ and $n' \in \mathbb{N}$ such that $1<n'x$.  Thus, $\frac{1}{n'}<x$ and $$\frac{1}{n'}-1<x-1.$$  From the above it is clear that $\frac{1}{n'}-1 \in A$.  Also, it is clear that $-1<-1+x$.   Let $y=\inf(A)$.  So we let $$-1<y\leq-1+x.$$  By completeness there exists an $r\in\mathbb{Q}$ such that $$-1<r<y\leq-1+x.$$  Thus $y$ is not the infimum.  I was going to note that the supremum was 1 through the relationship between $$\inf(A)=-\sup(-A).$$


How do programmatically create fields for content types, and ADD them to the the content type form

Say I have this field, "map_description". I know I would this function to define the field:   $field = array(   'field_name' => 'map_description',   'cardinality' => 1,   'type' => 'text', ); field_create_field($field);   And I have this code which I'm not sure what it does but I'm told that I'll need it:   $instance = array(     'field_name' => 'map_description',     'label' => 'The map description.',     'bundle' => 'my_content_type',     'entity_type' => 'node',     'widget' => array(     'type' => 'text_textfield',  );  field_create_instance($instance)   Those two code bits are both in my install hook and run when I install the module. But while the fields are in fact created, I have to manually assign them to the content type via "manage fields", is there a way to have the fields automatically assigned to the content type?


I am trying to install Ubuntu 11.10 alongside Windows XP.  When I am prompted where I want to install Ubuntu, the three options to select from are:   Install Ubuntu alongside Microsoft Windows XP Home Edition Overwrite Microsoft Windows XP Home Edition with Ubuntu Something else   When I selection option 1, by default Ubuntu Installer selects the 1TB external hard drive that I have connected to the computer.  There appears to be an option to select another hard drive, however, I cannot use it to change to another drive.  In other words, the drop down list does not work.  What I want to be able to do is to install Ubuntu on another (internal) 320GB hard drive that I have purchased for this very reason.  My problem here is that I am not certain how to partition it for Ubuntu using option 3.  I know that I will require a / partition and a /boot partition, however, I am not sure how much to allocate to each.  Furthermore, there appears to be more file systems to select from.  Which one do I use for each partition I create?  Also, the intended target drive is currently formatted with NTFS.  Do I need to manually delete and re-create the partition to ext2 before I am able to install Ubuntu?  FYI - My current configuration is as follows:  /dev/sda   /dev/sda1   fat16    32MB   /dev/sda2   ntfs    160GB /dev/sdb   /dev/sdb1   ntfs    320GB /dev/sdc   /dev/sdc5   fat32  1000GB   Note that the /dev/sda1 is the partition reserved for EISA (whatever that is), /dev/sda2 is the partition that contains the Windows XP Home Edition, /dev/sdb1 is the new internal hard drive that I intend to install Ubuntu, and /dev/sdc5 is the external drive which is used as a backup drive only.  For some reason, Windows XP uses this external drive to store temporary/configuration files for software that is installed on /dev/sd2.  Any help/advice would be appreciated.


Best practice for creating complex models. Multiple meshes and textures?

Please forgive me if this is 'off topic,' the actual  page is void of any useful guidelines.  I'm new to Blender and started trying to make a model that is more complex than a simple object. Take any normal model, for example a car. Is it normal to make a car in one file that consists of a bunch of different non-connected meshes?  Most tutorials I have found make one giant connected object that is (in some way) connected to every part of the whole model.   My mind wants to separate the parts, like the wheels wouldn't be 'connected' to the body. I feel like this would make texturing and UV mapping easier, but nobody seems to do this. Texturing different parts of a single giant mesh is challenging for me and I wanted to know if it is bad practice to create lots of 'pieces' to a single model.


For a Noetherian ring $R$, we have $\text{Ass}_R(S^{-1}M)=\text{Ass}_R(M)\cap \{P:P\cap S=\emptyset\}$

$\DeclareMathOperator{\ass}{Ass}$     Let $R$ be a Noetherian ring and $S$ be a multiplicative set in $R$. Then show that   $\ass_R(S^{-1}M)=\ass_R(M)\cap \{P\in \text{Spec}(R):P\cap S=\emptyset\}$   Attempt: Let $P\in \ass_R(S^{-1}M)$. We argue that $S\cap P=\emptyset$. Say $P=\text{Ann}(m/s)$ for some $m/s\neq 0$ in $S^{-1}M$. If $r\in P\cap S$, then from $r\cdot (m/s)=0$ we get $(r/1)\cdot (m/s)=0$. But $r/1$ is invertible in $S^{-1}R$ and thus we have $m/s=0$, a contradiction. So we must have $S\cap P=\emptyset$.  The main difficulty I am having is in showing that $P\in \ass_R(M)$. I suspect that $P=\text{Ann}(m)$. Clearly, if $r\cdot m=0$, then $r\cdot (m/1)=0$ and therefore $r\in P$. So $\text{Ann}(m)\subseteq P$. On the other hand, if $r\in P$, then $(r\cdot m)/s=0$, giving an element $u\in S$ such that $(ur)\cdot m=0$. But I am getting nowhere with this.


Installed program executable runs from wrong location

I installed parcellite in Ubuntu (downloaded from )  After installing from sources, sudo make install, I can see that it is installed at below location.  However, when I try to run it, it tries to run it from another path. Why is that?  user$ which parcellite /usr/local/bin/parcellite  user$ parcellite -h bash: /usr/bin/parcellite: No such file or directory   $PATH is as below  /home/user/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games  I tried changing ownership of executable as follows. Still the problem persists.  user$ ls -l /usr/local/bin/parcellite  -rwxr-xr-x 1 root root 452K Oct  7 21:00 /usr/local/bin/parcellite user$sudo chown user:user /usr/local/bin/parcellite user$ ls -l /usr/local/bin/parcellite  -rwxr-xr-x 1 user user 452K Oct  7 21:01 /usr/local/bin/parcellite   I had an older version of parcellite installed. But I removed it prior to installing new version.     Update: @Fox's solution works. But any idea why which command gives correct path, despite hashNOT being updated?


How to change camera default save location?

When I was using the camera of my Sony Xperia S, the following message popped up.  So how do you change the default save location of your camera (as highlighted with red underline)? Note: Yes, my memory was full and the message stopped showing up after deleting some files of course. I just want to know how to change the default for CAMERA.


Travel to Romania with a residence permit of Germany

I am a student in Germany and i have a residence permit here for 2 years, which is also a Schengen visa, I suppose. Do I need a separate visa if i wish  to travel to Romania?


How to run a command before the machine automatically shuts down?

How can I run a command before the machine automatically shuts down?


Linker error with implicit instantiation of private C++ template with LLVM-Clang

Disclaimer: I know that templates are usually implemented in the header file. Please read through.  I have a C++ template-related issue. My code builds with MSVC under Windows but doesn't with LLVM-Clang under Mac OSX, but I'm not sure which one is wrong.  Here is a simple test case, composed of three source files:   main.cpp  #include "templ.h"  int main() {    templ(1);    return 0; }  templ.h  template<typename T> T templ(const T&);  templ.cpp  #include "templ.h"  template<typename T> T templ(const T& t) {    return t; }  //explicit instantiation template int templ(const int&);  //implicit instantiation void f() {    templ(1); }    As you can see, I want the implementation of the function template to be private (i.e. hidden in the .cpp file). To allow this, I must instantiate my template in the same translation unit as its definition. In the above example, I only instantiate templ<int>. AFAIK, this is unusual, but perfectly cromulent C++.  As is, this code builds with both the compilers. However, if I comment out the explicit instantiation and only leave the implicit instantiation, the compilers behave differently. MSVC builds successfuly, but LLVM-Clang fails with the following linker error:  Undefined symbols for architecture x86_64:   "int templ<int>(int const&)", referenced from:       _main in main.cpp.o ld: symbol(s) not found for architecture x86_64   Besides, that error occurs only when the optimization is enabled (e.g. -02).  What does the standard say about this? Is this a known behavior/bug of LLVM-Clang?  My version of LLVM-Clang is:  Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) Target: x86_64-apple-darwin13.0.0 Thread model: posix   Sorry if this is a duplicate. It's very hard to pick the correct keywords.


Does anyone have a .bst file of the Journal of Finance citation standard in GERMAN?  I tried to change the original English language version into one that uses German keywords. It works somehow but it still has some issues. For instance, there is a comma before the "und" conjunction, and that's not right for a German-language document. I am not quite sure if the Standard is correct itself. Can somebody please help me? Maybe it's an old code?  My file jfgerman.bst differs from the file `jf.bst, which is available online at , in the passage  that defines language-specific variable names. E.g., instead of   % Here are the language-specific definitions for explicit words.  % Each function has a name bbl.xxx where xxx is the English word.  % The language selected here is ENGLISH  FUNCTION {bbl.and} { "and"}   my file jfgerman.bst features  FUNCTION {bbl.and} { "und"}


Android app crashes on tapping on recommended jobs

The Stack Exchange Android app crashes when I tap on a job in recommended jobs.  I also did a data reset for the app and reinstalled it but that didn't fix the issue.   Attaching screenshot of the section.   Also, all other sections are working fine as expected except the Recommended Jobs, which causes sudden app crash.   App Version: 1.0.89 Device Manufacturer: OnePlus Device Model: ONEPLUS A3003 (OnePlus 3)  OS Version: 6.0.1 (26)   Edit:  Added the  of the issue.


Confidence interval of the mean for a beta distribution when alpha and beta are estimated

I have elementary knowledge in statistics. I'm trying to estimate the confidence interval for mean of a beta distribution as specified in this  using log likelihood estimation given alpha, beta and sample size. This is closely related to this . The main difference is I have the alpha, beta and the sample size estimated using log likelihood from the data.  Lets suppose I have estimated $(\alpha,\beta)$ for two different data with different sample sizes:   ($\alpha,\beta$) = (0.688,3.806) using a sample size $n=500$ and ($\alpha,\beta$) = (0.704,1.182) using a sample size $n=1500$  The mean of a beta distribution is $$E(X) = \frac{\alpha}{(\alpha+\beta)}$$ and the variance is given by $$Variance(x) = \frac{\alpha\beta}{(\alpha+\beta)^2(\alpha+\beta+1)}$$   the mean and variance for 2 data are as follows:   mean = 0.15 and variance = 0.0236 mean = 0.37 and variance = 0.0810   Edit:  Using Bootstrap we could estimate the confidence interval of the beta distribution, This is based on the :  # Sample size n = 50  # Parameters of the beta distribution alpha = 0.688  beta = 3.806   # Simulate some data set.seed(1) x = rbeta(n, alpha, beta)  curve(dbeta(x,alpha,beta))   library(simpleboot)  x.boot = one.boot(x, mean, R=10^4) hist(x.boot)                boot.ci(x.boot, type="bca")   Below is the confidence interval for beta distribution when $\alpha = 0.688$ and $\beta = 3.806$ with a mean of 0.15.  Intervals :  Level       BCa           95%   ( 0.1159,  0.2082 )   Calculations and Intervals on Original Scale   My question is around using the alpha, beta, and estimated mean and variance to estimate the CI of the mean as opposed to using bootstrap estimates. For normal distribution you could estimate CI given a mean, variance and sample size. How do I do the same for Beta distribution ?  How do I estimate the confidence interval for the mean, given the alpha, beta, and estimated mean and variance?


Is there an equivalent to Julia's eval(parse(String)) in python?

Disclaimer: New to stack overflow. In the Julia language the eval(parse()) ability comes in very useful. Example: eval(parse("x = 5")). I'm wondering if there is an equivalent in python, I get the consensus that this is a no. If it is a no why? Surely it would be a useful addition to the language.


Do I need a transit visa for Saudi Arabia?

On July 2, I am going from Dubai, UAE, to Chennai, India, with a connecting flight in Riyadh, Saudi Arabia. The flight is on Saudia Airline and the layover is nearly 2.30 hours. I would not leave the airport.


Expanding Environment variable in string using python

I have a string containing an environment variable, e.g.   my_path = '$HOME/dir/dir2'   I want parse the string, looking up the variable and replacing it in the string:  print "HOME =",os.environ['HOME'] my_expanded_path = parse_string(my_path) print "PATH =", my_expanded_path   So I should see the output:  HOME = /home/user1  PATH = /home/user1/dir/dir2   Is there an elegant way to do that in Python?  thanks!  Conor


how to pass value like 100,102,103 to view params

I am trying to zoom plot numbers.Plot numbers like 1 10-12 13/P road 20(A) 100&102 and etc.I am able to zoom to all combination plot numbers except 1,2,3.when I pass such value its trowing error:  1 feature types requested, but found 2 view params specified  geoserver sql view is:  select * from plotboundary where nmindar='%nmindar%' and plno='%plno%'   default values and validation are  Name  | Default Value   | validation  nmidar| Hanagawadi I A  | ^[\w\d\s]+$  plno  |  100,102&103    | ^[ A-Za-z0-9_ *@.\/#&+-\,()-_]*$   ajax function:   $.ajax({             url: 'http://XX.168.1.XX:8089/geoserver/XX/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=XX:vwplot&maxFeatures=5000&outputFormat=text/javascript',             contentType: 'application/json',             dataType: 'jsonp',             jsonpCallback: "parseResponse",             data: {                 viewparams: "nmindar:" + nmindar + ";plno:" + plno             }   Can any one tell me how to pass value to viewparams in geoserver, value includes comma. For example as mentioned above "100,102&103" is a single value(plot number).Here   comma is not a separator.


I am having trouble making the caption beneath a figure to be of same width of the figure (less than the width of the paragraphs in the same page). How can I force the caption width to be the same as the figure width?


Order 2 elements in finite characteristic field

In  field of characteristic $p$, where $p$ is prime, why can $x^2=1$ only have the two solutions $1$ and $-1$? Is it just because that polynomial only has degree 2?


Suppose $f$ be measurable and $\int_{I}fd\lambda=0$ for all bounded intervals $I$ in $\mathbb{R}$ and $\lambda$ is the Lebesgue measure. Then, is $\lambda(\{x\in\mathbb{R}:f(x)\neq0\})=0$?  I think yes, because, $\int_{I}fd\lambda=\int_0^k\lambda(\{x:|f(x)|>t\})dt$ where $I$ be the intervals $[0,k]$. Since the terms are all zero, so we can conclude that $\lambda(\{x\in\mathbb{R}:f(x)\neq0\})=0$. Any hints? Thanks beforehand.


The equivalence of open-set definition of continuous mappings to the $\epsilon-\delta$ definition

A function $f: M\rightarrow N$ is defined to be continuous iff $\forall$ open set $U\subseteq N$, the preimage of $U$ is also open.  I was trying to prove that such a definition would be equivalent to the $\epsilon -\delta$ definition in a metric space, and I could only do so if I assume $f$ is surjective, or otherwise a counterexample would be $g: \mathbb{R}\rightarrow\mathbb{R}$ where $g(x)=x^2$. As if I take $U=(-1,1)$, then its preimage is $[0,1)$, which is neither open or closed. In fact, any $U$ containing elements that cannot be achieved by $g$ would face the same problem.  So I was wondering that have I remembered the definition of preimage wrong, or do I need to make sure that $U$ must be chosen from the image set of $f$?


How can I utilize the whole terminal, like htop or emacs do?

I want to write a program that can "draw" in the terminal the same way as htop or emacs. By that I mean "get rid of the prompt and make the output dependent on the current size of the terminal".   To make this a bit more clear:   I want to use the terminal this way:     in stead of this way:


pgfplots boxplot without outliers, but with extrema

In response to  asking about how pgfplots boxplots can be produced without outliers, this  suggested a fix that does not seem to work anymore. (I am not the first to notice this as evidenced by a comment left below the answer.) The following MWE (taken from the answer):   \documentclass{article} \usepackage{pgfplots} \usepgfplotslibrary{statistics} \begin{document}  \makeatletter \pgfplotsset{     boxplot/hide outliers/.code={         \def\pgfplotsplothandlerboxplot@outlier{}%     } } \makeatother  \begin{tikzpicture} \begin{axis}[y=1cm, try min ticks=2] \addplot+[boxplot] table[row sep=\\,y index=0] { data\\ 1\\ 2\\ 1\\ 5\\ 4\\ 10\\ 7\\ 10\\ 9\\ 8\\ 9\\ 9\\ 21\\ }; \end{axis} \end{tikzpicture}  \begin{tikzpicture} \begin{axis}[y=1cm, try min ticks=2] \addplot+[boxplot, hide outliers] table[row sep=\\,y index=0] { data\\ 1\\ 2\\ 1\\ 5\\ 4\\ 10\\ 7\\ 10\\ 9\\ 8\\ 9\\ 9\\ 21\\ }; \end{axis} \end{tikzpicture}  \end{document}   gives the following error:   ! Package pgfkeys Error: I do not know the key '/tikz/hide outliers' and I am g oing to ignore it. Perhaps you misspelled it.  See the pgfkeys package documentation for explanation. Type  H <return>  for immediate help.  ...                                                l.30 t       able[row sep=\\,y index=0] { ? x   (I'm using MacTeX 2019.) I have two questions:    How can this be fixed so I can remove the outliers?  How can I remove outliers but show extrema (minima/maxima)?


Why does Calculate button remain gray in Group Stats Plugin for QGIS?

In my case I failed to use  plugin (2.0.30) with QGIS 2.14.11 and 2.18.3 on windows64.  Tested on several datasets: points, polygons, and csv.- But I am not sure what I have missed.    I want to click on this Calculate button.


Noun-verb agreement for a list of singular nouns including "I" and joined by "or"

I understand that when you have a list of singular nouns joined by "or", you should use a singular verb.    Example:     Either Chris or Len is the next player   But what verb do you use if one of the items in the list is "I"?     Either Justine or I is the next player   or     Either Justine or I am the next player   or something else?


Is it known whether ${\sqrt{2}}^{\sqrt{2}}$ is irrational?

I know  that uses $x={\sqrt{2}}^{\sqrt{2}}$ to prove that there must exist an irrational to an irrational power that evaluates to a rational. But I don't know if $x$ itself is known to be irrational or rational.  Could someone enlighten me? Thanks!


How to fix the invalid name in the ssl certificate

I generated ssl certificate with:  openssl genrsa -out key.pem 2048 openssl req -new -sha256 -key key.pem -out csr.csr openssl req -x509 -sha256 -days 12775 -key key.pem -in csr.csr -out certificate.pem   but after checking my openssl server with ssllab I got the following invalid message:   How to fix this issue?


If $H$ is a ring and it has a finite non-zero characteristic $p$ then ring is finite.  I couldn’t any counter example for this claim. Can anyone help me please?


How do I calculate the number of months between two dates in Excel?

I have two columns on Microsoft Excel:  F is the column with the date service ended; E is the column with the date service began.    How do I calculate and report the number of months served for each person?


svn: '.' is not a working copy directory

I'm new to svn. I had to move svn repos from ec2 instance to another one. I wanted to reconstruct the svn from the exiting repos. I ran the command svn recover and got the recovery going. However, I cannot get a working copy out of these repos. When I ran sudo svnlook tree /home/svndir/repos/**** I could see the repository but I could not make a working copy out of these recovered repos. can anybody help me?


How to show TCP listenings and filter them by local IP on Windows?

Server has numerous IP addresses, set up on it's network interface.  How to find, who is listening to specific IP port 80?  netstat shows very long list. Are there any builtin means?  UPDATE  Also can't use findstr with also wishing to know process name because brocess name is displayed on separate line.


svchost process takes a huge amount of memory at times

At random times, the svchost process takes a lot of memory, and the PC becomes unusable. A screenshot is below.  Is it a known issue? How can I found out what causes it, and how can it be fixed?


How to make Question visible on top in stack overflow

I have added One question before One day. But  I still not get answer for that question. Now people are not looking at this question. So I just want to make it visible on newest question list at top.  Is anybody know how to do this thing?  Or any other solution will also appreciate.


What is the command to get my System Inormation?

A command which can display RAM size, processor, graphics card, Disk size, OS (32 or 64)?


My website emails are going to Spam in gmail

I have a web site that provides daily real estate updates. Users register, and we send them an email every day. However, Gmail is marking all of our emails as spam. What should we be looking out for?


Is there an effective way to see why a batch file crashes?

Every time there is an error with my code and I want to better understand what I did wrong, I turn @echo on. When your batch file crashes though, it obviously isn't able to display the issues since the command prompt screen crashes. Is there a way to view why it crashed, or at least showing there was a undefined variable or something along those lines?


Continuous function from a connected set?

If $ f $ is a continuous mapping from a connected set to the real numbers and there exists a real number s that nothing maps to, then the image is either greater than or less than s. this is clear to me intuitively but I can't think of how to prove it.


MySQL database getting connected with any username and password

We have a website running on an custom Ubuntu server managed and hosted by the client himself, since last two days the website database is getting hacked and someone deletes all the db tables from the database.  Upon checking the Db connection I come to know that database is getting connected with any username and password, is there any configuration issue in mysql? I am not able to find anything on google or stackoverflow.  Any help would be appreciated. TIA.  EDIT: I checked mysql users table and there are three users in the table as listed below,   root mysql.sys mysql.session


How does the sum of the series “$1 + 2 + 3 + 4 + 5 + 6\ldots$” to infinity = “$-1/12$”?

(I was requested to edit the question to explain why it is different that a proposed duplicate question. This seems counterproductive to do here, inside the question it self, but that is what I have been asked by the site and moderators. There is no way for me to vote against their votes. So, here I go: Please stop voting this as a duplicate so quickly, which will eventually lead to this question being closed off. Yes, the other question linked to asks the same math, but any newcomer to the problem who was exposed to it via physics, as I was, will prefer this question instead of the one that is purely mathematically. I beg the moderators to not be pedantic on this one. This question spills into physics, which is why I did the cross post to the physics forum as well.)  How does the sum of the series “1 + 2 + 3 + 4 + 5 + 6…” to infinity = “-1/12”, in the context of physics?  I heard Lawrence Krauss say this once during a debate with Hamza Tzortzis (). I found a transcript of another debate between Krauss and William Lane Craig which has the same sum. Here is the paragraph in full:     Let’s go to some of the things Dr. Craig talked about. In fact, the   existence of infinity, which he talked about which is   self-contradictory, is not self-contradictory at all. Mathematicians   know precisely how to deal with infinity; so do physicists. We rely on   infinities. In fact, there’s a field of mathematics called “Complex   Variables” which is the basis of much of modern physics, from   electro-magnetism to quantum mechanics and beyond, where in fact we   learn to deal with infinity; without the infinities we couldn’t do the   physics. We know how to sum infinite series because we can do complex   analysis. Mathematicians have taught us how. It’s strange and very   unappetizing, and in fact you can sum things that look ridiculous. For   example, if you sum the series, “1 + 2 + 3 + 4 + 5 + 6…” to infinity,   what’s the answer? “-1/12.” You don’t like it? Too bad! The   mathematics is consistent if we assign that. The world is the way it   is whether we like it or not.   -- Lawrence Krauss, debating William Lane Craig, March 30, 2011  Source:   CROSS POST: I'm not sure if I should post this in mathematics or physics, so I posted it in both. Cross post:   EDIT: I did not mean to begin a debate on why Krauss said this. I only wished to understand this interesting math. He was likely trying to showcase Craig's lack of understanding of mathematics or logic or physics or something. Whatever his purpose can be determined from the context of the full script that I linked to above. Anyone who is interested, please do. Please do not judge him out of context. Since I have watched one of these debates, I understand the context and do not hold the lack of a full breakdown as being ignorant. Keep in mind the debate I heard this in was different from the debate above.


How to use the man command to navigate to specific sections of the manual?

I would like to know if there are easier ways to navigate to specific sections of manual pages such as Examples or Options  I currently resort to piping man to regex find and retrieve statements.  For example to find the entry for the -f option in the grep manual I use this statement:  man grep | grep -A 2 -e '-f'  Is there a better way to use man? I've been able to find scant info on the -S option but perhaps I'm going down the wrong rabbit hole.


When did the Millennium Falcon lose its front part?

In Solo: A Star Wars Story, we see the Millennium Falcon for the first time when Han Solo was young, and when it wasn't just a hunk of flying trash. It was smoother, it had blue paint, and looked as good as new. But the most different part, other than the fact that Lando Calrissian owned it, was that the non-existent front section was... EXISTENT! Here's an example.  I made a model of this Millennium Falcon, and the description of the front section on the box was that it was an "escape pod." I also know, according to  that the front part was "missing" from the beginning of Star Wars, so is there really an answer?


Mirror cells so that a change in either cell updates the other

I have 2 cells containing the same picklist values on separate sheets. I want the cells to mirror each other so that whenever I choose a new value in either sheet 1 or sheet 2, the value on the other sheet is updated to match the newly selected value. Is this possible?  UPDATE   Worksheet 1:   Worksheet Name: 'Live Forecast Tool' Cell containing picklist: C3:D3 (merged) Picklist values within range: ='SF MRF'!H5:Y5  Worksheet 2:   Worksheet Name: 'AH' Cell containing picklist: C3:D3 (merged) Picklist values within range: ='SF MRF'!H5:Y5    Cell C3:D3 needs to update to show the value that has been changed on the other sheet.


I'm running Ubuntu 17.10 in VirtualBox and the keyboard shortcut for switching to a new workspace doesn't work. Please show me a screenshot that shows how to switch workspaces from the desktop environment in Ubuntu 17.10 without pressing the keyboard shortcut.


How do you find the derivative of $x^{2/5}$ using the definition of the derivative?


Is there a systematic way to obtain all conserved quantities of a system?

I'd like to know whether, given a system, there's a way to obtain all the conserved quantities. For instance if the system consists of electric and magnetic fields, the fields must satisfy Maxwell's equations. These equations are invariant under many transformations (Lorentz transformation, rotations, spatial and temporal translations, etc. By the way is there a way, maybe from group theory, to find all the possible transformations that leaves the equation(s) invariant?) which imply as many conserved quantities thanks to Noether's theorem. In wikipedia I can see an equation that seems to give all the conserved quantities () but it involves the Lagrangian and I'm not sure whether the formula is valid for all systems whose Lagrangian is possible to obtain.


Im trying to make a cycles rendering test with HDRs but when i render an image it doesn't appear in the specified folder.  Here are some screenshots:


Why is in this case the css-specificity not working, or what am I doing wrong?

Hi I have 19 pictures that I want to hide, but the nummer 14 should show. This is going to be changed by javascript so I need to have all these pictures in my html. My code (and yes I know that the pictures aren't going to bo here, but when they are shown, there are icons replacing them):   .anim_pics {     visibility: hidden;     margin-left: auto;     margin-right: auto;     position: absolute;     top: 10px;     resize: both;     left: 10px;     height: 10%;     width: auto; }  .anim_pics#14 {     visibility: visible; }                       Should't .anim_pics#14 have more specificity than .anim_pics?


Short story about a farmer who unearths a mysterious motor or engine

He is working his field and digs up a large object that seems to be humming. There is an opening in the case, so he inserts a piece of lumber and it spins with such torque that it almost kills him. I cannot remember how the story ends. I read it in the mid 1960's.


How to find the maximum possible value of $\big| (z_1-z_2)^2+(1-z_1)(1-z_2) \big|$ given that $|z_1|=|z_2|=1$?

How to find the maximum possible value of $\big| (z_1-z_2)^2+(1-z_1)(1-z_2) \big|$   given that $|z_1|=|z_2|=1$ ?  I cannot think of any easy method to do it. Any suggestion?  P.S: Avoid using multivariable calculus.


What is the expected value of $X$ given $X<Y$, where $X,Y\sim\mathcal{N}(\mu,\sigma^2)$?

What is $\mathbb{E}[X|X<Y]$ if $X,Y\overset{iid}{\sim}\mathcal{N}(\mu,\sigma^2)$?  I have found that $\mathbb{E}[X|X<Y]=\int_{-\infty}^{\infty} -\log(\Phi(\frac{x-\mu}{\sigma}))x\phi(\frac{x-\mu}{\sigma})dx$ but from there couldn't procede.


I'm trying to create a segmented bar chart (stacked bar chart) under my tikz plot:    For each point, I want to make a segmented bar chart directly below the point.  The segmented bar chart for each point should look something like:    Where each segmentation of each respective bar should sum to 1. Sometimes there will be up to 10 segments under one bar and each of these relative frequencies must sum to 1.  Each segmentation should display a number within it (preferably centered in the middle) between 0 and 1 to visually show how "big" it is directly on the plot.      The only relevant link I found explaining stacked bar charts was:   Here is the code to pgfplots plot that I've created thus far:  \documentclass[]{article}  \usepackage{pgfplots}  \begin{document}  \begin{figure}[htbp]     \begin{center}         \begin{tikzpicture} \begin{axis}[      title={My Title},     axis lines=middle,     axis line style={->},     ylabel near ticks,     xlabel near ticks,     ymin=0, ymax=0.05,     scaled y ticks = false,     yticklabel style={/pgf/number format/fixed},     xlabel={x-axis},     ylabel={y-axis}]  \addplot [only marks, mark=o] table{ 11  0.0215 12  0.0216 13  0.0207 14  0.0202 15  0.0197 16  0.0195 17  0.0196 18  0.0192 19  0.0188 20  0.0183 21  0.0178 22  0.0175 23  0.0176 24  0.017 25  0.0169 };  \addplot [style=very thick, color=red] table{ 10.58   0.0222 10.923  0.022 11.421  0.0218 13.459  0.0208 14.736  0.0203 16  0.0198 16.525  0.0196 16.878  0.0195 17.9    0.0191 18.503  0.0189 19.835  0.0184 22.27   0.0177 22.641  0.0176 22.728  0.0175 24.681  0.017 24.822  0.0169 };  \end{axis}  \end{tikzpicture}     \end{center} \end{figure}   \end{document}   Since I might have however many points on the x-axis, I am trying to make the widths of the stacked bars be able to scale appropriately so that they don't run into each other.  Usually I'm handling between 15 and 25 points, but sometimes over 70 or even 80.  At this point, I understand that the segmented bars will become cluttered, which is why I work only with 15 to 25 points at a time.  Is there a utility or something that I can use within tikz to directly make a segmented bar chart under my graph?  UPDATE:  I recently found this documentation, which shows almost exactly what I am looking to achieve with the stacked bar chart:   I am of the opinion that the easiest way to draw these bars would be to use the open circle as the top middle anchor point.  However, I am still unsure about the scaling business if there are many points to consider.


How to group distinct values from a list using odata rest api

Hi I have a list with two fields "Regions" & "Countries" I am using a rest api to retrieve the list of just regions like so: http:mysitename/_api/web/lists/getByTitle('TaxTool')/items?$select=Region  In the results there are lots of duplicates and I was wondering how to return unique values.


Difference between updation with NULL and ''?

I have used to two queries to update one column as NULL:  update table_name  set col1 = NULL where col2 = 'MUTHU';  update table_name  set col1 = '' where col2 = 'MUTHU';   But when i used to query with function NVL then i am getting the same result for both queries.  select nvl(col1, 'value') from table_name;   My question is: what is the 'difference' and 'use' between  NULL and '' ?


MiKTeX service unavailable for downloading new packages

Here what I got :      The MiKTeX web service has rejected your request.  Possible reason:   too many requests arriving from your IP address.   Any ideas ? I thought it could come from the location of the server (how to change it by the way ?)  With best regards.  Klauss


Are eggs in the US safe if stored at ~45°F for a week?

I have moved my eggs to a mini-fridge and, despite attempting to get a good-quality one, it seems as though the temperature even on max cold doesn't get below 40°F throughout the refrigerator. I really hate food poisoning and, especially now, would very much like to avoid going to the hospital or damaging my health. Are US eggs (high quality, from Alexander farms) left in a fridge above safe temperature for over a week still safe to eat? Does the float test work to detect salmonella? Is there something I can use them for that's high enough temperature to eliminate the risk?  Thanks in advance!


Can the position of an adjective be used to determine the noun it applies to?

Given the sentence: "A mother beat up her daughter because she was drunk".  Is there a grammar rule that can help resolve the ambiguity of whether "drunk" refers to the mother or the daughter?  Update: The question isn't about how to rewrite the sentence. If you found the sentence already written and had no access to the author in order to sort out the ambiguity, what would be the most correct interpretation?


It is known that after exceeding amount of write procedures to a particular SSD sector this sector dies and is replaced with another one from reserved ones. Please, correct me if I'm wrong.  I suppose it might be unsafe to use SSD disc for very long time. But I would like to know how much damaged is my disc, how many damaged sectors it has? How to get such info? Is there any useful software to check it?


Linux Mint 17 Cinnamon: how can I run an application prior to the login screen?

I'd like to run an app (Python Tk, say) prior to the login screen on LMC 17. I notice that there's plenty of Q&A on doing this on Ubuntu (, for eg), but couldn't really find anything relevant on Linux Mint.  Any ideas?   [UPDATE] Okay, I do see that the qs is very similar to the one pointed out by several folks. However, I still don't find an answer particularly pertaining to the Linux Mint 17 Cinnamon display manager -  which appears to be mdm :  $ cat /etc/issue Linux Mint 17 Qiana \n \l $ cat /etc/X11/default-display-manager  /usr/sbin/mdm $    So, particularly, how do I leverage (or otherwise) use mdm to run an app prior to login?  Note, for this to be useful: the app itself is graphical, hence X should be running by this point..


How can adding a Subselect make a SOQL query non-selective?

I have a SOQL Query with subquery that fails to execute because it is non-selective. I don't understand why and cannot interpret the results. All I know is that tearing parent und sub query apart solves this.  I have CustomObjectA__c and CustomObjectB__c which can be N-M linked via Linker__c. In my query I am fetching all childs of some CustomObjectA___c records:  NON-SELECTIVE  for(CustomChildObjectA__c a : [SELECT TextField__c                                FROM CustomChildObjectA__c                                WHERE mdr_Parent__c IN (SELECT mdr_CustomObjectA__c                                                        FROM LinkerObject__c                                                        WHERE mdr_CustomObjectB__c = 'a0CG000000UW2LT')]) {     ... }   Rewriting the code with two seperate queries instead of one with subquery solves this:  SELECTIVE  List<LinkerObject__c> linker = [SELECT mdr_CustomObjectA__c                                  FROM LinkerObject__c                                  WHERE mdr_CustomObjectB__c = 'a0CG000000UW2LT']; if(!linker.isEmpty()) {                                 for(CustomChildObjectA__c a : [SELECT TextField__c                                    FROM CustomChildObjectA__c                                    WHERE mdr_Parent__c IN :linker]) {        ...    } }   In the system there are only a handful of LinkerObjects__c so the inner query is not only using an autoindex MDR filter but also return very few results.   Few data, only auto-index-filters, and extra selective subquery. How can this be non-selective??  This is the result of the query plan:


Caption out of float error when using caption

I'm adding captions for pictures but it shows this error :      \caption outside float. }   My code is like this    \begin{center}     \href{http://m.technologijos.lt/cat/7994/article/S-18917}{         \includegraphics[scale=1]{2}\\         \caption{Pav. 2}     } \end{center}   What is wrong here and what i should fix ?


I'd like to set ssh_config so after just typing ssh my_hostname i end up in specific folder. Just like I would type cd /folder/another_one/much_much_deeper/.  How can i achieve that?  EDIT. It's have been marked as duplicate of "How to ssh into dir..." yet it is not my question.  I know i can execute any commands by tailing them to ssh command. My question is about /ssh_config file not the command.


High compressed memory usage in Windows 10

I've been having problems on Windows 10: periodically I get a "low memory" warning. A lot of the Super User questions on this topic talk about driver memory leaks, but as I'll explain below mine doesn't fit the criteria found with those. What normally happens for me is my page file gets to about 70-80 GB in size as my "System and Compressed" memory grows. Eventually I start getting low memory warnings until I reboot, and then I'm good again for 5-8 days.  There are a lot of people who complain about System & Compressed memory growing to the point where it causes problems, but unfortunately the common cause (driver memory leak) in those doesn't appear to be immediately the problem for me.  Firstly,  covers a common problem. However, note that a key indicator in that scenario is a high "Non-Paged" memory usage. In my scenario, non-paged memory is not being used that much; I have 16 GB of memory, and I can have 8-9 GB of "System and Compressed Memory" and less than 1 GB of non-paged memory.  The question I linked to suggested utilizing the PoolMon tool. I have done that. The high Nonp processes I've observed have been those with the tag "Thre" and "Py28" and from what I can tell these are not drivers (most Q&A on high system memory usage in Windows 10 will point you to a driver leak).  Another symptom of my issue is that the longer the system is left on, the larger the pagefile gets. For example, before the last reboot the pagefile got to be about 60 GB in size. Also note that I see on my Task Manager screen "Committed" values regularly in the "12.3/50-60 GB range." I have no idea if that is normal or not. But it would at least seem "weird" to me for my page file to get so large.  Edit: Let me make clear what I'm asking here. I am asking, "How can I tell what application is using so much of my system's memory when it appears that System & compressed memory is obscuring the root memory hog from me." Note that again, I have a pagefile that gets up to 80 GB or so in size and NO single application has high memory usage, only the "System and compressed memory" system process. Under older versions of Windows I knew how to tell what applications were using so much memory, but NONE show abnormal memory use now. I don't know if this is because System and compressed memory is "being helpful" and helping manage the memory so the system can run for much longer without running out of it, or what, but I know that I'm running out of memory on my system and no application EVER shows abnormal memory usage in task manager. I'm asking how to find out what is causing this. The closest I've found to an answer for this suggests using PoolMon and looking for an offending driver using large amounts of non-paged memory, but unlike people who have had driver memory leaks, my non-paged memory usage is never very high at all, and no drivers are listed as high memory users when I ran PoolMon.


Does changing your Compute Device, change all computes of Blender?

So, I have recently moved from using Blender, on my family's Nettop PC, to my personal, gaming PC. And with this move, came to option to use CUDA instead of CPU.  Which leaves the question, if I move to CUDA, does that change all computing, for like physics baking, or only for rendering?  Just a nooby question that I wanted to know, and yes, I know you can specify GPU rendering separately.


Can anyone please help me to understand the below code. I am not able to understand how we are  extracting value from map on visualforce page.  Actually i am trying to get the size of value list which is associated with respective key in map.              <apex:outputPanel >                 <apex:repeat value="{!attributeWrapper.mapAllAttributesLabel}" var="M">                     <div>                         <div>{!attributeWrapper.mapLabels[M].Name} </div>                         <div>                             <ul>                                 <apex:repeat value="{!attributeWrapper.mapAllAttributesLabel[M]}" var="attribute">                                     <li>                                     <p>                                         <apex:outputLink onclick="selectAttribute('{!attribute.attributeLabel.Label__c}','{!attribute.attributeLabel.Attribute__c}');return false;">                                            <apex:outputLabel value="{!attribute.attributeLabel.Attribute__r.Name}"/>                                         </apex:outputLink>                                     </p>                                     </li>                                 </apex:repeat>                             </ul>                         </div>                     </div>                 </apex:repeat>             </apex:outputPanel>    public with sharing class AttributeWrapper {      public Map<String, List<AttributesLabelWrapper>> mapAllAttributesLabel{       // some code to populate this map     } }   If i do:  {!attributeWrapper.mapAllAttributesLabel[M].size}   I get an error so how do i get the size of value list on VF page?


How to maintain and import self-made libraries

Over the years I've written some libraries. These libraries sometimes depend on each other.  As a result, the "tex" directory is structured as follows:  tex ├── library |   ├── library1.sty |   ├── library2.sty |   └── library3.sty ├── project1 |   ├── master.tex |   ├── chapter1.tex |   └── chapter2.tex ├── project2 |   └── article.tex └── project3     └── paper.tex   The libraries depend on each other. As a result, in every library that depends on another library, this is part of the header:  %library2.sty \ProvidesPackage{library2} \RequirePackage{../library/library1}   In other words, the library is imported from the "root of every project". This is not a good design choice. What if someone copies the libraries in the folder of the root of a project, or what if the folder "library" is renamed...  It is however reasonable the "active directory" still remains in the project root.  What can be done to resolve such library dependencies?


How to simulate artificial data for logistic regression?

I know I'm missing something in my understanding of logistic regression, and would really appreciate any help.  As far as I understand it, the logistic regression assumes that the probability of a '1' outcome given the inputs, is a linear combination of the inputs, passed through an inverse-logistic function. This is exemplified in the following R code:  #create data: x1 = rnorm(1000)           # some continuous variables  x2 = rnorm(1000) z = 1 + 2*x1 + 3*x2        # linear combination with a bias pr = 1/(1+exp(-z))         # pass through an inv-logit function y = pr > 0.5               # take as '1' if probability > 0.5  #now feed it to glm: df = data.frame(y=y,x1=x1,x2=x2) glm =glm( y~x1+x2,data=df,family="binomial")   and I get the following error message:      Warning messages:   1: glm.fit: algorithm did not converge    2: glm.fit: fitted probabilities numerically 0 or 1 occurred    I've worked with R for some time now; enough to know that probably I'm the one to blame.. what is happening here?


Equality of Cardinality of a Power Set to a Set of Functions

Let A be a set. Define D to be the collection of all functions f : A → {0, 1}. Prove that |P(A)| = |D| by constructing a bijection F : P(A) → D  I know the power set of A contains 2^(|A|) elements. To show that |P(A)|=|D|, I think I need to use CSB theorem.  From what I'm understanding, the set D would have values like {(a, 0),(a, 1)}.   How do I go about solving this problem? I would be very grateful if someone explained this to me or gave an answer.


Let $a, b, c$ be integers. Prove that if $\gcd(a,b)=1$ then $\gcd(ab,c) = \gcd(a,c) \gcd(b,c)$  First time asking here. I'm not sure what your policies are on general homework help but I truly am stuck.  So far I have shown $\gcd(a,c) \gcd(b,c)$ as an integer combination of $ab$ and $c$. So if I can show that $\gcd(a,c) \gcd(b,c)$ divides $ab$ and $c$ I can use the proof that if an integer $d$ is a common divisor of $a$ and $b$, and $d=ax+by$ for some $x$ and $y$, that $d=\gcd(a,b)$. However I don't really know where to start with this. Any help would be appreciated.


All the Environment variables have been deleted in my Win7 64bit

I have overwritten all the paths in environment variables. . How can i restore those variables back.


Cookies and JavaScript for teststackoverflow.com — legitimate?

Can someone authoritative explain what the cookies that teststackoverflow.com wants to set are for (tracking — I know, but tracking what, and what's wrong with the regular stackoverflow.com and is teststackoverflow.com part of the Stack Exchange infrastructure, and …).  And why does it think it needs to run JavaScript?


We have  $$ 1^3 + \dotsb + n^3 = (1 + \dotsb + n)^2 $$ as we can establish by induction. But why does this hold? Can we connect it to something else?


Can you describe how to convert some QUBO problem $$f(x_1, ..., x_n) = \sum\limits_{1 \le i < j \le n} \alpha_{i,j} \, x_i \, x_j$$ into its equivalent quantum circuits? Is it preferrable to start with the Ising formulation of the same problem (whose conversion from QUBO is explained )?


What is the difference between Map myMap = new HashMap and HashMap myMap = new HashMap?

New to Java, when I want to initialize a HashMap. I can find these two solutions:   Map<String, String> myMap = HashMap<String, String>; HashMap<String, String> myMap = HashMap<String, String>;   I know Map is an interface, and HashMap implements it. But why we have two here? and what's the benefit for each of them?


Aligning underbraces in two different length terms

The code I have written currently is: \begin{equation} \label{eqn:fullwavefunction}     \psi\textbf{(r}) =\psi_s(\textbf{r}) + \phi(\textbf{r}) =\underbrace{e^{ikz}}_\text{incident wave} +  \underbrace{f(\theta,\phi)\frac{e^{ikr}}{r}}_\text{scattered wave} \qquad r\gg a \end{equation}  This corresponds to a TEx output of:  However I would like to alter it so that the brackets underneath my two terms are aligned with one another and the same for the texts 'incident wave' and 'scattered wave'. Any help would be great


How do I greet someone in a different timezone when my morning is his evening?

I am in Nepal and my father is in America. When we talk with him it is our morning and his evening. Now how can I greet him and how can he greet me saying, where one would typically say 'good morning' or 'good evening'?


Please add a link to meta.whatever.stackexchange.com on whatever.stackexchange.com

There's a link to "hot topics" on the right, but those link to individual posts, not to the list of posts. And there's a link to the general meta.stackexchange.com site (though it's not very prominent), possibly leading people to post questions there that might better be answered on the individual site's meta.  And of course by "whatever" I mean "any old Stack Exchange site, such as gaming.stackexchange.com or android.stackexchange.com", not literally "whatever.stackexchange.com"!


Is the word "on" pronounced like /ʌn/ or /ən/ instead of /ɔn/ when it is unstressed?

Is the word "on" pronounced like /ʌn/ or /ən/ instead of /ɔn/ when it is unstressed in an American accent?


How to round off to 2 decimal places for double variables?

For the shipping fees and sub total, I have declared it as double. However     they just display an amount of 25.0 or 128.0 with just one decimal. I wish to display 25.00 or 128.00 instead. How should I modify my code?  @Override protected void onResume() {     super.onResume();      // Refresh the data     if(mProductAdapter != null) {         mProductAdapter.notifyDataSetChanged();     }      double totalweight = 0;     double shippingfee = 0;     for(product p : mCartList) {         int quantity = ShoppingCartActivity.getProductQuantity(p);         totalweight += p.weight * quantity;         shippingfee = ShoppingCartActivity.getShipping(totalweight);     }      double subTotal = 0;     for(product p : mCartList) {         int quantity = ShoppingCartActivity.getProductQuantity(p);         subTotal += p.price * quantity;     }     if (subTotal >= 150){         shippingfee = 0;         subTotal += shippingfee;     }     else{         for(product p : mCartList) {             int quantity = ShoppingCartActivity.getProductQuantity(p);             totalweight += p.weight * quantity;             shippingfee = ShoppingCartActivity.getShipping(totalweight);         }         subTotal += shippingfee;     }     TextView productPriceTextView = (TextView)      findViewById(R.id.TextViewSubtotal);     productPriceTextView.setText("Subtotal: RM" + subTotal);     TextView productWeightTextView = (TextView)      findViewById(R.id.TextViewSubweight);     productWeightTextView.setText("Shipping Weight: " + totalweight +" kg");     TextView productShippingTextView = (TextView)      findViewById(R.id.TextViewShipping);     productShippingTextView.setText("Shipping Fee: RM" + shippingfee); }


cant't delete duplicate word in python array

i am trying to delete duplicate words from python, everything works, but "Kate" word is still duplicated. help me   def custom_function(list): sia = [] for item in list:     sia.append(item.capitalize())  for word in sia:     while sia.count(word) != 1:         sia.remove(word)         if sia.count(word) == 1:             break   return sia    unknown_list = ["toby", "James", "kate", "George", "James", "rick", "Alex",  "Jein", "Alex", "Alex","George", "Jein", "kate", "medelin"]  print(custom_function(unknown_list))


I'm making a beamer presentation with lots of text in itemize. How to tell latex to move the text to next slide, if the text does not fit the current one? (of course, without creating a new slide)  Also, the apparent "duplicate" is about tables, and the answer did not help.


character "5" repeated in text fields, and system freezes

I am running Ubuntu 15.10, with the latest updates.  When I type in a text field (google search, type name of file, etc..) the number 5 gets typed on its own and it keeps repeating until I press ESC and when I try to continue typing the number 5 resumes filling in the text field.  I have tried to set the keyboard repeat to zero, but does not help.  This does not happen all the time, sometimes if I shut down the computer it then behaves normally when I restart it, other times the computer becomes useless because I cannot type in any of the text fields.  Thanks Sal


Does a bounty stay with a question if it is migrated

If I put a bounty on a question and it was migrated to another SE site, what would happen to the bounty? Would it stay on the question even though it had been migrated? Or would it just disappear?  Or is it the case that a question cannot be migrated if it still has an activate bounty on it?


Stop windows from shifting order in Ubuntu Dock

Say I have two Chrome windows open like this:   It seems that the most recently used window always appears on top. In other words, the "Apply Digital Signatures" was the window I had open last. If I were to switch to the window showing the new tab, then the order in which the windows are displayed in the task bar suddenly changes. Is there a way to keep them from shuffling around? I'd like to be able to order them however I want, like tabs in a web browser. (I'd also like to put them across different workspaces.)


Find the limit of $$b_{n+1}=\frac{1}{3}(2b_n+\frac{5}{b_n^2})$$ Using AM-MG inequity, Where $b_1>0$  I can show that the limit is $\sqrt[3]{5}$ by solving $$L=\frac{1}{3}(2L+\frac{5}{L^2})$$ Then I will need to show that it is monotonic increasing/decreasing, but how can AM-MG can be used here?


Is $\bigcap_{i=1}^{\infty}X_i$ nonempty and connected?

In this post:  they threat the case when every connected subspace is also closed and $X$ is compact.  Is there any related proof about general non compact and non closed connected subsets?  If not are there any counter examples available? I mean a nested sequence of nonempty connected subset such that the intersection is not connected. Thanks in advance.


I've got a Windows 10 ISO that I burned on a USB stick using these instructions:   fdisk -l (my usb is /dev/sdb) umount /dev/sdb Use gparted to format into FAT32 dd if=/path/windows10.iso of=/dev/sdb bs=4M   But when I try to boot from the USB, it doesn't work.  I have checked the BIOS and it's by default to boot from USB (I can boot from my Debian and Ubuntu USB but not from the windows one).  Can't dd burn windows ISO?


Early 2015 MacBook Air and two external monitors: how to do it and maximum resolution?

I have an Early 2015 13" MacBook Air with Intel HD Graphics 6000 1536 MB. I'm trying to figure out what its capabilities are in terms of connecting two external monitors.  First, if I just used the two external monitors and did not use the MacBook Air's built-in monitor, what is the maximum resolution I could run both external monitors at simultaneously? For example, could they both do 1080p resolution, or perhaps higher? And does it matter whether I use the built-in monitor? (I've scoured the internet looking for information about this but haven't found anything so far!)  Second, is there a device I can use just for connecting two external monitors via DVI, HDMI, or DisplayPort to the MacBook Air's Thunderbolt 2 port, other than an expensive general purpose Thunderbolt 2 dock like   ? I should add that I'm not interested in using devices that connect to a USB 3 port and use a DisplayLink driver.


How can I use my native calendar in Drupal? I set Drupal to use Farsi and set Asia/Theran as default location, but the month names and years are still from the Gregorian calendar, even if they are translated in Persian.  Is there any coding method to use a calendar that is not the Gregorian one?


Creating simple citygml 3D models based on 2D shapefiles (alkis) shp2gml using Python?

How can I create a simple LoD1 citygml-model using Python?


How to delete an element from an array in C#

Lets say I have this array,  int[] numbers = {1, 3, 4, 9, 2};   How can I delete an element by "name"? , lets say number 4?  Even ArrayList didn't help to delete?  string strNumbers = " 1, 3, 4, 9, 2"; ArrayList numbers = new ArrayList(strNumbers.Split(new char[] { ',' })); numbers.RemoveAt(numbers.IndexOf(4)); foreach (var n in numbers) {     Response.Write(n); }


I have a large .cls file I'm working with, so I don't know that I can provide a MSE, but here's my question.  In my code I have:  \theoremstyle{plain}  \newtheorem*{theorem}{Theorem}  \newtheorem*{proposition}{Proposition}  \newtheorem*{lemma}{Lemma}  \newtheorem*{corollary}{Corollary}   as well as:  \let\oldend\end \renewcommand{\end}[1]{\IfEqCase{#1}{{}{\oldend{\@currenvir}}}[\oldend{#1}]}   I am using the xstring package for the IfEqCase, I'm not sure which package the theoremstyle is coming from. In any case, the goal was to create an \end{} that would simply end the current environment, if an input wasn't specified.   Interestingly, (to me at least), when I try to type: \begin{proposition} \end{} it gives me the error ! \LaTeX Error: \begin{proposition} on input line 6 ended by \end{proposition}.   Given this information, does anyone know what's going on? I figure it must be someway that \newtheorem creates environments, but I also don't have any faith in my judgement.


how to display an image at a specific location in LaTex?

I've imported an image but it doesn't display where I put the code.  It shows up halfway down the next blank page.  Here's the code I am using.  \usepackage{graphicx} \begin{figure}  \centering \includegraphics[scale=.5]{sandwich theorem.PNG} \caption{The Unit Circle \label{fig1}} \end{figure}   How do I get it to display where I put the code?


I am a bachelor student and I have a question going round my mind about the universe. Every one says that the universe is ever expanding and it is also said that the vast possible space is also the universe. So my point is some empty space is required for the universe to expand. Then what do we call that space? Hope someone will kill my curiosity!


When do I run "apt-get update" on Ubuntu 18.04 LTS? Is it ever necessary under Long Term Support?  After reading the suggested duplicates I don't believe my question is a duplicate. I already know what apt-get update does, but that wasn't my question.


It would be nice to create an association between tags and a chat, so that when you are viewing questions for a particular tag you get a recommendation for a relevant chat room. Similar to how the chat rooms are displayed in the right column on meta.  For example, with the WPF tag you might be shown the C# and WPF chat rooms


MLE for normal distribution with same mean and variance/standard deviation

Could someone please let me know how to find the MLE of $\theta$ when we have a random sample from pdf $N(\theta,\theta^2)$ and from pdf $N(\theta,\theta)$?   I found an old thread that referred to  book but the author does not provide the steps.  Thanks in advance!


Do all algabraic recursive functions have an equivalent non-recursive closed form function?

Given that we have a recursive function defined as $\begin{matrix} f_{0}=0 \\  f_{n}=f_{n-1}+1 \end{matrix}$ We can come up with a related non-recursive closed form function defined as $g(x)=x$ Where for every value of $n$ $f_{n}=g(n)$ Do all recursive functions defined with $\begin{matrix} f_{0}=\text{an integer} \\  f_{n}=\text{an algebraic function(1)} \end{matrix}$ (1): where said function involves only algebraic operations, like, addition, subtraction, multiplication, and division, as well as fractional or rational exponents have such a related non-recursive closed form function $g(x)$? I'm not looking for how to find $g(x)$ if it exists, I`m just wondering if one always exists.


using c# how can I extract information about the hard drives present on the local machine

I'm looking to get data such as Size/Capacity, Serial No, Model No, Heads Sectors, Manufacturer and possibly SMART data.


Storing foreign language characters in mysql resultes in question marks

I am storing non-English characters in a MySQL data base for example: الجزائر  Unfortunately these characters get stored in my database and get displayed as questions marks like this:     ??????   I am using CodeIgniter active record as my Database abstraction layer and I have my database collation set as utf8_unicode_ci.  How can I store the characters properly using MySQL?


In the movie Pulp Fiction, there is always talking like  Don’t do nothing stupid. I ain’t eatin’ nothin' ain’t got sense enough to disregard its own feces.  They all seem odd to me, like Don’t do nothing stupid, it is Do something stupid in my mind, which makes it pretty strange, so it must mean Don't do something stupid, but why is it ? For the second sentence, it is a man explaining why he doesn't eat pigs and pigs live in a dirty place. It must mean I am not eating something (which) has not got sense enough to disregard its own feces. Same problem as the first sentence. Why double negatives doesn't become a positive? (It's appreciated if someone could inform me any grammar faults in what I was typing as a English learner)


Is there a word(or a combination of 2 words) that describe someone who advances his career using solely underhandedly social relationships?

I was thinking about social chameleon but it may be a more accurate word(or word combination) for that.


Can you cast spell while using "Polymorph" with sorcerer's "Subtle Spell"

The  is kind of elusive about this:       The creature is limited in the actions it can perform by the nature of its new form, and it can't speak, cast Spells, or take any other action that requires hands or Speech. (5th Edition SRD, p. 169)      We were in an arena doing some gladiator fights and one of the foes, controlled by the DM, was a sorcerer.    My DM took it this way: spells don't require hands or speech while casting a Subtle Spell, so he could transform his character into a Giant Ape with polymorph, buffed with Mage Armor, and kept counter-spelling me since I was the only caster in the fight.    I think this is the wrong way to interpret the whole thing, but I am running out of proof.   Here's the question: Who is wrong and why?    I searched a lot about the topic, but couldn't find anything. Was it included in an errata I could not find?


How can I enable in 2.8 an overlay of an object's local coordinate system?

I would like the local coordinate system of an object to be drawn on the object, just like with empties. Is there a way to enable this?


How do students respond to the "roll call" and how do you pronounce it?

I have two questions.  In the UK, to do (or is it read?) a roll call is commonly referred to as "calling out the register". It's been so long since I was a child that I'm not absolutely sure how students responded. I think it was "Present, miss/sir"  I also seem to remember students just raising their hands. Are there different responses in the rest of the English speaking world?  Secondly, I am experiencing difficulty in pronouncing roll call. I can say each word separately without any trouble but when I join the two together it sounds as if I'm saying "rolkol"; "rolekol" or "rol kol" I've looked in  and  but neither have the pronunciation. Should I pronounce roll in "roll call" as /rəʊl/ or /roʊl/?  EDIT  It seems responding to the roll call with "present" has become dated both in the UK and the US whether it holds true for Canada and Australia is unknown. Apparently, British students responded with "Yes, miss/sir" until the 70s but now the simple, "Here" is heard on both sides of the Atlantic. The Longman Contemporary English Dictionary, claims that  is old fashioned in the UK, but I wonder if that really is the case, and whether in the US "calling the roll" is becoming dated as suggested by the Google Ngram chart in @bib's answer.


Pasting from clipboard to vi-enabled zsh or bash shell

I'd like to be able to paste from the system clipboard (or text selection) into my "vi-like" shell prompt using the keyboard. I normally use zsh and sometimes bash. In both cases, I have the shell set up with vi-like behaviour (bindkey -v / set -o vi).   In vim, the behaviour I'm looking for is available with the key sequence "+p. This particular key sequence doesn't work as expected in a vi-enabled shell prompt, though. Is there any way to either enable this or a similar behaviour, using keyboard only, while remaining with vi-like keybindings in a zsh or bash shell prompt?  -- edit --  Usage case: I often navigate between Firefox with the , a terminal emulator and vim itself - using the  window manager with custom keys to move around. All three programs have vi-like keybindings, which is very efficient (for "finger memory") so it would be ideal communicate text between them using vim syntax (or a very similar syntax) only.


error downloading libsane-dev message reads:

Some months ago my scanner stopped working with the message that I need to install driver software.  My printer is a HP Officejet 6210 All-in-one.  So have attempted to load HPLIP 3.18.6 but get the error message:  The following packages have unmet dependencies.  libsane-dev : Depends: libsane (= 1.0.25+git20150528-1ubuntu2.16.04.1) but 1.0.25+git20150528-1ubuntu2.16.04.2 is to be installed E: Unable to correct problems, you have held broken packages.


Made a mistake on check need help to fix

I wrote a check and put the amount in the pay to order spot. Can I just mark it out, put the name in the spot and finish writing the check?


Do two beams of light attract each other in general theory of relativity?

In general relativity, light is subject to gravitational pull.  Does light generate gravitational pull, and do two beams of light attract each other?


The difference between the algebraic torus and the geometric torus

I know that the donut-shaped geometric object in $\mathbb{R}^3$ is homeomorphic to a square with identified opposite sites. However, while the latter has a clear symmetry between two dimensions, the former doesn't (as an idea to formalize this, I would think of the fact that you can put a string through the donut hole, and the string then identifies one direction of the two).   Just as I was writing this question, I saw a similar question,  , and a comment there says that representing the torus in $\mathbb{R}^4$ in $\mathbb{R}^3$ instead is what breaks symmetry. What I wonder is how this symmetry can be described in geometric terms? That is, which quantity tells us that one of the torus manifolds in $\mathbb{R}^3$ and $\mathbb{R}^4$ has some symmetry and the other doesn't? If you don't agree with my thoughts about symmetry, what other differences are there between the two?


How many random samples needed to pick all elements of set?

If repeatedly picking a random element from a set, what is the expected number of times I'd have to pick before seeing all the elements of the set?  Edit: when picking an element, it is simply counted and not removed from the set, so it can be picked again.


When is the image of a Functor a category

Is the essential image of a fully faithful functor always a category? If not is there a counterexample?  The answer in  does not apply in this situation: the functor there is not full. This question is not asking why the image of a functor is not a category, but it is asking when it is a category.


How to distinguish between a pure resistance R and circuit whose equivalent reactance is R (when in a black box)?

We were given the following question in our circuit theory class:      Find the relation between \$R,L,C\$ such that the net reactance across   terminals \$A\$ and \$B\$ is \$R\$.          – Schematic created using   I followed the generic method (equivalent parallel reactance):  $$\frac{1}{R}=\frac{1}{R+j\omega L} + \frac{1}{R+\frac{1}{j\omega C}}$$ to get the required relation (after eliminating \$\omega\$).  Upto that is okay. But I'm confused about something:  Suppose the system is inside a black box, with only terminals \$A\$ and \$B\$ outside. In that case how can we possibly distinguish between a black box containing this circuit vs. a black box which contains only a resistance \$R\$?


Cannot install R-base in Ubuntu 18.04 - Unable to correct problems, you have held broken packages

I am trying to install r-base using the following commands:  sudo add-apt-repository ppa:marutter/rrutter3.5  sudo apt-get install -y r-base  sudo apt-get install -y gdebi-core   However, this happens:  The following packages have unmet dependencies:   r-base : Depends: r-recommended (= 3.5.1-1bionic) but it is not going to be installed E: Unable to correct problems, you have held broken packages.   Do you have any recommendations?


What is the difference between 1N4001 and 1N4007 other than their maximum reverse voltage?

I compared 1N400x diodes . As far as I see, all of their properties are same other than their maximum reverse voltages.  Their   maximum current recovery time reverse leakage current capacitance   are the same.  It looks like 1N4007 is the super version of all other 1N400x diodes. So, why would one produce 1N4001...1N4006 diodes, and why would one buy them? If 1N4007 does the job alone, then why are the other versions still in the market?


The machine that I'm currently using is an extremely slow netbook. Whenever I go to change user preferences in Blender, it stalls out. What I need to do is activate the "emulate 3 button mouse" checkbox. Is there a way to do this via console/script?


An online person claims that they can't leave Ghana unless they fly out first class. They already have $3000 and claim that isn't enough to buy a ticket and leave. Is this legit?


PyQGIS getting dictionary for each feature of layer with their attribute values

I need to obtain, for each feature of a layer, a dictionary with the attribute names and their values using PyQGIS. I can get all the attributes of the layer using indiv = QgsProject.instance().mapLayersByName('Individuos')[0]  for feature in features:     value = feature[field.name()]     attrs = feature.attributes()     print(attrs)  But what I need is to create a dictionary with field names as key and their value for each feature.


Does every countable well-order inject into the real numbers?

It is easy to prove that $\omega_1$ does not have an order-preserving injection into $(\mathbb R, <)$: to each $\alpha \in \omega_1$ we could assign the interval between the image of $\alpha$ and $\alpha + 1$, and this gives uncountably many disjoint open intervals in $\mathbb R$, contradicting its separability.  Intuitively it seems to be that if $\alpha < \omega_1$, there should be an order-preserving injection into $\mathbb R$, but I am having trouble constructing it. If we have $\alpha \to \mathbb R$, we can compose it with a homeomorphism $\mathbb R \to (0, 1)$, and find $\alpha + 1 \to \mathbb R$ by sending $\alpha$ to $(0, 1)$ and $\{\alpha\}$ to 2. However, the limit step is more difficult: if $\lambda < \omega_1$ is a limit, then it is a limit of countably many well-orderings which inject in an order-preserving manner into $\mathbb R$, but you cannot expect these to be "compatible" in a way obvious to me.  Is there a way to make this (or another argument) work? Or are there countable ordinals with no order-preserving injections into $\mathbb R$?


where is the “Enable Offline Cache Mode” in Chrome 38?

Looking for a way to work offline (when in the train...), reading my already open Chrome tabs. Too often do I loose the content of these tabs because of Chrome trying to refresh it... which inevitably ends up with a no network error page.  Found  superuser similar question and  Chrome team developer blog post. Both mention looking in chrome://flags for the “Enable Offline Cache Mode” property and switch it to "enabled". Trouble is that may have been true for Chrome 35 (mentioned in blog post), but property no longer exists in 38.  Similar looking properties are: - Enable Offline Auto-Reload Mode - Enable Offline Load Stale Button - Only Auto-Reload Visible Tabs  Is one of these the new "Enable Offline Cache Mode”?


While updating on Ubuntu 16.04 I am getting the error   E: Failed to fetch http://ppa.launchpad.net/s-lagui/ppa/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found   Can anyone help me to find out what it is?


Is it ok to use Code Sample function in editor just for highlight?

Nowadays I see lots of questions using code sample display for highlight, not really on code samples.  This is an example how it looks.  I see comments about they are ok to use, and some other comments saying reverse. Is it ok to use them like that?


so I've successfully merged my 2/3 partitions into one and so now I have 2 partitions left, the one that I just merged cannot merge into my primary partition. It doesn't come up with the delete volume option in order for me to merge but only shrink volume. I've tried the Diskpart command prompt to try and force delete it but its jut kept on saying it was in use which it isn't. 32win7 is my primary and I just merged partition C and D together. thanks for the help  Primary Partition is 48gb and Logical/extended drive is 250


Giving ownership of the directory to the apache user?

I have installed wordpress on LAMP.  As I am new one to Ubuntu. So, I Used this online tutorial    But when I am trying to give ownership of the directory to the apache user it's not working I am giving the following commands   sudo chown admin:www-data /var/www -R  sudo chmod g+w /var/www -R   "admin" is the name which I choose for my wordpress database user. Can anyone please guide me through this?


I'm trying to run a minecraft server on my unRAID server.  The server will run in the shell, and then sit there waiting for input. To stop it, I need to type 'stop' and press enter, and then it'll save the world and gracefully exit, and I'm back in the shell. That all works if I run it via telnetting into the NAS box, but I want to run it directly on the box.   this is what I previously had as a first attempt:  #define USER_SCRIPT_LABEL Start Minecraft server #define USER_SCRIPT_DESCR Start minecraft server. needs sde2 mounted first cd /mnt/disk/sde2/MCunraid screen -d -m -S minecraft /usr/lib/java/bin/java -Xincgc -Xmx1024M -jar CraftBukkit.jar   MCunraid is the folder where I have the Craftbukkit.jar and all the world files etc. If I type that screen line in directly, the screen does setup detached and the server launches. If I execute that line from within the script it doesn't seem to set up a screen  for stopping the server, I need to 'type' in STOP and then press enter. My approach was  screen -S minecraft -X stuff "stop $(echo -ne '\r')"   to send to screen 'minecraft' the text s-t-o-p and a carriage return. But that doesn't work, even if I type it directly onto the command line. But if I 'screen -r' I can get to the screen with the server running, then type 'stop' and it shuts down properly.  The server runs well if I telnet in and do it manually, just need to run it without being connected from my remote computer.


What are some questions that you can ask your prospective Ph.D. supervisor during interview?

I have an interview with a professor for a Ph.D. position in the US next week. As I was going through the possible questions that a professor can ask, so I was wondering what if they ask me if I have any questions regarding working in that specific lab? I mean yes I can ask some basic questions (which may be irrelevant too). As there are so many people from academia, what you usually expect a candidate to ask? What can be a reasonable and valid question?


I have 11 accounts under my network profile, but I've noticed only the top 2 (in terms of rep) show on the Reputation graph.  Show all accounts display or is there a particular reason only showing some accounts?


Dealing with NAs in Poisson Regression estimators

I am trying to fit a Poisson regression in some soccer matches. I want to be able to predict matches of the first league for a new season, which means that there will be some new teams that have been promoted from last seasons second league. Hence I am creating a data frame with all matches from last year's league 1 and League 2, and then I am doing a Poisson regression. My problem is that there is a team whos coefficient cannot be estimated (NA). How can I overcome this?  My code:  prepare_data =  function(dataframe) {      dataframe = dataframe[c("HomeTeam", "AwayTeam", "FTHG", "FTAG")]    dataframe.temp = dataframe[, c(2,1,4)]     names(dataframe.temp) = c("HomeTeam", "AwayTeam", "Goals")     dataframe = dataframe[c("HomeTeam", "AwayTeam", "FTHG")]   names(dataframe) = c("HomeTeam", "AwayTeam", "Goals")     dataframe = rbind(dataframe, dataframe.temp)     dataframe$Home<- rep(c(1,0), each = nrow(dataframe) / 2)     dataframe  }  # try to train model using two leagues mydata3a <- read.csv("https://www.football-data.co.uk/mmz4281/1718/E0.csv", header = TRUE, stringsAsFactors = TRUE) mydata3b <- read.csv("https://www.football-data.co.uk/mmz4281/1718/E1.csv", header = TRUE, stringsAsFactors = TRUE)  mydata3a = prepare_data(mydata3a) mydata3b = prepare_data(mydata3b)  mydata3 = rbind(mydata3a, mydata3b)  model <- glm(Goals ~ Home + HomeTeam + AwayTeam, family=poisson, data=mydata3)   and my problem is    AwayTeamWolves           NA    I cannot predict matches of Wolves.


I want to have the label arrows look that I get when using axis lines=center but I also want my x and y label to be on the outside of the plot and not inside the actual plot area. I have been looking through that huge manual for a while now but I am not making any progress. How can I get this?  \documentclass{memoir} \usepackage{pgfplots} \pgfplotsset{compat=1.8}  \begin{document}  \begin{tikzpicture} \begin{axis}[ymin=0,ymax=1,xmin=0,xmax=1, xlabel=$\mathit{foo}$, ylabel=$\mathit{bar}$, axis lines=center ] \addplot[color=black, fill=black, fill opacity=0.5] coordinates { (0.0,0.0) (0.05, 0.3) (0.1,0.5) (0.2,0.7) (0.3,0.8) (0.4,0.9) (0.5,0.92) (0.6,0.93) (0.7,0.95) (0.8,0.99) (1.0,1.0) (1.0,0.0)}; \end{axis} \end{tikzpicture}  \end{document}   I want the labels like this:    But the axes like this:


What's the default order of "for f in directory/*"?

I wanted to know if iterating over files in directory with  for f in directory/*   will have some default order of processing entries (file name, created date, etc.?), or is it non-deterministic?  It is probably obvious, but I couldn't find the information.


Evaluate $\large \int_0^1\left(\frac{1}{\ln x} + \frac{1}{1-x}\right)^2 \mathrm dx $ using elementary, high school techniques

Evaluate $\large \int_0^1\left(\frac{1}{\ln x} + \frac{1}{1-x}\right)^2 \mathrm dx $ $$$$ I was given this integral by a friend who saw this here on MSE. He asked me if I could solve it using the very basic tools I have. I was of course unsuccessful.$$$$  My short and unsuccessful attempt: $$\large \int_0^1\left(\frac{1}{\ln x} + \frac{1}{1-x}\right)^2 \mathrm dx $$  $$\int_0^1\left(\frac{1}{(\ln x)^2} + \frac{1}{(1-x)^2} +\frac{2}{\ln x(1-x)}\right) \mathrm dx $$ $$\int_0^1\frac{1}{(\ln x)^2}+\int_0^1\frac{1}{(1-x)^2}+\int_0^1\frac{2}{\ln x(1-x)}$$  The problem (apart from the fact that I don't know as yet how to attempt the third integral) is that the second integral (I think) diverges.  Could somebody please help me solve it using preferably only these: Integration by Parts, Integration by Substitution, Partial Fraction Decomposition or Differentiating under the Integral Sign?$$$$ Thanks so much in advance, and I'm truly sorry for the trouble I have caused.


How to disable screen time out for a specific iPad app?

Is it possible to stop an iPad from going to sleep only when a specific app is open, even if nothing is being clicked/played?


Error 404 not found while using command sudo apt-get update - PPA shimmerproject has no release file

I am getting an error while using the command :   sudo apt-get update   The error:    How can I solve it? since i am new to ubuntu i really dont know much so please help me


I'm a mathematician interested in abstract QFT.  I'm trying to undersand why, under certain (all?) circumstances, we must have $T^2 = -1$ rather than $T^2 = +1$, where $T$ is the time reversal operator.  I understand from the Wikipedia article that requiring that energy stay positive forces $T$ to be represented by an anti-unitary operator.  But I don't see how this forces $T^2=-1$.  (Or maybe it doesn't force it, it merely allows it?)  Here's another version of my question.  There are two distinct double covers of the Lie group $O(n)$ which restrict to the familiar $Spin(n)\to SO(n)$ cover on $SO(n)$; they are called $Pin_+(n)$ and $Pin_-(n)$.  If $R\in O(n)$ is a reflection and $\tilde{R}\in Pin_\pm(n)$ covers $R$, then $\tilde{R}^2 = \pm 1$.  So saying that $T^2=-1$ means we are in $Pin_-$ rather than $Pin_+$.  (I'm assuming Euclidean signature here.)  My question (version 2): Under what circumstances are we forced to use $Pin_-$ rather than $Pin_+$ here?


Three circles having centres on the three sides of a triangle

NOTE: I would appreciate it if you provided a hint and not the whole solution.  BdMO 2014 Nationals:     In acute angled triangle ABC, considering a portion of side BC as diameter a    circle is drawn whose radius is 18 units and it touches AB and AC side. Similarly,    considering a portion of sides AC and AB as diameters, two other circles are    drawn whose radii are 6 and 9 units respectively. What is the radius of the incircle    of ∆ABC?   The main problem with this  problem is that the figure is incredibly messy.So I drew one circle,and tried getting information from it.I noticed that if $O$ is a centre of one of the above (semi)circles,and if $O$ is located on $AB$, then $CO$ is an angle bisector.Therefore,if we connect all the vertices with the centres,their intersection would be the incentre.Then we need to drop a perpendicular from this point to get the inradius.But that hardly helps us.I have found some similar triangles in the figure.But that does not help me at all.  I have also tried backtracking.I tried to put myself in the problem-maker's shoes and tried to imagine what I would do if I had to create a problem like this.Unfortunately,I couldn't do it..  Any insightful comment,hint will be very much  appreciated.


Let $f$ be an entire function. Suppose that $f(z)=f(z+1)$ and $|f(z)|\leq e^{|z|}$ for all $z$. Prove that $f$ is constant.  I tried to use Cauchy estimate to show that the first derivative is zero. But it did not work as $R$ goes to infinity $|f'(z)|$ goes to infinity because of $e^{R}$ in the nominator. I have no idea about using the fact that $f(z)=f(z+1)$. Please help!


Let $C[0,1]$ denote the ring of continuous functions on $[0,1]$. Consider the maximal ideal $M_a =\{ f\in C[0,1] | f(a)=0 \}$ for $a$ $\in$ $[0,1]$. Is $M_a$ finitely generated?   Note: It may seem that $M_a = \langle x-a\rangle$ which is certainly not true because $ \vert x-a \vert $ is in $M_a$ but not in $\langle x-a\rangle$. Any ideas for solving this question?


How do I center an icon with a text within a span?

I have an icon and text next to each other in a span element.  I have tried using padding and margin on the icon and/or text. The padding applies to the whole row instead of just the icon itself which is about 1rem too high.    [Edit] I would like to see centered VERTICALLY:  Instead, the icon is a tad too high.     <span><mat-icon>arrow_left_alt</mat-icon>Drag workflow </span>


My account became administrator by default, but then I changed it to standard. From that instant, I'm asked for the root password  to upgrade software, for authentication and also to edit user settings.  How can I resolve this?


I just updated from iOS 7 to iOS 8, and I noticed that the built-in dictionaries, I previously used, aren't working. I had used American English, British English, and Apple Dictionary. Now, when I try to define any word, I get a "No definition found" error. The dictionaries I previously used show a blue circle (while all the others show the cloud download icon).  I tried to download a new dictionary, and I was able to use it. However, that was in another language.  How can I enable these dictionaries again?


Should I max every base until I reach to the maximum Town hall of any type?

Why does maxing out my base make me able to defend against attackers better. Should I max out at every Town Hall and how to get the loot required to max out my base?


When there are "More comments," often the thread is lost

When not all comments are shown, often only the start of the discussion and the end is seen, with some comments in the middle cut out. Often this makes the discussion incomprehensible. Please mark the place where comments are elided.


How to compute the integral $\displaystyle\int_0^\infty\frac{1}{\sqrt{2\pi t}}\cdot\exp\bigg({\frac{-a}{2t}-bt}\bigg)dt$

How to get the following for $a,b>0$? $$\int_0^\infty\frac{1}{\sqrt{2\pi t}}\cdot\exp\bigg({\frac{-a}{2t}-bt}\bigg)dt=\frac{1}{\sqrt{2b}}\cdot \exp\big(-\sqrt{2ab}\big) $$ The context for this identity is its use in computing the resolvent of Brownian motion in the stochastic calculus book by Le Gall (screenshot below).  I figured there had to be an elementary way to compute it, i.e. without using the fact Le Gall alludes to about the Laplace transform of the hitting time of Brownian motion. As is indicated in the comments, this is clearly a duplicate so I wouldn't object to its being closed for that reason.  Although maybe those who posted the excellent answers below should've been given the chance to migrate their answers to the post of which this is a duplicate, if they wish.


What were the rules for capitalising nouns in the 17th and 18th centuries?

It seems to have been common practice in the 17th and 18th centuries in English-language sources to capitalise the first letters of nouns, as in  At which Time he prov'd himself the Noah's Dove, that finding himself no Rest anywhere, was receiv'd again into his own Ark, and brought a peaceable Olive-Leaf in his mouth. —  (1685)  Most original sources I can find on the web have used modern rules for capitalisation, so I have a few questions:  Was the practice used for all nouns (Note mouth isn't capitalised in my quotation above.)? When did this practice begin? When and why did it end?


How to remove duplicate imagemagick icons

I see two imagemagick icons.     Can I remove them (or just one of them)?


Prove that GCD$(n^a - 1,n^b -1)= n^{GCD(a,b)} -1$

I used Euclid's theorem $a=bq +r$.   $n^a -1 = ((n^b)^q )n^r -1$ I don't know how to move forward.


Optics simulation software for iypt #12 question thick lens

(As I'm writing these I viewed previous posts about optics simulation)  me and some of my friends are working in . one of the problem is named "thick lens" which says:     A bottle filled with a liquid can work as a lens. Arguably, such a bottle is dangerous if   left on a table on a sunny day. Can one use such a ‘lens’ to scorch a surface?   As I'm going to simulate this I'm looking for a software that:   has different 3d shapes (for bottle) that can have different refraction indexes. has different kind of light source software gives energy and ray intensity charts on different parts of shape the time I'm gonna work on problem us not going to be more than one week. So ease of us and learning matters (not very important) not be very expensive


I am in search for Functional Analysis Books.  I need a book which have lots of elementary problems.  I mean it should force us to think more which will give a deeper insight for functional analysis.  To be precise, I need lots of problems like Is $A$ open in the space $\ell^1$ with respect to norm $\|.\|_2$. Find a counterexample to this statement and etcetera.  I mean it shouldn't ask us trivial questions. It should ask us questions which will force us to think more and more from functional analysis


How to change username and profile pic on Stack Exchange

I don't get any option in settings or elsewhere so I can change my profile pic and username. Why?


Proving Identity In Combinatorial and Algebraic Way

I need to prove the identity $$\sum_{k = 0}^{n} k^2\binom{n}{k} = n(n - 1)2^{n - 2} + n2^{n - 1}$$ in two ways : in algebraic way and combinatorial way.  About the algebraic way - I tried to find a formula to be placed in the identity that could help me solve the problem but without success. Combinatorial way - I couldn't find a "story" that is proof of identity.


how to get duplicate column values in comma separated


So I've been trying to create a mathematical model for an electric motorcycle and began to wonder about the maximum possible torque that could be supplied to the rear driven wheel without having the bike begin to lift up on one wheel.  I found ways to calculate this value online; however, the basic concept as to how the bike actually lifts escapes me.    My problem started when I began to think about what axis the bike will rotate about when it is doing the wheelie.  My first intuition was that the frame and front wheel, together, rotate about the rear axle.  But when I drew a free body diagram of the frame/front wheel system just at liftoff (see below) I made note that the only forces acting about the rear axle, point O, is the force of weight.  This means that an increase in applied torque and subsequently, the applied force Fa, should not effect the rotation about the rear axle.  I know that the applied force on the back wheel is indeed correlated with the propensity for a bike to wheelie, so I considered that the axis of rotation I was choosing was wrong.  If we take the free body diagram above and sum the moments about the center of mass, we would find that an increased applied force would in fact cause the solid body to rotate.  The problem with this understanding is that during rotation, the center of mass of the drawn system should actually rises relative to the surface the bike is moving across.  If the bike were to be truly rotating about its center of mass, then the back wheel would begin to dip below the surface of the road like you might see in a glitchy video game.    So I suspect that the bike is in fact rotating about the back axle, but I don't understand why, please help!  edit: I added the external torque from the back wheel to the frame, which would allow the bike to rotate about the back axle  edit 2:  I suppose that the torque acting on the frame via the engine should not effect the rotation as the movement of a motorcycle can be perfectly replicated by applying a force at the back axle.  A third possible axis of rotation might be the lowest point of the back wheel.