Trying to finalize this project, yet the Cyrillic characters are not appearing correct on the final version uploaded.  What it is meant to look like -   &lt;meta http-equiv='Content-Type' content='text/html; charset=UTF-8'&gt;   What it looks like -     No my question is not the duplicate of another question, as I am not establishing a server nor working with any databases or tables. Im a novice.
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.
How do I get my Python program to sleep for 50 milliseconds? How to create a filter in Gmail to identify messages forwarded from Zimbra? Setting CSS pseudo-class rules from JavaScript What is the physical meaning of commutators in quantum mechanics? This is a question I've been asked several times by students and I tend to have a hard time phrasing it in terms they can understand. This is a natural question to ask and it is not usually well covered in textbooks, so I would like to know of various perspectives and explanations that I can use when teaching.  The question comes up naturally in what is usually students' second course in quantum physics / quantum mechanics. At that stage one is fairly comfortable with the concept of wavefunctions and with the Schrödinger equation, and has had some limited exposure to operators. One common case, for example, is to explain that some operators commute and that this means the corresponding observables are 'compatible' and that there exists a mutual eigenbasis; the commutation relation is usually expressed as $[A,B]=0$ but no more is said about that object.  This naturally leaves students wondering     what is, exactly, the physical significance of the object $[A,B]$ itself?   and this is not an easy question. I would like answers to address this directly, ideally at a variety of levels of abstraction and required background. Note also that I'm much more interested in the object $[A,B]$ itself than what the consequences and interpretations are when it is zero, as those are far easier and explored in much more depth in most resources.    One reason this is a hard question (and that commutators are such confusing objects for students) is that they serve a variety of purposes, with only thin connecting threads between them (at least as seen from the bottom-up perspective).   Commutation relations are usually expressed in the form $[A,B]=0$ even though, a priori, there appears to be little motivation for the introduction of such terminology. A lot of stock is placed behind the canonical commutation relation $[x,p]=i \hbar$, though it is not always clear what it means.  (In my view, the fundamental principle that this encodes is essentially de Broglie's relation $\lambda=h/p$; this is made rigorous by the  but that's quite a bit to expect a student to grasp at a first go.) From this there is a natural extension to the Heisenberg Uncertainty Principle, which in its general form includes a commutator (and an anticommutator, to make things worse). Canonically-conjugate pairs of observables are often introduced, and this is often aided by observations on commutators. (On the other hand, the energy-time and angle-angular momentum conjugacy relations cannot be expressed in terms of commutators, making things even fuzzier.) Commutators are used very frequently, for example, when studying the angular momentum algebra of quantum mechanics. It is clear they play a big role in encoding symmetries in quantum mechanics but it is hardly made clear how and why, and particularly why the combination $AB-BA$ should be important for symmetry considerations.  This becomes even more important in more rigorous treatments of quantum mechanics, where the specifics of the Hilbert space become less important and the algebra of observable operators takes centre stage. The commutator is the central operation of that algebra, but again it's not very clear why that combination should be special. An analogy is occasionally made to the Poisson brackets of hamiltonian mechanics, but this hardly helps - Poisson brackets are equally mysterious. This also ties the commutator in with time evolution, both on the classical side and via the Heisenberg equation of motion.   I can't think of any more at the moment but they are a huge number of opposing directions which can make everything very confusing, and there is rarely a uniting thread. So: what are commutators, exactly, and why are they so important? Subscribing to questions and comments that don't belong to you There has been some discussion about getting notified on comments to questions or answers that don't belong to you, and the long-standing wish to be able to keep track of new answers or developments in questions asked by other people.  Previous discussion in regards to subscribing to questions:                  (very similar to this one)      In regards to subscribing to comments:                    The general feeling - at least here on meta - seems to be against broadening the notification rules, out of fears of useless notifications to flood users' inboxes, turning SO into more of a discussion forum than it should be, etc.   Here's a suggestion that would keep the user 100% in control what they get notified about, not generate any notifications by default, and require only minimal modifications to the User Interface.  Each question and each comment area would get an envelope symbol.    it is inactive (=white) by default.  When those envelopes are hovered over, the tooltip says click to subscribe or something.  When clicked on, the envelope lights up in green or some other colour (but different from the actual notification envelope's orange to avoid confusion.) You are then subscribed to any updates to that question or comment thread.    For each subscription, you receive notifications in the "responses" tab, as if you were the owner of the comment or question.     To unsubscribe from a question or comment thread, you open the page, and click the green envelope. It turns back white, and the notifications disappear from your responses tab (if technically possible - otherwise, there just won't be any new ones added.)    No further functionality, like managing subscriptions or anything, is necessary IMO. If the flood of notifications from a subscribed question starts to annoy you, you just open it and unclick the envelope. Done.   It would make it possible to leave a comment to a newbie's question and make sure their answer reaches you even if they don't know they need to address you using @username You could subscribe to those "oh, I'd like to know the answer to that" questions and receive active notification, instead of them getting forgotten in your favourites list You could subscribe to discussions you are interested in the outcome of, but don't want to participate in. It would (in my opinion) sort out a number of woes aired by many users in a good way, without adding annoyances to those who like the system just fine the way it is. It would not require a change in the visible layout. As far as I can see, the space the envelope would need to be is empty everywhere.   I don't know SO under the hood of course, but technically, the system would be doing what it's doing already, notify question owners of updates - just that the circle of internal "owners" would grow. Based on the question , I got curious. Is there a guide or resource that describes how the price of a ticket is determined?  When you search you often see curious effects like cheaper tickets for a flight from A to B with a layover compared to a direct flight. This seems counter-intuitive from an outsider's perspective since you fly twice. Also one way tickets more expensive than 2 ways.  It can be a short set of rules. Something that helps someone to get started with finding good prices. I know these can be very complex and they probably change over time and over airline interests but there is probably a simplified set of rules that can be enunciated. Using MSSQL2005, can I truncate a table with a foreign key constraint if I first truncate the child table (the table with the primary key of the FK relationship)?  I know that I can either   Use a DELETE without a where clause and then RESEED the identity (or) Remove the FK, truncate the table, and recreate the FK.   I thought that as long as I truncated the child table before the parent, I'd be okay without doing either of the options above, but I'm getting this error:     Cannot truncate table 'TableName' because it is being referenced by a FOREIGN KEY constraint. How can I make a copy of a material? How do I remove a file I accidentally created named $file? I was working on a shell script and I accidentally created a file with the variable as its name. Now I have $file in my ls output, and cannot remove it.  What can I do? Tasks in custom Environment I need to wrap a tasks environment inside a custom \NewEnviron. Apparently, tasks chokes on code besides its \task or \item due to the , presumably causing it to do so on \BODY. Any way to get around this? Exact error given is "Something's wrong--perhaps a missing \item", as per:  \documentclass[a4paper]{book} \usepackage{environ} \usepackage[more]{tasks}  \NewTasks[style=enumerate,counter-format=tsk[1]),label-width=2ex]{mytaskenum}[\item](3) \NewEnviron{mytaskenv}[1][Exercises]{   % Misc. stuff to precede the tasks env here   \begin{mytaskenum}   \BODY   \end{mytaskenum}   % Misc. stuff to follow }{}  \begin{document}  \begin{mytaskenv}   \item item 1   \item item 2   \item item 3 \end{mytaskenv}  \end{document} How do I get the first element from an IEnumerable in .net? I often want to grab the first element of an IEnumerable&lt;T&gt; in .net, and I haven't found a nice way to do it.  The best I've come up with is:  foreach(Elem e in enumerable) {   // do something with e   break; }   Yuck!  So, is there a nice way to do this? Lost credit card replaced with new card and new numbers. Credit score affected? I recently left my credit card at a bar so I reported it as lost to my bank, and my bank said I will get a replacement within a few days. For what it's worth, I picked my card up from the bar a few days later and made sure to cut it up.  The new credit card has arrived and has new numbers. Will this negatively affect my credit score?  VISA, Chase Bank, USA. I'm in UV Editor and trying to snap the 2d cursor to the vertex ( while the vertices are visible). I turn ON snap and set it to 'vertex mode' , but the 2d cursor won't snap to any visible vertex at all. I can only make it snap to the grid (increment node). Is it a bug ? or did i miss something here ? i'm using 2.8. Why are z-values replaced with zero after in_memory use in Python? Place each foot on a scale: can you add the two to find your weight? I frequent a blog from a British psychologist, and every Friday he likes to pose an interesting puzzle or riddle. The Monday after that he posts the answer. They're good fun, and IANAP but  made my it-might-not-be-quite-as-simple-as-that detector go off.  My question boils down to this: let's say I have two identical scales, and I stand on the scales with one foot on each scale. The scales read W1 and W2. Does my weight equal W1 + W2? I have 3 old 3.5" internal hard drives sitting gathering dust at the moment. 2 are SATA, and one IDE. I want to either start putting them to use, or dispose of them to clear up some space.  What is the best approach towards disposing of the drives in terms of thoroughly cleaning the contents before throwing away or selling? Are there any recommendations for good software to use to do this?   Are there any 100% successful methods which result in having a usable drive at the end? Can Europeans reset their "time in Canada" clock by visiting the US? If a Swiss citizen comes to Canada and stays for 6 months, can they travel to USA for example, for a short period of time, and then return to Canada for another 6 months?  How long must they stay out of Canada before returning? Neatest proof that set of finite subsets is countable? I am looking for a beautiful way of showing the following basic result in elementary set theory:     If $A$ is a countable set then the set of finite subsets of $A$ is   countable.   I proved it as follows but my proof is somewhat fugly so I was wondering if there is a neat way of showing it:  Let $|A| \le \aleph_0$. If $A$ is finite then $P(A)$ is finite and hence countable. If $|A| = \aleph_0$ then there is a bijection $A \to \omega$ so that we may assume that we are talking about finite subsets of $\omega$ from now on. Define a map $\varphi: [A]^{&lt;\aleph_0} \to (0,1) \cap \mathbb Q$ as $B \mapsto \sum_{n \in \omega} \frac{\chi_B (n)}{2^n}$. Then $\varphi$ is injective hence the claim follows. (The proof of which is what is the core-fugly part of the proof and I omit it.). Ring homomorphism and characteristic Word to describe the way cattle and buffalo consume fodder?