I am an admin trying to query all the private messages for my organization through SOAP API. I query the ChatterMessage object:  SELECT Id, ConversationId, SenderId, SendingNetworkId, Body, SentDate, CreatedById FROM ChatterMessage   where this returns the messages that is sent under the Chatter object. However, there is a chat box that does not log the messages under the object ChatterMessage. The documentation states that this object is used for private chat messages but the chat box conversations are not stored in this object. How can private chat messages be retrieved and which object contains this info? The only chatter hierarchy is related to feeds is found .
I want to monitor private message and want to check and store at admin side. so admin can see who doing message to whom and make the policy for to sending the message.
How to run grep with multiple AND patterns? I would like to get the multi pattern match with implicit AND between patterns, i.e. equivalent to running several greps in a sequence:  grep pattern1 | grep pattern2 | ...   So how to convert it to something like?  grep pattern1 &amp; pattern2 &amp; pattern3   I would like to use single grep because I am building arguments dynamically, so everything has to fit in one string. Using filter is system feature, not grep, so it is not an argument for it.    Don't confuse this question with:  grep "pattern1\|pattern2\|..."   This is an OR multi pattern match. I am very new to LaTeX and I am writing my thesis. In a chapter, I want to show my codes, which are in Mathematica.   I use the listings package as follows:  \documentclass{article}   \usepackage{listings}   \begin{document}   \lstset{language=Mathematica}    \begin{lstlisting}   Do[i^j,{i,1,10},{j,1,10}]   \end{lstlisting}    \end{document}   However, the output is much different to what the code looks like in the Mathematica IDE (even if I use other languages in \lstset{language=&lt;name&gt;}):    I read some questions on the site but, in some of them, the font or color of the codes were not the same. Could you please help me to display something like the picture below in LaTeX?  If it is important, I am using the BiDi package. What is the strict aliasing rule? I want to limit some users daily computer usage on the family PC. Currently we only have one user account set up on it, but I could create new ones. So Is there a way to set daily time limits for user on a windows 7 PC? Ideally I would like to set up it up for 2 hours on weekdays and 3 hours on weekends. Why isn't  generic?    Seems like Collection&lt;E&gt; could have boolean remove(E o);   Then, when you accidentally try to remove (for example) Set&lt;String&gt; instead of each individual String from a Collection&lt;String&gt;, it would be a compile time error instead of a debugging problem later. For one of the clients, I have spin up a modern communication site collection and on the landing page of the same, I am seeing 'Get the mobile app' showing up, I was able to hide the 'feedback' button using css but no luck with Get the mobile app button.  Can someone please share css to hide 'get mobile app' button, appreciate the help. Macro with lstlisting inside I have been following  about using \NewDocuentCommand with lstlisting and the accepted answer is nice except it is too big and it doesn't quite work for me.   I came up with this example to test xparse:    \documentclass{article} \usepackage{xparse} \usepackage{listings}  \ExplSyntaxOn \NewDocumentCommand{\code}{m +v}{     \begin{lstlisting}[style=#1,numbers=none,xleftmargin=0.35cm,framesep=0mm]         #2     \end{lstlisting} } \ExplSyntaxOff  \begin{document}  \code{C}{ int x = 200; unsigned int y = 0; }  \end{document}   Like stated in the  I first used m as a normal parameter and then +v as a multiline verbatim parameter, but it fails. It looks like I am still missing something... The question I am working on is, &quot;Consider the following. (a) Find the angular speed of Earth's rotation about its axis. rad/s (b) How does this rotation affect the shape of Earth?&quot;  I am fully capable of solving part (a); however, I am not sure how to describe the effect earth's rotation on its shape. I tried to search my textbook for the answer, but could not find anything. Is there an actual effect on the shape? Sum from $n=1$ to $N$ of $\sin(nx)/2^n$ The question states:    I'm not sure what to do here. I used the geometric sum to do $2^{-n}$, but I can't think of a way to sum $\sin(n\theta)$ to get the required RHS.    Further working     Apologies for maybe being slow or missing something obvious here... I don't know how to get it into required form. how to remove frost free outdoor faucet drain valve assembly I've tried unscrewing the part outlined in red below. No dice. Do I just need to remove the whole rod (above the red outline) and replace it?) If so, can anyone point me to instructions for them.  I can't see in there. Worried that I'll pull it out and not be able to put it back in.  (The deeper I go in the plumbing the more things I find that there is no modern fitting-part :)  My new assembly  replaces the parts outlined in red. the new assembly has a female thread. I am HOPING that the thicker part of the pipe (just above the black "collar" stopper)  is screwed onto the pipe above.  However, I cannot unscrew it. There is nothing to get a hold of. It's perfectly round. I've tried dw40, and let it sit for 20 minutes. No love.  I'll try wacking it with a board in the direction along which it moves in when it screws (perpendicular to the threads per [this answer][2]) Quantum entanglement faster than speed of light? Is it acceptable to use "Just wondering" as a question? I often find myself writing sentences such as: "I am wondering if the landlord replied to you yet?"  And I always end up removing the question mark and rephrasing the sentence. In speech it is easy to inflect such a sentence so as to infer that it is a question, but in reality "I am wondering" is a statement and I feel it should not have a question mark when written down.  So is it acceptable to use "I am wondering" as a question? How to recover a deleted NTFS partition with data What is the Big-O time complexity of the following nested loops: for (int i = 0; i &lt; N; i++) {     for (int j = i + 1; j &lt; N; j++) {         System.out.println(&quot;i = &quot; + i + &quot; j = &quot; + j);     } }  Would it be O(N^2) still? 4 fast cores or 6 slower ones? I have the option of 3.33 ghz 4 core processor, a 2.66ghz 6 core or a 2.93 ghz 6 core. I know that the middle one will be slower than the last, you don't have to tell me that. What I would like to know is what would work better? 4 fast cores or 6 slower ones? I know that if you do the math the last one is the best but how many cores can Blender use?  I would also like to know what would be the best for blender internal renderer and cycles (if there's any difference.) Evaluate $\lim \limits_{n\rightarrow\infty}\sin^2(\pi\sqrt{n^2 + n})$ I'm struggling to find the limit at infinity of : $$\lim \limits_{n\rightarrow\infty}\sin^2(\pi\sqrt{n^2 + n}), n\in\Bbb N$$ I know it is $1$ but I don't understand why this is wrong :  $\sin^2(\pi\sqrt{n^2 + n}) = \sin^2(\pi*n\sqrt{1 + \frac{1}{n}})$.  So $\lim \limits_{n\rightarrow\infty}\sin^2(\pi\sqrt{n^2 + n}) = \lim \limits_{n\rightarrow\infty}\sin^2(\pi*n\sqrt{1 + \frac{1}{n}}) =  \lim \limits_{n\rightarrow\infty} \sin^2(\pi*n) = 0$.  Thanks. What is the maximum convergent $x$ in the power tower $x^{x^{x^{x\cdots}}}$? In the power tower $x^{x^{x^{x\cdots}}}$ where there is an infinite stack of $x$'s, what is the maximum convergent number? I know the answer by playing with the form $x^y=y$ and using Mathematica, but I don't know how to solve this by hand. Does a first generation iPod touch have the ability to download apps and use emojis? I am getting a 1st gen iPod touch for a friend and I was wondering if you can download like apps and games on it and if it has emojis? It would help to get an answer before I buy it! I've been Googling around with no luck.  I'm looking for a way to do getc() or gets() or whatever that does not echo to the terminal.  I saw kbhit() but this doesn't appear to be part of ANSI.  Ideally, I'd like code that looks like  char s[100]; no_echo_gets(s); /* Won't echo to screen while being typed */ printf("%s\n", s);   Does anybody know a good ANSI compliant way to do this? Converting an array of objects to an array of their primitive types If you have an array of Java objects which have a primitive type (for example Byte, Integer, Char, etc).  Is there a neat way I can convert it into an array of the primitive type?  In particular can this be done without having to create a new array and loop through the contents.  So for example, given  Integer[] array   what is the neatest way to convert this into  int[] intArray   Unfortunately, this is something we have to do quite frequently when interfacing between Hibernate and some third party libraries over which we have no control.  It seems this would be a quite common operation so I would be surprised if there's no shortcut.  Thanks for your help!