On my installation of CentOS 7, SELinux is enabled by default. This is preventing Apache from properly reading PHP files in the standard /var/www/html document root (the browser is blank when displaying web pages containing PHP script). When I disable SELinux the pages display normally.  Is there some way of setting SELinux to allow Apache to access PHP files from the document root? I would rather not disable SELinux entirely given that CentOS clearly believes it is a desirable security addition.
I've got this one file, favicon.ico. It's actually a large group of nested files, but purely for example, just this one.  If I do cp favicon.ico favicon2.ico, Apache can read the second one just fine.  If I do mv favicon.ico favicon3.ico, Apache throws a 403 on favicon3.ico.  If I su apache, I can read the file as apache.  stat says both files are identical, except for the inode number.  Is there some hidden flag somewhere or something that I'm missing? I've never seen anything like this.  error_log says (13)Permission denied: access to /favicon3.ico denied
I often need to make banner sets that consist of anywhere from 6-14 different sized banners. A lot of these banners have the same text (which I put in smart objects to work faster) and the same or different images. The placement and sizes of these elements differ according to the banner size though.  I find the process of 'copying' the content from one artboard to another to go a bit slower than I'd like it to. I can't simply copy/paste, I have to duplicate the layer and then drag it to the right artboard in the layer panel. Hoping I have closed all my folders or else I have to drag miles upwards ;)   There has to be a better way! Why can't I simply copy paste a layer anymore? I'm pretty sure this used to be the case in older versions of photoshop. Use of quotes in GNU grep regular expressions Difference between UART and RS-232? Most of the time  and UART come together in serial communication theories. Are they both the same? From my readings I concluded UART is a hardware form of the RS-232 protocol. Am I correct? What are valid values for "data defined" labeling settings? I'm using QGIS 1.8. I'd like to customize label features on an existing shapefile using the new label engine and it's "data defined settings" option. I'd like to know what the attribute table field types should be for each of the settings: All 7 font options, all 2 buffer options, and all 6 position options. Should they all be numeric fields, or some text, or both? I want to create these fields in the attribute table correctly so that I can map them to the label field settings. I can't find information on the proper field types anywhere. Thanks for your thoughts. Calculate integral $\int_{-1}^{1} (1-x^2)^n dx $ Calculate the area on a sphere of the intersection of two spherical caps Why was the Triwizard Cup used as the portkey? In Harry Potter and the Goblet of Fire the Triwizard Cup was used as the portkey to send Harry and Cedric to the graveyard in Little Hangleton to face Voldemort.    Why was the Triwizard Cup chosen?    Couldn't Crouch Jr. have used anything as a portkey; which would have been much easier and without as much risk (after all of their planning Cedric almost ended up getting the cup first). Characterizing all ring homomorphisms $C[0,1]\to\mathbb{R}$. This is something I've been trying to work out this evening.      Let $R$ be the ring of continuous real-valued functions on $[0,1]$ with pointwise addition and multiplication. For $t\in [0,1]$, the map $\phi_t\colon f\to f(t)$ is a ring homomorphism of $R$ to $\mathbb{R}$. I'm trying to show that every ring homomorphism of $R\to\mathbb{R}$ has this form.   Suppose otherwise, that there is some $\phi\neq\phi_t$, and thus there is some $f_t\in R$ such that $\phi(f_t)\neq \phi_t(f_t)=f_t(t)$. Define $g_t=f_t-\phi(f_t)1\in R$. Here $\phi(f_t)1$ is the constant function sending $[0,1]$ to $\phi(f_t)$. Then $g_t(t)\neq 0$. My first small question is why does $\phi(g_t)=0$? It seems only that $\phi(g_t)=\phi(f_t)-\phi(\phi(f_t)1)$.  I would like to conclude that there are only finitely many $t_i$ such that $g(x)=\sum g_{t_i}^2(x)\neq 0$ for all $x$. Then $g^{-1}=1/g(x)\in R$, but $\phi(g)=0$, contradicting the fact that homomorphisms map units to units. How can we be sure there are only finitely many $g_{t_i}$ such that the sum of their squares is never $0$? Thanks. We know that $\displaystyle\zeta(2)=\sum\limits_{n=1}^{\infty} \frac{1}{n^2} = \frac{\pi^2}{6}$ and it converges.        Does there exists a bijective map $f:\mathbb{N} \to \mathbb{N}$ such that the sum $$\sum\limits_{n=1}^{\infty} \frac{f(n)}{n^2}$$ converges.      If our $s=2$ was not fixed, then can we have a function such that $\displaystyle \zeta(s)=\sum\limits_{n=1}^{\infty} \frac{f(n)}{n^s}$ converges Should the results of a calculation happen automatically, or require a button push? This is a problem I've ran into several times, and I imagine that others have ran across it too.    Basically, I have a complicated equation, and I want the user to type in the values needed to calculate the results.  (For what it's worth, there are good default values for the variables in the equation.)  I've constructed a GUI that shows the user the names of the variables/fields that need to be provided, along with a control (like a numeric up/down, slider, etc.) to enter the values of the field.  Below that, I have an area that shows the output of the equation.  So my question is this.  Should my results area automatically change the calculated results whenever the user makes any changes to any of the input fields, or should they push a "Calculate" button to generate the results?  One other thing that probably applies is that the user is not trying to "get the right answer" out of the results.  They shouldn't be using the output to then go back and modify the input to get a better answer.  Are there any benefits to requiring the button press?  Is the extra click to see the results worth those benefits? $a,b,c$ are distinct real numbers that $$(a^2)(1-b+c)+(b^2)(1-c+a)+(c^2)(1-a+b)=ab+bc+ca.$$ Prove $$\frac{1}{(a-b)^2}+\frac{1}{(b-c)^2}+\frac{1}{(c-a)^2}=1.$$ I have tried two different approaches to this problem but am stuck.  First I started by expanding the bottom of each fraction. $\frac{1}{(a^2)-2ab+(b^2)}+\frac{1}{(b^2)-2bc+(c^2)}+\frac{1}{(c^2)-2ac+(a^2)}=1$  I also tried to expand $(a^2)(1-b+c)+(b^2)(1-c-a)+(c^2)(1-a+b)=ab+bc+ca$   $(a^2)-(a^2)b+(a^2)c+(b^2)-(b^2)c-(b^2)a+(c^2)-(c^2)a+(c^2)b=ab+bc+ca$ $(a^2)-(a^2)b+(a^2)c+(b^2)-(b^2)c-(b^2)a+(c^2)-(c^2)a+(c^2)b-ab-bc-ca=0$ Then I added one to both sides $(a^2)-(a^2)b+(a^2)c+(b^2)-(b^2)c-(b^2)a+(c^2)-(c^2)a+(c^2)b-ab-bc-ca+1=0+1$ Help will be appreciated. How can I get a DisplayLink USB monitor work under Ubuntu? I have a DisplayLink-based external USB monitor, which has both power and data over USB, and seems to work perfectly under Windows 7, but only can display a text console under Ubuntu 10.10, and that I can only use when I am actually switched to it. So the only Use I can have so far is to have some text-based monitoring or console that I can watch while working on the graphic display.   I know there are some development done for DisplayLink, but I never could get it to actually run properly.   Yes, I tried the detailed setup described in other , but they did not work, and instead crashed my X that I had to restore.   Merci :-) Let $\alpha$ be an irrational real number and let $a_j$ be a sequence of rational numbers converging to $\alpha$. Suppose that each $a_j$ is a fraction expressed in lowest terms: $a_j = \alpha_j / \beta_j$. Prove that the $\beta_j$ tend to $\infty$  Attempt: AFSOC that $\beta_j$ does not tend to infinity, then it is bounded by some $M$. We can also find an interval $\alpha \in (k, k+1)$. Let $\epsilon &gt; 0$, $\exists N_0$ such that for all $N &gt; N_0$ we have $|a_N - \alpha|  &lt; \epsilon$. So $|\frac{p_N}{q_N} - \alpha| &lt; \epsilon$. We try to use the fact that $q$ is bounded but fail to derive a contradiction. I do not know how to use the fact that $\alpha$ is between two integers, although it might not be relevant at all.  Ideas? I've logged in and out, restarted my phone, updated, but the Pokemon footsteps indicating whats nearby wont show up.   The Pokemon still appear in the menu, but I cannot click to select them, nor does it show their distance from me with the footsteps.   What is going on? Set limit to one author when using "et al." in biblatex In the header of my document I set the maximal author names to 2:  \usepackage[style=authoryear-icomp, maxbibnames=9, maxcitenames=2, backend=biber]{biblatex}   Now, when I cite texts with two authors, LaTeX gives me the following:     (Author_A/ Author_B 2012: 232)   When I have three authors or more, LaTeX makes it:     (Author_A/ Author_B et al. 2012: 232)   But I want LaTeX to just name the first author if there are more than two authors ... like this:     (Author_A et al. 2012: 232)   Any tips on how to achieve this ? Recently my audio input, from USB headset and USB guitar cable have stopped working. Going into Windows 'Sounds' and enabling 'Listen to this device' outputs the audio as expected; the problem is not with the devices. However, as soon as I try to use them with any other program, discord, for example, no audio input is detected by discord.  I have tried everything I can think of and some suggestions from Googling around;   Updating everything - windows, drivers, all related software Rolling windows back to the last build Trying different USB ports Reinstalling drivers and software Running Windows troubleshooters Playing with device properties settings   But nothing seems to work, any suggestions? Speed of object towards a point not in the object's trajectory? If $A\simeq\prod A_i$ then $\sum e_i=1$ Given $A$ commutative ring with unity. If we have rings $A_1,\dots, A_n$such that $A\simeq A_1\times \dots \times A_n$ there are $e_1,\dots,e_n$ idempotent elements of $A$ such that $e_1+\dots+e_n = 1$ and $e_i e_j =0$ if $i\neq j$.  I'm not sure how general the proof should be written...  The isomorphic relation suggest that if $f$ defines the isomorphism then there is a $(a_1,\dots, a_n)\in \prod A_i$ such that $f(a_1,\dots,a_n)=1\in A$. Could it work thinking of the idemmpotent terms as $e_i=(0,\dots,0, a_i,0, \dots,0)?$ This should satisfy $e_i e_j =0$ if $i\neq j$. But I have two problems with it (1) I don't see why $e_i$ should idempotent as no assumptions in regard to the existence of idempotent elements in $A_i$ has been made. (2) The sum $\sum e_i=1$ has no reason to be true. Are there any versions of t-SNE for streaming data? My understanding of  and the Barnes-Hut approximation is that all data points are required so that all force interactions can be calculated at the same time and each point can be adjusted in the 2d (or lower dimensional) map.  Are there any versions of t-sne that can efficiently deal with streaming data? So if my observations are arriving one at a time, it will find the best location on the 2d map to place the new observation, or continuously update all points on the 2d map to account for ht new observation.  Would this even make sense or does it go against the setup of t-sne. At the moment, I have created a code that retrieves data from the database and displays it. However, for some reason, I cannot see the files I want to retrieve on my page. My goal is that the data gets retrieved from the database, and is displayed on the webpage. I do not need to make a connection with the database since Wordpress does that automatically.  My code:  &lt;?php  global $wpdb; // this adds the prefix which is set by the user upon instillation of wordpress $table_name = $wpdb-&gt;prefix . "wpex_programma"; // this will get the data from your table $retrieve_data = $wpdb-&gt;get_results( "SELECT * FROM wpex_programma; " ); print_r($retrieve_data); ?&gt; &lt;ul&gt; &lt;?php foreach ($retrieve_data as $retrieved_data){ ?&gt; &lt;li&gt;&lt;?php echo $retrieved_data-&gt;column_name;?&gt;&lt;/li&gt; &lt;li&gt;&lt;?php echo $retrieved_data-&gt;another_column_name;?&gt;&lt;/li&gt; &lt;li&gt;&lt;?php echo $retrieved_data-&gt;as_many_columns_as_you_have;?&gt;&lt;/li&gt; &lt;?php  } ?&gt; &lt;/ul&gt;   My question: the data is not shown and I believe it is not retrieved. How can I fix that? The table name is correct, and I have data in my database tabel. The print_r($retrieve_data)returns the following: Array ( [0] =&gt; stdClass Object ( [id] =&gt; 35 [naam] =&gt; /public_html/wp/wp-content/plugins/AbonneerProgrammas/FilesUpload/Country Kickin 1.mp3 ) )  My query log:    My database structure:   New:  &lt;?php  global $wpdb; // this adds the prefix which is set by the user upon instillation of wordpress $table_name = $wpdb-&gt;prefix . "wpex_programma"; // this will get the data from your table $retrieve_data = $wpdb-&gt;get_results( "SELECT * FROM wpex_programma; " ); print_r($retrieve_data); ?&gt; &lt;ul&gt; &lt;?php foreach ($retrieve_data as $retrieved_data){ ?&gt; &lt;li&gt;&lt;?php echo $retrieved_data-&gt;id;?&gt;&lt;/li&gt; &lt;li&gt;&lt;?php echo $retrieved_data-&gt;naam;?&gt;&lt;/li&gt; &lt;?php  } ?&gt; &lt;/ul&gt;