I have a problem on reading Arabic language, when I read arabic text it displayed as a question marks like that  ���� ����   Although my php page encoding as Utf8.  And all the table in my database collation Utf8_general_ci.  What should I do ?!!
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.
If I go to pickpocket a person who's recently caught me, I get an error saying I can't do it because they've already caught me.  How long does this last?  Is it indefinite, or will they "forget" after a certain amount of time? What does 's=.*/==' do in sed? I saw sed 's=.*/==' in context of sh script and I'm puzzled. I could not find in sed manual or web search (for sed s=) how s is used, not s///. Apart from s I see only one potential command here = (Print the current input line number), but in such case what the rest is doing...   Running the command in shell produces same output as input for e.g echo 'jkfdsa=335r34',  whereas echo 'jkfdsa=335r34' | sed 's/=.*/==/' does replacement as per manual. Also slightly modifying command to e.g. echo 'jkfdsa=3' | sed 's798=.*/==/' gives sed: -e expression #1, char 11: unterminated 's' command, so original should have some correct meaning. What is it? How do I start Nautilus as root? I've got a problem with Nautilus in Ubuntu 12.04 LTS.  When I run the command gksu nautilus /, the password ask box appears and I type my super-user password, then the password box disappears and Nautilus is not opened.  When I try to open Nautilus as a normal user in with the command nautilus, the folder is opened.  When I try in terminal   $ sudo nautilus   I got the following error  $ sudo nautilus /  ** (nautilus:8523): WARNING **: Command line `dbus-launch --autolaunch=2c8ce9b7da2257c2609b749700000007 --binary-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed.\n Could not parse arguments: Cannot open display:   How can I fix this error? What happens to Red Skull after Thanos gets the Soul Stone? Prove that ${\sqrt {n} }^{\sqrt {n+1}} > {\sqrt {n+1}}^{\sqrt {n}}$. During the beta of Windows 10 it was hard know what version you were running unless it had it posted to the desktop. Once that wasn't there - how do you tell what version / build you are running?   This will become more of an issue as Microsoft starts releasing more builds with the new update mechanism. I'm training a neural network and the training loss decreases, but the validation loss doesn't, or it decreases much less than what I would expect, based on references or experiments with very similar architectures and data. How can I fix this?    As for question        to which this question is inspired, the question is intentionally left general so that other questions about how to reduce the generalization error of a neural network down to a level which has been proved to be attainable, can be closed as duplicates of this one.  See also dedicated thread on Meta: I'm working on a Ubuntu system, and my client has completely forgotten his administrative password. He doesn't even remember entering one; however it is there.  I've tried the suggestions on the website, and I have been unsuccessful in deleting the password so that I can download applets required for running some files. Is there a solution? A bit of background, I am doing research in atmospheric physics and detection systems  Recently, I received a paper submission back with revisions suggested by a couple of reviewers.  For the most part, the revisions were definitely constructive, justified and most importantly, helpful.    That is, except on one particular crucial aspect of the paper where both reviewers made suggestions, that they labelled as critical for the paper's success.  However, the suggestions were directly opposite.  i.e. Both suggestions are mutually exclusive, but equally feasible.    What is an effective means to address this conflict?  I have spoken to my academic supervisor and he is not sure how to proceed either and we have double checked and both suggested paths are feasible. Are there areas of mathematics (current or future) that cannot be formalized in set theory? I often read that ZFC can formalize "most" of everyday mathematics, but I could never find an example which it cannot. The closest I got is differential geometry (DF), where some article mentions that the translation from concepts of DF into set theory would render it almost "meaningless", in the sense that any intuitions one could have would be lost in the translation. So, if I didn't misunderstand, at least in theory, the translation could be done, so that a future AI machine could prove theorems of differential geometry using set theory. On the other hand, the Stanford Encyclopedia of  Philosophy states that "all of mathematics can be reduced to a formal system of set theory"().   So, the questions are:    Is there any current area of mathematics that could be not formalized within set theory? If so, which ones? and  Is there any reason to think that every math of the future will be always formalizable in set theory? any references to read on the subject are welcomed!   Clarification: by set theory I am not restricting to ZFC, but to any flavor of it, including all additional axioms you want (about large cardinals or any kind) Why is "improve this question / answer" shown to anonymous users instead of "edit"? If I browse a site as an anonymous user, instead of "edit" I see: "improve this question / answer".        I don't get it, are anonymous users considered to be kinda dumb and don't understand "edit"?  Why to reword this action? Why is the MacTeX distribution so large? Is there anything smaller for OS X? I would like to know how to install LaTeX on Mac 10.6 or higher.  But the MacTeX is some 1.28 GB file! Is there a smaller distribution I could install?  What exactly is TeX Live? Re-enabling backspace as "go back" in recent Chrome Since start of this summer, I think that Google removed the option of using backspace for returning to previous page or so.   I was wondering, if there exist any chance, of undo-ing this thing? Is there such thing that would help me, such as downgrading Chrome or using any additional add-ons or something such as this for getting this glorious function back?  It's nearly impossible for me to forget this shortcut (as old habits die hard, lol) and keep pressing it and later on using the mouse to go back. yesterday I installed Ubuntu 13.10, and since I rebooted my laptop, there is a user account called Light Display Manager as available option on my login screen.  A password is needed for login, but I don't know it, although I tried some.  Because of some answers I modified with sudo power one file as follows (added lightdm):  cat /etc/lightdm/users.conf  # # User accounts configuration # # NOTE: If you have AccountsService installed on your system, then LightDM will # use this instead and these settings will be ignored # # minimum-uid = Minimum UID required to be shown in greeter # hidden-users = Users that are not shown to the user # hidden-shells = Shells that indicate a user cannot login # [UserAccounts] minimum-uid=500 hidden-users=nobody nobody4 noaccess lightdm hidden-shells=/bin/false /usr/sbin/nologin   → But it didn't changed anything!  What is this? Why is this there? How can I remove (if it's unnecessary)? Thanks in advance for an answer! "Requires 50 reputation" to comment on deleted posts So I recently saw add comment (requires 50 reputation) on a deleted answer. After looking around a bit, it seems to be on all deleted posts now (only deleted posts, normal posts still say just add comment).  I'm sure it wasn't there before (I think it just said add comment (unclickable) or possible nothing).  It is also on , presumably the root cause is the same.  And yes, I do have more than 50 reputation (in case anyone was wondering).  Just to clarify, requires 50 reputation obviously shouldn't be there for users with 50 or more reputation. Choices:   Display nothing Unclickable add comment - probably not ideal Unclickable add comment (disabled for deleted posts) or something along those lines   FYI - You may be somewhat confused right about now if you can't  yet. $\lim_{h\to 0}\int \frac{f(x+h)-f(x)}{h}\,\mathrm{d}x = f(b)-f(a)$ Creating symbol with size and color based on two variables in ArcMap? I'm trying to use biblatex and when I compile my document I get an error like the following:  Windows  data source C:\Users\&lt;username&gt;\AppData\Local\Temp\par-5061756c\ cache-890efc00b3ca6b775c7d44a325c1349fb2a3a3bd\inc\lib/Biber/LaTeX/recode_data.xml not found in .   Mac  data source /var/folders/v2/rld0ls7d2935gkvqv5hfr1x00000gn/T/par-616c616e/ cache-cdd483146f82a9655ce063f848d5139480fbf872/inc/lib/Biber/LaTeX/recode_data.xml not found in .   Linux  data source /tmp/par-6963617269756d/cache-f37ab610b7d79b2720a8ee3732849c6821705520 /inc/lib/Biber/LaTeX/recode_data.xml not found in . C++ pointer address issue Do you have any useful awk and grep scripts for parsing apache logs? I can use log analyzers, but often I need to parse recent web logs to see what's happening at the moment.   I sometimes do things like to figure out top 10 ips that request a certain file  cat foo.log | grep request_to_file_foo | awk '{print $1}' |  sort -n | uniq -c | sort -rn | head   What do you have in your toolbox?