I've got some problems with the codification on my db.  Db and tables are set with utf8_general_ci, and all PHP web pages have some header with this encoding.  From FORM I've to insert something, that is perfectly shown on web page, but on db figures like : Ã weÃ rewÃ fÃ dsÃ fewÃ   After db connection I've made some:  $connection-&gt;set_charset("utf8_general_ci");   Someone can help me with this? Thank you everyone!!
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.
In $ \triangle ABC$ show that $ 1 \lt \cos A + \cos B + \cos C \le \frac 32$ Limit of the geometric sequence $\{r^n\}$, with $|r| < 1$, is $0$? Prove that the $\lim_{n\to \infty} r^n = 0$ for $|r|\lt 1$.   I can't think of a sequence to compare this to that'll work.  L'Hopital's rule doesn't apply.  I know there's some simple way of doing this, but it just isn't coming to me. :( Are security.ubuntu.com updates eventually merged into normal updates? Upon my observation, seems new packages will first appear in security.ubuntu.com, but if you upgrade later, they will appear in XX.archive.ubuntu.com (depends on your config),  Was that true ? I am making a regex expression in which I only want to match wrong tags like: &lt;p&gt; *some text here, some other tags may be here as well but no ending 'p' tag* &lt;/p&gt;   &lt;P&gt;Affectionately Inscribed &lt;/P&gt;&lt;P&gt;TO &lt;/P&gt;&lt;P&gt;HENRY BULLAR, &lt;/P&gt;&lt;P&gt;(of the western circuit)&lt;P&gt;PREFACE&lt;/P&gt;   In the above same text I want to get the result as  &lt;P&gt;(of the western circuit)&lt;P&gt; and nothing else should be captured. I'm using this but its not working:  &lt;P&gt;[^\(&lt;/P&gt;\)]*&lt;P&gt;   Please help. Copying data over with rsync causes size discrepancies Why is $L^1(\mathbb{R}^n) \cap L^2(\mathbb{R}^n)$ dense in $ L^2(\mathbb{R}^n)$? "ping: unknown host google.com" but IPs works fine Time traveler asks archaeologist for help in transporting a girl from dinosaur Earth to present day Many decades ago, I read a short story about a time traveler who asks an archaeologist for help.  He convinces the archaeologist that he can time travel by bringing him back a freshly killed dinosaur (small one.)  The time traveler needs help because when traveling back in time to the age of the dinosaurs he met a girl and wants to transport her back to the present.  However only one person can travel in time at a time so he needs the archaeologist at the other end to wait for the girl.  The archaeologist agrees to help.  Unfortunately after the traveler goes back he and the girl find themselves in the middle of a battle between aliens on Earth.  They are chased by a dinosaur and never make it back to the present.  The archaeologist meanwhile is digging for evidence that the traveler went back in time and the story or my recollection of it ends with that. Tags in spoilers are always visible, even if you don't put your mouse on the spoiler (on  for example). See the screenshot:      Looks a bit strange on this site too:        that needs ! How to remove zsh alias? subequations and array in braces How to find continued fraction of pi I have always been amazed by the continued fractions for $\pi$. For example some continued fractions for pi are:  $\pi=[3:7,15,1,292,.....]$ and many others given .  Similarly some nice continued fractions for $e$ and it's derivatives are given .I have tried to prove that the are indeed the continued fractions but did not get very far.If any one can can help it would be great(especially if there is some easy way to get continued fraction of derivatives of e from the original continued fraction of e).Here derivatives of e I mean $\sqrt e,\frac{e-1}{e+1} $ etc. Vertical alignment in tabularx X column type I'd like to create a new column type which works exactly like a X column from tabularx but that also has the text vertically centered. I tried with the newcolumntype command but I can't figure out where to put the second column type? Example:  \newcolumntype{n}{&gt;{\centering\arraybackslash}X}   Where should I put the mto specify that the cells content should be vertically centered? Can not unlock my Android device as have no internet connection? I have an Android device which is running Android 4.0.3 (or something like that).  My little brother decided to try and guess my lock screen pattern the other day, and ended up locking me out.   I have since been unable to log back in to the tablet using my Google Account details. I provided the correct login details, however it says they are incorrect. Could this be connected to the fact I have no internet connection?  I have no internet connection as the device is WiFi only, and the WiFi is currently turned off. I cannot turn it on, as I am locked out.  How can I log back into my tablet without wiping the user data? In an Econometrics - Time Series textbook (Hamilton), I saw the claim, without proof: Consider the sequence $ \psi_j $, then, for $ x &gt; j $, $ \frac1j &gt; \frac1x $, and therefore: $$  \frac1j &gt; \int_{j}^{j+1} \frac1x dx $$ for $x$ &gt; $j$. When I plug in numbers for $j$, I see that this is indeed satisfied. But I'd like to know the intuition behind this or a proof. What are the shortcomings of the Mean Absolute Percentage Error (MAPE)? The  () is a common accuracy or error measure for time series or other predictions,  $$ \text{MAPE} = \frac{100}{n}\sum_{t=1}^n\frac{|A_t-F_t|}{A_t}\%,$$  where $A_t$ are actuals and $F_t$ corresponding forecasts or predictions.  The MAPE is a percentage, so we can easily compare it between series, and people can easily understand and interpret percentages.  However, I hear that the MAPE has drawbacks. I'd like to understand these drawbacks better so I can make an informed decision about whether to use the MAPE or some alternative like the MSE (), the MAE () or the MASE (). "Closed" form for $\sum \frac{1}{n^n}$ Earlier today, I was talking with my friend about some "cool" infinite series and the value they converge to like the Basel problem, Madhava-Leibniz formula for $\pi/4, \log 2$ and similar alternating series etc.  One series that popped into our discussion was $\sum\limits_{n=1}^{\infty} \frac{1}{n^n}$.  Proving the convergence of this series is trivial but finding the value to which converges has defied me so far. Mathematica says this series converges to $\approx 1.29129$.  I tried Googling about this series and found very little information about this series (which is actually surprising since the series looks cool enough to arise in some context).  We were joking that it should have something to do with $\pi,e,\phi,\gamma$ or at the least it must be a transcendental number :-).  My questions are:   What does this series converge to? Does this series arise in any context and are there interesting trivia to be known about this series?   I am actually slightly puzzled that I have not been able to find much about this series on the Internet. (At least my Google search did not yield any interesting results). Determine a user's timezone Is there a standard way for a web server to be able to determine a user's timezone within a web page?   Perhaps from an HTTP header or part of the user-agent string? Windows update doesn't progress beyond 0 KB 0% I have Windows&nbsp;7 64-bit and the  isn't working properly. What can I do? Clone Method not working I am trying to Clone a lead when certain condition is arrived using before trigger but i am not able to see cloned record.   for( Lead ld : Trigger.new ) {                          if(ld.Integration_Source__c == 'Hubspot' &amp;&amp; Trigger.isUpdate){         Lead LeadBeforeUpd = Trigger.oldMap.get( ld.Id );         if(ld.Program__c != LeadBeforeUpd.Program__c ){            Lead ClonedLead = new Lead();            ClonedLead = LeadBeforeUpd.clone(false, false, false, false);         }     }  }