Why do I get an error when using apt-get? Whenever I try to install any package using apt-get install package it shows an error massage like the one below.  dpkg: dependency problems prevent configuration of unixodbc:i386:  unixodbc:i386 depends on odbcinst1debian1 (&gt;= 2.2.11-3); however:   Package odbcinst1debian1:i386 is not installed.  libodbc1:i386 (2.2.14p2-5ubuntu3) breaks unixodbc (&lt;&lt; 2.2.14p2-3) and is installed.   Version of unixodbc:i386 to be configured is 2.2.11-21. dpkg: error processing unixodbc:i386 (--configure):  dependency problems - leaving unconfigured Errors were encountered while processing:  odbcinst:i386  odbcinst1debian2:i386  unixodbc:i386 E: Sub-process /usr/bin/dpkg returned an error code (1)
How do I resolve unmet dependencies after adding a PPA? Occasionally, when I'm installing stuff, I get an error like the following:  Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  package1 : Depends: package2 (&gt;= 1.8) but 1.7.5-1ubuntu1 is to be installed E: Unable to correct problems, you have held broken packages.   How can I resolve this?
Audits bug in the filtered review queue Just recently the . I've got  this morning which seems to be out of scope for my filtered list. I have filtered my list to only review VBA and Excel-VBA tags while the audit is tagged with perl http pipes which have nothing in common with VBA. I see a problem with the way the system currently works  Since I have a filtered list of tags, once I see a differently tagged question I already know it's an audit. Come on, that's too easy!  Can this please be fixed? update I have ran into  which I decided to edit - the question was tagged VBA and I thought it had nothing to do with VBA so I selected Edit which was the correct action. Now, once the first audit was clearly one to close - nothing to do with VBA and really easy to know that it actually was an audit - the second one was a very good audit. I am just thinking now if this is a proper bug or just a matter of malfunction in the system. I think the first one may have been made an audit for the wrong reason. Let's turn this into a discussion as I can't clearly work the system out. Force update from unsigned repository I'm using an unsigned repo in Ubuntu 16.04 from Debian multimedia:  deb http://www.deb-multimedia.org jessie main   To install deb-multimedia-keyring, I'm running:  apt-get update &amp;&amp; apt-get install deb-multimedia-keyring -y   This gives an error:  W: GPG error: http://www.deb-multimedia.org jessie InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5C808C2B65558117 E: The repository 'http://www.deb-multimedia.org jessie InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. Getting hybrid graphics to work nvidia-prime GT650M I recently made the switch to Ubuntu. Everything on my laptop works fine except my hybrid graphics card. It is Intel graphics combined with Nvidia GeForce GT650M. I tried Bumblebee, but primusrun doesn't work (segmentation fault, core dumped) and optirun works with glxspheres64, but steam games look worse with optirun than with Intel graphics (e.g. Surgeon Simulator 2013 runs fine with Intel and hangs a lot with optirun)   I tried Nvidia Prime, but it gives me a black screen on startup after install, so I can't do anything and have to power off my PC with the power button. I also tried nvidia-prime 0.5 on Ubuntu 14.04, and then I get 'low-graphics mode' and I can't get to Unity. How to change the numbering of \part, \chapter, \section, ... to alphabetical, Roman numbers, etc What is the easiest way to superscript text outside of math mode?  For example, let's say I want to write the $n^{th}$ element, but without the math mode's automatic italicization of the th.  And what if I still want the n to be in math mode, but the th outside? After mis-reading this question:  I found myself wondering if there are other non-weapon items such as tools that utilize lightsaber technology.  Example: the lightsaber bread knife Do DOM tree elements with ids become global variables? cd in bash script without alias, function, source I've written a bash script which should cd me to a directory.   My problem is that only the directory in the subshell changes.  I've read of many similar problems to this, but I want to know if there is a solution besides using an alias, a function or sourcing the script.  If you don't understand what I mean, here's an example:  user@linux ~: cat ./myscript.sh #!/bin/bash cd /any/directory user@linux ~: ./myscript.sh user@linux ~:    Please note that my script is much longer, so I don't want to use a function! In a comment on this , someone said that they weren't sure what functools.wraps was doing. So, I'm asking this question so that there will be a record of it on StackOverflow for future reference: what does functools.wraps do, exactly? Is there a good reason to use "printf" instead of "print" in java? G acts on X transitively, then there exists some element that does not have any fixed points Let $X$ be a transitive $G$-set. ($G$ acts on  $X$ transitively.) If $X$ is finite and has at least two elements, show that there is some element $g$ $\in$ G which does not have any fixed points; that is, such that $g$$($$x$$)$ $\ne$ $x$ for all $x$ $\in$ $X$  I am trying to use contradiction, but it is not very clear to me why this is true. What are the possible catch bonuses and how much experience do they reward? I found , earlier, and found out that I can throw a curveball at pokémon to earn an increased experience bonus.  I have since noticed two more bonuses: "Great" and "Nice". I had assumed the bonuses were for throwing a pokéball with the 'catch circle' closer to the center, which according to the FAQ, increases the chances of actually catching the pokémon.  However, I have since noticed that the 'catch circle' is actually bigger in cases where I have earned a "Great" bonus. Despite appearing to be a less powerful throw, I earn more experience than when I earn a "Nice" bonus. "Great" nets me 50 experience, while "Nice" only nets 10 experience.  What are the possible catch bonuses, and how much experience do they reward?  For bonus points, every so often I am awarded an additional 10 experience points that are not accounted for on the experience screen. The screen lists my bonuses, and tells me how much experience I have earned, but I am clearly rewarded additional experience when it is added to my player. Assuming this is another catch bonus, what could this be? Is every discrete absolute value non-archimedean? I've been reading Milne's notes on absolute values and local fields (Chapter 7 of the book on algebraic number theory), and a possibly minor point is confusing me.   On page 126, Milne writes, "$K$ is a field complete with respect to a discrete absolute value $|\cdot|$..." and then he talks about things that only make sense for non-archimedean absolute values, like the ring of integers and its maximal ideal.   Is every discrete absolute value on a field $K$ also non-archimedean? This would explain a lot, but I also suspect that it is not true, because I can't find any statement of this fact anywhere.  EDIT: An absolute value is discrete if the value group $|K^\times|$ is a discrete subgroup of the multiplicative group $\mathbb{R}_{&gt;0}$. An absolute value is non-archimedean if it satisfies the stronger triangle inequality $$ |x+y| \le \max (|x|,|y|) $$ or equivalently if the set $\{|1|,|1+1|,|1+1+1|,\ldots\}$ is a bounded subset of $\mathbb{R}$. Related posts:    These posts are different from mine in that they merely ask for the &quot;votes&quot; tab back or ask if it is at all possible to get such information, while I propose how to implement this as a search feature. Background I recently found myself facing a problem very similar to one that I had solved before. I remembered that I found the solution on SO and I remembered upvoting the post containing the solution. I wasn't able to find that particular post by just searching with relevant keywords. It would have been nice if I could search only among the questions I have voted on. I searched on meta and found that there had been a tab for looking at what you've voted on, but that it was removed due to lack of interest. This is understandable, since just listing the hundreds/thousands of posts you've voted on isn't particularly useful. Proposal What I want is to be able to search for posts I've voted on similarly to the way I'm able to search on my posts within a specific tag. For instance: user:310121 [iphone] apple  This will return all my posts tagged iPhone, where I mention Apple. This is brilliant. This is just how I want search to work. Now what I want to do is to extend this to include votes. The exact syntax isn't relevant, but I had to make one up to show you what I mean: To show all posts you've voted on: user:310121 {votes}  To show all posts you've upvoted: user:310121 {upvotes}  To show all posts you've downvoted: user:310121 {downvotes}  You could probably omit the the user part, since you're only allowed to see your own votes. (Unless it's desirable to be able to look at other peoples votes. Maybe you should be allowed to do this if you have enough rep? Well, that's another discussion.) I guess that even if you're allowed to see other peoples votes it would make sense to display your own votes if the user part is omitted. So in my case I could have done the following search and found the post I was looking for: {upvotes} keyword  Lastly I just want to suggest that clicking on your vote count will work just like clicking on a tag. If I click on a tag in my profile the following search will be done: user:310121 [tag]  So if I click on my upvote count the following search should be made: user:310121 {upvotes}  The same goes for downvotes: user:310121 {downvotes}  This would be a very useful feature and it wouldn't be intrusive in any way. The users that don't care for this feature might never know that it's there. And just for the record the favorite system doesn't replace this feature. Random weighted choice Consider the class below that represents a Broker:  public class Broker {     public string Name = string.Empty;     public int Weight = 0;      public Broker(string n, int w)     {         this.Name = n;         this.Weight = w;     } }   I'd like to randomly select a Broker from an array, taking into account their weights.  What do you think of the code below?  class Program     {         private static Random _rnd = new Random();          public static Broker GetBroker(List&lt;Broker&gt; brokers, int totalWeight)         {             // totalWeight is the sum of all brokers' weight              int randomNumber = _rnd.Next(0, totalWeight);              Broker selectedBroker = null;             foreach (Broker broker in brokers)             {                 if (randomNumber &lt;= broker.Weight)                 {                     selectedBroker = broker;                     break;                 }                  randomNumber = randomNumber - broker.Weight;             }              return selectedBroker;         }           static void Main(string[] args)         {             List&lt;Broker&gt; brokers = new List&lt;Broker&gt;();             brokers.Add(new Broker("A", 10));             brokers.Add(new Broker("B", 20));             brokers.Add(new Broker("C", 20));             brokers.Add(new Broker("D", 10));              // total the weigth             int totalWeight = 0;             foreach (Broker broker in brokers)             {                 totalWeight += broker.Weight;             }              while (true)             {                 Dictionary&lt;string, int&gt; result = new Dictionary&lt;string, int&gt;();                  Broker selectedBroker = null;                  for (int i = 0; i &lt; 1000; i++)                 {                     selectedBroker = GetBroker(brokers, totalWeight);                     if (selectedBroker != null)                     {                         if (result.ContainsKey(selectedBroker.Name))                         {                             result[selectedBroker.Name] = result[selectedBroker.Name] + 1;                         }                         else                         {                             result.Add(selectedBroker.Name, 1);                         }                     }                 }                   Console.WriteLine("A\t\t" + result["A"]);                 Console.WriteLine("B\t\t" + result["B"]);                 Console.WriteLine("C\t\t" + result["C"]);                 Console.WriteLine("D\t\t" + result["D"]);                  result.Clear();                 Console.WriteLine();                 Console.ReadLine();             }         }     }   I'm not so confident. When I run this, Broker A always gets more hits than Broker D, and they have the same weight.  Is there a more accurate algorithm?  Thanks! how can I reset a lost administrative password ,considering that Ubuntu and windows7 are both installed on the computer , considering also that "Boot up the machine,and after the BIOS screen, hold down the left Shift key." didn't logged me to any thing, just continue the loading of the system as normal?? I have a sheet in which I first apply a filter to a certain column to show "Unique records only". Now I have a column which contains, for e.g., values like:  Applepie Applesauce Crabapple Banana Mango   What I need is the count of all visible cells containing the word "Apple". Note that this should exclude the hidden (filtered out) cells. Now I have found out a formula:  `=SUMPRODUCT(SUBTOTAL(3,OFFSET(Sheet1!A:A,ROW(Sheet1!A:A)-MIN(ROW(Sheet1!A:A)),,1))*(Sheet1!A:A="&lt;Text to search&gt;"))`   However the problem with this one is this formula searches for the entire text. NOT just a part of it. How do I modify this formula to return count of cells containing "Apple" i.e. for this example it should return 3 as the result. Why does a Tesla car use an AC motor instead of a DC one? I was just watching a mega factory video and wondered why they use an AC motor which requires a power inverter instead of DC which may be powered directly from their DC battery? Introducing an inverter means more cost (weight, controller, etc).  Are there any reasons for that? What are the differences between an AC and DC motor that may have lead to this decision? Also does anyone know what kind of motor is used in other electric cars? How to show an alert when user navigates to another page without filling the form? I have a form created by a custom module. Now I want to show an alert like ("Please fil the complete form before navigating otherwise lost all the data") if the user navigate to another page without filling all required fields.  How can I do so? Javascript - alert("zoo">"house") returns true