I want to write below in my text:  According to Author et al.'s studies (2008), blablabal...   If I used:  According to \textcite{author1}'s studies   It will become:  According to Author et al. (2008)'s studies, blablabal...
\documentclass{article} \usepackage[style=authoryear-icomp,maxbibnames=9,maxcitenames=2,backend=biber]{biblatex} \usepackage{filecontents} \begin{filecontents}{\jobname.bib} @misc{ABC01,   author = {Author, A. and Buthor, B. and C},   year = {2001},   title = {Alpha}, } \end{filecontents} \addbibresource{\jobname.bib} \begin{document}  According to \textcite{ABC01}, parallel...  \printbibliography \end{document}   Outcome:  According to Author et al. (2001), parallel...    How to get:  According to Author et al.'s studies (2001), parallel...
It is quite easy to calculate the total number of functions from a set $X$ with $m$ elements to a set $Y$ with $n$ elements ($n^{m}$), and also the total number of injective functions ($n^{\underline{m}}$, denoting the falling factorial). But I am thinking about how to calculate the total number of surjective functions $f\colon X \twoheadrightarrow Y $.  The way I thought of doing this is as follows: firstly, since all $n$ elements of the codomain $Y$ need to be mapped to, you choose any $n$ elements from the $m$ elements of the set $X$ to be mapped one-to-one with the $n$ elements of $Y$. This results in $n!$ possible pairings. But the number of ways of choosing $n$ elements from $m$ elements is $\frac{m!}{(m-n)!\,n!}$, so the total number of ways of matching $n$ elements in $X$ to be one-to-one with the $n$ elements of $Y$ is $\frac{m!}{(m-n)!\,n!} \times n! = \frac{m!}{(m-n)!}$.  Now we have 'covered' the codomain $Y$ with $n$ elements from $X$, the remaining unpaired $m-n$ elements from $X$ can be mapped to any of the elements of $Y$, so there are $n^{m-n}$ ways of doing this. Therefore I think that the total number of surjective functions should be $\frac{m!}{(m-n)!} \, n^{m-n}$.  Is this anything like correct or have I made a major mistake here? Including sections of source code as a listing, while being robust to source code edits for (i=0 ; i&lt;=10; i++) {     ..     .. }  i=0; while(i&lt;=10) {     ..     ..     i++; }   In for and while loop, which one is better, performance wise? My code:  a = '2.3'   I wanted to display a as a floating point value.  Since a is a string, I tried:  float(a)   The result I got was :  2.2999999999999998   I want a solution for this problem. Please, kindly help me.  I was following . Can it happen that the image of a functor is not a category? On Hilton and Stammbach's homological algebra book, end of chap. 2, they wrote in general $F(\mathfrak{C})$ is not a category at all in general. But I don't quite get it. I checked the axioms of a category for the image, and I think they are all satisfied. Am I missing something? Thanks. Does metric signature affect the stress energy tensor? The representative point of a cluster or cluster center for the k-means algorithm is the component-wise mean of the points in its cluster. The mean is chosen because it helps to minimize the within cluster variances (which is to say that it is minimizing within cluster squared Euclidean distance, since its the same). Now, when I want to use a different distance metric, like L1 (Manhattan distance), I would be minimizing the within cluster absolute deviations (if I choose to). I was looking at what the centers calculation would be like, because the mean won't reduce the new objective function, and I found this on the Matlab documentation of their kmeans function for the distance parameter     cityblock - Sum of absolute differences, i.e., the L1 distance. Each centroid is the component-wise median of the points in that cluster.   Now, how did they come up with the component-wise median? How does a median minimize absolute deviations? Only Icons Missing from desktop I opened the PC in the morning, and this is what I got:      As is visible the icons of the UWA apps were no affected and the start menu also is unaffected.    When Control Panel is in category view the entire page is empty and in large/small icons the name is visible, no icons.  I deleted the iconcache.db in %USERPROFILE%\AppData\Local folder. Following the instructions here: . But to no avail and now windows is not rebuilding the cache.   I also ran sfc /scannow but no changes took place.  What should I do?  (01/01/2016 8:00PM GMT +5:30) Edit: I tried opening the system properties and I got 0x8000ffff error and this:        Then I closed the popup and pressed the OK button on the System Properties Windows and I got 0x8007057A error:      Opening the Image Backup Control Panel page I again got an 0x8007000E error:        I tried using system restore via advanced startup but once again I got 0x800FFFF error.  P.S.: I did try restarting, didn't work. Can a multiclass character with 1 level of wizard copy any wizard spell they find into their spellbook? The &quot;Your Spellbook&quot; sidebar for the wizard includes the following line:  Copying a Spell into the Book. When you find a wizard spell of 1st level or higher, you can add it to your spellbook if it is of a level for which you have spell slots and if you can spare the time to decipher and copy it.  Does this mean that a Wizard 1/Cleric 19 can copy any wizard spell they find into their spellbook? Is there anything preventing them from casting these spells? Should I change the URLs in the XML sitemap after 301 redirecting them? I am using 301 redirects for all URLs.  Should I change sitemap URLs now?  The sitemap currently contains the following URLs:   example.com/cat/1.html example.com/cat/2.html example.com/cat/3.html   Should I change the sitemap's URLs to a new destination?   example.com/cat/year/1.html example.com/cat/year/2.html example.com/cat/year/3.html Unit testing a method that calls another method How to make a pattern follow a stroke, path or line? Here is my MS Paint job on a real bad attempt at what I'm trying to achieve:    I have access to Photoshop and Illustrator CS6, and I want to be able to draw a thick line (that is not straight) and have a pattern within the line show arrowheads within the line to indicate the direction of the line. By accident, I used rm on a file I didn't want to delete. Is there a way that I can get it back under Linux? Ideal correspondence I'm confusing the ideal correspondence theorem. Is the following  right?  Ideal correspondence: Let $f:A \to B$ be a ring homomorphism. Then there is a one-to-one order-preserving correspondence between ideals of $f(A)$ and ideals of $A$ which contain $\ker(f)$ by $\alpha \mapsto f(\alpha)$ (conversely $\beta \mapsto f^{-1}(\beta)$), and prime ideals correspond to prime ideals, and maximal ideals correspond to maximal ideals. I am trying to use following apex class with invocable method but its not showing in process builder.  global with sharing class SlackOpportunityPublisher {      private static final String slackURL = 'https://testsalesforceapps.slack.com/';      global class Oppty {         @InvocableVariable(label='Opportunity Name')         global String opptyName;         @InvocableVariable(label='Stage')         global String stage;     }      @InvocableMethod(label='Post to Slack')     global static void postToSlack(List&lt;Oppty&gt; oppties) {         Oppty o = oppties[0]; // If bulk, only post first to avoid overloading Slack channel         Map&lt;String,Object&gt; msg = new Map&lt;String,Object&gt;();         msg.put('text', 'The following opportunity has changed:\n' + o.opptyName + '\nNew Stage: *' + o.stage + '*');         msg.put('mrkdwn', true);         String body = JSON.serialize(msg);             System.enqueueJob(new QueueableSlackCall(slackURL, 'POST', body));     }      global class QueueableSlackCall implements System.Queueable, Database.AllowsCallouts {          private final String url;         private final String method;         private final String body;          global QueueableSlackCall(String url, String method, String body) {             this.url = url;             this.method = method;             this.body = body;         }          global void execute(System.QueueableContext ctx) {             HttpRequest req = new HttpRequest();             req.setEndpoint(url);             req.setMethod(method);             req.setBody(body);             Http http = new Http();             HttpResponse res = http.send(req);         }      }  } I upgraded from 17.04 to 17.10 on a Lenovo T540p which has broken two finger touchpad scrolling and right clicking Trackpad two finger scrolling and right-click issue with Ubuntu 17.10 (i386, 64bit, GNOME 3.26.1) on a Lenovo T540p (the model with a Intel Core i5-4210M Haswell CPU etc) Newbie Q: Is "Field Level Security" the same as "Field Accessibility"? There are two buttons that seem very similar when viewing the detial page for an object: Set Field Level Security and View Field Accessibility. They both seem to allow you to set the field level security.  Are these ("Field Level Security" and "Field Accessibility") basically the same thing? "Ghost" UI elements Occasionally, I get part of an application lingering behind on my desktop:    This is part of a context menu for an application. It is always top-most, meaning that it is always on the screen, and I cannot click on it (it just clicks through it). It has happened before, sometimes with whole windows. It remains on screen even if the application it originated from is no longer running.  How do I get rid of it without rebooting? How to unlock device when I forgot my password? I've read  which states that there is an option to disable the lock using my Google account information. However I did not noticed such an option when I entered my password five times wrong. (Although there was also a 20s or 30s delay to complicate brute force attacks.) I use Android 4.0.3 on a Asus Transformer Prime TF201.  Would factory reset work? event.preventDefault() vs. return false