I created a table with the following sql:  CREATE TABLE fens_mng_people_utf8 (   pidm varchar(16) NOT NULL default '',   fname varchar(32) NOT NULL default '',   mname varchar(32) default NULL,   lname varchar(32) NOT NULL default '',   KEY pidm (pidm) )CHARACTER SET utf8  DEFAULT CHARACTER SET utf8  COLLATE utf8_general_ci  DEFAULT COLLATE utf8_general_ci;   And some Turkish characters such as Ş appears as a html code &amp;#350; even if I insert it directly with an sql not from a text document. And I am viewing it from phpmyadmin.  As a result, when I try to do such operations in my php:  SELECT * FROM  fens_mng_people_utf8 WHERE fname = '$fname' and lname = '$lname'   It returns null because $fname and $lname both displays Turkish characters properly.  I either want to correctly display Turkish characters in my table or convert $fname as it would match the value in my database.  Thanks for the help!
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.
Why won't this command work? /summon Villager ~ ~2 ~ {Offers:{Recipes:[{buy:{id:371,Count:15},sell:{id:264,Count:4}}   I'm using this as a recycler villager, and I can't get the first trade to work. What's going on? Trying to search for multiple file extensions in command line I am trying to find two extensions in command line but when i do it will only return one of the extensions. can you tell me what I am missing?   Here is my command;  [root]# find /etc -name "*.txt" -o -name "*.log" -type f -mtime +7 -exec echo {} \; (Reference : Fraleigh, A first course in abstract algebra)     Prove that a nonempty set $G$, together with an associative binary operation * on $G$ such that $a*x=b$ and $y*a=b$ have solutions in G, $\forall a,b\in G$, is a group.   Because * is an associatie operation, we have to prove that: there exists $e\in G$ such that $e*a=a=a*e$ for any $a\in G$, and that for any $a\in G$ there exists $\alpha \in G$ such that $a*\alpha=e=\alpha *a$.  This is very confusing, first I tried to prove the identity exists. If we consider a=b, then $a*x=a=y*a$, and because of the hypothesis $x,y\in G$ always exists, now we have to show that $x=y$, but I just can't do this with out inverses, so I tried to prove that the inverses exists, however I have no idea how the identity looks like, I'm stuck.  And I tried to get unstuck, so I thought particular cases, first if $G$ had only one element, then what would happend if it had just two elements... but I remembered that we don't know if G is finite or not, and I think this makes things a little bit more complicated.  What can I do? Why CAN we see the new moon at night? I understand that the Moon's phases are determined by its position in orbit relative to the Sun. (See: ). The "shadow" is not cast by the Earth (a common misconception - this is actually a lunar eclipse), but by the moon's body itself.  It would appear that, in order for the moon to be a new moon, it would have to be somewhere between the Earth and the Sun. However, it would seem that, if we were looking at a new moon, we'd necessarily be looking at the Sun as well.  Why, then, can we sometimes see a new moon at night? Why doesn't it vanish at night for a half-month every month, between its last/first quarters? What is the mass density distribution of an electron? How can I unlock a password locked rar file without knowing the password? I have .rar file that is password protected, but I accidentally have forgotten the password. The file extremely important to me.  How can I get my file back? In windows, there was many programs that could remove the password of such a file. Is there one for Ubuntu? I'm trying to figure out the best way to model the sphere-spiral here:    Is it possible to make this shape directly? Or do you have to make it as a cylinder and wrap it to a sphere? Brackets in if condition: why am I getting syntax errors without whitespace? I am using the below script to move two days back when script runs at starting two days of the year and also check first and second days of every month and move two days back. if [$month=&quot;01&quot;] &amp;&amp; [$day=&quot;01&quot;]; then         date=&quot;$last_month/$yes_day/$last_year&quot;         fulldate=&quot;$last_month/$yes_day/$last_year&quot; else         if [$month=&quot;01&quot;] &amp;&amp; [$day=&quot;02&quot;]; then                 date=&quot;$last_month/$yes_day/$last_year&quot;                 fulldate=&quot;$last_month/$yes_day/$last_year&quot;         else                 if [ $day = &quot;01&quot; ]; then                         date=&quot;$last_month/$yes_day/$year&quot;                         fulldate=&quot;$year$last_month$yes_day&quot;                 else                         if [ $day = &quot;02&quot; ]; then                                 date=&quot;$last_month/$yes_day/$year&quot;                                 fulldate=&quot;$year$last_month$yes_day&quot;                         else                                 date=&quot;$month/$yes_day/$year&quot;                                 fulldate=&quot;$year$month$yes_day&quot;                         fi                 fi         fi fi  But my bad am getting the below error message Etime_script.sh: line 19: [06=01]: command not found Etime_script.sh: line 24: [06=01]: command not found Extremely difficult logic question using conditional statement In this problem, we will only consider (real-valued) functions with domain $\mathbb{R}$. We define two new concepts. Let $f$, and $g$ be two functions.  We say $f$ is a rival of $g$ if   &emsp;&emsp;&emsp;&emsp; $\exists x\in \mathbb{R} \ \text{s.t.} \ \forall y\in \mathbb{R}, x \lt y \implies \lvert f(x)- g(x)\rvert\lt\lvert f(y)-g(y)\rvert$    We say $f$ is a frenemy of $g$ if  &emsp;&emsp;&emsp;&emsp; $\forall x\in\mathbb{R} \ \text{s.t.} \ \  x \lt y \ \ \text{AND} \ \ \lvert f(x)-g(x)\rvert \lt \lvert f(y)-g(y)\rvert$  Below are four claims. Which ones are true and which ones are false? If a claim is true prove it. If a claim is false, show it with a counterexample.  a) If $f$ and $g$ are any two functions and $f$ is a rival of $g$ then $f$ is a frenemy of $g$. b) If $f$ and $g$ are any two functions and $f$ is a frenemy of $g$ then $f$ is a rival of $g$. If $f$ and $g$ are any two functions and $f$ is a rival of $g$, then $g$ is a rival of $f$. Let $f$, $g$, and $h$ be any three functions. If $f$ is a frenemy of $g$ and $g$ is a frenemy of $h$ then $f$ is a frenemy of $h$  What are the four claims stating? Especially for c), the concept is not even present I am having a misunderstanding on how to solve them? Why are date-based hats awarded too early? I just got the  hat which states "post or vote on December 21".  Does SE have a time machine now? getResourceAsStream() is always returning null Cancel misclicked flags I would like to scale an image file for each dimension differently for example 50% of the x dimension or 25% of the y dimension. Thank you very much. Show that $(2,0,4) , (4,1,-1) , (6,7,7)$ form a right triangle What I tried:  Let $A(2,0,4)$, $B(4,1,-1)$, $C(6,7,7)$ then  $$\vec{AB}=(2,1,-5), \vec{AC}=(4,7,3), \vec{BC}=(2,6,8)$$  Then I calculated the angle between vectors:  $$\begin{aligned} \alpha_1 &amp;= \cos^{-1}\left(\frac{(2,1,-5)(4,7,3)}{\sqrt{2^2+1^2+(-5)^2}\sqrt{4^2+7^2+3^2}}\right) \\ &amp;= \cos^{-1}(0)=90° \\ \alpha_2 &amp;= \cos^{-1}\left(\frac{(4,7,3)(2,6,8)}{\sqrt{4^2+7^2+3^2}\sqrt{2^2+6^2+8^2}}\right) \\ &amp;= \cos^{-1}\left(\frac{74}{\sqrt{74}\sqrt{104}}\right)=32.49\\ \alpha_3 &amp;= \cos^{-1}\left(\frac{(2,6,8)(2,1,-5)}{\sqrt{2^2+6^2+8^2}\sqrt{2^2+1^2+(-5)^2}}\right) \\ &amp;= \cos^{-1}\left(\frac{-30}{\sqrt{104}\sqrt{30}}\right)=122.5° \end {aligned}$$  As you can see, these angles don't even form a triangle, what am I doing wrong, any thoughts? What does the number in parentheses shown after Unix command names in manpages mean? Standard error of a ratio I have a linear regression and two estimates, say A and B and their standard errors. I need to find the standard error of a ratio A/B [or A/(1-B)].  I guess the main problem is that I don't know the correlation between A and B. I also guess that makes this unsolvable, since the correlation plays a major role. Is this correct?  If I knew it, what would be the way to calculate the standard error? How to deal with downvotes without any explanation How could I write my name, for example, to look like the \LaTeX logo? How could I write my name, for example, in a \LaTeX style? It is just interesting, as in Google all other things pop up when I try to search for an answer! Let $H$ be a subgroup of $G$ with $[G:H]=n$ and $G$ finite.  Let $G$ act on left cosets of $H$ by left multiplication.  Let $N$ be the kernel of the action.  Show that $[G:N]$ divides $n!$.  Ok so I have a theorem that says that if $G$ is simple then it embeds into $S_n$.  So if $G$ is simple than I'm done because $G$ divides $n!$ and thus $N$ divides $n!$ and hence $[G:N]$ divides $n!$.  Now I also know that $N$ is the largest normal subgroup of $G$ contained in $H$.  Thus if $G$ isn't simple then it contains some non-trivial normal subgroup $K$ and thus $K\cap H$ is normal in $H$ and by the 2nd Iso Theorem $H/K\cap H\cong KH/H$...    As you can see I'm not sure where to go from here. I was hoping to prove that $K\cap H$ wasn't trivial and thus that $N$ couldn't be trivial since it must contain $K\cap H$, but I'm not sure I can, and even if I could I'm not sure that would help me in showing that $[G:N]$ is small enough to divide $n!$.  Can anyone give some guidance?  Thanks. I have a large set of data points of the form (mean, stdev). I wish to reduce this to a single (better) mean, and a (hopefully) smaller standard deviation.  Clearly I could simply compute $\frac{\sum data_{mean}}{N}$, however this does not take in to account the fact that some of the data points are significantly more accurate than others.  To put it simply, I wish to preform a weighted average of these data points, but do not know what the weighting function should be in terms of the standard deviation.