I have a get_pages() function. I all works great but I only want all the post_id's in my variable. Is that possible?  Thanks in advance.  $countries = get_pages(array(     "hierarchical" =&gt; 0,      "sort_column" =&gt; "menu_order",      "sort_order" =&gt; "desc",      "meta_key" =&gt; "page_type",      "meta_value" =&gt; 2, ));
I am looking for a way to output all page IDs from the following menu:   &lt;?php wp_list_pages('depth=1&amp;exclude='3,5,11')); ?&gt;   Only top level pages needed, therefore the 'depth=1'.  Any help appreciated.
I know the new SPFx will be released for Sharepoint 2016 sometime in the year 2017. But are there any plans to also bring this for Sharepoint 2013?  Are there any possibilities/hacks to add a Sharepoint app created with SPFx in the Sharepoint 2013 app catalog? Conditional expectation of $\mathbb{E}(X - Y | (X, Y)\in\mathcal{A})$ Given two independent random variables $X \sim \mathcal{U}[-1,5]$ and $Y \sim \mathcal{U}[-5,5]$, what is $$\mathbb{E}\{Y - X | X \le 1, Y &gt; X, Y \in [-1,1] \}\,?$$  I managed to compute the respective probability   $$ \mathbb{P}\{ X \le 1, Y &gt; X, Y \in [-1,1] \} = \mathbb{P}(X \le 1) \mathbb{P}(Y &gt; X) \mathbb{P}(Y \in [-1,1]) = 1/3 * 1/2 * 1/5 = 1/30$$  How do I continue from there? E: dpkg was interrupted... run 'sudo dpkg --configure -a' What do the symbols displayed by ls -F mean? I noticed that if I run ls -F on a directory, some of the entries have a * or a @ after them.   spuder@ubuntu:~$ ls -F /sbin acpi_available*   getpcaps*           lvmconf*                 ntfscp*        start-stop-daemon* agetty*           getty*              lvmdiskscan@             ntfslabel*     status@ alsa*             halt@               lvmdump*                 ntfsresize*    stop@ alsactl*          hdparm*             lvmsadc@      spuder@ubuntu:~$ ls -F ~ daq-0.6.1/  examples.desktop       noname-cache.lib  snort-2.9.1/   Templates/ Desktop/    jpgraph-1.27.1/        noname.sch        snortfiles/    Ubuntu One/ Documents/     According to the ls man pages   spuder@ubuntu:~$ man ls ... -F, --classify   append indicator (one of */=&gt;@|) to entries ...   I'm guessing that @ means symbolic link,     What do these other indicators mean ( */=&gt;@| )  ? A3 pages within A4 doc Installing windows to dual-boot I'm looking to install 32-bit windows with IIS to dual-boot with my 64-bit edition of windows on a laptop. I have a ten gig partition on my harddrive - is this large enough for a simple Windows install and a few programs?   I've never dual booted before, so I'm not quite sure how easy it is to mess up the process. Can you recommend any tutorials on how to set up a dual-boot configuration on Windows? Consider a particle in a potential well. Let’s assume it’s a simple harmonic oscillator potential and the particle is in its ground state with energy E0 = (1/2) &#8463;&omega;0. We measure its position (measurement-1) with a high degree of accuracy which localises the particle, corresponding to a superposition of momentum (and therefore energy) states.  Now we measure the particle’s energy (measurement-2) and happen to find that it’s E10 = (21/2) &#8463;&omega;0. Where did the extra energy come from?  In the textbooks it’s claimed that the extra energy comes from the act of observation but I wonder how that could work. Measurement-1 which probed the position of the particle can’t have delivered to it a precise amount of energy, while measurement-2 might just have been passive. No doubt there is entanglement here between the particle state and the measuring device but where, and which measurement? Is the following equivalent to the axiom of choice? How to insert the content of a file into another file before a pattern (marker)? File1 contents:  line1-file1      "1"  line2-file1      "2" line3-file1      "3"  line4-file1      "4"    File2 contents:  line1-file2     "25"   line2-file2     "24"   Pointer-file2   "23"   line4-file2     "22"  line5-file2     "21"   After the execution of perl/shell script, File2 content should become:  line1-file2     "25"   line2-file2     "24"  line1-file1      "1"  line2-file1      "2" line3-file1      "3"  line4-file1      "4"  Pointer-file2   "23"  line4-file2     "22"  line5-file2     "21"   i.e  paste the contents of File1 in File2 before the line that contains "Pointer". (This question is meant to be a resource to direct others to given that this is a common question.)  Given the task of creating an image that will be printed at a certain size, what pixel dimensions and resolution should I be setting my file at? I'm having a hard time finding the solution of the following equation:  $$0 = x\cos(x)+2$$  This is part of showing that $f(x):= x^2e^{\sin(x)}$ has 3 extremas in $[-\frac{\pi}{2},\frac{\pi}{2}]$. Sometimes when reading through user comments on a particular answer, some usernames that appear like user[digit] e.g user12345 are not links. Is this a known behaviour or any other thing I am not aware of? How can I install applications like Google Chrome on Ubuntu?  Are there any commands to install an application?    Index of answers: How do I invoke a Java method when given the method name as a string? If I have two variables:  Object obj; String methodName = "getName";   Without knowing the class of obj, how can I call the method identified by methodName on it?  The method being called has no parameters, and a String return value. It's a getter for a Java bean. I recently upgraded my computer's RAM to 4&nbsp;GB. My 32-bit Windows installation shows only 3574&nbsp;MB of the memory. How can I make Windows use the full amount of RAM? Question is :  Suppose $Y\subset X$ and $X,Y$ are connected and $A,B$ form separation for $X-Y$ then, Prove that  $Y\cup A$ and $Y\cup B$ are connected.  What i have tried is :   Suppose $Y\cup A$ has  separation say $C\cup D$ then all i could see is that   Either $Y\subset C$ or $Y\subset D$ as $Y$ is connected and $ C\cup D$ is separation for a subset that contains $Y$.  Without loss of generality we could assume $Y\subset C$  As $Y\cup A=C\cup D$ and $Y\subset C$  i can say $D\subset A$ (I do not know how does this help)  I have $X-Y=A\cup B$ with $A\cap B=\emptyset$  I have not used connectedness of $X$ till now, So i thought of using that and end up with following :   $X-Y=A\cup B\Rightarrow X=Y\cup A\cup B=(Y\cup A)\cup (Y\cup B)$  I do not know what to conclude from this...   I would be thankful if some one can help me by giving some "hints"  Thank you I have brand new machine.  I want to install Ubuntu and one more Linux distributions on same machine. When the machine is up I want to have the option to choose which Linux to load.   Is it possible?  How to do it? Equivalent of "former" and "latter" for more than 2 items Former and latter are valid only when there are two choices.  If I have a list of more than two items, is there an elegant way to say the first one or the last one? I want to be able to close an alert box automatically using Javascript after a certain amount of time or on a specific event (i.e. onkeypress).  From my research, it doesn't look like that's possible with the built-in alert() function.  Is there a way to override it and have control over the dialog box that it opens?  Also, I don't want an override that shows a hidden div as the alert.  I need an actual dialog box. Let $X$ be an infinite cofinite space and let $A \subset X$ be infinite. Then $\overline A = X$  I am having a tough time in trying to understand this. Why is every infinite set in an infinite cofinite space dense ?