I want to get current user login name with PnP-Core-Library for SPFx in Office365. My page is modern Page  How to do this?
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?
Text won't appear in interface? There is one problem, it seems that text won't appear on my program. The three images show the errors and also my laptop specs (I believe I just have very small amount of laptop power that makes Blender glitch).  Everything else works fine (zooming, panning, rotating, etc.) and the buttons are still there and do what they're supposed to do, but the text just won't appear.  Might anybody know how to fix this?        The drive update didn't help either. I know a way around it though, does anybody know a page which shows screenshots of more or less the buttons on blender What, if anything should one do if a user's "about me" profile section contains extremely inflammatory terms (racist, etc.) I don't think anyone wants to be the thought police, and I'm particularly wary of censorship on a part of the site that is a user's personal self-statement, and is a little off the beaten path.  On the other hand, I'm also concerned that we may not want a site where clicking on a user to see their other posts would expose folks to racist or other bigoted terms that almost everyone would agree are inappropriate for civil discourse.    Don't forget the "be nice" rule".  Note that I don't want a "flag user" rule, which I know has been beaten to death already, and further think that swears and semi-inflammatory opinions, etc. should generally just be ignored - I'm only asking about terms that provoke serious emotions around racial, religious, ethnic, or sexual orientation issues.  What, if anything, is the appropriate response in such cases? Why can't photons have a mass? Could you explain this to me in a short and mathematical way? tense and time and composite sentence If the eating meal starts at 7:00 AM and finishes at 8:00 AM. the drinking liquor starts at 7:00 AM and finishes at 7:50 AM.  can I say that :   I drank the liquor when I ate the meal. I ate the meal when I drank the liquor.   Is I need to use progressive tense ? How do I prove that in every commuting family there is a common eigenvector? The proof given by my textbook is highly non-satisfying. The author adopted some magic-like "reductio ad absurdum" and the proof (although is correct) didn't reveal the nature of this problem. I made my own effort into it and tried a different approach. Yet I can't finish it.  Let $\mathscr{F}$ be a commuting family in $M_n(\mathbb{C}^n)$, and $A\in\mathscr{F}$, then $A$ has $n$ eigenvalues. We pick one, say $\lambda$. Let $x$ be one of its eigenvector.  We can easily prove that, if $A$ has no other eigenvector with eigenvalue $\lambda$ that linearly independent with $x$, which means that $\{cx|c\in\mathbb{C}\}$ are the only vectors satisfying $Ax=\lambda x$, then $x$ is a common eigenvector. Because $\forall B\in\mathscr{F}$ and $\forall y\in \{cx|c\in\mathbb{C}\}$, $$A(Bx)=ABx=BAx=B(Ax)=B(\lambda x)=\lambda (Bx)$$, so that $Bx$ has to be in $\{cx|c\in\mathbb{C}\}$, that is, $Bx=c_0x$ for some $c_0\in\mathbb{C}$, which means $x$ is a eigenvector of $B$ too.  But what if there are vectors satisfying $Ax=\lambda x$ that's not in  $\{cx|c\in\mathbb{C}\}$? Well, then we should have a set of linearly independent eigenvectors $\{x_1,x_2,...,x_k\}$, that $\{c_1x_1+c_2x_2+...+c_kx_k|c_i\in\mathbb{C}\}$ are the only vectors satisfying $Ax=\lambda x$.  Now, I have a reasonable hypothesis that there exists some $x=c_1x_1+c_2x_2+...+c_kx_k$, that can be proven to be a common eigenvector of $\mathscr{F}$. I've tried some approaches to prove it but all failed.  Do you guys believe it's true? And if it is true then how do I prove it? A book in which every species on earth was rendered intelligent The 'blurb' on the back of the book was that something had boosted the intelligence of every creature on earth, to the point that at least some animals were on par with humans. I'm not sure if humans were similarly enhanced or just animals. I'm not sure whether it was done by aliens, or a side effect of something humans did, or what.   This book was on the shelves in the mid/late 1980's, so it's nothing more recent than that. When is the formula $$S_{\infty} = \dfrac{a}{1-r}$$ valid?   Does |$r| &lt;1$? Non abelian Lie group with abelian Lie algebra What are the shortcomings of the Mean Absolute Percentage Error (MAPE)? The  () is a common accuracy or error measure for time series or other predictions,  $$ \text{MAPE} = \frac{100}{n}\sum_{t=1}^n\frac{|A_t-F_t|}{A_t}\%,$$  where $A_t$ are actuals and $F_t$ corresponding forecasts or predictions.  The MAPE is a percentage, so we can easily compare it between series, and people can easily understand and interpret percentages.  However, I hear that the MAPE has drawbacks. I'd like to understand these drawbacks better so I can make an informed decision about whether to use the MAPE or some alternative like the MSE (), the MAE () or the MASE (). How to Convert 0 to 10V analog signal to 0 to 2.5V for ADC input? I have an analog signal which ranges between 0V and 10V.  I want to linearly scale it down to 0 to 2.5V for my ADC.     I'm concerned that using a resistive voltage divider will affect signal quality.  Is this true?  If it's not true, what value resistor should I use for voltage divider? Expansion of $(1+\sqrt{2})^n$ How to remove desktop environments? I installed few environments that I wanted to try out on Ubuntu 12.04, but none of them worked at all. It could be that I installed them all at the same time, meaning the OS didn't get a chance to work everything out, but either way, they didn't work. I would now like to remove them.   The one's that I installed are Xubuntu/Xfce, Lubuntu/LXDE, Kubuntu/KDE, Fluxbox, OpenBox, cinnamon, and MATE. I installed them. Everything seemed to have been working properly until I actually tried to use the shells and nothing loaded at all. Except for Fluxbox, I think that one worked. I want to know of any way to repair or perhaps just remove the packages entirely. I might have already removed them because I did the apt-get remove command on all of them, but they were still in the list on the login screen. Making a recursive CTE like query, but for many records I already have an Apple ID, made at Apple.com. Now, when I want to access the App Store from my iPad, I am told that I have to review my information. On the credit card page, I am not presented with a "None" option, even though I am in the United States.   What can I do to proceed without entering this information? How do I prove that $S^n$ is homeomorphic to $S^m \Rightarrow m=n$? This is what I have so far:  Assume $S^n$ is homeomorphic to $S^m$. Also, assume $m≠n$. So, let $m&gt;n$.  From here I am not sure what is implied. Of course in this problem $S^k$ is defined as:  $S^k=\lbrace (x_0,x_1,⋯,x_{k+1}):x_0^2+x_1^2+⋯+x_{k+1}^2=1 \rbrace$ with subspace topology. UTF-8 all the way through I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2. How do I declare and initialize an array in Java? Cannot install a version of GDAL via Anaconda that permits reading BigTIFFs ODBC connection to Access database in 64-bit Windows "This box of matches is empty" There are several Japanese books teaching Japanese students how to write in English. I found this example in  (Correcting Errors in English Composition Manuals) by Michio Kawakami and J.D. Monkman.  The authors of this book claim that this sentence is incorrect:     This box of matches is empty.   They note that a “box of matches” is a box containing matches (and not a box made for keeping matches), hence the sentence should instead be:     This matchbox is empty.   Likewise, an “empty bottle of beer” should instead be an “empty beer bottle.”  Is this actually an error that I should avoid in writing English? If so, is it a grammatical error or something else?