I want to be able to temporarily enable non-free or contrib but I don't want to keep them enabled all the time as I try to utilize open source software as much as possible.
How do I get to the Universe Repository in supported versions of Ubuntu?
How does the double strike mechanic interact with other mechanics like lifelink or trample? I understand that the double strike mechanic allows a creature to attack in both a first strike combat damage step and a normal combat damage step.  It's clear that when a creature with no other abilities aside from double strike is blocked that even if the defender has lethal damage marked in the first strike step that the additional damage does not carry forward to the player.  How does this view of double strike change with relation to trample and lifelink?  I believe the correct interpretations are (not accounting for other effects or abilities) that 2 times the attacker's power is marked as damage on the defender.  For trample this amount is reduced by the defender's toughness and additional damage carries forward as normal.  Similarly for lifelink the active player gains life equal to 2 times the attacker's power.  Thus a 10/10 trampling double striking life linker blocked by a 1/1 creature would deal 19 points of trample damage and the active player would gain 20 life.  Is this interpretation correct? Cannot delete directory with Directory.Delete(path, true) I'm using .NET 3.5, trying to recursively delete a directory using:  Directory.Delete(myPath, true);   My understanding is that this should throw if files are in use or there is a permissions problem, but otherwise it should delete the directory and all of its contents.  However, I occasionally get this:  System.IO.IOException: The directory is not empty.     at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)     at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive)     at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive)     ...   I'm not surprised that the method sometimes throws, but I'm surprised to get this particular message when recursive is true.  (I know the directory is not empty.)  Is there a reason I'd see this instead of AccessViolationException? Is there anyway to find and remove ligatures from tex file? Sometimes when I copy/paste a text to Winedt, it shows perfect, but when I compile it to Pdf, some issues appear, e.g. finding becomes nding.  I am wondering if there is any way to search and find these characters?  Here is an example file (needs utf8 encoding).  \documentclass{article} \begin{document} ﬁ \end{document} Tweaking AStar to find closest location to unreachable destination I've implemented AStar in Java and it works ok for an area with obstacles where the chosen destination is reachable.  However, when the destination is unreachable, the calculated "path" is in no way to the closest location (to the unreachable location) but is instead some random path.  Is there a feasible way to tweak AStar into finding the path to the closest location to an unreachable destination? Given Ohm's law, how can current increase if voltage increases, given fixed resistance? According to Ohm's law, $V=IR$ (voltage equals current times resistance).  So if the voltage increases, then the current increases provided that the resistance remains constant.  I know that Voltage or potential difference means work done per unit positive charge in bringing that charge from one point to another.  So according to Ohm's law, if the work done per unit charge increases then current will increase. How can this be true? Point out my mistakes. Let $x*y=\gcd(x,y)$ on $D_n=\{x\in \mathbb N:x |n\}$. I have to prove that $(D_n,*)$ is a commutative monoid and I have a problem when finding the identity element.  $x*e=x$  So $gcd(x,e)=x \to e=xk,k\in \mathbb N^*$ and $e \leq n$  A good $e$ is $0$ but it's not in $D_n$ How does editing work? It is possible for users to edit an existing post.   How do edits work? Who may edit a question or answer? How can you tell what has been changed between edits?      For more information, see "" in the .     Related: I'm trying to search and replace a string in all files matched by grep: grep -n 'foo' * will give me output in the form: [filename]:[line number]:[text]  For each file returned by grep, I'd like to modify the file by replacing foo with bar. Before I start, don't lecture me on the fact that FAT32 is old and hasn't been updated for nearly 20 years. Right now I have sorted that. I am trying to install Ubuntu Linux onto a 64GB flash drive and it wants me to format it to one of the EXT file systems.  The problem is if I put the flash drive into a Windows PC, I can't use it. I also can't install the required software onto every Windows PC that I will use. When I tried to install it on FAT32 I got an error and there is no option for NTFS.  Does anyone know how I could do this? Maybe a Windows based tool? Thanks in advance. Displaying attachments on visual force page In order to solve  $$y''-2y'+y=te^t$$ I did:  $$y = (at+b)e^t\implies\\ y' = ate^t+ae^t+be^t\implies \\y''= ate^t+2ae^t+be^t$$  but when I put these in the differential equation I'm getting zeros eveywhere. Does somebody know what I'm doing wrong? Stacking symbols Compact topological space with closed graph implies continuity Let $X,Y$ be topological spaces and $f:X \rightarrow Y$  If $Y$ is compact and $G(f)$ (graph of $f$) is closed, show that $f$ is continuous.   I consider an open set in $X$, and as $G(f)$ is closed, $(X \times Y)-G(f)$ is open. And I guess I need to do something here. Then I can get some open sets. Also, I notice that compact is something relate to "finite". I guess I can use the compactness to do finite intersection or union and get the result finally.  But what should I do in the middle or I am not even on a right track. I'm trying to create a bowling animation and I want the ball to hit the pins. I already added the Rigid Body physics to the objects but can't get the ball to move.  Obviously I could just add keyframes but   that seems to interfere with the Rigid Body physics it doesn't look too realistic.   Is there a way to add some kind of motion to the ball? Why can't I change the permissions of files I have access to? Understanding imaginary exponents Remove dots & Page numbers from TOC I am using example given here by @stephan .  Works great however I want to get rid of dots and page numbers.  I added this to the preamble   \let\Contentsline\contentsline  \renewcommand\contentsline[3]{\Contentsline{#1}{#2}{}}   that removed the page numbers, but do not know how to remove the dots. I would appreciate your help. Its hard to get result without understanding the basics. Let's say that you want to output or concat strings. Which of the following styles do you prefer?   var p = new { FirstName = "Bill", LastName = "Gates" }; Console.WriteLine("{0} {1}", p.FirstName, p.LastName); Console.WriteLine(p.FirstName + " " + p.LastName);   Do you rather use format or do you simply concat strings? What is your favorite? Is one of these hurting your eyes?  Do you have any rational arguments to use one and not the other?  I'd go for the second one. How to create a timer using tkinter? Metapost label based on variable value I want to label a scale based on a variable value and I wrote a metapost code like this.  $ := 1; for i = -.3cm step .6cm until 3.6cm:     label.bot(str$,(i,-3.7cm));     $ := incr($); endfor;   It just labels "$" instead of its value. How to output the variables value?