My code is  &lt;$php $database = new mysqli("127.0.0.1", "root", "root", "picture"); $new_album = "CREATE TABLE `נסיון` ("     . "id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,"     . "pic VARCHAR(20) NOT NULL,"     . "des VARCHAR (40) )"; $database-&gt;query($new_album); ?&gt;   but if i copy the query as  CREATE TABLE `ש` ( id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, pic VARCHAR(20) NOT NULL,des VARCHAR (40) )    strait into the phpMyAdmin query segmant, it creates the table with the hebrew currect.  in the head tag, there is a &lt;meta charset="windows-1255"/&gt; which is working when i print or echo anything in hebrew.is there anything else i could change in the page settings to fix this?
I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.
I've got a 32-bit Ubuntu installation running on 64-bit hardware. Now that , I would like to switch to 64-bit without having to reinstall the OS.  This is one of the :  Shawn installed his system using the 32-bit version of Ubuntu, but his hardware is 64-bit and he wants to switch over. He manually installs the amd64 versions of dpkg and apt, replacing the i386 versions and changing which architecture is used as the default; then he installs the amd64 ubuntu-minimal package; then he installs the amd64 ubuntu-desktop package. Over time the remaining i386 packages are replaced automatically on upgrade.  However, when trying to follow the instructions in there, I cannot find any 64-bit version of dpkg or apt.  Did this user story got implemented in a different way in the final spec, or do I need to do something differently?  In short, how can I switch my 32-bit installation to 64-bit? What is the difference between HTML tags  and ? I would like to ask for some simple examples showing the uses of &lt;div&gt; and &lt;span&gt;.   I've seen them both used to mark a section of a page with an id or class, but I'm interested in knowing if there are times when one is preferred over the other. Smooth option sometimes produces incorrect arrow tips in PGFplots Enumeration within self defined environment My self defined environment having a symbol at the beginning and at the end works fine for text without enumeration. When including enumerate the symbols are not there where desired. Is it possible to have the first symbol directly in front of &quot;1.&quot; i. e. in the same line and the ending symbol in the same line as the last line of the enumeration? With \ignorespacesafterend and \unskip I did not succeed. \documentclass{article} \usepackage{amssymb} \newenvironment{myenv}{$\blacktriangleright$}{\hfill$\blacktriangleleft$}  \begin{document} There is a text.  \begin{myenv} And an example \end{myenv}  Here is another text.  \begin{myenv} \begin{enumerate} \item A \item B \end{enumerate} \end{myenv}  \end{document} What happens when the Runner stack is empty? When the corporation R&amp;D is empty the corporation loses.  What happens when the Runner's stack is empty?    I think that: He must finish the game with only the cards on the table.  or  I doubt that: He reshuffles the heap into a new stack. Show group of order $4n + 2$ has a subgroup of index 2. Let $n$ be a positive integer. Show that any group of order $4n + 2$ has a subgroup of index 2. (Hint: Use left regular representation and Cauchy's Theorem to get an odd permutation.)  I can easily observe that $\vert G \vert = 2(2n + 1)$ so $2 \mid \vert G \vert$ and 2 is prime. We have satisfied the hypothesis of Cauchy's Theorem so we can say $G$ contains an element of order 2.  This is where I am stuck  I am confused about how the left regular representation relates to the group. So my understanding at this point is that every group is isomorphic to a subgroup of some symmetric group. My question: is the left regular representation $\varphi : G \to S_G$ an isomorphism? where $G \cong S_G$ or is $S_G$ the same thing as $S_{\vert G \vert}$ and $\varphi$ is only an injection? I'm using Dummit and Foote for definitions.  I saw an argument online that said that since we have an element of order 2, there is a $\sigma \in S_G$ of order 2, but it is a product of $2n + 1$ disjoint 2-cycles. I don't understand how they could claim this and tried working it out on my own but didn't get there. -- They then went on to use the parity mapping $\varepsilon : S_G \to \{\pm1\}$ and since we have an odd permutation $\sigma$, we have $[S_G:\text{ker }\varepsilon] = 2$. I understood their computation but not how that directly shows that $G$ has a subgroup of order 2? unless $G \cong S_G$ because of how left regular representation is defined. (but again, I'm not understanding that concept very well yet.)  So, to be clear about my questions:   What is meant by left regular representation, is it an isomorphism or just an injection? and how would it be used here. If it is an isomorphism, the argument online starts to make more sense, but how can they say that since $\sigma$ is even, it is made up of $2n + 1$ disjoint transpositions? If you have a full, proof, I'd appreciate it, but good hints are just as good!   Thanks you! Show that the conditional statement is a tautology without using a truth table I have been attempting to use identities to get to the answer but I am unable to get anywhere. Here is the equation I am trying to prove tautological without using truth tables:  $[(p\rightarrow q) \land (q \rightarrow r)] \rightarrow (p \rightarrow r )$  And here is my attempt at using identities to work my way up. (a link to a page with a table of logical equivalence identities: )  $\lnot [(p \rightarrow q) \land (q \rightarrow r)] \lor (p \rightarrow r)$  $\lnot [(\lnot p \lor q) \land (q \rightarrow r)] \lor (p \rightarrow r)$  $[\lnot (\lnot p \lor q) \land \lnot (q \rightarrow r)] \lor (p \rightarrow r)$  $[(p\land \lnot q) \land (q \land \lnot r)] \lor (p \rightarrow r)$  I don't know where to go from there. Visa for European countries for US passport holder I'm a US passport holder. What documents do I need when I fly from the U.S. to Germany?  Assume I'm going for a few weeks of vacation.  Obviously I need my passport.  What about a "visa"?  Anything else? This question is a sequel of sorts to my  about .  In the paper, the authors performed molecular dynamics (MD) simulations of parallel-plate supercapacitors, in which liquid resides between the parallel-plate electrodes.  The system has a "slab" geometry, so the authors are only interested in variations of the liquid structure along the $z$ direction.  In my previous question, I asked about how particle number density is computed.  In this question, I would like to ask about how the electric potential is computed, given the charge density distribution.  Recall that in CGS (Gaussian) units, the Poisson equation is   $$\nabla^2 \Phi = -4\pi \rho$$  where $\Phi$ is the electric potential and $\rho$ is the charge density.  So the charge density $\rho$ is proportional to the Laplacian of the potential.  Now suppose I want to find the potential $\Phi(z)$ along $z$, by integrating the Poisson equation.  How can I do this?  In the paper, on page 254, the authors write down the average charge density $\bar{\rho}_{\alpha}(z)$ at $z$:  $$\bar{\rho}_{\alpha}(z) = A_0^{-1} \int_{-x_0}^{x_0} \int_{-y_0}^{y_0} dx^{\prime} \; dy^{\prime} \; \rho_{\alpha}(x^{\prime}, y^{\prime}, z)$$  where $\rho_{\alpha}(x, y, z)$ is the local charge density arising from the atomic charge distribution of ionic species $\alpha$, $\bar{\rho}_{\alpha}(z)$ is the average charge density at $z$ obtained by averaging $\rho_{\alpha}(x, y, z)$ over $x$ and $y$, and $\sum_{\alpha}$ denotes sum over ionic species.  The authors then integrate the Poisson equation to obtain $\Phi(z)$:  $$\Phi(z) = -4\pi \sum_{\alpha} \int_{-z_0}^z (z - z^{\prime}) \bar{\rho}_{\alpha}(z^{\prime}) \; dz^{\prime} \; \; \; \; \textbf{(eq. 2)}$$  My question is, how do I "integrate the Poisson equation" to obtain equation (2)?  How do I go from  $\nabla^2 \Phi = -4\pi \rho$ to equation (2)?  In paricular, where does the $(z - z^{\prime})$ factor come from?   Thanks for your time. Travel without an Italian residence permit in the Schengen area So I tried a few different answers that I found here, and I feel that this is possibly a duplicate question, but everything I have tried from the other solutions hasn't worked.  Basically I am trying to bake a material to a texture that will be used in Unity, but every test gives me a black background image.  In the image below, the top image texture is the mask (black and white, white being the leaves), and the bottom image texture is the colour. The Node Editor won't work for the object selected How to completely uninstall and remove QGIS 2.8.1 on Windows Vista? I want to uninstall and completely remove QGIS installation from my computer(windows vista). I have uninstalled it and when i try to reinstall it says it is already installed on the system. My textbook states that:  ...The capacitance $C$ depends only on the geometrical configuration (shape, size, separation)of the system of two conductors. [As we shall see, later, it also depends on the nature of the insulator (dielectric) separating the two conductors.]...  Now I wanted to know if these were the only two factors on which the capacitance of a conductor depends. So I tried thinking about it from the basic definition, which is:  Capacitance is the ratio of the change in electric charge of a system to the corresponding change in its electric potential. (Source: )  i.e., $$C= \frac {dQ}{dV}$$ where, $V$ is the potential of the conductor with respect to zero potential at infinity. Now, I can not think of why $C = f(V)$ isn't a possible scenario, assuming that shape size, etc remains constant. So:  Why cannot $C$ be a function of $V$? Integrating $\int_0^1 \frac {\log(1-x)\log^2(1+x)}x \mathrm{d}x$ Question: Integrate$$\int\limits_0^1dx\,\frac {\log(1-x)\log^2(1+x)}x=-\frac {\pi^4}{240}$$   I'm curious as to if there is a way to integrate this. I've tried using integration by parts to get$$I=-\frac {\pi^2}6\log^22+2\int\limits_0^1dx\,\frac {\operatorname{Li}_2(x)\log(1+x)}{1+x}$$However, I'm not sure how to continue even further. The polylog in the second integrand seems a bit intimidating and I don't see how the first term even helps. Prove that $\text{rank}(X^TX)=\text{rank}(X)$ Prove, for real $X$, that $\text{rank}(X^TX)=\text{rank}(X)$.  Could anyone please help me with this problem? I've tried to use full-rank factorization and rank-related theorems mentioned in my book but still failed to solve this. I am learning linear algebra by myself and my book has no solutions manual so I find it really hard to get used to solve linear algebra problems.    Many thanks in advance for your help! In setting up dual Boot with Windows and Ubuntu, which OS do I install first? I'd like to install both Ubuntu 12.04 and Windows XP on a Dell laptop, and I was thinking about using a dual boot structure, and using the bulk of my hard drive as empty hard drive space to share files between the two operating systems (so choice of file system type is very important in this set-up).     The kind of partitioning structure I would like to use is  Partition 1 - Ubuntu 12.04 (root) (20GB)  Partition 2 - Ubuntu /home        (20GB)  Partition 3 : Free Space          (560GB)  Partition 4 : Windows XP          (35GB)  Partition 5 : SWAP                (3GB)  (Total Hardrive Capacity is ~640GB)    My question is; what is the best way to go about setting up this kind this system?   Should I install Windows XP first and setup the partitions, and then install Ubuntu which I believe will install the GRUB bootloader for OS booting choice   or   Do I install Ubuntu first, setting up the available partitions and then perform a WIndows install?  Please let me know if there is anything in this setup that I have left out and should know about, including things related to setting particular partitions as logical or primary, and whether the boot partition and the filesystem partition should actually be two separate partitions. Negative integer division surprising result $\mathbb{Z}[X]/(X^2-1)$ is not isomorphic with $\mathbb{Z}\times \mathbb{Z}$ Making a string out of a string and an integer in Python