C++ STL: Custom sorting one vector based on contents of another
How do I sort a std::vector by the values of a different std::vector?
What do you call the symbols list on a map? Every map has symbols that describe things. In the corner of a map, there is a list that explains what each symbol means.  What is the name of that list? (What title should I put above this list)? How do I bind a WPF DataGrid to a variable number of columns? My WPF application generates sets of data which may have a different number of columns each time.  Included in the output is a description of each column that will be used to apply formatting.  A simplified version of the output might be something like:  class Data {     IList&lt;ColumnDescription&gt; ColumnDescriptions { get; set; }     string[][] Rows { get; set; } }   This class is set as the DataContext on a WPF DataGrid but I actually create the columns programmatically:  for (int i = 0; i &lt; data.ColumnDescriptions.Count; i++) {     dataGrid.Columns.Add(new DataGridTextColumn     {         Header = data.ColumnDescriptions[i].Name,         Binding = new Binding(string.Format("[{0}]", i))     }); }   Is there any way to replace this code with data bindings in the XAML file instead? Could not load file or assembly 'System.Web.Mvc' My new ASP.NET MVC Web Application works on my development workstation, but does not run on my web server...    Server Error in '/' Application.    Configuration Error  Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.     Parser Error Message: Could not load file or assembly 'System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.    Source Error:    Line 44:         &lt;add assembly="System.Web.Abstractions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt; Line 45:         &lt;add assembly="System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt; Line 46:         &lt;add assembly="System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt; Line 47:         &lt;add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/&gt; Line 48:         &lt;add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/&gt;   Source File: C:\inetpub\www.example.org\web.config    Line: 46    Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.     WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].     Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053    Do I need to install the AspNetMVCBeta-setup.msi on the server?  Or is there a different installer for servers? I'm sure this is a newbie question, but I can't figure this out. I have tried to follow the advice here:  and here:   But I can not seem to be able to generate any font change. I either get no change or error messages.  Here is the output of one failed attempt to change the font to Times using this command:  \rmfamily \renewcommand{\rmdefault}{ptm}     Apparently I either don't have a correct package installed or...  The output says " Metric (TFM) file not found." but I am not sure where to go from there. What are good strategies for booster drafts? I know that doing a booster draft can be somewhat complicated, because to really be good you need to know a lot about the set you're drafting (or be really good at evaluating cards quickly) and to pay attention to signal cards.    Besides going into the whole complicated strategies of knowing the set and paying attention to signal cards, what are some relatively simple/basic guidelines for drafting? How to add some non-standard font to a website? What is the difference between independent and mutually exclusive events? I've finished the game, got all the items except one. This is the one to the right of the green shark fin. What and where is it? Scanning Java annotations at runtime What is the best way of searching the whole classpath for an annotated class?  I'm doing a library and I want to allow the users to annotate their classes, so when the Web application starts I need to scan the whole classpath for certain annotation.  Do you know a library or a Java facility to do this?  Edit: I'm thinking about something like the new functionality for Java EE 5 Web Services or EJB's. You annotate your class with @WebService or @EJB and the system finds these classes while loading so they are accessible remotely. Load your bag or Load your bike? Probably, another debatable question from my side.  When carrying items while riding, like water bottle, repair kits, pumps, or other stuffs that you might need, What is the best option.... to carry them?   On your cycle at saddle bag, handlebar bags, or pannier bags or etc.  or, On backpacks, like hydrant pack, or simple travel pack.   While loading on cycle, it will increase the weight of the bike, thus affect a lot of things, like speed, traction, more reactive on corners. Like while using pannier bags.. it will increase rear weight, making it difficult on uphill.   Also while loading on backpack, it will tire you down fast if its a big load, decreases your flexibility, agility &amp; etc.  So what is right way to do it?  Update:  The type of ride I generally, go to are commuting, mountain biking, &amp; trailing. And the items I generally carry are   Commuting: Water bottle(x2), Laptop (17"), books, copies, repair kits, hand pump, few other accessories. Mountain Biking &amp; Trailing: Water bottle(x2), repair kits, extra tubes, hand pumps, candybars &amp; few other accessories I just posted on a closed question   How?  Side point:  I do not see any indication that the post is closed on the app Producing .bbl file with Lyx and JabRef How do I produce the .bbl file required for arXiv using JabRef for bibtex and Lyx? I'm having some trouble with the following sentence:     Since he had arrived, he had seen the rule broken more than once.   For some context, the text itself is a short story and I'm writing it in past tense. Does this mean that the presence of a past simple verb is "implicit", in a way, to the text itself? Does using the word "since" change anything (I know that it is usually supposed to be followed by a past simple verb, but I'm not sure of any exceptions to this)? Proof of $a^{\phi (n) +1} \equiv a \pmod{\! n} $ Carmichael generalization of Fermat-Euler's theorem. I want to update my sources.list file with the fastest server from the command line in a fresh Ubuntu Server install. I know this is trivially easy with the GUI, but there doesn't seem to be a simple way to do it from from the command line? sudo credential caching on by default Proof concerning Stirling numbers of the first kind How do I show that   $${ n\brack 2} = \frac{n!}{2} \sum_{m=1}^{n-1} \frac{1}{m(n-m)}$$  using a combinatorial argument?  My definition of ${n \brack 2}$ is "the number of elements of $S_n$ which can be decomposed as the product of exactly $2$ disjoint cycles". Why is "letter" not plural in "two letter words"? Why is "letter" not plural in "two letter words"?  For me it's very strange as the equivalent in French would be plural but my English friend finds it totally normal. In quantum field theory, scalar can take non-zero vacuum expectation value (vev). And this way they break symmetry of the Lagrangian. Now my question is what will happen if the fermions in the theory take non-zero vacuum expectation value? What forbids fermions to take vevs? Python Implementation of Track-to/aim constraint