I wanna trigger just one time and not multiple times. I have a Health System and I want that the Player takes damage from an GameObject if he enters the Trigger but it directly triggers like 65 times in a sec. how can I trigger just once ?  I dont have a Script attached to the GameObject what should give the Player Damage, it just have a Box Collider 2D. The Code for the Trigger enter has the HealtScript that is attached to the Player.  Here is my HealthScript  public Image Bar; public float maxHealth = 100f; public float currentHealth = 0f;   // Use this for initialization void Start ()  {     currentHealth = maxHealth;     InvokeRepeating ("decreaseHealth", 0f, 2f); }   void decreaseHealth() { //  currentHealth -= 5f;     float calchealth = currentHealth / maxHealth;     SetHealth (calchealth); }  void SetHealth (float myhealth) {     Bar.fillAmount = myhealth; }  void OnTriggerEnter2D (Collider2D other) {     if (other.gameObject.tag == ("Damage"))     {         currentHealth = -5f;     } }   }

I have some code that I only want to run once, even though the circumstances that trigger that code could happen multiple times.  For example, when the user clicks the mouse, I want to click the thing:  void Update() {     if(mousebuttonpressed) {         ClickTheThing(); // I only want this to happen on the first click,                          // then never again.     } }   However, with this code, every time I click the mouse, the thing gets clicked. How can I make it happen only once?


I understand how the cube works to do the augmentation, but does it stack with the item's stat, or override it completely?  Edit: Because people seem to not understand, but was answered in comments.. I am not asking if the secondary rolls of augment stack, I am/was asking if it stacked with the underlying base stat of the item. The answer posted in comments is that it will stack under it's own name of the gem it was leveled with. For example (now that I moved forward and can give real example)..   Burden of the Invoker before: [607 Strength] [Other Stuff]  Burden of the Invoker after: [607 Strength] [305 Strength "Gem Name"] <- another stat [Other Stuff]  Granted multipliers below are off, overall the focal point of question answered. End Edit  For example: - Armor Item with base stat of +600S  Add Augment Legendary lvl 50, Rubies = 750S  Would the resulting stats be +750S or 1350S?  So if you have a high roll already (say alter above hypothetical to 650) but has no vitality, would it be more worthwhile to not augment your base stat then?

A new recipe to the cube was added with the 2.4 update, which is augmenting ancient items.    The recipe is pretty clear, but I saw people ruining their items by adding wrong stats (intelligence on demon hunter etc.). Is it related to the gems' types?   For example, if I used Royal Emeralds, would I get dexterity (considering it is an armor piece)?


My query is:   SELECT * FROM enwiki.page where title_text = 'drug';   One of the results I got has the tilte_text = 'Drûg'. How can I prevent that?

I have a MySQL table with utf8 general ci collation. In the table, I can see two entries:  abad abád  I am using a query that looks like this:  SELECT *  FROM `words` WHERE `word` = 'abád'   The query result gives both words:  abad abád  Is there a way to indicate that I only want MySQL to find the accented word? I want the query to only return    abád    I have also tried this query:  SELECT *  FROM `words` WHERE BINARY `word` = 'abád'   It gives me no results. Thank you for the help.


Last year laptop screen got broken and I just replaced it (imagine the updates waiting). Upon 1st boot into linux side of dual boot win10 system, I didn't use terminal to update, but rather clicked on the taskbar icon and chose update. It started and I kept seeing error messages popping up so today I tried using terminal and here is what I got:  $ apt-get update --fix-missing Reading package lists... Done E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) E: Unable to lock directory /var/lib/apt/lists/ W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied) W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)   I really need to get all updated. How do I fix permission denied?

I get this error whenever I try to install programs using the terminal:  home@ubuntu:~$ apt-get install myunity E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?   Also I'm unable to install updates using the terminal.


Why is $K[X,Y]/(XY-1)$ not isomorphic to $K[T]?$  As a hint I should think about units. But I don't get a helpful idea.

I've been given a homework problem that requires me to show that the rings $\mathbb{C}[x,y]/(y - x^2)$ and $\mathbb{C}[x,y]/(xy-1)$ are not isomorphic.    This is my attempt at a solution:  For $\mathbb{C}[x,y]/(y - x^2)$, we can parametrize in the following way: $x = t$ and $y = t^2$. Then this ring is isomorphic to $\mathbb{C}[t]$.  For $\mathbb{C}[x,y]/(xy-1)$, we can parametrize $x = t$ and $ y = 1/t$. Then this is isomorphic to $\mathbb{C}[t, 1/t]$.   But $\mathbb{C}[t, 1/t]$ is not isomorphic to $\mathbb{C}[t]$.  Am I on the right track? If not, any helpful hints?


Say for example you have a function like below  var value = 1; function test(myVar) {   myVar = 2 } test(value) console.log(value) //prints out 1   Now, I have read that there are two things that happen in JS functions.   1) Javascript passes primitives by value. When "value" is passed as an argument to test(), a copy is created that is separate from the global variable "value". Therefore the "myVar" is a separate variable from "value"  2) Parameters in JS functions are really just local variables to the function. So, the "myVar" parameter has scope only inside of the test() function.  I know both statements are true, but which one of these statements causes console.log(value) to print out 1

What is the scope of variables in javascript? Do they have the same scope inside as opposed to outside a function? Or does it even matter? Also, where are the variables stored if they are defined globally?


I used the patch  of . I need to update the core, and apply the latest rebased version of that. However, the issue hasn't be marked Fixed, and I don't see any "patch file" to link in my composer.json. How can achieve this?

The new  is pretty neat to get the patches created/reviewed/merged. However, if you are using the patch via , we have a few options. Option 1: we can use the MR  to add the patch like this: "drupal/message": {   "3186091": "https://git.drupalcode.org/project/message/-/merge_requests/1.patch" }  but it means any new change pushed to the fork/branch, would get automatically added. As the patch file gets pulled on composer install. Option 2: We could use the fork's  and commit hash to keep the patch static, but once the MR merged, the fork might get deleted and breaks the build. Option 3: Obviously we can generate the patch from the MR and upload to the issue comment, but it seems a duplicate effort and hard to keep up with an active core issue (right now, we just need to update the patch file in composer.json or composer.patches.json) Is there a way to have the current patch file behavior in the new fork based issue queue? UPDATE: Both option 1 and (probably) option 3 are documented on


I recently was solving $\int_{0}^{\infty }\frac{x}{x^3+1}dx$. I wrote x as z to do contour integration and did the indentation for the pole at real axis but I don't know what to do with this odd function? How should I go further, write the z in terms of $\theta$ by euler formula? This is not homework question,I started learning complex analysis recently so I want to know the concepts used for such questions.

In my assignment I have to evaluate the (improper) integral, by means of the "comparison theorem". And note whether the function is divergent or convergent. $$\int^{\infty}_{0} \frac{x}{x^3 + 1}dx$$  The comparison theorem basically says     Suppose $f$ and $g$ are continuous functions with $f(x) \geq  (x)$ for $x \geq a$. Then:   A) if $\int^\infty_af(x)dx$ is convergent then $\int^\infty_ag(x)dx$ is convergent   B) if $\int^\infty_ag(x)dx$ is divergent then $\int^\infty_af(x)dx$ is divergent     So in other words: to prove if a given integral is convergent you find a function whose integral is larger than the given integral (within the boundaries). And to prove divergence you find a "divergent integral" whose function is always smaller than the function is question.  Now how should I go with this? Is there any trick to the above? Can I "see" (without calculator/automatic plotting) if an integral will be divergent or convergent (so to reduce time)?


I'm wondering if there is a general solution for $$S_a =\sum_{n=0}^{\infty} \frac{n^a}{n!}$$ with $a \in \mathbb{Z}$ and $a > 0$. From Mathematica: $$S_1 = 1e$$ $$S_2 = 2e$$ $$S_3 = 5e$$ $$S_4 = 15e$$ $$S_5 = 52e$$ $$S_6 = 203e$$

How can I find the value of the sum $\sum_{k=1}^{\infty}\frac{k^n}{k!}$? for example for $n=6$, we have $$\sum_{k=1}^{\infty}\frac{k^6}{k!}=203e.$$


I am familiar with Goldstein-level mechanics. However, here in this site, many sophisticated users use the term "on-shell" and "off-shell" conditions too often, which I did not encounter in Goldstein or similar. Can somebody explain the meaning of these two terms in classical mechanics through an example?

The definitions between on- and off-shell are given in .   Why is it so important in QFT to distinguish these two notions?


Ours is a SharePoint 2010 public website. To enable anonymous access to website required settings have been done.      Visitors are able to access website anonymously.   We Created a Survey and want visitors of website to be able to respond to the survey. Thus, we gave All permissions to Anonymous users on the survey.    However whenever we try to access survey page it prompts for login.  Kindly let know what we are missing.

I have tried many tutorials but I am still not able to figure out how to create Sharepoint surveys for which anonymous people can respond to.  Anonymous users can see the survey web part and the response button. But when an anonymous user clicks the button, it asks for a login within a popup. If the user clicks cancel, the page becomes blank with "401 UNAUTHORIZED" message.  I have enabled anonymous access for the web application, site collection and site. I have done the step of setting unique permissions on the survey list and letting anonymous users read and edit and add all responses.  I am still now able to solve it. Thanks in advance for any help. Even pointers to articles or books are appreciated.


i have this situation. A set of 5000 objects, 4950 blue and 50 green. From this set two people (person A and person B) fish separately 100 objects each and i would like to know if one of the two people has tricked me (not fishing blinded).     person A fished one set of 100 objects, 90 blue and 10 green.   person B fished one set of 100 objects, 99 blue and 1 green (that would be expected by chance)    Which test should i use? Could someone point me to a R example/solution about it? Thanks in advance


