Coroutine not working, NullReferenceException Unity

When I run my game and collide with my object, I get a NullreferenceException error. I went through many posts I could find on Stackexchange and other websites, but nothing helped. When I did a Debug.Log, the Coroutine is triggered in both cases. I also checked my tags.  Coroutine:  public class Dialogue : MonoBehaviour { public TextMeshProUGUI textDisplay; public string[] sentences; private int index; public float typingSpeed;  public GameObject continueButton;  void Update() {     if (textDisplay.text == sentences[index])     {         continueButton.SetActive(true);     } }  public IEnumerator Type() {     foreach (char letter in sentences[index].ToCharArray())     {         textDisplay.text += letter;         yield return new WaitForSeconds(0.01f);     } }  public void NextSentence() {     continueButton.SetActive(false);      if (index < sentences.Length - 1)     {         index++;         textDisplay.text = "";         StartCoroutine(Type());     } else {         textDisplay.text = "";         continueButton.SetActive(false);             }     } }   Coroutine call:  public class Mace : MonoBehaviour { private Dialogue dialogue;  private void OnTriggerEnter2D(Collider2D otherCollider) {     if (otherCollider.CompareTag("Player"))     {         StartCoroutine(dialogue.Type());     }   } }   I did not cut my coroutine down more, as I think that all parts are at least somewhat relevant informations to my question.


The Crossbow Expert feat states that as a bonus action, you can "attack with a loaded hand crossbow you are holding."  However, nowhere in the rules does it specify a "loaded" versus "unloaded" state for any weapon. There is a "Loading" property (PHB p.147) that just says that "because of the time to load this weapon, you can fire only one piece of ammunition from it..." but doesn't specify an amount of time, type of action, or anything to load the weapon. (And, in any case, if you have Crossbow Expert you can ignore the "Loading" property.)  Under "Ammunition" (PHB p.146) it just says that "drawing the ammunition from a quiver, case, or other container is part of the attack" which seems to imply that crossbows are not kept loaded all the time, but are loaded and fired as part of the same attack. So is there some other action that needs to be performed to load it (so you can have it loaded first, before the trigger hits?)  [The specific situation that I have in mind was the case of a character with Crssbow Expert and two hand crossbows, one in each hand: Can he fire both crossbows every turn, using his normal and bonus actions respectively, even though he doesn't have a hand free to load the crossbows? Do you need a hand free to load a crossbow?]


Move folder structure across multiple directories

I am trying to move one a bunch of files at once, one directory up.  This is what I tried, but did not work:     mv ./*/__test__/index.js ./*/data.js   . ├── alpha │   ├── __test__ │   │   └── index.js │   ├── index.js │   └── test.js └── beta     ├── __test__     │   └── index.js     ├── index.js     └── test.js   To this:  . ├── alpha │   ├── data.js │   ├── index.js │   └── test.js └── beta     ├── data.js     ├── index.js     └── test.js   How can I do this in unix?


Selecting all points of polygon as single feature using Google Earth Engine


How to get the ~/.bashrc to work in the native terminal application in Centos?

The problem I had was to get the .bashrc and .bash_profile and/or .profile scripts to execute by default when using the native Gnome terminal application.  I found a number of references which told me in order to get these to "run" you needed to have an interactive session with login but none of the threads I found explained how to do this with the native terminal application.  So my question is how do you get the .bashrc and .bash_profile scripts to run on Centos every time you use the Terminal Application on the Gnome desktop?


What is the difference between Wien's Displacement Law for peak frequency vs peak wavelength?

While doing research for a high school report I came across the fact that WDL actually has two forms, one for peak frequency and one for peak wavelength, and that these two forms are not the same and can not be used interchangeably.  My question is why peak frequency isn't the same as peak wavelength? That is, since wavelength is directly determined by frequency (since frequency = speed of light divided by wavelength), there is a one-to-one correspondence between a given wavelength and its frequency. Therefore why doesn't a peak in frequency correspond to a peak in wavelength, and visa versa (meaning that the two forms of WDL could be used interchangeably)?   I know that this question was already posted elsewhere, but I did not understand the answers. Since I am a high school student, complicated terminology can fly right over my head, so I would greatly appreciate it if someone could take the time to explain it clearly and simply (i.e. no monster equations).


I had about 2 months left on my account, and recently I added another 12 months to my account. I was wondering, do the months stack up or does it continue with the two months and then use the 12 months?


Prove Divisibility In Fibonacci Sequence Over A Prime Number

In The Fibonacci sequence which is defined as $$ F_n=F_{n-1}+F_{n-2}, $$ lets say we have the number $p$ which is an odd prime.   Prove that:   $F_{p-1} + F_{p+1} -1$ Is divisible by $p$. Prove that for any given $n$ real positive integer:  $F_{p^{n+1}-1} + F_{p^{n+1}+1} -(F_{p^{n}-1} + F_{p^{n}+1})$ Is divisible by $p^{n+1}$   How to prove this?


Is this the expected behavior or am I missing something?

Consider the following simple MWE:  \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture}   \draw(0,0) -- (3,3);   \pgfmathparse{2+1}   \draw[red] (0,0) -- (3,\pgfmathresult); \end{tikzpicture} \end{document}   I expect to have, as an output, one red line, however this is the result that I get:    So, is it a bug, feature, or simply me doing something wrong?


Hide "index not running" warning when Windows Search service disabled

How to hide the annoying bar appearing in explorer:  Your searches might be slow because the index is not running. Click to turn on the index...   after having the Windows Search service disabled? The machine is running Windows 7 Professional.


Simplify the sum $\sum_{k=0}^{n} \binom{90}{n}p^n(1-p)^{90-n}$

Can I simplify this sum $$\sum_{k=0}^{n} \binom{90}{n}p^n(1-p)^{90-n}$$


The Dirichlet function is defined by $f(x)=\begin{cases} 1 &\text{ if } x\in \mathbb{Q}\\0 &\text{ if } x\notin \mathbb{Q}.\end{cases}$ Let $g(x)=\begin{cases}0 &\text{ if } x\in \mathbb{Q}\\ 1 &\text{ if } x\notin \mathbb{Q} \end{cases}$ be its evil twin.  (1) Prove that $f$ is discontinuous at every $x\in \mathbb{R}$.  (2) Prove that $g$ is continuous at exactly one point $x_1\in \mathbb{R}$.  (3) Prove that $f+ g$ is continuous at every $x\in \mathbb{R}$.  Definition (Continuous at a point): A function $f: D \longrightarrow \mathbb{R}$ is continuous at $X_0\in D$ if for every $\epsilon > 0$ there exists some $\delta > 0$ such that $|f(x) - f(x_0)| < \epsilon$ whenever $|x-x_0|< \delta$.  Response: I don't have any work yet, hints and answers would be extremely helpful.


Do I have to purchase java license to use Jenkins?

We are using Jenkins to build and deploy apps to production and staging. While migrating our Jenkins Servers to a newer server, we have realized that apparently Java RTE now requires a license to use. Is this actually the case or am I missing something? What alternatives can I use as Runtime Environment, only to run Jenkins?


What does  "Prove by induction" mean? Would you mind giving me an example?


I'm trying to do a simple C program to print grades:   int main(void)     {      float grade;     int test;     printf("Enter your grade:\n");     test=scanf("%f", &grade);     if(test!=1 || grade<0.0)         printf("Error: Please enter a valid grade\n");     else     {         if(grade>4.0)             printf("Your grade is A+\n");         else if(grade == 4.0)             printf("Your grade is A\n");         else if(grade>=3.7)             printf("Your grade is A-\n");         else if(grade>=3.3)             printf("Your grade is B+\n");         else if(grade>=3.0)             printf("Your grade is B\n");         else if(grade>=2.7)             printf("Your grade is B-\n");         else if(grade>=2.3)             printf("Your grade is C+\n");         else if(grade>=2.0)             printf("Your grade is C\n");         else if(grade>=1.7)             printf("Your grade is C-\n");         else if(grade>=1.3)             printf("Your grade is D+\n");         else if(grade>=1.0)             printf("Your grade is D\n");         else             printf("Your grade is F\n");     }  }   However when I press 3.3 it prints B instead of B+(and I have the same problem in the rest of the "limits" in my range). Can someone help me fix this? Thanks!


inside PhpMyAdmin i see the Hebrew well. but when i get the info, mySql Return question marks ???? ???? ??? i tried to put utf-8 at the header, my database collection is utf8_general_ci <?php  header('Content-Type: text/html; charset=utf-8'); $conn = new PDO("mysql:host=$servername;dbname=$DbName;charset=utf8", $username, $password); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);    $mySql = " SELECT * FROM categories_list ";      $stmt = $conn->prepare($mySql);   $stmt->execute();     $categorieList = $stmt->FetchAll(PDO::FETCH_ASSOC);


Why are 15 reputation points required to upvote?

I think more reputation points should be required to add a new answer than to upvote an existing answer.  I don't continually watch for new questions, so usually when I find a question it has already been answered.  It seems bit inappropriate to answer an already-answered question in order to contribute to the conversation, but until you earn reputation, you can't upvote or comment; you can only add new answers, which prevents me from contributing at the moment as much as I would like to.  This seems backwards to me. If someone incorrectly upvotes a bad answer, the damage is minimal, as other users can down vote it and upvote the correct answers. On the other hand, an incorrect answer wastes the time of everyone who reads it.  So, IMHO, it should require more reputation points to add an answer than to upvote or comment on an existing answer.  I wouldn't say say that users should be prevented from answering unanswered questions until they have x reputation points, as that might prevent users who have answers from providing them, but perhaps it should be required if the question is already answered, to discourage users from reiterating previously given answers.  What do you think?


i have a variable to precise the length of the tuple for expl lgt=3 i want to convert this list:  list=['Tout', 'le', 'monde', 'aime', 'le', 'chocolat', 'Le', 'est', 'une', 'source', 'agent', 'securité', 'chocolat', 'magnesium']   to :  ('Tout', 'le', 'monde') ('le', 'monde', 'aime') ('monde', 'aime', 'le') ('aime', 'le', 'chocolat') ('le', 'chocolat', 'Le') ('chocolat', 'Le', 'est') ('Le', 'est', 'une') ('est', 'une', 'source') ('une', 'source', 'agent') ('source', 'agent', 'securité') ('agent', 'securité', 'chocolat') ('securité', 'chocolat', 'magnesium') ('chocolat', 'magnesium', '')


I am watching some tutorials on how to navigate the filesystem but no matter which tutorial I watch there is one thing that no one seems to answer.  I understand that . is current directory. I understand that / is either root directory or it can just mean the end of a current directory.  So how come if I want to run a program in the current directory I have to do ./ProgramName? Is this just because ProgramName could be in $PATH and I have to specify that I want to run the version in the current directory? Why doesn't Ubuntu automatically run the current directory's version if there's no equivalent in $PATH?  And if so why am I allowed to omit ./ when I am traversing directories? For example I can just do cd DropBox from my home directory. I can also do cd ./DropBox and it seems to work but why isn't the ./ required?


How can I create a custom type / typedef in C# to keep from incorrectly assigning values?

