I am an undergrad in economics and really want to get a helping hand as I get from math and stats from a Stack Exchange site for economics. Where can I post my questions on economics topics?
I was wondering if there is a viable place on Stack Exchange to ask economics-related questions.  Questions I'd have in particular could be equation-based or theoretical.  I suppose the equation-based questions could possibly fit into mathematics but I haven't checked their FAQ.
Limit size of Queue in .NET? I have a Queue&lt;T&gt; object that I have initialised to a capacity of 2, but obviously that is just the capacity and it keeps expanding as I add items.  Is there already an object that automatically dequeues an item when the limit is reached, or is the best solution to create my own inherited class? A question about the arctangent addition formula. In the arctangent formula, we have that:  $$\arctan{u}+\arctan{v}=\arctan\left(\frac{u+v}{1-uv}\right)$$  however, only for $uv&lt;1$. My question is: where does this condition come from? The situation is obvious for $uv=1$, but why the inequality?  One of the possibilities I considered was as following: the arctangent addition formula is derived from the formula:  $$\tan\left(\alpha+\beta\right)=\frac{\tan{\alpha}+\tan{\beta}}{1-\tan{\alpha}\tan{\beta}}.$$  Hence, if we put $u=\tan{\alpha}$ and $v=\tan{\beta}$ (which we do in order to obtain the arctangent addition formula from the one above), the condition that $uv&lt;1$ would mean $\tan\alpha\tan\beta&lt;1$, which, in turn, would imply (thought I am NOT sure about this), that $-\pi/2&lt;\alpha+\beta&lt;\pi/2$, i.e. that we have to stay in the same period of tangent.  However, even if the above were true, I still do not see why we have to stay in the same period of tangent for the formula for $\tan(\alpha+\beta)$ to hold. I would be thankful for a thorough explanation. Copy specific file type keeping the folder structure Dealing with questions of nefarious intent What is the maximum number of Locations Discovered that one can achieve in Skyrim? Evaluating the infinite product $\prod\limits_{k=2}^\infty \left ( 1-\frac1{k^2}\right)$ Is there evidence of "think tank" meaning "the brain"? The  Random House Dictionary defines the expression  as:         a research institute or organization employed to solve complex problems or predict or plan future developments, as in military, political, or social areas.      According to  the above connotation  is an extention of an earliar sense  which referred to "the brain":        also think-tank, 1959 as "research institute" (first reference is to Center for Behavioral Sciences, Palo Alto, Calif.); it had been colloquial for "the brain" since 1905.      : shows usage of "think tank" only from the late '50s.  Is there evidence  of earlier usages of "think tank" meaning "the brain"? Despite  its colloquial   usage I assume  the expression was quite widespread before it was adopted by the Stanford University. Im having a bit of trouble drawing a circuit with a diode in. I know the current flows from negative to positive, but convention says that current goes from positive to negative.  When drawing a circuit with a diode do you draw the arrow pointing to the positive (matching the actual flow of electrons) or towards the negative terminal (matching conventional current)?  If you follow convention then surely when building circuits from the diagram the diode will not allow current as it is actually facing the incorrect way? Let, $X$ be a countable set. Which of the following are true?   There exists metric $d$ on $X$ so that $(X,d)$ is complete. There exists metric $d$ on $X$ so that $(X,d)$ is not complete. There exists metric $d$ on $X$ so that $(X,d)$ is compact. There exists metric $d$ on $X$ so that $(X,d)$ is not compact.   4 is true as we can take discrete metric. Then $\{\{x\}:x \in X\}$ is an open cover containing no finite subcover.  If there exists a compact metric then it would automatically become complete also. Hence if 3 is true, so is 1.  What about 2? Any other comment? Can the 5E abjurer wizard recover temp hp on his arcane ward any time it is below max or only when it reaches 0? On p115 of the PHB under Arcane Ward there are a few facts that I think are clear:   The ward is created by the first abjuration spell you cast in a day It has a max hp of level &times; 2 + int modifier. The ward does not absorb damage once it reaches 0 hp, but it remains until you take a long rest The ward can be recharged by casting abjuration spells, at a rate of 2 x spell level worth of hp 3.   However, the way they wrote the paragraph about recharging seems unclear to me. Can you recharge the ward whenever it is below max hp or only when it is at 0? My understanding of temporary hp would say it is the latter, but the writing on this ability infers the former.  An example.  If I were a level 10 abjurer with 20 int and cast Mage Armor, it would give the ward 25 hp. If I took 30 damage from an enemy, the ward would absorb 25 damage, leaving it at 0, and I would take the remaining 5 damage. If I cast Stoneskin (level 4 abjuration) the ward would be recharged with 8 hp. If I then cast Planar Binding (level 5 abjuration) which would be correct?   The ward remain at 8 hp The ward would recharge an additional 10 hp to a total of 18 hp Is it feasible to transform each variable differently while doing multiple regression I have a dataset with 10 variables ...is it feasible to transform each variable differently while doing multiple regression...  for example new_V1 = log(v1)  New_V2= V2^2  New_V3= 1/V3  Likewise differently for different variables and then applying multiple regression? In my textbook, a relationship is plotted between the resistance of the material and the temperature, and the temperature coefficient is defined as the slope of that graph divided by an arbitrary resistance $R_1$ on the graph. Does that mean that the coefficient varies depending on the temperature I choose to divide the slope by?  If so, how does it stand as a valid reference to the material’s resistance growth rate with temperature?  If not, then where did I go wrong with this train of thought? Multi-Question Questions: How Best to Handle Them? Sometimes I come across a question on SO that is actually a number of questions all in one. If these &quot;sub-questions&quot; are closely related, it's not a problem. But if they are only weakly related (or not at all) it gets ugly. I'm now (ironically or hypocritically) going to ask a few questions of my own for the community to respond to:  Do you consider a question made up of a number of weakly-related sub-questions &quot;inappropriate&quot;? Why or why not? How many is too many sub-questions? What do you think is the best way to deal with such questions?  As an example,  I had some discussion about with another user. I will add a more complete version of my response in an answer below, but in short I felt that this question should be closed and many of the questions asked separately. What packages do i need to install on an ubuntu desktop for it to "become a server"? Alright, so due to problems connecting to a wifi network on the ubuntu server distribution, i want to install the neccesary packages for a lamp, mail and ssh server on an ubuntu desktop 14.04 lte distribution(i am able to connect to the internet with the desktop version).  what should i install from the command line?  Thanks in advance! Configure HAProxy to include host headers for different backends I am exploring the use of HAProxy as a balancer in front of a set of web apis that run on IIS.   node1.myapp.mycompany.com node2.myapp.mycomapny.com   We are currently using Host Headers to correctly resolve the right web application on IIS.  For example, we may have otherapp.mycompany.com running on the same server/port, but using Host Headers IIS knows which one to serve up.  My initial attempt at HAProxy left me with 404 errors, because I was not including the host headers in my request, and so IIS was serving back the default site bound to the given IP, and not resolving by host name.    The fix left me with something like this:  frontend localnodes     bind *:80     mode http     default_backend nodes  backend nodes     mode http     balance roundrobin     option forwardfor     reqirep ^Host: Host:\ node1.myapp.mycompany.com     server web01 node1.myapp.mycompany.com:80   This works great for a single backend, but I am left scracthing my head on how to include the correct host headers depending on which backend is serving up the request:  backend nodes     mode http     balance roundrobin     option forwardfor     reqirep ^Host: Host:\ node1.myapp.mycompany.com     server web01 node1.myapp.mycompany.com:80     server web02 node2.myapp.mycompany.com:80   The above does not work whenever node2 is used because it doesn't resolve correctly in IIS (node2 in this case is on a different server, and therefore different IP.  In fact, if they were running on the same server/ip I suspect the request work "work", but they would all be served by node1 per the host header).     Is it possible to set the host based on the url of the backend used to serve up the request? If so, this implies my checks also need to provide the correct host header based on backend, how would that be done?   Edit: Am using HA-Proxy version 1.7.9 2017/08/18  Let me give this just a little more background.  We used to have just myapp.mycompany.com serving up api requests.  We need to expand it.  Our clients will still call myapp.mycompany.com, but that will just point to the HAProxy, which will balance it out to node1.myapp.mycompany.com and node2.myapp.mycompany.com.  Our current server configurations have us binding a single IP address on each server, so we use host headers to resolve. Define a new block environment in LaTeX beamer I have two kinds of examples in my document. I want to use different colors, say, red and blue. This is what I am doing now.  \documentclass[]{beamer} \usetheme{Madrid} \begin{document}  \begin{frame} \frametitle{Test} \setbeamercolor{block title}{fg=white,bg=red!75!black} \begin{block}{First Kind Example} This is example of the first kind. \end{block} \setbeamercolor{block title}{fg=white,bg=blue!75!black} \begin{block}{Second Kind Example} This is example of the second kind. \end{block} \end{frame}  \end{document}   I know this is kind of stupid. I want to define two new block environments, one for each color, so I don't need to use setbeamercolor every time I use them.   \begin{block1}{First Kind Example} ... \end{block1} \begin{block2}{Second Kind Example} ... \end{block2}   I know I need to define these two new environments in the preamble, but don't know how. Thanks for the help.  By the way, what is a good reference on these kinds of tricks in LaTeX/beamer? Any recommendations? Testing AuraHandledExceptions? It seems like when I call getMessage on a thrown AuraHandledException, I see "Script-thrown Exception" instead of the message that I have set. Any idea why this may be happening?  Controller:       @AuraEnabled     public static Conversation__c makeConversation(String tonum, String objid)     {         if (tonum.length() != 10)             throw new AuraHandledException('ToNumber length invalid.');     }   TestController:  @isTest     static void testMakeConversationInvalidTo()     {         Boolean testPass = false;         String fromNumber = '1234567890';         String toNumber = '1';          List&lt;ConversationController.ConversationWrapper&gt; test =    ConversationController.getConversations();         System.assertEquals(0, test.size());         try {             ConversationController.makeConversation(toNumber, '0');         } catch (AuraHandledException e) {             System.debug(e.getMessage());             System.debug(e.getTypeName());             System.assert(e.getMessage().contains('ToNumber length invalid'));             testPass = true;         }     }   Return:  16:26:28:477 USER_DEBUG [320]|DEBUG|Script-thrown exception 16:26:28:477 USER_DEBUG [321]|DEBUG|System.AuraHandledException Suppose there are several journals with the same impact factor. Is it better to submit my papers to one of them or each time I finished a manuscript it is better to submit to an equally good journal that I have not published in yet.  I am early in my career and I already published two papers in the same journal and I am going to finish my third paper, which potentially can be published in the same journal as my previous two papers. Which of these sentences is correct?     Rupees are interchangeable with dollars   or      Rupees is interchangeable with dollars. AJAX select returns 'illegal choice detected' Create a settings form for a module in Drupal 8 - when a user selects a View from a list, the drop down under it should populate with the displays in that view.  While the form updates the option list for the user, it also throws an error message on the screen "Illegal choice has been detected".  Here is the code (it doesn't paste very well):    getViewDisplays is the ajax callback that is populating the options.  Some people who have posted about this around the internet say to set #validated on the select field to TRUE, though, that doesn't necessarily feel right. I still want to validate the submission to do some checks.