Check if n*m area can be filled with a*b sized tiles and find the remainder
Tiling problem: 100 by 100 grid and 1 by 8 pieces
Better understanding of Drupal behaviors I read about Drupal behaviors today, and I tried writing the following code.  (function ($) {    Drupal.behaviors.mymodule = {     attach: function (context, settings) {       $('#mymodule_id', context).change(function () {         alert('Handler for .change() called.');       });     }   };  }(jQuery));    Is Drupal.behaviors.mymodule the namespace? What are the context and settings parameters passed to the Drupal behavior? Is this the equivalent of document.ready()?   Can I attach any number of functions?  Can I define JavaScript functions which will be called somewhere? Metric $d(x,y)=\frac{|x-y|}{\sqrt{1+x^2}\sqrt{1+y^2}}$ on $\mathbb{R}$ $\pi$ can be represented as $C/D$, and $C/D$ is a fraction, and the definition of an irrational number is that it cannot be represented as a fraction.   Then why is $\pi$ an irrational number? Dirac delta function and volume charge density I just got introduced to the Dirac delta function and one of the questions was to express volume charge density $\rho({\bf r})$ of a point charge $q$ at origin. I saw that the answer is related to Dirac delta function as: $$\rho({\bf r}) = q \delta^3({\bf r})$$ where $\delta^3({\bf r})$ is the 3-dimensional Dirac Delta function. Why is it so? Installing opencv I've downloaded opencv but unfortunately I've got no idea how to install it. All the pages I found online were only telling me how to download and install it directly from the console, not what to do when you already have it downloaded. Could anybody tell me what to do? Prove that $A+I$ is invertible if $A$ is nilpotent Possible Duplicate:          Given $A^{2012}=0$ prove that $A+I$ is invertible and find an expression for $(A+I)^{-1}$ in terms of $A$. ($I$ is the identity matrix). $f(x)=x/1$ is not injective? In chapter 3 of Atiyah and Macdonalds Intro to Comm Algebra there is the statement  "We also have a ring homomorphism $f:A\rightarrow S^{-1}A$ defined by $f(x)=x/1$. This is not in general injective." (Note: $A$ denotes an integral domain and $S$ a multiplicatively closed subset of $A$.)  How could this possibly not be injective? If $f(x)=f(y)$ then $x/1=y/1$ so $1x=1y$ hence $x=y$. What am I missing here? XPath select node with namespace I have seen the following methods of putting JavaScript code in an &lt;a&gt; tag:  function DoSomething() { ... return false; }    &lt;a href="javascript:;" onClick="return DoSomething();"&gt;link&lt;/a&gt; &lt;a href="javascript:DoSomething();"&gt;link&lt;/a&gt; &lt;a href="javascript:void(0);" onClick="return DoSomething();"&gt;link&lt;/a&gt; &lt;a href="#" onClick="return DoSomething();"&gt;link&lt;/a&gt;   I understand the idea of trying to put a valid URL instead of just JavaScript code, just in case the user doesn't have JavaScript enabled. But for the purpose of this discussion, I need to assume JavaScript is enabled (they can't login without it).  I personally like option 2 as it allows you to see what's going to be run&ndash;especially useful when debuging where there are parameters being passed to the function. I have used it quite a bit and haven't found browser issues.  I have read that people recommend 4, because it gives the user a real link to follow, but really, # isn't "real". It will go absolutely no where.  Is there one that isn't support or is really bad, when you know the user has JavaScript enabled?  Related question: . Logarithm as limit lists this as a limit representation of the natural log:  $$\ln{z} = \lim_{\omega \to \infty} \omega(z^{1/\omega} - 1)$$  Is there a quick proof of this? Thanks How to automatically rotate images based on EXIF data? I'm sure there must be a simple reason for this but I can't seem to be able to import a shp file or a feature class from another file or sde geodatabase into a Feature Dataset without getting an error.  The feature classes come in fine if I don't don't try to import them into a Feature Dataset.  The feature dataset definitely has the same projection as the feature classes I'm trying to import so I don't think that's the problem.  The Error I get is ERROR 000210 and just says Failed to convert and cannot create output and Failed to execute (CopyFeatures).    Any ideas what I may be doing wrong here.  Seems like something so simple.  I'm trying to use the Feature Datasets to better organize my data which I think is there purpose.   Update:  So as you can see below, Jason helped me find the answer.   As suggested by Matt below, I added a new Idea to the ArcGIS Ideas site.  Here is the link to that, so please promote this up if you agree a better error message is needed here: Show that $a_{n+1}= 1 + \frac{1}{a_n}$ converges. Let $\{a_n\}$ be defined by $a_1 =1  $ and $a_{n+1} = 1 + {\dfrac{1}{a_n}}$ with $n \in N$. Show that $a_{n+1}= 1 + {\dfrac{1}{a_n}}$ converges.  I know the limit but how can I show that is a Cauchy sequence or that this sequence converges. Checking the way to stop duplicate names - validation rules or triggers How to Make Multi User Objects Single User? I duplicated a few objects with Alt+D and now I want to apply some modifiers to them, however I can't, because they are multi-user objects.  I tried U > Objects but I still can't apply the modifier.  How to make multi user objects single user? TikZ is undergoing lots of development with new features being added, but the versions distributed with standard TeX releases are often a little old. How do I get the latest version? If I want to be sure that I get the latest stable version, how do I do that?    Note: I'm not asking this question for myself, but because a question like this seems to be useful for pointing to it when a new feature of TikZ is mentioned in an answer to some other question. Feel free to post answers for any operating system/TeX distribution combination. I'm using PostGIS 1.5.2, with geometries in SRID:900913. I need create a circles using a list of points as centre, with a radius of 600 kilometers. I'm using this query:  INSERT INTO circles (geom) (    SELECT ST_Buffer(point, 600000, 'quad_segs=8')     FROM points );   But circles created have not 600 kilometers of radius (radius is near this length, but not exactly).  Are there other methods to create circles in PostGIS?  NOTE: Information represented is from Spain. Correct projection is 4326, but client use Google rasters, so I am storing data in 900913 to avoid reprojections and increase performance. Prove previsibility and $E[X_{T \wedge n}] \le E[X_{S \wedge n}]$ Don't worry, I have written your name on the attendance sheet.   Or     Don't worry, I wrote your name on the attendance sheet. How do I make a bootable Ubuntu USB? How do I make an Bootable Ubuntu USB containing the the latest version of Ubuntu?  For completeness, how would I be able to do this on Ubuntu, Windows, OS X or another Linux distro?