I successfully joined an attribute table to a shapefile using the method below.    But the new attribute table does not include the original column headers from the joined table. They've been replaced with something generic. See below.    Is there a way to keep the original column headers from the table that was joined?
I noticed that after joining a table to a shapefile the headers of each fields in the table used for the join are changed by QGIS and they are attributed to a different name.  For instance, I had a shapefile with vegetation_codes and a table with vegetation_codes and veg_definition (these were the headers). After joining the table to the shapefile and also saving the shapefile and creating a new one, the vegetation_classes header was changed into vegetati_1.  Is there a way to keep the original headers?  I am using QGIS Dufour on Windows 7 and the table that I join to the shapefile is CSV (tried with dbf as well and the problem is the same).
After the performance problems we have run into with  we've decided to make a change, we're moving the network on to .  Here's where to get started:   What works:   All search operators should be in Many changes below from the old search behavior   What's different:   The new search is AND, adding a search term will narrow your results, not expand them. The look of search results is now more unified with the following differences between Q&amp;A:   "Q:" or "A:" prefix Answer counts and tags will be present in questions. The answer count will be highlighted in green if it's accepted. (We may index other things later, that's why the results are more generic/google-y now.)  It's faster, about 5-10x faster for almost all searches on large sites like Stack&nbsp;Overflow Quoted phrases are exact matches except for case-sensitivity, for example,  or . If not in a quoted phrase, words will now be stemmed () Snippets for context will now be more relevant Excludes are now explicitly supported (like -term and -"my phrase") We don't roll up to the question anymore, if you searched for something that matched an answer, we'll show you the answer directly in search results The search per minute limit is effectively gone, it'll block a bot, but no one else should hit it... We'll be monitoring performance though infavorites:mine is back, with infavorites:12345 (any user id) added   What needs work:   What you tell us is broken... Do your worst.   Testing, not yet final:   New range support, here are some examples:   answers:1..1 (exactly one answer) answers:10..20 (10 to 20 answers) created:2008..2009 (created between Jan 1st, 2008 and Dec 31, 2009) created:2010-04..2010-05 (created between April 1st, 2010 and May 31st, 2010) created:2011-01-05..2011-01-06 (to be clear: it goes to end-of-day) This range syntax applies to a new advanced operator: lastactive: and the other numerical ranges, views:, and score:  Additionally, the above syntax is a bit more flexible if you forget it exactly (e.g. score:20-30) in an effort to be intuitive as possible, give it a try - tell us what you think.    I'll try and improve the search as much as possible before it becomes default... At the very least we want it equivalent in relevance and functionality before the switch, but ideally much better. We won't switch until then.  Please give it a try, tell us what you think here, and we'll continually improve it over the holidays as time allows. Bear in mind you may get a search offline page during this test if a change we're making for results necessitates a reindex, and even that should only last about two minutes here on Meta&nbsp;Stack&nbsp;Overflow.  Give it your worst, compare results to the old search, tell us what's better and what's not. We look forward to the feedback.  Update The new search is now the default across the network - we'll be monitoring things over the next few days and would appreciate reports of any crazy behavior you see here. Why Are There So Many Double Initials in Comic Books? Not being a comics expert, I can't be sure, but I think this applies mostly to Marvel comics.  Why do so many characters have double initials?  There's Pepper Potts, Reed Richards, Sue Storm, Peter Parker and I think at some times there was Bruce Banner (when it wasn't David Banner).  Is this an inside joke or is there some reasoning for this? Prove that for any natural number $n>1$, we have $(2n)!<(n(n+1))^n$ Prove that for any natural number $n&gt;1$, we have $(2n)!&lt;(n(n+1))^n$    I tried using induction, but I failed in that approach, I rather found it was untrue, but on several case testing, I found it to be true. I am out of ideas here, please help. Thank you. How to embed a text file in a .NET assembly? I would like to embed a text file in an assembly so that I can load the text without having to read it from disk, and so that everything I need is contained within the exe. (So that it's more portable)  Is there a way to do this?  I assume something with the resource files?  And if you can, how do you do it and how do you programaticaly load the text into a string? AMT stock option scenario What does NOEXEC flag mean when mounting directories on RHEL? I am trying to understand the NOEXEC flag when mounting.  I am having an execution issue within the /tmp directory on someone elses machine that I cannot access atm where the /tmp directory is mounted onto a different drive than '/' and NOEXEC is present.  I wanted to try and recreate this scenario on my machine, but I do not have a second hard drive.  I tried doing the following command:  mount --bind /test1 /test2   I then removed the bind flag and added NOEXEC in /etc/fstab.  Then, I created a file in /test2 called test.sh where it just echos 'hello world'.  I try and run it and it said 'permission denied'.  I then ran chmod 777 test.sh and was able to execute the file just fine.  I thought that the NOEXEC flag should not allow me to execute anything?  Is mount --bind /test1 /test2 not the same as mounting from a completely different physical drive? As in /test1 and /test2 are on different drives? Truncate (not round) decimal places in SQL Server Which groups have precisely two automorphisms Which groups $G$ have precisely two automorphisms, i.e., precisely one non-trivial automorphism?  Examples: $G= C_3, \mathbf{Z},\ldots$.  I think $G$ has to be abelian. In fact, we have $ \vert G\vert \geq 3$. Therefore, if $G$ is not abelian, we have at least two non-trivial inner automorphisms.  If we can show that $G$ is cyclic the above examples are all of them. How can I convert JPG into PDF easily? Can I re-create deleted Gmail accounts? A long time ago, I created a Google mail account. I fell for a trap that was common back then (not sure how it is nowadays) and ended up with two Google accounts—one for Gmail (using the Gmail email address I would like to use) and one for everything else (using an email address at an external mail provider).  Hoping that I could associate my Gmail and my actual Google account, I deleted my Gmail account only to discover that deleted account names cannot be used again. So basically my old Gmail account along with the Google email address I would like to use is gone.  My main Google account got assigned a different Gmail account in the mean time.  Do you know if it is possible to re-use my preferred Gmail address? If possible, I would like to assign it to my main Google account. But I'd also be happy to have it as a second Google account, anything is better than the current situation. "Closed" form for $\sum \frac{1}{n^n}$ Earlier today, I was talking with my friend about some "cool" infinite series and the value they converge to like the Basel problem, Madhava-Leibniz formula for $\pi/4, \log 2$ and similar alternating series etc.  One series that popped into our discussion was $\sum\limits_{n=1}^{\infty} \frac{1}{n^n}$.  Proving the convergence of this series is trivial but finding the value to which converges has defied me so far. Mathematica says this series converges to $\approx 1.29129$.  I tried Googling about this series and found very little information about this series (which is actually surprising since the series looks cool enough to arise in some context).  We were joking that it should have something to do with $\pi,e,\phi,\gamma$ or at the least it must be a transcendental number :-).  My questions are:   What does this series converge to? Does this series arise in any context and are there interesting trivia to be known about this series?   I am actually slightly puzzled that I have not been able to find much about this series on the Internet. (At least my Google search did not yield any interesting results). I was just thinking that maybe if we have more Stack&nbsp;Exchange websites then each person would be a member of more different sites on average. Since the time a person can spend online on average is limited it means he will be spending less time on each website. But would this affect the quality of these websites? I'm not talking only about the quality answers given but also the number of answers given, the promptness. Won't these things go down?  I think that the rate of questions won't go down much because you need to know what you need to know. However, the average time a person spends browsing through these websites (and chances upon a question he can answer) would decrease. So are we creating too many different Stack&nbsp;Exchange sites? Help, Creating a test class for an invocable method (code coverage @ 0%) Thread Confinement Mafia 3 no more damage to be dealt barclay mills I did most of the barclay mills missions and brought the damage down to 2550 but now I can find anything else to damage or steal, so the meter is stuck at 2550 and the objective says "find and destroy garbage barges" but when I click it, no waypoint.  Please help. Recently I'm working on a project aiming to convert the vibration of sound waves into electricity to charge batteries using a piezoelectric material (MFC type). I was trying to use the human voice as an input, but theoretically it was not enough, so do you have any ideas about some places that I can apply my project on it (that must be noisy or can give me vibrations)?  Moreover, has the MFC material been used before in this application? If I used many pieces of it in parallel would that help? Validate that string contains only allowed characters in Ruby I created a thick glass bottle and duplicated the interior faces to make a new object to create the liquid inside.   I went in the edit mode, selected the faces I wanted to copy and duplicated them with ShiftD. Then I pressed P to  separate the duplicated faces.   Now I try to make a duplicate of that liquid to make it flow out of the bottle, and I simply need the duplicate of one face of it. So I go to edit mode and do as I did to make the liquid from the bottle faces... but as soon as I'm back to the object mode and I want to move the duplicated faces, every thing moves with it...   I played around and tried things, and while doing so I realized that if I dupe the liquid object in object mode using ShiftD and press 0 to place it where the original is, they move together if I duplicate it and place it somewhere else so that they are separated.   Also if I pick one of the two separated objects and make it intersect with the other one, release my left mouse button to place it there, and then try to move it again, they both move together, but not at the same speed.  I really don't understand what is going on and I'm sure it's really badly explained, so what I'll do is make a screen capture of my Outliner and record the behavior of the objects and upload those to help you understand. Can I use Wubi for manual installation? Is it possible to use Wubi for Ubuntu 13.04? I read that it will not be supported in the official release due to some problems. Is this going to change in the future, and can we expect to see a future release with support for 13.04? bst file not found