The sidebar recent blog link goes to the mobile site
Blog showing up as mobile, won't exit
I have got a template class as follows:  class MyClass&lt;T&gt; {     T field;     public void myMethod()     {        field = new T(); // gives compiler error     } }   How do I create a new instance of T in my class? How to listen my local FM stations in my iphone 4? Like I can listen with my old Nokia phone, without using Internet, GPRS etc.  Is iPhone 4 lacking this facility?  I heard about "Pandora Radio" but it uses the Internet to run and it's also not for Indian FM channels.  In my Nokia Express Music Mobile I can listen my local FM stations without any GPRS, Internet in mobile. Django - specify which model manager Django admin should use Hardware issue on iMac, flashing question mark I have an iMac 2008/2009 issue and recently the computer would not boot and I would get a flashing question mark. Ran through all the usual steps, try boot in safe mode, flash RAM,  try single user for fdisk, put in OS disk and boot from CD, etc... No dice.   Replaced the hard drive and put the OS disc in the system, press and hold option. (holding C didn't work) I can see the OS disk but when I click on it the system will act like it is going to run and then freeze. The best I got was the OS X disc that changed the screen to dark grey and told be the system had to restart.  Purchased a usb mount for an external hard drive. Was able to mount the old hard drive to a laptop and run disk utility. Everything checked out.  At this point I am pretty sure it isn't the hard drive.   Any other hard ware items this can point too? My iMAC can also "see" the hard drive (and the recovery partition) when connected via the USB and I hold "option" on start up. But it crashes when trying to boot from either.  I am going to take out and re-install the RAM for giggles but I am not sure what else to do.   Ideas are welcome. Another point of view that $\mathbb{Z}/m\mathbb{Z} \times\mathbb{Z}/n\mathbb{Z}$ is cyclic. I was thinking that the product of groups $\mathbb{Z}/2\mathbb{Z} \times\mathbb{Z}/2\mathbb{Z}$ is not cyclic, but $\mathbb{Z}/2\mathbb{Z} \times\mathbb{Z}/p\mathbb{Z}$ is cyclic if p is an odd prime. Then I found logic that $\mathbb{Z}/m\mathbb{Z} \times\mathbb{Z}/n\mathbb{Z}$ is certainly cyclic if $m$ and $n$ are coprimes.  I searched on google a proof of that, to compare with mine and the answer is that $\mathbb{Z}/m\mathbb{Z} \times\mathbb{Z}/n\mathbb{Z}$ is isomorphic to $\mathbb{Z}/mn\mathbb{Z}$ (which is clearly cyclic) $\iff$ $m$ and $n$ are coprimes.  But I got another proof and I want to know what you think about it :     I claim that $([1]_m,[1]_n)$ generates $\mathbb{Z}/m\mathbb{Z}$   $\times\mathbb{Z}/n\mathbb{Z}$, where $[a]_d$ is the canonical   projection of $a\in \mathbb{Z}$ into $\mathbb{Z}/d\mathbb{Z}$.       Let's take multiples of $([1]_m,[1]_n)$ until we get $m \cdot$   $([1]_m,[1]_n) = ([0]_m,[m]_n)$ (where I suppose $m=\min(m,n)$...   otherwise, consider $\mathbb{Z}/n\mathbb{Z}$   $\times\mathbb{Z}/m\mathbb{Z}$ and $\min(m,n)=n$).       The next step is $([1]_m,[m+1]_n)$. This pair is not equal to   $([1]_m,[1]_n)$, since $m+1 \not\equiv1$ mod $n$ ($m$ and $n$ are   supposed to be coprimes). We can now continue adding $([1]_m,[1]_n)$   to the results.      The last step is precisely reached when you got   $([mn]_m,[mn]_n)=([0]_m,[0]_n)$. At this point, the fact that $m$ and $n$ are coprimes is absolutely necessary because if they are not coprimes, $lcm(m,n)\ne m\cdot n$ and   $([lcm(m,n)]_m,[lcm(m,n)]_n)=([0]_m,[0]_n)$ but all the $m \cdot n$ possible pairs are not reached, only the $lcm(m,n)$ are ! The definition of span Can we model gravitation as a repulsive force? This question is actually related to my earlier question ("").  The fact that objects move a lot in the universe and that the universe is expanding, can imply that gravity is a repulsive force that increases with distance.. so the farthest objects repel us more.  This can still explain several existing observations, e.g., why does the apple fall?   Motion is the result of such repulsion. Two objects unlucky enough not to be moving relative to each other get squished due to the repulsion of the rest of the universe  around them. The earth repels the apple less than the stars so it is pushed towards the earth.   Furthermore, it can explain the expanding universe without the need for dark energy.  This could be demonstrated in a thought experiment. If we take a lot of same-charge particles (with small mass) such as electrons and lock them in a large box at a low enough temperature. The mutual repulsion of the particles may cause similar motion as if due to gravitational attraction.   Another experiment would be to measure the slight changes in our weight during day and night when the sun and earth align (if their masses are large enough to detect the feeble change in repulsion).   [EDIT: the question in the original form may not have been clear. It is "can we model".. with a yes/no answer and why (not). If downvoting, please justify. Counting overlapping polygons in GeoJSON to result in new set of polygons? Area of the Limiting Polygon Start with an equilateral triangle with unit area. Trisect each of the sides and then cut-off the corners. In this case, we get a regular hexagon - see the picture below. Next, trisect each of the sides of the hexagon and cut-off the corners. This will give a dodecagon, but not a regular one.   Continue this process ad infinitum.  What is the area of the limiting "polygon"?  My first thought was that it would be the circle tangent to the midpoint of each side. However, by making some pictures, it becomes clear quite quickly that the limiting polygon is not a circle and, in fact, might perhaps be an ellipse. The problem with that is that while there is a unique circle passing through any three points in general position, I need five generic points to specify a conic.   Can anyone suggest any hints as to how to find the area? By "hint" I don't mean "what you think might work", I mean "what you have tried and you know will work". Thanks in advance. When should you use a class vs a struct in C++? How can I access shared folders on an Ubuntu host and a Windows XP guest? indicates that the water pipes should bonded to the electrical ground even if a grounding rod is used. How would one normally tell if that is the case? Is that bonding required to be accessible, or can it be hidden behind walls or buried? Where in the water system would it normally be bonded (e.g., before the main water shutoff, after, at the hot water tank)?  I recently had my electrical panel relocated and replaced, and don't recall seeing anything running from the panel to a water pipe - in the old panel or new. The electrician put in an intersystem bonding bridge, so the new ground rod, ground from the panel, and ground from the cable service are connected to it. I suppose that's where the bond from the water pipe would go? Baby Rudin Theorem 1.20 (b) Proof I have a question about Rudin's proof of Theorem 1.20 (b) in his book Principles of Mathematical Analysis.  Theorem 1.20 is stated as follows:     (a) If $x\in R, y\in R$, and $x&gt;0$, then there is a positive integer $n$ such that $$nx&gt;y.$$   (b) If $x\in R, y\in R$, and $x&lt;y$, then there exists a $p\in Q$ such that $x&lt;p&lt;y$.     I understand Rudin's proof of (a).  The beginning of Rudin's proof of (b) is given below:     Since $x&lt;y$, we have $y-x&gt;0$, and (a) furnishes a positive integer $n$ such that $$n(y-x)&gt;1.$$  Apply (a) again, to obtain positive integers $m_1$ and $m_2$ such that $m_1&gt;nx$, $m_2&gt;-nx$.  Then $$-m_2&lt;nx&lt;m_1.$$  Hence there is an integer $m$ (with $-m_2\leq m\leq m_1$) such that $$m-1\leq nx&lt;m.$$   I don't understand the justification for this last sentence beginning "Hence...."  How is $m$ found, and why are $m_1$ and $m_2$ needed to find $m$? Is a URL with a query string better or worse for SEO then one without one? I want to know, is there a huge difference in terms of SEO between these URLs:  example.com/ontario/toronto/listings   or  example.com/listings.php?p=ontario&amp;c=toronto   Will one URL rank higher than the other? Is there a huge difference here? Is this an abnormal rate of spoke breakage? I just broke a spoke and this is the fourth spoke I've broken in the last 12 months.  This one was very puzzling because it came at the very end of an easy 30 mile (48 km) ride.  I was pedaling very slowly into my driveway when it snapped.   All four have been on the drive side of the rear wheel.  This is a Specialized Allez, one year old, with factory wheels.  I weigh 175 lbs (79 kg) and ride about 2000 miles (3218 km) per year.  Just recreational riding on good road surfaces.  Is this an abnormal rate of breakage?    And if it is an abnormal rate of breakage, what should I do about it?  EDIT:  I took the wheel into the LBS today. They didn't seem surprised by 4 broken spokes in a year, but everyone else is, so I'm going with everyone else. The mechanic checked the tension and they were all correct with one slight exception, so that's not the issue. The wheels are factory wheels and not exactly top flight. The spokes are 1.2 mm rather than 2 mm, so pretty thin. And they're 28 spokes per wheel, so that's cutting it even thinner from what I can gather.   Rebuilding the wheels is $125 each, so that's just not worth it. I can find much better wheels for not much more, so I'm on Amazon looking at wheels while trying not to deplete my life savings. (What some people will pay for wheels boggles the mind.)  I'll have them fix the spoke and check the tensioning so I can sell them and ride until I get replacements.   Gotta buy the tools and learn to replace spokes and true wheels.... Solution of limit $\lim\limits_{x\to 0} \frac {e^{-1/x^2}}{x} $ Small question, I'm trying to solve this limit but I just can't wrap my head around this problem.  $$\lim_{x\to 0} \frac {e^{-1/x^2}}{x} $$  L'Hopital just seems to make it messier.   It's probably pretty simple - I'd like to hear what I'm missing. Can I use PCA (or should I use regression) for testing the effect of multiple variables on one dependent variable? I have 2000 soil property measures and 14 different variables like rainfall, temperature, slope, etc. I want to check the effect of those 14 variables on soil property measures, including which variable affects my soil property the most. Is PCA a suitable solution to this? Or should I try multiple regression instead? Windows Spotlight Source and Save locations? Where are the images from  coming from?  Where are they being saved on my system?  Is there any way for me to point this at my own source of images? Texture messes up after extruding a modified plane Fast way to copy a large file on a LAN I am having some trouble with NFS, and I'd like to try using just plain old TCP.  I have no idea where to begin, though.  Hardware-wise, I am using an ethernet crossover cable to network two netbooks.  To network them, I type  $ sudo ifconfig eth0 192.168.1.1 up &amp;&amp; ping -c 10 -s 10 192.168.1.2 &amp;&amp; sudo /etc/init.d/nfs-kernel-server start   on the first netbook and  $ sudo ifconfig eth0 192.168.1.2 up $ ping -c 10 -s 10 192.168.1.1 $ mount /mnt/network1   on the second  where /mnt/network1 is specified in /etc/fstab as  192.168.1.1:/home /mnt/network1 nfs noauto,user,exec,soft,nfsvers=2 0 0  as well as in /etc/exports (using the syntax of that file), on the first netbook.  The above works fine, but the files and directories are huge. The files average about half a gigabyte a piece, and the directories are all between 15 and 50 gigabytes.   I'm using rsync to transfer them, and the command (on 192.168.1.2) is  $ rsync -avxS /mnt/network1 ~/somedir   I'm not sure if there's a way to tweak my NFS settings to handle huge files better, but I'd like to see if running an rsync daemon over plain old TCP works better than rsync over NFS.  So, to reiterate, how do I set up a similar network with TCP?  UPDATE:  So, after a good at few hours of attempting to pull myself out of the morass of my own ignorance (or, as I like to think of it, to pull myself up by my own bootstraps) I came up with some useful facts.  But first of all, what led me on this rabbit trail instead of simply accepting the current best answer was this: nc is an unbelievably cool program that resolutely fails to work for me. I've tried the netcat-openbsd and netcat-traditional packages with no luck whatsoever.  The error I get on the receiving machine (192.168.1.2) is:  me@netbook:~$ nc -q 1 -l -p 32934 | tar xv Can't grab 0.0.0.0:32934 with bind tar: This does not look like a tar archive tar: Exiting with failure status due to previous errors   route gives:  me@netbook:~$ route Kernel IP routing table Destination     Gateway         Genmask         Flags Metric Ref    Use Iface default         dir-615         0.0.0.0         UG    0      0        0 wlan0 link-local      *               255.255.0.0     U     1000   0        0 eth0 192.168.0.0     *               255.255.255.0   U     2      0        0 wlan0 192.168.1.0     *               255.255.255.0   U     0      0        0 eth0   But, here's the good news: having the static IP addresses set in /etc/network/interfaces, which I started doing while trying to get nc working, fixed all my NFS problems and rekindled my love for NFS.  The exact configuration I used (with 192.168.1.1 for the first netbook, of course) was:  auto eth0 iface eth0 inet static address 192.168.1.2 netmask 255.255.255.0   With those settings, the two netbooks will be able to ping each other directly after being booted up, without even an ifup.  Anyway, I'd still really like to see nc in action, so I'm hoping someone help me debug this process.