<?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/"
	>

<channel>
	<title>Techbook</title>
	<atom:link href="http://sandeep.weblogs.us/feed" rel="self" type="application/rss+xml" />
	<link>http://sandeep.weblogs.us</link>
	<description>Technology news and views</description>
	<lastBuildDate>Mon, 09 May 2011 11:53:55 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5</generator>
		<item>
		<title>Boston Hack Day Challenge this weekend</title>
		<link>http://sandeep.weblogs.us/archives/boston-hackday-challenge-this-weekend.html</link>
		<comments>http://sandeep.weblogs.us/archives/boston-hackday-challenge-this-weekend.html#comments</comments>
		<pubDate>Thu, 24 Feb 2011 16:04:24 +0000</pubDate>
		<dc:creator>Sandeep</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://sandeep.weblogs.us/?p=633</guid>
		<description><![CDATA[I will be heading to Boston this Friday for the Boston Hack Day Challenge. Getting there early enough though, is my first challenge. Sign-in starts at 5:30pm, and to be there by that time I will have to leave New York by 1:00pm &#8212; which is impossible given my deadlines at work. Still haven&#8217;t thought [...]]]></description>
				<content:encoded><![CDATA[<p>I will be heading to Boston this Friday for the Boston Hack Day Challenge. Getting there early enough though, is my first challenge. Sign-in starts at 5:30pm, and to be there by that time I will have to leave New York by 1:00pm &#8212; which is impossible given my deadlines at work.</p>
<p>Still haven&#8217;t thought of what I will be working on &#8212; I may end up joining another team, or continue with the &#8220;audio reviews for the visually impaired&#8221; hack that I created during the Yahoo! Open Hack NYC event.</p>
]]></content:encoded>
			<wfw:commentRss>http://sandeep.weblogs.us/archives/boston-hackday-challenge-this-weekend.html/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Apache WINK: Issue with Single-Element JSON Array</title>
		<link>http://sandeep.weblogs.us/archives/apache-wink-issue-with-single-element-json-array.html</link>
		<comments>http://sandeep.weblogs.us/archives/apache-wink-issue-with-single-element-json-array.html#comments</comments>
		<pubDate>Fri, 14 Jan 2011 17:08:15 +0000</pubDate>
		<dc:creator>Sandeep</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://sandeep.weblogs.us/?p=629</guid>
		<description><![CDATA[For the last few weeks, I have been building a RESTful service using the very fine Apache WINK library. When the service is called, the server sends a response in JSON. One of the response elements was an array; in the resulting response, if the array contained a single element I noticed a strange thing: [...]]]></description>
				<content:encoded><![CDATA[<p>For the last few weeks, I have been building a RESTful service using the very fine Apache WINK library. When the service is called, the server sends a response in JSON. One of the response elements was an array; in the resulting response, if the array contained a single element I noticed a strange thing:</p>
<pre>{
  "success": true,
  "subject": "Some subject",
  "origin": {
    "email": "some@email.example.com",
    "fullname": "Full name"
  },
  "listresult": {
    "r1": "yes",
    "r2": "no",
    "r3": "cancel"
  }
}</pre>
<p>The expected response, of course, was for listresult to be as follows:</p>
<pre style="font: normal normal normal 12px/18px Consolas, Monaco, 'Courier New', Courier, monospace;">"listresult": [
    {
    "r1": "yes",
    "r2": "no",
    "r3": "cancel"
    }
  ]</pre>
<p>The response class used JAXB annotations to set the element names and all the other good stuff. But for some reason, a single element list resulted in an erroneous response. Now, out-of-the-box, WINK comes configured with JSON4J as the  provider for JSON serialization. This library has an unfortunate side effect where the array serialization shows unexpected behavior: for a single element array, it was simply collapsing the array!</p>
<p>Which led me to <a href="http://apache-wink-users.3471013.n2.nabble.com/issue-with-single-element-in-JSON-array-td4018729.html">this posting</a> on the WINK user forum. The solution was to use an alternative provider. As mentioned in that post, I decided to go ahead with Jackson, available <a href="http://jackson.codehaus.org/">here</a>. I chose the easier route of simply replacing the JSON4J library with Jackson, both in my build environment and in the <strong>WEB-INF/lib</strong> folder.</p>
<p>This approach worked out fine for my needs. If, however, you have multiple services hosted by the same application and want each of them to have a separate provider, I refer you to <a href="http://www.ibm.com/developerworks/web/library/wa-aj-jackson/">this excellent post</a> on IBM developerWorks.</p>
]]></content:encoded>
			<wfw:commentRss>http://sandeep.weblogs.us/archives/apache-wink-issue-with-single-element-json-array.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache Wink and REST Services in Java</title>
		<link>http://sandeep.weblogs.us/archives/apache-wink-and-rest-services-in-java.html</link>
		<comments>http://sandeep.weblogs.us/archives/apache-wink-and-rest-services-in-java.html#comments</comments>
		<pubDate>Wed, 08 Dec 2010 15:34:52 +0000</pubDate>
		<dc:creator>Sandeep</dc:creator>
				<category><![CDATA[Computers]]></category>

		<guid isPermaLink="false">http://sandeep.weblogs.us/?p=625</guid>
		<description><![CDATA[Over the past couple of weeks, I have been evaluating Apache Wink for developing RESTful services in Java. I am very impressed with what it&#8217;s capable of. The project is still in &#8216;incubation&#8217; stage, and implements the JAX-RS v1.1 spec providing both a server component and a client module. While I haven&#8217;t used the client [...]]]></description>
				<content:encoded><![CDATA[<p>Over the past couple of weeks, I have been evaluating Apache Wink for developing RESTful services in Java. I am very impressed with what it&#8217;s capable of. The project is still in &#8216;incubation&#8217; stage, and implements the JAX-RS v1.1 spec providing both a server component and a client module.</p>
<p>While I haven&#8217;t used the client capabilities yet, the server module is pretty feature-rich. I had some issues getting authentication to work, but I think I have mostly figured it out. Will post an update once I run some tests.</p>
<p>You can download Wink from this link: <a href="http://incubator.apache.org/wink/">http://incubator.apache.org/wink/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sandeep.weblogs.us/archives/apache-wink-and-rest-services-in-java.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>If I could have it, my next phone would be a&#8230;</title>
		<link>http://sandeep.weblogs.us/archives/if-i-could-have-it-my-next-phone-would-be-a.html</link>
		<comments>http://sandeep.weblogs.us/archives/if-i-could-have-it-my-next-phone-would-be-a.html#comments</comments>
		<pubDate>Mon, 30 Aug 2010 20:03:18 +0000</pubDate>
		<dc:creator>Sandeep</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sandeep.weblogs.us/?p=620</guid>
		<description><![CDATA[Nokia 5110, no questions asked. Pure phone (the classic Snake game notwithstanding), excellent battery life, no Internet (but would still let me tweet &#8211; hey, SMS is all I need!). This was the first mobile phone I ever used, borrowed from my uncle who did not want to use it at the time &#8211; this [...]]]></description>
				<content:encoded><![CDATA[<p>Nokia 5110, no questions asked. Pure phone (the classic Snake game notwithstanding), excellent battery life, no Internet (but would still let me tweet &#8211; hey, SMS is all I need!). This was the first mobile phone I ever used, borrowed from my uncle who did not want to use it at the time &#8211; this was around 2002.</p>
<p>After that, I moved to a Nokia 3650 &#8211; in 2004, and did not look back. Fast forward to 2010 and I am sick of my HTC Android phone&#8217;s battery life, call quality (of course, T-Mobile is to blame), sometimes sad UI, and a bunch of other things.</p>
]]></content:encoded>
			<wfw:commentRss>http://sandeep.weblogs.us/archives/if-i-could-have-it-my-next-phone-would-be-a.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Obligatory post for January 2010</title>
		<link>http://sandeep.weblogs.us/archives/obligatory-post-for-january-2010.html</link>
		<comments>http://sandeep.weblogs.us/archives/obligatory-post-for-january-2010.html#comments</comments>
		<pubDate>Sun, 10 Jan 2010 17:41:33 +0000</pubDate>
		<dc:creator>Sandeep</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sandeep.weblogs.us/?p=615</guid>
		<description><![CDATA[Not much blogging, nor tweeting. Big changes at work which suddenly caught everyone by surprise. More later.]]></description>
				<content:encoded><![CDATA[<p>Not much blogging, nor tweeting. Big changes at work which suddenly caught everyone by surprise. More later.</p>
]]></content:encoded>
			<wfw:commentRss>http://sandeep.weblogs.us/archives/obligatory-post-for-january-2010.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>One possible way Square works</title>
		<link>http://sandeep.weblogs.us/archives/one-possible-way-square-works.html</link>
		<comments>http://sandeep.weblogs.us/archives/one-possible-way-square-works.html#comments</comments>
		<pubDate>Tue, 01 Dec 2009 20:04:20 +0000</pubDate>
		<dc:creator>Sandeep</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Mobile/PDA]]></category>
		<category><![CDATA[Smartphones]]></category>

		<guid isPermaLink="false">http://sandeep.weblogs.us/?p=605</guid>
		<description><![CDATA[Square was launched today. I whipped out a quick diagram (in Dia) of how it might work since it&#8217;s not apparent from the website. Correct me if I&#8217;m wrong. This design provides a simple, extensible solution. The key module here is the card reader which plugs in to any device with an audio jack. At [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://squareup.com">Square</a> was launched today. I whipped out a quick diagram (in Dia) of how it might work since it&#8217;s not apparent from the website. Correct me if I&#8217;m wrong.</p>
<p>This design provides a simple, extensible solution. The key module here is the card reader which plugs in to any device with an audio jack. At present, of course, only the iPhone/iPod touch feature the Square Up application. I am pretty sure it will soon be available for a plethora of smartphones out there.</p>
<div id="attachment_606" class="wp-caption aligncenter" style="width: 310px"><a href="http://sandeep.weblogs.us/wp-content/uploads/2009/12/square-up-working.png"><img class="size-medium wp-image-606" title="square-up-working" src="http://sandeep.weblogs.us/wp-content/uploads/2009/12/square-up-working-300x219.png" alt="Square Up" width="300" height="219" /></a><p class="wp-caption-text">Square Up</p></div>
]]></content:encoded>
			<wfw:commentRss>http://sandeep.weblogs.us/archives/one-possible-way-square-works.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Whoa, didn&#8217;t realize November went by</title>
		<link>http://sandeep.weblogs.us/archives/whoa-didnt-realize-november-went-by.html</link>
		<comments>http://sandeep.weblogs.us/archives/whoa-didnt-realize-november-went-by.html#comments</comments>
		<pubDate>Mon, 30 Nov 2009 14:05:17 +0000</pubDate>
		<dc:creator>Sandeep</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://sandeep.weblogs.us/?p=603</guid>
		<description><![CDATA[Much was achieved. We launched Call-n-Tweet!]]></description>
				<content:encoded><![CDATA[<p>Much was achieved. We launched <a href="http://callntweet.com">Call-n-Tweet</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://sandeep.weblogs.us/archives/whoa-didnt-realize-november-went-by.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sony DCR-SR47 HDD Camcorder</title>
		<link>http://sandeep.weblogs.us/archives/sony-dcr-sr47-hdd-camcorder.html</link>
		<comments>http://sandeep.weblogs.us/archives/sony-dcr-sr47-hdd-camcorder.html#comments</comments>
		<pubDate>Thu, 15 Oct 2009 13:45:38 +0000</pubDate>
		<dc:creator>Sandeep</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[camcorder]]></category>
		<category><![CDATA[gadgets]]></category>
		<category><![CDATA[hdd]]></category>
		<category><![CDATA[sony]]></category>

		<guid isPermaLink="false">http://sandeep.weblogs.us/?p=601</guid>
		<description><![CDATA[I&#8217;ve been using a DVD camcorder (Canon DC40) all these years, and while I have been quite happy with it, it&#8217;s also annoying to keep track of DVDs, backing them up to a hard disk, re-ordering new ones when they get damaged, etc. I was looking for a HDD-based camcorder and stumbled upon the Sony [...]]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve been using a DVD camcorder (Canon DC40) all these years, and while I have been quite happy with it, it&#8217;s also annoying to keep track of DVDs, backing them up to a hard disk, re-ordering new ones when they get damaged, etc. I was looking for a HDD-based camcorder and stumbled upon the <a href="http://www.amazon.com/gp/product/B001P3O3OK?ie=UTF8&amp;tag=schandur-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=B001P3O3OK">Sony DCR-SR47 Hard Disk Drive Handycam® Camcorder (Silver)</a><img style="border:none !important; margin:0px !important;" src="http://www.assoc-amazon.com/e/ir?t=schandur-20&amp;l=as2&amp;o=1&amp;a=B001P3O3OK" border="0" alt="" width="1" height="1" /> on Amazon.</p>
<p>At least the reviews indicate that it&#8217;s a pretty good camcorder. Still not sure if I should go for it.</p>
]]></content:encoded>
			<wfw:commentRss>http://sandeep.weblogs.us/archives/sony-dcr-sr47-hdd-camcorder.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8230;followed by a busier September</title>
		<link>http://sandeep.weblogs.us/archives/followed-by-a-busier-september.html</link>
		<comments>http://sandeep.weblogs.us/archives/followed-by-a-busier-september.html#comments</comments>
		<pubDate>Thu, 01 Oct 2009 04:42:35 +0000</pubDate>
		<dc:creator>Sandeep</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[pity post]]></category>

		<guid isPermaLink="false">http://sandeep.weblogs.us/?p=599</guid>
		<description><![CDATA[Sigh. I&#8217;ve been tweeting away, though, so if you&#8217;re on there, follow @schandur. Thanks.]]></description>
				<content:encoded><![CDATA[<p>Sigh. I&#8217;ve been tweeting away, though, so if you&#8217;re on there, follow @schandur. Thanks.</p>
]]></content:encoded>
			<wfw:commentRss>http://sandeep.weblogs.us/archives/followed-by-a-busier-september.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Busy August</title>
		<link>http://sandeep.weblogs.us/archives/busy-august.html</link>
		<comments>http://sandeep.weblogs.us/archives/busy-august.html#comments</comments>
		<pubDate>Wed, 26 Aug 2009 16:02:41 +0000</pubDate>
		<dc:creator>Sandeep</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[bangalore]]></category>
		<category><![CDATA[food]]></category>
		<category><![CDATA[life]]></category>

		<guid isPermaLink="false">http://sandeep.weblogs.us/?p=583</guid>
		<description><![CDATA[I came back from Bangalore in the 3rd week of July, but ever since that time I have been busy busy INSANELY BUSY with work. So much so that I haven&#8217;t had time to run or go to the rock-climbing gym near my apartment. We&#8217;ve been working on some cool new projects, the details of [...]]]></description>
				<content:encoded><![CDATA[<p>I came back from Bangalore in the 3rd week of July, but ever since that time I have been busy busy INSANELY BUSY with work. So much so that I haven&#8217;t had time to run or go to the rock-climbing gym near my apartment. We&#8217;ve been working on some cool new projects, the details of which I cannot divulge at this time.</p>
<p>The India trip was very good, something I definitely needed &#8211; since I hadn&#8217;t been there for more than 2 years. Bangalore is growing and continues to amaze me as a city. That said, the bandwidth available there could definitely use an uplift. I wonder if anyone is bringing in fiber-optic networks. With all the digging going on, one might as well jump on the bandwagon now and save people the trouble later. In any case, I spent some much-needed time with relatives and friends (not as much as I wanted to with friends and more than what I wanted to with relatives, but o&#8217; well).</p>
<p>I also managed to eat food at some of my favourite (and the city&#8217;s best) restaurants (or hotels as they are more commonly known as), including Vidyaarthi Bhavan, Dwaraka Bhavan and Brahmin&#8217;s Coffee Bar. Words can&#8217;t describe the dosas and idlis and vadas that you get at these places: they are simply mouthwatering.</p>
<p>Now I am back in New Jersey, more specifically Jersey City, with its plethora of Indian restaurants. Like I said in the beginning, it&#8217;s been a busy month. I should be back with more blogging next month.</p>
]]></content:encoded>
			<wfw:commentRss>http://sandeep.weblogs.us/archives/busy-august.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
