Generic function overload
Generic constraints, where T : struct and where T : class
How to Hide sections of InfoPath form based on Group membership I need to Hide "Sections" of InfoPath form using SharePoint or AD group membership (either is fine). How can I achieve this?  InfoPath 2010 in SharePoint 2010 Why does default auto.arima stop at (5,2,5)? The function auto.arima in the forecast package of R is a powerful tool to identify the best ARIMA(p,d,q) model for a given data series. In the   of the function, they report the following:  auto.arima(y, d=NA, max.p=5, max.q=5, max.order=5, max.d=2, start.p=2, start.q=2, ...)   According to the above function it seems that, by default, auto.arima tries to find the best model among all the combination having:   p equal or lower than 5 q equal or lower than 5 d equal or lower than 2 order equal or lower to 5, i.e. p + q + d  ≤ 5.   However, why does the default code stops at these conditions? Is there any particular reason why p, q and d should be equal or lower than 5, 5 and 2 and their sum lower than 5? This is from  .      Let $\mathcal{A}$ be a locally small category, and let $A,A' \in \mathcal{A}$ with $\operatorname{Hom}(-,A) \cong \operatorname{Hom}(-,A')$. Prove directly that $A \cong A'$.     My thoughts:      Let $\eta$ denote the natural isomoprhism between the two functors.    We have    $$H(A,A) \xrightarrow{ \eta_A} H(A,A')$$   So $\eta_A(id_A): A \rightarrow A'$ is a candidate. Now I want to construct inverse.    $$ H(A',A') \xrightarrow{\eta_{A'}} H(A',A)$$   Then the map $\eta^{-1}_{A'} (id_{A'}):A' \rightarrow A$.    So I'd like to show that the composition is identity. By the naturality condition of $\eta$, from $H_A(A) \rightarrow H_{A'}(A')$ (and similarly on other direction)    $$ \eta_A(id_A) \circ \eta^{-1}_{A'}(id_{A'}) = \eta_{A'}(\eta_{A'}^{-1}(id_{A'}))= id_{A'} $$   We deduce these two maps are inverses. Hence $A' \cong A$.    Is this correct? Or is there a neat way to see this? how to fix ioctl permissions denied error? I searched in lots of websites/forums but did not find a solution for this problem, and this site is last chance, this is problem: This problem have several other users too. my phone is Galaxy S7 Edge , exynos, Oreo 8.0 (Stock ROM), rooted with magisk latest version. root works well in other applications. In pentesting applications like csploit, Network Spoofer, WifiKill and others  root works well(grants permission)  but when start using options of app(for example, arp spoofing, network sniffer, MITM, etc) drops same error: [ERROR] Unable to retrieve local hardware address libnet ( ioctl: Permission denied ) what to do? Can this issue fixed? or exactly which permission is it?  Also one interesting thing, when I installed old version of WifiKill app it worked - killed wifi connection. How do you performance test JavaScript code? CPU Cycles, Memory Usage, Execution Time, etc.?  Added: Is there a quantitative way of testing performance in JavaScript besides just perception of how fast the code runs? How do I move child windows without moving or minimizing parent in GNOME 3? I have Ubuntu 17.10 with GNOME 3.  What happens: I have (for example) LibreOffice Calc open, with some data columns in it.  I highlight the columns I want to chart, then I select INSERT > CHART.  The chart child window dialog pops up on top of my data, so I want to move it to the side.  When I grab the top bar and move it, the parent (spreadsheet) window minimizes (I think it actually disappears).  Continuing the above example, if I click FINISH on the chart window, I can then see the minimized spreadsheet application, which is the window title bar plus the menu bar just below it.  This seems like really odd behaviour and certainly falls under the category of "not being useful to the user", since the whole idea of moving the child window in the first place was just to be able to better see the spreadsheet!  In other applications, for example the PDF viewer, a slightly different problem occurs.  When I try to move the child window (for example the print dialog) the parent does not minimize but instead follows the child window around.  This is less surprising than having the parent disappear entirely but equally useless in terms of allowing the user to see the information present in the parent window.  Update 2017/11/06  Pomsky's answer below fixes the problem, but leaves me wondering why the window manager is making the decision that all child windows have modal behaviour (or don't), and not the applications themselves; and further, why modal behaviour prevents moving the child screen around when it obscures useful info on the parent screen.  Neither of these seem like good design to me... Let $G = \mathbb{R} / \mathbb{Q}$. Is this an interesting group to study?  Is it isomorphic to any more natural mathematical objects? how long does the care take to reach the last pole algebra word problem There are 20 poles with a constant distance between each pole. A car takes 22 seconds to reach the 12th pole starting from the first pole, with a constant speed between each pole. how many seconds will it take to reach the last pole?   Is the answer 36 seconds?   since $\frac{22} {12}  = 1.83 $  $1.83 \times 20 = 36.67 $ Anonymous users can't see new content type in feed Is it possible to import comments into a chat room without the link appearing? Question: For an answer on a stack exchange site with say 8 comments, how can I / is it possible to import the comments into a chat room? Background: I was helping with a  and made several comments before I saw the link to auto-import comments into a chat room.  This was awesome by the way!! Note that the person who asked the question left a link to the chat room in a comment. I wanted to make a similar chat room  because I edited an answer which wasn't mine and added a paragraph.  I wanted to chat with the answer's author @JonHopkins to say, 'hey feel free to remove my edit -- just wanted to add my $0.02' -- especially as the stack exchange engines said not to add an additional answer.  HOWEVER, there was no link to auto-import the comments -- probably because I hadn't previously left one, but I'm not sure. So I ask here, Stack Exchange Gurus, could a static link be added to auto-import a series of comments into a chat session? Why is there an "electric" potential drop across the resistor? An electric potential difference is created when two charges are separated. In a capacitor, there is a clear accumulation of opposite charges on the two separated plates, therefore work has to be done in moving an unit charge from one plate to another, against the electric field.   But, , a potential difference is created in a resistor due to the heat produced by the collision and increased lattice vibrations. So there is an energy loss across the resistor, yes, but how does this energy loss due to heat create an electric potential difference. In other words, do electrons accumulate on one or both sides of the resistor? If not, why should we do electric work in moving from one end of the resistor to another. If the difference in energy is not due to electric work, then that's not electric potential, is it? Bernoulli maximum likelihood Suppose $X_1, X_2, \dots, X_n$ are iid Bernoulli(p) random variables. How do you find the restricted maximum likelihood for p where $0&lt;p&lt;0.5$?  My work so far:  Write out the likelihood: $L=p^{\sum x} (1-p)^{n-\sum x}$  Take the log: $\ln(L) = \sum x\ln(p)+(n-\sum x)\ln(1-p)$  Take the derivative and set equal to zero: $\frac{\sum x-np}{p(1-p)}=0$.  Now I'm stuck. I don't know how to incorporate the restrictions for $p$. How to implement "confirmation" dialog in Jquery UI dialog? Let: $P(x) = a_nx^n + a_{n-1}x^{n-1} + ..... + a_1x + a_0$ where $a_0a_n &lt; 0$ I have to prove that the Polynomial $P(x)$ has at least one positive root how can I prove it? Any ideas? Make wifi preferable over wired connection in Ubuntu 14.04? How do I make Ubuntu choose wifi connection over wired connection when both are connected to internet?  I edited the Ethernet connection to route using the preference "Use this connection only for resources on this network", which other people have reported having success with as a means of getting WiFi preferred, but it doesn't work for me. The issue persists. Ethernet is still being preferred for internet, and WiFi gets ignored.   another thing, is it possible to use wired connection as fail over connection to wireless? Why modules with no variables? How to find the inverse modulo $m$? Do we have name for these kind of "flat graphics" images? Express $1 + \frac {1}{2} \binom{n}{1} + \frac {1}{3} \binom{n}{2} + \dotsb + \frac{1}{n + 1}\binom{n}{n}$ in a simplifed form I need to express $$1 + \frac {1}{2} \binom{n}{1} + \frac {1}{3} \binom{n}{2} + \dotsb  + \frac{1}{n + 1}\binom{n}{n}$$ in a simplified form.  So I used the identity $$(1+x)^n=1 + \binom{n}{1}x + \binom{n}{2}x^2 + \dotsb   + \binom{n}{n}x^n$$ Now on integrating both sides and putting $x=1$.  I am getting $$\frac{2^{n+1}}{n+1}$$ is equal to the given expression.But the answer in my book is  $$\frac{2^{n+1}-1}{n+1}.$$ Where does that -1 term in the numerator come from? I have two machines with RJ11 ports and I had a RJ11 Modular Telephone Cable lying around.I wondered if it was possible to create a network between the two machines with those RJ11 Modular Telephone Cable (back to back via RJ11 ports) much like a network we create between two computers with a single RJ45 Modular connector cable.  Is this setup possible at all ? If it is , what will be the maximum transfer speed i can achieve between these two computers ?