If I have something like this:  a=['100','200','501','124','1234\n']   How can I remove that '\n' ?
What is the Python equivalent of Perl's chomp function, which removes the last character of a string if it is a newline?
prevent user creating a duplicate node title how to prevent user creating a duplicate node title for a content type?  I already try uniqueness module () but it's only list out the duplicate content title but not return any error message when user save the new content. Any suggestion module or code? :) How is arccos derived? Stupid question but I need to understand:  If $ \cos = \dfrac{\text{adjacent}}{\text{hypotenuse}} $  What is arcosine? $ \text{adjacent} \cdot \text{hypotenuse}$? Is this the same for arcsine and arctangent? Proving Pascal's identity So I came across Pascal's identity: Prove that for any fixed $r\geq 1$, and all $n\geq r$, $$ \binom{n+1}{r}=\binom{n}{r}+\binom{n}{r-1}. $$  I know you can use basic algebra or even an inductive proof to prove this identity, but that seems really cumbersome. I was wondering if anyone had a "cleaner" or more elegant way of proving it. For example, I think the following would be a decent combinatorial proof.   Proof: Let $S$ be a set with $n+1$ elements, and consider some fixed $x\in S$. There are $\binom{n+1}{r}\;\; r$-subsets of $S$--count them according to whether or not they contain $x$: there are $\binom{n}{r}$ not containing $x$, (each formed by choosing $r$ of the remaining $n$ elements in $S\setminus\{x\}$), and there are $\binom{n}{r-1}\;\; r$-sets containing $x$, (each formed by selecting an additional $r-1$ elements in $S\setminus\{x\}$).   Is that right? Are there any other efficient ways of doing it? Edit a truetype font I'm trying to find a free tool (on windows ) that would enable me to change some settings on a TrueType font. Specifically, I'm trying to fix the following errors:  E1311 The macStyle bold bit doesn't match the name table's font subfamily string macStyle bold bit is set, but subfamily is Regular  W2000 The subfamily string is inconsistent with the style of the font OS/2.fsSelection bold bit is set, but subfamily string = 'Regular'  I can do that with fontographer, but would prefer to use something free.  Fontforge doesn't seem to work with this font, when saved it corrupts the cyrillic letters in the font. If I use cat -n text.txt to automatically number the lines, how do I then use the command to show only certain numbered lines. In history we are taught that the Catholic Church was wrong, because the Sun does not move around the Earth, instead the Earth moves around the Sun.  But then in physics we learn that movement is relative, and it depends on the reference point that we choose.  Wouldn't the Sun (and the whole universe) move around the Earth if I place my reference point on Earth?  Was movement considered absolute in physics back then? What should a rational person accept as a miracle? Live search through table rows Nautilus does not show the left bar, how do I turn it back on? When I open nautilus does not open the left bar where it says computer and down markers such as music, documents, videos, downloads. I reinstalled nautilus from the synaptic package manager but nothing happened. What I can do to make that bar visible again? What are beginner’s books on typography? Carrying a handgun in other countries with a US concealed carry permit Where does a spinning figure skater's energy go when she slows down? add a blank file to the windows 'new' context menu Whilst i have found posts that tell me how to add a new context item for a specific file type, i seem to be unable to see a way of adding one for a blank file (a la ubuntu).  Is there a way of adding just a blank file (with no extension), which i can then rename myself with the appropriate extension? Show that Statistic is complete Is it correct to change the common structure in these phrasal verbs? I just read a book to learn English. And the topic I read is about the phrasal verbs, but a big doubt has come up to my mind.  Is it correct to change the position of the preposition (putting it with the verb instead of after the direct object)?  As in:  Common structure:   My wife backs me up over my decision to quit my job. We have to blow 50 balloons up for the party.  I need to break these shoes in before we run next week. Please help me out to get this job done.   So, would it be correct to do the following:   My wife backs up me over my decision to quit my job. We have to blow up 50 ballons for the party.  I need to break in these shoes before we run next week. Please help out me to get this job done. Nth max salary in Oracle When to use icons vs. icons with text vs. just text links? Types of polynomial functions. Quadratic, cubic, quartic, quintic, ...,? I would very much like to have a complete list of the types of polynomial functions. I know that theres:  Quadratic :                      (AX^2 + BX + C) Cubic     :               (AX^3 + BX^2 + CX + D) Quartic   :        (AX^4 + BX^3 + CX^2 + DX + E) Quintic   : (AX^5 + BX^4 + CX^3 + DX^2 + EX + F)   What are the names of polynomial functions to the further powers? Sexstic? Septic? Octic? I'm not sure, so if someone could enlighten me, then that would be great. Please provide a list that goes at least to the seventh power, but it would be nice if you could go further. Thanks. Understanding shape and calculation of confidence bands in linear regression Prevent questions with movie/tv shows/game spoilers from appearing in the hot questions list I've noticed that occasionally "hot questions" from SciFi and the Movies &amp; TV network contain major spoilers about the movie/show discussed.  The Matrix spoilers:      (just now there's something about Cypher betraying Morpheus in the Matrix, which is a big deal for people who haven't seen the movie).   I like browsing through those but fear that one day one of these questions will spoil a show I'm excited about and yet to finish   Breaking Bad spoilers:      (like the finale of Breaking Bad, imagine a question asking why did one character betray another at the end or something).   Can users posting such questions be asked to label those with a tag (such as 'spoilers') and then somehow have the network hide those from the "hot questions" list? Or possibly format them differently?  Similarly, this could apply to the Arcade network too.  P.S. Love how this question spikes in popularity around the time GoT starts running again. I swear it should be fairly simple technically to ban questions that have a tag that says 'spoilers' from appearing in the Hot Network Questions.  P.P.S. Oh, and with every fresh release of Star Wars (The Last Jedi being the most recent one)!  P.P.P.S. Another year, another Game of Thrones, another spike in popularity!