Techbook

Technology news and views
RSS icon Email icon Home icon
  • Boston Hack Day Challenge this weekend

    Posted on February 24th, 2011 Sandeep 9 comments

    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 — which is impossible given my deadlines at work.

    Still haven’t thought of what I will be working on — I may end up joining another team, or continue with the “audio reviews for the visually impaired” hack that I created during the Yahoo! Open Hack NYC event.

  • Apache WINK: Issue with Single-Element JSON Array

    Posted on January 14th, 2011 Sandeep No comments

    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:

    {
      "success": true,
      "subject": "Some subject",
      "origin": {
        "email": "some@email.example.com",
        "fullname": "Full name"
      },
      "listresult": {
        "r1": "yes",
        "r2": "no",
        "r3": "cancel"
      }
    }

    The expected response, of course, was for listresult to be as follows:

    "listresult": [
        {
        "r1": "yes",
        "r2": "no",
        "r3": "cancel"
        }
      ]

    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!

    Which led me to this posting 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 here. I chose the easier route of simply replacing the JSON4J library with Jackson, both in my build environment and in the WEB-INF/lib folder.

    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 this excellent post on IBM developerWorks.

  • Apache Wink and REST Services in Java

    Posted on December 8th, 2010 Sandeep No comments

    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’s capable of. The project is still in ‘incubation’ stage, and implements the JAX-RS v1.1 spec providing both a server component and a client module.

    While I haven’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.

    You can download Wink from this link: http://incubator.apache.org/wink/

  • If I could have it, my next phone would be a…

    Posted on August 30th, 2010 Sandeep 1 comment

    Nokia 5110, no questions asked. Pure phone (the classic Snake game notwithstanding), excellent battery life, no Internet (but would still let me tweet – 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 – this was around 2002.

    After that, I moved to a Nokia 3650 – in 2004, and did not look back. Fast forward to 2010 and I am sick of my HTC Android phone’s battery life, call quality (of course, T-Mobile is to blame), sometimes sad UI, and a bunch of other things.

  • Obligatory post for January 2010

    Posted on January 10th, 2010 Sandeep No comments

    Not much blogging, nor tweeting. Big changes at work which suddenly caught everyone by surprise. More later.

  • One possible way Square works

    Posted on December 1st, 2009 Sandeep No comments

    Square was launched today. I whipped out a quick diagram (in Dia) of how it might work since it’s not apparent from the website. Correct me if I’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 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.

    Square Up

    Square Up

  • Whoa, didn’t realize November went by

    Posted on November 30th, 2009 Sandeep No comments

    Much was achieved. We launched Call-n-Tweet!

  • Sony DCR-SR47 HDD Camcorder

    Posted on October 15th, 2009 Sandeep No comments

    I’ve been using a DVD camcorder (Canon DC40) all these years, and while I have been quite happy with it, it’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 DCR-SR47 Hard Disk Drive Handycam┬« Camcorder (Silver) on Amazon.

    At least the reviews indicate that it’s a pretty good camcorder. Still not sure if I should go for it.

  • …followed by a busier September

    Posted on September 30th, 2009 Sandeep No comments

    Sigh. I’ve been tweeting away, though, so if you’re on there, follow @schandur. Thanks.

  • Busy August

    Posted on August 26th, 2009 Sandeep No comments

    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’t had time to run or go to the rock-climbing gym near my apartment. We’ve been working on some cool new projects, the details of which I cannot divulge at this time.

    The India trip was very good, something I definitely needed – since I hadn’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’ well).

    I also managed to eat food at some of my favourite (and the city’s best) restaurants (or hotels as they are more commonly known as), including Vidyaarthi Bhavan, Dwaraka Bhavan and Brahmin’s Coffee Bar. Words can’t describe the dosas and idlis and vadas that you get at these places: they are simply mouthwatering.

    Now I am back in New Jersey, more specifically Jersey City, with its plethora of Indian restaurants. Like I said in the beginning, it’s been a busy month. I should be back with more blogging next month.