I'm Trying to use that command on bash variable, but I get error. I think that it is happened because of the {} in the command but I don't know how to solve it.  The command is:  add_Area="awk -F\t '{$1="area" FS $1;}1' OFS='\t'" Output="$( echo $some_csv_-var | ${add_Area})"   The error is:  awk: 1: unexpected character '''   fileawk: line 2: missing } near end of file

Or, an introductory guide to robust filename handling and other string passing in shell scripts.  I wrote a shell script which works well most of the time. But it chokes on some inputs (e.g. on some file names).  I encountered a problem such as the following:   I have a file name containing a space hello world, and it was treated as two separate files hello and world. I have an input line with two consecutive spaces and they shrank to one in the input. Leading and trailing whitespace disappears from input lines. Sometimes, when the input contains one of the characters \[*?, they are replaced by some text which is is actually the name of files. There is an apostrophe ' (or a double quote ") in the input and things got weird after that point. There is a backslash in the input (or: I am using Cygwin and some of my file names have Windows-style \ separators).   What is going on and how do I fix it?


Installed ubuntu recently on to the same disk with windows 7.  Currently, grub loads and I've made windows the first choice so it loads into windows.  However, I want to use the windows bootmanager instead of grub.  I went into BIOS and changed the boot order, but that didn't seem to have any effect.  Where does one go to make this change?  Thanks in advance.

How do I set the bootloader so that in my dualboot with Windows 7/Ubuntu 11.04, Windows start up as standard instead of Ubuntu?


The link to the question above :   The votes show up as a breakdown of upvotes and downvotes. This bug seems to be applicable for both questions and answers as show in the above screenshot.

I'm using the official Stack Exchange mobile app for iOS or Android, and  My app crashed! It doesn't look good on my new smartphone. It won't run after I updated my device. I noticed another bug. I have an idea for a new feature which is currently not in the app.  How do I report bugs with or request features for the iOS and Android apps? Also:  I've used the built-in functionality of the app to report a bug or submit a feature request. Did I do the right thing? The app prompted me to post on Meta after an error occurred. Should I post about it here? I'm wondering why the latest version is from 2017. I've heard rumors that the apps are no longer supported; is that true? I can't find the app on my device's app store anymore! Where did it go?     We get a lot of bug reports from users about the mobile apps, which are unsupported, and at the moment, there is no centralized Q&A pair for those to be closed as duplicates of (the relevant answers are spread across multiple unrelated questions). This question is an FAQ proposal, to serve as a directly-related duplicate target for those questions.


What advantages will a 35mm lens will give me if I already owe an 18-55mm. Isn't the 35mm somewhat included in the other one?  It may be a silly question, but I am new in photography and trying to understand the lenses.

I have the Nikon kit lens that came with a D5100 — the kit lens is  . I was thinking of getting a fast lens and I am looking to buy the .  Should I consider 35mm or instead buy a 55-200mm for better range?


prove that characteristic of $\mathbb{Z}[i]/<2+2i>$ is $4$ and it has exactly $8$ elements.   I need to know, is this below approach works for characteristic?   My attempt  I saw $c+di\in <2+2i>$ if $c+di=(2+2i)(a+bi)$ for some $a+bi\in\mathbb{Z}[i]$.  i.e. if  $c+di=(2a-2b)+ (2a+2b)i$ for some $a, b\in\mathbb{Z}$   i.e. if $2a-2b=c$ and $2a+2b=d$   i.e if $c+d=4a$ and $d-c=4b$   i.e if $\frac{c+d}{4}, \frac{d-c}{4}\in\mathbb{Z}$  So that from above, if we consider $4(p+qi)$ for any $p+qi\in\mathbb{Z}[i]$ we saw $c=4p$ and $d=4q$ and hence $\frac{c+d}{4}=p+q\in\mathbb{Z}, \frac{d-c}{4}=q-p\in\mathbb{Z}$. So that,   $4(p+qi)\in <2+2i>$ for any $p+qi\in\mathbb{Z}[i]$.  Hence for every $a+bi+ <2+2i>\in\mathbb{Z}[i]/<2+2i>$ we have,   $4(a+bi+ <2+2i>)= 4(a+bi)+<2+2i>=<2+2i>=\text{ zero element of ring  }\mathbb{Z}[i]/<2+2i>$  Hence characteristic of given ring is $4$.   Further, i dont know how to show given ring has exactly $8$ elements. I saw various post on MSE for the question of above type but unable to understand the answer( I understand the case for $\mathbb{Z}[i]/<a+bi>$ when $a$ and $b$ are relatively prime. But here $a$, $b$ are not prime)   Please help.

That's it. I want to do this quotient,  $\mathbb Z [\sqrt{-11}] / (1+\sqrt{-11})$. My first idea was to see which elements are in the ideal:  $(a+b\sqrt{-11})(1+\sqrt{-11}) = a+ a\sqrt{-11} + b\sqrt{-11} -11b$  So I want to make and application who send this elements to $0$, and then see the Kernel of the application and apply the Isomorphism Theorem.  Any ideas?


I read about Rutherford's failed attempt to describe the atomic model. Then I read about Bohr's model and his postulates. Ok, that was fine. But then I read in my book  a statement that shocked me:     One and the most important discovery of quantum mechanics was that electron behaves as wave....   Now, how can an electron, a particle revolving around the nucleus in a quantized orbit, be a wave?

I often hear about the wave-particle duality, and how particles exhibit properties of both particles and waves. However, I wonder, is this actually a duality? At the most fundamental level, we 'know' that everything is made up out of particles, whether those are photons, electrons, or maybe even strings. That light for example, also shows wave-like properties, why does that even matter? Don't we know that everything is made up of particles? In other words, wasn't Young wrong and Newton right, instead of them both being right?


The quality of the picture isn't really good. I found out the first 3 derivatives and sort of did some guesswork. I don't know if the nth derivative is correct and l don't know how to get it into a closed-form.  Is there another approach to finding the nth derivative that is easier?  Is this method correct ?

How can we substitute $r \cos \alpha$ and $r \sin \alpha$ for $a$ and $b$?   How, on successive differentiation, is there another $r$ multiplied?


I am looking at some code in javascript  var numCombos = 1<<numActive;   numActive = 8 returns numCombos = 256  what does << means?

I've been attempting to learn C in my spare time, and other languages (C#, Java, etc.) have the same concept (and often the same operators) ...   What I'm wondering is, at a core level, what does bit-shifting (<<, >>, >>>) do, what problems can it help solve, and what gotchas lurk around the bend? In other words, an absolute beginner's guide to bit shifting in all its goodness.


The camera is viewing the city. I scaled the camera made it bigger.    Then i click on numpad_0 and see    But if i will make a new project with only the cube in the start and will click the numpad_0 it will lock and show the cube.  Why it's not showing the city ?

In this tutorial: Create a Realistic City - Blender Tutorial  At 10:36 he presses CtrlAltNumpad 0  When I do the same I get nothing but an empty view. Then he goes back to object mode and can play with the camera zoom in out.  I'm now in edit mode and everything selected.    And more or less I'm in same position as he is.  Now when I press CtrlAltNumpad 0 I get this:    Not even close to what he did.


I know that molecular oxygen (O2) serves as the electron acceptor in Complex IV of the electron transport chain, which maintains the proton gradient that produces ATP for, as far as I know, every cell in the human body.  Is this the only reason we need molecular oxygen for life, or are there other vital functions (i.e. necessary for life) that molecular oxygen serves within the human body?  Edit  For clarification, there are probably well over a million oxygen-containing compounds, from water all the way up to the largest proteins, which perform repeatable roles in basically every system of the body. But in cases where oxygen is exhausted, specifically consumed requiring a continuous supply of new oxygen, what roles does oxygen serve with the exception of serving as electron acceptor in Complex IV of the electron transport chain?

My biology teachers never explained why animals need to breathe oxygen, just that we organisms die if we don't get oxygen for too long. Maybe one of them happened to mention that its used to make ATP. Now in my AP Biology class we finally learned the specifics of how oxygen is used in the  due to its high electronegativity. But I assume this probably isn't the only reason we need oxygen.   What other purposes does the oxygen we take in through respiration serve? Does oxygen deprivation result in death just due to the halting of ATP production, or is there some other reason as well? What percentage of the oxygen we take in through respiration is expelled later through the breath as carbon dioxide?


I'm an a-level student. While studying quantum physics I came across this statement:"According to electromagnetic theory an accelerating charge emits energy".  The bottom-line was that an electron (which is an accelerating charge in an atom) should, according to this, emit electromagnetic radiation, but it does not.  Can someone please explain the electromagmetic theory and why the electron does not emit energy? Please  keep in mind I'm only an a-level student.

It's an old-new question (I found only one similar question with unsatisfactory (for me) answer: )  It's strange for me how all books simply pass by such an important question, and mentioning strange and mathematically unsupported reasons such as:   orbits are stationary (while as I know this is just idealization, there is no stationary orbits in reality even for Hydrogen)  electrons are actually not localized due to uncertainty principle, thus they have no acceleration (while obviously in a non-spherically symmetric orbits a kind of "charge acceleration distribution" always exist) vacuum fluctuations play a major role (according to QED).   I'm not interested in how Bohr or Schroedinger explained it, I want to see a rigorous proof with QM, QED or maybe even the standard model as whole. I would like to see how this question was closed.


I cant solve this simple problem. i have Main activity,it has a toolbar and a fragment.  Main Activity xml:  <?xml version="1.0" encoding="utf-8"?> <LinearLayout     android:orientation="vertical"     xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:app="http://schemas.android.com/apk/res-auto"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     tools:context="com.dimfcompany.macapp2.MainActivity">      <android.support.v7.widget.Toolbar         android:id="@+id/toolBarTest"         android:titleTextColor="@color/macYellow"         android:title="dsfsdf"         android:layout_width="match_parent"         android:layout_height="60dp"         android:background="@color/macRed">       </android.support.v7.widget.Toolbar>      <fragment         android:id="@+id/testfrag"         android:name="com.dimfcompany.macapp2.fragtest1"         android:layout_width="match_parent"         android:layout_height="match_parent"         ></fragment>  </LinearLayout>   MainActivity Java  public class MainActivity extends AppCompatActivity {  Toolbar toolbar;  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_main);     toolbar=(Toolbar)findViewById(R.id.toolBarTest);     toolbar.setTitle("BLDFLDSF"); }  public void setToolBarText(String text) {     toolbar.setTitle("dsfsdfsdf"); } }   Setting title in MainActivity.java onCreateMethod works. Then i want my title to change if fragment content changes. In my fragment I have the onViewCreated() method and I'm trying to change the title from this method.  public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {     ((MainActivity)getActivity()).setToolBarText("FragmentTitle");      toolbar=(Toolbar) view.findViewById(R.id.toolBarTest);     toolbar.setTitle("FragmentTitle"); }   I tried changing it directly and changing with calling method setToolBarText in MainActivity.  I always have an exception   Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.widget.Toolbar.setTitle(java.lang.CharSequence)' on a null object reference   What i am doing wrong?

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


Is there a way to utilize python to copy files from one machine's program files directory to other local nodes within a domain? I need to automate a manual process of running antivirus updates.

How do I copy a file in Python?  I couldn't find anything under .


I was wondering if or which tests can be used to test if two samples come from the same population for data that is not normally distributed?

I have a fundamental question: is it reasonable to use a statistical test to find out if 2 datasets are similar or not? Some comments have called out the T-test as being unable to answer that question. Why is the T-test insufficient? Furthermore, what other tests are there to determine differences in distributions for the two sample problem.


Can I use the same footnote with exact same words in two different chapters? The ibid. is used in case of a repetition of the footnote exact above. But what if I want to use the same footnote in different chapters.

I have to cite the same reference two times on each footnote on different pages. Suppose footnote note 1 on page 1 is the same reference as footnote 7 on page 4. Should I provide different serial numbers for the footnote or the same?  Can I repeat the same reference twice with different footnote numbers, or should I us the same footnote number for identical references? I cannot write "ibid", as the footnotes are not in sequence.


MWE  \documentclass[a4paper,11pt]{article}  \usepackage{tikz} \usepackage{tipa}  \usetikzlibrary{positioning} \usepackage{pgflibraryshapes}  \newcommand*\chiuan[1]{% \tikz[baseline=(x.base)] \node[draw,ellipse,very thick,fill=white,inner sep=2pt](x){$\displaystyle#1$};\!}  \begin{document} \textramshorns \textbabygamma $\uparrow\chiuan{A}$ \end{document}   Output Missing } inserted. How fix it?

I copied the following command from a post on this web site.  \newcommand{\parallelsum}{\mathbin{\!/\mkern-5mu/\!}}   I have used it in other code and it has typeset the symbol for parallel lines nicely.  Why is it not compiled in this code?  (I try to use it in the last sentence.  I put a % in front of it so that the code will compile.)  \documentclass{amsart} \usepackage{amsmath} \usepackage{amsfonts}  \usepackage{tikz} \usetikzlibrary{calc,angles,positioning,intersections,quotes,decorations.markings,decorations.pathreplacing,backgrounds,patterns}   \usepackage{graphicx,tipa}% http://ctan.org/pkg/{graphicx,tipa} %This command typesets an arc symbol over letters. \newcommand{\arc}[1]{%   \setbox9=\hbox{#1}%   \ooalign{\resizebox{\wd9}{\height}{\texttoptiebar{\phantom{A}}}\cr#1}} %This command has LaTeX typeset the symbol for parallel lines. \newcommand{\parallelsum}{\mathbin{\!/\mkern-5mu/\!}}   \begin{document}  \noindent {\textbf{Proposition}} \vskip1.25mm {\em $\overline{AB}$ and $\overline{CD}$ are chords in a circle that do not intersect. They are parallel if, and only if, $\arc{AC} = \arc{BD}$.} \vskip0.2in  \noindent {\textbf{Demonstration}} \vskip1.25mm \noindent $\overline{AB}$ and $\overline{CD}$ are chords in a circle centered at $O$. $\arc{AC} = \arc{BD}$ if, and only if, ${\mathrm{m}}\angle{AOC} = {\mathrm{m}}\angle{BOD}$. \begin{equation*} {\mathrm{m}}\angle{ABC} = \frac{1}{2} \, {\mathrm{m}}\angle{AOC} \qquad \text{and} \qquad {\mathrm{m}}\angle{BCD} = \frac{1}{2} \, {\mathrm{m}}\angle{BOD} . \end{equation*} So, ${\mathrm{m}}\angle{AOC} = {\mathrm{m}}\angle{BOD}$ if, and only if, ${\mathrm{m}}\angle{ABC} = {\mathrm{m}}\angle{BCD}$. $\angle{ABC}$ and $\angle{BCD}$ are alternate interior angles. ${\mathrm{m}}\angle{ABC} = {\mathrm{m}}\angle{BCD}$ if, and only if,  %$\overline{AB} \parallelsum \overline{CD}$.  \end{document}


I am asked for sudo password frequently while entering sudo commands in the terminal, but I can't remember whether I am a sudo user or not. Similarly I don't know any superuser do password. I am confused in this password matter.  EXAMPLE:  $ sudo aplay -l [sudo] password for deepak:   I don't know what to do in the previous password asking command. Similarly like above example, for many times I am asked for sudo password. How can I resolve it?

What is the default password of the sudo? I visit some forums, it tells that the default password is password, but it doesn't work, how can I determine the password?


I am facing the problem of proving $z^2 \equiv 1\pmod 8$ for all odd $z\in\mathbb{N}$. What I know is that for each $z \in \mathbb{N}$, $z = m^2-1$, for $m\in\mathbb{N}$. What I also know is that in a least residue system there are the following solutions for all $z\in\mathbb{N}$. The solutions are: $$n \equiv 1,3,5,7$$ Which lead to solutions of the initial problem: $$n = 8 \cdot k + 1\\ n = 8 \cdot k + 3 \\ n = 8 \cdot k + 5 \\ n = 8 \cdot k + 7$$ where $k\in\mathbb{N}$. My question now is how I can transfer my knowledge about the solutions for all $n\in\mathbb{N}$ to the key problem where $n$ must be an odd number and the proofs needs to be done for all odd $n$. I also know that $8 = 2^3$ which leads to $$(2\;\cdot\;m\;-\;1)^2\;\equiv\;1\;\pmod 8$$ $$(2\;\cdot\;m\;-\;1)^2\;\equiv\;1\;\pmod {2^3}$$ but I do not know what this tells me right now.

Let $p>3$ be a prime. Prove that $24 \mid p^2-1$.   I know this is very basic and old hat to many, but I love this question and I am interested in seeing whether there are any proofs beyond the two I already know.


I have a website that I would like to monetize with Adsense. I keep receiving the same feedback from Adsense when submitting :  Site Behavior: Navigation As stated in our Program policies, sites or apps displaying Google ads should provide substantial and useful information to the user. Users should be able to easily navigate through the site or app to find what products, goods, or services are promised. Examples of misguided navigation include, but are not limited to:  False claims of downloadable or streaming content Linking to content that does not exist Redirecting users to irrelevant and/or misleading webpages Text on a page unrelated to the topic and/or business model of the website.   I submitted the web site multiple times, trying to solve potentially problematic issues but I keep receiving the same feedback. Do anyone have experience in solving similar issues or have an idea what I should do ? The url of the site is : sun dash direction dot com

I am having a dilemma with Google AdSense over at my blog. It seems the violation is in respect to one specific page.   The violation is: Site Behavior: Navigation Examples of misguided navigation include, but are not limited to:     False claims of downloadable or streaming content Linking to content   that does not exist Redirecting users to irrelevant and/or misleading   webpages Text on a page unrelated to the topic and/or business model   of the website.   A common mistake for this violation is broken links on the page. I have fixed all of those. Any request for further specifics from Google is futile.   Anyone have experience with this issue?


Can someone explain why the total number of ways of selecting one or more of n different things is $2^n -1$ and that of selecting zero or more things out of $p$ identical things is $p+1$. I am confused in this alot plzz help.

I don't understand why a set with n elements has 2^n subsets. How is this calculated? I realize that {123} has empty set - 1-2-3-1,2-1,3-2,3-1,2,3 but how is the formula derived?


I submitted my visa application on 13th November and my visa status is "on hold" it  has been one month and two weeks!!! No one is telling me anything. What should i do?

I applied for short stay visa for Belgium. The application status on their website is showing status "On Hold". What does this mean? Is it a bad thing?  All I am asking is what does "On Hold" mean?


Imagine we throw a hot pie at somebody's mug. By the time it arrives at destination, it became slightly less hot.  Imagine Chelyabinsk meteor enters the atmosphere. It's cold when it enters yet it quickly becomes very hot and explodes violently.  But where's the border? At which speed does object traveling through atmosphere stops losing warmth and starts gaining it from friction? Does a bullet fired from firearm cool or warm up during flight?

I understand that air friction cools off an object at low speeds. For example, if you blow on a spoon of hot soup, it cools off. Or if you swing a hot frying pan in the air, it cools off faster.  But at higher speeds, the situation changes in the opposite. For example, consider a meteor falling on Earth. It is so fast that it heats up to such a high temperature that it burns into ashes.  What is the critical speed in which an object starts to heat up?  For example, consider a spherical object with radius of 1 meter. Let its density be 1 g/cm3 if needed. And let the air pressure be 1 atm. Assume that the temperature of the object is 400 K and the temperature of the air is 300 K. Also assume that the specific heat constant of the material is 1 cal/(gr.K). What is the critical speed for this object after which its temperature starts to rise above 500 K?


I am trying to identify a film that I saw a trailer for around 5 or more years ago. This century at least. The film was about a peaceful, low technology (maybe rural,) community isolated by a forest or perhaps a wall. I don't think any of the actors or anyone else associated with it were well known and I don't think the film was popular. I think it was American made but I'm not sure. It was similar to The Village, but I think the place was peaceful and without a threat from outside. It kind of had a similar conveyance of perspective as in the book Phoenix Without Ashes. I wanted to see the film but it dropped out of the theaters quickly. The recent film "The Maze Runner" reminded me of it. The film in question had at least one pair of young people, a man and a woman, who were protagonists. I think the young man said he was going to venture outside of the community into the unknown dangers, hence, the film's conflict. This missing knowledge has bothered me for a while. I'm sure you can relate.

Yes, the plot is pretty weird. There is this "star" (whose incarnation is a woman dressed in white) and some random guy who falls in love with her. There's the arc of "if you cross a specific border you'll die" which applies to our lady "star". Well, I also remember that they have some kind of a tubular case, and when one opens it, lightning files out.  I watched the film somewhere around 2010, it's in English and when I try to remember it, I get the vibe of a mediocre Hollywood fantasy romance.


I have made a simple sketch of how I think the system looks like. My problem is:   I always thought that the angle the balance makes is a function of the difference between the two masses (or the difference in torques): a small difference in mass will give a small angle, and in the limit the angle will be equal to zero when both masses are equal.  Now I cannot derive that from the picture. As I see it now, the torques will always be different, no matter at which angle the balance is tilted, since both torques scale with the same sine. This leads to a equilibrium only when the balance is completly vertical (or in my figure pressing against the triangle), which is contra-intuitive. Moreover, when the masses are the same, equilibrium would be obtained at every angle as can be seen from my figure (torques are equal independant of the angle of the balance), which would contradict with the working of a balance.  I see that my question kind of overlaps with , but the accepted answer doesn't solve my problem.   (One way to solve my problem, would be to draw a half circle instead of the triangle in my figure, so the lever of the torque becomes a function of the angle. But somehow in my head the schematic drawing of a balance is with a triangle in the middle. Is this perhaps the simple solution I'm looking for?)

I'm talking about a Weighing Balance shown in the figure:    Press & Hold on onside of the horizontal beam and then release it. It makes some oscillations and comes back to equilibrium like shown in the figure.  Both the pans are of equal equal masses. When the horizontal beam is tilted by an angle using external force, the torque due to these pan weights are equal in magnitude & opposite in direction. Then why does it come back to it position? What's making it to come back?


Regarding the fact that this is still somehow a hot topiс in English language-speaking communities I need to stress out that is a serious and respectful question without even a trace of intention to mock someone's preferences or to doubt one's right to self-identification. Quite often in twitter profile people point out personal pronoun they prefer. As a non-native speaker what I don't understand why one need to provide the pronoun in two cases. For instance, consider following profiles: "he / him" or "she / her". If one prefer to be referred "he" in Nominative case, doesn't it imply that in Dative/Accusative (or whatever is the right term in English) they will expect to be referred as "him" and for Genitive they will prefer "his". So, the question is: why there it's usually common to list two forms and why exactly this two forms: not "he" / "his", for instance.

It is becoming more common for people to explicitly state the pronouns to be used in addressing themselves: he/him, she/her, or they/them. For example, a name tag for a conference might read:  Cory Lopez Some Company She/Her   Usage seems to have settled on the singular they and them as gender neutral pronouns. Alternatives that were once widespread in niche communities, such as sie/hir, seem to have died out.   Whether or not one agrees with this language  shift, the pairing between subject and object case is fixed.  It's difficult to imagine someone who uses "he" as his subject case using anything but "him" as object case, and it's even harder to imagine that such a person would succeed in getting people to use a non-obvious collection of personal pronouns. (And you may see what I did -- flat out assumed that "he" and "his" automatically go together.)  What are the roots of the practice of presenting subject and object case pronouns as opposed to just subject case, subject and possessive, or some other combination?   (Note: I am not interested in a discussion of the gender politics and cultural shifts involved, just the mechanics of how the current representation was chosen.)


Calculate the determinant      $$ \begin{vmatrix} 1 & 2 & 3 & \cdots & n-1 & n \\ 2 & 3 & 4 & \cdots & n & 1 \\ 3 & 4 & 5 & \cdots & 1 & 2 \\ \vdots & \vdots & \vdots & & \vdots &  \vdots \\ n-1 & n & 1 & \cdots & n-3 & n-2 \\ n & 1 & 2 & \cdots & n-2 & n-1 \end{vmatrix} $$   I know the answer is $(-1)^\frac{n(n-1)}{2}\frac{n^{n-1}(n+1)}{2}$, and it is possible to solve with a tedious amount of linear elementary transformations, i.e. first you add other columns to the first column, and then subtract the first column from other columns, blah blah. However, is there a cleverer and faster way?

Find the determinant of the following matrix in the terms of $a_1,a_2,\cdots,a_n$ explicitly, $$ \begin{bmatrix} a_1 & a_2 & a_3 & \cdots & a_n\\ a_2 & a_3 & a_4 & \cdots & a_1\\ a_3 & a_4 & a_5 & \cdots & a_2\\ \vdots & \vdots & \vdots & \ddots & \vdots\\ a_n & a_1 & a_2 & \cdots & a_{n-1}\\ \end{bmatrix} $$ When the determinant is zero?


After I upgraded my Ubuntu 18.04 to 20.04, I got a couple of unspected surprises and saw that the icons on the ubuntu's Desktop have a white box/space arround the icon that profoundly annoys me. (as you can see in the image below)  On top of that it seems that I can't select multiple folders and move them around freely. Is there any way to solve this problem??

I've just upgraded from Ubuntu 18.04 to its newest LTS version - 20.04. While it comes with some interesting changes, the Desktop icon system was messed up in my opinion. When you hover the mouse cursor over the icons, you see a huge space marked around them that cannot be violated (as you can see in the image below) so that they need to be placed very far apart from each other.  18.04 allowed you to place icons much closer to each other and didn't have that marked space around them. This new way leaves much less space on the Desktop to organize large amounts of icons - including folders, files and shortcuts. Is there a way I can significantly reduce the size of icons and their "spaces" or go back to the old system of organizing files? On "Settings", there is a tool to change the size of Dock icons, but not of Desktop icons.  Also, every time I move or delete something, the Desktop "flashes" and the icons seem to rearrange themselves automatically, nothing of which happened in 18.04. I also can't move anything directly to the Desktop; I need to move to the Desktop folder on Nautilus. This makes me start to think about downgrading Ubuntu back to 18.04.


when slope m=0 it is a straight horizontal line and when slope is vertical line..I mean what is the value for slope m to get vertical line?I think that for vertical line, slope is m=0 also.

The curve shows :   x goes 1 to right  y goes up by 3   the SLOPE is defined as the ratio of rise to the step  SLOPE = rise/step = 3/1 = 3  Now that :   Horizontal line has SLOPE of 0. Vertical line has SLOPE of undefined.   It makes sense for me to imagine horizontal line has SLOPE of 0 since there is no rise at all. But why the vertical has SLOPE of undefined.?


As already asked here (), I would like to avoid the indentation after a theorem.  The accepted answer () suggests adding  \AfterEndEnvironment{thm}{\noindent\ignorespaces}   to the theorem definition.  While this solution does work for me, it introduces new, undesired vertical space between two theoreoms when they are not separated by some text paragraph.  MWE:    \documentclass{scrbook}  \usepackage{amsthm}  \theoremstyle{plain} \newtheorem{thm}{Theorem}[chapter] \newtheorem*{thm*}{Theorem}  \usepackage{etoolbox} \AfterEndEnvironment{thm}{\noindent\ignorespaces}   \begin{document}  \chapter{Chapter}  \section{Section}  Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text.   \begin{thm}     Theorem. Theorem. Theorem. Theorem. Theorem. Theorem. Theorem. Theorem. Theorem. Theorem.  \end{thm}  Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text.   \begin{thm}     Theorem. Theorem. Theorem. Theorem. Theorem. Theorem. Theorem. Theorem. Theorem. Theorem.  \end{thm}  \begin{thm}     Theorem. Theorem. Theorem. Theorem. Theorem. Theorem. Theorem. Theorem. Theorem. Theorem.  \end{thm}  Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text.   \end{document}

I use the amsthm package and dont want lines which start right after the theorem environment to be indented. I consulted the manual of the package and it said to define a new theorem style. I expected the following MWE to accomplish this task.  \documentclass[12pt,a4paper]{scrreprt}  \usepackage{amsthm} \newtheoremstyle{abcd}% name   {}%      Space above, empty = `usual value'   {}%      Space below   {\itshape}% Body font   {}%         Indent amount (empty = no indent, \parindent = para indent)   {\bfseries}% Thm head font   {.}%        Punctuation after thm head   {.5em}% Space after thm head: \newline = linebreak   {}%         Thm head spec \theoremstyle{abcd}  \newtheorem{defn}{Definition} \begin{document} \begin{defn} Some defintion \end{defn} This sentence shouldn't be indented. \end{document}   However, I end up with this   That is what I would expect (obtained using a noindent right after the theorem environment ends)


I'm a computer programmer and I have no idea about geographic things. I have got a long algorithm with a lot of computings, computed from a previous computed field. There are 7-8 computed fields and they refer to each other, so it's a bit complex algorithm. There is a chance, that the original values in the beginning of the long algorithms will change (some empty columns will have values and the algorithm needs to compute from them). How can I make this to be as automatic as it can be? I think there is other solution than run the python scripts on the fields again and again.

When editing I want to be able to change the attributes of one field and upon doing this allow for the automatic update of another field in the same attribute table.   Essentially I have one layer with a code, description and legend information.   I would like to be able to edit the code and have the description and the legend information update with this edit with its correct description and legend information.   Is there any way to do this within ArcMap's tools or an associated script?


I need someone's help to make me clear with both definition of continuity and uniform continuity. Let's say a function is continuous on a closed interval $[a,b].$ So what I can relate from this case, if we use the definition of continuity then we can see that delta is depending on the epsilon and an element of the interval $[a,b].$ However, if the function is uniformly continuous, the delta is only depending on the epsilon. Can anyone explain the difference between both definitions? Thanks.

I understand the geometric differences between continuity and uniform continuity, but I don't quite see how the differences between those two are apparent from their definitions. For example, my book defines continuity as:  Definition 4.3.1. A function $f:A \to \mathbb R$ is continuous at a point $c \in A$ if, for all $\epsilon > 0$, there exists a $\delta > 0$ such that whenever $|x-c| < \delta$ (and $x \in A$) it follows that $|f(x)-f(c)| < \epsilon$.  Uniform continuity is defined as:  Definition 4.4.5. A function $f:A \to \mathbb R$ is uniformly continuous on $A$ if for every $\epsilon > 0$ there exists a $\delta > 0$ such that $|x-y| < \delta$ implies $|f(x)-f(y)| < \epsilon$.  I know that in Definition 4.3.1, $\delta$ can depend on $c$, while in definition 4.4.5, $\delta$ cannot depend on $x$ or $y$, but how is this apparent from the definition? From what appears to me, it just seems like the only difference between Definition 4.3.1 and Definition 4.4.5 is that the letter $c$ was changed to a $y$.   My guess is that the first definition treats $c$ as a fixed point and it is only $x$ that varies, so in this case, $\delta$ can depend on $c$ since $c$ doesn't change. Whereas for the second definition, neither $x$ or $y$ are fixed, rather they can take on values across the whole domain, $A$. In this case, if we set a $\delta$ such that it depended on $y$, then when we pick a different $y$, the same $\delta$ may not work anymore. Is this somewhat a correct interpretation?  Anymore clarifications, examples, would be appreciated.


I need to evaluate the following integral  $$ \int_{-\infty}^\infty e^{-2x^2+7x} dx$$  I've tried u substitution, integration by parts, and splitting apart the exponent and don't seem to be making any progress.   Thanks for your help

I'm trying to solve this integral: $$\int_{-\infty}^\infty e^{-x^2-x}dx$$ WolframAlpha shows this to be approximately $2.27588$. I tried to solve this by integration by parts, but I just couldn't get there. I'd be glad if someone could show me how to do it.   I've included my attempt at the problem below:  Note $\int_{-\infty}^\infty e^{-x^2-x} = \int_{-\infty}^\infty e^{-x^2}e^{-x}dx$. Then we can integrate by parts. Let $u(x) = e^{-x^2}$. Then $u'(x) = -2xe^{-x}$. Let $v'(x) = e^{-x}$. Then $v(x) = -e^{-x}$.  Then $u(x)v'(x) = u(x)v(x) - \int v(x)u'(x)dx$, i.e. $$\int_{-\infty}^\infty e^{-x^2}e^{-x}dx = -e^{-x^2}e^{-x} - \int e^{-x}2xe^{-x}dx = -e^{-x^2-x} - 2\int e^{-2x}xdx$$  Then we integrate $\int e^{-2x}xdx$ by parts. We pick $u(x) = x$, $u'(x) = dx$, $v'(x) = e^{-2x}$, and $v(x) = \int e^{-2x} dx = \frac {-1}{2} e^{-2x}$ by u-substitution. Skipping some steps, it follows that  $$\int e^{-2x}xdx = -\frac{1}{4}(e^{-2x})(2x+1)$$ Then  $$ -e^{-x^2-x} - 2\int e^{-2x}xdx = -e^{-x^2-x} + \frac{1}{2}(e^{-2x})(2x+1)$$ Which, when evaluated numerically, doesn't yield the desired result. So there's a problem here. Maybe someone else knows how to do this.


I would like to have a good idea on how to design clinical trials in oncology. In that issue, I am looking for a compact book that could give me a good overview, with the emphasis on statistical considerations. Would you have a recommendation for me?  Thank you in advance, Marco

I'm an undergraduate statistics student looking for a good treatment of clinical trials analysis. The text should cover the fundamentals of experimental design, blocking, power analysis, latin squares design, and cluster randomization designs, among other topics.   I have an undergraduate knowledge of mathematical statistics and real analysis, but if there's a fantastic text that requires a bit higher level of statistics or analysis, I can work up to it.


Suppose $f:[a,b] \rightarrow \mathbb{R}$ is a function which is (i) differentiable at all $x \in (a,b)$ (ii) the right-derivative at $x=a$ exists and the left-derivative at $x=b$ exists.   Does it follow that $f$ is absolutely continuous?

Suppose $f$ is differentiable everywhere on $[0,1]$. Must $f$ be absolutely continuous on $[0,1]$? I know this is true if $f'$ is integrable but I'm not sure in this more general case.


When working with relatively small units (mm) and small object I am not able to zoom in so I can see the object. It looks like part of the view is obscured (as shown on screenshot).

I have created a simple model here   When rendering it the end of it is cut off   How can I get the camera to render a longer distance?


sed fails with the following error:  sed: -e expression #1, char 72: unterminated `s' command   Here is my script:  #!/bin/bash OLD="$(cat /etc/fstab | grep /tmp)" NEW="$(cat /etc/fstab | grep /tmp | sed 's/,noexec//')" sed "s|$OLD|$NEW|" /etc/fstab   I don't see how it is unterminated, I have 3 | symbols as delimiters and am using double quotes since I have variables in the statement.  I have read many other questions on stack overflow and other blogs that are similar, but none that were using two variables like this.  Edit to show fstab:  LABEL=/boot    /boot    xfs    defaults,nodev,nosuid,noexec    1    2 /dev/mapper/LV_tmp    /tmp    xfs    nodev,noexec    1    2 proc    /proc    proc    defaults    0    0

In my bash script I have an external (received from user) string, which I should use in sed pattern.  REPLACE="<funny characters here>" sed "s/KEYWORD/$REPLACE/g"   How can I escape the $REPLACE string so it would be safely accepted by sed as a literal replacement?  NOTE: The KEYWORD is a dumb substring with no matches etc. It is not supplied by user.


If the OR of developing dementia when living with people versus living alone is 0.36 (95% CI 0.16-0.80) what would be the OR of developing dementia when living alone versus living with people?   Would it be 1/0.36?

I'm somewhat new to using logistic regression, and a bit confused by a discrepancy between  my interpretations of the following values which I thought would be the same:    exponentiated beta values  predicted probability of the outcome using beta values.    Here is a simplified version of the model I am using, where undernutrition and insurance are both binary, and wealth is continuous:  Under.Nutrition ~ insurance + wealth   My (actual) model returns an exponentiated beta value of .8 for insurance, which I would interpret as:     "The probability of being undernourished for an insured individual is .8 times the probability of being undernourished for an uninsured individual."   However, when I calculate the difference in probabilities for individuals by putting in values of 0 and 1 into the insurance variable and the mean value for wealth, the difference in undernutrition is only .04. That is calculated as follows:   Probability Undernourished = exp(β0 + β1*Insurance + β2*Wealth) /                              (1+exp(β0 + β1*Insurance + β2*wealth))   I would really appreciate it if someone could explain why these values are different, and what a better interpretation (particularly for the second value) might be.     Further Clarification Edits As I understand it, the probability of being under-nourished for an uninsured person (where B1 corresponds to insurance) is:  Prob(Unins) = exp(β0 + β1*0 + β2*Wealth) /               (1+exp(β0 + β1*0+ β2*wealth))   While the Probability of being under-nourished for an insured person is:  Prob(Ins)= exp(β0 + β1*1 + β2*Wealth) /            (1+exp(β0 + β1*1+ β2*wealth))   The odds of being undernourished for an uninsured person compared to an insured person is:  exp(B1)   Is there a way to translate between these values (mathematically)? I'm still a bit confused by this equation (where I should probably be a different value on the RHS):  Prob(Ins) - Prob(Unins) != exp(B)   In layman's terms, the question is why doesn't insuring an individual change their probability of being under-nourished as much as the odds ratio indicates it does?  In my data, Prob(Ins) - Prob(Unins) = .04, where the exponentiated beta value is .8 (so why is the difference not .2?)


Is there a way to set environment variables for a single command on Windows like ENVVAR=abc command on Unix?  Variables set by set command on Windows seem to remain for the following commands, but this is not what I want.

In Bash, I can do EDITOR=vim command and command will be run with EDITOR set to vim, but this won't affect the value of EDITOR in the shell itself. Is it possible to do this in cmd.exe?


If electrons move from the negative side to the positive side in a battery(thus creating electricity when they flow), why doing the same circuit with two separate batteries doesn't create electricity?    As you can see in the diagram electrons should be moving from A to B because the wire is connected in A - side(high pressure) to B + side(low pressure)...so, they should flow...why they aren't?  I've heard some people say that it is because of the balance(not enough to keep the constant flow). But then shouldn't it work if battery A has less charge than B?

I don't understand this..maybe there is something wrong with my understanding of battery or electricity.  I am learning about electricity more deeply this time. So please bear with me.  So lets begin with what I know:   follow of current occurs when there is voltage drop. voltage drop happens when there is imbalance in charge. a battery is basically two separated chemicals. One side with electrons to spare and other side that needs electron to balance itself. which is imbalance in charge. When both sides are connected + side snatches electrons from - side. (And if there is a medium, conductor, then first electrons are taken from conductor that in turn snatches from - side, which not being able to keep electrons lose them and give up those electrons, we label it as excessive.)   The analogy i was taught with used marbles in pipe... When one side has excessive marbles And this pipe is connected to other side that has no marbles the marbles will instantaneously start falling out so even though marbles from container with excessive marbles haven't traveled there yet, they still start falling because filled side marbles are pushing marbles in pipe and which in turn push the last marbles in pipe out.   1st, Aren't electrons pulled by atoms that can use more electrons, and not move because one side is overfilled with electrons so they can't wait to push some out.  Questions:    if I connect a conductor to positive side of a battery, shouldn't it make all electrons/marbles fall into empty container as empty container will pull marbles as atoms need electrons? if I connect two batteries' only opposite sides to each other shouldn't they drain (balance the each other out, cancelling all - & + charges)?


I'm following along with Blender's docs, trying to apply a texture to a object's surface. The docs for  appear to show screenshots of an older version of Blender (perhaps 2.79?), and point to menu items which don't exist in 2.82, such as "Use Alpha in the Map Image panel", and "UV from the Coordinates menu".  points to the "node system" and indicates that "legacy textures" are no longer supported.  Can textures still be applied using Blender? Was this functionality removed in 2.82, or is it undocumented? Is there documentation available for 2.82, or a better user manual available somewhere?

All the tutorials I've found so far on adding texture refer to UV-unwrap the mesh, then using an image/jpg. I noticed other things like "clouds" etc. in the object's Texture Properties panel.   I've played with making these textures but cannot find how to apply them to a surface or material.


If the answer expected is It is an amazing car, then the question would be How is the car?  If the answer expected is I got my red car then the question would be something like Which colour car did you get? or Which car did you get?  BUT if the expected answer is This is my third car / This is my ninteenth birthday, then what would the question be precisely? How would you frame it, if possible?  To clarify the importance of the precise question: So far, the only way I know how to elicit the above mentioned answer would be to hint it in the question itself, like Is this you twentieth birthday?, and then they would answer No, this is my ninteenth birthday.

I want to make a question having an answer as follows:     5 is the third prime number.   The bold part is the answer. How to phrase the question?


I am trying to install windows over ubuntu using the windows 8.1 disk and I literally know nothing about ubuntu. Whenever I put the disk in the computer nothing happens... If I go to archive manager > open > devices I see the disk but when i click on setup.exe it says "and error occurred while loading the archive" How do I open the disk so that I can install windows?

I have absolutely no experience with Linux, and I desperately need to get my computer back up and running again with Windows.  How do I remove Ubuntu and reinstall Windows?    Editor's note: many of the answers are about removing Ubuntu from dual-boot but keeping Windows (which is a bit complicated), while other answers are about removing Ubuntu from single-boot (which is easy: basically just format the disk while installing Windows). The question as written is ambiguous between dual-boot or single-boot.


AVG seems to have quarantined the two Trojan malware but I can't delete the folders:  Program Files > Google > Desktop > Install > {string of numbers}  Changing Ownership and Permissions doesn't do anything except get Windows Explorer rebooting.  Or, there's a pop-up message saying access is denied.  There's a Lock icon on the top, Google, folder.  Has anyone found a way to delete a rooted-in folder in Program Files?  Thanks  Update: The advice was overwhelming to reinstall the OS, so I did that.  I backed-up only file formats that were safe, like .odt, .jpg, .avi or .mpg.  Those went to a different hard drive and I ran two checks of those files with AVG. Then I performed a clean install which first formatted the infected drive. So far so good, and thanks, everyone, for taking the time to lend advice.  P.S. I was certain this wasn't a duplicate question because I searched for other references to that string of folders: Google > Desktop > Install...   Search didn't reveal any references to it.  So I asked how to remove that Folder and its contents. I may have received a duplicate solution to the problem -- format and start over -- but I didn't see a duplicate of my question.

What should I do if my Windows computer seems to be infected with a virus or malware?  What are the symptoms of an infection? What should I do after noticing an infection? What can I do to get rid of it? how to prevent from infection by malware?   This question comes up frequently, and the suggested solutions are usually the same. This community wiki is an attempt to serve as the definitive, most comprehensive answer possible. Feel free to add your contributions via edits.


can somebody give me a hint for this exercise, where I have to find the specific closed form?     $\sum_{k=0}^m \frac{\binom{m}{k}}{\binom{n}{k}}, m,n\in\mathbb{N}$ and $m\leq n$   What I have done so far:  $\sum_{k=0}^m \frac{\binom{m}{k}}{\binom{n}{k}} = \sum_{k=0}^m \frac{\frac{m!}{(m-k)!\cdot k!}}{\frac{n!}{(n-k)!\cdot k!}} = \sum_{k=0}^m  \frac{m!}{n!}\cdot \frac{(n-k)!}{(m-k)!} = \frac{m!}{n!}\cdot \sum_{k=0}^m  \frac{(n-k)!}{(m-k)!}$   Look at example 1: $n=8, m=5$  $\frac{5!}{8!}\cdot(\frac{8!}{5!} + \frac{7!}{4!} +\frac{6!}{3!} +\frac{5!}{2!} + \frac{4!}{1!} +\frac{3!}{0!}) = \\\frac{5!}{8!} \cdot (8\cdot7\cdot6+7\cdot6\cdot5+6\cdot5\cdot4+5\cdot4\cdot3+4\cdot3\cdot2+3\cdot2\cdot1) = \\ \frac{5!}{8!} \cdot (336+210+120+60+24+6) = \frac{5!}{8!}\cdot 756 = 2.25$  I can't find a pattern.  Edit 1: Maybe there is an approach with recursion.  Edit 2: Okay I found the solution.   $\sum_{k=0}^m \frac{m!}{n!}\cdot \sum_{k=0}^m  \frac{(n-k)!}{(m-k)!}= \frac{m!}{n!}\cdot\frac{1}{4}\cdot t\cdot(t+1)\cdot(t+2)\cdot(t+3)$ with $t=(n-m)!$  Edit 3: This formula works well for example 1, but fails for example 2: $n=9, m=3$  $\frac{3!}{9!}\cdot(\frac{9!}{3!} + \frac{8!}{2!} +\frac{7!}{1!} +\frac{6!}{0!})  = \\\frac{3!}{9!} \cdot (9\cdot8\cdot7\cdot6\cdot5\cdot4+8\cdot7\cdot6\cdot5\cdot4\cdot3+7\cdot6\cdot5\cdot4\cdot3\cdot2+6\cdot5\cdot4\cdot3\cdot2\cdot1) = \\ \frac{3!}{9!} \cdot (60480+20160+5040+720) = \frac{3!}{9!}\cdot 86400 = 1.428$  So I have still no general solution. Can someone help?

Prove that $\sum_{k=0}^{m}\dfrac{\binom{m}{k}}{\binom{n}{k}}=\dfrac{n+1}{n+1-m}$.  We know, n > m. From the right side. we have $\dfrac{n+1}{n+1-m}=\dfrac{1}{1-\dfrac{m}{n+1}}$. since n > m. $0<\dfrac{m}{n+1}<1$. Then $\dfrac{1}{1-\dfrac{m}{n+1}}=1+\dfrac{m}{n+1}+(\dfrac{m}{n+1})^2+...$ I don't know what to do next? Did I choose the right path?


In a unix script I am calling below SQL which contains a value for the column company_name with & symbol: 'SK&CO'   and other value(city,date) I am passing through script  select * from stock_details where company_name ='SK&CO' --value hardcoded  and city = &2  and date = &1;   How do I keep the & (ampersand) in the SQL with other substitute variable values?   I have tried set define off, which is not working as I need to use other substitute variable values   set define off,  will escape all the substitute values where I want to ignore substitution for the single & and treat this as a value to show the result output with matching values.

I have a SQL script that creates a package with a comment containing an ampersand (&). When I run the script from SQL Plus, I am prompted to enter a substitute value for the string starting with &. How do I disable this feature so that SQL Plus ignores the ampersand?


On the internets, it's common to state that inhabitants of hypothetical spaceship falling on the black hole wouldn't notice anything special when they cross the event horizon, and the only effect of them approaching the black hole if it's large enough would be tidal forces as they would approach the singularity.  To my understanding (based on the concept of Hocking's radiation), event horizon boundary is smooth and has no probabilistic component - e.g. all points are either inside or outside the event horizon, so it's not possible for a material point to be inside with 20% probability. Real life particles may be "20% inside", but due to their own uncertainty, not because of event horizon having some "probabilistic transition area".  What puzzles me is why I haven't seen anything about the event horizon influence on the molecular/atomic forces. If we imagine something half-submerged into an event horizon, wouldn't it prevent all fundamental interactions, including gravity, between an "inside" and "outside" parts of the object? It may still let interaction bozons through the event horizon to the inside part, but "reply bozons" won't get through, and to the matter outside the event horizon it would seem that the inside part is no longer existing, as it's not replying.  Also, due to the event horizon being the almost perfect plane (discarding slight curvature), it will go across bonds between atoms, and it could possibly split the nucleus into two parts as well. If splitting light nuclei this way, what would cover the energy deficite? What would happen to quarks if the event horizon boundary goes across the hadron?  So, due to my assumptions, any real life body crossing the event horizon would immediately cause nuclear decay and turn into some sort of quark dust long before spaghetticiation would occur. This maybe could be proven by actually submerging anything into the black hole's event horizon and then pulling it back to see the smooth cut and an explosion.  While flying to the black hole seems to be unrealistic, at least this year, nuclear decay events maybe should be observable from the far away due to lots of natural events of things falling into black holes?  I guess, these nuclear events maybe should be observed? If they are not, what am I missing in my thinkings?

I've just answered , and while I'm confident my answer is correct I'm less certain about the exact consequences. To simplify the situation consider a diatomic molecule falling into a Schwarzschild black hole with its long axis in a radial direction.    The inner atom cannot interact with the outer atom because no radially outwards motion is possible, not even for electromagnetic fields travelling at the speed of light. However I find I'm uncertain exactly what the outer atom would experience.  We know that the outer atom feels the gravitational force of the black hole even though gravitational waves cannot propagate outwards from the singularity. That's because it's experiencing the curvature left behind as the black hole collapsed. Would the same be true for the interaction of the outer atom with the inner atom? Would it still feel an electromagnetic interaction with the inner atom because it's interacting with the field (or virtual photons if that's a better description) left behind by the inner atom? Or would the inner atom effectively have disappeared?  If the latter, presumably the fanciful accounts of observers falling into the black hole (large enough to avoid tidal destruction) are indeed fancy since it's hard to see how any large scale organisation could persist inside the event horizon.  Later:  I realise I didn't ask what I originally intended to. In the above question my molecule is freely falling and the question arose from a situation where the object within the event horizon is attempting to resist the inwards motion. I'll have to go away and re-think my question, but thanks to Dmitry for answering what I asked even if it wasn't what I meant :-)


I had installed gnome-tweaks to play around the visual appearance of my ubuntu system however for some reason the fonts have become really small and strain the eyes. I have removed the gnome-tweaks however the font size remain the same,this begins even before login. Any idea how this can be corrected ( I have tried to increase the size but it reverts after i logout )

So I was configuring VS code on my Notebook when suddenly I noticed that my interface font got really small on my desktop, terminal and files. I use Gnome Tweaks Tool to increase my scaling factor to 1,15 , but, even though it was active, the font stayed tiny. The solution I found was moving my scaling factor, which instantly fixed my font issue, however, every time I restart my Notebook the font gets tiny again and I have to repeat the process. I tried reseting my font configuration using this command, but had no success. gsettings reset org.gnome.desktop.interface text-scaling-factor  I also tried using the command dconf reset -f /  Finally, I tried using dconf-editor, but still had no success altering the font rendering DPI or changing the scaling factor. All of the steps I mentioned fixed my fonts temporarily, but the issue still persists when I restart my Notebook I am out of ideas and even considered getting a fresh Ubuntu install by now... My video card: NVIDIA GeForce GTX 1050 GPU


this is related to my homework right now, i just don't have someone to ask  If $a\equiv b \pmod n$ and the integers $a, b$, and $n$ are divisible by $d>0$ then $$ \frac{a}{d}\equiv\frac{b}{d} \pmod {n/d} $$

I came across this theorem:   For all integers a,b,c and m>0, if d = GCD(c,m) then a*c ≡ b*c (mod m) iff a ≡ b (mod m/d).  The =>proof states this:  a*c ≡ b*c (mod m) => m|(a-b)*c                    => m/d | (a-b)*c/d                   => m/d | (a-b)                   => a ≡ b (mod m/d)   I don't understand how to go from step 2 to step 3. The proof states that this is possible because m/d and c/d are coprime. To me this means GCD(m/d, c/d) = 1 but how does this cancel out the whole term?


I installed 14.04 on Dell Vostro 1500 but my network card isn't recognized.  How do I get this installed? Was installed via USB that worked with no issues when OS is ran from USB stick.  0c:00.0 Network controller [0280]: Broadcom Corporation BCM4311 802.11b/g WLAN  [14e4:4311] (rev 01)   Subsystem: Dell Wireless 1390 WLAN Mini-Card [1028:0007]   Kernel driver in use: wl

I'm having serious problems installing the Broadcom drivers for Ubuntu. It worked perfectly on my previous version, but now, it is impossible.   What are the steps to install Broadcom wireless drivers for a BCM43xx card?  I'm a user with no advance knowledge in Linux, so I would need clear explanations on how to make, compile, etc.    lspci -vnn | grep Network showed:   Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller [14e4:432b]      iwconfig showed:  lo        no wireless extensions. eth0      no wireless extensions.   NOTE: Answer below is updated every time new information is added and confirmed working.


I am brand new to linux and basicly I want to install Ubuntu 14.4 and dual boot with windows 8 please help me.

I'm absolutely new to Linux. I would like to know how to install Ubuntu alongside the pre-installed Windows 8+ OS.  Should I do it with Wubi, or through the Live USB/DVD?  What steps do I need to take to correctly install Ubuntu?


I have a google account based on an email name that I don't really like(used native spelling instead of the English one and now live abroad). I have LOTS of things tied to it though, (Android, drive etc) plus apps that login with Google authentication.  I exclude 3rd party apps that used directly the email for making an account, since not much can be done for that.  I would like to start using a new email with a better name for everything, or have both accounts kind of managed in parallel, without need to think which of the two I am really using.  It must be such a common need, but can't find anything conclusive online... Please help :)

Since 2008 I've been using a Gmail account as my main mailer, and I'm happy with the service. Unfortunately, I'm slowly but surely entering the business world, and my mail uses a children's name (along the lines of DarkShadow). Embarrassing to say the least.  This all wouldn't be a problem if I could just make a new mail, but all of my services, including my YouTube account and a bazillion forums, are linked to that mail. Plus, I have all mails up until the first one from 2008 archived.  Google has a feature to add secondary mails to accounts, but that unfortunately only works partially, because it writes it like " on behalf of ", defeating the whole point.  Is there a feature to migrate absolutely everything to my new mail address? Apart from setting up a universal redirect, I can't think of anything.


The following example fails the he/him test for whoever/whomever:     Please give the key to whoever needs to open that cabinet.    Give the key to him or he? Give the key to him.   However, when asking who opened that cabinet, he works instead.   So the question, then, is which part of the sentence do we perform the trick on? The predicate is "open that cabinet," which would mean whoever does take on the subject and is correct here. But why isn't "give the key" the predicate?

He created it.  Put me in touch with him.   So which is correct and why:   Put me in touch with whomever created it. Put me in touch with whoever created it.


I was trying to refresh a page from an embedded VF page. Since it is an iframe in the big page, so I have tried:   window.parent.location.reload();   and  parent.location.href = parent.location.href;   For both of them, I got the same error message:      Uncaught DOMException: Blocked a frame with origin   "" from accessing a cross-origin frame.   It seems weird to me that I am getting a CORS error here. Is there a way I can walkaround this issue?

I have a VisualForce page inside a standard SFDC Page Layout.  For UX reasons, we want to be able to refresh the outer (parent) page when something is clicked on the VF page.  When we try and do this using parent.location.reload(), we get the CORS JS error:  Uncaught SecurityError: Blocked a frame with origin "" from accessing a frame with origin "". Protocols, domains, and ports must match.  So we went to CORS whitelist, and added https://*.visual.force.com as an entry.  But this still did not fix the issue.  Anyone else come across this?


Recently I installed Ubuntu 18.04. Unfortunately my WiFi adapter is not working properly. it couldn't detect the low range WiFi signals.  Output of lshw -C network  *-network        description: Wireless interface        product: RTL8723BE PCIe Wireless Network Adapter        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:03:00.0        logical name: wlo1        version: 00        serial: 74:df:bf:81:e7:a7        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless        configuration: broadcast=yes driver=rtl8723be driverversion=4.15.0-32-generic firmware=N/A ip=192.168.43.81 latency=0 link=yes multicast=yes wireless=IEEE 802.11        resources: irq:17 ioport:3000(size=256) memory:b1100000-b1103fff

I have a HP 14-AN001NA laptop. It came with Windows 10 installed on which the Wi-Fi worked fine anywhere in the house.   However I removed Windows 10 and installed Ubuntu 16.04 instead and since I have had terrible Wi-Fi anywhere aside from about three foot away from the router. I don't know if it's relevant but my Wi-Fi is not called wlan0 but wlo1 for some reason (I didn't change it).  When running lspci -knn | grep Net -A3     I get the following output:  05:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter [10ec:b723] DeviceName:   Subsystem: Hewlett-Packard Company RTL8723BE PCIe Wireless Network Adapter [103c:81c1] Kernel driver in use: rtl8723be Kernel modules: wl, rtl8723be


i have created a file named test.bat on my desktop named it "test.bat" and sent it to notepad, written "REM" and saved it. then i closed notepad and reopened it, added another "REM" and saved the file again. then i tried renaming, moving the file to another folder and deleting it all went without any problem.  but if i create the file and execute it, the command prompt will appear for a moment and   then disappear, i can rename or move the file without any problem, but if i try to modify the file in notepad, i get this error:   The process cannot access the file because it is being used by another process.   and the file is not saved.    also, if i try to delete the file it seems to be deleted .. until i press F5, the file reappears. when trying to rename/move that new file i get another error:  File Access Denied  You need permission to perform this action  You require permission from the computer's administrator to make changes to this file   it seems the file is unlocked (or gone if i choose to delete) after a few minutes, while it doesn't if i try to access the file (i kept pressing F5 every few seconds for 15 minutes and the file isn't gone)  the problem seems to occur with any file name, anywhere, not just the desktop or the home drive, not even on  the same disk, while i didn't have any problem when i booted into an old windows xp installation and repeated the same steps.  i tried using handle utility from sysinternals, this is what i've got:  after creating test.bat:     C:\Users\User>handle test.bat  Copyright (C) 1997-2013 Mark Russinovich Sysinternals - www.sysinternals.com  No matching handles found.   after executing test.bat:  C:\Users\User>handle test.bat  Handle v3.51 Copyright (C) 1997-2013 Mark Russinovich Sysinternals - www.sysinternals.com  System             pid: 4      type: File           A18: C:\Users\User\Desktop\t est.bat   got the above result after trying to delete test.bat too.  after creating othertest.bat:  C:\Users\User>handle othertest.bat  Copyright (C) 1997-2013 Mark Russinovich Sysinternals - www.sysinternals.com  No matching handles found.   after executing othertest.bat:  C:\Users\User>handle othertest.bat  Handle v3.51 Copyright (C) 1997-2013 Mark Russinovich Sysinternals - www.sysinternals.com  System             pid: 4      type: File           BD0: C:\Users\User\Desktop\o thertest.bat   after renaming othertest.bat:  C:\Users\User>handle othertest.bat  Copyright (C) 1997-2013 Mark Russinovich Sysinternals - www.sysinternals.com  No matching handles found.    C:\Users\User>handle renamedtest.bat  Handle v3.51 Copyright (C) 1997-2013 Mark Russinovich Sysinternals - www.sysinternals.com  System             pid: 4      type: File           BD0: C:\Users\User\Desktop\r enamedtest.bat   the also occurs when i execute any .exe file and delete it after its finished executing, i deleted both handle.exe and handle64.exe after performing the above test and both returned when i refreshed their folder.    can anybody help me out? iam using Windows 7 ultimate 64 bit. thank you.

I'm working on a batch file in Windows 7 Ultimate. I'm using notepad++ with the runme extension.  When I run the batch file and make some changes directly after that, I am not able to save the .bat file, because windows says it's been used by another process.  So I need to wait about 60 seconds until I'm able to re-save the file to test the changes.  Same goes when using the built-in Notepad.  Strangely I can delete the .bat file directly after running it, but saving doesn't work.  Some months ago, when I was working on another batch-file, everything was working ok.  Is there any way to stop this strange behaviour? Or is there at least any way to see which process is blocking the file?


Which is correct?  Forgive, but don't forget.  Forgive but don't forget.   I have researched this and found unclear answers.

I understand that a serial comma (the one used before and/or) is used only when we have three or more items to be separated using and/or.  What exactly is the rule that governs where to add a comma before an and/or in a sentence such as the following:        S1: I went to John's house, and I watched a movie there.    S2: I went to John's house and there I watched a movie.    S3: Look around for any evidence that might reveal the identity of the intruder, and carefully place that evidence in a plastic bag, so   it can be examined closely at headquarters.      I have seen S1 written both with and without comma. Which is correct; why?  What would be the right way to punctuate S2; why?  Should there be a comma before so in S3 or not; why/why not?


Not that I am complaining about being allowed to flag posts, but I got really scared when I saw this banner in my flag history after I had randomly tried to flag a post and succeeded and assumed that it is .

I recently got automatically flag-banned on my Worldbuilding account. When I regained the ability to flag, I flagged another post that I had intended to flag but been unable to because of the ban. That flag was within 24 hours of the ban being lifted, probably within the hour because I was on the site at the time and happened to notice. The flag was accepted as helpful, but the system promptly banned me once again. Now that the ban has once again ended, I am hesitant to flag anything. Will I get banned once again? If so, how long do I have to wait?  I don't have anything specific in mind to flag, but it would help to know whether to leave anything I see as needing flagging to someone else so that I don't get banned again. Getting banned would be a lot less helpful than skipping one post and being able to flag more than one post later on.  The majority of my flags have been helpful, with almost all of the declined ones for off-topic or moderator attention. I do not try to spam the review queues and my flags are well intentioned and usually helpful. I am fairly sure that both bans were because of the system because I flagged more posts than normal in a short amount of time.  Here is a screenshot of my recent flag history. This is not a complete list. To the right, you will see my flag count: 13 post flags, 8 helpful, 5 declined; 3 comment flags, all 3 helpful.    Recently declined flags:


I have the following function:  var a = 0.1; var b = 0.2;  function checkValue(){     if(a + b === 0.3){         alert('statement is true');        }     else {         alert('statement is false');        } }  checkValue();   This function evaluates to false??   Now, the same function with different decimals that also equal 0.3:  var a = 0.15; var b = 0.15;  function checkValue(){     if(a + b === 0.3){         alert('statement is true');        }     else {         alert('statement is false');        } }  checkValue();   evaluates to true.  Has anyone run into this before? If so are there languages commonly used for web applications that do not do this?

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


Why a bar magnet broken from between repel on joining again even if the poles are opposite, i.e. North and South.

I just took a rare earth magnet out of an old hard drive. Lacking an appropriate screwdriver, force was used, and the magnet broke into two pieces; one about a quarter of the original size and one about 3/4 the original size.  Let's say this is the magnet:  >>>>>>>>   and the arrows are pointing north, in the original magnet.  It broke into two pieces:  >>>>>}   }>   (where } represents the rough edge of the break).  I'd expect that the two magnets would keep their relative directions, so that the magnets would fit back together at the break, like this:  >>>>>}}>   But instead, the broken edges repel, and the magnet wants to come together so that formerly "north-facing" sides are now connected, like so:  >>>>>}<{   The obvious deduction here is that one of the pieces flipped polarities when the magnet was broken. I don't understand why this would be the case.  So why did one of the pieces flip polarities?  EDIT: To clarify, the actual magnet is a 120-degree arc of a circle. Thus, it's obvious what the original orientation of the pieces were. This isn't simply a case of me getting the pieces flipped over relative to each other.


I just don't like 'Sunrise's' very much. I want to write "Sunrise' breaking light over the plains" but I'm not sure if it should really be "Sunrise's breaking light over the plains." Whaddaya think?

What is the possessive of a noun ending in ‑s?  Are these both right, or is the second one wrong?   the boys' books the boss' car


I use an external monitor with my Macbook Pro, often to run Windows VMs with a task bar at the bottom.  While trying to use the task bar, I often accidentally summon the dock to the second monitor.  How do I stop the dock from moving?  Note: I'm aware of the option to go back to the old one-space-for-all-displays behaviour.  I don't want to go back to the old behaviour, I want to fix the new one.  Note, repeated: This isn't a duplicate of the question which asks .  I know why it happens, but there's nothing there that would help me to prevent it from happening.

I have a larger, external monitor connected to my MacBook Pro and have arranged it such that the dock is in the external monitor (via System Preferences > Displays > Arrangement, by dragging the white bar to the larger screen). This works fine, except for the fact that every now and then, the dock will suddenly shift back to my MacBook screen, but when I open up Displays to change this back, the white bar is still on the external monitor. So I have to drag it to the smaller screen, and then drag it back to the external monitor.   It's a minor issue, obviously, but I've noticed that it has been happening more and more frequently and it's getting quite annoying. Perhaps there's something I've been doing unintentionally for this to happen?   I'm using Mavericks, 10.9.5.


I can understand the concept that $\gcd(a, b) = \gcd(b, r)$, where $a = bq + r$, which is grounded from the fact that $\gcd(a, b) = \gcd(b, a-b)$, but I have no intuition for the latter.

Given: $a = qb + r$. Then it holds that $\gcd(a,b)=\gcd(b,r)$. That doesn't sound logical to me. Why is this so?    Addendum by LePressentiment on 11/29/2013: (in the interest of  and averting a duplicate)  What's the intuition behind this result? I only recognise the proof and examples solely due to algebraic properties and formal definitions; I'd like to apprehend the result naturally.


I followed all details in Johnny Phung's video , but at the end of install and reboot steps, Ubuntu does not start.  This is the second computer that I have tried this with, but the first that gives me this problem. I am installing on an Acer C7.

I have installed Ubuntu 13.04 on my desktop (runs like a charm). Then I used Crouton to install Ubuntu 12. 04 on my chromebook samsung (ARM). It also works quite well.  Here comes my question. Can we have a true Ubuntu (preferably 13.04) on my ARM chromebook?  It seems that the Crouton/Ubuntu is not 100% the real thing.  The best option would be to have the full Ubuntu 13.04 and remove the Chrome OS.


A key plot device of avengers: Endgame is      Time travel. A central point is that they have to be very careful with time travel, as explained by some team members when Rhodes asked why can't they simply go back in time and kill baby Thanos. Someone mentions that "all the rules apply, no interaction with our past selves, no trying to change the future, etc...". When Hulk meets The Ancient One, she explains that timelines and realities can be damaged, etc.    The only thing they can really pull off without messing up history is retrieving the Infinity Stones, using them in the present, and then returning them to the proper place in history to avoid any disruptions to the time line.    But then in the final scene, we discover that Captain America      went back in time and had the life that he always wanted to have with Agent Carter.   Doesn't this contradict the above mentioned dangers      of time travel? Wouldn't his getting together with Agent Carter at the very least completely alter the history of the S.S.R and S.H.I.E.L.D (if not the entire U.S military) and hence completely mess up the time line?

At the beginning of Avengers: Endgame, there was exposition dialog explaining the rules of time travel this movie was working under.  Banner explained that modifying the past will not alter the present. This movie does NOT work like Back to the Future, and they even mentioned that specific film.   They said that going back into the past and removing the Infinity Stones would not change the effects they had on the present.  Taking an object from the past wouldn't remove it from the present, so you would expect the opposite to be true: going back in time and leaving an object behind would not be adding it to the present.  Then, right at the end:      Steve Rogers went back in time, and chose not to come back. The other characters then encountered a very old Steve Rogers.   Doesn't this break the rules?       Something was left behind in the past (Steve Rogers himself), but he should not have appeared in their timeline.


I have an extremely unbalanced dataset with two classes:  1: 1,800 # class 1  0: 40,000 # class 0    This is real world customer data of churned/not churned  If I were to use smote to oversample / undersample, the model would be trained on an artificially created distribution of classes that does not reflect the real world whatsoever.  Should the training data reflect the real world, or is smote a widely used technique to balance the classes in production environments? I feel like I would be training a model for a completely different task if the training data doesn't reflect the unseen data.  My model is currently performing quite poorly on the 1 class, which is why I'm investigating smote.  Any insight is appreciated from people who have used smote. I can't find info of this issue in smote tutorials online. So perhaps it's not an issue?

We already had multiple questions about unbalanced data when using , , ,  and a number of other similar questions, what makes it a very popular topic! Unfortunately, each of the questions seems to be algorithm-specific and I didn't find any general guidelines for dealing with unbalanced data.  Quoting , dealing with unbalanced data     (...) heavily depends on the learning method. Most general purpose   approaches have one (or several) ways to deal with this.   But when exactly should we worry about unbalanced data? Which algorithms are mostly affected by it and which are able to deal with it? Which algorithms would need us to balance the data? I am aware that discussing each of the algorithms would be impossible on Q&A site like this, I am rather looking for a general guidelines on when it could be a problem.


The code below throws the error Error: Unexpected call to method or property access when I create a style elemnt and attempt to append the code to it:  //This is OK var styleElement = document.createElement("style");  //This is OK styleElement.type = "text/css";  //THIS THROWS THE ERROR styleElement.appendChild(document.createTextNode("a { color: red; }"));   What am I doing wrong?

I'm looking for a way to insert a "; document.body.appendChild(divNode);   This works in Firefox, Opera and Internet Explorer but not in Google Chrome. Also it's a bit ugly with the
 in front for IE.  Does anyone know of a way to create a


$ script.sh -i /storage/testFile   -i stores the path of /storage/testFile/.  I want to iterate over file in testFile. Everything goes good, but I want to make this code cleaner and add a directory for output and other checks.  A snippet of my code is:  for f in $inDir/*.vcf; do     if [ -f $f ]; #check if file is true or exists     then     if [   ${f: -4} == ".vcf" ] # check if the file ends with .vcf         then         convert2annovar.pl -format vcf4 "$f" > ./"$f".avinput  #run my code      fi     fi done   Issue:  echo $f returns /storage/testFiles/test.vcf. How do I get only test.vcf while I iterate in for loop?

What I am doing is converting mp3's with LAME. I already have an old script I wrote that works but I want to add to it this ability--to no longer delete the file but instead save it in a new root folder with sub-directories that match the using the path that it is already in.  This is the code I got off the Internet that I am using in my script to get the path:   c=$FILENAME  xpath=${c%/*}   xbase=${c##*/}  xfext=${xbase##*.}  xpref=${xbase%.*}  path=${xpath}  pref=${xpref}  ext=${xfext}   The xpath and path give me the directory structure /home/user/working-root-directory/band-folder/album-name/  Using that technique, how do I script this to get just the band-folder into a separate variable and the album-folder into a separate variable?  Then I can use them to create  new folders keeping all the mp3s in band album order to put them into a different root folder; this would eliminate me from having to move them myself so the next time I run my script I will not re-sample them again because they will no longer be in the working directoy path/folders and still have a back up copy of my files just in case.


Had this old phone lying around. I thought I re-purpose it for some IoT stuff. It an old Micromax A50 Ninja (running ginger bread 2.3.6). I want to make an app on this device that communicates with arduino. However, I cannot sign into the device. I re-checked with my credentials else where, and they checkout to be fine. But on this device, the sign-in still fails.  Is this because the OS is outdated? Well, can I do anything on this phone, now that this is the state of the device os?

After Factory Reset, In order to use Play store and Gmail I want to setup Google account on Samsung GT-S6802. When I tries to setup Google Account, In-spite of right user-name and password, following window appearers:    When I open gmail form browser, I've mail from google subject:Sign-in attempt prevented and says:     Someone just tried to sign in to your Google Account hidden@gmail.com from an app that doesn't meet modern security standards.     When I review, it shows unknown device but on browser it detects my device.  So, How do I face this issue and setup google account?


How can I get the class of an element clicked upon in an iframe?  HTML:  <input id="tag" type="text">  <iframe id="framer" src="SameDomainSamePort.html"></iframe>   JS:  $(document).ready(function () {     $("iframe").each(function () {         //Using closures to capture each one         var iframe = $(this);         iframe.on("load", function () { //Make sure it is fully loaded             iframe.contents().click(function (event) {                 iframe.trigger("click");             });         });          iframe.bind("click", function(e) {             // always returns the iframe rather than the element selected within the iframe...             $("#tag", window.top.document).val($(e)[0].target.className);             return false;         });     }); });   Would it be easier to inject js?  And could I add css as well?  All help is appreciated!

I would like to manipulate the HTML inside an iframe using jQuery.  I thought I'd be able to do this by setting the context of the jQuery function to be the document of the iframe, something like:  $(function(){ //document ready     $('some selector', frames['nameOfMyIframe'].document).doStuff() });   However this doesn't seem to work. A bit of inspection shows me that the variables in frames['nameOfMyIframe'] are undefined unless I wait a while for the iframe to load. However, when the iframe loads the variables are not accessible (I get permission denied-type errors).  Does anyone know of a work-around to this?


Why was the word "dongle" chosen to represent this kind of hardware device?  I can imagine that it was related to the word "dangle"... since dongles tend to dangle - but that's just my hunch and not truly historic.    The Oxford English Dictionary (OED) lists the etymology of 'dongle' as "arbitrary"... so no help there.    The OED cites two sources of note:   1981   New Scientist 1 Oct. 24/3:   Many programs written for the Pet computer make use of a device known as a dongle. The dongle is an extra piece of memory that is plugged into the computer, without which the program refuses to run. 1982   MicroComputer Printout Jan. 19/2:   The word ‘dongle’ has been appearing in many articles with reference to security systems for computer software [refers to alleged coinage in 1980].

Dong as in ding-dong is clearly onomatopoetic as confirmed by :     ding dong        imitative of the sound of a bell, c.1560.   and similarly for :     ding (v.)       1819, "to sound as metal when struck," possibly abstracted from ding-dong, of imitative origin. The meaning "to deal heavy blows" is c.1300, probably from Old Norse dengja "to hammer," perhaps also imitative. Meaning "dent" is 1960s. Related: Dinged; dinging.   What, then, is the origin of dong to mean penis? Etymonline.com is  here:     dong (n.)        "penis," 1891, of unknown origin.   We also have a much more recent word, dongle, which has no entry at etymonline.com but  claims it is:     Apparently from dangle.   This leads me to the theory that the anatomical and onomatopoetic dongs  are not related and that the former usage, like dongle, derives from dangle. So, my questions are:   Is that so? Does dong (penis) derive from dangle? Sounds reasonable enough but I have found no definitive sources for it. Does dongle derive from dangle? It makes perfect descriptive sense for dong but the USB devices called dongles do not dangle but instead protrude quite rigidly, so I feel that dongle being derived from the cruder meaning of dong makes more sense.