I am trying to automate an application, where it is as like google engine. When user enters "société" (Accented character), it gives details which has either "société"(Accented) or "societe" (English) in it.  So my job is to validate is details contains given keyword.  I dont have problem on comparing accented characters. EX: "société" = "société". But the case "société" == "societe" fails. Python code below:   &gt;&gt;&gt; "société".find("societe")  -1 #Fail  &gt;&gt;&gt; "société".find("société")  0  #Success  &gt;&gt;&gt;    So how to match equivalent english word in Accented characters.   Any help will be highly apreciated. Thanks
I have a Unicode string in Python, and I would like to remove all the accents (diacritics). I found on the web an elegant way to do this (in Java):  convert the Unicode string to its long normalized form (with a separate character for letters and diacritics) remove all the characters whose Unicode type is &quot;diacritic&quot;.  Do I need to install a library such as pyICU or is this possible with just the Python standard library?  And what about python 3? Important note: I would like to avoid code with an explicit mapping from accented characters to their non-accented counterpart.
Evaluate $\lim\limits_{x \to a} \frac{x^m-a^m} {x-a}$ Suppose that a box contains 10 red balls, 20 green balls, and 30 blue balls.   Suppose also that balls are drawn from the box one at a time at random.  What is the probability that all the red balls are drawn before the blue or green balls are themselves exhausted. What is the probability that as the last red ball is drawn, there remains at least one blue and one green left in the box.  The answer I was given is $\dfrac{7}{12}$ and a general equation is: $$ \dfrac{b g}{1-b}+\dfrac{b g}{1-g} $$ where $$ g=\dfrac{20}{60},b=\dfrac{30}{60} $$ but why? How to configure axis on pgfplots? How to configure axis on pgfplots? Similar for this.  \documentclass{article} \usepackage{tikz,pgfplots} \pagestyle{empty} \begin{document} \begin{tikzpicture}[&gt;=latex] %x axis \draw[-&gt;] (-5,0) -- (5,0) node[below] {$x$}; \foreach \x in {-4,...,-1,1,2,...,4} \draw[shift={(\x,0)}] (0pt,2pt) -- (0pt,-2pt) node[below] {\footnotesize $\x$}; %y axis \draw[-&gt;] (0,-5) -- (0,5) node[left] {$y$}; \foreach \y in {-4,...,-1,1,2,...,4} \draw[shift={(0,\y)}] (2pt,0pt) -- (-2pt,0pt) node[left] {\footnotesize $\y$}; \node[below left] at (0,0) {\footnotesize $0$}; \end{tikzpicture} \end{document} What should I do if I want to be able to run a given program regardless of my current directory? Should I create a symbolic link to the program in the /bin folder? How do I disable overlay scrollbars? It looks like Ubuntu 11.04 will come with  by default. I do like them, but I don't like the current mix of scrollbar types as many applications don't yet use those overlay scrollbars.  Is there a way to disable overlay scrollbars (without removing the overlay-scrollbar package)? Make back/forward work on paginated lists How to grep for text in a file and display the paragraph that has the text? Below is the text in the file:  Pseudo name=Apple Code=42B state=fault  Pseudo name=Prance Code=43B state=good   I need to grep for "42B" and get the output from the above text like:   Pseudo name=Apple Code=42B state=fault   Does anyone have idea on how to achieve this using grep/awk/sed? How to not have an equation in the first line using the align environment? how to crop image in to pieces programmatically Predicting the number of decimal digits needed to express a rational number How to pass an argument to event handler in tkinter? Which one is correct, or are both of them fine?    "It would take the average person 10 days to read this novel"    Or    "It would take an average person 10 days to read this novel" I've just installed a new SSD replacing an HDD in my old (late 2008) iMac. When I switched it on all I got on screen was a question mark.   On the advice of my son I tried cmdR during switch on with no result.   I then tried alt which at least got me a cursor on the screen, but nothing else. Any suggestions? I've got everything backed up on an external Hard Drive, by the way. Delete Everything(the rest of the text) after a specific string As the title of the Question states, I want to know what are the tools available for Ubuntu which would allow me to take screenshots of "Scrolling Windows" ie; tall webpages, tall nautilus window which contains lots of files and folders etc. as a single image file.  For the sake of clarity, I have already seen . However, I am specifically looking for tools to capture Scrolling Windows.  As an example, my personal favorite for Microsoft Windows is . It's light on resources and helps me take beautiful screenshots. Is there anything close to it available for Ubuntu? Is the product of symmetric positive semidefinite matrices positive definite? I see on Wikipedia that the product of two commuting symmetric positive definite matrices is also positive definite. Does the same result hold for the product of two positive semidefinite matrices?  My proof of the positive definite case falls apart for the semidefinite case because of the possibility of division by zero... terminator: permission denied for sudo Recently, my answers are showing at the bottom of the page, even though I got good scores on those answers.       How do I change this back? How to prove whether a matrix has rank $1$ If $u$ $∈ \mathbb R^{m \times 1}$ and $v ∈ \mathbb R^{n \times 1}$ how do you show that the $(m \times  n)$ matrix $uv^T$ has rank $1$? Would providing an example be sufficient to prove it? What sort of cheat sheets for a new DM lead to a better flowing 5e game of Dungeons and Dragons? The question is, what elements on a DM screen are essential? I'm new at playing and DMing, altough a lot of experience watching games, just got a group to play with now. Started with the starter set in 5E and the Lost Mine of Phandelver adventure, however I've noticed the game can come to a stop when checking the rules or how to do something, while getting the books and stuff like that. So I thought to make a DM screen with some cheat sheets, of the most usual things new players, and new DM's have doubts on, and how to make the game flow well without long rule-checking breaks. What are the essential things to have on that screen? So far this is what I found  but not sure if it has all I need or so much stuff that'll also make the game stop a lot while cheking it out.