Problems with saving changes in layerproperties (Qgis)
QGIS apply style to shapefile
My  has failed me.  In Python, are the following two tests for equality equivalent?  n = 5 # Test one. if n == 5:     print 'Yay!'  # Test two. if n is 5:     print 'Yay!'   Does this hold true for objects where you would be comparing instances (a list say)?  Okay, so this kind of answers my question:  L = [] L.append(1) if L == [1]:     print 'Yay!' # Holds true, but...  if L is [1]:     print 'Yay!' # Doesn't.   So == tests value where is tests to see if they are the same object? Batch renaming files with pattern I have some files named like these:  63018933.mp4?token=1325697436_b0c3e70c6e339380b4a484c576a8c287  63808488.mp4?token=1325697401_4ae5f7a68d93873c8881b303e7655e14  How do I rename all them to, for example 63018933.mp4(remove characters after mp4)? What are the differences between combat damage, direct damage, and loss of life? Rounding up to next power of 2 I want to write a function that returns the nearest next power of 2 number. For example if my input is 789, the output should be 1024. Is there any way of achieving this without using any loops but just using some bitwise operators? I'm having problems understanding the following situation. Suppose two 1-tonne cars are going with the same orientations but opposite senses, each 50 km/h with respect to the road. Then the total energy is   $$\begin{eqnarray}E=E_1+E_2&amp;=&amp;\frac{1\mathrm t\times(50\mathrm{km}/\mathrm h)^2}2+\frac{1\mathrm t\times(50\mathrm{km}/\mathrm h)^2}2\\&amp;=&amp;1\mathrm t\times(50\mathrm{km}/\mathrm h)^2\\&amp;=&amp;2500\frac{\mathrm t\times\mathrm{km}^2}{\mathrm h^2}.\end{eqnarray}$$  Now if we look at it from the point of view of one of the cars, then the total energy is   $$\begin{eqnarray}E=E_1+E_2&amp;=&amp;\frac{1\mathrm t\times(0\mathrm{km}/\mathrm h)^2}2+\frac{1\mathrm t\times(100\mathrm{km}/\mathrm h)^2}2\\&amp;=&amp;\frac{1\mathrm t\times(100\mathrm{km}/\mathrm h)^2}2\\&amp;=&amp;5000\frac{\mathrm t\times\mathrm{km}^2}{\mathrm h^2}.\end{eqnarray}.$$  I know that kinetic energy is supposed to change when I change the frame of reference. But I understand that then there must be some other kind of energy to make up for it so that the energy in the system stays unchanged. But I don't see any other kind of energy here. I only see two total energies of the same system that seem to be different. Could you explain this to me?  Please note that while I don't understand any physics, I do understand college level mathematics, so if necessary please use it. (I doubt anything more than high school maths should be needed here, but I want to say this just in case.) Is the wave-particle duality a real duality? Titles should be stand-alone summaries of questions *without* depending on tags Titles should be completely independent of tags.  A good title tells an expert whether they want to read the full question all by itself. I know this has come up multiple times before, before, but in each case, the discussion has seemed to have turned into a different question.  For example,   really asks, &quot;Don't we need tags in titles to help with SEO&quot;? So, &quot;no, we don't, because we add the top tag (or two, in some cases) to the crawler results,&quot; is correct, but it appears that people are interpreting that to mean that people generally can (or should) omit key terms from their titles if they exist in the tags.  To be clear:  I agree that we should never force a tag into a title if it's not helpful;  should NOT have &quot;[Baking]:&quot; jammed into the title, because it adds nothing to a reader's understanding of what it's about, BUT...  Nothing should be left out of a title just because it exists in the tags.   Trilogy examples:   , ,   examples: , , , The problem with all of these is that without a language, OS, or game title, they fail to convey whether you care to read the question, because you need to read the tags to even figure out if you work with the language or own the game in question. A term being in a tag in no way reduces the need for it in the title.  Tags are great for filtering, but a title is supposed to function like a headline. This is a good headline:  This is not very good headline:  Titles, like headlines, are BIG AND BOLD on the front and other pages.  So you can browse and stuff.  Tags are small, and kind of low contrast.  So they don't, you know, distract you from the headlines. Bear in mind that on non-technical sites, new visitors, even new experts, don't necessarily even know what tags are. The title test:  If you assume the reader can't even see the tags, is your title a good, stand-alone summary of the question for an expert on that topic?  I'm sticking with gaming examples because they're more broadly accessible than some topics:   does not need, &quot;in Starcraft&quot; added, because it's impossible to be interested in the answer and not know that a zergling question relates to Starcraft.  but...  , absolutely needs &quot;...in Starcraft 2&quot; added to it, because without the tags, it's currently useless as a way to decide if you want to read it.  This is really no change from :  In the wake of that comment, people seemed to mostly hear:  &quot;stop forcing a word you don't need in just cuz it's a tag&quot;  ... which is right, but what it really says is,  &quot;most of the time, some tags will naturally belong in a title that effectively summarizes the question&quot;.  EDIT: Some folks felt this was (an unduly public) way to call out gaming specifically. It's not - I think this is a problem to varying degrees on a number of sites, but used examples from gaming because they're easy for most readers to follow. Sincere apologies to anyone in the Arqade community who felt I was using a network-wide forum to criticize a gaming practice - I wanted to clarify the best practice for all the sites that encounter this at least sometimes, including SO, where you still see people stripping languages from titles in edits sometimes. Java OS X Lion Set application name doesn't work How to apply a bevel modifier, so that it affects only specific edges? Study path to Bayesian thinking? I am six years into a business role and have a bachelor's in physics and applied math/stats. Sean Carroll's (Caltech physicist)  opened me to the idea that Bayesian statistics is one useful way of thinking about anything - inevitably you hold a prior and you should update your credence as additional information becomes available.   Is there a path to training your intuition to thinking this way? Critically, it would require repeated practice with verifiable answers through either a course, or self study that includes many problems and solutions. I do not believe simply reading will do.  Possible resources, having read every related question on this site I could find:   "Probability Theory" by Jaynes. Pro: analytic; intuitive explanation of bayesian statistics. Con: prerequisites; missing problems/solutions. "Doing Bayesian Data Analysis" by Kruschke. Pro: includes problems &amp; solutions; requires only "algebra and rusty calculus". Con: works in R, which I think provides for less intuitive learning than the analytical (I may be wrong).   If it is a multi-year path I need to take, starting elsewhere, I am happy to do so! Ideally, I would avoid the frequentist methods, as I have no use for them.  My goal is not to be a scientist, but to leverage insight into how reality works to go above and beyond the established thinking in business.  Many thanks for any suggestions! tabular input by columns (i.e. transpose a table) I would like to be able to transpose a tabular(x) table like in the following example. It is not necessary to be completely automated, but I don't want to change the data order, which is a painful and stupid. By "not completely automated" I mean that e.g. the headers can be done seperately etc.  Let's see the MWE:  \documentclass{article}  \usepackage{booktabs} \def\Midrule{\midrule[\heavyrulewidth]}  \begin{document}  \centering  \begin{tabular}{*6c}\toprule \bfseries Name &amp; Alice &amp; Bob &amp; Chuck &amp; Dave &amp; Eve\\\Midrule \bfseries Sex &amp; Female &amp; Male &amp; Male &amp; Male &amp; Female\\\midrule \bfseries Age &amp; 18 &amp; 19 &amp; 20 &amp; 21 &amp; 22\\\bottomrule \end{tabular}  \bigskip  Which I want to look like  \bigskip  \begin{tabular}{*3c}\toprule \bfseries Name &amp; \bfseries Sex &amp; \bfseries Age\\\Midrule Alice &amp; Female &amp; 18\\\midrule Bob &amp; Male &amp; 19\\\midrule Chuck &amp; Male &amp; 20\\\midrule Dave &amp; Male &amp; 21\\\midrule Eve &amp; Female &amp; 22\\\bottomrule \end{tabular}   \end{document}     Note: I know that , but I would like to get it without expl3 (mostly because people would might use my code quite often have an old LaTeX installed and I cannot be convincing them to change this). How to increase Scrollback lines in Ubuntu(14.04.2) server edition? I can see only limited lines on terminal by using shift+ pageup. in Ubuntu desktop version, there is option to make scroll-back lines unlimited. how to do it in Ubuntu server version. please suggest. I have been struggling to install VirtualBox Guest Additions in a Debian Virtual Machine (Debian 7, Debian 8 and Debian 9). I have a query which selects a max value over all the values of in a datetime column (dtimesent).  select dtimesent, max(ResponseTime) AS maxtime FROM allrequests  where Request like '%Requestsa%' group by dtimesent   I need to get the value of the request colmn for each max response time in each group by. Is there any easy way to do this?  There can be multiple rows per dtimesent value so I can't just include the request column in the group by,  Many thanks, In my situation, it's for a local build/staging server running ubuntu server. Things I'd like to know are:  Why I should/shouldn't use LVM?  What problems might it cause in terms of either regular server operation or things I might want to do later? (ex. partitioning)  Why I should/shouldn't use encrypted LVM instead of LVM?  What problems might encrypted LVM cause in terms of either regular server operation or things I might want to do later? (ex. partitioning) Prove the compactness of a set B We have $A=\left\lbrace 2019,1010,\ldots,(n+2018)/n,\ldots \right\rbrace$ and $B=A \cup \left\lbrace 1 \right\rbrace$  How can I show directly (that is, not using the compactness criterion in $\mathbb{R}$) that every open cover $G$ of $B$ admits a finite subcover?  moreover, I know that $A$ is not compact and I am aware that I would need a single example to prove it, any hint on how to find an open cover of $A$ that does not contain a finite subcover?  My first thought was to choose the set of all neighborhoods with radius r centered around each point of A but apparently this is wrong and I do not understand why. What regular expression will match valid international phone numbers? Why does the flash freeze a picture? Why does a flash freeze a picture even if I use a shutter speed like 1/10 sec?  I don't understand it, because the light will hit the sensor the whole time, not just when the flash is fired. Product of Consecutive Integers is Not a Power Free way to clone HDD to SSD? Is there a free way to clone a full Windows 7 installation from HDD to SSD? (The free part is important, I know I can pay for Acronis True Image.)      SSDs are usually much smaller than HDDs which complicates matters. For instance, I have about 50GB data, my new SSD is 80GB but I still can't use Windows clone/restore system if my HDD is something like 300GB.  Therefore, I'm looking for a third party tool that will be able to:   Create a clone of my C: partition Store it onto an external USB drive Boot from some rescue / restore CD Load the image onto the new SSD   Acronis True Image seems like a tool that should support this but it's a paid-for software and the trial version cannot create clones. Acronis Migrate Easy is a fully functional tria for 15 days but need both the HDD and SSD connected at the same time which is a bit of a problem for me as a laptop user.  P.S. I almost got there combining Windows image backup combined with Acronis True Image restore CD (which can load .vhd's) but was not able to boot as some boot information were probably lost and could not be repaired using the Win7 installation DVD.