Let $p$ be a prime. Show that ${n \choose p}-\bigl[\frac{n}{p}\bigr]$ is divisible by $p$, for all $n\in \mathbb{N}$

Let $p$ be a prime. Show that $${n \choose p}-\bigg[\dfrac{n}{p}\bigg]$$ is divisible by $p$, for all $n\in \mathbb{N}$.    I could not attempt this problem at all. Please help. Thank you.  EDIT: Here $\bigg[ \cdot \bigg]$ is the greatest integer function.


Number of triangles in a regular polygon

A regular polygon with $n$ sides. Where $(n > 5)$. The number of triangles whose vertices are joining non-adjacent vertices of the polygon is?


I've programmed in a number of languages for two years now, I mean that I know how to design and implement a decent solution for a given problem.  However, bash is being a major headache to me, just nothing does work as expected—or even without errors.  All of the guides I've found were incredibly informal, not properly summarising its syntax or telling the most common errors you can make.  So what can you recommend me?


Why is $ 561 = 3*11*17 $ the smallest Carmichael number?

A composite integer n is a Carmichael number if the only Fermat   witnesses for $n$ are those $a \in \mathbb Z_n^+$ which are not   coprime with $n$. The smallest example of such a number is $561 = 3 ·  11 · 17$   I think I understand the definition, but I don't quite understand why is the smallest Carmichael number is the above mentioned number. Please clarify.


I was meeting a lot of people while I was working in London.  I met a lot of people while I was working in London.  What is the difference between them?  I'm not sure about these sentences.  How to clear them?  Please, explain it easily.


Compromised D7 Sites due to SQL Injection Security Bug "Drupal Core - Highly Critical - Public Service announcement - PSA-2014-003"

I have few websites running Drupal 7 and i upgraded them all on 16th October 2014.  Since 3 days we are monitoring the websites and we haven't seen any problem or evidence of our system being compromised.  I am wondering if there is anyway to identify if a Drupal 7 sites has been compromised?  It will be really helpful if we all post our views, any evidence of system being compromised and any action that could be helpful to make sure we are secure.


Appending data in PostGIS database with QGIS?

I 'm running postgis with qgis 2.6. I created a database and tables that i need to update with new datas provided with shapes. I cannot find how to insert them in table. All attributes both shapes and table are same. I don't despair to have an "easy" way instead of using an insert to command that i'm not sure to use correctly in postgis command.  I've tried the database manager but i only succeed in erasing all previous data in the table >_<  Window 7 64 bits Qgis2.6 Postgis1.5 Postgrsql 9.4


GPG and keyservers: how do I mark a key as unused invalid?

I while ago I uploaded my key to the MIT keyserver. Problem is, I lost my private key, and did not generate a revocation certificate. The key pair was generated with gpg < 2.1, so a revocation certificate was not created automatically either. To make matters worse, I set the key to never expire.  Can I create a new pair (with the same name and email), upload it to the keyserver, and somehow mark the older key as invalid?


how to install xubuntu 13.04 theme to Ubuntu 13.04

i would like to know how to install default xubuntu theme along with xubuntu default icon to Ubuntu 13.04.


pgfplots: Placing node on a specific x-position

I'm trying to put some arrows on the left and right side of the maximum of a curve. The arrows should point along the curve. My problem is that if I use the [pos=X] notation I don't know where I am in relation to the maximum. And if I use absolute coordinates the node is not sloped.   \documentclass{article} \usepackage{pgfplots} \usetikzlibrary{shapes.geometric} \pgfplotsset{compat=1.7}  \begin{document} \begin{tikzpicture} \tikzset{myarrow/.style=          {sloped,isosceles triangle,anchor=apex,fill=black,inner sep=2pt}} \begin{axis} \addplot [smooth] {-x^2}  node[pos=0.4,myarrow,rotate=180]{} %ok  node[pos=0.6,myarrow]{}; %ok  \addplot[smooth,green] {-x^2+2*x-4}  node[pos=0.4,myarrow,rotate=180]{}  node[pos=0.6,myarrow]{} %wrong side  node[myarrow,fill=red] at (axis cs:4,-12){}; %wrong rotation! \end{axis}  \end{tikzpicture}  \end{document}     Edit: Some remark about Jake's answer  Jake's code (naturally) works but    for my case it is a bit too complicated. Jake gets the correct rotation for the arrow by drawing a short path from x-1pt to x (cool idea). He gets the coordinates for this small path with intersections. But as my plot is based on a function I can simply calculate the values (e.g. with \pgfmathparse) and then draw the small path after the plot:  \path  (axis cs:3.99,-11.94012) -- (axis cs:4,-12) node[pos=1,myarrow]{};   The same can also be achieved by redrawing the plot but with a restricted domain:  \addplot[draw=none,domain=3.99:4] {\MyFunction{x}}  node[pos=1,myarrow,fill=yellow]{};  I also looked if there is a way to decide where I am relative to the maximum (so that I can change the rotation) and in theory it is possible: If I use the code found here  \pgfplots@metamax is known after the plot and can be used in calculations.


Is there a 'biblatex in a nutshell' guide out there? I'd like if someone explained to me the essentials on how to use biblatex (what lines I have to write in my document, which files I have to have, how many times and what I have to compile), so then I can go to  to customise it further.


I am looking for good ideas for implementing a generic way to have a single line (or anonymous delegate) of code execute with a timeout.  TemperamentalClass tc = new TemperamentalClass(); tc.DoSomething();  // normally runs in 30 sec.  Want to error at 1 min   I'm looking for a solution that can elegantly be implemented in many places where my code interacts with temperamental code (that I can't change).  In addition, I would like to have the offending "timed out" code stopped from executing further if possible.


I'm searching for nice predefined chapter headings. I've found the fncychap package, and seen that memoir has quite a few, too.  Do you know other packages that provide predefined fancy chapter styles?


Liouville integrability vs. separability

A system is integrable if the Liouville integrability condition holds or the Hamilton-Jacobi equation is completely separable.   The problem is, are the two the same actually? Namely, the one is implied by the other?


Travelling to India via Germany with 2 stops, do i need transit visa?

I have Indian passport and USA H1 valid visa, will be travelling US and my itinerary is Mumbai – Munich – Frankfurt – San Francisco. This route has two stops in Germany, Munich – Frankfurt is German domestic flight. I am not sure if I would need a Schengen or Transit Visa. I was going through few German and Indian consulate visa website but I am not able to get the correct info, specially below two statements are confusing. Could you please help me with this?    In these five airports in Germany you can stay at the International Transit Area without a visa: 1.  Cologne/Bonn 2.  Düsseldorf 3.  Frankfurt/Main 4.  Hamburg  5.  Munich  Airport transit privilege does not apply in the following cases and you will need to get a visitor visa if: You are transiting through two or more airports in the Schengen Countries


Mathematics Engineering: How do you prove the power rule?

Consider the real-valued function  $f(x)=x^r$ where $r$ is a real number.  (1) For what values of $x$ and $r$, is this function differentiable?  (2) How do you prove the power rule, when $f(x)$ is differentiable?  It would be nice if the proof is accessible to a 12th grade student.  EDIT: Perhaps, I have not been very clear about my question.  I am not satisfied with the "textbook proofs" I have seen.  Please established the existence (of the derivative) first before proving the power rule.  That is, please consider first question first.  This is the reason why I call the question a mathematical engineering question.  (If we can we bring high level math down to Grade 12 level, without loosing precision, then I call it good mathematical engineering.)


How to resolve BackgroundContainer.dll error on startup?

When I start my desktop it gives me an error about BackgroundContainer.dll.    How to get rid of it?  I found nothing when i started regedit.exe and searched (F3 or CTRL+F) for BackgroundContainer.dll


Git checkout is moving file from feature branch to dev branch

I have read the official git checkout documentation and some questions here and haven't found an answer to the behaviour I'm seeing.  Locally, I have a dev branch. From within the dev branch, I create a new feature branch  git checkout -b myBranch   Then, I add a new file  echo foo > myFile.txt   If I immediately go back to the dev branch  git checkout dev   the myFile.txt is already there, even though  1) I did not stage the file 2) I haven't merged the branches  My expectation is that any changes I make to the files while in the feature branch will not propagate over the other branches.  Why is this happening?


Execute batch & .exe files with Python Code

Is there a way to execute batch & .exe files with a Python Code ?   Because i try to write a programm what should execute a batch and later a .exe file at different paths.


Who's interpretation of terms is correct?

