I am trying to install libgeos-dev on ubuntu 16.04  This command   apt-get install libgeos-dev   get this error  # apt-get -f install libgeos-dev Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies:  cpp-5 : Depends: gcc-5-base (= 5.4.0-6ubuntu1~16.04.11) but 5.4.0-6ubuntu1~16.04.10 is to be installed  g++-5 : Depends: gcc-5-base (= 5.4.0-6ubuntu1~16.04.11) but 5.4.0-6ubuntu1~16.04.10 is to be installed  gcc-5 : Depends: gcc-5-base (= 5.4.0-6ubuntu1~16.04.11) but 5.4.0-6ubuntu1~16.04.10 is to be installed  gfortran-5 : Depends: gcc-5-base (= 5.4.0-6ubuntu1~16.04.11) but 5.4.0-6ubuntu1~16.04.10 is to be installed   apt-get install gcc-5=5.4.0-6ubuntu1~16.04.11 get the same error as above.  This command   # apt-get install gcc-5=5.4.0-6ubuntu1~16.04.11 \ &gt; gcc-5-base=2.2.20-1ubuntu1~16.04.11   get this error  Reading package lists... Done Building dependency tree Reading state information... Done E: Version '2.2.20-1ubuntu1~16.04.11' for 'gcc-5-base' was not found   this question is different from that    as I said previously, apt-get -f does not work, and I am work on a CLI server which does not have GUI.  how can I install the dependencies?
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?
Does the (relativistic) mass change? Why? I learned recently that when an object moves with a velocity comparable to the velocity of light the (relativistic) mass changes. How does this alteration take place? What is the procedure to become a Cricket Umpire? In cricket how does someone become an umpire at international level? Is there some procedure for this? How are they selected and what is the criteria for this? Why Cooper or Dr. Brand can't send message? Word for obscuring bad or immoral acts with verbiage I have been in many scenarios where people try to obscure/reduce the intensity of a seemingly bad or immoral act using grammar. E.g. Assuming Thomas killed a dog, you could hear something like:     There's essentially nothing wrong about palliating the miserable life   of a despondent being. If there was any issue here, I'd say it's not   consulting a veterinary doctor first but I've come to understand that some people are just straightforward.   How does one react to the above mumbo jumbo? I think there are similar situations also found in law courts. What can this be referred to as? Grammatification, obscure tactics? I heard about nautilus-gksu and would like to install it. Unfortunately, when I try, I get this:  glemi@XPS:~$ sudo apt-get install nautilus-gksu Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package nautilus-gksu   How and where can I get this package? How to Add Background Images in 2.8 and later 2.81a here. I am trying to add a "background image" similar to how , so that I see a screen that looks something like this:    However I can't figure out how/where to access this screen in 2.81a as the UI is wildly different. Any ideas?  I am new to Blender so if you can provide a click-by-click list of instructions it would be enormously appreciated! Normally, LaTeX will only create references for the BibTeX entries cited in the text. Is there a way of extracting these entries into a different .bib file automatically? For example if I have a .bib file with two entries, and only one is cited in a particular text, I need a way of creating a new .bib file with just that reference. How do you use the Dungeon Defender's Portal Gun? The topic pretty much sums up my question. I have not yet figured out how the gun operates aside from the fact that it creates Portal portals. The weapon description indicates that it deals 250+ base damage, but how is that damage applied to the monsters? Is it possible to model a PIN InGasAS photodiode in a SPICE simulator? I want to know if it is possible to model a InGasAs panchromatic PIN photodiode, in accord with datasheet, in simulator SPICE MicroCAP 12. Because the supplier doesn't provide a SPICE model. And if it is possible, which are those steps. Here is data-sheet  And below I will attach an electrical schematic of a transimpedance amplifier with phototdiode, used as a smoke receiver. I want to monitor graphically the impulse of photodiode in function of output of transimpedance for sensibilty. I found a type of photodiode in the Micro-CAP 12 library but it is simple photodiode, which does not match the datasheet. Prove $2^b-1$ does not divide $2^a + 1$ for $a,b>2$ I'm trying to prove $2^b-1$ does not divide $2^a + 1$ for $a,b&gt;2$. Can someone give a hint in the right direction for this? C# object references and Action types When I have a query that checks if a column of type uniqueidentifer does not exist in a table that has a null value then I get no results back. If the subquery does not return a null it works fine and it only happens when using not in.   I know I can just do a not null check in my subquery, but I am curious why this does not work.  Query Example:  select a.guid from tableA a where a.guid not in (select b.guid from tableB AS b)   Working Test:  select 1 where newid() not in (select newid())   Broken Test:  select 1 where newid() not in (select null) What's a way to implement a flexible buff/debuff system? Overview:  Lots of games with RPG-like statistics allow for character "buffs", ranging from simple "Deal 25% extra damage" to more complicated things like "Deal 15 damage back to attackers when hit."  The specifics of each type of buff aren't really relevant.  I'm looking for a (presumably object-oriented) way to handle arbitrary buffs.  Details:  In my particular case, I have multiple characters in a turn-based battle environment, so I envisioned buffs being tied to events like "OnTurnStart", "OnReceiveDamage", etc.  Perhaps each buff is a subclass of a main Buff abstract class, where only the relevant events are overloaded.  Then each character could have a vector of buffs currently applied.  Does this solution make sense?  I can certainly see dozens of event types being necessary, it feels like making a new subclass for each buff is overkill, and it doesn't seem to allow for any buff "interactions".  That is, if I wanted to implement a cap on damage boosts so that even if you had 10 different buffs which all give 25% extra damage, you only do 100% extra instead of 250% extra.  And there's more complicated situations that ideally I could control.  I'm sure everyone can come up with examples of how more sophisticated buffs can potentially interact with each other in a way that as a game developer I may not want.  As a relatively inexperienced C++ programmer (I generally have used C in embedded systems), I feel like my solution is simplistic and probably doesn't take full advantage of the object-oriented language.  Thoughts?  Has anyone here designed a fairly robust buff system before?  Edit: Regarding Answer(s):  I selected an answer primarily based on good detail and a solid answer to the question I asked, but reading the responses gave me some more insight.  Perhaps unsurprisingly, the different systems or tweaked systems seem to apply better to certain situations.  What system works best for my game will depend on the types, variance, and number of buffs I intend to be able to apply.  For a game like Diablo 3 (mentioned below), where nearly any bit of equipment can change a buff's strength, the buffs are just character stats system seems like a good idea whenever possible.  For the turn-based situation I'm in, the event-based approach may be more suitable.  In any case, I'm still hoping someone comes along with a fancy "OO" magic bullet which will allow for me to apply a +2 move distance per turn buff, a deal 50% of damage taken back to the attacker buff, and a automatically teleport to a nearby tile when attacked from 3 or more tiles away buff in a single system without turning a +5 strength buff into its own subclass.  I think the closest thing is the answer I marked, but the floor is still open.  Thanks to everyone for the input. How do I get the Minecraft GUI scale to go back to Auto? I have been playing Minecraft, and I went into the settings to see what could be changed. I was in display and I saw the GUI scale was set to "Auto", which was fairly large. I cycled through the scales until I got back to auto, but the GUI scale was stuck at normal size and wouldn't allow me to make it large again. I know this isn't such a big problem, but I really like big font and this is a constant bother to me. Why would a company like Apple be buying back its own shares? What is the reason that a company like AAPL is buying back its own shares? Does it have too much cash and it doesn't know what to do with it? So it is returning the cash back to investors? Wrong Java resource bundle loaded How to show that a set of discontinuous points of an increasing function is at most countable I would like to prove the following:       Let $g$ be a monotone increasing function on $[0,1]$. Then the set of points where $g$ is not continuous is at most countable.     My attempt:    Let $g(x^-)~,g(x^+)$ denote the left and right hand limits of $g$ respectively. Let $A$ be the set of points where $g$ is not continuous. Then for any $x\in A$, there is a rational, say, $f(x)$ such that $g(x^-)\lt f(x)\lt g(x^+)$. For $x_1\lt x_2$, we have that $g(x_1^+)\leq g(x_2^-)$. Thus $f(x_1)\neq f(x_2)$ if $x_1\neq x_2$. This shows an injection between $A$ and a subset of the rationals. Since the rationals are countable, $A$ is countable, being a subset of a countable set.    Is my work okay? Are there better/cleaner ways of approaching it? Is "data" treated as singular or plural in formal contexts? My non-native English speaking friend just asked me: "Data is..." or "Data are..."?  I said both but that's because I've been desensitized from reading/writing both (especially from writing code and adding quick comments).  My question: Is it acceptable to utilize either for a university paper? Or is one safer than the other (when confronted with stickler professors)?    Related questions: Proving there is a sequence convergent to a limit point of a set without axiom of countable choice? Often, we use a construction like this: Given a subset $ A $ of a metric space and its limit point $ a $, we know that for every $ \epsilon &gt; 0 $ there is another point $ x $  different from $ a $ such that $ d(x,a) &lt; \epsilon $. So for every natural $ n $ we let $ a_n $ be such a point within $ 1/n $ of $ a $, which gives us a sequence convergent to $ a $.  My question is, is the axiom of countable choice needed for this construction, or is it formally correct just in ZF? I'm describing a situation that happened in the past. To explain it, I want to use a description that is both true now and true when the situation happened.  Specifically, I want something like:     She touched me where my neck met my collarbone.   Since my neck is still attached to my collarbone (thankfully), I'm wondering if I shouldn't use the present tense here instead:     She touched me where my neck meets my collarbone.   Which is preferable, and why?