<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Handwaving</title>
	<atom:link href="http://surana.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://surana.wordpress.com</link>
	<description>glossing over detail for the sake of time or clarity</description>
	<lastBuildDate>Tue, 11 Jun 2013 18:41:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='surana.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Handwaving</title>
		<link>http://surana.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://surana.wordpress.com/osd.xml" title="Handwaving" />
	<atom:link rel='hub' href='http://surana.wordpress.com/?pushpress=hub'/>
		<item>
		<title>I Use This</title>
		<link>http://surana.wordpress.com/2012/10/26/i-use-this/</link>
		<comments>http://surana.wordpress.com/2012/10/26/i-use-this/#comments</comments>
		<pubDate>Fri, 26 Oct 2012 19:58:14 +0000</pubDate>
		<dc:creator>Pinku</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://surana.wordpress.com/?p=389</guid>
		<description><![CDATA[At usesthis.com they interview a bunch of people to ask about their current computer setup and their dream setup. Most of them are using aged machines, ultraportables (Mac Air is popular), and Emacs/VIM for editing (a few slickedit fans). Most of them have little to add in their dream setup (more battery life, better cloud [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=surana.wordpress.com&#038;blog=1937801&#038;post=389&#038;subd=surana&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>At <a href="http://usesthis.com">usesthis.com</a> they interview a bunch of people to ask about their current computer setup and their dream setup. Most of them are using aged machines, ultraportables (Mac Air is popular), and Emacs/VIM for editing (a few slickedit fans). Most of them have little to add in their dream setup (more battery life, better cloud sync). Are our tools finally good enough? Not for me.</p>
<p>Current setup: A 4 year old Sony Z laptop, 8GB RAM, SSD. I have a 6 year old homebrew desktop w/ a few terabytes of storage and 2 old monitors. I use Windows 7 and do most development in Ubuntu within VMware player (using Unity). When I need it, I&#8217;ve got instances running in AWS. I&#8217;ve got an ancient jailbroken iPhone, an iPad 1, and an older Kindle. Everything I own is old and works just fine. I use Emacs, bash, Chrome, and the usual grab-bag of software. I even use Visual Studio.</p>
<p>Dream setup: We all own a suite of devices that work OK in isolation. Each device does some things well for certain use cases. But when those devices are together, they should work together much better. Bluetooth and AirPlay are steps in the right direction, but ad-hoc and incomplete. When I sit in my car, my music and phone calls are routed through the car&#8217;s sound system. However, I can&#8217;t sync the map, listen/send text messages with my voice, nor ask Siri for help. AirPlay is really nice if you have Apple TV. You can send music, video and photos to the TV when you wish. You can send music to the stereo w/ Apple&#8217;s AirPort. Google Voice has a feature that allows you to move a call to another phone without hanging up. The Kindle can sync my current location in a book to every device, but I have to move papers and articles over manually.</p>
<p>I want more of this sort of slick integration between my devices. I&#8217;d like to group my work into virtual workspaces that have the same intention. Development stuff in one workspace, entertainment in another, communication in another, and so on. If I have 3 monitors, it should spread my workspaces across them. If I get a call while at my computer, I should be able to route the call to my computer&#8217;s speakerphone. When I&#8217;m reading something in Chrome on my desktop, I should be able to move it to my iPad. When I set my laptop down next to my desktop, it should allow me to move my work seamlessly to my desktop (and vice versa). File syncing is only the first step. I want my <em>activities</em> synced and moved across devices based on what I want, what the device is capable of, and what my work modality is (reading, typing, watching, listening, talking). Some of this can be done now in an ad-hoc way, and I&#8217;ve tried to glue the pieces together. But there&#8217;s enough friction to still make it fail in irritating ways.</p>
<p>We&#8217;re all going to accumulate more and more smart devices. We need to them work together better.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/surana.wordpress.com/389/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/surana.wordpress.com/389/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=surana.wordpress.com&#038;blog=1937801&#038;post=389&#038;subd=surana&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://surana.wordpress.com/2012/10/26/i-use-this/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/69a6108af131aedbbd54bd6ab3cacd1d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Pinku</media:title>
		</media:content>
	</item>
		<item>
		<title>Combinations</title>
		<link>http://surana.wordpress.com/2012/09/05/combinations/</link>
		<comments>http://surana.wordpress.com/2012/09/05/combinations/#comments</comments>
		<pubDate>Wed, 05 Sep 2012 19:35:53 +0000</pubDate>
		<dc:creator>Pinku</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://surana.wordpress.com/?p=383</guid>
		<description><![CDATA[Python code to generate k-combinations from N numbers. Included is a recursive and an iterative version. It&#8217;s easy.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=surana.wordpress.com&#038;blog=1937801&#038;post=383&#038;subd=surana&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Python code to generate k-combinations from N numbers. Included is a recursive and an iterative version. It&#8217;s easy. </p>
<pre class="brush: python; title: ; notranslate">
def choose_rec(n,k):
  a = range(k)
  choose_rec(0,n,k,0,a)

def choose_rec_aux(col,n,k,start,a):
  if col == k:
    print a
    return
  for i in range(start,n-k+col+1):
    a[col] = i
    choose_rec_aux(col+1,n,k,i+1,a)

def choose_iter(n,k):
  a = range(k)
  f = range(n-1,n-k-1,-1)
  f.reverse()

  print a
  while True:
    i = k-1
    while i &gt;= 0 and a[i] == f[i]:
      i = i - 1
      if i &lt; 0:
        return
      else:
        a[i] = a[i] + 1
        for i in range(i+1, k):
          a[i] = a[i-1] + 1
      for j in range(a[i], n):
        a[i] = j
        print a
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/surana.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/surana.wordpress.com/383/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=surana.wordpress.com&#038;blog=1937801&#038;post=383&#038;subd=surana&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://surana.wordpress.com/2012/09/05/combinations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/69a6108af131aedbbd54bd6ab3cacd1d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Pinku</media:title>
		</media:content>
	</item>
		<item>
		<title>Bloom Filter in C#</title>
		<link>http://surana.wordpress.com/2012/07/17/bloom-filter-in-c/</link>
		<comments>http://surana.wordpress.com/2012/07/17/bloom-filter-in-c/#comments</comments>
		<pubDate>Tue, 17 Jul 2012 19:29:37 +0000</pubDate>
		<dc:creator>Pinku</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://surana.wordpress.com/?p=365</guid>
		<description><![CDATA[Here&#8217;s a simple implementation of a Bloom Filter.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=surana.wordpress.com&#038;blog=1937801&#038;post=365&#038;subd=surana&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Here&#8217;s a simple implementation of a <a href="http://en.wikipedia.org/wiki/Bloom_filter">Bloom Filter</a>.</p>
<pre class="brush: csharp; title: ; notranslate">
    public class BloomFilter
    {
        HashAlgorithm hash;
        int m, n, k;
        BitArray table;

        public BloomFilter(HashAlgorithm h, int size, float falsePositiveRate)
        {
            hash = h;
            double bits = -(size * Math.Log(falsePositiveRate)) / Math.Pow(Math.Log(2), 2);
            double hashes = -Math.Log(0.7) * bits / size;
            n = size;
            k = (int)hashes;
            m = (int)bits;
            table = new BitArray(m);
        }

        IEnumerable&lt;int&gt; Probe(byte[] input)
        {
            int chunks = hash.HashSize / 32;
            for (int i = 0; i &lt; k; i++)
            {
                byte[] val = hash.ComputeHash(input);
                for (int j = 0; j &lt; chunks &amp;&amp; i &lt; k; j++, i++)
                    yield return Math.Abs(BitConverter.ToInt32(val, j)) % m;
            }
        }

        public void PutValue(byte[] input)
        {
            foreach (int index in Probe(input))
                table.Set(index,true);
        }

        public bool Exists(byte[] input)
        {
            foreach (int index in Probe(input))
            {
                if (!table.Get(index)) return false;
            }
            return true;
        }

    }
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/surana.wordpress.com/365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/surana.wordpress.com/365/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=surana.wordpress.com&#038;blog=1937801&#038;post=365&#038;subd=surana&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://surana.wordpress.com/2012/07/17/bloom-filter-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/69a6108af131aedbbd54bd6ab3cacd1d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Pinku</media:title>
		</media:content>
	</item>
		<item>
		<title>Microsoft Surface</title>
		<link>http://surana.wordpress.com/2012/06/19/microsoft-surface/</link>
		<comments>http://surana.wordpress.com/2012/06/19/microsoft-surface/#comments</comments>
		<pubDate>Tue, 19 Jun 2012 14:15:51 +0000</pubDate>
		<dc:creator>Pinku</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://surana.wordpress.com/?p=360</guid>
		<description><![CDATA[On the day the iPad was announced my first thought was to stick a thin keyboard on the case. Two years later Microsoft has implemented the idea exactly as I had imagined it on their new Surface tablet. I agree with Microsoft that it&#8217;s important for them to have a tablet with Windows, especially for [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=surana.wordpress.com&#038;blog=1937801&#038;post=360&#038;subd=surana&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>On the day the iPad was announced my first thought was to stick a <a href="http://surana.wordpress.com/2010/01/27/apple-ipad-almost-perfect/">thin keyboard on the case</a>. Two years later Microsoft has implemented the idea exactly as I had imagined it on their new <a href="http://www.microsoft.com/surface/en/us/default.aspx">Surface tablet</a>. I agree with Microsoft that it&#8217;s important for them to have a tablet with Windows, especially for the enterprise market. So they&#8217;ve come out with <a href="http://en.wikipedia.org/wiki/Microsoft_Surface_(tablet)">two versions</a>. Surface is an ARM-based tablet that competes directly with the iPad. Surface Pro is an Intel-based tablet that runs the full Windows 8 OS. This appears to compete with ultraportables.</p>
<p>I assume Microsoft will ensure their hardware and price points are competitive with the iPad. The keyboard is a nice addition, but you can now get a <a href="http://www.logitech.com/en-us/tablet-accessories/ipad/ultrathin-keyboard-cover">thin keyboard case</a> for the iPad. So the only thing to distinguish the Surface is the OS and software. Well, iOS has a ginormous lead in apps and developer interest. This may be insurmountable in the short-term. If a consumer has $500-$800 to blow on a tablet, which should they buy? I think the iPad still wins.</p>
<p>The Surface Pro is like the <a href="http://eee.asus.com/eeepad/transformer-infinity/features/">Asus Transformer Infinity</a>, an ultraportable laptop with a detachable keyboard. However, the Surface Pro is the only tablet to run a full OS. I don&#8217;t think the typical iPad customer will care. It&#8217;s not for people who use their laptop intensively, like developers or video editors or designers. It&#8217;s for business users who use Office a lot, which is a large chunk of ultraportable customers. This is an important segment because Microsoft does not want the iPad to get a foothold in enterprises. MS owns the server and desktop business market. It should be easy to extend that dominance to tablets. The killer feature is how easy it is to deploy and manage apps within the enterprise. I don&#8217;t know how well <a href="https://developer.apple.com/programs/ios/enterprise/">Apple&#8217;s enterprise program</a> works, but I believe Microsoft should easily trounce them by integrating with everything else in the enterprise.</p>
<p>So based on very little information, my guess is the iPad still wins against Surface. In the ultraportable market, the Surface Pro might grab a chunk of enterprise customers who are primarily Office users. Also, they will do ok with enterprise customers who want specialized devices for certain jobs.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/surana.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/surana.wordpress.com/360/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=surana.wordpress.com&#038;blog=1937801&#038;post=360&#038;subd=surana&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://surana.wordpress.com/2012/06/19/microsoft-surface/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/69a6108af131aedbbd54bd6ab3cacd1d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Pinku</media:title>
		</media:content>
	</item>
		<item>
		<title>Ubuntu is too much work</title>
		<link>http://surana.wordpress.com/2012/05/17/ubuntu-is-too-much-work/</link>
		<comments>http://surana.wordpress.com/2012/05/17/ubuntu-is-too-much-work/#comments</comments>
		<pubDate>Thu, 17 May 2012 14:56:11 +0000</pubDate>
		<dc:creator>Pinku</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://surana.wordpress.com/?p=348</guid>
		<description><![CDATA[I&#8217;m returning my laptop&#8217;s SSD for a replacement drive. In the meantime, I loaded Ubuntu Precise on my Sony Z. I usually run Windows w/ Linux in a VM. The installation actually went just fine. It looked good, it appeared to work and all was well. Unfortunately, my laptop has a switch to manually choose [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=surana.wordpress.com&#038;blog=1937801&#038;post=348&#038;subd=surana&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I&#8217;m returning my laptop&#8217;s SSD for a replacement drive. In the meantime, I loaded Ubuntu Precise on my Sony Z. I usually run Windows w/ Linux in a VM. The installation actually went just fine. It looked good, it appeared to work and all was well. Unfortunately, my laptop has a switch to manually choose between Intel&#8217;s integrated graphics and an Nvidia GPU. It took tons of searching to gather clues from cryptic emails and blogs to learn that it probably doesn&#8217;t work on Linux 3.2 for some reason. And it turns out it was using unity-2D rather than Intel&#8217;s drivers and unity-3d. It took a lot of searching to figure out how to load the right drivers and get unity-3D. It finally works, though the 3D is underwhelming. And I still can&#8217;t use Nvidia.</p>
<p>The problem with Ubuntu, and Linux in general, is that it always requires some magical incantation to make things work. And it takes a while to find the right commands because searches often lead to unhelpful threads on Ubuntu&#8217;s forums. I&#8217;m not a Linux newbie. However, I detest sys admin drudgery because I&#8217;d rather work than waste time figuring out how to get hibernate turned on. Linux fans are like gearheads who love to work on cars. For me a car is an appliance, as is my computer. Frankly, I am happy to pay the Windows (or Apple) tax because it means I&#8217;ll always get the right drivers and my computer will just work. That is certainly worth $100.</p>
<p>I am willing to pay an Ubuntu tax for a service that makes it dead simple to install and maintain my laptop. Someone could curate all the shit needed to get my laptop working, including memory cards, fingerprint readers, etc. I would pay to subscribe to their PPA. Also, they could run something like AskUbuntu specifically for my laptop model. That way I can be sure the solutions are appropriate for my hardware. I don&#8217;t want vague instructions to run some commands; I want a script from them just does it for me. For example, double-tap-and-drag doesn&#8217;t work well. Turns out I need to adjust a variable with synclient. But it doesn&#8217;t persist across reboots, so I have to add a script to change the value every time I restart. This is not how I want to spend my time. I&#8217;d pay for someone else to do this for me.</p>
<p>When my SSD comes back I&#8217;ll be reloading Win7 and running Ubuntu in VMware. This setup works perfectly fine for me. I should say, though, that Ubuntu Precise is actually pretty good. If it ran smoothly on my laptop, I might have stuck with it. Maybe.</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/surana.wordpress.com/348/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/surana.wordpress.com/348/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=surana.wordpress.com&#038;blog=1937801&#038;post=348&#038;subd=surana&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://surana.wordpress.com/2012/05/17/ubuntu-is-too-much-work/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/69a6108af131aedbbd54bd6ab3cacd1d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Pinku</media:title>
		</media:content>
	</item>
		<item>
		<title>Ubuntu Software Center UI issues</title>
		<link>http://surana.wordpress.com/2012/04/11/ubuntu-software-center-ui-issues/</link>
		<comments>http://surana.wordpress.com/2012/04/11/ubuntu-software-center-ui-issues/#comments</comments>
		<pubDate>Wed, 11 Apr 2012 20:30:20 +0000</pubDate>
		<dc:creator>Pinku</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://surana.wordpress.com/2012/04/11/ubuntu-software-center-ui-issues/</guid>
		<description><![CDATA[I&#8217;ve loaded Precise into VMware (2GB, 2 cores). In 30 minutes I&#8217;ve run across so many UI idiosyncrasies in Software Center that I can&#8217;t remember them all. Here&#8217;s a short list: When I installed git, it didn&#8217;t change it&#8217;s status to installed until I moved to another screen and back. When I went back to see [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=surana.wordpress.com&#038;blog=1937801&#038;post=347&#038;subd=surana&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve loaded Precise into VMware (2GB, 2 cores). In 30 minutes I&#8217;ve run across so many UI idiosyncrasies in Software Center that I can&#8217;t remember them all. Here&#8217;s a short list:</p>
<ul>
<li>When I installed git, it didn&#8217;t change it&#8217;s status to installed until I moved to another screen and back.</li>
<li>When I went back to see git, it had a &#8220;Buy&#8230;&#8221; button. When I clicked elsewhere and back again, it changed to &#8220;Remove&#8221;. </li>
<li>It&#8217;s so slow. I doubt it&#8217;s VMware because other GUIs respond just fine. </li>
<li>It&#8217;s constantly bringing up a new debconf window that appears for a few seconds in my launcher. </li>
<li>The back/forward arrows don&#8217;t work sometimes. I did a search, clicked a package, then I couldn&#8217;t go back to the result page because the history disappeared (back arrow no longer clickable). </li>
<li>It&#8217;s always refreshing the screen. I queued the removal of all default games. While I was looking at another package, it kept refreshing the whole screen again and again. </li>
<li>The window just uses space poorly. A search gives you a list of packages on the left side, leaving a vast amount of lonely white space on the right side. They could have used that to show more info, improve search (tags cloud, refine search), list dependencies, whatever. </li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/surana.wordpress.com/347/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/surana.wordpress.com/347/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=surana.wordpress.com&#038;blog=1937801&#038;post=347&#038;subd=surana&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://surana.wordpress.com/2012/04/11/ubuntu-software-center-ui-issues/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/69a6108af131aedbbd54bd6ab3cacd1d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Pinku</media:title>
		</media:content>
	</item>
		<item>
		<title>You&#8217;re throwing money away!</title>
		<link>http://surana.wordpress.com/2012/01/30/youre-throwing-money-away/</link>
		<comments>http://surana.wordpress.com/2012/01/30/youre-throwing-money-away/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 03:40:19 +0000</pubDate>
		<dc:creator>Pinku</dc:creator>
				<category><![CDATA[Economics]]></category>

		<guid isPermaLink="false">https://surana.wordpress.com/?p=325</guid>
		<description><![CDATA[I am for the first time seriously considering making a bid on a home. Coincidentally, two seemingly intelligent women chattering next to me at lunch today agreed that when renting “you are throwing money away”, whereas buying a house means you will (somehow) get that money back. It’s bizarre that most people don’t understand the [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=surana.wordpress.com&#038;blog=1937801&#038;post=325&#038;subd=surana&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I am for the first time seriously considering making a bid on a home. Coincidentally, two seemingly intelligent women chattering next to me at lunch today agreed that when renting “you are throwing money away”, whereas buying a house means you will (somehow) get that money back. It’s bizarre that most people don’t understand the true cost of owning a home. </p>
<p><span id="more-325"></span>
<p>A good place to start is to run your current housing situation through the excellent <a href="http://www.nytimes.com/interactive/business/buy-rent-calculator.html" target="_blank">Buy vs. Rent calculator</a> from the NYTimes. The table below the chart outlines all the expenses for buying. Except for principle payments, everything else in that list is the equivalent of rent, i.e. you’re throwing it away. The calculator already adjusts for the interest and property tax deductions from your taxes. You also “throw away” the closing costs, selling costs, and the lost investment income from your down payment. And don’t forget the ludicrously high condo/co-op fees. Your profit comes entirely from home appreciation, which is historically 2-3% on a 5X leveraged investment. As the recent global financial meltdown <em>should</em> have taught everyone, housing can also be a risky investment. </p>
<p>Outside most urban areas, housing is usually a good deal relative to renting. A rule of thumb is a house should be cheaper than equivalent rent times 240. In urban areas both housing and rent are insanely expensive. The housing meltdown may have finally caused some homes to dip below equivalent rentals. Many of the homes I’ve looked at in my neighborhood near Manhattan have suffered a 10-20% loss. Due to leverage, that is a 50-100% loss of their down payment. That is in addition to all those monthly costs already mentioned above. All these people threw their money away on overpriced homes. </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/surana.wordpress.com/325/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/surana.wordpress.com/325/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=surana.wordpress.com&#038;blog=1937801&#038;post=325&#038;subd=surana&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://surana.wordpress.com/2012/01/30/youre-throwing-money-away/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/69a6108af131aedbbd54bd6ab3cacd1d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Pinku</media:title>
		</media:content>
	</item>
		<item>
		<title>PyPy is fast</title>
		<link>http://surana.wordpress.com/2012/01/28/pypy-is-fast/</link>
		<comments>http://surana.wordpress.com/2012/01/28/pypy-is-fast/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 05:05:15 +0000</pubDate>
		<dc:creator>Pinku</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">https://surana.wordpress.com/?p=323</guid>
		<description><![CDATA[I wrote a small Python program that maintains a heap. It took 20 minutes to process a very large data file with Python 2.7. On a whim I tried PyPy. It finished the task in 1 minute. That’s 20X faster without making any changes to my code. Why isn’t everyone using PyPy?<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=surana.wordpress.com&#038;blog=1937801&#038;post=323&#038;subd=surana&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I wrote a small Python program that maintains a heap. It took 20 minutes to process a very large data file with Python 2.7. On a whim I tried <a href="http://pypy.org/" target="_blank">PyPy</a>. It finished the task in 1 minute. That’s 20X faster without making any changes to my code. Why isn’t everyone using PyPy? </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/surana.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/surana.wordpress.com/323/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=surana.wordpress.com&#038;blog=1937801&#038;post=323&#038;subd=surana&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://surana.wordpress.com/2012/01/28/pypy-is-fast/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/69a6108af131aedbbd54bd6ab3cacd1d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Pinku</media:title>
		</media:content>
	</item>
		<item>
		<title>Weather Prediction Error</title>
		<link>http://surana.wordpress.com/2011/12/30/weather-prediction-error/</link>
		<comments>http://surana.wordpress.com/2011/12/30/weather-prediction-error/#comments</comments>
		<pubDate>Fri, 30 Dec 2011 20:20:35 +0000</pubDate>
		<dc:creator>Pinku</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">https://surana.wordpress.com/?p=321</guid>
		<description><![CDATA[I wrote a Python script to download the 1 through 5 day predictions for the weather in the top 50 American cities from the Weather Underground. I’ve got almost 2 years of data now. Here are the RMSE for predictions for all cities. I believe the RMSE for all cities is 2.24, 2.89, 3.68, 4.29, [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=surana.wordpress.com&#038;blog=1937801&#038;post=321&#038;subd=surana&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I wrote a Python script to download the 1 through 5 day predictions for the weather in the top 50 American cities from the <a href="http://www.wunderground.com/" target="_blank">Weather Underground</a>. I’ve got almost 2 years of data now. <a href="https://docs.google.com/spreadsheet/pub?hl=en_US&amp;hl=en_US&amp;key=0Al3bGR2dk47NdC1vZHdzWUxTUFBMaENmU29uczhoS1E&amp;single=true&amp;gid=0&amp;output=html" target="_blank">Here</a> are the RMSE for predictions for all cities. I believe the RMSE for all cities is 2.24, 2.89, 3.68, 4.29, 4.92 degrees F for 1 through 5 days respectively. I put the data up <a href="http://tinyurl.com/7amqjx4" target="_blank">here</a>, but I don’t yet know how to add visualizations. Unfortunately I have forgotten what little statistics I’ve ever learned. I tried a naïve prediction: tomorrow will be the same as today. This scored a RMSE of 6.11, which is significantly worse than even the 5 day forecast. I’ll try some machine learning algorithms on the data. In addition to the temperature, I stored things like weather condition (rain, snow, cloudy, etc) which may help make better predictions. Overall, I guess the weather underground does ok.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/surana.wordpress.com/321/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/surana.wordpress.com/321/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=surana.wordpress.com&#038;blog=1937801&#038;post=321&#038;subd=surana&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://surana.wordpress.com/2011/12/30/weather-prediction-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/69a6108af131aedbbd54bd6ab3cacd1d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Pinku</media:title>
		</media:content>
	</item>
		<item>
		<title>Upgrading Ubuntu to 11.10</title>
		<link>http://surana.wordpress.com/2011/12/16/upgrading-ubuntu-to-11-10/</link>
		<comments>http://surana.wordpress.com/2011/12/16/upgrading-ubuntu-to-11-10/#comments</comments>
		<pubDate>Fri, 16 Dec 2011 17:56:57 +0000</pubDate>
		<dc:creator>Pinku</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">https://surana.wordpress.com/?p=318</guid>
		<description><![CDATA[I run various versions of Ubuntu within VMware. Every single time I let it do a full upgrade to a new version it fails. This time an upgrade from 11.04 to 11.10 failed to reboot. Here’s the problem and solution. This is my first look at Ubuntu’s Unity. Generally I don’t care about the desktop [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=surana.wordpress.com&#038;blog=1937801&#038;post=318&#038;subd=surana&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I run various versions of Ubuntu within VMware. <em>Every single time</em> I let it do a full upgrade to a new version it fails. This time an upgrade from 11.04 to 11.10 failed to reboot. <a href="http://webpagedeveloper.me/blog/ubuntu-1110-boot-freezing-checking-battery-state-because-lightdm-fails-load" target="_blank">Here’s the problem and solution</a>. This is my first look at Ubuntu’s Unity. Generally I don’t care about the desktop because I live in Emacs. However, this is a colossally bad UI experience. Suddenly the firestorm of <a href="http://www.omgubuntu.co.uk/2011/03/unity/" target="_blank">complaints</a> about Unity make a lot more sense. I’ll keep trying it for a little while. If I still hate it in a week I’ll switch back to Gnome. </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/surana.wordpress.com/318/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/surana.wordpress.com/318/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=surana.wordpress.com&#038;blog=1937801&#038;post=318&#038;subd=surana&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://surana.wordpress.com/2011/12/16/upgrading-ubuntu-to-11-10/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/69a6108af131aedbbd54bd6ab3cacd1d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Pinku</media:title>
		</media:content>
	</item>
	</channel>
</rss>
