I upgraded to the RC some time ago and the sources.list is sort of screwed up, meaning I'm getting a lot of 404's when updating. Could someone please post an original sources.list for Maverick?
There are now errors when updating and I cannot install most software due to a corrupted  /etc/apt/sources.list   file. Is there a copy I can download to replace it?  The file would be for Ubuntu 12.04 (Final Beta) in the United States.
Put numbers in legend using pgf pie I would like to have the numbers that are inside the pie chart to be in the legend. How can I make that happen? Here is the MWE: \documentclass{article} \usepackage{pgf-pie} \usepackage{tikz} \usetikzlibrary{shadows}  \begin{document} \begin{tikzpicture} \pie[text=legend,style=drop shadow,radius=2]{51.3/Protestant, 23.9/Roman Catholic, 3.3/Other Christian, 1.7/Jewish, 0.7/Buddhist, 0.6/Muslim, 0.4/Hindu, 1.2/Other religions, 16.1/No religion } \end{tikzpicture} \end{document}  EDIT: I also have another pie chart, where the text is quite long. How can I set the width of the text so that it wraps around before the page ends? Here is what it looks like:  I forgot that PGF-PIE was not on CTAN. Here is a link to the google source: Calling the base constructor in C# What are the criteria used to represent Stack Exchange sites on the sites page? (Grid view) I noticed that  has been changed, and by default sites are shown by balloons.  What is not clear to me is why some sites are shown with a bigger balloon than other sites. For example, WordPress Answers has less questions, answers and users than Programmers, but its balloon is bigger. What are the criteria used to show the sites on that page? The setuid permission bit tells Linux to run a program with the effective user id of the owner instead of the executor:  &gt; cat setuid-test.c  #include &lt;stdio.h&gt; #include &lt;unistd.h&gt;  int main(int argc, char** argv) {     printf("%d", geteuid());     return 0; }  &gt; gcc -o setuid-test setuid-test.c &gt; ./setuid-test  1000  &gt; sudo chown nobody ./setuid-test; sudo chmod +s ./setuid-test &gt; ./setuid-test  65534   However, this only applies to executables; shell scripts ignore the setuid bit:  &gt; cat setuid-test2  #!/bin/bash id -u  &gt; ./setuid-test2  1000  &gt; sudo chown nobody ./setuid-test2; sudo chmod +s ./setuid-test2 &gt; ./setuid-test2  1000     Wikipedia :     Due to the increased likelihood of security flaws, many operating systems ignore the setuid attribute when applied to executable shell scripts.   Assuming I'm willing to accept those risks, is there any way to tell Linux to treat the setuid bit the same on shell scripts as it does on executables?  If not, is there a common workaround for this problem? My current solution is to add a sudoers entry to allow ALL to run a given script as the user I want it run as, with NOPASSWD to avoid the password prompt. The main downsides to that is the need for a sudoers entry every time I want to do this, and the need for the caller to sudo some-script instead of just some-script How many 6-letter permutations can be formed using only the letters of the word, MISSISSIPPI? I understand the trivial case where there are no repeating letters in the word (for arranging smaller words) but I stumble when this isn't satisfied. I'm wondering if there's a simpler way to computing all the possible permutations, as an alternative to manually calculating all the possible 6-letter combinations and summing the corresponding permutations of each. In addition, is there a method to generalize the result based on any P number of letters in a set with repeating letters, to calculate the number of n-letter permutations?  Sorry if this question (or similar) has been asked before, but if it has, please link me to the relevant page. I also apologize if the explanation is unclear, or if I've incorrectly used any terminology (I'm only a high-school student.) If so, please comment. :-) For macro photography, how do I choose between a compact camera or a mirrorless interchangeable-lens camera (without considering a lens)?   What indicator(s) should I look for when making the choice? What exactly do the colors in htop status bars mean? Grep equivalent for Windows 7? Is there a command prompt  equivalent for Windows 7? That is, I want to filter out the results of a command:  Bash use:  ls | grep root  What would it be from a Windows command prompt? Is it possible to make a simple query to count how many records I have in a determined period of time like a year, month, or day, having a TIMESTAMP field, like:   SELECT COUNT(id) FROM stats WHERE record_date.YEAR = 2009 GROUP BY record_date.YEAR   Or even:  SELECT COUNT(id) FROM stats GROUP BY record_date.YEAR, record_date.MONTH   To have a monthly statistic.   Thanks! Transparent textured planes produce black artifacts Fantasy book where a young prince becomes a mage When I was younger (11-12 years old, so the early 2000s) I once read a story where a young boy, who may have been either a young prince or a squire of some sort, is recruited by a wizard and taken to a city to train as a mage.  I seem to remember him living in dorms with the other children at this school, until he gets into difficulty with another of the boys in the dorm. He is kicked out of the dorms and ends up living above a blacksmith shop (I think).  I remember it being the first book in a series of books of which there were about 3 out at the time. I think one of the stories was about the boy going to a tower to do something or other.  Does anyone have any idea what this book series is? I haven't been able to find it for years now but it was a story I really loved. Compactness and axiomatisability Let $C$ be an axiomatisable class of structures for some given first-order signature, i.e. there is a set $T$ of sentences whose models are exactly the members of $C$.  Apparently it follows from the compactness theorem that: If $C$ contains arbitrarily large finite structures then it must contain an infinite structure.   Can someone explain this result? The compactness theorem tells me that $T$ has a model if each finite subset of $T$ has a model but I don't see how this relates to the size of structures in $C$. How is light emitted by an incandescent lamp I am looking for better understanding of how light is produced in an incadescent lamp. More specifically: how is the kinetic energy of electrons converted to light?  Are we dealing with interband transitions or with intraband relaxation involving photons? Is this Bremsstrahlung (electrons lose their energy as light when colliding with crystal impurities/defects)? Or is this a thetmal radiation resulting from Joule heating? How is the emission affected by presence of impurities and imperfections of the crystal lattice? Do phonons play a role? What properties make a material more suitable for use as a filament: should it be a metal? Should it have a crystalline structure? Will any metal produce light, if a high current is passed through it in vacuum?  Update The term describing the processes in the incadescent lamp is , see the posts on this subject  and . The nautilus-open-terminal package adds a menu/right-click option to open a terminal in the current directory.  I want to change this from opening gnome-terminal to opening terminator. , however these instructions do not appear to be valid any more, and I can't find any place in the system settings where the default emulator can be changed.  I also tried:  $ sudo update-alternatives --config x-terminal-emulator   choosing  * 0            /usr/bin/terminator               50        auto mode   But this does not appear to have any effect. Any idea how I can get this to work? Just like if we have any quadratic equation which has complex roots, then we are not able to factorize it easily. So we apply quadratic formula and get the roots.  Similarly if we have a cubic equation which has two complex roots (which we know conjugate of each other) and one fractional root, then we are not able to find its first root by hit &amp; trial.  So my question is like quadratic formula, is there exist any thing like cubic formula which help in solving cubic equations?  For example, I have an equation $$2x^3+9x^2+9x-7=0\tag{1}$$ and I have to find its solution which I am not able to find because it has no integral solution. Its solutions are $\dfrac {1}{2}$, $\dfrac{-5\pm \sqrt{3}i}{2} $, I know these solutions because this equation is generated by myself.  So how can I solve equations like these?  Also while typing this question, I thought about the derivation of quadratic formula, which is derived by completing the square method.  So I tried to apply ‘completing the cube’ method on the general equation $ax^3+bx^2+cx+d=0$ but it didn't help.  So please help me in finding a cubic formula or to solve the equations like given in example by an alternative method. How do I enter a strong (long) DKIM key into DNS? Probability Number A greater Number B Given $a \in \{1,2,...,250\}$ and $b\in \{0,1,...,1000\}$  What is the probability that $a &gt; b$?  I know there already is  question with a very similar question, however it's over an interval of $\mathbb{R}$ so I hope there is another way opposed to the Integral used in the formal solution.  How does one go about calculating said probability? Merge duplicate records into 1 field Copy every 512 bytes and skip next 8 bytes from Input file to a Output file I have an input file which is always a multiple of 520 bytes . i,e Input file 1- 1040 bytes Input file 2- 5200 bytes   I need to copy every 512 bytes from input file and skip the next 8 bytes from input files to output file i.e Output file data = Copy first 512 bytes of input file - Skip 8 bytes - Copy second 512 bytes of input file- Skip 8 bytes --.. Therefore, my output file should always be multiple of 512 bytes Input file 1- 1040 bytes        Output file 1 - 1024 bytes Input file 2- 5200 bytes        Output file 2 - 5120 bytes  I need to do this in shell script, any help here please. I often have to write up reports based on the analysis of some data. I use R to analyse the data and export tables, figures, and text. This is then included into a LaTeX document either using input or Sweave ().  However, when I collaborate with others, I sometimes need to provide a document in Open Office / MS Word format.  Question:  Thus, assume the simplest scenario   I have a LaTeX document with text, tables, and figures I need to export this reliably into Open Office or MS Word format: this includes mathematical formulas, table formatting, and quality figures) I don't need to go back from MS Word to LaTeX   What is a reliable, efficient, and preferably free process?  Initial Thoughts:   Export to HTML,  LaTeX - LyX - ODF Use odfWeave  that deals with some specific issues associated with LaTeX to Open Office conversion    I was hoping that there is an expert out there who has worked out a good system already.