How to Select UTF8(Persian) Characters From MySQL With Using PHP?
UTF-8 all the way through
the numer of partial function between two sets in combinatoric way $A$ and $B$ two sets. $|A|=k, |B|=n.$ I need to prove in a combinatoric way that the number of partial function from $A$ to $B$ is $(n+1)^k.$ I thing the number is $Σ(n^i),$ for $i=0$ to $k.$ but I have no idea how to show equality, and how to prove it in a combinatoric way.  If someone can show me the way or guide me that will be great!  thanks for helpers. I recently tried to change a bulb using an adaptor (converting from a E27 to B22 fitting). After switching on the light fitting the fuse had blown. After inspection it turns out the adapter is faulty and must have caused a short-circuit.  After removing the bulb and resetting the switch in the main fuse box, I am now unable to operate the switch on the wall to turn the fitting off (the switch physically won't click).   Is there something I can do to fix the problem?  Thanks, Find the sum of the series $\sum \frac{1}{n(n+1)(n+2)}$ I got this question in my maths paper     Test the condition for convergence of $$\sum_{n=1}^\infty \frac{1}{n(n+1)(n+2)}$$   and find the sum if it exists.   I managed to show that the series converges but I was unable to find the sum. Any help/hint will go a long way. Thank you. Comment flags are broken If I flag a comment now, it puts the dialog off the page:        It is only fixed by performing one of these actions:   Maximize window (if not already maximized) Restore window (if maximized)         I am running Windows and Firefox; also I tried Firefox in safe mode. I would be interested to see what testing was done on this beforehand - as this seems like a pretty glaring error. Please and thank you.    Inspired by the answer, the following CSS worked for me. It makes me sad to have to fix Stack Exchange CSS; I would figure this community over all others would get it right. Oh well.  aside {   transform: none !important; } Automatically set description list `labelwidth` based on widest label? How do I create a description list where the item text is automatically indented to the width of the widest label?  This is the same question as  but I would like the width of the widest label to be automatically calculated.  For example, I'd like the following output:    to be produced by the following input:  \documentclass{article} \usepackage{calc} \usepackage{enumitem} \usepackage{lipsum} \usepackage[margin=1em,papersize={4in,2.2in}]{geometry}  \newenvironment{mydescription}{%   \begin{description}[     leftmargin=!,     labelwidth=\magicgoeshere,     ]% }{%   \end{description}% }  \newcommand{\text}{long long long long long long long long long long   long long long long long long long long long long long long long   long long long long long long long text}  \begin{document} \begin{mydescription} \item[The longest label] text \item[Short] \text \end{mydescription} \hrule \begin{mydescription} \item[Medium label] text \item[Short] \text \end{mydescription} \end{document} Present perfect for past action with present effect If I seem tired, can I say: "I haven't slept last night"? If not, why have I been told that we use present perfect for actions that have present effects? I have a project where I have a few layers (State of Texas, cities, roads, etc.). They are all resaved and projected to NAD83 / UTM zone 14N EPSG: 26914. The project CRS is also NAD83 / UTM zone 14N EPSG: 26914 and on the fly projection is enabled. I added a text delimited file and cannot get them to line up. I checked the attribute table of the delimited file and the coordinates are correct. I cross-checked this with a point close to where a few of the points from the delimited file are and they are very close so in theory they should be lining up. I tried to save the delimited file and save it with the same projection and add the shp file back in and that did not work. Anyone have any ideas? I can't think of anything else to try. I am having an error compiling the following code with xelatex and lualatex:  ** WARNING ** "seac" character deprecated in Type 2 charstring. ** ERROR ** Type2 Charstring Parser: Parsing charstring failed: (status=-1, stack=5)  Output file removed.  \documentclass{article}  \usepackage{xunicode} \usepackage{fontspec}  \setmainfont[Mapping=tex-text,Ligatures={Common}, Numbers={OldStyle}]{IM FELL English PRO} \begin{document}  Buongiorno a tutti. Trallallà.  \end{document}   The error disappears when I omit the accented à. It also doesn't happen when I use other fonts.  Could you suggest any workaround?  Thank you, A This is a small exercise that I just can't seem to figure out. When I see it I'll probably go 'ahhh!', but so far I haven't made any progress.  I'd like to prove that any linear functional $\phi$ on $\ell^\infty$ that is positive, i.e. for any $(x_n) \in \ell^\infty$ such that $x_n \geq 0$ for all $n \in \mathbb{N}$ we have $\phi((x_n)) \geq 0$, is a bounded linear operator and has $\|\phi \| = \phi((1,1,...))$.  Nothing I have tried worked so far, so any hints would be appreciated, thanks! Can I travel to Kuwait on a visa with old passport number? I have a Kuwait visa, obtained from a hotel in Kuwait, with my old passport number. But as the validity of the present passport is expiring within 6 months, I got a new passport with a new passport number. Can I travel with the same visa or do I have to obtain a new visa with my new passport number? Hi is it possible to exclude traffic from a certain country in google analytics?  If yes, how do I do it? In the book "Jurassic Park" does the Lysine Contingency actually get explained? I was watching the movie recently and noticed that one of the characters (very) briefly mentions a safety they built into the system should any of the dinosaurs escape. They called it the Lysine Contingency saying that all the dinos have been genetically modified to depend heavily on lysine in their diet, so if any of them escape they wouldn't be able to survive without the food supplements that the park gives them.   Why doesn't the story end right there? Does the Michael Crichton book actually explain this in depth? K-Means clustering for mixed numeric and categorical data My data set contains a number of numeric attributes and one categorical. Say, NumericAttr1, NumericAttr2, ..., NumericAttrN, CategoricalAttr, where CategoricalAttr takes one of three possible values: CategoricalAttrValue1, CategoricalAttrValue2 or CategoricalAttrValue3. I'm using default . It works with numeric data only. So my question: is it correct to split the categorical attribute CategoricalAttr into three numeric (binary) variables, like IsCategoricalAttrValue1, IsCategoricalAttrValue2, IsCategoricalAttrValue3 ? Cancelled UK visa on entry Enable ADB and/or change USB connection mode on Galaxy S7 w/ broken screen Polynomial contrasts for regression I cannot understand the usage of polynomial contrasts in regression fitting. In particular, I am referring to an encoding used by R in order to express an interval variable (ordinal variable with equally spaced levels), described at .  In the example of , if I understood correctly, R fits a model for an interval variable, returning some coefficients which weights its linear, quadratic, or cubic trend. Hence, the fitted model should be:  $${\rm write} = 52.7870 + 14.2587X - 0.9680X^2 - 0.1554X^3,$$  where $X$ should take values $1$, $2$, $3$, or $4$ according to the different level of the interval variable.  Is this correct? And, if so, what was the purpose of polynomial contrasts? How are second order nonlinear ordinary differential equations solved? Overfull box and broken pagination with page that contains only section headings How do I locate all files that include specific word as part of name and end with specific extension? Focus existing terminal with `Ctrl-Alt-T` shortcut I tend to use the terminal a lot,  So I wondering if there is a way I can make Ctrl+Alt+T focus the existing terminal if there is one, otherwise create a new terminal?