Was doing regular update via Ubuntu software got unmet dependency error for Python 3.5.  Tried apt-get upgrade got the error below.   What next?  $ sudo apt-get upgrade Reading package lists... Done Building dependency tree        Reading state information... Done E: The package python3.5 needs to be reinstalled, but I can't find an archive for it.  $ apt-cache policy python 3 python 3.5 python:   Installed: 2.7.11-1   Candidate: 2.7.11-1   Version table:  *** 2.7.11-1 100         100 /var/lib/dpkg/status python:   Installed: 2.7.11-1   Candidate: 2.7.11-1   Version table:  *** 2.7.11-1 100         100 /var/lib/dpkg/status python3.5-cups:   Installed: (none)   Candidate: (none)   Version table: python3.5-reportlab-accel:   Installed: (none)   Candidate: (none)   Version table: python3.5-venv:   Installed: (none)   Candidate: (none)   Version table: libpython3.5:   Installed: 3.5.2-2ubuntu0~16.04.3   Candidate: 3.5.2-2ubuntu0~16.04.3   Version table:  *** 3.5.2-2ubuntu0~16.04.3 100         100 /var/lib/dpkg/status python3.5:   Installed: 3.5.2-2ubuntu0~16.04.1   Candidate: 3.5.2-2ubuntu0~16.04.1   Version table:  *** 3.5.2-2ubuntu0~16.04.1 100         100 /var/lib/dpkg/status python3.5-minimal:   Installed: 3.5.2-2ubuntu0~16.04.1   Candidate: 3.5.2-2ubuntu0~16.04.1   Version table:  *** 3.5.2-2ubuntu0~16.04.1 100         100 /var/lib/dpkg/status python3.5-apt:   Installed: (none)   Candidate: (none)   Version table: python3.5-renderpm:   Installed: (none)   Candidate: (none)   Version table: python3.5-doc:   Installed: (none)   Candidate: (none)   Version table: python3.5-dbus:   Installed: (none)   Candidate: (none)   Version table: python3.5-lxml:   Installed: (none)   Candidate: (none)   Version table: python3.5-gdbm:   Installed: (none)   Candidate: (none)   Version table: libpython3.5-stdlib:   Installed: 3.5.2-2ubuntu0~16.04.1   Candidate: 3.5.2-2ubuntu0~16.04.1   Version table:  *** 3.5.2-2ubuntu0~16.04.1 100         100 /var/lib/dpkg/status libreoffice-l10n-3.5:   Installed: (none)   Candidate: (none)   Version table: libpython3.5-minimal:   Installed: 3.5.2-2ubuntu0~16.04.1   Candidate: 3.5.2-2ubuntu0~16.04.1   Version table:  *** 3.5.2-2ubuntu0~16.04.1 100         100 /var/lib/dpkg/status libmwaw-0.3-3v5:   Installed: (none)   Candidate: (none)   Version table: povray-3.5:   Installed: (none)   Candidate: (none)   Version table: N: Unable to locate package 3
Running Synaptic I get the following error message:  E: The package hl1440lpr needs to be reinstalled, but I can't find an archive for it. E: Internal error opening cache (1). Please report.   Upon accepting the message, Synaptic quits.
I've got bunch of files with ill-formed numbering:  prefix-#.ext       | for files with number 1-9 prefix-##.ext      | for files with number 10-99 prefix-###.ext     | for files with number 100-999   Due to further processing I need all of their names to be in format: prefix-###.ext. Is there any easy way to do that? What ways could you create a data extension that contains all the subscribers (SubscriberKeys) that are currently “in” a Journey (Journey Builder)?  The Journey I would like to do this for is a complex activity with multiple decision branches resulting in multiple possible journey durations. For example; if the customer didn’t open Email1 after 2 days, then send Email2; else Exit Journey. If the customer didn’t open Email2 after 2 days, then send Email3; else Exit Journey. Wait 2 more days, then End Journey. The minimum journey duration for the above example is 2 days, while the maximum is 6 days.  Note that I don’t want a list of subscribers that “entered” a Journey, but a list of the ones that are “currently in” a Journey and have not yet exited. Answer must account for non-standard Journey exits including Unsubscribes/Contact Deletes, etc. Manga where the protagonist need to solve girl's quests How do I choose between "while" and "whilst"? When should whilst be used instead of while?  For example, should I use the first or the second sentence?      They don't do this whilst they do that.   They don't do this while they do that.   Which would be correct? Toolbar options are not displaying in Edit Profile - About me section How to get less spacing in math mode LaTeX commands like this:  Here again, four different simulations are run on networks of size  $C^{G} = 25 \times\ 25 = 625$, $C^{G} = 50 \times\ 50 = 2500$, $C^{G} = 250 \times\ 250 = 62500$, and $C^{G} = 500 \times\ 500 = 250000$...   When compiled generate the following:    The spacing in math mode really irritates me. There's too much white space around the equal sign, and the multiplication sign has more right padding than left padding. Is there any way to reduce this spacing? Is there a simple way to reduce the amount of white space around the TikZ in the MWE pasted below (in particular in the x direction)?  \documentclass{article} \usepackage{xcolor} \usepackage{tikz}  \begin{document} VRCRCRCRCC \tikz[baseline] \node[fill=yellow!30, anchor=base,inner sep=0.7pt, outer xsep=-2pt] {ABCDE}; VBZBZBBBBG \end{document}     PS: This question may be a duplicate of . I posted it nevertheless since 1) my example is much simpler (and hence may have a much simpler solution) and 2) I don't see how the answers given there could help in my case. If you disagree feel free to mark my question as "exact (!) duplicate of ...". I need this desperately but can't find it. Am I doing something wrong? Is there a travelling speed of for electric field? If yes, what is it? Consider two circuits containing a battery, bulb, switch and conducting wires but of length 1 meter in one case and 1000KM in other. When switched on at the same time both the bulbs glow instantaneously. I think it is because, electric filed travels from positive terminal of battery to negative terminal through wire almost instantaneously.  My question is there any speed for this electric field? If yes, what is it? By any modification in this circuit is it possible to induce any delay in glowing the bulb? Run Trigger As A Specific User (or Profile)? Is this possible?  I'm not finding help, Google or otherwise, for this.  Situation:  A trigger runs and cycles through groups of Opportunities.  Some of these Opportunities are Closed Won, and most users of the system are not allowed to Edit Closed Wons (especially the Sales team).  But I need this trigger to be able to touch the Opps (it's fired when the User touches the Account and subsequently a group of Opps under that account gets touched).  It is a VALIDATION RULE blocking them.  Ultimately, I may investigate, if no other option, setting a HIDDEN FIELD on the Opp before updating, then clearing if after, and putting bypass code in the Validation rule.  This is a backup plan.  I'd like to know how to "Run As" a specific profile though.  Anyone have an example of this?  I have three profiles out of twelve that can touch Closed Wons... Adjectives or compound noun? Transferring a Windows 8 license and proper un- and reinstallation Long story short  I have two computers: a laptop and a desktop computer. Both have Windows 7 on them.  I buy the Windows 8 Pro upgrade. To see if it screws up anything, I install it on my laptop as a guinea pig. I intend to use Windows 8 for my main computer, my desktop, but I want to test it on the laptop, so I know I don’t risk losing access to my desktop and the data on it. I never use my laptop, and only used it, because it already has a Windows 7 installation on it.  The problem  At some point, I must have entered the license key on my laptop, because when I go to the activation screen on my desktop, I get this:    Uh-oh. I can’t use the key on my desktop. Now how the hell do I transfer the key from my laptop to my desktop computer?  Answers and suggestions so far  Let’s just say that I tried everything possible to get some answers on this matter. The best response I got from Microsoft is this:     To install Windows 8 on your desktop, do the following:         Uninstall Windows 8 on your laptop   Afterwards, install Windows 8 on your desktop   If it won’t activate, call product activation at (...)      I am not a fan of that last point. The error message does allude to such a solution, however:     If you’ve reinstalled Windows or made changes to your hardware recently, you may be able to use your current key.   The question  My main question is this: has anyone been in a similar situation, and if so, what did you do to resolve this?  Failing that, what is the proper way to   uninstall the Windows 8 installation on my laptop, and reinstall the Windows 8 installation on my desktop?   Ad 1  I have already tried using the “reset” feature on my laptop, but that only resulted in a new Windows 8 installation that was already activated. But which is the right way to uninstall the installation in a way that allows me to use the license key on the desktop computer?  Ad 2  Which is the proper way to reinstall the Windows 8 installation on my desktop computer? Why do I even have to reinstall it in the first place?  I won’t get around to do this, until my USB key with 3.0 support arrives in the mail, but it is going to be a while, until I find a assuaging response to the best way to go about this anyway. How do I use Moq to mock an extension method? I am writing a test that depends on the results of an extension method but I don't want a future failure of that extension method to ever break this test. Mocking that result seemed the obvious choice but Moq doesn't seem to offer a way to override a static method (a requirement for an extension method). There is a similar idea with Moq.Protected and Moq.Stub, but they don't seem to offer anything for this scenario. Am I missing something or should I be going about this a different way?  Here is a trivial example that fails with the usual "Invalid expectation on a non-overridable member". This is a bad example of needing to mock an extension method, but it should do.  public class SomeType {     int Id { get; set; } }  var ListMock = new Mock&lt;List&lt;SomeType&gt;&gt;(); ListMock.Expect(l =&gt; l.FirstOrDefault(st =&gt; st.Id == 5))         .Returns(new SomeType { Id = 5 });   As for any TypeMock junkies that might suggest I use Isolator instead: I appreciate the effort since it looks like TypeMock could do the job blindfolded and inebriated, but our budget isn't increasing any time soon. How to cite sources written in a different language than English? Assume one wants to cite a paper written in a different language than the article citing said paper (e.g., ones own article is written in English, but the source is French).   How to properly handle citation in such a case?  Do I cite the original (French) title or a translated title? If I use a translated title, people might have a hard time to find the source; if the original (French) title is cited, people might have a hard time understanding it. How to make `man` work for shell builtin commands and keywords? Simple Hadamard Circuit gives incorrect results? Which of these two is more correct and why?   The sun shines on my little tree. The sun shines upon my little tree.   From what I've read in dictionaries both are acceptable, however I would like to know if there are subtleties that might arise due to, for example, the context. If a character is drunk, what are the penalties associated to it? Are there any benefits to it? I do remember a special prestige class for monks about it, but I don't remember anything specific in the core rulebook. LED accent light that slowly dims when removed from power source We've all played with different transformers and power supplies that have an LED indicator that dims before going out entirely when the power supply is unplugged.  I'm working on designing an accent light which would involve a translucent crystal light source (probably made of resin or glass if I can find a cheap supplier) containing LEDs and certain electronics, and a base which would supply electrical current. For gamers, it might appear somewhat like a Welkynd Stone. My question is what is the simplest way to cause the LEDs to dim slowly (say over 2-10 seconds) when the crystal is removed from the base? Similar to the unplugged transformer, but with an intentional and controlled dimming.  I just purchased some LEDs and plan to build a test system over the next month or two. These LEDs are in a 5 meter strip divided into 3 LED series run in parallel and rated at 12v. I do not know the amp rating of the LEDs, but I'm guessing in the 20ma range (what I've read is average for bright white). I will probably use 4 series totaling 12 LEDs in the test build.   If I have the transformer from AC power built into the base, I was guessing I could use a number of capacitors in parallel with a resistor to store electricity and slowly discharge it into the LEDs. But I'm a self-taught enthusiast so I honestly don't know if this would actually work. Nor do I know the number and ratings of capacitors and resitor that I would need.  If I have the transformer built into the crystal, the transformer and rectifier would retain a small amount of electricity, but I don't think it would be nearly enough to provide the effect I'm looking for, so something else would have to be added to make it last for several seconds.  A nicad battery with control electronics is literally my last resort for achieving this effect, and I'll probably give up on the idea before I go programming my own circuit board.  That's my main question. If anyone wants to toss in some thoughts on how to connect the crystal to the base, I'm open to suggestions. My original plan was to simply have a direct copper to copper connection with the base. But I've recently been considering an EM charging system (akin to a powermat or  my dad has). The concern with the wireless is providing consistent power to the LEDs, though it is safer. I've also learned quite a bit already about constructing the power supply from perusing this SE site, but if anyone has any suggestions for that, too, I'm all ears. For the test build I'll probably hook it up to a computer power supply, or a laptop power supply if I can find a 12v one at Goodwill or the local electronics parts store.  If I get the test model to work, I plan on building possibly a dozen of these for accent lighting around my home. Inequality: $x^2+y^2+xy\ge 0$ I want to prove that $x^2+y^2+xy\ge 0$ for all $x,y\in \mathbb{R}$.  My "proof":  Suppose wlog that $x\ge y$, so $x^2\cdot x\ge x^2\cdot y\ge y^2\cdot y=y^3$ (because $x^2\ge 0$ so we can multiply both sides by it without changing the inequality sign) giving $x^3\ge y^3$. Substracting we have $x^3-y^3\ge 0$ or $(x-y)(x^2+xy+y^2)\ge 0$. Since $x\ge y$ we can divide by $x-y$ to get $x^2+xy+y^2\ge 0$.  Is it right?  Thanks for your help!