I'm a C/C++ guy with a growing confidence in C#, but have run into a blocker that I can't seem to find the right search word/phrase.  I am looking through an existing codeset which uses a "float" type to manipulate/pass data around.  The problem with this is that the data in question can be expressed in different units, and some of the routines expect one unit, while others, the second unit is used.  This is making it extremely difficult to read/follow/debug.  A familiar example may be with units of measurement.  Let's say for example it's weight.  So, it's a mix of using ounces & pounds (or grams & kg.) So, I want to change the local variables and the routine definitions to use/take in a "PoundsType" or "OuncesType" - so, when I see it in the code it's clear what unit the number should be in.  I would like to use it just like I would a "float", (without the "new" or getting the value instead of indexing into a class) but let the compiler complain if the wrong unit is used somewhere.  (Similar to how an enum would work) I saw through the googles someone suggested "using PoundsType = float;" but before I could test to see if that would meet my needs, that line wouldn't even compile.  - So, I don't know if it's been taken out of the language, or was never valid. An example of what I'm after would be: void foo (PoundsType valueInPounds) { /* do something. */ } void bar (OuncesType valueInOunces) {/* do something. */ } PoundsType ouncesToPounds (OuncesType NumOunces) {return NumOunces / 16.0F; } main ()  { PoundsType numPounds = 50; OuncesType numOunces = 38; bar (numPounds); /* compile error */ }


Issue in Get List named With contains # using Rest Service API

I have a List named 'KKR Jobs #'. And I am try to Get that list in my Sharepoint Hosted App Using Rest Service Call Like  var lName = 'KKR Jobs #';      executor.executeAsync(     {         url:             "/_api/web/lists/getbytitle('" + encodeURIComponent(lName) + "')/fields/getbytitle('Job Status')?$select=Choices",         method: "GET",         headers: { "Accept": "application/json; odata=verbose" },         success: successHandlerStatus,         error: errorHandler     } );    Its Fetching all Lists Except this List named 'KKR Jobs #' in my Site Collection. It Gives Error like Page Not Found in Browser Check like http://*****:11508/_api/web/lists/getbytitle('KKR Jobs #'). Any Issue in naming of List which contains # symbol.   i Appreciate any suggestions and Answers..!!!!!!


Babylon B Stage 2 - Purchasing neighbor's resource

On the 6th turn, the Babylon player builds their second stage wonder. Their last card in hand requires a Cloth.  Babylon's neighbor built a Loom on their 6th turn. Can the Babylon player, on their 7th turn, purchase Cloth from that neighbor?  This is not a duplicate question. My question specifically asks whether the Babylon player may benefit from the 6th card build by Babylon's neighbors for the 7th card and 7th card only.  All other answers talk about the 7th card benefiting from the 6th card of the Babylon player, or whether the usage state of Babylon's and neighbors resources may be reset for the 7th card's use.  (Also, can does the Babylon player receive gold earned from neighbors between their 6th and 7th card?)


Posterior mean if signal is an interval rather than a realization

Suppose that a signal or observation $s_1$ is drawn from the normal distribution $\mathcal{N}(\mu,\sigma^2)$, where $\sigma^2$ is known but $\mu$ is not. We want to estimate $\mu$ based on $s_1$.  Suppose further we have a normal prior distribution for $\mu$, which is $\mathcal{N}(\mu_0,\sigma_0^2)$.  In this case it is easy to determine the posterior distribution given $s_1$, which is normal (normal is a conjugate prior), and the posterior mean is also easy to determine as $$E[\mu|s_1]=\frac{\mu_0/\sigma_0^2+s_1/\sigma^2}{1/\sigma_0^2+1/\sigma^2}.$$  Now to my question: But what if we cannot observe $s_1$ directly; instead, we only know whether the realization of $s_1$ is above or below a certain threshold $t\in\mathbb{R}$. That is, instead of observing $s_1$, we only observe $\mathbf{1}\{s_1\ge t\}$ ($\mathbf{1}$ is the indicator function).  Since the "evidence" is now an interval rather than a point realization, how to compute the posterior mean $E[\mu|\mathbf{1}\{s_1\ge t\}]$? Is the posterior distribution even normal? I am at a loss here. Any help or references to help would be greatly appreciated.  Edit: I computed the posterior distribution numerically. See the plot below (where the "signal" indicates the realization is above a threshold). The posterior density is clearly not symmetric, hence not normal. So the question remains: Is there a closed form expression for the posterior density, or a somewhat simple expression for the posterior mean?


Is saving images to the database a good idea?

I am developing an application in JSF using PrimeFaces. I have now come to a part where I want to provide uploading pictures (jpg, png, ...) for the user to use them in reports he writes.  I believe the normal way would to save them in some folder on the server. But I would prefer to save them to the database (MySQL or Oracle) as I find it easier to manage.  Do I have to face performance issues doing that? Or is this fully ok and just a matter of personal taste?


how to show some rows in multiple columns and one row?

I have two tables  land =========== lid name meter address  owner ========== ownerid  name family mobile lid   Every land can have maximum 12 owners.  The result that I need:  lid name meter address owner_name_1 owner_family_1 owner_mobile_1 owner_name_2 owner_family_2 owner_mobile_2 .... owner_name_12 owner_family_12 owner_mobile_12   I tried pivot but I can not write it correctly.


How do I install the latest version of EMACS and pick the appropriate UI?

I'm running the latest Kubuntu (12.04 beta 2) and I would like to run the latest emacs (currently v24). The repos are one version behind. What's the best way to install v24 or later (and avoid future version conflicts)?  Also, is there any reason not to aways use the GUI version of emacs if X is running? For example, could I set the GUI emacs version as the default text editor and use it to edit cron jobs (crontab -e)? I'm assuming the answer is yes, but since I haven't done that yet (my default editor is nano), I want to check if there are reasons I should leave nano as the default editor.  Usually when I'm working on the command line I end up using nano. Now that I think about it, I have no idea why I keep doing that. Is there any downside to calling a GUI editor when working in an X terminal?  EDIT: I briefly tested these two versions   GNU Emacs 24.0.94.1 (x86_64-pc-linux-gnu, GTK+ Version 3.3.20) from  GNU Emacs 23.3.1 (x86_64-pc-linux-gnu) installed by default in Kubuntu.   .  Unfortunately (for me) the defaults installed version (23.3.1, 23.3+1-1ubuntu9) is the nox version.   Package: emacs23-nox Status: install ok installed Version: 23.3+1-1ubuntu9 Replaces: emacs23, emacs23-gtk, emacs23-lucid   The package with version 24 opens in GUI mode by default. That's what I prefer. Some of the version 24 changes that interest me are listed in the references below.   But there appear to be a multitude of different packages and versions I could install.  References:   What’s New In Emacs 24 (part 1) | Mastering Emacs  "    shell-mode uses pcomplete rules, with the standard completion UI.  Yowzah! There’s a lot of cool, new functionality hidden away in this gem of a change." EmacsWiki: Recent Changes


Problem print unicode and arabic character

I have stored in my database some string Unicode and Arabic in the correct form this is the screen of query select    when I have used on my code echo $data;  I have this result   can you help me show the same data, please  Thank you so much


Related:   In the cited question, the consensus is that Uncanny Dodge halves all damage from an attack including damage inflicted by elemental types such as radiant.     Uncanny Dodge.  When an attacker that you can see hits you with an attack, you can use your reaction to halve the attack’s damage against you.     Does this also apply to Poison damage? The distinction being that the Poison damage type is applied in varying manners by the game. For example:   A victim of an attack coated with a basic poison from the PHB is given the chance to save against the poison's damage. If the save is successful, the poison adds no damage. The bite of a basilisk, delivers poison damage in addition to the bite and doesn't offer a chance to save. Lastly, a wyvern's stinger, which deals base damage and poison damage offering a chance to halve the poison's damage with a save.   Does Uncanny Dodge halve the damage in all of the above cited cases? Does it only halve in cases where a save isn't offered? Or something in between?


How to convert coverage (.adf) to shapefile?

Is there any tool or software except ArcGIS which I can use for converting coverage (.adf) files to shapefiles?


I am using Ubuntu 12.04 and I just installed Wine.  sudo add-apt-repository ppa:ubuntu-wine/ppa  sudo apt-get update  sudo apt-get install wine1.5  sudo apt-get install winetricks    The installation was not fully successful because it gave me the error that fonts were not installed.  Without the fonts I cant open any program. I have tried to copy fonts from Windows to /usr/share/fonts but there is no paste option.  Also I have googled and saw somewhere that you can install fonts via winetricks. If so, how does it work? Can I open winetricks? How can I do the install?  Regards


As the question suggests: How to disable support of the SSL version 3 and set TLS version 1 as minimum (oldest) protocol supported in order to defend against POODLE.  One can test a browser with .  Basically, I haven't found a solution for Safari yet.


How to get GRUB to be the default bootloader instead of Windows Boot Manager on a UEFI laptop?

I've got an HP Pavilion Touchsmart notebook that came with Windows 8. I've upgraded to 8.1, and now I want to dual-boot an Ubuntu distribution with Windows 10. When dual-booting with Windows 8.1, the Windows Boot Manager always took priority, even after installing GRUB. What do I need to do to get GRUB to be the default bootloader instead of Windows Boot Manager?


I often address people of all genders as "dude" but a female coworker said that dude has origins only pertaining to males and is therefore itself male. She challenged me to find a word to address all genders that has feminine origins. Any ideas?  Edit: I'm not necessarily looking for a feminine alternative, nor am I trying to convince my coworker that dude can be male or female. Her larger point was that dude was originally masculine and is used for all genders (same goes for buddy, et all). She didn't think there were any terms with female origins that are now used for both male and female. That's what I'm looking for.


When I move my mouse, the window in Blender blurs / smears down. Why is this is happening?


So, if there are $N$ data points in my sample space of any randomly distributed variable $X$. The standard deviation, $\sigma$, (from my understanding) is the root mean squared of the error (from the mean, $\bar{X}$,) which leads to the formula shown below $$\sigma = \sqrt{\frac{\sum_{i=1}^N\left(X_i-\bar{X}\right)^2}{N}}$$  But, in certain cases, the deviation is shown using the formula  $$\sigma = \sqrt{\frac{\sum_{i=1}^N\left(X_i-\bar{X}\right)^2}{N-1}}$$  For example, in this link (). I do not really understand how this helps to reduce bias, as said in the above link.


How to factorise large number without calculator?

I would like to factorise $496241$. I know the answer is $677 \times 733$. But I don't know how to get there.   Here is the full question:   "A message has been encoded using RSA with a modulus of $m = p q = 496241$ (with $p$ and $q$ being primes) and encoding exponent of $218821$.  You are advised that $\{13631, 142703\}$ is a valid encoding–decoding pair for the same modulus, $m$.  (a) Use this information to determine $\phi(m)$ for this modulus. (Using software to directly factorise $m$ is not a valid option for doing this part.)  (b) Verify your answer by determining the primes $p$ and $q$. Show how these combine to give both $m$ and $\phi(m)$."  I need it so I can solve (a), and it says I cannot use software to directly factorise m. So I guess pen and paper. But there are not tutorial online. Thanks


Lebesgue Outer Measure of $\mathbb Q$ from the Definition

