Code :  list = ["\r\n                    Opportunities\r\n                ", "\r\n                    Careers\r\n                ", "\r\n                    Education &amp; training\r\n                ", "\r\n                Find Your Future\r\n ","\r\n\tSanderson        Recruitment, Solutions, Executive, Consulting\r\n"]   Output I want:   ["Opportunities","Careers","Education &amp; training","Find Your Future","Sanderson Recruitment, Solutions, Executive, Consulting"]   Since it is a list
What is the Python equivalent of Perl's chomp function, which removes the last character of a string if it is a newline?
How to install squid-deb-proxy-client via preseed/early_command Using Lucid, installing from the Lucid mini.iso.  Both AMD64.  In the following I've tried as \, all of apt-get, apt-install, anna-install, dpkg:  d-i preseed/early_command string &lt;cmd+opt&gt; squid-deb-proxy-client   I've also tried:   d-i preseed/early_command string /usr/bin/wget \     -O squid-deb-proxy-client_0.3.1_all.deb \     http://ubuntu.media.mit.edu/ubuntu//pool/universe/s/squid-deb-proxy/squid-deb-proxy-client_0.3.1_all.deb &amp;&amp; dpkg -i squid-deb-proxy-client_0.3.1_all.deb   Is this possible, and if nor what is the earliest point one can get a installation to use the squid-deb-proxy server? I happen, time and again, to read and hear people – among which people working in cinema – regretting the fact that film (in the sense of actual reels of plastic strip) is nowadays very rarely used when shooting movies. Is there some ground to such nostalgia?  Of course I am not looking for opinions for or against film vs. digital media, but sourced, objective reasons. Is there anything that could be done with film but not with digital supports? Are there measurable differences in effects on viewers? What is postselection in quantum computing? A quantum computer can efficiently solve problems lying in the complexity class . I have seen a claim the one can (potentially, because we don't know whether BQP is a proper subset or equal to PP) increase the efficiency of a quantum computer by applying postselection and that the class of efficiently solvable problems becomes now postBQP = .  What does postselection mean here? Convert ls -l output format to chmod format How can I encode and decode percent-encoded strings on the command line? I realize that an image histogram is a graphical display of an images tonal distribution (i.e. horizontal darks to lights, vertical pixel distribution), but how does one really use it and why? I mean, can't you determine everything you need just by looking at the image? PlotRange precision limit? Since , how do I uninstall it from my desktop system?  (Please note: This question is not about Unity 7, which is still supported at the time of this writing and should remain installed if present.) C# Change A Button's Background Color I always see commands like this  apt-get -y install    What is the -y tag for and what is the difference between apt-get install with and without the -y tag? There are many times when I'd like to jot a short note in my passport. For example, the business purpose of an entry into a country -- or for countries with automatic passport control and when I don't get a stamp, I'd like to notate my entry and departure.   Can one write in one's own passport? I wouldn't of course write over any stamps, but I might write near them. Or could I use a back page as entry and departure dates?  Yes, I could use a separate piece of paper or a computer file, but having them all in my passport would be handy -- especially when a border officer asks where I've been and why.   And if the laws vary by country, can you note this in your answer? Would it matter if my notations were in ink or pencil? These aren't doodles but business-like annotations and lists. count vs length vs size in a collection From using a number of programming languages and libraries I have noticed various terms used for the total number of elements in a collection.  The most common seem to be length, count, and size.  eg.  array.length vector.size() collection.count   Is there any preferred term to be used? Does it depend on what type of collection it is? ie. mutable/immutable  Is there a preference for it being a property instead of a method? Can I speed up iCloud photo sync between iPhone and Macbook? I have an iPhone 5 running iOS 9.1 and a Macbook Pro running Yosemite.  Both devices are set up to sync photos to and from iCloud.  When I take a photo on the iPhone (for further processing on the Macbook), it takes an inordinate amount of time until the photo shows up in the Macbook's photos library - sometimes up to 10-20 minutes. Sometimes it seems to work faster if I quit the Photos app on both devices, and start it again.  I often end up sending myself photos through E-Mail because it's quicker. That seems ridiculous!  Is there a way to force a sync on the iPhone, or to speed up the process some other way? Calculate the Factor Group $(\mathbb{Z}_4 \times \mathbb{Z}_6)/\langle(0,2)\rangle$ How do Rpy2, pyrserve and PypeR compare? Find all $n \in \mathbb{N}$ such that $\phi(n) = 4294967296=2^{32}$.  I managed to find that $16106127360$, $8589934592$, $10737418240$ and $12884901888$ are solutions for the equation, but I do not know how to find all of them. Python interpreter error, x takes no arguments (1 given) Solving a Second Order Constant Matrix Differential Equation Given that $A$ is a constant coefficient matrix, how would one find a non-zero solution to the following equation: $$ x''+2Ax'+A^2x=0 $$ I am thinking this could incorporate systems of linear equations, but I am not sure how to use $x'=Ax$ or $x'=P(t)x +g(t)$ in this situation.   Any hints or suggestions are appreciated. Note that this is only focusing on Minecraft Java Edition, and for versions 1.13+. I am predominantly looking for a solution that does not require any external programs (like MCEdit or NBTExplorer) and will work in just plain vanilla Minecraft, although if the only solution doesn't fit these criteria, I'll still take it (since having a solution is better than no solution!) Essentially, I am looking for a way to put a phrase (meaning essentially there are two or more words and spaces are involved) on a Minecraft scoreboard. This is what I mean by 'phrase': One two three, 1 2 3 These are not 'phrases': OneTwoThree, One-Two-Three, One_Two_Three, 1-2-3, etc. However, it seems like the only way to add text to an objective on the scoreboard is to add a &quot;fake player&quot;, via /scoreboard  players add [playername] [objectivename] [score], which shows the [playername] and the [score] part of the command on the scoreboard. However, since player names can't have spaces at all, it means that you can't have a phrase shown on the scoreboard. I have seen on many servers scoreboards that do have phrases listed on the scoreboard, but I have no idea how they do this (probably because of plugins that can do this sort of thing).  I did notice that teams can be given display names that can have spaces, so is there a way to display the team name on the scoreboard (thus being able to put phrases on there?)? Overall, my main question would be &quot;Is there a way to use spaces on the scoreboard (excluding the objective name) in vanilla Minecraft? Difference between pts and tty