In compass we use a magnet or magnetized metals to interact with the earth magnetic fields, Can't we just use iron or any unmagnetized metal?
We know that the needle that is used in a compass is a permanently magnetized ferromagnetic material and commonly steel is used.  If we used an unmagnetized iron needle instead, would it still align with Earth's magnetic field lines? If yes, how?
Having problems with listings and UTF-8. Can it be fixed? I'm having some problems with listings and UTF-8 in my document. Maybe someone can help me? Some characters work, like é and ó, but á and others appear at the beginning of words...  \documentclass[12pt,a4paper]{scrbook} \KOMAoptions{twoside=false,open=any,chapterprefix=on,parskip=full,fontsize=14pt}  \usepackage[portuguese]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{listingsutf8}  \usepackage{inconsolata} \lstset{     language=bash, %% Troque para PHP, C, Java, etc... bash é o padrão     basicstyle=\ttfamily\small,     numberstyle=\footnotesize,     numbers=left,     backgroundcolor=\color{gray!10},     frame=single,     tabsize=2,     rulecolor=\color{black!30},     title=\lstname,     escapeinside={\%*}{*)},     breaklines=true,     breakatwhitespace=true,     framextopmargin=2pt,     framexbottommargin=2pt,     extendedchars=false,     inputencoding=utf8 }  \begin{document} \begin{lstlisting} &lt;?php  echo 'Olá mundo!'; print 'Olá mundo!'; \end{lstlisting}  \end{document} \end{lstlisting} Batch renaming files Prior to doing some benchmarking work how would one free up the memory (RAM) that the Linux Kernel is consuming for its buffers and cache?    Note that this is mostly useful for benchmarking. Emptying the buffers and cache reduces performance! If you're here because you thought that freeing buffers and cache was a positive thing, go and read . The short story: free memory is unused memory is wasted memory. I want my intent to be launched when the user goes to a certain url: for example, the android market does this with  urls. so does youtube. I want mine to do that too. Is it possible to bring built-in lightning components into aura component? I have a form that needs to let the user select 3 out of 5 products, something similar to Order > Add Product (Modal). I was wondering if there was a way to bring that piece into my component (markup) and add some sort of filter that only shows the products I want to show.  What I found so far:  &lt;lightning:listView objectApiName="Products2" listName="productsView" showActionBar="true" enableInlineEdit="true" showRowLevelActions="true"/&gt;   But Product2 is not supported for that component.  also these from browser inspector:  forceMultiAddUsingLVM forceListViewManager   These are data-aura-class attributes when rendered.  I'm looking for directions here. Thanks in advance. Are there solutions that can limit the CPU usage of a process? I am using an old laptop and doing heavy processing that needs high CPU usage for a long time (~30mins - 2hours). When the process puts heavy load on CPU for a long time, CPU overheats and computer shuts down. I don't want to use a cooler/stand because I am carrying this laptop around and working outside home.  Is there a way/application that I can limit CPU usage of a process in Windows?  Note: Setting the priority of the process from task manager does not work.  Note 2: Fans are clean. mysql_fetch_array, mysql_fetch_assoc, mysql_fetch_object Crash adding comment The SE iOS app crashes when adding comments to certain posts.  It was discovered to be if the "Add an Answer" button was visible, not just responding to a deleted comment.  Edited to match answer. Previous steps were not the only use case, and this error keeps getting re-reported in different ways. ARMA lag selection for ARMA-GARCH models About the continuity of the function $f(x) = \sum\limits_k2^{-k}\mathbf 1_{q_k \leq x}$ Let $q: \mathbb{N} \to \mathbb{Q}$ be a bijection and denote the image of $k \in \mathbb{N}$ by $q_k$.  Let $f: \mathbb{R} \to (0,1)$, $$ f(x) = \underset{q_k \leq x}{\sum_{k \in \mathbb{N}}} 2^{-k} $$  Show that:  1) $f$ is strictly increasing  2) $f$ is continuous at $x$ iff $x \in \mathbb{R} \setminus \mathbb{Q}$.  My work:  Let $x, y \in \mathbb{R}$, $x &lt; y$. Then there exists $q_n \in \mathbb{Q}$ s.t. $x &lt; q_n &lt; y$. Now $$ f(x) = \underset{q_k \leq x}{\sum_{k \in \mathbb{N}}} 2^{-k} &lt; \underset{q_k \leq x}{\sum_{k \in \mathbb{N}}} 2^{-k} + 2^{-n} \leq \underset{q_k \leq y}{\sum_{k \in \mathbb{N}}} 2^{-n} = f(y) $$ so $f$ is strictly increasing.  I think my proof of 1) is ok, but how can I prove 2)? Georeferencing scanned map using ArcMap? Can a Windows virus transfer to Ubuntu? Trailing spaces on comment link format bash if not multiple conditions without subshell? I want to combine multiple conditions in a shell if statement, and negate the combination.  I have the following working code for a simple combination of conditions:  if [ -f file1 ] &amp;&amp; [ -f file2 ] &amp;&amp; [ -f file3 ] ; then   # do stuff with the files fi   This works fine.  If I want to negate it, I can use the following working code:  if ! ( [ -f file1 ] &amp;&amp; [ -f file2 ] &amp;&amp; [ -f file3 ] ) ; then   echo "Error: You done goofed."   exit 1 fi # do stuff with the files   This also works as expected.  However, it occurs to me that I don't know what the parentheses are actually doing there.  I want to use them just for grouping, but is it actually spawning a subshell?  (How can I tell?)  If so, is there a way to group the conditions without spawning a subshell? Should I be able to 'manually' rotate the headset? Let $S$ be a finite collection of real numbers (not necessarily distinct). If any element of $S$ is removed then the remaining real numbers can be divided into two collections with same size and same sum ; then is it true that all elements of $S$ are equal ?  (I know the result is true if the &quot;reals&quot; are replaced by &quot;integers&quot;.) How to show that $\log (\frac{2a}{1-a^2}+\frac{2b}{1-b^2}+\frac{2c}{1-c^2})= \log\frac{2a}{1-a^2}+ \log \frac{2b}{1-b^2}+ \log \frac{2c}{1-c^2}$ If $\log (a +b +c) =\log a+\log b+\log c$ then show that $$\log \left(\frac{2a}{1-a^2}+\frac{2b}{1-b^2}+\frac{2c}{1-c^2}\right)= \log\frac{2a}{1-a^2}+ \log \frac{2b}{1-b^2}+ \log \frac{2c}{1-c^2}$$  Trial: If put $a=\frac{2a}{1-a^2}$ and the similar we are done. Can we do this in this way? Otherwise how to do. Please help. "The volume boot has only 0 bytes disk space remaining" After a recent update, I'm getting an alert saying:  The volume boot has only 0 bytes disk space remaining   But my computer has plenty of HD space free. Does anyone know how I resolve this. (If it's relevant, I'm using the whole disk encryption feature of the alternate install image for Ubuntu 12.04). How do I withdraw all money from my HSA account as a non-resident? I have lived in US for 5 years, and I (still) have an HSA account with BoA. Now I am living in Europe, and there's a fat chance I'll ever go back to live in US, so I would like to withdraw the money from my HSA, pay the due taxes, of course, and just be able to use them. How exactly I go about that?  Thanks in advance. implicit operator using interfaces I have a generic class that I'm trying to implement implicit type casting for.  While it mostly works, it won't work for interface casting.  Upon further investigation, I found that there is a compiler error: "User-defined conversion from interface" that applies.  While I understand that this should be enforced in some cases, what I'm trying to do does seem like a legitimate case.  Here's an example:  public class Foo&lt;T&gt; where T : IBar {     private readonly T instance;      public Foo(T instance)     {         this.instance = instance;     }     public T Instance     {         get { return instance; }     }     public static implicit operator Foo&lt;T&gt;(T instance)     {         return new Foo&lt;T&gt;(instance);     } }   Code to use it:  var concreteReferenceToBar = new ConcreteBar(); IBar intefaceReferenceToBar = concreteReferenceToBar; Foo&lt;ConcreteBar&gt; concreteFooFromConcreteBar = concreteReferenceToBar; Foo&lt;IBar&gt; fooFromConcreteBar = concreteReferenceToBar; Foo&lt;IBar&gt; fooFromInterfaceBar = intefaceReferenceToBar; // doesn't work   Does anyone know a workaround, or can anyone explain in a satisfactory way why I shuouldn't be able to cast interfaceReferenceToBar implicitly to Foo&lt;IBar&gt;, since in my case it is not being converted, but only contained within Foo?  EDIT: It looks like covariance might offer salvation.  Let's hope the C# 4.0 specification allows for implicit casting of interface types using covariance.