Is there an official Stack Exchange Android app?
How can I report bugs with or request features for the Stack Exchange mobile apps?
We all know that _spPageContextInfo is a very useful thing in Client side development. I need something equivalent of _spPageContextInfo in SPFX. Currently I am unable to use it directly from typescript. It gives error like     Can not find '_spPageContextInfo'   Finally, I have gone through the API documentation of  and  found . PageContext has dependence with . My qestion is: How to use PageContext? I need to use it my BaseService class. constructor of my class is:  constructor(private $http: ng.IHttpService, private $q: ng.IQService, serviceScope: ServiceScope) {     serviceScope.whenFinished(() =&gt; {       this.pageContext = new PageContext(serviceScope);       console.log(this.pageContext);     });   }   Inside the constructor serviceScope is undefined. I know the reason: As I am not injecting/initialising serviceScope anywhere like other angular services. So what is the approach of injecting/initialising serviceScope in angular service class? Let $ \boldsymbol{x} $ be a vector of $n$ numbers in the range $ \left[0, c \right] $, where $ c $ is a positive real number.  What's is the maximum of the variance function of this $ n $ numbers? Maximum in the meaning what spread of the number will maximize the variance? What would be a tighter bound for other assumptions on the spread of the numbers.  The variance of the vector $ \boldsymbol{x} $ is given by:  $$ \operatorname{var} (\boldsymbol{x}) = \frac{1}{n} \sum_{i = 1}^{n} {\left( {x}_{i} - \overline{\mathbf{x}} \right )}^2 $$  Where the mean $\overline{\boldsymbol{x}}$ is given by:  $$ \overline{\boldsymbol{x}} = \frac{1}{n} \sum_{i = 1}^{n} {x}_{i} $$ I used python add in to make a tool bar in Arcmap that edits features on a map. It works on a file geodatabase, but not on an ArcSDE version one. I've been getting an FDO error: 0. The solutions that I've found all involve opening a workspace, but I'm getting an error doing that as well. Here is the relevant portion of my code:          outFolderPath = r"U:\tempStuff"         outName = "Stuff.sde"         databasePlatform = "SQL_Server"         instance = "SQL Server"         arcpy.CreateDatabaseConnection_management(outFolderPath, outName,                                                   databasePlatform,                                                   instance)         print "Centroid of buidling:(%r,%r) Side length: %r" % (xCoordinate,                                                                 yCoordinate,                                                                 bob)         print "workspace is %r" % outName #outName is workspace          #Start edit session with an undo/redo stack then start         #edit operation         print "Starting editing"         edit = arcpy.da.Editor(outName) #outName is workspace Line 86         edit.startEditing(True, True)         edit.startOperation()          #stuff happens          cursor = arcpy.da.InsertCursor( fc, ["SHAPE@"])         cursor.insertRow([stuff])             #stop the edit operation and then save changes         edit.stopOperation()         edit.stopEditing(True)          del cursor         print "Building should be drawn"   This is the exact error I've been getting:  Traceback (most recent call last):   File "C:\Users\153289\AppData\Local\ESRI\Desktop10.3\AssemblyCache\{0BEF4E61-6332-4BCA-A908-959CA3C0B4E7}\leetScripts_addin.py", line 86, in onClick     edit = arcpy.da.Editor(outName)#outName is workspace RuntimeError: cannot open workspace   What's am I doing wrong in my code? Does the "for…in" loop in Javascript loop through the hashtables/elements in the order they are declared? Is there a browser which doesn't do it in order? The object I wish to use will be declared once and will never be modified.  Suppose I have:  var myObject = { A: "Hello", B: "World" };   And I further use them in:  for (var item in myObject) alert(item + " : " + myObject[item]);   Can I expect 'A : "Hello"' to always come before 'B : "World"' in most decent browsers? $a$ and $b$ are natural numbers and $p$ is a prime number. Prove that if $a^{p}-b^{p}$ is divisible by $p$, then it is also divisible by $p^{2}$.  My attempt: Based on Fermat's theorem $(a^{p}-a)$ and $(b^{p}-b)$ are divisible by p, therefore their difference is divisible by $p$. I.e. $(a^{p}-a)-(b^{p}-b)=(a^{p}-b^{p})-(a-b)$ is divisible by $p$. Since the left hand side of this equation is divisible by $p$, the right hand side also should be divisible by $p$. Based on the problem's assumption $(a^{p}-b^{p})$ is divisible by $p$ therefore we conclude $(a-b)$ must be divisible by $p$. Now We can factorize $(a^{p}-b^{p})$ $$(a^{p}-b^{p})=(a-b)(a^{p-1}+a^{p-2}b+....+b^{p-1})$$ we have to prove $(a^{p}-b^{p})$ is multiple of $p^2$ which means we have to show the right hand side should be multiple of $p^{2}$. But $(a-b)$ is multiple of p therefore we have to show  $(a^{p-1}+a^{p-2}b+\cdots+b^{p-1})$ is multiple of $p$ and I am stuck here. Any help would be appreciated. How do you solve a recurrence with a summation function inside: $t(n) = 1 + \sum\limits_{j=0}^{n-1} t(j)$ Show that  $$t(n) = 1 + \sum_{ j=0}^{n-1} t(j)$$  is the same as  $$t(n) = 2^n$$  Initial condition $t(0) = 1$ Given an integer $n$, we are asked to investigate about the existence of integer divisors of $n^2+1$ of the form $4k+3$. Can you provide some insights about it? Why are we in love "with" someone? If you're interested in grammar, as I am, I am sure you have delved into a thought process about infinitive to, and like me, you have probably questioned what it is, or what it could be defined as. My mind always wants to place it in the Eight Parts of Speech, and I know this is foolish of me to some regard, so I stray from it, but I still wish to designate it under something that can be explain it. So, this is the motivation for this post, this question: What is the infinitive to, and why?  Here are my thoughts: There are three real possibilities, going back through the times. First, we can say that it is part of the verb that comes after it (to go, to run, etc.). This could be supported by the claim that you are not supposed to "split" infinitives ("To boldly go"), but only that.   Secondly, we could consider it a subordinator. I came across this designation most recently in my studies of modern and transformational grammar. As of right now, it is still the one I accept, especially as a result of the trend of designating more phrases as clauses. It works, except it's weird. Do we call this a unique subordinator as a result of how it operates? For example, to-infinitive clauses call for non-finite verb forms, which typically have an implied subject as a part of their clause. For example, "I want to go to the store." In the infinitive clause, "I" is the implied subject, as a understand. So, again, this works. However, things get a little weird when other subordinators come into play. For example, "I'm excited for you to win the competition." Now, if I'm right, those of you will say that "for" is a preposition here, as a result of the new-grammar stuff, but I'm going to count it as a subordinator, as defined by my own beliefs and that of a lot of other grammars. So, how do the clauses work in such a sentence? According to transformational grammar, "for you to win the competition" is defined as an ordinary clause. So, does that mean that it also contains a secondary clause within itself (the infinitive clause part)? If so, how do those two clauses work in conjunction to each other when one is so integrated? "For you to win the competition" looks to just be one clause, but if that's the case, doesn't "to" have to represent something else?  This moves us on to the third way to look at things, which is to consider "to" as auxiliary verb, a defective one at that. There are a lot of things to support this, and it even allows for the split infinitive. Furthermore, it calls for a non-finite verb form to follow, like an auxiliary. But, as I said before, it's defective in the way that is all it can function as.  As I said, I still accept to as a subordinator, but I want to be proven wrong or right. Wrong by showing evidence of it being something else, or right by showing how clauses operate when it seems to be layered up. How can I generate valid XML in C#? How can I find help for new Ubuntu users? I've just started using Lubuntu 13.10. It's the first time I've ever used Linux.  Can any of you send me a tutorial-video for new users or explain the basics to me? I have a DSLR (Canon 550D) and since I'm taking my first steps in the world of RAW photography I don't know which would be a good program to use to edit these files. I've tried  and  but wasn't satisfied. I'm sure there must be better software out there... Find out which application listens to specific key bindings? Is there an application to know which key is bound by which process and therefore not usable in another application? Invalid signature for Kali Linux repositories : "The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository" Why does WCF return myObject[] instead of List like I was expecting? Lowest voltage drop diode possible I am harvesting energy from an NFC device using a tuned antenna on my PCB. Though this method I am able to generate about 3.05V. I would like to charge a super capacitor using the power harvested from the NFC device. To do this I have  used the simple diode circuit provided  (and shown in Figure 1 below).  The problem I am facing is my circuit requires a minimum of 3V to operate within operating conditions, however with the added drop by typical diodes I believe there with be various situations where the generated voltage will drop below the required 3V. Are there any Diodes available which have ultra low voltage drops of less then 0.01V? and is that even possible?  Please note:   my system load will be &lt; 5mA  The 3.05V generated was without a diode in the circuit What is the technical term for when people thinks the actions of the few represent the many.  Like when people thinks everyone in a specific group behaves a certain way cause of how a few people in the group behave, including non stereotypical behaviours. I thought it was "generalisation" but I couldn't find any articles using that term. Creation and annihilation operators in the hydrogen atom continuous function: preimage of closure of a set is closure of preimage PDF upload silently fails I dunno since when, but upload of PDF images fails, this hurts especially on tex.SE.  Could this be an effect of an updated /etc/ImageMagick-6/policy.xml on the imgur server?  At least on my Ubuntu 18.04 LTS machine, this file was modified two weeks ago.