Define $\lambda^*:\wp\left(\mathbb R\right)\to\left[0,\infty\right]$ by  $$\lambda^*\left(E\right)=\inf\left\{\sum_{n\in\mathbb N}\left(b_n-a_n\right):E\subseteq\bigcup_{n\in\mathbb N}\left(a_n,b_n\right)\right\}.\tag{$\star$}$$  In other words, $\lambda^*$ is the Lebesgue outer measure.  Clearly, $\lambda^*\left(\left\{q\right\}\right)=0$ for every $q\in\mathbb R$. Therefore, since outer measures are countably subadditive, $\lambda^*\left(\mathbb Q\right)=0$;  $$\lambda^*\left(\mathbb Q\right)=\lambda^*\left(\bigcup_{q\in\mathbb Q}\left\{q\right\}\right)\leq\sum_{q\in\mathbb Q}\lambda^*\left(\left\{q\right\}\right)=0.$$  However, how does this follow from $\left(\star\right)$ alone? I am having a hard time coming up with a sequence of collections of intervals whose unions contain $\mathbb Q$ and whose sums approach zero since $\mathbb Q$ is dense in $\mathbb R$.


This question came from  and from  where it's noted that "integers have a finite count of digits", so that the "number" in the title is not at all a number (not integer nor rational or real) . This statement seems to me justified because I suspect that if we admit an infinite count of digits we build a set of "numbers" that is not countable (but I've not a proof). I'm wrong?    Reading comments and answers I'm a bit confused. So I add a more specific question: Is the string in the title a number in some model of Peano Axioms?


I had Windows 10 Pro 1803 17134.81 with installed only English language.   A few days ago in updates I got "Пакет локализованого интерфейса на русском" that automatically installed on my PC.  But now I can't remove that   Default language of interface is English but when I run Lpksetup.exe   How can I remove Russian language?


Find all positive integers n such that $n + 3$ divides $n^2 + 27$.   I am quite stuck on how to conclusively show all of the solutions. I tried look at the intersections of $y = n^2 + 27$ and $f = x(n + 3)$ where is $x$ is some number. But it still involves setting $x$ values. Any help would be much appreciated.


Would google index a page in sitemap which there is no direct link to it from website?

Let's say I have a listing website with thousands of pages. I don't want to make all those pages(items) crawlable by others, unless they search for those items. But, still I like to have all those pages indexed in google. Please note that those pages do exist, and it is not a broken link, just that there is no direct link to those pages unless one uses search function of the website.  How can I achieve that? One things that comes to my mind is to create a complete sitemap with all pages included and submit it to google for indexing. would it work!? Or google would complain that it cannot follow a path of links from home page to those (unlinked) pages?  Thanks


Online course for inferential statistics

Having graduated in econometrics I am now working as a Data Science Consultant. I would like to gain a deeper knowledge of (theory of) inferential statistics. Is there any recommendable online course/book/slide material in this area.  I would like to gain a deeper understanding of concepts like:   Cramer-Rao Lower Bound Chapman-Robbins Bound Rao-Blackwell Theorem Central Limit theorem etc.   Note: I do not need basic definitions as I am using statistics and econometrics for ~5 years already. My aim is to gain an understanding of the underlying theory.


What is point of no return in The witness?

I'm feeling like i'm very close to an ending of , even though there are a lot of puzzles are left unsolved. And I heard that it is possible to beat the game without solving all the puzzles.    Can someone formulate a recognizable description of the action, which forbid me to go back and solve rest of the puzzles? With minimum amount of spoilers, please.


Should the following sentence use the English or plural form of the verb?

Is it grammatically correct to use the singular?     Neither sympathy nor empathy is relevant to the decision.   Or should I be using the plural form?     Neither sympathy nor empathy are relevant to the decision.


How to make $\lim_{x \to 0} (1-2x)^{1/x}$ into $\frac{\infty}{\infty}$ or $\frac{0}{0}$ form for L'Hospital's Rule?

I am trying to figure out how to make $\lim_{x \to 0} (1-2x)^{1/x}$ into $\frac{\infty}{\infty}$ or $\frac{0}{0}$ form for L'Hospital's Rule.   Using Desmos.com I have found that $(1-2x)^{1/x} \neq 1-2^{1/x}x^{1/x}$ and I'm not sure why that is either. That is the only thing I can think of to change the function's form.


I have an old version of swift swift-4.2.1-RELEASE on my Ubuntu machine, which I need to uninstall, so that I will be able to install the latest version. But I couldn't find a good article that explains clearly how. I have been struggling with this for a while.


What are the differences between "to talk" and "to speak"?

Both verbs "to talk" and "to speak" refer to the same action.  Is their meaning exactly the same? When is more appropriate to use one, or the other verb?


Script to raise a single window to the front

In a script I'm trying to find the Terminal.app window containing a specific tty device and raise that window to the top. Here's what I have in Applescript so far:  tell application "System Events"   set foundWin to false   if (name of processes) contains "Terminal" then     tell application "Terminal"       set theTabs to first tab of every window where tty is "$(tty)"       repeat with theTab in theTabs         if class of theTab is tab then           set theWin to (first window whose tabs contains theTab)           set selected tab of theWin to theTab           set foundWin to true         end if       end repeat     end tell   end if   if foundWin then     --RAISE THE WINDOW?!   end if end tell   Where I'm getting stuck is the "raising the window" part.  Here are some things that are not quite what I want:  set frontmost of theWin to true -- this brings the window to the front of the group of Terminal.app windows but doesn't raise it above any other windows.  tell application "Terminal" to activate -- this brings every Terminal window to the front in a big stack. I just want the one window.  tell application "System Events"     set theSysWin to first window of process "Terminal" whose name is (name of theWin)     perform action "AXRaise" of theSysWin end tell   This almost does it, but what it does is to raise the terminal window to the #2 position, still underneath the active window (if the active app is something other than Terminal.app.)  click theSysWin at {10,50} -- doesn't seem to do anything.  click first static text of theSysWin -- doesn't seem to do anything.  Is there a way to do this? It doesn't have to be in Applescript.  EDIT I did find this web page (  ) quoting an Obj-C/Cocoa call:  SetFrontProcessWithOptions(&psn, kSetFrontProcessFrontWindowOnly);  I'm not familiar with either ObjC or Cocoa, and this is (ultimately) getting invoked from a shell script, so not sure where to go from there.


I was trying to update my Python and messed up my whole system.   I am currently now able to start my Software Centre. I tried Googling multiple fixes but nothing helped. My Software Centre can't start.   When I try starting it up, this error shows:  astephen@localhost:/usr/bin$ ./software-centerGtk-Message: Failed to load module "gtk-vector-screenshot" Traceback (most recent call last): File "./software-center", line 36, in <module> from softwarecenter.utils import ( File "/usr/share/software-center/softwarecenter/utils.py", line 19, in <module> import dbus ImportError: No module named dbus   I tried reinstalling dbus using:  apt-get install --reinstall dbus   But it did not help.  astephen@localhost:/usr/bin$ sudo apt-get install --reinstall dbusReading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not      upgraded. Need to get 0 B/231 kB of archives. After this operation, 0 B of additional disk space will be used. (Reading database ... 676272 files and directories currently installed.) Preparing to unpack .../dbus_1.6.18-0ubuntu4.3_amd64.deb ... Unpacking dbus (1.6.18-0ubuntu4.3) over (1.6.18-0ubuntu4.3) ... Processing triggers for ureadahead (0.100.0-16) ... Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Setting up dbus (1.6.18-0ubuntu4.3) ...


Why $\gcd(0,0)=0$ when $0/0$ is undefined?

Is this only a standard we have to follow? But Doesn't such acceptance manifests into a wrong solution eventually for some problem? If no, is there any proof?


Why does a string remain taut in circular motion

Lets say an object is tied to a string and it is being swung in a circle:    In this case, the tension of the string acts as a centrifugal force that keeps the object moving in a circle. However, if centrifugal force is the only force acting on the object, why doesn't it collapse into the center? I am pretty sure this has to do with the object's inertia (or the centrifugal pseudo-force), where it moves slightly forward in a tangent before falling, restoring the orbit.  Also, what keeps the string taut during the swinging? There has to be some force countering the centripetal force that keeps the string tight. I think this might again have to do with the intertia/centrifugal pseudo-force but can a pseudo-force balance a real force? Also, if centripetal were to be balanced by the pseudo-force, wouldn't the object not move at all (since the net force would be 0)?


Is it possible to put pairwise disjoint open 3d-balls with radii $\frac{1}{2},\frac{1}{3},\frac{1}{4},\dots$ inside a unit ball?    not an original question,  I found it somewhere in the internet once, but without any answer.


What is the difference between ethics and morals?

I am currently writing an essay on artificial moral agents, and I need to explain the difference between ethics and morals. However, I am finding it really hard to find a good book or research paper which contains a citable definition.   Could someone point me in the right direction?


Difference between ESTABLISHED and LISTENING

I have use Nmap -a to view all open ports on my laptop. However, I noticed that the states are different. Some have ESTABLISHED, some LISTENING and some were stateless. What do they mean?


Is the PS-Vita backwards compatible with PSP games?  Some games I would like to play include Final Fantasy 7: Crisis core, Jak and Daxter: The Lost Frontier, Coded Arms, Tekken: Dark Resurrection, and Secret Agent Clank.


Good text and reference in real analysis

I have just started reading real analysis. The topics include sequences, series, continuity, differentiability, integration, series of functions , calculus in higher dimensions etc.  I am in need of a text and a reference book.  Can someone please tell me about it?  The text should not be very broad as I need something to finish before my exam.But the reference should be broad, with full of exercise and examples. Hint to exercise will help me a lot.  Waiting for your response.


How to create a deep unmodifiable collection?

I often make a collection field unmodifiable before returning it from a getter method:  private List<X> _xs; .... List<X> getXs(){   return Collections.unmodifiableList(_xs); }   But I can't think of a convenient way of doing that if the X above is itself a List:  private List<List<Y>> _yLists; ..... List<List<Y>> getYLists() {   return Collections.unmodifiableList(_yLists); }   The problem in the above is of course that though the client cannot modify the List of lists, it can add/delete Y objects from the embedded lists.  Any thoughts?