Background  My business teacher on his board wrote the equation $TP\div TM = P_m$ (In this equation, $T=\text{Time in years}$, $P=\text{Principle}$, $M=\text{Time in months}$, and $P_m=\text{Monthly Payment}$.) This equation is being used to calculate the monthly payment for a simple interest equation.    My teacher wrote the equation as $(TP)\div(TM)=P_m$ in other places on the board  My teacher says that the $\div$ operator separates the equation into two terms; $TP$ and $TM$. I think that the expression can be represented as a single terms; $\frac{TP}{TM}$ (And I was taught the separator of terms was a $+$ or $-$. Which of these interpretations is correct?  Edit: I know this is a rather trivial topic, but my teacher is very insistent and I am not one to just deny what my teacher says without knowing for sure.


How do I call a Windows shell command using VB6?

How exactly using VB6 can I can call any Windows shell command as you would from the command-line?  For example, something as trivial as:  echo foo


How do I move Ubuntu dock to bottom on Ubuntu 17.10 and later?

Just upgraded from Ubuntu 17.04 to Ubuntu 17.10.  Please help me to shift the side bar (aka Ubuntu Dock) to bottom.   I tried running the following command which used to work with older Ubuntu releases   gsettings set com.canonical.Unity.Launcher launcher-position Bottom   but it's not working.


Override inherited method as private in objective-c

I am creating a subclass of UIBarButtonItem, to provide some specific functionality.  The new class has an initializer, that is the only one that should be used when creating an instance of the class:  - (id) initWithSomeObject:(SomeObject *)param;   The problem is, all the initializers from UIBarButtonItem are still available, so I could create an instance of my new class using something like  MyCustomUIBarButtonItem *button = [[MyCustomUIBarButtonItem alloc]  initWithBarButtonSystemItem:systemItem target:target action:action];   or something else...  Is there a way to hide the initializers from UIBarButtomItem in my subclass, so that they cannot be used?


I am trying to customize a Sharepoint 2013 team site.  I created a copy of seattle.master and set it as default master page via context menu.  I added my custom CSS within head tages like so:  <SharePoint:Scriptlink runat="server" Name="https://sharepoint.abc.org/sites/the_new_abc_portal/custom/jquery-1.10.2.min.js" Language="javascript" />  works!  I added jQuery like so:  <SharePoint:ScriptLink language="javascript" name="/sites/the_new_abc_portal/custom/jquery-1.10.2.min.js" runat="server" Localizable="false" />  When I reload the page I get:        <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"><meta name="Robots" content="NOINDEX " />                 The link to jQuery is correct.  I now have a solution by which I simply add the normal script tag like so:    Works like a charm.  Now my questions:   Is there any objection against my "fix" Why doesn't it work in the first place?


Move existing Ubuntu 13.04 to a virtual machine on Windows 8

I currently have dual boot Windows 8 and Ubuntu 13.04 on a Dell XPS 13 laptop. Ubuntu has a major problem with display drivers (screen backlight) that I haven't been able to solve, so I'm looking for alternatives. I would like to use some kind of virtual machine program on Windows that will boot up my existing Linux install into a fullscreen window. I am after one of two scenarios:  Something that would mount and boot my existing Linux install from where it is, so I can still dual-boot if required. This seems like the cleanest option, and would make life very simple indeed.  A way to make a copy of EVERYTHING from my existing Ubuntu install onto a virtual machine, leaving me free to delete the Linux partitions, and use Ubuntu via VM only.   Scenario 1 is preferred. Thanks for your help.


Verb or adjective for "working carefully on something for a lot of time"

Looking for a word (verb or adjective) to describe the process of working on something carefully for a lot of time. It should probably be something close to "ponder", but related to working process, not thinking.  Example: I have been working on this project for a lot of time and it's finally done.    Here either the phrase working for a lot of time should be replaced with a verb. Or for a lot of time should be replaced with an adverb.


Author-year citation with natbib and Springer's spbasic bibliography style

I found many solutions to similar problems here, but I still cannot solve this one: I'm using Springer's template like this:   \documentclass[twocolumn, natbib]{svjour3}       \usepackage{graphicx}  \usepackage{natbib}  ...  \bibliographystyle{spbasic}      % basic style, author-year citations  \bibliography{my_bibliography}   and I get an error: Bibliography not compatible with author-year citations.  I really cannot figure out what I'm doing wrong.


How to edit GRUB Default Operating System?

i'm using dual boot and i want to use windows 7 as the default operating system.So how can i change default OS of GRUB Boot loader?


How would I get a logic circuit printed on an IC?

Say I have designed a logic circuit. If I were to construct it, due to the cost of individual components as IC's, it would be very expensive (and tedious). Is there a way that I can get my circuit printed into an IC?  So far it seems from my research that companies don't like to print a single IC and would rather that you ordered thousands and pay a minimum fee of ~$10,000 which for my budget is out of the question.  The circuit I have now I estimate is around $600 which is still not within my budget (under $200).  Is there any reasonable way to do this? I can't imagine it is this hard for people to build their own (largeish) logic circuits.  Edit: I should add that this is a hobby and only one or so IC is needed.


Why do they separate some parts of PCBs through making wide holes?

I have seen several PCB that they have wide holes in some their parts (especially the supply of circuits parts). for example take a look at this picture:    and on the board:     Not sure but I think it is related to the noise, Is it correct? If so, it's not acceptable to me because other parts of PCBs aren't conductive then how it can transfer the noise? If so, how much it can be effective? And my last question is, do they have any special name?


Can Independent T-test be performed on data obtained on same people by 2 different investigator?

I am stuck with this question and a reasonable answer will be well appreciated.  Suppose a numerical data is obtained from the same people by two different investigators. However, we could not link the people, so the pairing is unknown. In addition, nor the investigators could get a hold of all people. For example, investigator 1 could take the measurement of 100 people whereas investigator 2 had it for 79 people. So there are some missing observations. Can I do an independent t-test with these two samples? Thank you in advance!


A site to migrate too broad questions from StackOverflow?

Since there are quite many questions with large number of upvotes being (correctly closed) as "too broad" - should there actually be a site where they could be migrated to.  Part of the problem might be that close votes for questions that are actually more "primarily opinion based" go to "too broad".


Consider the sequence $1,2,4,8,...,a^n = 2^n,...$ of all the powers of $2$. Prove that, given any digit $i ∈ {1,...,9}$, there exist infinitely many values of $n$ for which $a^n$ starts with that digit.  It only comes to my mind to use Poincaré's Recurrence Theorem, but I can not do that. Can anyone give a tip


how I can draw an skew cylinder (rotate around x axis) and fill it (in 3D tikz)?

I can draw the black part in the picture, but  I cant rotate with angle alpha and draw the red part and fill it. Also, it is obvious, two side of figure rotate, and one side is fix, and the other one just shift in the z direction.  my code:   change to:   \documentclass{standalone} \usepackage{tikz,tikz-3dplot} \begin{document} \begin{tikzpicture} \draw[->] (0,0,0)--++(5,0,0) node[right]{$x$}; \draw[->] (0,0,0)--++(0,5,0) node[above]{$y$}; \draw[->] (0,0,0)--++(0,0,8) node[below left]{$z$}; \draw[ultra thick] (4,0,0) arc[start angle=0, end angle=60, radius=4] --++(0,0,8.5) arc[start angle=60, end angle=0, radius=4]--cycle; \filldraw[ fill=blue, nearly transparent, ,looseness=.6](4,0,0) arc[start angle=0, end angle=60, radius=4] --++(0,0,8.5) arc[start angle=60, end angle=0, radius=4]--cycle; \end{tikzpicture} \end{document}


I don't want other administrator to change my password

I have one administrator account in my system which named as "admin". One more admin account called "test". I don't want test account to reset "admin" account and root account password in my system.  I have blocked sudo users by following command.  %sudo ALL=(ALL) ALL, !/usr/bin/passwd root,!/usr/bin/passwd admin admin ALL=(ALL:ALL) ALL   It's working on when executing this command as test user.  If test user tries   sudo passwd root or sudo passwd admin  It throws following error called      Sorry, user test is not allowed to execute '/usr/bin/passwd root' as   root on magesh-test.   But it's not working while executing the following command sudo passwd $root  How to block the test user alone in resetting the password?


Windows 7 File Explorer search not working

I can't use the Windows 7 File Explorer search successfully. If I enter a search string, for instance car in the search box, I just get No files found, despite obviously having several files that match the string (blue_cars.jpg, carrot.gif) in the current folder. I have edited the search options so that both file names and contents are searched, even if they are not indexed.  What am I doing wrong here?


Calculating the probability of seeing a shooting star within half an hour if we know it for one hour

The probability to see a falling star in the sky over the course of one hour is 0.64.  What is the probability to see it over the course of half an hour?


Bash: ./filename : Cannot execute binary file

I couldn't execute a fortran compiled code in ubuntu 11.10 32 bit.  Error message is   bash: ./filename : Cannot execute binary file.   I've installed the gcc and gfortran libraries too.  Could anyone help?  $ file um um: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped


I'm new to Stack Overflow and just received new privileges this morning.  Now I received three new notifications about additional privileges that I received, even though I don't think I've reached the reputation points level for them. At the moment I have 13 reputation points, and I recieved notifications for the following privileges:   Vote up Flag Posts Talk in chat   I tried voting up and it doesn't work (since I don't have the reputation points for it). What's going on?


Can a virus break out of a Virtual Machine and infect the host

I would like to download a file but I am not sure if the file has a virus in it, so I have decided to use a vm to access the website, the question now is this, assuming the file has some kind of virus in it, can the virus break out of the VM and then infect the host?


OnClick JS does NOT work with new elements in DOM?

So here is a question.  I have HTML  Callback   I have external Jquery-file (with Bootstrap.js included)  $(".callback").on('click', function() { var myModal = '

'; $(myModal).modal('show'); }); $("#callback").on('click', function() { //some actions });   So ".callback"-event works fine because that link we have in the current DOM. But "#callback"-event does NOT work. Maybe cos of that element appears after JS-file has loaded (seriously?).  Please, could anyone answer why "#callback"-event does NOT work?  Thanks a lot!


There are no tag bubbles when editing questions

When editing a question, hovering over the question's tags does not pop up the tag bubble.    As edits can involve re-tagging, being able to see the excerpt in the tag bubble would be really useful as a reminder of the exact tag usage.    It would make it easier to accurately determine if the tag is viable for that particular question or not. (I cannot remember them all, although maybe that's just because I'm getting old..).      I'm going to assume this is not by-design as I cannot think of a reason for not having this functionality. And I'm going with "bug" not "feature-request" because I am guessing this should already happen.


Why does my python dict become unordered?

I am using this to produce a plot of % of names starting with a certain letter over a span of years. When plotting (and printing) my diction (letter_d) the keys are disordered rather than being sequential like how they are added to the dict. Is there a way to fix this, I believe I am adding them to the dict in a sequential order. If not is there a way I can create connect the dots of my scatter plot in order to simulate the correct line plot?    import csv import matplotlib.pyplot as plt   start = 1880 stop = 1890 x = [] years = range(start, stop +1) print years letter_d = {} year_d = {} alphabet = ['Z']#,'C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z']  for i in alphabet:     letter_d[i] = 0  for year in years:     filename = 'yob' + str(year) + '.txt'     z = open(filename)           year_d[int(year)] = 0     letter_d[i] = year_d     c = 0     d = 0     for line in z:         y = line.strip().split(',')         y.remove(y[1])         c += int(y[1])         if i in y[0]:             d += int(y[1])         year_d[year] = float(d)/float(c)                     #x.append(y) #print year_d print year_d.keys() plt.plot(year_d.keys(), year_d.values()) plt.show()


What is the answer to the squirrel's second question in Candy Box 2?

I really need to know the answer to the second question from the Squirrel.  "That's right! Here's 20 candies for you. Now complete this sequence of letters and you'll get a new reward : S, E, I, D,          N, A, ?"


Is it possible to configure a catch-all (default) HTTPS Vhost on Apache 2.4? I currently have 4 domains, and an HTTP catch all but as soon as I try to add any sort of configuration my other vhosts break. Here is what my config looks like:  <VirtualHost _default_:80>     # Default catch-all virtual host.     Redirect permanent / https://example-prod.com </VirtualHost>  <VirtualHost _default_:80>     ServerName example-prod.com     ServerName www.example-prod.com     Include conf/sites/example-prod.com.conf </VirtualHost>  <VirtualHost _default_:80>     ServerName example-dev.com     Include conf/sites/example-dev.com.conf </VirtualHost>  # # This is the virtual host I'm missing and that I cannot get to work. # #<VirtualHost _default_:443> #   # Default catch-all virtual host. #   ServerAlias * #   SSLEngine on #   SSLCertificateFile "C:/prod/hosts.crt.pem" #   SSLCertificateKeyFile "C:/prod/hosts.key.pem" #   SSLCertificateChainFile "C:/prod/intermediate.crt.pem"   #   Redirect permanent / https://example-prod.com #</VirtualHost>  <VirtualHost _default_:443>     ServerName example-prod.com     ServerName www.example-prod.com     SSLEngine on     SSLCertificateFile "C:/prod/hosts.crt.pem"     SSLCertificateKeyFile "C:/prod/hosts.key.pem"     SSLCertificateChainFile "C:/prod/intermediate.crt.pem"       Include conf/sites/example-prod.com.conf </VirtualHost>  <VirtualHost _default_:443>     ServerName example-dev.com     SSLEngine on     SSLCertificateFile "C:/dev/hosts.crt.pem"     SSLCertificateKeyFile "C:/dev/hosts.key.pem"     SSLCertificateChainFile "C:/dev/intermediate.crt.pem"        Include conf/sites/example-dev.com.conf </VirtualHost>   My httpd.conf has no more DocumentRoot - everything is in the vhost and includes. This is also a dedicated server and IP.  How can I get this resolved?


Boot CD won't boot with a "x86-64 CPU,but only detected an i686 CPU" error

The error message is      This kernel requires an x86-64 CPU,but only detected an i686 CPU. Unable to boot - please use a kernel appropriate for your CPU.   How can I overcome this?


If $X_n$ are independent random variables, then does $\sum_n \mathbb{E}(X_n)=\mathbb{E}(\sum_n X_n)$?  This is not a homework problem but rather a question I had. If it is not true, what are the weakest conditions that would make it true? I am aware that if either are absolutely summable, then fubini tells us the answer is yes. I am more interested in the case that fubini does not hold. What weaker conditions can we impose but use the independence of the random variables?


I need to run the following command (with real parameters) after login:  ssh -f user@example.com -L 54321:example.com:54321 -N   I need it only for my user, not all users on the machine. Also, I need it to run whether I login via the GUI or via SSH to a plain shell terminal. I would even like to know how to do this on machines without a GUI installed.  Where would I put the above line to be run as explained?


Alright, I have a function   function foo(input) {     input = input.split("\n");     console.log(input); }   and the input is 'alert("gsasdgasdg")' so foo('alert("gsasdgasdg")') the output I get when I run it in nodejs is the expected output: [ 'alert("gsasdgasdg")' ] ` Now I will add a simple loop,   function foo(input) {     var output = "";     input = input.split("\n");     console.log(input);     for (var i in input) {         console.log(input[i]);     } }   Now I get the first console.log output as [ 'alert("gsasdgasdg")' ]  (expected) but there should be only one console.log when it loops through the array, what I get is alert("gsasdgasdg")  (expected) and then [Function] as far as I know nodejs should have not of converted this string into a function, any insight that explains why this happens?


Why to use the sign convention while solving problems as the mirror-formula itself is derived using the sign convention?

When we derive the mirror equation of concave mirror, i.e.,$\frac{1}{u}+\frac{1}{v}=\frac{1}{f},$ we've already used the sign conventions. Then why to use the sign conventions again while solving a problem?   Say the object is at $5~\text{cm}$ from pole.Then we take $u$ as $-5.$ We've used signs while deriving the formula and yet again while solving the problem. In that case I think that we are not at all using the sign convention.


Regarding quantum support vector machine using qiskit

I would like to ask, how can I add my own .csv data file to run a quantum support vector machine using qiskit ? I don't want to use already existing datasets in sklearn, scikit-learn library.


Is there any possible way to search and list the bountied questions separately in SE?


Why does level means coding only work for one (dummy) variable?

Consider the following reproducible example: library(dplyr) library(psych)  set.seed(42) n <- 500  df <- data.frame(   loneliness = round(runif(n, 0, 1)),   pet = factor(round(runif(n, 0, 1))),   addiction = factor(round(runif(n, 0, 2))),   sex = factor(round(runif(n, 0, 1))) )  levels(df$pet) <- c('dog', 'cat') levels(df$addiction) <- c('none', 'low', 'high') levels(df$sex) <- c('male', 'female')  df_coded <- data.frame(   loneliness = df$loneliness,   psych::dummy.code(df$pet) %>% as_tibble() %>%  setNames(paste0('pet_', names(.))),   psych::dummy.code(df$addiction) %>% as_tibble() %>%  setNames(paste0('addiction_', names(.))),   psych::dummy.code(df$sex) %>% as_tibble() %>%  setNames(paste0('sex_', names(.))) )  model_formula <- as.formula(   paste0(     'loneliness ~ 0 +',       paste0(colnames(df_coded)[-1], collapse = ' + ')   ) )  print(glm(formula = model_formula, data = df_coded, family = binomial))  I want to  my variables since I am not interested in an intercept and don't want it to results in the intersections between the first levels of pet, addiction and sex. Hence, I want to evaluate each level of each of these three predictors separately. As you can see by my attempt above, fixing the intercept to 0 while keeping all predictors with each level in the model, works fine for the first variable (pet), but produces NA's for the last level of the subsequent variables (addiction and sex): > source('~/.active-rstudio-document')  Call:  glm(formula = model_formula, data = df_coded, family = binomial)  Coefficients:        pet_dog         pet_cat   addiction_low  addiction_none  addiction_high      sex_female        sex_male          0.49977         0.45998         0.02604        -0.02391              NA        -0.03488              NA   What is the reason behind this and how do I prevent it? Thanks


APT "Could not resolve 'in.archive.ubuntu.com'"

I am using Ubuntu 14.04 LTS and I am unable to use apt-get update command. I am getting the below error:  support@node:~$ sudo apt-get update Err http://in.archive.ubuntu.com trusty InRelease Err http://in.archive.ubuntu.com trusty-updates InRelease Err http://in.archive.ubuntu.com trusty-backports InRelease Err http://security.ubuntu.com trusty-security InRelease Err http://in.archive.ubuntu.com trusty Release.gpg   Could not resolve 'in.archive.ubuntu.com' Err http://in.archive.ubuntu.com trusty-updates Release.gpg   Could not resolve 'in.archive.ubuntu.com' Err http://security.ubuntu.com trusty-security Release.gpg   Could not resolve 'security.ubuntu.com' Err http://in.archive.ubuntu.com trusty-backports Release.gpg   Could not resolve 'in.archive.ubuntu.com' Reading package lists... Done W: Failed to fetch  http://in.archive.ubuntu.com/ubuntu/dists/trusty/InRelease W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-backports/InRelease W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/InRelease W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg  Could not resolve 'in.archive.ubuntu.com' W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg  Could not resolve 'in.archive.ubuntu.com' W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/trusty-backports/Release.gpg  Could not resolve 'in.archive.ubuntu.com' W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg  Could not resolve 'security.ubuntu.com' W: Some index files failed to download. They have been ignored, or old ones used instead.   Content of /etc/network/interfaces   auto lo iface lo inet loopback  # The primary network interface auto eth0 iface eth0 inet static         address 162.70.211.177         netmask 255.255.255.128         network 162.70.211.128         broadcast 162.70.211.255         gateway 162.70.211.129         dns-nameservers 8.8.8.8 8.8.4.4         dns-search local


Combining categorical and continuous features for neural networks

Is it OK to combine categorical and continuous features into the same vector for training deep neural networks? Say there is a categorical feature and continuous feature that I want to feed into a deep neural net at the same time. Is this the way to do it? categorical feature (one-hot encoded) = [0,0,0,1,0] continuous feature (number) = 8 final feature vector passed into neural network = categorical feature vector CONCATENATE continuous feature = [0,0,0,1,0,8]  Basically, the question is, is it OK to have a one-hot encoding and a continuous feature together in one feature vector?


Chage font to Times New Roman in pdfLatex

Is there any way to change main font to times new roman in Pdf Latex. I search over internet.  And what I saw was how to change font with xelatex or lualatex, not pdflatex.


Possibly uncountable subset of the power set of the naturals

Let $S \subset \mathcal P \Bbb N$ with the condition that if $A, B \in  S$ then $A \subset B$ or $B \subset A$. Can $S$ be uncountable?  I've been thinking about this problem for a while and I think it's probably the case that $S$ can be uncountable, but I'm not sure how to prove it. If that's not the case, please correct me.  I would prefer hints to a whole solution please, because I'm really struggling to understand how one approaches this problem in the first place, and any suggestions about these thought-processes would be much appreciated. I've come across the useful heuristic of thinking of countable sets as those whose elements can be given specific finite descriptions, but otherwise I don't have much intuition here.  Thank you very much in advance.


Is there a detailed activity log on Mac OS X that lists my recent commands and actions?

How can I see what I just did on my computer? For example, an activity log showing that I copied a file from here to there?


Bad answer → Downvote → Edit within 5 mins → Undo → Vote locked in

gave a reason why the OP's code wasn't working, but didn't provide any alternative code; I downvoted it. Then the OP edited it to include some code, but my vote is still locked in:        (The last line of code wasn't there when I downvoted).  I've edited the answer now, to bypass the lock, but this is a bug that should be fixed.


AMD GPU driver installation on Kubuntu 16.04?

How to install AMD GPU drivers on 16.04? My GPU is a Radeon HD 7640G+HD 7670M dual graphics.


I have the following code:  \begin{tikzpicture}     \begin{axis}    [         axis lines = {center},         width = {0.6\linewidth},         ylabel = {$y$},         xlabel = {$x$},         ytick distance = {2},         minor y tick num = {1}         ]      \addplot    [                 mark = none, domain= -3:4                 ]                 {abs(x)}; \end{axis} \end{tikzpicture}   That produces the following image, notice close to x=0that there's a strange "break" on the function's plot. What could be the cause? How do I get rid of that?    I noticed the problem also happens if I use a function with conditions say:  {x<0 ? -x+5 : x-2};  On the area near x=0 a weird break happens.


I can't access the recovery options pressing Shift in the GRUB

I recently bought a used Toshiba ac100, with lubuntu 12.10 preinstalled. The problem is that the previous owner has lost the password, so I am unable to connect to WiFi, change user etc.   I have read the password recovery tips, and stumbled upon another problem: the shift key doesn't bring up recovery mode options at startup. I tried pressing it repeatedly, holding it at different times, but with no result.   It just goes from the Toshiba splash screen to Lubuntu at once (no dual boot). Also I am unable to edit grub from within lubuntu, since I lack the password.  Live cd won't help, as this laptop has no disc drive.


How to find $\operatorname{Cor}(\Phi(X),\Phi(Y))$

Find $Cor(\Phi(X),\Phi(Y)),$ where $X,Y$ are standard normal with $\operatorname{Cor}(X,Y)=\rho$, $ \Phi(x)=\int_{-\infty}^x\phi(x)dx$ and $\phi(x)$ is the standard normal density.   Using the substitution $x=\rho y+\sqrt{1-\rho^2}t$, I was able to simplify it a bit and now need to integrate the following $$E[\Phi(X)\Phi(Y)]=\frac 1{2\pi}\int_{\mathbb R}\int_{\mathbb R}\Phi(\rho y+\sqrt{1-\rho^2}t)\Phi(y)\phi(t)\phi(y)\,dt\,dy$$  Any hints how to proceed? I know $\Phi(X)$ follows uniform distribution   PS. The final answer is $\frac 6\pi\arcsin\frac\rho2$


$(S_f)_0$ is a finitely generated algebra if $S$ is.

Let $A, S$ be commutative rings with identity, and assume $S$ is a finitely generated $\mathbb{Z}^{\geq 0}$-graded $A$-algebra. If $f\in S$ is a homogeneous element of positive degree, $S_f$ is a $\mathbb{Z}$-graded $A$-algebra. Is $(S_f)_0$ (the ring of degree $0$ elements) finitely generated as an $A$-algebra?     It seems to come down to a simple combinatorics problem with exponents that i'm too dumb to do.   (why?: I'm trying to show quasiprojective $A$-schemes have finite type)


Can I produce natbib-formated text from BibTeX file without a corresponding bibliography entry?

Is it possible to use natbib to generate formatted text from a .bib file, but not have the citation show up in the bibliography?  I'm using chapterbib and natbib to create a multi-chapter bibliographic document in the style of this example:  \documentclass{report} \usepackage[sectionbib]{chapterbib} \usepackage[sectionbib]{natbib}  \begin{document} \include{ChapterFish} \include{ChapterCats} \end{document}   with ChapterFish.tex:  \chapter{Information About Fish}  \citealp{Fish1}: General information about fish.  \citealp{Fish2}: Overview of why fish are delicious.    For more information, see also \citealp{Cats}    in chapter \ref{ch:cats}.  \bibliographystyle{abbrvnat} \bibliography{ref}   and ChapterCats.tex:  \chapter{Information about Cats}\label{ch:cats}  \citealp{Cats}: Study on eating habits of cats   with regards to fish.  \bibliographystyle{abbrvnat} \bibliography{ref}   and ref.bib:  @ARTICLE{Fish1,   author = {S. Hark},   title = {All About Fish},   journal = {Foo},   year = {2010} }  @ARTICLE{Fish2,   author = {G. Oldfish},   title = {Fish Are Tasty},   journal = {Bar},   year = {2010} }  @ARTICLE{Cats,   author = {F. Eline},   title = {Why Cats Eat Fish},   journal = {Baz},   year = {2010} }   As written, the bibliography for the chapter 1 contains 3 bibitems: {Fish1}, {Fish2} and {Cats}. But this means that I have a reference about Cats in the chapter about Fish, which I don't want. I'd like to suppress {Cats} in the chapter 1 bibliography.  The trivial solution is to manually type the appropriator formatted citation for {Cats} in chapter 1.  However, I anticipate this issue will arise pretty frequently in my paper, and I'd like to use a more automated method to take advantage of my existing .bib file.


How to Connect to a Web-service that has a faulty security certificate

I have the following test service:    Opening it in any browser gives this warning   "There is a problem with this website’s security certificate"  However, I can ignore the warning and view the web service description.  Accessing same from code throws this exception:   Message=System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.ServiceModel.Security.SecurityNegotiationException: Could not establish trust relationship for the SSL/TLS secure channel with authority '197.253.5.218'. ---> System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.   Please is there an option to bypass such faulty security certificate from code?  Thanks.


Prove that sin(x)/x is not Lebesgue Integrable in [1,+oo]

Can anyone help me on how to prove that sin(x)/x is not Lebesgue Integrable in [1,+00], Thanks in advance.


Logarithmic variables being used while integrating.

Show that $$\int_{\ln\frac{3}{2}}^{\ln2}\frac{e^{x}+e^{-x}}{e^{x}-e^{-x}}\,\mathrm dx=\ln\frac{9}{5}$$  How would you integrate this logarithmic function in order to obtain $\ln(\frac{9}{5})$.


Filmic Log: How to render a texture to appear identical to the input image?

EDIT: I know this is a hack. The thing is why this hack works in Compositor and not as a texture? I ran into an issue when editing OpenColorIO config file and I don't know if this is a bug or I misunderstood something. So I created this minimal example: Let's say I have an image/texture in the 3D scene to serve as a reference - I want to see this image in the viewport with the original colors, while at the same time I would like to work on the 3D environment and render it in Filmic Log (in this example. Normally Filmic no-Log, but I will change the config file anyway, this is an ilustration). So, the View Transform is sRGB / Filmic Log.  If I load this image in Compositor and assign ALSO "Filmic Log" as its color space, the image is output perfectly intact. However, if I assign this image as a texture, again with Filmic Log colorspace, then there are wrong colors are on the output. You can see the difference side-by-side here, left half of the parrot is the perfect one from the compositor, right half of the parrot is the washed-out texture.  The material is simple Emission shader, the scene is otherwise empty, just camera and plane with texture.  I thought the textures is converted from preset color space (Filmic Log here) into to reference space (Linear) and then back to Filmic Log on the output, but it seems that something else is happening as well and I don't understand it. Thanks for any explanation! :)


Is there a Java 8 equivalent to Python's .ljust() and .rjust()

In Python the code could be something like the following:  # 17 spaces have been allotted, this would pad 7 blank spaces to the left # of the string because the string itself is 10 characters long and   print 'Work Phone'.ljust(17)


Very long ago, when I was young, my teacher once told me that there only should a period “.” or a semicolon ”;” in front of “however”, but never a comma “,”.   To be specific,     “xxx. However, xxx”   and     ”xxx; however, xxx”   is right; whereas,     ”xxx, however, xxx”   is wrong.  However, I rarely see such rules in people’s writings even those very formal ones.  The teacher was really knowledgeable that he wouldn’t have said that if that made no sense.  I’m now confused, and I’d appreciate it if any help is given.


Problem with citing same author, different source

I am using Jabref and  \IEEEtrans package. I try to cite same author for different source in the reference (twice). It appears twice but only once time appears Author name. I want like this     [1] M. Shapiro, “Tire manufacturing,” 2012.      [2] M. Shapiro, “Thermodynamic properties,” 2012.   Need help  \documentclass[a4paper,12pt]{article} %------------------------------------------------------------------ \usepackage{ragged2e} \usepackage{gensymb} \usepackage{tabto} \usepackage[none]{hyphenat} \usetikzlibrary{calc} \usepackage{soul} \usepackage{datetime} \newdate{date}{23}{09}{2016} \date{\displaydate{date}} \newcommand\HRule{\rule{\textwidth}{1pt}} \usepackage{tabularx} % extra features for tabular environment \usepackage{graphicx} % takes care of graphic including machinery \usepackage[left=3cm,right=1in,top=1in,bottom=1in]{geometry} % decreases margins \usepackage{cite} % takes care of citations %\usepackage{biblatex} \usepackage{fancyhdr} \pagestyle{fancy} \fancyhead{} \fancyfoot{} \fancyfoot[R]{\thepage}  \begin{document} this is \cite{Shapiro1,Shapiro2} \bibliographystyle{IEEEtran} \bibliography{LiteratureReveiw}  \end{document}   @TechReport{Shapiro1,   author      = {Shapiro, M.},   title       = {Development of the enthalpy storage materials, mixture of methyl stearate and methyl palmitate},   institution = {Florida Solar Energy Center},   year        = {1989}, } @TechReport{Shapiro2,   author      = {Shapiro, M.},   title       = {Development of the enthalpy storage materials, mixture of capric acid and lauric acid with fire retardants},   institution = {Florida Solar Energy Center},   year        = {1989}, }


How do I disable the guest session from Lubuntu 14.04?

I'm fairly new to Ubuntu and one issue that I have with it is that there is no simple, easy way (as far as I know and please tell me if you have found a better way) to set up fool-proof parental controls. What I did with Ubuntu is to disable the guest account, password protect the admin account, and install ProCon Latte Content Filter on all the basic user’s firefox web browsers and configure them accordingly.  I got a new computer and decided to put Lubuntu 14.04 on it. Works great. Only issue so far: I cannot figure out how to disable the guest session. I searched around, but all the documentation tells me to sudo edit a file that doesn’t exist in Lubuntu 14.04. What does exist are these:   advanced@Dimension5150:/usr/lib/lightdm$ ls  guest-session-auto.sh  lightdm-greeter-session  lightdm-guest-session  advanced@Dimension5150:/etc/lightdm$ ls  lightdm.conf.d            lightdm-gtk-greeter-ubuntu.conf lightdm-gtk-greeter.conf  users.conf   So, could someone please tell me how to disable the guest session, or remove internet access (networking) from it?


What is best convention for writing induction proofs in latex?

I'm writing some induction proofs for my homework.  What is considered to be best convention for writing these kind of proofs?


Is it abusive to use a sockpuppet account for API calls?

Other questions ask about acceptable use of sockpuppet accounts, but I'm interested in if using multiple sockpuppet accounts for API calls. In my mind the answer would be that they're not abusive because these API calls could be performed by any one user, but it might not be okay because multiple accounts could be used to make multiple times the API limit. I was wondering this because I don't want to use the API limit of my main account, so I thought about creating a sockpuppet account to use in development, and another for production.


I cannot access my hard drive from ubuntu

After booting my computer one day, my computer routed me to the "grub rescue" shell. All the settings there seemed fine. I booted ubuntu from my usb drive to try to get to my ubuntu partition on my hard drive. I could get into some folders but trying to get into my home folder gave me an "Input/Output error".   Not able to access my files through usb drive ubuntu, I use the grub2 shell and I was able to access my files with the "cat" command and read them. Is there any way to transfer all my files from my hard drive to an external storage device?  PS: I have some very important files that I haven't backed up on my ubuntu partition of my hard drive.  Any help is much appreciated.  Thanks in advance.  EDIT: My smartctl checkup on the hard drive said that the health status is OK.


Let $E$ be of finite measure, $f_n \rightarrow f$ in measure and $g$ be measurable and finite a.e. Prove that $f_ng \rightarrow  fg$ in measure   My attempt : We have $g$ is finite a.e thus $D:= \lbrace x : \vert g(x) \vert = \infty\rbrace$ then $\mu D =0$ Now as $f_n$ converges in measure we have following for any $\epsilon$  $E':= \lbrace x : \vert f_n(x)-f(x) \vert \geq \epsilon \rbrace$ then $\mu E\rightarrow 0$ and $n \rightarrow 0$  Now,  For any $\epsilon > 0$  $E_0 := \lbrace x : \vert f_n(x)g(x)-f(x)g(x) \vert \geq \epsilon \rbrace =  \lbrace x : \vert g(x)\vert \vert f_n(x)-f(x) \vert \geq \epsilon \rbrace \cup D$  but measure of both the sets on RHS is $0$ as $n \rightarrow \infty$ thus  $\mu E_0 \rightarrow 0$ and $n \rightarrow 0$  I am not sure if the equation of union of sets which i am trying to formulate is right.


Can I get notified when a specific user makes a new post?

Suppose I work/learn on/about a specific subject, let's say JPA, after making searches and asking questions on SO, I've noticed that some person is very good at JPA and it would be very interesting to be notified about his posts. Is it possible to be told about their new activities on SO?  I think that it would be interesting to have this feature in this situation.


How do TV shows/movie find unattractive actors?

Sometimes, especially in comedies of the 80s/90s, there will be a character whose very purpose is to be made fun of for being unattractive - be they an "abhorrent admirer" where the joke is how the main character gets stuck with them or has to escape their advances, or, for example, a "fat woman" in Al Bundy's (of Married... With Children) shoe shop so Al can deliver a stinging remark about their weight.  How do the casters advertise these positions? Do they actually say they are looking for a person ugly enough to be the butt of a joke about their appearance?


How can I fetch Coverage Band Details from GeoServer in OpenLayers?

I want to display the gray index value in the image above in GeoServer on my map when clicked At the bottom of the example there is (layer preview-> openlayers) I want something like this


Why does the voltage of a lead-acid battery drop with load?

My solar power system contains a lead-acid battery but as soon as I use the inverter to power some load, the voltage drops instantly by 1 volt.  Why does this happen? And is it proportional to the load (bigger load = bigger voltage drop)?


Prove $\prod_{i=1}^{n-1} \sin(i\pi/n) = 2^{1-n} n$ without complex functions.

Note that $i$ here refers to indexing variable, not $\sqrt{-1}$.  $$\prod_{i=1}^{n-1} \sin\left(\frac{i \pi}{n}\right) = 2^{1-n} n$$ This formula was used here to give an 'elementary' proof of . Mathworld is the only place I can find the formula and that website cites a personal communication with 'T. Drane'  I have tried to prove it on my own but this is the only progress I've made.  Letting $n=2k+1$, I can show that  $$\prod_{i=1}^{2k} \sin\left(\frac{i \pi}{2k+1}\right) = \prod_{i=1}^{k} \cos^2\left(\frac{(2i-1) \pi}{4k+2}\right)$$  I used the sine product formula $\quad\sin(a)\sin(b)=\dfrac{\cos(a-b)-\cos(a+b)}{2}\quad$ to pair of the first/last terms, etc. Then used the cosine double-angle formula $\quad \cos(2a)+1 = 2\cos^2(a)\quad$ on the resulting product.  I don't know where to go on from on here and I was just investigating the special case of odd $n$. Any ideas on what to do next? Simpler approach that would also apply to $n=2k$?  PS: It would be preferred if the proof avoided complex functions in order to complete the answer to the diagonals question reference earlier.


Easy way to remap non-modifier keys on Mac?

I want to remap § to ` and ± to ~ on my Mac keyboard because they are located in a place I am not used to. Is there an easy way to do this?


Sometimes when I take a photo I like to share it with friends and family, so I press the button that points up, which then leads to a screen where I can share the photo with facebook, flickr and several other things that I don't use.  Recently I decided to use instagram as a means of sharing photos, since I had noticed some of my friends on facebook doing it.  I installed the instagram app on my iphone and have used it a few times to share photos, but it is missing from the list of things to share with immediately after taking a photo navigated to from the photo gallery.  How can I get instagram to appear in the list of destinations that I see when I decide t share a photo from my phone?


Substitute ./ and ../ directories by actual names

I have a script which finds files in the directory specified by user.    #!/bin/bash  # make sure about the correct input if [ -z $1 ] then     echo "Usage: ./script_name.sh    path/to/directory" else     DIR=$1     if [ $DIR = '.' ]     then          echo "Find files in the directory $PWD"     else           echo "Find files in the directory $DIR"     fi      find $DIR -type f -exec basename {} \;  fi   if I input    $ ./script_name.sh .   script gives me correct substitution ./ to $PWD and shows (for example)    $ Find files in the directory /root/scripts     But I can't make a decision how to substitute ../ to the name of the directory  immediately above in the hierarchy.  If I input    $ ./script_name.sh ..     script gives me the output    $ Find files in the directory ..     Does anybody know how to substitute ../ to the actual name of the directory?


I'm trying to set up a stable repository from which to install docker:  coleman@coleman-XG41:~$ sudo add-apt-repository \"deb[arch=amd64] https://download.docker.com/linux/ubuntu \stable" >   Can anyone see a problem with it?


How to style the active element using javascript

I can use CSS to style an element so that it changes appearance when active.  For instance:  .test:active {      background-color: yellow; }   But how do I do this in javascript if I want to apply it to a specific element, not by class?  I can set the background color for the default state using:  document.getElementById("myid").style.backgroundColor = "yellow"   But I can't do this:  document.getElementById("myid").style.active.backgroundColor = "yellow"   I don't want the javascript to respond to the element being active or not - I want to do a static initialization in javascript that then makes a specific element have a different color when it is active.  If the element was guaranteed to have an id I could use javascript to append a style sheet rule which used the #id selector, but I don't have this guarantee.  All I can be sure of is I will get a reference to an element and I need to style it so that it has a different color when active.


It was an old problem. I knew how to delete files and exclude some, like this:  rm `find ~/temporary/Test\ 1 -mindepth 1 -maxdepth 1|grep -v 'A'`   but the problem is the folder 'Test 1' containing a space in name, the result of find was  /home/owner/temporary/Test 1/B   It makes rm error, how can I fix it?


C++ splitting string using strtok ignores the last entry

I have the following code that is suppose to split a string and inserting it into an array :    char *t;   char *tmpLine = (char *)line.c_str();  t = strtok(tmpLine, "\t");   int counter = 0;  while(t != NULL) {       tempGrade[counter] = atoi(t);      counter++;      t = strtok(NULL, "\t");   }   but for some reason the last entry of line is ignored and not inserted. also line is :   string line = "1  90  74  84  48  76  76  80  85"; NOTE : the spaces are tabspaces (\t) in the original file.


Ubuntu 18 WiFi adapater not found in HP laptop

I just installed Ubuntu 18 my Laptop and I am facing issue with WiFi adapater not found  and I approached lot of blogs but still not resolved my issue.  I approached below link WiFi works fine after installing but if I restarting my system then it issue again repeating with WiFi adapater not found.    Please provide the solution for this issue


After resetting my Huawei Honor 8 I'm asked to log into a previously added google account.  I clicked on "I forgot my email" and added my phone number. After this google showed me all the email accounts attached to this phone.  I then tried to log into the account with all of those accounts but I always get the same message: "Please sign in using one of the owner's previous accounts for this device."  This phone has always been mine so the account can't be someone elses.


Why do users upvote more on answers as questions?

I saw with  there are only 2189 votes but with  there are 4441 votes.   The thing is without the the question there wouldn't have been an answer, so why are there more votes on the answer and not on the question?


Why is smaller the p-value, larger is the significance?

I am trying to understand the concept of p-value.   mentions:     The p-value is defined as the probability, under the assumption of hypothesis $H$, of obtaining a result equal to or more extreme than what was actually observed.   Though, I found quite vogue the term extreme, I'm taking it as the values beyond the observed value of the test statistic; by that I could somewhat conceived the definition.  Then, like my book, the wiki article writes:     The smaller the p-value, the larger the significance because it tells the investigator that the hypothesis under consideration may not adequately explain the observation. The hypothesis $H$ is rejected if any of these probabilities is less than or equal to a small, fixed but arbitrarily pre-defined threshold value $\alpha,$ which is referred to as the level of significance [...]   Hmmm... I couldn't get that point; why does the smaller p-value means a higher significance viz, the null hypothesis is on the verge of extinction?  Also, as this  summarises:           High P values: your data are likely with a true null.   Low P values: your data are unlikely with a true null.      I'm not getting why it is so- why does the lower p-values means the the significance is high?  Wikipedia seems to reason saying this: 'the hypothesis under consideration may not adequately explain the observation'. Can anyone tell me why it is so?  Please help me explaining why lower the p-value, higher is the significance.


Why do we need extern "C"{ #include  } in C++?

Why do we need to use:  extern "C" { #include <foo.h> }   Specifically:     When should we use it? What is happening at the compiler/linker level that requires us to use it?   How in terms of compilation/linking does this solve the problems which require us to use it?


Nginx Redirect via Proxy, Rewrite and Preserve URL

In Nginx we have been trying to redirect a URL as follows:  http://example.com/some/path -> http://192.168.1.24   where the user still sees the original URL in their browser. Once the user is redirected, say they click on the link to /section/index.html, we would want this to make a request that leads to the redirect  http://example.com/some/path/section/index.html -> http://192.168.1.24/section/index.html   and again still preserve the original URL.  Our attempts have involved various solutions using proxies and rewrite rules, and below shows the configuration that has brought us closest to a solution (note that this is the web server configuration for the example.com web server). However, there are still two problems with this:   It does not perform the rewrite properly, in that the request URL received by the web server http://192.168.1.24 includes /some/path and therefore fails to serve the required page. When you hover on a link once a page has been served, /some/path is missing from the URL  server {     listen          80;     server_name     www.example.com;      location /some/path/ {         proxy_pass http://192.168.1.24;         proxy_redirect http://www.example.com/some/path http://192.168.1.24;         proxy_set_header Host $host;     }      location / {         index index.html;         root  /var/www/example.com/htdocs;     } }    We are looking for a solution that only involves changing the web server configuration on example.com. We are able to change the config on 192.168.1.24 (also Nginx), however we want to try and avoid this because we will need to repeat this setup for hundreds of different servers whose access is proxied through example.com.


Customizing tray/taskbar date and time in Ubuntu 18.04

In Ubuntu 16.04 we used to see date displayed.    Also, we could see the seconds ongoing.   In 18.04, I can't find any settings that could help me to see the seconds and date in the task bar.


Can the rogue repeatedly hide in combat to sneak attack the same enemy?

One of my players is a rogue and has been, on his turn, using Cunning Action to hide as a bonus action and immediately afterwards attacking. I have been ruling that this does work to grant him advantage as an unseen attacker as I believe that is the RAW, but it seems a little strange. Is he really, in the span of 6 seconds, ducking behind a corner and popping back out and this completely disorientates his target? I guess I just wanted to make sure I was ruling correctly.


How to modify a computer's offline registry from WINPE?

I need to make changes on my registry without using the OS software, and need to do it with WINPE. However when WINPE is ready to work and I am trying to open regedit.exe it shows me only current OS information, actually the WINPE information.  So how to use WinPE as an offline registry editor?


Is it common/correct to say "thanks for having me" after an interviewer says to you "thank you for coming to this interview"?  Thanks :)  Update: I'm referring to a job interview. (Thanks for pointing that out)


I have a computer with ubuntu 12.04 installed. Unfortunately, when I run a memory taking program, it fills the RAM and uses the SWAP space. Then after the program terminates, the memory is completely released, but a considerable portion of the swap is occupied and I have to restart my computer to release that part.   The program does not have memory leak. Is there any way to clean that swap? Why such thing happens? (I regularly install the updates)


My rhydon has increased CP for no apparent reason

My rhydon was almost 1300 CP as of last night and I haven't played since. When I turned on the game about a half hour ago, it was at almost 2000 CP. I still have the same amount of stardust and candy. I don't know what happened. Can someone fill me in on how this happened?


Every algebraic extension of a finite field $F$ is separable

Question: I want to show that every algebraic extension of a finite field $F$ is separable. Thoughts: I think I know how to do this: let $F\subseteq E$ be an algebraic extension of $F$.  Let $a\in E$.  Then there is some $f(x)\in F[x]$ irreducible such that $f(a)=0$.  So, $f(x)=c_nx^n+\dots +c_1x+c_0$ where $c_i\in F$, $n\in\mathbb{N}$, $c_n\neq0$.  So, $f'(x)=nc_nx^{n-1}+\dots +c_1$.  Then we consider if $f'(x)=0$ then $(f(x),f'(x))=1$ so $f(x)$ is serpable, and if $f'(x)\neq0$ then I'm going through and eventually getting a contradiction to $f(x)$ being irreducible, thus finishing my proof.  However, it takes about a half of a page to get that contradiction and I was wondering if there was maybe a shorter, or less computational, way of proving this.  Thank you so much!


What are the summary rules for when to use image stabilization and when not to?

When I got my DSLR, I took a lot of pics and all of them came excellent, even though I had VR at the "Off" position.   Since those came out so well, I wonder when should I turn VR on, and when I should just leave it off.   I found  which answer this question in detail, but that's too much for me to understand easily. Can someone explain the strict rules in short?  Should I use VR with tripod? When should I use it when I'm not using a tripod, and when should I leave it off?


Conversion of GPA from scale of 10 to 4 (India)

I am an undergraduate student from India, interested in applying for Ph.D. programs in Astronomy in US institutes. My institute evaluates the CGPA from a scale of 10. Since the cutoff for Astronomy is 3.0 on a scale of 4 for most US Institutes, my question is what would be the minimum on a scale of 10 in India, assuming I dont go by the conversion (3/4)*10=7.5


How to remove/why is there a dot in the figure number when \part is present?

I'm struggling to see the point (pun intended) in having a dot appended to the figure number when a \part is involved.  Consider the following MWE:  \documentclass{scrbook} \begin{document} \part{Part} \chapter{Chapter} \begin{figure}    This would be the image    \caption{Caption} \end{figure} \end{document}   The figure number includes a trailing dot, which IMHO isn't needed anyway and I find it conflicting with the colon:    This dot is added whenever there is a \part present in the document, even when the floating environment itself is not inside a part (i.e. the first \part comes after the float, which doesn't make sense but which I tried out to see the behaviour). Commenting out the \part produces the numbering I would like to see:  \documentclass{scrbook} \begin{document} %\part{Part} \chapter{Chapter} \begin{figure}    This would be the image    \caption{Caption} \end{figure} \end{document}     How can I get rid of that dot and how can I understand why it is there in the first place?  [EDIT]:  It seems (as described in the "possible duplicate" suggestion) that in German typography a trailing dot is required when there are non-arabic components in the numbering. While I can see that this is useful in the TOC I find it pretty annoying in float captions because of the clash of the dot and the colon. The non-arabic part numbering isn't a component of that numbering anyway.  [EDIT2]:  The question has been closed as duplicate after I added the first edit (but hadn't highlighted the edit sufficiently. The referenced question did not answer my updated question, so essentially this question shouldn't have been closed IMO. However,  does answer the question.


I need some help with formatting my USB stick. It says it's a write-protected and when I try to remove the protection using the following path:  Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies   and the value is already 0.  What should I do? any ideas?


Is STAB halved for dual-type Pokemon? (and also the damage due to type effectiveness)

I have seen discussion both ways: for example, for an Exeggutor, it is Grass/Psychic type, so, will the STAB make it 25% more powerful or just 12.5% more powerful, since Solar Beam is a Grass type move but Exeggutor is both Grass and Psychic type?  For example, , when Exeggutor is only half Grass type.  I also have heard that if the Pokemon is dual-type, then the effect is divided by two.  On the other hand, what if it is a Psychic attack done towards this Exeggutor, and it is "not very effective"? Is it not effective just as if the attack is done to a pure Psychic Pokemon (like Hypno), or is it just half not-effective?  (please back up your answer with facts, reference, or experiences).


This will be my first question at the stack exchange, so please bare with me.  I'm doing a course on Matrix Groups for my Honours year and have really been struggling.  How would I go about solving this?  Let $G$ be a finite group and $g \in G $ is such that $\{g,g^2,g^3,\ldots\}$  is finite. Show that there exists a positive integer $k$ such that $g^k=1_G$  Any help would be greatly appreciated. Thanks!


Ubuntu Touch; How do I import .vcf contacts?

I have just got Ubuntu Touch up and running on my phone (Nexus 4) and am enjoying it! I have got my photos and music onto it, but I cannot find how to import my .vcf contacts file. I have read all the articles I can find on the subject and they only have instructions for importing contacts from Google, but that is useless for me. I have searched askubuntu to no avail.


I hope i'll be able to explain this well, so pls bear with me... Firstly, I got Ubuntu 12.4 I forgot the password for my admin account, so i changed it in thhe grub- in recovery mode. after i've been able to access only the guest account, where at least i changed the option login withou passwd for my admin account (obviously at this point the passwd worked since for changing this option u need sudo privileges) However, i still couldnt log in into my master account- when i click on login on startup, the page goes black, then comes back to the same point where u select users. i tried many different options- probably messed it up too! but I am not able to even use the password again in the guest account. Im totally logged out, pls help.  note that a solution without using a dvd/bootable usb to fix grub/linux would be much more preferred! Since Im travelling in remote areas :p


Authenticity of host with ssh key is needed?

I've just added an SSH key to my digital ocean droplet using their API, so I didn't ever connect to my droplet through SSH. Their  says that I should, after creating, I should just say 'yes' when connecting through ssh, like I did:  ssh -i id_rsa root@IP   the fact is that I don't know if this fingerprint is from my machine. Howevr, since I'm using private keys, I don't know if there s a risk of saying 'yes' without knowing if this fingerpint is the real one. Is there any risk, even using a private key? Why does the documentation tell me to say yes if that is a security risk?


Using Binomial Theorem to find the value of $ ^nC_0^2 - ^nC_1^2 + ^nC_2^2 - ^nC_3^2... + (-1)^n . ^nC_n ^2 $

So I was solving problems in my textbook and I got stuck on this question. It says:  Prove that:    $ ^nC_0^2 - ^nC_1^2 + ^nC_2^2 - ^nC_3^2 + ... + (-1)^{n} .^nC_n^2  $ = $ 0 $ or $ \frac {(-1)^{n/2} n!} {\frac{n}{2}! \frac{n}{2}!} $  ,  when $ n $ is odd/even.  So I tried to bring the required terms and my idea was to multiply $ (1+x)^n $ with $(x - 1)^n$ .  $$ (1+x)^n = ^nC_0 + ^nC_1 x + ^nC_2 x^2 + ... ^nC_n x^n $$ $$ (x-1)^n = ^nC_0x^n - ^nC_1 x^{n-1} + ^nC_2 x^{n-2} + ... (-1)^n .^nC_n $$   I can see that if I multiply the two equations, then I will get the terms I need with their required sign. LHS will contain $ (x^2 - 1)^n $  .  But along with that, there will be many other terms on the RHS which will probably be impossible for me to get rid of. Am I going in the right way or is there an entirely different procedure?


Can I make steam remember the password for both of my steam accounts?

I followed the instructions from  to an absolute t there and it works great. Only thing is that no matter what I try, whenever I double click on the icon for my second account it asks me to enter the password. Whether I have the "Remember my Password" box ticked or not on either account... no matter what combination I use... my PC will only remember 1 account's password (even, if as I said, the box is ticked) Any suggestions?


Problem with long limits in \lim command

When I write a long limit there is a big gap between the limit and the function. How can I fix this? Furthermore is there a way to make the limits smaller so as not to be longer than the limit symbol? Also why is that gap there and that size difference between the length of the symbol and the limit under it? Shouldn't all be under it?  \documentclass[12pt]{article} \usepackage{amsmath} \usepackage{unicode-math} \begin{document}  $\displaystyle \lim_{n\to +\infty}x(n)$  \end{document}


Why am i getting the "NullPointerException" , when trying to use regex?

I'am getting a  java.lang.NullPointerException   when trying to use regex in the following code:  public static void scanSTAFFELNR() {      String STAFFELNR = CsvScanner.values.get(1);  // My values are stored in a ArrayList ( values). Here i want to get the second one.      if (STAFFELNR.matches("[0-9]+")) { // Here i want to check, if the String is a number.          System.out.println("erfolg");     } else {         STAFFELNRMessage = "Fehler bei STAFFELNR, STAFFELNR muss zwischen 0-3 sein";         Gui.fehlerCounter++;     } }   When i remove the STAFFELNR.matches and replace it with a STAFFELNR == "Hello" , i get no error.  I dont know how to fix this error on my code.


Show that a metric space $M$ is compact if and only if all infinite open cover of $M$ have a proper subcover.

Let $(M,d)$ be a metric space. Show that $M$ is compact if and only if all infinite open cover of $M$ have a proper subcover.     We remember: If $\mathcal{U}$ is a cover of $M$, then a proper subcover is a proper subset $\widehat{\mathcal{U}}$ of $\mathcal{U}$ such that it is cover of $M$.   Remark: The diection $(\Rightarrow)$ is trivial. The problem is the direction $(\Leftarrow)$, I think hypotheses are missing, but I have not been able to find a counterexample or prove it.  This exercise I found in a book that for me is not very reliable since I have found other exercises with errors.


I am typing a command, I remember I have to check something, if I press Ctrl+U the command disappears and I can type something else, but then the command I was typing is not in the history.  Is there a way to recover that command, or a different shortcut that I can press to save somewhere the command?


"Their body" vs "Their bodies" when referring to people of similar type

I know that for "a group of people", it seems to be treated as singular ([a] group).  However, given the below:     Gymnastic teachers, who serve as role models for others, should keep their [body/bodies] in a peak state.   For that, "teachers" is plural, so it would make sentence to use "bodies" there. However, if "gymnastic teachers" is viewed as a collective group, "body" would be used instead.  Does that mean either is correct? Or should it not be viewed as a single group, but instead as individuals?


Is there a tool to view an organisation's schema outside Salesforce?

For example, if I want to have an image with all the tables and relationships in my organisation, I would have to manually look for every object/field/relationship and build it myself in an external tool (like Draw.io).  Is there a tool to do this automatically?


Calculate the ring of integers of quadratic number field $\mathbb{Q}(\sqrt{d})$   Solution:  Let $F$ be an algebraic number field. Then an element $b\in F$ is integral iff it monic irreducible polynomial has integer coefficients.  For example, $\sqrt{d}$ for integer $d$ is integral.  If $d\equiv 1 \mod 4$, then the monic irreducible polynomial of $(1+\sqrt{d})/2$ over $\mathbb{Q}$ is $x^2 -x + (1-d)/4 \in \mathbb{Z}[x]$, so $(1+\sqrt{d})/2$ is integral.  Thus the integral closure of $\mathbb{Z}$ in $\mathbb{Q}(\sqrt{d})$ contains the subring $\mathbb{Z}[\sqrt{d}]$, and the subring $\mathbb{Z}[(1+\sqrt{d})/2]$ if $d\equiv 1 \mod 4$. We show that there are no other integral elements.  An element $a+b\sqrt{d}$ with rational $a$ and $b\neq0$ is integral iff its monic irreducible polynomial $x^2 -2ax +(a^2 -db^2)$ belongs to $\mathbb{Z}[x]$. Therefore, $2a$,$2b$ are integers. If $a=(2k+1)/2$, for $k\in\mathbb{Z}$, then it is easy to see that $a^2 - db^2 \in \mathbb{Z}$ iff $b=(2l+1)/2$ for some $l\in\mathbb{Z}$, and $(2k+1)^2 - d(2l+1)^2$ is divisible by 4. The latter implies that d is quadratic residue modulo 4, i.e. $d\equiv 1 \mod 4$. In turn, if $d\equiv 1 \mod 4$ then every element $(2k+1)/2 +(2l+1)\sqrt{d}/2$ is integral.  Thus, integral elements of $\mathbb{Q}(\sqrt{d})$ are equal to $\mathbb{Z}[\sqrt{d}]$ if $d\not \equiv 1 \mod 4$, and $\mathbb{Z}[(1+\sqrt{d})/2]$ if $d\equiv 1 \mod 4$.    Can someone explain why $\sqrt{d}$ for integer $d$ is integral, and why the monic irreducible polynomial of an integral element $a+b\sqrt{d}$ is of the form $x^2 -2ax +(a^2 -db^2)$?


I'm looking for a decent all-purpose lens to replace the 18-55mm kit lens on my Canon EOS Rebel XTi (400D). I'd like to keep the price as low as possible but something with a half-decent zoom and IS. Any suggestions?


According to the LSI 9207-8e  then it supports up to 1024 disks of 6Gb/s, which I don't quite understand, when it is only an 8 lane JBOD card.  In my case, I have an HP D6000 with 70 disks as JBOD, and have excellent read/write performance.   It would be temping to think that only 8 disks of the 1024 gets full bandwidth, but just can't be the case, or is it for some reason not an issue? If I bought the 12Gb/s LSI JBOD version, would I then get better performance when the disks are still 6Gb/s?


My girlfriend is paying for my UK visa what did I still need to provide

What did I need to take to the embassy for my interview


Lead Conversion customization test class is showing 0% coverage

@isTest public class LeadConversionAutomation_Test {      public static testmethod void TestLeadconvert (){                           Lead testLead = new Lead(LastName = 'TestLName',FirstName = 'testFName',Status='Open - Not Contacted',Company = 'testCompany', Email = 'xxxxx@xxxxx.com');         test.startTest();         insert testLead;                  System.assertEquals(testLead.FirstName, 'testFName');         Id leadOwner = testUser.Id;         database.LeadConvert leadConvertTest = new database.LeadConvert();         leadConvertTest.setLeadId(testLead.Id);         leadConvertTest.setDoNotCreateOpportunity(False);         leadStatus convertStatus = [SELECT Id, MasterLabel FROM LeadStatus WHERE IsConverted=true Limit 1];         leadConvertTest.setConvertedStatus(convertStatus.MasterLabel);         //leadConvertTest.setConvertedStatus('Closed - Converted');         Database.LeadConvertResult leadConvertResultTest = Database.convertLead(leadConvertTest);         System.assert(leadConvertResultTest.isSuccess());                  leadConvertTest.setOpportunityName('testFName TestLName');         test.stopTest();                List<Account> accQuery = [SELECT ID, Name,OwnerId from Account where name= 'testFName TestLName'];         for(Account acc : accQuery){             system.assertEquals(acc.OwnerId, leadOwner);         }                          List< Opportunity> oppQuery = [SELECT ID, Name,OwnerId from Opportunity where name= 'testFName TestLName'];         for(Opportunity opp : oppQuery){             system.assertEquals(opp.OwnerId, leadOwner);         }     }            }  Apex Class for custom lead conversion logic: global class AutomatedLeadConversion { public static void Leadconvert(List inputs){ LeadStatus convertStatus= [SELECT Id, MasterLabel FROM LeadStatus WHERE IsConverted=true Limit 1]; List<Database.LeadConvert> listLeadconvert = new List<Database.LeadConvert>();     for(Input i: inputs){         Database.LeadConvert leadConvert = new Database.LeadConvert();         leadConvert.setLeadId(i.record.id);         leadConvert.setConvertedStatus(convertStatus.MasterLabel);         System.debug('Input Account Id: '+i.accountId);         System.debug('Input Contact Id: '+i.contactId);         if(i.accountId != NULL || i.accountId != ''){             leadconvert.setAccountId(i.accountId);             if(i.contactId != NULL || i.contactId != ''){                 leadconvert.setContactId(i.contactId);             }         }         leadConvert.setOwnerId(UserInfo.getUserId());         // if createOpportunity is FALSE, set DoNotCreateOpportunity flag         if(!i.createOpportunity){             leadConvert.setDoNotCreateOpportunity(TRUE);         }         listLeadConvert.add(LeadConvert);     }          if(!listLeadConvert.isEmpty()){         List<Database.LeadConvertResult> lcr = Database.Leadconvert(listLeadConvert);     }      }


Bash: How to leave a process running even after it's user logs out

The only way i've heard of is using the cron, but id rather do it ad hoc. Is there another way in bash?


Installed Ubuntu 18.04 LTS next to Windows 10. GRUB shows blackscreen

Hello AskUbuntu Community I have an annoying problem with my dual boot on my PC.  I have a solid-state drive (SSD) with Windows 10 on it and another one with ubuntu 18.04 LTS.  When I spam my F8 key to show the boot screen, I can boot Windows 10 without any problems. But when I try to boot Ubuntu, I get a black screen, but it should start GRUB in my opinion.  With Ubuntu 16.04.2 LTS it worked very well.  I don't know what I did wrong.  Yours sincerely.


In how many ways can one fill a $m×n$ table with $±1$ such that the product of entries in each row and each column is $-1$?

I have almost solved the question but I am stuck in the last part we know $X_1 , X_2,......,X_{(n-1)}$ and $Y_1, Y_2 ,.....Y_{(n-1)}$ can be filled only in one way, so the question reduces to filling the $(n-1) \times (m-1)$ table with $±1$ with out any condition i.e $2^{(n-1)(m-1)}$ but what about the green ( right bottom) box how can we fill that box?


For every positive integer prove that$$n^7 -n$$ is divisible by 7  My turn : Let $$k^7 -k = 7m$$ Now i will try to prove that $$(k+1)^7 -(k+1) = 7p$$  $$(k+1)((k+1)^6 -1)$$ but i stopped here !  What should i do ?


Note that this is a different question from .  That aside, I was unable to find the markup for writing something like this:   As visible, I require the partial symbol to have a line across it.  I would also appreciate it if someone could mention the markup for a crossed normal derivative, too, as a bonus.  Thanks.


After breaking my GRUB installation, wiping the drive and reinstalling, Xubuntu launches but there is no GRUB

To be specific in that mess of a title, I broke my last Xubuntu install (writing to askubuntu as the two are very similar) so I wiped the drive in Gparted. I then installed Xubuntu with the something else option, added 8gb swap and the / mount. I selected SDB for GRUB to be installed on. Here are my drives:  SDA: 2tb hard drive that I use for Windows data (games, data). SDB: My Linux SSD. Completely wiped for this installation. SDC: Windows SSD.  My issue is that the OS doesn't show up in my BIOS boot and the GRUB menu doesn't show; to access my Xubuntu installation, I have to manually select the drive (Kingston:drive model) from the boot menu. After looking in SDB with Gparted (after the install), I noticed that there was no EFI; just the swap and the / .  Note: I intend to dual boot Windows and Xubuntu.  Is it possible to "install GRUB"? Thanks for any help :)


$A, B$ are linear map and dim$null(A) = 3$, dim$null(B) = 5$ what about dim$null(AB)$

$A, B$ are linear map from $\mathbb{R}^{12} \to \mathbb{R}^{12}$ and dim$null(A) = 3$, dim$null(B) = 5$ what value could dim$null(AB)$ be?  I think it could be greater than or equal to 5 because $$  Ker(B) \subset \{x\in \mathbb{R}^{12} : Bx \in Ker A\} = Ker(AB) $$ but is there are better result we can get?


Primal Groudon Not Reappearing in Omega Ruby after blacking out

So after I got to the point in Omega Ruby where I had to catch primal groudon, I simply couldn't and after trying to catch it for about two hours, I gave up and let it black me out, so I could train more. When I went back to the cave of origin to catch it, it would not give me the cutscene where I ride on it's back and go to the other room to catch it. Is there anyway to fix this other than starting a new file?


Number of real numbers between 0 and 1 vs number of all integers

Let a be the number of real numbers between 0 and 1  Let b be the number of all integers.  Can I say b=2a+1, since for every real number n where 0<n<1, I can take n and remove the 0. in the beginning, making it an integer, and have a positive and negative of that integer? I will also have 0 in the integer set which cannot be reached through above method, hence the +1.  I think the logic is pretty sound, are there any mistakes in this argument?


While working on the draft of a blog post, we've come across this dilemma and, since we're all non-native speakers, we didn't come to a consensus:     Our focus are/is projects that...   We're split pretty much 50/50 between "are" and "is".


I'm trying to change the skin on Batman Beyond Arkham City by using this code and it doesn't work.     Press the following combination on the Main Menu screen (after you   have selected your save slot):      ← ← ↓ ↓ ← ← → ↑ ↑ ↓   I can hear the sound to confirm that I entered the right code, but on the next screen I don't get the choice of skins. I want to change into the Batman Beyond costume, which i purchased.   Any suggestions? Thanks!


Let $(A,\mathfrak{m})$ and $(B,\mathfrak{n})$ be local Noetherian rings. Suppose that $\phi : A\rightarrow B$ is a map such that $\phi(\mathfrak{m}) \subset \mathfrak{n}$ and suppose    $A/\mathfrak{m} \cong B/\mathfrak{n}$; $\mathfrak{m} \rightarrow \mathfrak{n/n^2}$ is surjective; $B$ is a finitely generated $A$ module.   Show that $\phi$ is surjective.  Here is my approach so far: Consider $0\rightarrow \mathfrak{m} \rightarrow A \rightarrow A/\mathfrak{m}\rightarrow 0$ and the exact sequence for $B$. Then we can establish an commutative diagram of the two exact sequences. (Sorry i do not know how to type that.) Then apply the snake's lemma, the isomorphism in condition 1 yields an isomophism $\mathfrak{n}/\phi(\mathfrak{m})\cong B/\phi(A)$. To see $\phi$ is surjective, it suffices to show $\phi(\mathfrak{m})=\mathfrak n$. Since $\mathfrak{n}$ is the maximal ideal of $B$, if $\phi(\mathfrak{m})+\mathfrak{n}^2 = \mathfrak{n}$, Nakayama will give the desired result. Now somehow I want to conclude $\phi(\mathfrak{m})+\mathfrak{n}^2 = \mathfrak{n}$ from conditions 2) and 3), which seems to be true but cannot really proceed.


My system regularly crashes with the following error in the error log  Windows successfully diagnosed a low virtual memory condition. The following programs consumed the most virtual memory: MsMpEng.exe (6628) consumed 30782681088 bytes  It's ALWAYS MsMpEng that causes this, and there's clearly some kind of memory leak going on for it to consume 31GB of virtual memory. I'm past the point of caring about whether it works, crashing my system sometimes several times a day is worse than any virus that Windows Defender is claiming to protect against (I don't use this machine for anything financial etc anyway) I turned off Real-Time Protection and that seems to work for a few days... then the system crashes again and when I look at the Defender settings it's back on. So I can't even disable Defender - again, worse than a damn virus. Short of installing Ubuntu, how do I make MsMpEng.exe leave me alone permanently?


Prove there always exists a partition such that vertices in each part have even degree

I've got an example for this question, but there are many different possibilites and I don't know how to show this for all graphs. Has got anyone any advice how to begin ?  Let $G=(V,E)$ be an undirect graph. Then there is a partition $V = V_1 \cup  V_2$ of a vertices set, so that all vertices in $G[V_1]$ and $G[V_2]$ have got an even degree.  I draw it on paper, but how mentioned it, it's not proven for all and I don't know how. Thank you for any advice.


How to calculate a simple mixed parallel/series resistor circuit

I'm trying to understand how to calculate resistance in simple mixed parallel and series resister circuit.  Below is a question from  I've been playing with to better understand the topic (Question 5 ->Figure 6).    I can see the 220Ω and 100Ω resistors are in parallel, but I do not understand how to break out and calculate the 470Ω and 330Ω resistors.    The answer given is 80.54 Ω, but I cannot seem to reach this on my own.  How do I calculate the resistance between points A and B?  Source:


How are numbers written in the languages of The Lord of the Rings?

I have found some examples but I am not sure if any of them are right. Are there any concrete examples of Tolkien numerals?


You have two connected topological spaces $(A,B)$. Prove that $A\times B$ is also connected.  I understand that I have to prove that there is a point in $B$ (call it $b$), that makes $A\times\{b\}$ homeomorphic to $A$ making it connected to $A\times B$. Then prove that $\{a\}\times B$ is connected in $A\times B$. But I don't really know where to being with this. If you could help that would be appreciated.


How is Newtonian Mechanics contradictory to Special Relativity at a certain parameter?

How is Newtonian Mechanics contradictory to Special Relativity at a certain parameter and what conditions must be met for Newtonian Mechanics to be a suitable model for describing systems?


Question from "An introduction to measure theory" by Terence Tao

If $(x_α)_{α \in A}$ is a collection of numbers $x_α ∈ [0, +\infty]$ such that $\sum_{α∈A}{x_α} < \infty$, show that $x_α = 0$ for all but at most countably many $α \in A$, even if $A$ itself is uncountable.


Comprehensive list of all available !bangs on DuckDuckGo.com

Recently I switched from Google to DuckDuckGo and so far I am very pleased with the experience. "The Internet" tells me that one of DuckDuckGo's best features is the possibility to directly search on specific pages using bangs (defined prefixes). E.g. search for "!so [duck-duck-go]" on DuckDuckGo to get duck-duck-go tagged questions on Stackoverflow.  I was searching for a comprehensive list of all available bangs, but the only thing I found was the official  wich offers a search box and categorized lists, but no complete list of all 7,447* bangs.  Is there a possibility to find all bangs without clicking through all the categories on the bang-page?    (*) by time of writing, 2015-12-15


I have been assigned this problem for homework:     Show that, if $a < b + \epsilon$ for every  $\epsilon \gt 0$, then $a\le b$.   I have tried to go about this using Induction, but I don't know what the base case would be. It is obvious to me in my mind, but I don't know how to put it into mathematical terms on paper. any hints?


Showing that $\sum_{k=N+1}^\infty \frac {1}{k!} < \frac {1}{N!}$

I was constructing a proof through inequalities, but I am having a bit of problem showing the following step:  $$\sum_{k=N+1}^\infty \frac {1}{k!} < \frac {1}{N!}$$   Is there any quick way to show this?


SuperClass/SubClass Inheritance Scope Verification

Note: Please read the whole thing before you wrongly mark it as a duplicate.  So I'm not sure if this is write and I can't find an easy chart to answer it: -Is it true that if you have a PUBLIC, PROTECTED, OR PACKAGE PRIVATE method or field in the superclass and the subclass is in the SAME PACKAGE, then a class OUTSIDE OR WITHIN the package can access those methods or fields via a new subclass object and if the field or method is PRIVATE, then it CANNOT? -Is it true that if you have a PUBLIC, OR PROTECTED method or field in the superclass and the subclass is in a DIFFERENT PACKAGE, then a class OUTSIDE OR WITHIN the package can access those methods or fields via a new subclass object and if the field or method is PACKAGE PRIVATE, OR PRIVATE then it cannot?  In other words, all the access combinations (32 combinations) of: public, protected, package private, and private for methods, fields, for subclasses in same, or different package, access by a class creating the subclass object in a class in the same or different package. Note the main difference between this question and the "duplicates" is that I am wondering about access with NON-SUBCLASSES within/outside the package. NOT JUST THE STUFF INSIDE THE SUBCLASS. The duplicates are not specific enough because there are tiny rules that are not as simple as a 4 x 2 table. Example, for protected, a subclass outside of the package cannot run a super class method on a superclass object, only the subclass object. Little things like that are not answered in the "duplicates".  And can y'all read the whole dang thing before you mark it as a duplicate. I explained why it wasn't but lazies don't read the whole thing nor answer the question.


English (other than American English) has a clear differentiation between the two words. Both are about translocating something. In "bring" the something of somebody is moved to where the speaker is currently situated. "Take" is used to translocate something or somebody to a place that the speaker is not currently at.   You cannot “bring” your books to school if you are currently at home. You can only take them to school. Most of the time one can get the meaning from the context of the sentence but it can get very confusing when the other party is on the telephone and you do not know their location.   Why does American English not differentiate and when did it lose the differentiation?


How can I write letter d with hyphen in the image file?


how to reduce current without changing voltage?

In my car there is a  charger it is producing 5v/2amps,but there is a clock in my car, this clock is connected to this car charger it need only 5v/500ma,how can i reduce the current to this clock?


Moving comments to chat: is it just about length?

Over time, I've noticed an increasing practice among moderators of the smaller sites (i.e. not in the Trilogy) to move extended comment chains to chat, just because they're too long. Is this a good idea? In the past, I've taken the position on many occasions that I believe that comments serve two purposes only: clarification, and asking for clarification.  I take this position because as a mod I want the freedom to purge a comment trail that is clearly running off the rails without having to argue with anyone about politeness definitions. But that's not the same thing as two pedantic C++ language lawyers debating the finer points of "undefined behavior."  I give wide latitude to such discussions, as long as the participants don't start throwing spears, because I believe they are instructive. The SE software even has accommodations for this.  Long comment chains are automatically collapsed, so as not to disrupt the Q&A format of the post.  And moving a comment chain to chat is not even a move, really; to do an actual move, you have to perform the conversion, and then delete all of the copied comments from the post. Here is a recent example:  and it's accompanying . What I find amusing is that the OP's detailed POV about the term, where he floats a theory about why everyone thinks that "bugged" is not a thing (that conversation took place in the comments, and is now safely sequestered in the chat room) gets to stay prominently featured in his question, at the very top of the post. Now you could argue that the chat room is a better environment to have these discussions anyway, and you'd be right.  I could argue that if we're going to do that, then why not just automatically convert long discussions to chat rooms? The problem is not so much where the comments reside.  I don't understand why mods are taking it on themselves to fix something that isn't hurting the site (at least in my opinion).  In addition, every time I see this happen, the participants in the conversation immediately lose interest in it.  The only comment that was posted in that room after all the comments were moved is most likely this one:  It wouldn't surprise me if the folks using "bugged" to refer to a certain software quality are the same folks who refer to their programs as "codes" and who believe textspeak is the pinnacle of modern English.  Which nobody will ever see. :) Some mods are really aggressive about this.  I discussed this with a mod on Physics, and he told me that they routinely move discussions when they think they might run off the rails.


Hide program icon from taskbar/alt-tab/etc (Not tray) and keep it unminimized?

I want to remove an icon from my taskbar without closing the window itself. To be clear, I'm talking about the taskbar:    Not the system tray:    My current solution is using RBTray which minimizes a program to the system tray and removes its icon from the taskbar. The issue with this is that the program is minimized and cannot be opened again until I click the tray icon, which puts it back in the taskbar. I'm fine with it being sent to the tray, but I don't want the window to go away.


Is there a simple way to straighten this line of vertices?

I'm somewhat new to Blender. I have a simple mesh that I used proportional editing on. Now I want to straighten out the outer four corner edges. (ie the selected vertices when the .blend file opens) I've seen some answers but can't get them to work. Thanks for any ideas to try.  Here's the copied link to the .blend file:    Thanks for any ideas.  edit: okay, thanks, here's a picture...wondering how to straighten out that line of vertices, thanks again for any ideas  edit: @Brian, Okay, so now my question is how to make it so, in this second image, these two selected vertices are on an axis? Then I can then select and scale the rest of the line of vertices and scale them to that axis. I don't know how to align these two vertices to any axis. Thanks.  (Well, forget that second image, not enough reputation to post two links, so the vertices I'm talking about are on the left side of the first image, the topmost vertice, and the fourth up from the bottom.)  @Jesse Can you get the line of vertices I refer to to line up in a straight line between the two vertices I'm referring to with this technique? I couldn't do it.


Apt/Synaptic needs to reinstall package but can't find the archive for it

Running Synaptic I get the following error message:  E: The package hl1440lpr needs to be reinstalled, but I can't find an archive for it. E: Internal error opening cache (1). Please report.   Upon accepting the message, Synaptic quits.


How is electric field instantaneously generated inside a conductor connected across two terminals of a battery?

I have learnt that the electric field that is responsible for current flow is generated inside a conductor as soon as the two ends of the conductor are connected or brought in contact with the two terminals of the battery. I have also learnt about the hydraulic analogy according to which the electric field is established across the conductor in the same way as hydrostatic pressure is transmitted across a fluid.  But I'm not convinced with this analogy neither can I see any mechanism by which the electric field is established across the conductor.  I reflected that the electric field may be established by some induction, i.e. maybe the electrons in the vicinity of the electrodes are drifted towards or away from the charged electrodes and this drift of charge carriers and the subsequent development of a non - zero charge in that region  induces the electrons in a farther region to respectively drift towards or away from the nearer electrode. Am I correct in my thinking?


Problem in book is, If G is a group with center Z(G), and if G/Z(G) is cyclic, then    G must be abelian. I konw how prove this but my question if G is abelian then Z(G)= G then there is no meaning of problem, am I write if not please explain me.


Recover SO account after google email was deleted

I  a few months ago. And I can't restore deleted email.  How can I restore or merge my old SO account with the new one?


How do I get a Nautilus shortcut to open on top of everything?

I've made a nautilus short cut for almost all of my common folders. But when I press the keys to use the shortcut the folder do open, but they only open in the background. I still have to make a few clicks to see them infront of me.  I want to configure my shortcuts so the nautilus folders show up on top of everything. How can I do that?   Currently I am only using the basic System Settings keyboard shortcut function.


If $\alpha$ is a real root of the equation   $$x^5-x^3+x-2=0$$   find the value of $\lfloor {\alpha}^6 \rfloor$.      This one totally stumped me. We are asked to calculate $\lfloor {\alpha}^6 \rfloor$ without actually calculating the root or using wolfram alpha or any other calculator. I found that the above equation has only one real root by sketching its graph using calculus. I was also able to use the intermediate value theorem to conclude that $1<\alpha<2$ , but this is of little use while calculating $\lfloor {\alpha}^6 \rfloor$. Please help!