I have list of objects like     actors = [Person('Raj' ,'Hindi'),           Person('John',  'English'),           Person('Michael' 'Marathi'),           Person('Terry','Hindi'),           Person('Terry', 'Telugu')]   I want to sort this list of peoples depending on their mother tongue. In sequence Marathi, English, Hindi, Telugu. Means i want to sort objects in customized logic rather than in ascending or descending order.   I am using python 3.7.  Could you please help me how can this be done ?
I've got a list of Python objects that I'd like to sort by an attribute of the objects themselves.  The list looks like:  &gt;&gt;&gt; ut [&lt;Tag: 128&gt;, &lt;Tag: 2008&gt;, &lt;Tag: &lt;&gt;, &lt;Tag: actionscript&gt;, &lt;Tag: addresses&gt;,  &lt;Tag: aes&gt;, &lt;Tag: ajax&gt; ...]   Each object has a count:  &gt;&gt;&gt; ut[1].count 1L   I need to sort the list by number of counts descending.  I've seen several methods for this, but I'm looking for best practice in Python.
What is the non-parametric equivalent of a two-way ANOVA that can include interactions? Hi I am trying to find the non-parametric equivalent of a two-way ANOVA (3x4 design) which is capable of including interactions. From my reading in Zar 1984 "Biostatistical analysis" this is possible using a method put forth in Scheirer, Ray, and Hare (1976), however, according to other posts online it was inferred that this method is no longer appropriate (if it ever was).  Does anyone know what method would be appropriate for doing so, and if so the corresponding functions in R or Stata? Why is this series of square root of twos equal $\pi$? Wikipedia claims this but only cites an offline proof:  $$\lim_{n\to\infty} 2^n \sqrt{2-\sqrt{2+\cdots+ \sqrt 2}} = \pi$$  for $n$ square roots and one minus sign. The formula is not the "usual" one, like Taylor series or something like that, so I can't easily prove it. I wrote a little script to calculate it and it's clearly visible, but that's not a proof. How can I hide my code in visualforce page? I have two given names and one surname. Is it a problem if I omit the surname from my ticket? I have two names as my given name in the passport and I typically just use this as my first and last name. However, my passport has a surname too which I almost never use. Due to this, I mistakenly provided my given name as first and last name.   As per the passport,  Surname : AAAA Given name(s) : BBBB CCCC   In the ticket, First name : BBBB Last name : CCCC  The credit card I've used to make this booking has my name as BBBB CCCC.  Will this create a problem at the travel time?  Update : the airline says that they can't update the name in the ticket. They are saying that since they have made a remark of the passport details boarding will not be a problem but I might face problems at immigration. Do they check name details in itenerary to exactly match passport at the time of immigration? Is that true in your experience?  Update : Travelled without any problem, neither at boarding gate, immigration nor after arrival at border police control. Formatting Ticks and FrameTicks labels with a function How does vendor restocking work in Fallout 4? I want to remove all empty lines from a file. Even if the line contains spaces or tabs it should also be removed. I'm trying to amass a list of physics books with open-source licenses, like Creative Commons, GPL, etc. The books can be about a particular field in physics or about physics  in general.  What are some freely available great physics books on the Internet? edit: I'm aware that there are tons of freely available lecture notes online. Still, it'd be nice to be able to know the best available free resources around.  As a starter:         Table of contents sorted by field (in alphabetical order): I'm a new blender user, but have used other modelling programs before.   I've downloaded a  and unzipped it.   When I import the obj into blender, it is my understanding (from here: ) that the mtl should just import itself with it. However, when I import the obj, I just get a grey model with no texture. Is it actually importing the mtl but I'm not seeing it? Also for the record, I have changed no settings in blender.  Picture for reference: Solving binomial theorem via induction How to embed Stack Overflow flair in a WordPress.com (free) blog? Has anyone successfully embedded their  on a WordPress.com-hosted blog?  The free hosted version of  (not )  from all posts before publishing. So they to strip out just about anything I can add to embed my Stack Overflow flair.  Note: I'll be switching to a paid, hosted site in the future (fixing the problem), but I'm looking for a quick, short-term solution. How do I clone a generic List in Java? Why too many capacitors in parallel for Vdd supply net? Can't we just add all to replace with one big capacitor? I am using Eclipse 3.3 ("Europa"). Periodically, Eclipse takes an inordinately long time (perhaps forever) to start up. The only thing I can see in the Eclipse log is:       !ENTRY org.eclipse.core.resources 2 10035 2008-10-16 09:47:34.801     !MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.   Googling reveals  that I remove the folder:  workspace\.metadata\.plugins\org.eclipse.core.resources\.root\.indexes   This does not appear to have helped.  Short of starting with a new workspace (something which I am not keen to do, as it takes me hours to set up all my projects again properly), is there a way to make Eclipse start up properly? I'm looking for a Drupal Commerce Shipping in-cart estimate What is the default bibliography package and backend in LaTeX? According to , biblatex and natbib are packages while biber and bibtex are backends. If I don't specify either any package or any backend, it still compiles fine. Which package and backend combination is being used in this case?  demo.tex  \documentclass{article} \begin{document}  \nocite{*} \bibliographystyle{ieeetr} \bibliography{pub}  \end{document}   pub.bib  @article{janssen1996evaluation,     title={Evaluation of the DNA fingerprinting method AFLP as a new tool in bacterial taxonomy},     author={Janssen, Paul and Coopman, Renata and Huys, Geert and Swings, Jean and Bleeker, Marjo and Vos, Pieter and Zabeau, Marc and Kersters, Karel},     journal={Microbiology},     volume={142},     number={7},     pages={1881--1893},     year={1996},     publisher={Soc General Microbiol} }  @article{vos1995aflp,     title={AFLP: a new technique for DNA fingerprinting},     author={Vos, Pieter and Hogers, Rene and Bleeker, Marjo and Reijans, Martin and Van de Lee, Theo and Hornes, Miranda and Friters, Adrie and Pot, Jerina and Paleman, Johan and Kuiper, Martin and others},     journal={Nucleic acids research},     volume={23},     number={21},     pages={4407--4414},     year={1995},     publisher={Oxford Univ Press} } I have a profile on AskUbuntu.com which is recognized on my StackEchange profile (). I have already asked and answered questions there. But even though I'm logged in stack exchange, Askubuntu does not see me as logged in. I have a long history of problems with that and though I have been able to access it up to end 2018, and I don't understand why it can't do it anymore. I have seen multiple questions about similar problems, but they all are older than 2018 and do not really helped me solve it. Amongst other, they proposed to log in with the same user and password, but using the same user and password on two different log in systems is a security hole. either your credential cookies are shared, or one should use different logging info. EDIT: it has been suggested to deactivate third party cookies blocking, but I do not want to ruin my browser's tracking protection. What happens 'internally' on a unstable/overclocked/undervolted CPU? When you undervolt or overlock an CPU, when it passes a certain limit it starts to make the system unstable, reboot, etc. But these are the effects of it.  What I'm curious about is what happens on the CPU. What happens? It gives wrong answers to instructions? Bits on cache flip? I can't use the terminal while gedit command is running I recently installed 12.04. When I try to edit a file with gedit, I can't use the terminal until I close the editing file or I have to open a new terminal. But I think I didn't have this problem with 11.04, however I'm not sure. Is there anyway to avoid this and to use same terminal while editing files. Is there a way to see my previous performances with respect to winter-bash? May be something like leagues for winter-bash? I understand that hats are different each year, but at least it would be nice to see the number of hats collected.