How to include array data in CURLOPT_POSTFIELDS?
How to send array with CURL? Should I `urlencode` it?
Auto Increment Problem in Mysql Using methods from another class in the main? Often called "He-Who-Must-Not-Be-Named" and "You know who", was it common knowledge at the Ministry of Magic that Voldemort was the same person as Tom Riddle? Say I am logged into a remote system, how can I know what it's running? On most modern Linuxes (Linuces?), you have the lsb_release command:  $ lsb_release -ic     Distributor ID: LinuxMint Codename:       debian   Which as far as I can tell just gives the same info as /etc/lsb-release. What if that file is not present? I seem to recall that the lsb_release command is relatively new so what if I have to get the OS of an older system?  In any case, lsb stands for Linux Standard Base so I am assuming it won't work on non-Linux Unices. As far as I know, there is no way of getting this information from uname so how can I get this on systems that do not use lsb_release? Convert String to Integer in QGIS tables I want it to know how to convert string field values to integer values in QGIS Dufour... there are numbers and strings in the same field, when I use toreal(string) it stops and it won´t create the field. Password protecting a page I'm trying to password protect a page but it doesn't seem to be working. I've set the password for the page but when you navigate to it it just loads up like normal and doesn't ask for any passwords.  This is the loop I have on my page:  &lt;?php /**  * @package WordPress  * @subpackage Default_Theme  * Template Name: Page  */  get_header(); ?&gt;  &lt;?php global $post; if ( post_password_required( $post ) ) { ?&gt;  &lt;?php $fields = get_acf(); ?&gt;  &lt;script type="text/javascript"&gt;  (function() {   window.onload = function() {   ...  }} )  &lt;/script&gt;  &lt;div id="map"&gt;&lt;/div&gt;  &lt;?php } else { ?&gt;     Not passworded        &lt;?php if (have_posts()) : ?&gt;         &lt;?php while (have_posts()) : the_post(); ?&gt;          &lt;?php endwhile; ?&gt;     &lt;?php endif; ?&gt;         &lt;?      } // Page isn't password-protected     ?&gt; &lt;?php get_footer(); ?&gt;   I want to password protect everything within the page.  UPDATE:  I have custom content on the page so if possible I need to be able to wrap some code around it all.  Update: There is currently no way to delete questions or answers in the iOS app, even with the required Trusted User privilege. We can edit and vote, but not delete.  Can this option please be added to the app? Conjugate subgroup strictly contained in the initial subgroup? Let $G$ be a group, $H\subseteq G$ a subgroup and $a\in G$ an element of the group. Is it possible that $aHa^{-1} \subset H$, but $aHa^{-1} \neq H$?   If $H$ has finite index or finite order, this is not possible. Access to original contents of mount point I have 10 years of daily returns data for 28 different currencies. I wish to extract the first principal component, but rather than operate PCA on the whole 10 years, I want to rollapply a 2 year window, because the currencies' behaviours evolve and so I wish to reflect this. However I have a major problem, that is that both the princomp() and prcomp() functions will often jump from positive to negative loadings in adjacent PCA analyses (ie 1 day apart). Have a look at the loading chart for the EUR currency:    Clearly I can't use this because adjacent loadings will jump from positive to negative, so my series which uses them will be erroneous. Now take a look at the absolute value of the EUR currency loading:    The problem is of course that I still cannot use this because you can see from the top chart that the loading does go from negative to positive and back at times, a characteristic which I need to preserve.   Is there any way I can get around this problem? Can I force the eigenvector orientation to always be the same in adjacent PCAs?   By the way this problem also occurs with the FactoMineR PCA() function. The code for the rollapply is here:  rollapply(retmat, windowl, function(x) summary(princomp(x))$loadings[, 1], by.column = FALSE, align = "right") -&gt; princomproll How do I prove $\sin x$ is uniformly continuous on $\mathbb R$ with delta and epsilon?   I proved geometrically that $\sin x&lt;x$ and thus, $$|f(x_1)-f(x_2)|=|\sin x_1 - \sin x_2|\le|\sin x_1|+|\sin x_2|&lt;|x_1|+|x_2|$$   But this doesn't help me much finding a delta...   Thanks for any help!  P.S. I'm only at the beginning of calculus so I can't use many theorems and derivation  (because they haven't been regorously proven). I have an ASUS K55VM and it came with DOS, and then Windows 7 was installed. I am planning to install Ubuntu on it. My computer had 4 partitions: 240GB, 230GB, 230GB, and 230GB, and I changed this to 5 partitions: 243GB, 230GB, 230GB, 150GB, and 80GB. I installed Ubuntu 12.04 to the 80GB partition through a USB flash drive. It installed fine, however the problem is during the Boot option in Windows Boot Manager. When I choose Ubuntu, this what is displayed:  Windows failed to start. A recent hardware or software change might be the cause. To fix the problem:   1. Insert your Windows installation disc and restart your computer.   2. Choose your language settings, and then click "Next,"   3. Click "Repair your computer." If you don't have this disc, contact your system administrator or computer manufacturer for assistance.    File: \ubuntu\winboot\wubildr.mbr   Status: 0xc000000e   Info: The selected entry could not be loaded because the application is missing or corrupt.   I tried to change the boot option for the OS and made Ubuntu as my first option. It worked, however Windows 7 does not show up in GRUB. In this fear I did the following:     Restarted my PC changed boot option 1 to Windows.   Formatted the drive to which Ubuntu was installed (80GB one) through Windows.   Restarted again.     The problem persists. Windows Boot Manager still shows Ubuntu, and when I choose this it gives two lines one like: grub rescue&gt;, but my Windows 7 is working perfectly fine.  Now I want a solution to remove Ubuntu from the Windows boot option and reinstall completely. Why are we using the squared residuals instead of the absolute residuals in OLS estimation?  My idea was that we use the square of the error values, so that residuals below the fitted line (which are then negative), would still have to be able to be added up to the positive errors. Otherwise, we could have an error of 0 simply because a huge positive error could cancel with a huge negative error.  So why do we square it, instead of just taking the absolute value? Is that because of the extra penalty for higher errors (instead of 2 being 2 times the error of 1, it is 4 times the error of 1 when we square it). I tried to install Xubuntu 13.10 on an older computer. I noticed some difficulties during installation that may be relevant to my problems. Notably:   The screen resolution was extremely low. The windows were much larger than the screen and I had to move them around to get to the "Next" button. The mouse cursor was a blur of colours that was flashing all the time.   The installation finished and I tried to reboot the computer. Immediately I got:  error: attempt to read or write outside of disk 'hd0'.  Entering rescue mode...  grub rescue&gt;   I made a  USB disk, booted it and chose the default repair. The application told me that the problem is repaired and that If this does not solve my problem I should show  to someone who can help me.  What should I do next? I already tried to install Ubuntu and Xubuntu, both with no success.  EDIT:  I found a workaround.   Insert the Xubuntu live USB Select "try Xubuntu" In the settings menu select "install Xubuntu"   This fixed the problem for me. Since it is solved I cannot test the answer. Control Cycles/Eevee material nodes and material properties using python? How can I define the different properties of an Cycles/Eevee material? Such things as glossy, glass, diffuse, RGB-color, emissive via python scripting? Convert short[] into a grayscale image I am trying to grow my C: drive to use the unallocated space on Disk 0. Is it safe to throw away the Recovery Partition (i.e. make it unallocated)? And if so, is GParted an ok tool to do that with? Or do I need to move that, and if so, is the way to do that to reduce the size of the unallocated partition so there is empty space at the end, then move it there? I have a Queue&lt;T&gt; object that I have initialised to a capacity of 2, but obviously that is just the capacity and it keeps expanding as I add items.  Is there already an object that automatically dequeues an item when the limit is reached, or is the best solution to create my own inherited class? How to quickly and safely defrost chicken? What is the safest, quick way to defrost chicken? Microwave? Running water over it? I'm looking for ways to speed up the combat in my D&amp;D 3.5 game. It seems that turns - both player and non-player - simply take too long. I have thought about giving everyone a 30 second timer, but I'm afraid that might inhibit their ability to come up with strategy and tactics.