I have made the following 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;   The code makes sure the files get retrieved from the database. The file is saved by the path. I know that the file gets retrieved, because when I use print_r($retrieve_data) the id and name get shown.   However, the file is not displayed (it should display the file name, and not the path). How do I accomplish this?  What I see now is:  Array ( [0] =&gt; stdClass Object ( [id] =&gt; 35 [naam] =&gt; /public_html/wp/wp-content/plugins/AbonneerProgrammas/FilesUpload/Country Kickin 1.mp3 ) )  While it should just be "Country Kicking 1.mp3".   Question: How can I make sure that my filenames are displayed?  For more info, see my other question:   My query log:    Greetings,  Parsa
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;
Process Unicode files with BOM correctly with POSIX tools Draw a vector with mathematica Ubuntu n00b here.  I have created several disasters of the first order already.  I am getting ready to try to install opera - it is a very long and arduous process.  I am afraid - no - I am absolutely certain that I will damage something important.  How do I create a system restore point?  Does such a thing exist? Given a recurrence relation:   $$ x_{n+2} = px_{n+1} + qx_n + r $$   Find the general term $x_n$ given initial conditions $x_1 = a$ and $x_2 = b$, where $a,b,p,q,r$ are some given numbers, $n \in \mathbb N$.   Since this is a non-homogeneous linear recurrence relation i've started with solving for $x_n^h$ which is a solution for homogeneous relation:  $$ x_{n+2} - px_{n+1} - qx_n = 0 \\ \lambda^2-p\lambda - q = 0 $$  I'm assuming here that two distinct roots $\lambda_{1,2}$ exist for this equation (single root case is handled similarly). So the general term is in the form:  $$ x_n = C_1\lambda_1^{n-1}+C_2\lambda_2^{n-1} $$  With the initial condition it's possible to find the values for $C_1$ and $C_2$:  $$ C_1 + C_2 = a \\ C_1\lambda_1 + C_2\lambda_2 = b $$  After solving the system of equation with respect to $C_1$ and $C_2$:  $$ C_1 = \frac{b-a\lambda_2}{\lambda_1 - \lambda_2} \\ C_2 = \frac{b-a\lambda_1}{\lambda_2 - \lambda_1} \\ $$  Which eventually results in:  $$ x_n^h = \frac{(a\lambda_2 - b)\lambda_1^{n-1} - (a\lambda_1-b)\lambda_2^{n-1}}{\lambda_2 - \lambda_1} $$  Final solution consists of a sum of particular and homogeneous solutions, but that is where I got stuck. What is the way to find the particular solution for the given problem? I'm pretty new to such kind of problems so any details are very much appreciated.  upd:  Based on the technique in @rtybase answer here are my findings:  $$ \begin{align} x_1 &amp;= a \\ x_2 &amp;= b \\ x_3 &amp;= pb - qa + r \end{align} $$  Writing the system for $c_1, c_2, c_3$:  $$ \begin{align} a &amp;= c_1 + c_2 + c_3 \\ b &amp;= c_1\lambda_1 + c_2\lambda_2 + c_3 \\ pb+qa+r &amp;= c_1\lambda_1^2 + c_2\lambda_2^2 + c_3 \end{align} $$  Now solving for the coefficients gives a huge formula. The answer to this problem suggests that:  $$ x_n = \frac{(\lambda_2(a+\gamma) - b -\gamma)\lambda_1^{n-1} - (\lambda_1(a + \gamma) - (b-\gamma))\lambda_2^{n-1}}{\lambda_2 - \lambda_1} - \gamma $$  Where:  $$ \gamma = \frac{r}{p+q-1} $$  Unfortunately I was not able to arrive at exactly the same result, but testing my solution (not posting since it's monstrously big) using SameQ in Mathematica with the given answer shows that they are equivalent. Those transformations are not very obvious to me, so i skipped them since the answer matches the given one (yet the symbolic expressions are different) Free, open-source substitutes for Mendeley? How can I stream live video on YouTube? Nowadays, I see a lot of users live streaming on YouTube and wanted to try it for myself. However, when I go to my channel I don't see an option for live streaming.  I tried researching how to do this on YouTube and Google, but without luck.  So I was wondering, how can I live stream on YouTube?  I don't have any pro account or any of that, but I've watched livestreams from users who I don't think have pro accounts either.  So livestreaming is open for everyone, right? Previously, someone posted his/her proof of "every neighborhood is open" . I am focusing on the same statement, but it seems that my approach is different from his/hers. Could someone comment on my own proof? Here we go:  Let $X$ be a metric space and $p\in X$. Fix $r&gt;0$. Define a neighborhood around $p$ as $N_r (p)=\{q\in X| d(p, q)&lt;r\}$. Now, take $w = \frac{r}{2}$. Then, $N_w (p)\subset N_r(p)$. In other words, every point of $N_r(p)$ is interior. Therefore, $N_r (p)$ is open. Since $r$ is arbitrary, this proves every neighborhood is open.  Update:  Under my definition of "neighborhood," can I prove in this way instead: For all $m\in N_r(p)$, take $w=\frac{r−d(m,p)}{2}$. Then, $N_w(m)\subset N_r(p)$.   Update2  From the hints given in comments, I solve it:  Assume $m\in N_r(p)$ and $q\in N_w(m)$. Take $w=r-d(m, p)$. Then, $d(p, q)\leq d(p, m) + d(m, q)&lt; d(p, m) + r-d(m,p) =r$.   Thanks to @JoséCarlosSantos and @fleablood ! How does the telepathy supernatural ability work? I have the two PGF nodes foo and bar positioned in a row.  \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document}   \begin{tikzpicture}[node distance=0.2cm,mynode/.style={rectangle,draw}]     \node[mynode] (foo)                {foo};     \node[mynode] (bar) [right=of foo] {bar};   \end{tikzpicture} \end{document}   How can I create a third node below those two nodes with the width of foo, bar and the node distance between them? Is there a way to do this with the fit library or is this the wrong approach? If $2^n+1$ is prime, why must $n$ be a power of $2$? A little bird told me that if $2^n+1$ is prime, then $n$ is a power of $2$. I tend not to trust talking birds, so I'm trying to verify that statement independently.  Suppose $n$ is not a power of $2$. Then $n = a \cdot 2^m$ for some $a$ not a power of $2$ and some integer $m$. This gives $2^n+1 = 2^{a \cdot 2^m}+1$. Now I suspect there's a way to factor that, but I don't see how. Can someone give me a hint? Google map only loading half of itself How do I disable Dunst and go back to notify-osd? I installed i3, which recommends dunst, but I'm not using i3 at the moment, and the dunst notifications don't really fit with Unity. I'd rather not uninstall dunst totally, since I might want to start using it at some point in the future; is there a way to switch back to notify-osd without uninstalling dunst? Serializing anonymous delegates in C# number of trailing zeros Fake News Detection problem I would like to work on a project for Fake News Detection especially for Indians news which are in different languages and different formats.   Fake news as image with no or very less text Fake news on a blog site Fake news as Tweets Fake news in Hindi Fake news in the watsapp group and shared across.   Need your help on the approach. One approach I can think of is using OCR we can read the content of the post, then search those content in the google. If the news is not present in any of the famous print media then we can tag it as fake. However there can be many challenges in this. What if the print media itself gives any fake news shared by someone.  How to handle the scenario where there is no text in the image but the information shown as image is fake.  How to handle posts written in Hindi. ?  And even if we detect fake news, is there any way to make the person accountable for sharing it. ? I know it is little difficult problem to solve. But is there any work currently done by any company on this. ?  Any starting point for me to get into this domain ? Keyboard layout/language changes in every boot I want to select the value from the dropdown I am testing www.paytm.com  In that I have filled in the mobile number but I am not able to focus and select the mobile operator which is present in the dropdown just after the phone number section.  I want to select 'vodafone' as the value from the dropdown.  How to do that using webdriver  Code I have written till now  `  public class MMT {   public static void main (String[] args)  {  System.setProperty("webdriver.chrome.driver","E:/som/chromedriver/chromedriver.exe");  WebDriver driver = new ChromeDriver();  driver.get("http://paytm.com");  driver.findElement(By.id("mobile-number")).sendKeys("9876543212");`   What should be my next steps? Java Strings: "String s = new String("silly");" I'm a C++ guy learning Java. I'm reading Effective Java and something confused me. It says never to write code like this:  String s = new String("silly");   Because it creates unnecessary String objects. But instead it should be written like this:  String s = "No longer silly";   Ok fine so far...However, given this class:  public final class CaseInsensitiveString {     private String s;     public CaseInsensitiveString(String s) {         if (s == null) {             throw new NullPointerException();         }         this.s = s;     }     :     : }  CaseInsensitiveString cis = new CaseInsensitiveString("Polish"); String s = "polish";    Why is the first statement ok? Shouldn't it be   CaseInsensitiveString cis = "Polish"; How do I make CaseInsensitiveString behave like String so the above statement is OK (with and without extending String)? What is it about String that makes it OK to just be able to pass it a literal like that? From my understanding there is no "copy constructor" concept in Java? How to use San Francisco font on Windows? Variable importance from GLMNET