I already know how to set someone to auto-follow a record based on specific criteria (record created, modified, etc) by inserting records into the EntitySubscription object.  What I am trying to accomplish is a process in which, for a specific internal object, anyone who is @Mentioned on a chatter text post that is related to that object type will automatically become a follower of the record that they were mentioned in.  I can query for the information I need from the FeedItem object with [SELECT Id,ParentId,Body FROM FeedItem WHERE Type = 'TextPost'], but the body looks like this:     @Person One @Peron Two @Person Number Three can one of you provide me with a specific account that you are referring to?     Issue: I don't use regex often, but figured it would be useful here, however my problem is that there isn't really any clear 'line in the sand' in the Body of the FeedItem for me to tell the regex when to start/stop and guarantee that I've captured the full name of the user, and without the full name of the user I can't properly query for their User Id and insert their EntitySubscription record(s).  In my example above you'll note that I can't just rely on the two words that immediately follow an @ symbol, because there are some users who have a multi part name (Morgan Del Ray, as an example). I was hoping that the @Mentions would be formatted as @[Mention] so that I could use the [ ] as my limiters, but alas it is not.    Question: Is there any way I can guarantee this functionality will capture the full name using an advanced form of regex? Or is there perhaps another object that actually stores the Id references of the users that were tagged in a post? Somehow Salesforce manages to turn the @Mention tag into a link to the User, but I don't see that in the FeedItem object so I'm not sure where (or if) I can reference that data directly.
Is there a way to retrieve the user id of @mention user from chatter post in Apex? We can write a before insert trigger on feeditem, but when we display the body (which has @mention user) it simply displays as text. Is there any workaround for this?
Installing firmware blob for Intel Wifi USB pen I have installed Debian 8/Jessie minimal ISO on my laptop. I get error message during system installation:  Some of your hardware needs non-free firmware files to operate. The firmware can be loaded from removable media, such as a USB stick or floppy. The missing firmware files are: iwlwifi-7265-9.ucode iwlwifi-7265-8.ucode If you have media available now, insert it, and continue. Load missing firmware from removable media?  I found the appropriate firmware on Debian website, downloaded it (zip), extracted to flash drive, and booted with flash drive plugged in. I still get the error message that appropriate firmware could not be found (the error message disappear to fast to copy down). How do I properly format the flash drive? Or is the problem here something else? Windows Explorer on another computer tells me the flash drive is 14.6GB and formatted as FAT32. Real definition of "countable set" I would like to install Ubuntu 14.04.02 LTS on my machine which currently has Mageia 4.1.   So, I have the following partitions: One for /, one for swap and one for /home.   I have some important data on /home which I wouldn't like to lose (I have backed them up, but I would prefer to keep them) after a clean install. I plan to reformat partitions one and two as above and keep the /home one.   Will I be able to tell Ubuntu to do so during an installation? By this I mean: Will it be able to recognize the /home partition and keep all its data intact while formatting the rest? And one more question: Will it be able to keep the users as they are our will I be forced to change them too? (I have the bad feeling that it won't be able to keep the users as they are...) Inserting random numbers into a table in MYSQL How to install networkx python in QGIS? How to install and how to compile networkx python on QGIS?  I always get an error that no module named networkx in the console of QGIS I copied the file networkx in C:\Program Files\Quantum GIS Lisboa\apps\Python27\Lib\site-packages and there are not change. author not appearing in \maketitle in amsart I am new to the amsart document class. For some reasons \author (etc..) is not showing after I use \maketitle. This is my tex:  \documentclass[12pt,reqno,a4paper]{amsart}  \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsfonts} \usepackage{mathrsfs}  \usepackage{amsthm}  \usepackage{latexsym}  \usepackage{pictexwd} \usepackage{pdftricks} \usepackage{natbib} \usepackage{setspace} \usepackage{color} \usepackage[affil-it]{authblk}  \begin{document}  \title{Temptation, Asymmetric information and Committment}  \author{Mark}  \affil{University of Leicester}  \date{February 2014}  \maketitle  \begin{abstract} To be written \end{abstract}  \section{introduction}  ...  \end{document}   and this is the output:   can anybody help me out? How to create a batch job, numbering images (writing text on them) from 1 to 100 in Photoshop? Looking to create a 100 images that would have their appropriate numbers written on them.  Since I`ll be most likely making changes to the template in the future I figured it would be better to automate it somehow.  Is there a simple solution to this problem? Xcode - How to fix 'NSUnknownKeyException', reason: … this class is not key value coding-compliant for the key X" error? Disable ohead on a single page Set "this" variable easily? I have a pretty good understanding of Javascript, except that I can't figure out a nice way to set the "this" variable.  Consider:  var myFunction = function(){     alert(this.foo_variable); }  var someObj = document.body; //using body as example object someObj.foo_variable = "hi"; //set foo_variable so it alerts  var old_fn = someObj.fn;   //store old value someObj.fn = myFunction;   //bind to someObj so "this" keyword works someObj.fn();               someObj.fn = old_fn;       //restore old value   Is there a way to do this without the last 4 lines?  It's rather annoying...  I've tried   binding an anonymous function, which I thought was beautiful and clever, but to no avail:  var myFunction = function(){     alert(this.foo_variable); }  var someObj = document.body;        //using body as example object someObj.foo_variable = "hi";        //set foo_variable so it alerts someObj.(function(){ fn(); })();    //fail.   Obviously, passing the variable into myFunction is an option... but that's not the point of this question.  Thanks. I have a (symmetric) matrix M that represents the distance between each pair of nodes. For example,       A   B   C   D   E   F   G   H   I   J   K   L A   0  20  20  20  40  60  60  60 100 120 120 120 B  20   0  20  20  60  80  80  80 120 140 140 140 C  20  20   0  20  60  80  80  80 120 140 140 140 D  20  20  20   0  60  80  80  80 120 140 140 140 E  40  60  60  60   0  20  20  20  60  80  80  80 F  60  80  80  80  20   0  20  20  40  60  60  60 G  60  80  80  80  20  20   0  20  60  80  80  80 H  60  80  80  80  20  20  20   0  60  80  80  80 I 100 120 120 120  60  40  60  60   0  20  20  20 J 120 140 140 140  80  60  80  80  20   0  20  20 K 120 140 140 140  80  60  80  80  20  20   0  20 L 120 140 140 140  80  60  80  80  20  20  20   0   Is there any method to extract clusters from M (if needed, the number of clusters can be fixed), such that each cluster contains nodes with small distances between them. In the example, the clusters would be (A, B, C, D), (E, F, G, H) and (I, J, K, L).  I've already tried UPGMA and k-means but the resulting clusters are very bad.  The distances are the average steps a random walker would take to go from node A to node B (!= A) and go back to node A. It's guaranteed that M^1/2 is a metric. To run k-means, I don't use the centroid. I define the distance between node n cluster c as the average distance between n and all nodes in c.  Thanks a lot :) I want to create a wave made out of particles/dots. The wave should look like this:  I tried to achieve this effect by adding an ocean modifier to a plane. Then I added a particle system to the plane but now I don't know how to go on. How can I make the particles lay on the 'ocean' and move when the ocean is moving? PS: I know there is a way to do this with a material in the Blender Render. But firstly I want to create the whole thing in Cycles and secondly I want to have particles. How does Linux kernel compare to microkernel architectures? I read once that one advantage of a microkernel architecture is that you can stop/start essential services like networking and filesystems, without needing to restart the whole system. But considering that Linux kernel nowadays (was it always the case?) offers the option to use modules to achieve the same effect, what are the (remaining) advantages of a microkernel? What can I use instead of the arrow operator, `->`? Fish vs Fishes for plural use Here's :        At the moment, the latest entry there is October 13, which would be mistaken to mean October last year (2012), but it actually is October 2010. This applies to all the filters in the activity tab. Since I first learned English, I have been holding this understanding that "and", as a conj. but unlike "but",  can only connect two clauses, not two sentences ended with periods.  But recently, I have seen so many prints, either in entertainment or in academia, where "And" is popularly used in the beginning of a sentence. It seems like the author is trying to connect the sentence just right before and the sentence following "And" in some intended meaning which I don't quite get.  I was wondering if I have been wrong all the time, or if there is a new trend that I fail to understand and accept? How to understand such usage of "and" in rigorous English grammar? If I am right, why it is used differently from "but" in terms of what I mentioned at the beginning of this post? Two tables side by side with minipage When the trace of the Frobenius homomorphism is zero? Let's consider an elliptic curve over a finite field $\mathbb F_p$.  The trace of the Frobenius homomorphism is defined as:  $$a_p=p+1-\#E(\mathbb F_p)$$  See for example .  I read that this value is zero if and only if the elliptic curve is supersingular. Unfortunately there is no proof give. So I am looking for a proof of this. (For example a good reference). How do I remove an account from Google multi-login? I have three accounts among the multiple accounts I have for Google's products. One of them belongs to a friend who accidentally made his account one of mine when he was using my PC.  How do I remove his account from my Google multiple accounts? Logging out from his account doesn't work. His account still displays under the user dropdown even though I can't log in to it.