I messed up with sudo apt-get update and apt-get-repository? Now want to reset both to default
How do I restore the default repositories?
How to keep Heading together with text? I use a very custom style (not mine) and very frequently I get a heading  on the bottom of a page and the next paragraph on the top of the next page. Sometimes this paragraph may be a list or similar. The same is true for listings and the listing description.   Is there a general way how I can adjust the "badness" of these events? Or can I adjust when a section heading would be on the last, say, 3cm of a page it should go to the next page? Or can I say, if a *listing description" is on the top 3cm of a page pull 5 more listing lines from the last page onto this page?   The style I use does not use standard structure tags and environments. But lets call them section, subsection, listing and I will try to migrate them to my lingo. Command aliases in Command Prompt? How do you handle uneven tiles while rendering a tile map? Here is what I want to do with my tile map that I am unsure of. As you can see the top walls are way larger then the bottom and side ones (this is also an issue with my corners which are odd shapes [more like an L then a square] as well as larger then the 40x40px that my current tiles are).    I have also attached the tile sheet I am using for the tiles to show you what the corners and tops look like compared to the rest of the tiles.  What I’m thinking is I might be able to just draw them using the same array I have if I use the tiles width and height instead of a set WxH? I dont know how well this will work, but were the blocks that will have different values will be blocks the player/NPCs can’t step on then it may not be an issue, again I’m not even sure if that is a viable solution.  My code in case you want to see how I'm currently handling it:  (pastebin) (edit:im not handling it, meant how I'm currently doing the map)  tl;dr - how can I take take my 2d looking tile map and change it to have different size tiles? or is there a better way to do what I am trying to do? Is there a name of a method that I should be looking for while googling? How can't install a 338KB app when I have 474MB free? I have a Motorola phone, with 8GB of internal memory.  To my surprise, in a few days, I had 474MB of free space, but couldn't install a 338KB app!! So, clearly the limit of ~25MB referred to in some comments ( and ) are not always the case. A user just told me the following:     Actually it's "25MB or 10% of the storage", whichever is hit first. So   with e.g. 10 GB internal storage, it would hit you as soon as you drop   below 1 GB free. Crazy, but that's what it is.   Actually, that's not correct, because I didn't have to free up 1GB of internal memory. But anyway, half a gigabyte is enough to run a full operational system. I've seen similar complaints of hundreds of MB not enough to install apps ~ 1MB or similar small operations ( and ).  What's wrong here? How to install a QGIS plugin when offline? Due to various IT policies at my workplace, QGIS is installed on a machine that is not connected to the internet. I wish to install a couple of QGIS plugins on this system.  I have downloaded the required plugins from . How do I install them in QGIS? How to create a new object instance from a Type One may not always know the Type of an object at compile-time, but may need to create an instance of the Type.    How do you get a new object instance from a Type? Looking for a short story about a robot evolving to have supernatural powers How to secure my laptop so that hacking by physical access is not possible? How to generate multiple maps where one highlighted attribute changes? I have a layer that contains counties within the state of Washington.    I need to build one map (jpg) for each county.  For that specific map all counties will show as light grey, but the specific county will be green, and the file name will be the county name. What would be the best way to calculate someone's age in years, months, and days in T-SQL (SQL Server 2000)?  The datediff function doesn't handle year boundaries well, plus getting the months and days separate will be a bear.  I know I can do it on the client side relatively easily, but I'd like to have it done in my . Give me a blank Comment box when I am Improving a Suggested Edit The suggested edit screen includes both the suggested edit, and the reason for the edit:        When you click to improve the edit, that comment is left as-is and hidden at the bottom of the post above the save edit button:        At the moment, when I Improve a Suggested Edit, the Comment text for that Edit is retained (though editable). It's unlikely that the comment would still apply (e.g. Suggester added a tag and Approver corrected a typo), so I would rather have the field blank.  Also, it's better to have a blank Comment than an incorrect one... many people don't bother changing the original Comment.  So that box should be blank like this instead: If $F:M\to N$ is a smooth embedding, then so is $dF:TM\to TN$. Children's book with "square triangles" in parallel universe? In the 1960s I read book--an older children's book, I think--which I loved, and still remember, roughly.  I have no idea what the title is or who the author is, and I'm wondering if anyone knows this one:  Scientists had invented a device which they didn't fully understand, and which had puzzling effects.  For example, when a pencil was put into the machine, it disappeared, and then reappeared inside out: The lead was on the outside.  When people went into the machine, they came back dead, having died from fright.  Finally they sent a very open-minded person into the machine.  She was an artist, I think.  She was able to return alive, and described an alternate universe in which geometry was very different.  I distinctly remember that there were supposedly square triangles or four-sided triangles--or was it three-sided squares?  (This is, of course, a literally contradictory claim, but I didn't see the matter as clearly then.)  Thanks! How to use XMLHttpRequest to download an HTML page in the background and extract a text element from it? Finding an example of a discrete-time strict local martingale. iPhone App › Add voice recognition? Degree of Field Extensions and $F(\alpha)$ Suppose that $[F(\alpha):F]$ is odd. Show that $F(\alpha)=F(\alpha^{2})$. Generalize this statement if possible.    Clearly, we always have that $F(\alpha^{2}) \subset F(\alpha)$ by definition of the field generated by $F$ and $\alpha$ (assuming that we have a field extension $K/F$ where $\alpha \in K$). However, how can we show the other inclusion? If the degree is odd, then it follows that $\alpha$ will solve a polynomial of odd degree in $K[x]$ (for the coefficients in $F$). What would be a way to proceed from here? (and as well to generalize the statement?)  I was thinking of using the formula: $[F(\alpha):F]=[F(\alpha):F(\alpha^{2})][F(\alpha^{2}):F]$ and maybe proceed from there.   Thanks for the help. What should I do when I see a "question ban warning"? When I  question, It says following:     Wait! Some of your past questions have not been well-received, and   you're in danger of being blocked from asking any more.      For help formulating a clear, useful question, see: How do I ask a   good question?      Also, edit your previous questions to improve formatting and clarity.   Here is screen-shot:   So, What should I do? (How long to wait?) I guess I've been somewhat ignorant when it comes to the finer details of pcb layout. Lately I've read a couple of books that try their best to lead me on the straight and narrow. Here is a couple of examples of a recent board of mine, and I have highlighted three of the decoupling caps. The MCU is a LQFP100 package and the caps are 100nF in 0402 packages. The vias connect to ground and power plane.     The top cap (C19) is placed according to best practices (as I understand them). The other two are not. I haven't noticed any problems. But then again the board has never been outside the lab.  I guess my question is: How big a deal is this? As long as the tracks are short, does it matter?  The Vref pins (reference voltage for the ADC) also have a 100nF cap across them. Vref+ comes from an onboard TL431 shunt regulator. Vref- goes to ground. Do they require special treatment like shielding or local ground?    EDIT    Thanks for great suggestions! My approach has always been to rely on an unbroken ground plane. A ground plane will have the lowest possible impedance, but this approach may be too simplistic for higher frequency signals. I've made a quick stab at adding local ground and local power under the MCU (The part is an NXP LPC1768 running at 100MHz). The yellow bits are the decoupling caps. I'll look into paralleling caps. The local ground and power are connected to the GND layer and the 3V3 layer where indicated.  The local ground and power are made with polygons (pour). It's going to be a major rerouting job to minimize the length of the "tracks". This technique will limit how many signal tracks can be routed under and across the package.  Is this an acceptable approach? Is it possible to spawn mobs in random places?