I am trying to translate date/time into french. below is my code but i have a problem when getting the character "à", what php gives me is "Ã" character.  setlocale(LC_TIME, "");  setlocale(LC_TIME, 'french'); echo 'locale - ' . setlocale(LC_TIME, '0'); echo ' : month - ' . strftime('Le %d %B %Y') . 'à'; //Le 07 Octobre 2014 à
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.
Picking a $\delta$ for a convenient $\varepsilon$? I'm studying some proofs in a book from the library  and  unlike my own book, it doesn't prove by showing that a certain expression is striclty less than $\varepsilon$ (given an  appropiate $\delta$ and $\vert x-a\vert &lt; \delta$, etc). Instead, it shows that it's less than some expression involving $\varepsilon$.   E.g. Given $\varepsilon &gt; 0$, we can pick a $\delta &gt; 0$ so $|f(x) - g(a)| &lt;  \text{insert stuff} &lt; k \cdot \varepsilon$ when $|x-a| &lt; \delta$, and thus $f(x) - g(a) \to 0 $ when $x \rightarrow a$.  How does this make sense formally? (Intuitively, I am convinced.)  I don't have much experience with $\varepsilon$-$\delta$ -proofs, so I might be missing something obvious. How do I escape a backtick ` within in-line code in Markdown? How can I change the field names (not the alias) in ArcGIS 10.2? I already found this page on ArcGIS support: &quot;&quot; but there is is not &quot;Defense Mapping&quot; on Customized Mode Categories In my ArcCatalog! Without access to Defense Mapping, how can I change the field names? How do I properly install a system app given its .apk? I removed a system app (com.android.mms) and I have the .apk needed to restore it, however it won't install through the standard channels (running the .apk gives me "application not installed"). What's the proper way to install a system app's .apk? How to solve the equation $\phi(n) = k$? Let $\phi(n) $ is the numbers of number that are relatively prime to n.   Then, how could we solve the equation $\phi(n) = k, k &gt; 0?$   For example:    $\phi(n) = 8 $  I can use computer program to check all numbers that are relatively prime to $n$, but I think there must be an easier way to approach this problem.    Base on this formula: $$\prod_{i=0}^{k} p_{i}a^{a_i} $$ The only thing I can see is n must not have a prime factor > 9, otherwise $\phi(n) &gt; 8 $. I really don't know where to start :( ? A hint would be greatly appreciated. How to assign a SSL Certificate to IIS7 Site from Command Prompt Can you advise me whether it is possible or not to assign a SSL Certificate to a website in IIS7 using the APPCMD application?  I am familiar with the command to set the HTTPS Binding  appcmd set site /site.name:"A Site" /+bindings.[protocol='https',bindingInformation='*:443:www.mysite.com']   and how to obtain current mappings   %windir%\system32\inetsrv\Appcmd   but can not seem to find any way to map a site to a certificate (say the certificates hash for example) I ran dolphin like this:  dolphin . &amp;   I see messages in the console like these:  QPixmap::scaled: Pixmap is a null pixmap   How can I keep the console clean or silent? Guidelines for customizing biblatex styles Not sure if the title is specific enough, so here we go:  I crashed my Windows pc, and now I want to install Ubuntu on that computer. I'm currently using my Mac, as it is the only operable computer I have left. I have downloaded the .iso. I guess my question is; How do I go about installing Ubuntu on my crashed computer from the external harddrive? I've used Ubuntu before, but I used to install it from a CD-rom. I tried reading the instructions, but couldn't really understand them. Please help  Edit: As Tom mentioned, I only want to install Ubuntu on the (formerly) Windows machine.  Anyways, thanks for the quick responses, I think I've got it from here. Cheers I have installed nodeJS on Ubuntu with following code   sudo apt-get install nodejs   Since I am a new user for ubuntu I also ran this code too  sudo apt-get install npm   Now when I type    nodejs --version   It shows   v0.6.19   I checked and saw latest nodeJS version is 0.10.26   How can I update my version of nodeJS to 0.10.26?  I tried with    sudo apt-get install &lt;packagename&gt;  sudo apt-get install --only-upgrade &lt;packagename&gt;   but no luck. Can anybody please help me to prove this:  Let $p$ be greater than or equal to $1$. Show that for the space $\ell_p=\{(u_n):\sum_{n=1}^\infty |u_n|^p&lt;\infty\}$ of all $p$-summable sequences (with norm $||u||_p=\sqrt[p]{\sum_{n=1}^\infty |u_n|^p}\ )$, there is an inner product $&lt;\_\,|\,\_&gt; $ s.t. $||u||^2=&lt;u\,|\,u&gt;$ if and only if $p=2$. I have a query where I chain two columns. Why does the alias not work in the GROUP BY clause but in ORDER BY clause, it does work? How can I write the select correctly?  SELECT   KOS_VER_ID        AS "Vertrag"   , WHR_ISO_3_CODE  AS "Waehrung"   , KOS_KOA_ST_KZN || '  -  ' || ST_LANGBEZ_EN as "Kostenart"   , SUM (KOS_BETRAG) AS "Summe pro KOA" FROM   KOSTEN   , WAEHRUNG   , SCHLUESSELTABELLE WHERE    KOSTEN.KOS_VERHI_WHR_ID = WAEHRUNG.WHR_ISO_ID   AND KOSTEN.KOS_KOA_ST_KZN = SCHLUESSELTABELLE.ST_ID   AND KOS_VER_ID in (2509, 2510, 2511) GROUP BY   KOS_VER_ID   , WHR_ISO_3_CODE   , KOS_KOA_ST_KZN || '  -  ' || ST_LANGBEZ_EN ORDER BY   "Vertrag"   , "Kostenart" ; I have searched this for hours but still no luck, obviously doing something wrong.  The journal (Risk Analysis) wants "Reference style is based on the National Library of Medicine (NLM) style guide. In-text citations are numbered, superscripted and in parentheses, and the reference list is numbered in order of appearance within the manuscript. Footnotes are superscripted without parentheses".  Could someone please suggest an appropriate .bst file to use that will produce this? Thanks, J TOC entries and labels for included PDF pages I am embedding full pages from another PDF document (using the pdfpages package), but I would like to be able to declare my own section headings before each embedded document (for e.g. hyperlinking / TOC purposes). pdfpages has an experimental feature which lets me do this, but the problem is that I want to put all of these embedded documents inside a section, so I need to insert a section heading and a subsection heading on the first document I embed. Unfortunately pdfpages doesn't seem to be able to do this. Is there a way for me to do this?  Edit: Thank you for the suggestions. I am also in need of something similar for general labels — at the moment I am abusing the addtolist option of \includePDF but the objects I'm labelling aren't really figures or tables. Removing nodes from graphs such that one is dependent on other - ZIO $2010$, P$1$ Greetings Community! The above problem you see is a combinatorics problem I could not solve. :( This problem is from ZIO $2010$, P$1$.     Here is what I did: Observe that every graph can be divided into "sub-groups" which may help in solving. We first remove the empty set. Then the singleton set. Consider the bigger but smaller than the sub-parts example:    The singleton sets are $\{4,5,6\}$ which are at the least position in the graph.   The dual sets are $\{2,4\}, \{3,5\}, \{3,6\}$, the bottom - two portions in the graph. The triplet sets are $\{2,4,5\}, \{4,5,6\}$ which we may manually count but for the bigger graphs in the sub-part, this may prove to be difficult and this is where I am stuck.   Any help would be appreciated. Thanks. Best way to select a subset of items in a long list One of our clients wants us to build a web application to share information about the magazines he publishes. Each edition of a magazine contains a variable amount of advertisers. These advertisers come from a central pool of advertisers. This pool contains (at the moment) about 150 advertisers. Each edition of a magazine contains a subset (about 70-80) of these advertisers.  Our client wants us to come up with a way for him to add 70-80 advertisers from this list of 150 to an edition of a magazine. It needs to be as fast as possible, as easy as possible and as intuitive as possible.  What would be an ideal solution here? I was thinking about something in the lines of the image below.   List of available advertisers. List of selected advertisers. Advertisers have a delete button. Textbox with auto-suggest for advertisers in the list on the left. &lt;Enter> removes the advertiser from the left list and adds it to the right one. Textbox gets cleared and remains focus.   My colleagues suggested drag-and-drop or just one list with a checkbox for each advertiser, but those approaches force the user to do a lot of searching and clicking. With my approach the user can just keep on typing.  Any other suggestions for this situation? Is there any point of using "return !0" in javascript? How can I double the newlines in an output stream Tutorial on how to back up my full Ubuntu desktop and files? I would like to be able to back up all my settings and files to a dedicated external hard drive in a way that makes (1) all the backup files accessible and (2) would allow me to restore my system is there is a crash.   Is there an app for this or any pointers?  Thank so much. Is there any significant difference between Nikon and Canon?