Change Background color on C# console application
How do I change the full background color of the console window in C#?
In the recent post , Werner helped me to redefine a proof environment which can be hidden by an optional boolean argument (showProof). Without an argument, somehow the line/paragraph breaking is not correct. How can one fix this?  \documentclass{scrartcl}  \usepackage{ifthen} \usepackage{environ} \usepackage{amsthm}  \newboolean{showProof}% for showing proofs \setboolean{showProof}{true}% setting the switch \newif\ifstarttheorem  % proof environment (with hide feature) \makeatletter \providecommand{\env@proof@save@env}{} \providecommand{\env@proof@process}{} \RenewEnviron{proof}[2][showProof]{   \gdef\@tmp{#1}%   \ifthenelse{\boolean{#1}}{\par\pushQED{\qed}%     \normalfont\topsep2\p@\@plus2\p@\relax     \trivlist\item[\hskip\labelsep\sffamily\bfseries Proof~#2]\gdef\mycurrenvir{proof}\global\starttheoremtrue\mbox{}\hfill\\*\ignorespaces     \BODY}{\ignorespaces} }[\ifthenelse{\boolean{\@tmp}}{%   \gdef\mycurrenvir{\relax}   \popQED\endtrivlist\@endpefalse }{\ignorespacesafterend}] \makeatother  \begin{document} Just some text \begin{proof}   Just some text in a standard proof. As we can see, there is a problem. \end{proof} \begin{proof}[false]   Proof with optional argument set to \texttt{false}. This proof correctly does   not appear. \end{proof} \begin{proof}[showProof]{(Heading)}   Proof with optional argument (\texttt{true}) and second argument ``(Heading)'' \end{proof} \end{document} Why do we need a Stack Overflow in Portuguese? I have noticed there is a Stack Overflow in language differs from English which is global and mostly used by programmers.  I think there is no need for a site in other languages. Otherwise we will end up with 127 StackOverflow sites. I am afraid that we will lose the amount of people sharing data. I have the following configuration, but I have not able to find any documentation on how to set a maximum backup files on date rolling style.  I know that you can do this with size rolling style by using the maxSizeRollBackups.  &lt;appender name="AppLogFileAppender" type="log4net.Appender.RollingFileAppender"&gt;     &lt;file value="mylog.log" /&gt;     &lt;appendToFile value="true" /&gt;     &lt;lockingModel type="log4net.Appender.FileAppender+MinimalLock" /&gt;     &lt;rollingStyle value="Date" /&gt;     &lt;datePattern value=".yyMMdd.'log'" /&gt;     &lt;layout type="log4net.Layout.PatternLayout"&gt;       &lt;conversionPattern value="%d %-5p %c - %m%n"  /&gt;     &lt;/layout&gt; &lt;/appender&gt; Extracting Z data from point layer using ArcGIS Desktop? I have created a point layer with ~150 points. I have a DEM beneath it, which is where I have taken the X and Y values from.   Does anybody know how I can retrieve the Z values, without using the info button?  I am using ArcGIS Desktop 10. I have licences for the spatial analyst etc tools. Lost/Deleted dpkg (package manager for Debian). How do I get it back? OS: Ubuntu 12.04  Accidentally deleted dpkg. Now, packages can't be installed. So, needs an dpkg installer which installs packages. When does decision tree perform better than the neural network? Callback after the record was created using e.force:createRecord Are there a way to add callback after the user created a record and clicked the Save button?  I am using a custom tab and custom components and open the Create a record modal window using e.force:createRecord, but I was not able to find out how to attach callback to the event.  I even found :     Currently force:createRecord event does not accept any callback method or any after save event to handle custom action. Current force:createRecord always redirects to the newly created record. But in case if you want to just close the force:createRecord popup after save and refresh some other related component using the refresh is not possible.    So, is it really impossible? If so, what are current workarounds here? Question of an isomorphism of $\epsilon_ 0$ and a subset of the rationals. I don't know if this question is appropriated for this site. Anyway, I'm searching for an isomorphism of order $f:K \longrightarrow \epsilon_o $, such that $(K, \leq)$ is a subset(proper or not) of $(\mathbb{Q}, \leq)$ and $\epsilon_o = \sup\{\omega, \omega^{\omega}, \omega^{\omega^{\omega}}, ... \}$. Actually,  I'm not finding neither an isomorphism between $K$ and $\omega^{\omega}$.  Thanks in advanced. When I'm in a phone call, I still get alerts for emails and texts. The noise will play and, if the phone is on Speaker, it will vibrate -- often leading the person I'm talking to wonder what that weird noise was.  Surely there must be a way to silence the phone while you're talking on it. It's very distracting to have beepings going off right next to your ear! Gmail App in my Android device shows correctly all the labels that I created using Gmail through web interface.  Can I create new labels in Gmail on Android device using Gmail App?   Also, ideally, once I create these new labels in Gmail App, I obviously should be seeing the same in Web Interface of Gmail too (Sync!!).  Any ideas? how many instances for a class exists at runtime in java I am trying to make folder that everyone can view and can't copy,modify.    For all answers.I thinking about specially ms office files. I tried following methods  Software  - copy protect    - anti copy    This method can't protect save as and upload  MS office macro    Users can enable,disable macros.  MS office restriction    This is best choice but can't protect from file uploading.   Almost I found the solution. Way is combination of MS office restriction and restrict access from browsers using firewall or antivirus. But I don't exact how to do this. How do I unlock a SQLite database? sqlite&gt; DELETE FROM mails WHERE (`id` = 71); SQL error: database is locked   How do I unlock the database so this will work? What is this plastic chip packing material called? Showing that a function is a tensor I am trying to solve question 4 in Munkres Analysis on Manifolds section 26.  The question is determine if the following is a tensor on $\mathbb{R}^4$ and express those that are in terms of the elementary tensors on $\mathbb{R}^4$.   $f(x,y) = 3 x_1 y_2 + 5 x_2 x_3$   I am trying to follow the definition of a tensor (which I don't think I fully understand) to show this. I know I must find a function $T: \mathbb{R}^4 \rightarrow \mathbb{R}$ that is linear on the $i^{th}$ variable. Since there are only 2, then I believe I have to somehow write $f$ as a projection. I'm just not sure where to  go from here.  Any hints would be great, thanks! What's the difference between absolute path &amp; relative path when using any web server or Tomcat? Universal extractors With an  of archive/compression file formats, is there a single free/open-source command line tool to rule them all? Perhaps something with a consistent / unified set of flags? (note my  friendly )  I once run into a set of aliases meant to largely simplify the task of compressing/de-compressing files with bindings to tar and other utils, but I can't find this anymore.  Update: How can I configure something like atool to not use unzip to extract zip files (which apparently can't handle files larger than 4GB) and to use gunzip instead?  $ aunpack large_file.zip error:  Zip file too big (greater than 4294959102 bytes) Archive:  large_file.zip warning [large_file.zip]:  1491344848 extra bytes at beginning or within zipfile   (attempting to process anyway) error [large_file.zip]:  start of central directory not found;   zipfile corrupt.   (please check that you have transferred or created the zipfile in the   appropriate BINARY mode and that you have compiled UnZip properly) aunpack: unzip ...: non-zero return-code maximal ideal not containing some expression How to enlarge Ubuntu system partition to the left? sda6 is ext4 file system and where my ubuntu is installed, 30GB. sda3 is "ntfs" file system and where my windows is installed, 400GB. sda7 is a 50 GB empty partition with "ext4" file system.   How to move the space of sda7 to sda6 to let sda6 become 50+28=78 GB.    Here's a real case of mine :( I want to add more space into my ubuntu (28.2 GB one) from other emtpy partition space. Dr. StrangeNumbers or: How I Learned to Stop Worrying and Love Floating Point Arithmetic