Currently I have a XAMPP server and MySQL database related to it. The database has some data that has superscript charactors such as ™. I used some form to insert such data into database. In database it has been showing as â„¢. But when I query, then it shows correctly as ™ in the HTML page. My Issue I created the same database in another XAMPP server and transferred data by exporting from original MySQL database and import to new MySQL database. All data transferred correctly. But this time, when I query the special charactor and showed in HTML page, it is not showing the superscript charactor as ™, instead it shows as â„¢. When I export data, I used utf-8 too  But when I tried to add a new data with ™ in it by using query into the new MySQL database and such added data is showing correctly as ™ instead of â„¢. But those imported data is still not showing correctly in HTML page. I tried to add mysqli_set_charset($conn,“utf8”) in the connection file. But it is not solving the issue. Does anyone know why this way?
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.
The cardinality of $\{f\subseteq\mathbb R^2\mid f\colon\mathbb{R\to R}\text{ is a function}\}$ is strictly greater than the cardinality of $\mathbb R$ Why is it so difficult to pull an immersed mug out of the water? Suppose I put a mug in the water and then tilt it so that the water gets inside. It then floats due to buoyant force. But if I try to pull it out then a lot of force is needed. That's due to suction? What exactly happens at the moment when the force I apply is enough to pull the mug out? And what causes the loud pop sound when that happens? In Harry Potter, we know ghosts became ghosts when they are too afraid of death to go on - I thought about it and I'm quite certain they all go to their own version of Harry's King's Cross and become ghosts when they return as Harry did.  So can they return there? Once they've been a ghost long enough that they no longer fear death, can they move on? How to create SQL like composite key I have an object in which there are two fields i.e Phone no. &amp; email. The combination of these fields should be unique Right now I can create just one unique field But I want their composite to work like a unique field.   I know that I can create composite key in SQL but I dont know how to achieve this in salesforce. SPSite.Exists returning true for a just deleted site collection Short story - I have a process that creates some sitecollection, so to test it I keep deleting and recreating the same site over and over. The process includes a check with the istruction SPSite.Exits, done to check if the sitecollection is present or should be created.  Sometime, soon after I delete the site collection, SPSite.Exists will report it as still available. Is this a cache related problem? Which video editor can I use to make clips to upload? I am looking for an easy video editor for Ubuntu 12.04. My needs are simple: make clips and upload them on sites (cut segments from a video file with frame to frame precision, convert into common formats, resize the file).  Can anyone suggest one? I'm currently building a town in Minecraft Pocket Edition and I'm wondering how many blocks long and how many blocks wide the world is. I am wondering why matrix factorization techniques in the machine learning domain almost always expect the provided matrix to be non-negative. What is the advantage of this constraint?  Background: I want to use matrix factorization algorithms for a sparse user-item matrix containing positive and negative implicit feedback. Is there any another possibility to set interactions with negative indications apart from fields that denote that no interaction happened between the user and the item? Why is AES resistant to known-plaintext attacks? At least it's my understanding that AES isn't affected by known-plaintext. Is it immune to such an attack, or just resistant? Does this vary for chosen-plaintext? Reprojecting raster from lat/lon to UTM in R? i have to turn it into a  UTM in order to make the buffer functional.  wets&lt;-readOGR(dsn=".",layer="shapefile") r.raster &lt;- raster() extent(r.raster) &lt;- extent(wets) res(r.raster) &lt;- 100   wets.r &lt;- rasterize(wet,r.raster) plot(wets.r) wetsbuf&lt;-buffer(wets.r,width=500)   During the buffer creation which is the last line of code, it gives this warning:  Warning message:   In couldBeLonLat(x) :   raster has a longitude/latitude CRS, but coordinates do not match that   here's the info    summary(wets.r)           layer  Min.        1  1st Qu.     1  Median      2  3rd Qu.     9  Max.       11  NA's    52629  summary(wets)    Object of class SpatialPolygonsDataFrame Coordinates:       min       max  x  683705  714088.8  y 4326266 4343768.0  Is projected: TRUE   proj4string :  [+proj=tmerc +lat_0=0 +lon_0=24 +k=0.9996 +x_0=500000 +y_0=0 +datum=GGRS87  +units=m +no_defs +ellps=GRS80 +towgs84=-199.87,74.79,246.62]  Data attributes:    Min. 1st Qu.  Median    Mean 3rd Qu.    Max.      0.0     2.5     5.0     5.0     7.5    10.0         wets.r  class       : RasterLayer  dimensions  : 175, 304, 53200  (nrow, ncol, ncell) resolution  : 100, 100  (x, y) extent      : 683705, 714105, 4326268, 4343768  (xmin, xmax, ymin, ymax) coord. ref. : +proj=longlat +datum=WGS84 +ellps=WGS84 +towgs84=0,0,0  data source : in memory names       : layer  values      : 1, 11  (min, max) attributes  :    ID FID  from:  1   0  to  : 11  10   I have to change the prjection in order to be possible to do the buffer. Support showing image in original size in overlay What happened to Saruman after he was knifed by Grima? Saruman was one of Maiar, like Gandalf. Meaning that he had a mortal body but presumably, when that body was killed, would simply return back to his ("spirit?") being.  Is there any confirmation from Tolkien that this is indeed what happened after he was knifed by Grima? Or was he somehow completely destroyed since he was de-powered by Gandalf? It seems that given a statement $a = b$, that $a + c = b + c$ is assumed also to be true.  Why isn't this an axiom of arithmetic, like the commutative law or associative law?  Or is it a consequence of some other axiom of arithmetic?  Thanks!  Edit: I understand the intuitive meaning of equality. Answers that stated that $a = b$ means they are the same number or object make sense but what I'm asking is if there is an explicit law of replacement that allows us to make this intuitive truth a valid mathematical deduction. For example is there an axiom of Peano's Axioms or some other axiomatic system that allows for adding or multiplying both sides of an equation by the same number?   In all the texts I've come across I've never seen an axiom that states if $a = b$ then $a + c = b + c$. I have however seen if $a &lt; b$ then $a + c &lt; b + c$. In my view $&lt;$ and $=$ are similar so the absence of a definition for equality is strange. Writing string at the same position using Console.Write in C# 2.0 I have a console application project in C# 2.0 that needs to write something to the screen in a while loop. I do not want the screen to scroll because using Console.Write or Console.Writeline method will keep displaying text on console screen incremently and thus it starts scrolling.  I want to have the string written at the same position. How can i do this?  Thanks The space obtained by identifying the antipodal points of a circle Polynomials vanishing on an infinite set I'd like some help making this argument complete and rigorous (if it's correct - if not, help with that would be nice).  Here $k$ is a field.     Let $A_1,\ldots,A_n \subseteq k$ be infinite subsets. Then any polynomial in $k[x_1,\ldots,x_n]$ that vanishes on $A_1\times\cdots\times A_n\subseteq k^n$ must be $0$ (as a polynomial).   This is what I have ...  For the case $n=1$, a non-constant polynomial can only have as many roots as its degree, and in particular, it must have a finite number of roots. The only polynomial in one variable that has an infinite number of roots is $0$, so if a polynomial in $k[x_1,\ldots,x_n]$ vanishes on an infinite subset then it must be $0$.  For the inductive step, suppose the proposition is true for less than $n$ subsets and variables. Let $p\in k[x_1,\ldots,x_n]$ vanish on $A_1\times\cdots\times A_n$. Fix $x_n$ as some $a\in A_n$, and we have a polynomial in $n-1$ variables that vanishes on the set $A_1\times\cdots\times A_{n-1}$, so by the inductive hypothesis it must be identically $0$.  (Now it gets sketchy). Since this is true for any of the infinite values in $A_n$, and , $p$ must be $0$. My try, using $x = \sec(u)$ substitution:  $$ \begin{eqnarray} \int \frac{\sqrt{x^2-1}}{x} \mathrm{d}x &amp;=&amp; \int \frac{\sqrt{\sec^2(u) - 1}}{\sec(u)}\tan(u)\sec(u) \mathrm{d}u \\ &amp;=&amp; \int \tan^2(u) \mathrm{d}u \\ &amp;=&amp; \tan(u) - u + C \\ &amp;=&amp; \tan(arcsec(x)) - arcsec(x) + C \end{eqnarray} $$  However, according to , the answer should be: $$ \int \frac{\sqrt{x^2-1}}{x} \mathrm{d}x = \sqrt{x^2-1}+\arctan \left( \frac{1}{\sqrt{x^2-1}} \right)+C $$ When I derive this last answer I don't get back the integrand, but rather: $$ \frac{\mathrm d}{\mathrm d x}\left(\sqrt{x^2-1}+\arctan \left( \frac{1}{\sqrt{x^2-1}} \right)+C\right) = \frac{x}{\sqrt{x^2-1}}- \frac{x}{(x^2-1)^{3/2}\left(1+\frac{1}{x^2-1}\right)} $$  I don't know how to simplify this expression more. Also, I am unable to check whether my answer is correct because I don't know how to find the derivative of $arcsec(x)$.  Can someone check my calculations and tell me where I've done something wrong and how one can simplify the last expression to get back the integrand? How exactly does curved space-time describe the force of gravity? I understand that people explain (in layman's terms at least) that the presence of mass "warps" space-time geometry, and this causes gravity. I have also of course heard the analogy of a blanket or trampoline bending under an object, which causes other objects to come together, but I always thought this was a hopelessly circular explanation because the blanket only bends because of "real" gravity pulling the object down and then pulling the other objects down the sloped blanket. In other words, to me, it seems that curved space wouldn't have any actual effect on objects unless there's already another force present.   So how is curved space-time itself actually capable of exerting a force (without some source of a fourth-dimensional force)?  I apologize for my ignorance in advance, and a purely mathematical explanation will probably go over my head, but if it's required I'll do my best to understand. I am using an old laptop and doing heavy processing that needs high CPU usage for a long time (~30mins - 2hours). When the process puts heavy load on CPU for a long time, CPU overheats and computer shuts down. I don't want to use a cooler/stand because I am carrying this laptop around and working outside home.  Is there a way/application that I can limit CPU usage of a process in Windows?  Note: Setting the priority of the process from task manager does not work.  Note 2: Fans are clean. How to adjust the size and placement of chapter heading in report class How could I adjust the size and placement of chapter heading in my custom class? I am using report class as my base. When I used titlesec package inside my custom class, it threw error     ! Package titlesec Error: Not allowed in `easy'   settings.