Lets say I have an inline script tag that has a very simple code as follows  (function() {  var test = "This is a simple test";   function modifyTest(s) {   s = "Modified test text";  };   modifyTest(test);  console.log(test) //Will still display "This is a simple test"   })();   However if i use test = modifyTest(test); the change is applied my question is this.  Is this the only way to modify a variable in javascript inside a function, meaning i must always do  source = function(source); inorder to alter a variable inside a function,  or am i missing a scope concept that is preventing me from accomplishing this?


Post undeleted and converted to comment still shows as being deleted from review

I found  (only visible to 10k+ users on SFF, sorry) which had been deleted from review some hours ago but also flagged for conversion to a comment. I undeleted it and converted it to a comment (which of course re-deletes the answer), only to see that the post claimed to have been "deleted from review just now" by the same list of users as before.  Here's a screenshot of the timeline:    And here's one of what the post itself looks like now:    It was actually deleted from review 3 hours ago and then undeleted and redeleted by me 36 minutes ago, but to a casual observer it looks like it was deleted from review 36 minutes ago.  I'm posting this as a  report because it's technically showing incorrect information, but I'd be perfectly happy to be told it's actually a new feature. In fact, I've often found it annoying that when a whole bunch of users have voted to delete a post and then I convert it to a comment, their votes don't show up and it looks like I've acted unilaterally to remove it. This kind of remedies that.


Reduce tray icon padding on Ubuntu with GNOME 3

All of my tray icons have a higher than normal amount of padding on Ubuntu 19.04.  Is there any way to tweak this value?


Is there a 64-bit version for Intel systems?

I am downloading the 64 bit version, but the tar file is labeled amd64.tar.xz...will this work on mhy intel 64 system, or should I just use the 32bit version?


In Star Wars: The Force Awakens, We see Luke's lightsaber is not with him. What is the reason for that? Is it because he lost it? If so; when, where and while doing what?  I'm asking because a lightsaber is really important for a Jedi, as Obi-Wan constantly reminded Anakin.


How to solve "sudo: /etc/sudoers.d is world writable"

How can I fix the following error with sudo?  /etc$ sudo sudo: /etc/sudoers.d is world writable usage: sudo [-D level] -h | -K | -k | -V usage: sudo -v [-AknS] [-D level] [-g groupname|#gid] [-p prompt] [-u user             name|#uid] usage: sudo -l[l] [-AknS] [-D level] [-g groupname|#gid] [-p prompt] [-U user             name] [-u user name|#uid] [-g groupname|#gid] [command] usage: sudo [-AbEHknPS] [-r role] [-t type] [-C fd] [-D level] [-g             groupname|#gid] [-p prompt] [-u user name|#uid] [-g groupname|#gid]             [VAR=value] [-i|-s] [<command>] usage: sudo -e [-AknS] [-r role] [-t type] [-C fd] [-D level] [-g             groupname|#gid] [-p prompt] [-u user name|#uid] file ...


What is a word that means to say in a positive sense? For instance, when writers say that a person was sexually assaulted instead of saying raped.  Or people use let go instead of fired.  What is that called?


Could anyone help me with finding the difference between saying "catch a bus/train/etc" and  "take a train/bus/etc"? I'm afraid I haven't been able to glean one from my dictionary.


Prove that there are infinitely many prime numbers of the form $6n-1$. I proved that there are infinitely many prime numbers but I couldn't bring it in the form given in the question. While proving it, I was getting $6n+1$ not $6n-1$.


The one who's being celebrated (e.g., @ a BD party) (sometimes referred to as the birthday boy/girl)

Is there another term to specify who is being celebrated - e.g., @ a BD party?  ('Celebrant/celebrator' could be anybody celebrating, I believe. But isn't there a term which will specify the one/ones being celebrated?)  Is there, e.g., such a word as 'celebrantee,' or 'celebratoree'  (&, if not, oughtn't there be (the situation comes up repeatedly))?  Thank you.


How to find the intersection of $W$ and $Z$?

Subspaces$W$ and $Z$ of $\mathbb R^4$  are  generated by   $\{(1,1,0,-1),(1,2,3,0),(2,3,3,-1)\}$ and $\{(1,1,0,-1),(1,2,3,4),(0,1,3,5)\}$, respesctively.  Find a basis for $W$$\cap$$Z$.   I already know how to find the basis for $W+Z$, but I am confused on how to find the basis of $W$$\cap$$Z$.


I encountered idea of considering Sample space $\Omega$  as collection of function so far as I saw.  Can you show the proof of thesis $x \neq \{x\}$? In a book I saw this thesis is included in context of Russell's paradox.  Best regards,


How to add an other camera and make it active How can toggle between the two cameras?


I'm a secretary and my boss set up my new Windows 7 OptiPlex 7010 (Dell) computer for me while I was on vacation (he does not remember setting any "administrator" password).   We are a small office so there is no system password set, either.  I've used it for 6 months, all the while I couldn't access network drives, etc., without an administrator password.  It was annoying, but I could still get my work done.  Finally, on a slow day I took it upon myself to "fix" the problem, and in all my infinite wisdom, I managed to change my user account from administrator to standard user, so now I really can't do anything.  I can't download or install any programs, move or rename files, etc.  I tried the Dell suggested solution, but the BIOS tells me there is no password set, so it has to be a Windows 7 problem.  All the solutions I have come across require an administrator password to let me do them.  What can I do to find out the admin password so I can use my own darn computer!?  Is there a default admin password?


In a very small static universe with only a particle, does it make sense to talk about time?

I am sorry if this question is silly; it′s just one of those things I wished I asked before leaving university.  If there were a static universe only as big as the size of two particles, say electrons, and there were one electron in it going back and forth from point A to point B: would time also go back and forth in the future (point B) and in the past (point A), or would it be considered to  go forward as it does for us? would it be possible to know how long that electron stayed at point A or point B, would it even make sense to ask? I guess what I am asking is: does time move forward only because there are so many particles moving in this enormous space that it is almost impossible they would all be back in the same position they held at least once before relative to each other? does time exist only as a consequence of a lot of particles and their position relative to each other, and the space for them, just like heat?


Two examples I've seen of this so far are in statistical mechanics, when looking at the work done on a system:  $$dW=-\frac{1}{\beta}\frac{\partial \ln{Z}}{\partial V}\delta V$$  and in the Noether charge:  $$Q(t)\equiv \frac{\partial L}{\partial q'_{i}}\delta q_{i}$$  Why use the $\delta$ and not just $dV$ and $dq_{i}$?


Need to sum values associated with specific words, in Excel

I want to sum values associated with specific words.  For example, calculate Sum for Food:  Column A        Column B  Food             $8.50  Food             $5.10  Maintenance      $12.00  Laundry          $13.00  Loan             $1,213.25  Tution           $100.00    The result would be $13.60.  Please let me know which formula I can use


How do I implement occluded lighting in a block-based 2D game?

I want to have 2D lighting that can be blocked by in-game objects. My game has a top-down view and all game objects are described by rectangles.  Let's say I have a 10x10 world and I place a light at 1x1 and walls all around that light. I want to be able to see the light source at 1x1, but not anywhere else, because it's blocked by the walls.  I've heard of casting light rays works, but how does that really work?


Proof by Induction: $ \sum_{i=1}^{n} i \cdot i! = (n+1)! -1$

I am trying to solve the following proof and could use feedback on if I did it correctly and how to reduce the the second-to-the-last step to get to the last step     Use mathematical induction to show that  $$ \sum_{i=1}^{n} i \cdot i! = (n+1)! -1$$   This is my solution:  Proceed with induction. When $n=1$, the left-hand side reduces to 1 and the right-hand side becomes $2!-1 = 1$. Hence, the identity holds when $n=1$. Assume that the identity holds when $n=k$ for some integer $n \geq 1$. That is assume $$ \sum_{i=1}^{k} i \cdot i! = (k+1)!-1$$ For some integer $k \geq 1$, we want to show that the identity still holds for $n=k+1$. In other words, we want to show $$ \sum_{i=1}^{k+1} i \cdot i! = (k+2)!-1$$ From the induction hypothesis, we find $$ \sum_{i=1}^{k+1} i \cdot i! = \Bigg(\sum_{i=1}^{k} i \cdot i! \Bigg) + (k+1) \cdot (k+1)! $$ $$ \sum_{i=1}^{k+1} i \cdot i! = (k+1)! -1 + (k+1) \cdot (k+1)! $$   This is where I am stuck. I don't know how to reduce the previous step so that it looks like $$ \sum_{i=1}^{k+1} i \cdot i! = (k+2)! - 1 $$


Python: find all possible combinations between one array and N arrays

In Python, I am looking for a generic way (i.e. ) to build an array with all possible combinations between a given one dimensional array and N one dimensional arrays.  Here is a simplified example.  Input  main = ["a1","a2","a3"] secondary = [["b1","b2"],["c1","c2","c3"]]   Expected output  [   ["a1","b1","c1"],   ["a1","b1","c2"],   ["a1","b1","c3"],   ["a1","b2","c1"],   ["a1","b2","c2"],   ["a1","b2","c3"],   ["a2","b1","c1"],   ["a2","b1","c2"],   ["a2","b1","c3"],   ....   ["a3","b2","c3"] ]


how to omit automatic \n after 'print' in python 3.x?

is there a way to omit automatic \n after 'print' in python 3.x? i want my output something like this:-  2 2 2 4 4 8 8 32   my code is like this:-  a,b=1,2 while b<10:     print (str(b)+' '+str(b*a))     a,b=b,b*a   but i want my code to be like this to print the same thing:-  a,b=1,2 while b<10:     print (str(b))     a,b=b,b*a     print (str(b))   but its printing this:-  2 2 2 4 4 8 8 32   please help me out i am a newcomer in programming and python is my first language. Thank you!


Minecraft 'Access Violation' error before even showing Mojang screen? (1.8.1)

I have been trying to play for a while, I have tried:   Deleting all files and re-downloading Minecraft,  Updated Java (tried newest Java 7, as well as Java 8)    I just can't figure out what is causing it.   Modded Minecraft in other launchers works just fine, but vanilla in other launchers doesn't work either.  My machine runs Windows 8.1, 6GB RAM  Here is the error I'm getting:  Error: --------  A fatal error has been detected by the Java Runtime Environment:    EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffbcd700398, pid=6812, tid=2256   JRE version: Java(TM) SE Runtime Environment (8.0_25-b18) (build 1.8.0_25-b18)  Java VM: Java HotSpot(TM) 64-Bit Server VM (25.25-b02 mixed mode windows-amd64 compressed oops)  Problematic frame:  C  0x00007ffbcd700398   Failed to write core dump. Minidumps are not enabled by default on client versions of Windows   An error report file with more information is saved as:  C:\Users\Ryan\AppData\Roaming\.minecraft\hs_err_pid6812.log   If you would like to submit a bug report, please visit:    http://bugreport.sun.com/bugreport/crash.jsp  The crash happened outside the Java Virtual Machine in native code.  See problematic frame for where to report the bug.  Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release


Difference between gerunds and nouns ending in -tion

As we know, gerunds have the same function as nouns and can be substitute in noun phrases. Additionally as far as I know, meaning of them would be the act of doing that verb. (I don't know whether this is correct or not, this is my intuition though.)  Creating : An activity in which we are creating something. Cleaning : An activity in which we are cleaning something.  In the other side, we have noun "Creation" with meaning:  the act of creating something, or the thing that is created: Source: Cambridge Advanced Learner's Dictionary 4th edition  However, we don't have noun "clean + tion = cleanation". My questions:  Why don't some verbs have "-tion" nouns?  What is difference of meaning between gerund and "-tion" nouns? (for example: transformation and transforming)


I have this code  query = request.GET.get("q")     if query:         if query == "song" or query == "songs":             return render(request, 'music/cloud.html', {                 'songs': song_results,                 'generic_songs': song_results_generic,             })   The thing is, I want the "if" statement to ignor uppercases. For example, when the user search by "SoNg" or "SonG" or.. it will be converted to "song" before testing


Not sure whether this is an appropriate question for this site, but could anyone explain the physics behind how this skier is able to change his direction of rotation mid-air?


I know a presentation of the special linear group SL$(2,3)$(). My question is that-     Can we give a presentation for SL$(n,\mathbb{Z}_p)$ in general or in more general can we  give a presentation for SL$(n,\mathbb{F})$,where $\mathbb{F}$ is field.   As J.P. Serre had given presentation for SL$(2,\mathbb{Z})$   $$\mathrm{SL}_2(\mathbb{Z}) = \langle \,S, T \mid S^4 = 1, (ST)^3 = S^2 \,\rangle$$ where, \begin{align}     S &=     \begin{pmatrix}     \phantom{-}0& 1 \\ -1 & 0     \end{pmatrix},     &     T &=      \begin{pmatrix}     1 & 0 \\ 1 & 1     \end{pmatrix}. \end{align} I wants it to be more general.


What Concepts of Java do i need to learn to use Selenium Webdriver?

I want to learn Selenium WebDriver automation using Java. I have done manual testing before and want to learn automation. I just know the basics of Core Java.   Could you please suggest me the Core topics which one would require to perform test automation using Selenium WebDriver?   What topics on which a tester must concentrate and what topics to ignore in java programming?


How long could you survive in Space without a Spacesuit?

Contrary to popular belief, and numerous Hollywood movies, you could survive unprotected in space for over a minute - provided you could get back to medical care immediately after.  Moreover, in movies we see astronauts and people in spaceships opening doors and closing them again with no suits on.  Are these things correct or just myths? Is there any way to estimate or predict the time for the above?


Where M is a matrix calculate a formula for M^n

Let $$M = \begin{bmatrix} -7 & 8 \\ -8 & -7 \end{bmatrix}.$$ Find formulas for the entries of $M^n$ where $n$ is a positive integer.  (Your formulas should not contain complex numbers.)  Your answer should be in the form of a matrix.  I diagonalized to the form $M = P D P^{-1}$  and $M^n = P D^n P^{-1}$ where $P$ is my matrix of eigenvectors and $D$ is my matrix of eigenvalues.  My final answer after diagonalization was $$M^n = \begin{bmatrix} .5((-7+8i)^n+(-7-8i)^n) & (i/2)(-(-7+8i)^n+(-7-8i)^n) \\ (.5/i)(-(-7+8i)^n+(-7-8i)^n) & .5((-7+8i)^n+(-7-8i)^n) \end{bmatrix}$$  I can't seem to find an answer not in terms of complex numbers.  Can someone show me what I'm missing?


ERROR 000824: The tool is not licensed from arcpy.gp.ExtractByMask_sa()?

I know I have spatial analyst licensed and the tool works fine within ArcMap but when I try to run this code snippet:  import arcpy  arcpy.CheckExtension('Spatial')  # which returns 'Available'  arcpy.gp.ExtractByMask_sa("D:/Sheyenne/Atmospherically Corrected Landsat/Just_bands/LT50300281984137PAC00_sr_band3.tif", "D:/Sheyenne/sheyenne_area_poly.shp", "D:/Sheyenne/Atmospherically Corrected Landsat/Practice_band_clipLT50300281984137PAC00_sr_band3.tif")   the error returned is:  ExecuteError: Failed to execute. Parameters are not valid. ERROR 000824: The tool is not licensed. Failed to execute (ExtractByMask)   Has anyone encountered this before?


how can I change round bracket to square bracket using biblatex-chicago

My codes are follows: \documentclass[]{book} \usepackage[natbib,authordate,backend=biber]{biblatex-chicago}% \makeatletter \AtEveryBibitem{\global\undef\bbx@lasthash}% \setlength{\bibhang}{5\p@}% \setlength{\bibitemsep}{3.5\p@}% %\setlength{\biblabelsep}{-10\p@}% \def\bibfont{\footnotesize}% %\setlength{\bibhang}{1cm} %%% \newlength{\bibleftadd}% \setlength{\bibleftadd}{-5\p@}% %% \defbibenvironment{bibliography}   {\vspace{-2\p@}\markboth{\bibname}{\bibname}\list%      {}%      {\setlength{\topsep}{\z@}\setlength{\leftmargin}{\bibhang}%       \setlength{\itemindent}{-\leftmargin}%       \addtolength{\leftmargin}{\bibleftadd}%       \setlength{\itemsep}{\bibitemsep}%       \setlength{\parsep}{\bibparsep}}}   {\endlist}   {\item} \makeatother  \addbibresource{test.bib}  \begin{document}  This is for test \citet{antibayes} and \citep{pijnacker2}  \chapter{Chapter 1} \end{document}  %%content of test.bib% @incollection{antibayes, Address = {The Press}, Author = {G. Author1 and K. Author2 and M. Author3}, Booktitle = {The {U}niversity}, Date-Added = {2014-02-06 15:25:25 +0100}, Date-Modified = {2014-02-06 15:28:59 +0100}, Editor = {M. Editor1 and P. Editor2}, Publisher = {The {U}niversity}, Title = {The {C}ognitive {I}nterface}, Year = {2021}}  @article{pijnacker2, Author = {J. Author4 and B. Author5 and M. Author6 and J. Author7 and P. Author8}, Date-Added = {2014-02-06 15:14:32 +0100}, Date-Modified = {2014-02-06 15:17:39 +0100}, Journal = {Journal of {T}ext}, Number = {2}, Pages = {471--480}, Title = {Study}, Volume = {23}, Year = {2010}}  And the output is:  I want to change the brackets from round to square, please advise how to fix this.... I meant the similar option which are available with natbib.sty by \setcitestyle{square} and \setcitestyle{round}...


Using A/C adapters with different current ratings

Can I use an adapter AC/DC (Output 12V 500mA) instead of another A/C adapter (Output 12V 250mA) ? If not What I will do to use the first one as the only adapter at my level


Changing legal name, what happens when I visit the US again?

I'm a UK Citizen, I have previously visited the US under the name of, let's say, Joe Smith. I am changing my name to, let's say, Joe Barnes.  My passport will be in the new name of Barnes.  Do I have to acquire a new ESTA? And what happens when I visit the US? Will those machines that print off the slip show my old name or new name? And will this lead to more questioning on entry?


Can I hire my kid and start a Roth IRA for him?

I own an LLC, of which I am currently the sole member. It's my main source of income.  I am wondering if there is a reason why I could not do the following:   Hire my child as a part-time employee of the LLC, for an annual salary of $5500. Start a Roth IRA for the kid and put the $5500 into it. Deduct the $5500 as a payroll expense for my LLC, thereby reducing my amount of taxable income.   To me, this seems attractive because I'd lower my LLC's tax liability. Meanwhile, my kid would not have to pay any taxes on the $5500 because it is lower than the standard deduction. And by putting the money in a Roth IRA, he'd get an investment that would grow tax-free. It would essentially be like getting the pre-tax benefits of a traditional IRA with the post-tax benefits of a Roth.  The way I see it, I'd win, my kid would win and the IRS would lose, for once.  Is there any reason this wouldn't work? There is no minimum age or income for contributing to a Roth IRA. So as long as I could legally hire my kid, I don't see any obstacles.


What is the right SQL query for this case?

I want to use input string in part of the SQL query, and the code has been posted below.  import arcpy import os  in_features = arcpy.GetParameterAsText(0) target_county = arcpy.GetParameterAsText(1) out_path = os.path.dirname(in_features) out_name= "%s.shp" % target_county where_clause=""""CNTY_NM" = %s""" % target_county arcpy.FeatureClassToFeatureClass_conversion(in_features, out_path, out_name, where_clause)   When I run the script, it gives the error.    I don't know what is wrong with the code. Any suggestions?  I am using ArcGIS 10.3.1 Desktop Advanced License.


How to aproach painting/changing texture dynamically

I was wondering, if I for example have animated guy that is painting fence. How should I make it look like he is actually painting it? Like only after every stroke, the fence would change color. But I don't think texture change is the right approach. Any suggestions?


a term for a "not web" traditional application

I am writing a cover letter and I would state my experience in both web application and "normal programs". "Normal programs" sounds so bad, what is a good term that I can use without delve into technical details?


I am looking for a simple way of adding an asterisk or some small image to the left of an enumerate such that the indentation of the enumeration is not affected by the latter. I have read  and  in which the latter has the effect am looking for.     Update: egreg's solution below is nice and does answer the problem. But I want the possible newcommand to be used without introducing an newenvironment like just having \moditem inside the enumerate and working with enumitem.


In the movie Baahubali, why did Kattappa kill Baahubali?


SEO technics for online directory website

I am setting up a website that will host offers for supermarkets in the place i live. Now, my question is SEO related. I read everywhere that SEO title and Meta Description should be as unique as possible but in my case i end up with lots of similar (not duplicate but quite similar) content. For example:  Let's say that i am hosting supermarket offers and each supermarket has it's own page.   Supermarket A (Andy's Supermarket):   Seo title: "Andy's Supermarket New York | MyWebsiteName"  Meta Description: "View the latest offers from Andy's Supermarket in NY"  Supermarket B (Mario's Supermarket):   Seo title: "Mario's Supermarket New York | MyWebsiteName"   Meta Description: "View the latest offers from Mario's Supermarket in NY"  This could be the case for all Supermarkets in the same city, therefore creating a lot of almost identical content. In my case, we are talking about thousands of profiles and i think it's practically impossible to create unique Titles and Meta descriptions for each and every one of them. Is there let's say any technic for websites like mine in order for pages to be SEO friendly?  Thanks, Charis


What items are considered "worn or carried"?

What defines a worn or carried object, for the purposes of spells like Burning Hands and Firebolt? They ignite items, but specifically not things worn or carried.  Does carried mean wielded in hand, such as a staff? And does Worn pertain to only clothing and armor?  For instance, if a Wizard gets hit by Firebolt, would his component pouch and spellbook that are just on his person be ignited?


What is the size (sizeof(How_Many_Bytes)) of the following structure, given the following machine  parameters:   sizeof(char) == 1; sizeof(int) == 4; sizeof(long) == 8; sizeof(char *) == 8;    Integer values must be aligned.   typedef struct how_many_bytes {   long s;   char c, e;   int i;   char *d;  } How_Many_Bytes;    I thought it would be 4+1+1+(2+4)+8 = 20 bytes but when I run on my machine I get 24 bytes. I wonder why?


I have a table in my database and I hava added comments to each of the column in that table.  comment on column student_details.rollno is 'Roll No';   I have 6 such columns and I have added comments to each of the column in the same way.  I want to retrieve the comments using an sql query(PostgreSQL). I have checked few queries but they were complicated and I couldn't understand.  SELECT cols.column_name, (     SELECT         pg_catalog.col_description(c.oid, cols.ordinal_position::int)     FROM         pg_catalog.pg_class c     WHERE         c.oid = (SELECT ('"' || cols.table_name || '"')::regclass::oid)         AND c.relname = cols.table_name ) AS column_comment FROM      information_schema.columns cols WHERE      cols.table_catalog    = 'your_database'      AND cols.table_name   = 'your_table'   The above query worked for me but I don't know how. Can somebody explain this to me?


Why do some questions have an orange background? And can I get a list of the newest questions for all my favorited tags combined?

I've been using the Stack Overflow site for a while, but there are a number of things that confuse me:  Why are some questions in an orange background on the main page? (I can't work out any logic to it.)  How can I get a list of the newest questions for all my favorited tags combined?


When I scale up my design it seems to bend weirdly. I've only just started using Illustrator as I started a course in graphic design a week or so ago. Here's what it is doing.[    To be fair, The shape I used to create the curved tick over the I in the word is not the best, But I'm not sure why that's happening. (Yes I'm using shift when scailing).


Question about integrality and algebraic extension

Let $k$ be a field, and $A$ and $B$ be both $k$-algebras. Suppose $B$ is integral over $A$, and also that $B$ and $A$ are integral domains.   Let us denote $F(B)$ and $F(A)$ as the field of fractions of $B$ and $A$ respectively. Does it then follow that $F(B)$ is an algebraic extension of $F(A)$?


"She speaks an impeccable English" vs "She speaks impeccable English"

What is the difference between these sentences?        She speaks an impeccable English.   She speaks impeccable English.      I understand both are correct but is one simply more specific because of the indefinite article, "an"?


Given a function $g(x)$ which has a derivative $g'(x)$ for all $x$ satisfying    $g'(0) = 2$ and    $$ g(x+y) = e^x g(y) + e^y g(x) $$ for all $x \in \mathbb{R}$. How to show that    $$ g'(x) + g(x) - 2e^x = 0\ ? $$


How to prove this series about Fibonacci number: $\sum_{n=1}^{\infty }\frac{F_{n}}{2^{n}}=2$?

How to prove this series result:     $$\sum_{n=1}^{\infty }\frac{F_{n}}{2^{n}}=2$$   where $F_{1}=1,~F_{2}=1,~F_n=F_{n-1}+F_{n-2},~~n\geq 3$.  I have no idea where to start.


Help with Code Coverage for Milestone Completion Trigger

I have minimal Salesforce development experience and I am struggling with getting a test class built to cover 2 triggers. In the following Salesforce help article there are 2 triggers, 1 to auto-complete a milestone when an email is sent to the case contact, and a second to complete a milestone when the case is marked complete.  There is also a util class and test class for the until. Everything works great in my DEV sandbox; however, I can't promote to production as I don't have min 75% code coverage. I don't have any other custom APEX in my org. Below are the 2 triggers, any assistance with a test class would be much appreciated. Case object trigger trigger CompleteResolutionTimeMilestone on Case (after update) { if (UserInfo.getUserType() == 'Standard'){     DateTime completionDate = System.now();          List<Id> updateCases = new List<Id>();         for (Case c : Trigger.new){                 if (((c.isClosed == true)||(c.Status == 'Closed'))&&((c.SlaStartDate                      <= completionDate)&&(c.SlaExitDate == null)))     updateCases.add(c.Id);     } if (updateCases.isEmpty() == false)     milestoneUtils.completeMilestone(updateCases, 'Case Resolved', completionDate); }  Email Message object trigger; trigger CompleteFirstResponseEmail on EmailMessage (after insert) { if (UserInfo.getUserType() == 'Standard'){     DateTime completionDate = System.now();     Map<Id, String> emIds = new Map<Id, String>();     for (EmailMessage em : Trigger.new){         if(em.Incoming == false)             emIds.put(em.ParentId, em.ToAddress);     }     if (emIds.isEmpty() == false){         Set <Id> emCaseIds = new Set<Id>();         emCaseIds = emIds.keySet();             List<Case> caseList = [Select c.Id, c.ContactId, c.Contact.Email,                 c.OwnerId, c.Status,                 c.EntitlementId,                 c.SlaStartDate, c.SlaExitDate                 From Case c where c.Id IN :emCaseIds];         if (caseList.isEmpty()==false){                 List<Id> updateCases = new List<Id>();                 for (Case caseObj:caseList) {                     if ((emIds.get(caseObj.Id)==caseObj.Contact.Email)&&                         (caseObj.EntitlementId != null)&&                         (caseObj.SlaStartDate <= completionDate)&&                         (caseObj.SlaStartDate != null)&&                         (caseObj.SlaExitDate == null))                             updateCases.add(caseObj.Id);                 }                 if(updateCases.isEmpty() == false)                     milestoneUtils.completeMilestone(updateCases,                              'First Response', completionDate);         }     } }


Does Veganism actually do anything in-game?

One of the traits in Surviving Mars is Vegan. The description just says "don't worry, they'll tell you."  All of the food in the game seems to be plant-based so what, if anything, does Veganism do?


Fake proof that 1 = -1 (Can't understand the mistake)

$1 = \sqrt{1} = \sqrt{(-1)^2} = \sqrt{-1}\sqrt{-1} = i\cdot i = -1$. I know the mistake is here $\sqrt{(-1)^2} = \sqrt{-1}\sqrt{-1}$ because everything else seems right to me, but I don't understand why?  I guess this is the correct way : $\sqrt{(-1)^2} = |\sqrt{-1}| |\sqrt{-1}|$ ?


latex under emacs would not work with El Capitan

i have update to El Capitan, but latex would not work the error message problems after [0] pages. To see the problem i have got. /bin/sh: pdflatex: command not found I tried to understand what was the error in Path, but i did not figure it out  any help, i am not an advanced user!! thanks in advance


When should I take some piled downvotes seriously and when should I consider them to be serial downvoting?

Around 30 minutes ago four of my answers were downvoted. They're totally unrelated, so I'm assuming they're the result of a serial downvote.  My question isn't whether this can be resolved (although that would be nice); my question is - at what point should I assume it is a serial downvote and not just a genuine case of downvoting? At what point should I raise it as an issue? Or does Stack Overflow have measures in place to stop serial downvoting somehow?


Why doesn't IIFE capture variables in its scope?

I'm doing some experimenting with closures in Javascript, and with AngularJS  directives (1.x) in particular.   To put it simply, I am wondering why ScenarioOne correctly captures the variable message that we want, while ScenarioTwo does not. Why does the IIFE not capture and maintain the desired value of message when it invokes itself?  SCENARIO ONE   // WORKS. Displays 'We want this message'    var message = 'We want this message';    element.bind('click', (function(){     var msg = message;   // <-- MAGIC ?     return function(){       element.append('
Value of message: ' + msg + '
');     };   })());    message = 'We DON\'T want this message';   SCENARIO TWO   // DOES NOT WORK. Displays 'We  DON'T want this message'   var message = 'We want this message';    element.bind('click', (function(){     return function(){       element.append('
Value of message: ' + message + '
');     };   })());    message = 'We DON\'T want this message';   I would like to understand, what are the magic mechanics (see line denoted <-- MAGIC ) of that assignment? What is the general rule about this? Do all variables that you want from an outer scope need to explicitly assigned to a new variable inside the IIFE?  Here is a working Plunkr of all this:


Clear pattern in the residual vs fitted values plot


Macro - extension tubes vs reversal - how to choose?

I do a fair bit of macro photography, indoors with good lighting, using either a focus rail or manual focus pull to image-stack.  I've always considered that using extension tubes for this gives me the most flexibility. With one set of tubes I can vary the tube length in seconds; I can swap lenses at will; the electronics line up to the lenses so I can still vary the aperture. I can't use auto-focus, but at these magnifications I don't think that would be any benefit.  So, having read a few posts on here about reversal & that it might give me a sharper image, among them  as an overview &  for a comprehensive setup & equipment guide, & even  which really seems more concerned with why I should give up on both & get a dedicated macro lens.  I'm left wondering why I would go to all that effort to flip the lens round, investing in different mount adaptors for each lens I want to use, against simply continuing to do it the way I do, which I've become reasonably adept at.  Is the quality gain all that noticeable, even after stacking?  This is an example of about as small as I'm going, 2mm bud from an allium flower head, done with a nifty fifty f/1.4 at f/16 on 68mm extension, D5500, 4-layer stack [I've gone over 20 for larger objects] I'm pretty happy with it.    This will click through to a ⅓ size image


Inverse of an invertible upper triangular matrix of order 3

Prove that the inverse of an invertible upper triangular matrix of order 3 is invertible and upper triangular.  I have checked all the similar questions but I couldn't understand any of them.  I supposed random 3x3 upper triangular matrix and tried to find its inverse, but it came out lower triangular matrix, not the upper triangular. Can anyone please give me a suggestion, how to prove it?  $$ A=\left(\begin{array}{rrr}% a&b&c\\% 0&d&e\\% 0&0&f\\% \end{array}\right)% $$ $$ x11=\left(\begin{array}{rrr}% d&e\\% 0&f\\% \end{array}\right)% =df, x12=-\left(\begin{array}{rrr}% 0&e\\% 0&f\\% \end{array}\right)% =0, x13=\left(\begin{array}{rrr}% 0&d\\% 0&0\\% \end{array}\right)% =0 $$ $$ x21=-\left(\begin{array}{rrr}% b&c\\% 0&f\\% \end{array}\right)% =-bf, X22=\left(\begin{array}{rrr}% a&c\\% 0&f\\% \end{array}\right)% =af, X23=-\left(\begin{array}{rrr}% a&b\\% 0&0\\% \end{array}\right)% =0 $$ $$ x31=\left(\begin{array}{rrr}% b&c\\% d&e\\% \end{array}\right)% =bc-cd, x32=-\left(\begin{array}{rrr}% a&c\\% 0&e\\% \end{array}\right)% =ac, x31=\left(\begin{array}{rrr}% a&b\\% 0&d\\% \end{array}\right)% =ad $$ $$ adjoint A = \left(\begin{array}{rrr}% df&0&0\\% -bf&af&0\\% bc-cd&-ac&ad\\% \end{array}\right)% $$ $$ det A = a\left(\begin{array}{rrr}% d&e\\% 0&f\\% \end{array}\right)% =adf $$ $$ Inverse-A =1/adf  \left(\begin{array}{rrr}% df&0&0\\% -bf&af&0\\% bc-cd&-ac&ad\\% \end{array}\right)% $$ It came out lower triangular matrix. Is there any way to make it upper triangular matrix?


Why does inversion of a covariance matrix yield partial correlations between random variables?

I heard that partial correlations between random variables can be found by inverting the covariance matrix and taking appropriate cells from such resulting precision matrix (this fact is mentioned in , but without a proof).  Why is this the case?


NullPointerException when reading from external properties file

I'm trying to externalize a properties file. Right now, I'm testing by placing my properties file under my user profile folder, but I'm getting a NullPointerException. To be more specific, the System.out.println statement isn't being displayed in the console, which leads me to think that maybe it's the environment variable that's triggering the NullPointerException. I have also ensured that I placed the properties file in the correct path. Here is part of the code:  @PropertySource("file:${USERPROFILE}/test.properties") public MyClass{   private static Environment e;   public static void main(String[] args){     System.out.println("Test properties file: " + e.getProperty("myKey");  }  }   Properties file:  myKey=testvalue   And this line in my dispatcher servlet xml file :  <context:property-placeholder location="classpath*:query.properties, file:${USERPROFILE}/test.properties"/>   Where am I going wrong here? Any help would be greatly appreciated.


Why are some convergent Lebesgue integrals 'undefined'?

I sometimes read statements such as     The integral $$\int_0^{\infty} dx \, \frac{\sin x}{x}  $$ does not exist as a Lebesgue integral, because it is not absolutely convergent.   But according to my understanding, the integral $$\int_0^{R} dx \, \frac{\sin x}{x}  $$ exists as a Lebesgue integral for every $R>0$. Why can't we simply define $$ \int_0^{\infty} dx \, \frac{\sin x}{x}  = \lim\limits_{R \rightarrow \infty} \int_0^{R} dx \, \frac{\sin x}{x},   $$ and hence give meaning to the former integral as a Lebesgue integral? Isn't this also how one defines improper Riemann integrals, as a limit of proper integrals? Please point out any misunderstandings.


Is the quantum action principle of Schwinger a variational principle?

At the moment I'm working with the . For this I read the following paper: .  But I have some mathematical problems with this formalism. I don't really see why this is a variation principle since it is opartor-valued.   The action principle is defined by: $\delta S  = G_1 -G_2$, where $S$ is the action operator $S = \int_{t_1}^{t_2} dt ~L$ and $G$ the generator operators of the transformations.  What does it mean that the action principle is operator-valued? For the classical action where $S$ is real we search for a stationary point but for operators? I also have a problem that $\delta S \neq 0$. What interpretation has this additional term $G_1 - G_2$?


My plan is to have a Masterwork Darkwood Heavy Crossbow 430 gp, Quick Loading+1, Distance+1, Splitting Weapon+3, so that I can have a very long-range weapon. How much would that cost?  There's a table for this but for the life of me I can't make sense of it at all.


Evaluate: $\int e^x.\sin (x) dx$  My Attempt; $$=\int e^x.\sin (x) dx$$ $$=\sin (x).e^x - \int \cos (x).e^x dx$$ Neither of $\cos (x)$ and $e^x$ is going to vanish although we keep on using By Parts.  How to procced further?


How to prove {$a_n$ } is increasing where $a_1 = \sqrt{2}$ and $a_{n+1} = \sqrt{ 2+ a_n}$

I already found out that this sequence is bounded above and $a_n <2 \forall n \in \mathbb Z_+ $  I think I'm missing a point as I can't think of a way to prove that the sequence is increasing.


Found myself in two planes last week with the same seat-pillow width but the arm rests where almost three times thicker in one, making me feel cramped. Up to now, I've never been bothered by the width of the seat since I am below average width and height compared to a North American.  Should Seat Width be the size of the bottom cushion or the space between armrests?


Integral domain that is integrally closed, one-dimensional and not noetherian

I've tried to construct examples of rings that match all except one of the properties in the definition of a Dedekind domain. (This is an old number theory qual question from Berkeleys MGSA website).  The only starting point that I can think of would be  $R:=K[X_1,X_2,\ldots]$  for $K$ a field. This is clearly integrally closed as any polynomial relation is contained in $K(X_1,\ldots,X_n)$ for some large enough $n$ and $K[X_1,\ldots,X_n]$ is integrally closed being a UFD.  The problem is then to get rid of enough ideals from this ring $R$, so that its dimension would be 1, but I can't seem to figure out what to do.  Anyone have any other ideas for rings that could work as a starting point? The polynomial ring with an infinite number of variables is pretty much the only example that I know of for how to construct a non-noetherian ring that's still a domain.


Excuse me for the noob question.Please explain me outputs of the below ruby programme for implementing attr_accessor.    class SimpleService          attr_accessor :name          def initialize(name)           @name = name         end          def process           if false # some condition met             name = 'Akshay'           end           name         end       end   When I execute this class        SimpleService.new('John Doe').process       => nil   Why is the result nil?  when I use self explicitly to name      def process         if false # some condition met           self.name = 'Akshay'         end         name       end   Now the output is      SimpleService.new('John Doe').process     => "John Doe"   why is the result now "John Doe"?  I am a beginner in ruby.  Thanks in advance!


I have $25$ people who will be split into groups of $5$ people each day over $5$ days in $5$ different locations. Can I rotate them so that they all meet each other only once and visit each location only once over the $5$ days?


Idiom that means trying to save something that is beyond saving

It's on the tip of my tongue.  Example: "Replacing the hard drive of this computer would be [idiom]. It's going to fail completely soon enough."


Just found an answer to my own question. What to do?

I posted a question.  After messing around on my machine for about an hour, I found a solution.  Would it be more appropriate to remove the question, or to add the answer to it just to save some other poor idiot the trouble I went through?  Re: The duplicate.  I was asking in a specific situation whether it is more appropriate to give an answer or delete a question to which I was able to find an answer soon after asking.  I see this as being somewhat different from the situation of the other question.


What is the definition of a "feature map" (aka "activation map") in a convolutional neural network?

Intro Background Within a convolutional neural network, we usually have a general structure / flow that looks like this:  input image (i.e. a 2D vector x)   (1st Convolutional layer (Conv1) starts here...)  convolve a set of filters (w1) along the 2D image (i.e. do the z1 = w1*x + b1 dot product multiplications), where z1 is 3D, and b1 is biases. apply an activation function (e.g. ReLu) to make z1 non-linear (e.g. a1 = ReLu(z1)), where a1 is 3D.   (2nd Convolutional layer  (Conv2) starts here...)  convolve a set of filters along the newly computed activations (i.e. do the z2 = w2*a1 + b2 dot product multiplications), where z2 is 3D, and and b2 is biases. apply an activation function (e.g. ReLu) to make z2 non-linear (e.g. a2 = ReLu(z2)), where a2 is 3D.    The Question The definition of the term "feature map" seems to vary from literature to literature. Concretely:  For the 1st convolutional layer, does "feature map" corresponds to the input vector x, or the output dot product z1, or the output activations a1, or the "process" converting x to a1, or something else? Similarly, for the 2nd convolutional layer, does "feature map" corresponds to the input activations a1, or the output dot product z2, or the output activation a2, or the "process" converting a1 to a2, or something else?  In addition, is it true that the term "feature map" is exactly the same as "activation map"? (or do they actually mean two different thing?)  Additional references: Snippets from :  *The nomenclature is being used loosely here. In particular, I'm using "feature map" to mean not the function computed by the convolutional layer, but rather the activation of the hidden neurons output from the layer. This kind of mild abuse of nomenclature is pretty common in the research literature.   Snippets from :  In this paper we introduce a visualization technique that reveals the input stimuli that excite individual feature maps at any layer in the model. [...] Our approach, by contrast, provides a non-parametric view of invariance, showing which patterns from the training set activate the feature map. [...] a local contrast operation that normalizes the responses across feature maps. [...] To examine a given convnet activation, we set all other activations in the layer to zero and pass the feature maps as input to the attached deconvnet layer. [...] The convnet uses relu non-linearities, which rectify the feature maps thus ensuring the feature maps are always positive. [...] The convnet uses learned filters to convolve the feature maps from the previous layer. [...] Fig. 6, these visualizations are accurate representations of the input pattern that stimulates the given feature map in the model [...] when the parts of the original input image corresponding to the pattern are occluded, we see a distinct drop in activity within the feature map. [...]  Remarks: also introduces the term "feature map" and "rectified feature map" in Fig 1.  Snippets from :  [...] One dangerous pitfall that can be easily noticed with this visualization is that some activation maps may be all zero for many different inputs, which can indicate dead filters, and can be a symptom of high learning rates [...] Typical-looking activations on the first CONV layer (left), and the 5th CONV layer (right) of a trained AlexNet looking at a picture of a cat. Every box shows an activation map corresponding to some filter. Notice that the activations are sparse (most values are zero, in this visualization shown in black) and mostly local.   Snippets from   [...] Every unique location on the input volume produces a number. After sliding the filter over all the locations, you will find out that what you’re left with is a 28 x 28 x 1 array of numbers, which we call an activation map or feature map.


Undesired vertical space in List of Figures

How to get rid of that vertical space between caption titles? (space between the second line and the third line).   The figures come from different files that have been \input'ted ;  using \include does not change result.   Edit: problem is due to figures being in different chapters, not due to coming from different files. So answer is there. Thank you Werner.     Minimal example is  \documentclass[12pt,letterpaper,oneside]{book}  \usepackage{blindtext} %\usepackage{tocloft} %\usepackage[nottoc]{tocbibind} %\usepackage{chngcntr} %\counterwithout{figure}{chapter}  %\usepackage[labelsep=newline,justification=centering]{caption}  \begin{document}  \listoffigures \input{part1.tex} \input{part2.tex} \end{document}    where part1.tex has two figures and is   \blinddocument  \begin{figure} \begin{center}   \end{center} \caption{First input file, first figure} \label{fig:TrueDistances1} \end{figure}  \begin{figure} \begin{center}   \end{center} \caption{First input file, second figure} \label{fig:TrueDistances2} \end{figure}   while part2.tex is  \blinddocument  \begin{figure} \begin{center}   \end{center} \caption{Second input file, first figure} \label{fig:TrueDistances3} \end{figure}


Short expression to convey "but consider the source"

Is there a short phrase (one to three words), Latin or otherwise, that conveys "but consider the source"?  For example, "I heard that pigs fly on television (your phrase here)."  I'm thinking perhaps a phrase that begins with the Latin word "caveat".


Is colour, as represented using primary colours, accurate only to humans?

Slightly biological, hopefully physical enough to be answered.  Suppose a magenta hue is represented by a mix of red and blue pigment. This is all very well for a creature with red and blue photoreceptors, but suppose it was seen by a creature which had a magenta-sensitive receptor, but no red or blue. Would the colour appear the same (insomuch as a qualititave concept can appear the same, I suppose I mean 'Would they interpret it as colour of the same wavelength?')?  The crux of my question is, do the particular bands in which photoreceptors are activated affect vision of additive, as opposed to pure, hues?  Finally, completely off-topic, but if there happens to be a biologist around, do animals on the whole have similar photoreceptors, or are they placed largely randomly?  Thanks, Wyatt


Isn't "You can only post once every 40 minutes" a new user restriction?

I posted a  on Super User (after discovering the broad  tag), then proceeded to ask my original question.  However, I got this error.    I have more then enough rep to get past the new user restrictions.    Is this a , or is the posting limit not a new user restriction?


Agreement after disjunctive compound subject_"My brother or one of my sisters" — singular or plural?

Should I use 'was' or 'were' in this example?     I was always delighted when my brother or one of my sisters was/were asked to do them.


I have a file and I want to get string from that file into my javascript, so I can do something with it. I have found a way to do it, but it is little bit broken, since string from file can be really large. This is what I use now:  var text; $( "#p1" ).load( "smejanje.html" ); text = $("#p1").text();   In html:  <p id="p1"> Text </p>   And... It works (kind of), I use intervals, stuff like that, but it seems to do the trick. But, problem is that this method sets text of p1 element to be string from file and then it gets text of p1. Is there any way to load DIRECTLY to string, without editing html element?


How to stop Katoolin from crashing Ubuntu?

I updated from 14.04 to 16.04 and used katoolin to add some Kali tools. After restart, the boot up of Linux ran codes, but stopped at a certain point never to load login. So I reinstalled 16.04, ran updates and tried again. This time, the boot menu was changed to Kali as well as the OS name (I'm using Windows 7 dual boot with Ubuntu); login started in Ubuntu style without user name, had to type in the name... then it goes to the logo screen never to log in.  How can I use katoolin without it affecting the boot menu interface? Does this happen when the user selects the option 'add Kali repositories and updates'? Are the Kali repositories necessary? I'd much rather just install the tools and not mess with the Ubuntu interface.


If I have a given matrix A and I perform it a row/column operation on it to get a new matrix B, are A and B similar?

I wonder if the matrices are similar, and if this is true, then if I want to solve a minimal polynomial problem on a matrix A, if I can simplify the matrix A until it has the form of a diagonal matrix by blocks B.


How does a photon represent electric and magnetic fields to propagate?

Light obeys the particle wave theory. This has always confused me. I understand the mechanism of the wave according to Maxwell theory. But, I run into problems when I think about the photon. How does it propagate? If I have a single photon moving through space, what does it mean? I mean, surely electric and magnetic fields cant only exist at one point helping each other move forward right? If light is electromagnetic, how is a photon electromagnetic? I don't get it. Or maybe because of the uncertainty principle, and we can approximate the momentum of light (radiation pressure), we have no Idea about its position. So the electric and magnetic field exist over some distance, and this is how electric and magnetic fields interact to push the particle forward?


how can i acces files on my pc remotely from my android?

i want to get files from my windows vista pc directly to my phone. i dont want remote control like i get from teamviewer. there are people using the computer while i am using my cell phone and i need to acces certain files without bothering them. also i want to gain aces to the entire hdd without any permision. something similar to wifi file explorer but from pc to phone. something like airstream (for some reason it doesnt work on my pc).it doesnt have to be free dont mind to spend a few dollars. and i DONT want a external server to contain all my files like mega or dropbox. Also it would be good to have an opsion to do it offline, or only being conected to the router since i need to moove farely big files too.  any ideas??


Can Mending be used to reattach severed body parts?

, and the  cantrip can do the following:     This spell repairs a single break or tear in an object you touch, such as a broken chain link, two halves of a broken key, a torn cloak, or a leaking wineskin. As long as the break or tear is no larger than 1 foot in any dimension, you mend it, leaving no trace of the former damage.      This spell can physically repair a magic item or construct, but the spell can't restore magic to such an object.   Could you, therefore, use the Mending cantrip on your dead party member who had his body parts chopped off, to reattach those body parts?  The benefit of doing so would be to be able to use a spell such as , instead of having to resort to higher level spells like Resurrection or a Regenerate + Revivify combo.


How would things resolve when targeting a spell, like magic missile, at an illusory creature?  For spells like Fireball, Lightning Bolt, etc. I think it's fairly clear the caster fires the spell off at the location they think there's a creature in, and it's up to the person controlling the illusion to decide how it reacts. Those spells don't need to be aimed at a creature at all, so the fact there isn't one there is irrelevant.  I'm asking about magic missile in particular because there's no attack roll required, and it automatically hits whatever it's aimed at. In fact WotC have confirmed  that it bypasses mirror image for that reason - no attack roll, it hits the creature you aimed it at. But what if you're aiming at a creature that doesn't exist at all?  Does the spell fizzle and fail to have any effect at all - since you haven't targeted it correctly? Does it fire off and seem to hit the illusion? That seems wrong to me, since you can't normally make a magic missile hit non-creature targets.  RAW seems to suggest that the spell would fail because you hadn't targeted it correctly - which means it's a great way to reveal illusions. But is there anything that suggests otherwise?  This is a similar question to the linked one, but I'm not asking only about Magic Missile. The question is broader, and is about any/all spells that are required to be targeted at a 'creature' or similar, where an illusion wouldn't fulfill that requirement, or indeed any other condition that led a caster to believe a valid target was present for a spell, when that wasn't the case.   Other examples include Healing Word, Polymorph, and so on. Is the caster aware that the spell has failed? I note the answer on the  suggests two possibilities - either the spell goes off, or the caster fails to target the illusion - which I suppose suggests there's no official ruling addressing this.


Is the use of upon correct in the following sentence?  There is a book upon the desk.  Also, is there any difference between on and upon in the following?  He stood on/upon the rock.  I'd appreciate your help.


I need some clarity on the usage of who and whom, and which is the correct sentence between these two?   The man WHOM I thought was thoroughly honest proved to be a swindler. The man WHO I thought was thoroughly honest proved to be a swindler.


How come a cork float to the side of a glass?

There's a not-so-recent video by a user named quirkology , where he shows bets that usually work. From , he puts a wine bottle cap at the center of a glass filled halfway with water, and this cap eventually moves to the sides.   $\qquad\qquad$   And the trick he shows to make the cap rest at the center without touching it is to add water until the glass if entirely filled, then the cap rests in the center.   $\qquad\qquad$   Does anyone have an explanation of that phenomenon?


Inverse of matrix has to have integer elements

Suppose I have a matrix say $A$ with integer elements. I want to have the elements of $A^{-1}$ to be integers . Here $A^{-1}$ stands for inverse matrix of $A$ . How can I prove that this is achievable iff the determinant value of $A$ is unimodular?


Is there an english word, which can be used for both update and create?  I'm programming a function which creates something if it doesn't exist already, otherwise it updates the stuff.  A word which came me in mind is process.  Does anyone know a better matching word for this purpose?


Support uploading retina-resolution images and showing them at standard size

This is a feature-request to support easily uploading retina-resolution (i.e. double resolution) images and automatically showing them at half-size.  It is currently possible to do this, but it takes a lot of tedious manual work.  Instead of using MarkDown, it's possible to use the <img> which allows resizing.  The following line  <img src="http://i.stack.imgur.com/De4De.png" width="374">   will produce this:    While the image is 2*374 = 744 pixels wide, it's resized to 374 pixels on a standard screen and it's shown in high resolution on a retina screen.  I use this method often in my posts.  This is a feature request to automate this procedure.  For example, the image upload dialog could have a checkbox to indicate that an image should be inserted at half size:    On  we have many users who use computers with retina screens and .  Some people are having difficulties with images being inserted at double size, others would simply like to be able to use high resolution images with relative ease.    If there are any existing non-official solutions, e.g. a userscript that automates this, please let me know!


Finite group with unique subgroup of each order.

Let $G$ finite group, and suppose $G$ has unique subgroup of each order (which divides $G$'s order) - Show that $G$ is cyclic.  I reduced the problem to sylow subgroups of $G$ (they are all normal), so I need to prove the statement only for $p$-groups, and really have no idea..


If a function $f$ is continuous in $[a,∞)$ and finite $\lim_{x→+∞}f(x)$ exists, then it's uniformly continuous in $[a,+∞)$.

Prove that if $f$ is defined and continuous in $[a,+∞)$ and if there exists a finite limit $\lim_{x→+∞}f(x)$, then $f$ is uniformly continuous in $[a,+∞)$  I know that since there exists a finite limit $\lim_{x→+∞}f(x)$, so $f(x)$ is convergent. How can I use this to prove it's uniformly continuous?


What are the differences between these two object declarations which uses an Interface and a Class in Java?

As I was learning about interfaces in java, I have a question regarding the object declarations of an interface implemented class, I can create an object reference for an interface implemented class like this,   InterfaceImplementedClass testObj1 = new InterfaceImplementedClass();  And also I can create an object using the Interface reference like this,  InterfaceCreated testObj2 = new InterfaceImplementedClass();   Then what are the differences between them, which one is better to use?The below code shows the implementation of the above explanation.    TestInterface  public interface TestInterface {     public void showOne();     public void showTwo(); }   ImplementInterface  class test implements TestInterface {     @Override     public void showOne() {         System.out.println("1");     }      @Override     public void showTwo() {         System.out.println("2");     } }   public class ImplementInterface {     public static void main(String[] args) {         test t1 = new test();         t1.showOne();    // prints 1         t1.showTwo();    // prints 2          TestInterface1 t2 = new test();         t2.showOne();    // prints 1         t2.showTwo();    // prints 2     } }


Where is Google Earth Pro installed in Ubuntu 20.04 LTS

I installed Google Earth Pro using the .deb package. Now I am struggling to find where it is installed. Where do .deb packages get installed in Ubuntu 20.04 LTS?


What is the "Templates" folder in the home directory for?

For as long as I can remember, every time I install Ubuntu there is a folder in the home directory called "Templates." I've always just deleted it, but I'm curious: what's it supposed to be used for, and why is it in the default install?


How do I find out a name of class that created an instance of an object in Python if the function I am doing this from is the base class of which the class of the instance has been derived?  Was thinking maybe  might have helped me out here, but it doesn't seem to give me what I want. And short of parsing the __class__ member, I'm not sure how to get at this information.


Is the 'fluttering feeling' when under stress neurological or physical?

I'm sure that everyone is familiar with the sensation commonly known as "butterflies in the stomach".  It is commonly experienced during periods of anxiety or stress (e.g. before high stakes job interviews or roller coaster rides) and apparently (after my web research) often felt in new romances without an obvious cause of tension.    However, whilst my googling did turn up an inordinate amount of rubbish regarding love-sicknesnes, I have been unable to find even a suggestion as to a mechanism as to the physiology behind this feeling.  Is it a sensation of physical change in the stomach (some sites vaguely mentioned the restriction of blood flow to critical organs but it was entirely unsupported) or is it neurological in nature?


Macroscopic quantum coherence in classical electromagnetic field

In  wikipedia article  "Regarding the occurrence of quantum coherence at a macroscopic level, it is interesting to note that the classical electromagnetic field exhibits macroscopic quantum coherence. The most obvious example is the carrier signal for radio and TV. They satisfy Glauber's quantum description of coherence."  As far as I understood, classical electromagnetic field is a thermal state, which is a mixed state. Why does it exhibit macroscopic quantum coherence?


Pinter's Abstract Algebra, Lemma in Chapter 26

Lemma Let $a(x) = b(x)c(x)$, where $a(x), b(x)$, and $c(x)$ have integer coefficients. If a prime number p divides every coefficient of $a(x)$, it either divides every coefficient of $b(x)$ or every coefficient of $c(x)$. PROOF: If this is not the case, let $b_r$ be the first coefficient of $b(x)$ not divisible by $p$, and let $c_t$ be the first coefficient of $c(x)$ not divisible by $p$. Now, $a(x) = b(x) c(x)$, so $\qquad a_{r + t} = b_0c_{r + t} +\cdots+ b_rc_t + \cdots + b_{r + t}c_0$ Each term on the right, except $b_rc_t$ is a product $b_ic_j$ where either $i > r$ or $j > t$. By our choice of $b_r$ and $c_t$, $\color{red}{\text{if }i > r\text{ then }p\,|\,b_i,\text{ and }j > t\text{ then }p\,|\,c_j}$. Thus, $p$ is a factor of every term on the right with the possible exception of $b_rc_n$ but $p$ is also a factor of $a_{r + t}$. Thus, $p$ must be a factor of $b_rc_n$ hence of either $b_r$ or $c_n$ and this is impossible.  Is there a typo at where it is highlighted with red in the proof? The greater than sign ">" should be replaced with less than sign "<" to become: $\qquad$ "if $i < r$ then $p\,|\,b_i$, and $j < t$ then $p\,|\,c_j$" Correct?