<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:posterous="http://posterous.com/help/rss/1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
  <channel>
    <title>Pratyush Chalasani</title>
    <link>http://pratyush.net</link>
    <description>Most recent posts at Pratyush Chalasani</description>
    <generator>posterous.com</generator>
    <link xmlns="http://www.w3.org/2005/Atom" href="http://posterous.com/api/sup_update#e062c5dfd" type="application/json" rel="http://api.friendfeed.com/2008/03#sup" />
    
    
    <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/prat_c" /><feedburner:info uri="prat_c" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://posterous.superfeedr.com/" /><item>
      <pubDate>Tue, 19 Jul 2011 19:21:00 -0700</pubDate>
      <title>Is it prime?</title>
      <link>http://feedproxy.google.com/~r/prat_c/~3/6mx45zaW6fg/is-it-prime</link>
      <guid isPermaLink="false">http://pratyush.net/is-it-prime</guid>
      <description>&lt;p&gt;
	&lt;p&gt;Lately I've been learning Scala and Android programing, and I just got around to combining the two.&lt;/p&gt;
&lt;p&gt;The result is my little &lt;tt&gt;Is it prime?&lt;/tt&gt; app which lets you quickly check if a number is prime or not (if not, it also shows you the prime factorisation):&lt;/p&gt;
&lt;p&gt;&lt;div class='p_embed p_image_embed'&gt;
&lt;img alt="Isitprime" height="400" src="http://getfile8.posterous.com/getfile/files.posterous.com/temp-2011-07-19/HDhthEDuxyHwHoiHoiGEhznozltBmtgowphnBupEuHlbhzJIIBABifuroozG/isitprime.png.scaled500.png" width="500" /&gt;
&lt;/div&gt;
Grab the &lt;a href="http://github.com/prat/Is-it-prime" title="Source"&gt;source from here&lt;/a&gt; or &lt;a href="https://github.com/downloads/prat/Is-it-prime/IsItPrime.apk" title="Install"&gt;get the APK&lt;/a&gt; to install directly.&lt;/p&gt;
&lt;p&gt;After a few false starts I finally managed to configure Eclipse to compile Scala code for Android using Treeshaker:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://code.google.com/p/treeshaker/wiki/SettingUpEclipse"&gt;http://code.google.com/p/treeshaker/wiki/SettingUpEclipse&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://code.google.com/p/treeshaker/wiki/SettingUpEclipse"&gt;http://code.google.com/p/treeshaker/wiki/CreateNewScalaProject&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;One the upside this gives me a much nicer language than Java for building Android apps. On the downside it's slow, very slow. Hopefully it'll be optimised more in the future, but for now I think I might unfortunately have to stick with Java for for mobile development.&lt;/p&gt;
	
&lt;/p&gt;

&lt;p&gt;&lt;a href="http://pratyush.net/is-it-prime"&gt;Permalink&lt;/a&gt; 

	| &lt;a href="http://pratyush.net/is-it-prime#comment"&gt;Leave a comment&amp;nbsp;&amp;nbsp;&amp;raquo;&lt;/a&gt;

&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/prat_c/~4/6mx45zaW6fg" height="1" width="1"/&gt;</description>
      <posterous:author>
        <posterous:userImage>http://posterous.com/images/profile/missing-user-75.png</posterous:userImage>
        <posterous:profileUrl>http://posterous.com/users/ZyEtytaPY7n</posterous:profileUrl>
        <posterous:firstName>Pratyush</posterous:firstName>
        <posterous:lastName>Chalasani</posterous:lastName>
        <posterous:nickName>Prat</posterous:nickName>
        <posterous:displayName>Pratyush Chalasani</posterous:displayName>
      </posterous:author>
      <media:content type="image/png" height="400" width="500" url="http://getfile7.posterous.com/getfile/files.posterous.com/temp-2011-07-19/HDhthEDuxyHwHoiHoiGEhznozltBmtgowphnBupEuHlbhzJIIBABifuroozG/isitprime.png">
        <media:thumbnail height="400" width="500" url="http://getfile8.posterous.com/getfile/files.posterous.com/temp-2011-07-19/HDhthEDuxyHwHoiHoiGEhznozltBmtgowphnBupEuHlbhzJIIBABifuroozG/isitprime.png.scaled500.png" />
      </media:content>
    <feedburner:origLink>http://pratyush.net/is-it-prime</feedburner:origLink></item>
    <item>
      <pubDate>Thu, 12 May 2011 04:23:00 -0700</pubDate>
      <title>First post</title>
      <link>http://feedproxy.google.com/~r/prat_c/~3/JNowpl2P-4s/first-post</link>
      <guid isPermaLink="false">http://pratyush.net/first-post</guid>
      <description>&lt;p&gt;
	&lt;p&gt;I figured it was about time I jumped on the blog bandwagon.&lt;/p&gt;
&lt;p&gt;I'm a programmer, so this might mostly be filled with computing related posts.&lt;/p&gt;
	
&lt;/p&gt;

&lt;p&gt;&lt;a href="http://pratyush.net/first-post"&gt;Permalink&lt;/a&gt; 

	| &lt;a href="http://pratyush.net/first-post#comment"&gt;Leave a comment&amp;nbsp;&amp;nbsp;&amp;raquo;&lt;/a&gt;

&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/prat_c/~4/JNowpl2P-4s" height="1" width="1"/&gt;</description>
      <posterous:author>
        <posterous:userImage>http://posterous.com/images/profile/missing-user-75.png</posterous:userImage>
        <posterous:profileUrl>http://posterous.com/users/ZyEtytaPY7n</posterous:profileUrl>
        <posterous:firstName>Pratyush</posterous:firstName>
        <posterous:lastName>Chalasani</posterous:lastName>
        <posterous:nickName>Prat</posterous:nickName>
        <posterous:displayName>Pratyush Chalasani</posterous:displayName>
      </posterous:author>
    <feedburner:origLink>http://pratyush.net/first-post</feedburner:origLink></item>
  </channel>
</rss>

