My predictions for 2011

Like many technology people I tend to think of what is coming up. So here are some predictions I have for 2011. I will keep updating this list as and when i think of them.

  1. Kindle in Color – Kindle has been so successful and it’s e-ink technology is so well soothing for the reader. I am predicting that Amazon will launch a newer and color version of Kindle to lure magazine readers.
  2. A new device from Apple – Looking at the new AppStore and how Apple is pushing harder to build a proprietary vertical from chips to software – I can only think of how Apple might come up with a new device which will be somewhere in between iPad & MacBook Air. This would be like a google’s CR48 but will only run apps from Apple’s app store – which of course would be adopted by many apple fan boys.
  3. Added on 2/1/2011 – Google will release a library (Closure based?) and upgrade it’s Dalvik JVM for android so that we can write apps in Javascript. I am not talking about Javascript based web apps – but Javascript based native apps.  With Oracle suing Google and making sure it will be pain in the butt to Google for the near future – I am guessing Google will pick a language which is developer friendly and also doesn’t suffer with legal issues.
Posted in Predictions | Leave a comment

Git – Mind Mapped

I have been using Git for a project recently and happen to love it. Here is a mind map of what I have learned from Pro Git book

Posted in Mind Map, Tools | Leave a comment

Apple Cheated

This is the new letter from Apple about the issue of it’s dropping calls and how you grip the phone.

To quote

Upon investigation, we were stunned to find that the formula we use to calculate how many bars of signal strength to display is totally wrong. Our formula, in many instances, mistakenly displays 2 more bars than it should for a given signal strength. For example, we sometimes display 4 bars when we should be displaying as few as 2 bars. Users observing a drop of several bars when they grip their iPhone in a certain way are most likely in an area with very weak signal strength, but they don’t know it because we are erroneously displaying 4 or 5 bars. Their big drop in bars is because their high bars were never real in the first place.

So, this basically means that the software in iPhone which shows the bars has been faking it and showing additional bars which can be interpreted as good signal strength. And this lead to so much confusion among iPhone users – because their calls dropped even when there were more bars – putting the blame on AT&T.

All the 3 generations of iPhone have been basically cheating people when it comes to showing signal strength. If Apple is stunned by this, then what about the users?

Posted in Apple, Opinion | Leave a comment

Palindromic Primes using Objective-C

I was watching the Data Structures course ware  at Academic Earth and there was a problem being solved to find all prime numbers within a range. It’s a very simple problem (not efficient) but I wanted to add some twist to it. So, I wrote a Prime number searcher which picks out only those that are Palindromic.

#import "Foundation/Foundation.h"

int main (int argc, const char * argv[]) {
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];

  int counter = 0;
  int m = 100000;
  NSMutableString *s;

  for(int i=1; i<=m; i++){
    int flag = 0;
    int c = ceil(sqrt(i));
    for(int j = 2; j <= c; j++){       if( (i != 2) && (i % j) == 0){ 	flag =1; 	break;     }   }
         s = [NSMutableString stringWithFormat:@"%d", i];
         NSMutableString *ostr =  [NSMutableString stringWithCapacity:[s length] ];
         for(int x=([s length]-1); x>=0; x--){
            [ostr appendFormat:@"%C", [s characterAtIndex:x]];
        if([s isEqualToString: ostr]){
          NSLog(@" %d is Palindromic Prime", i);
  NSLog(@"A total of %d number of primes within %d", counter, m);
  [pool drain];
    return 0;

Posted in Code, Objective-C | Leave a comment

Apple’s Dilemma

Apple released it’s iPhone 4 yesterday and as usual with any Apple (mobile) product launches people lined up in front of Apple stores to get their hands on the latest toy. But as the day progressed there has been a lot of talk about how iPhone antenna’s new placement is causing the reception to drop.

Critical iPhone 4 issues

This is really bad. Adding to the AT&T’s already sucky reception – this is really bad. How I hold my phone should not limit my quality of call! People wrote to Steve Jobs (equivalent of praying in a Chapel for a religious person) and got a reply “You are holding it wrong“(sic). Then there are people who responded by putting up all the pictures which Apple released for iPhone 4 where people were holding the phone in the same exact way any normal humans hold it and this causes the reception to drop. The reception in question is ONLY cellular not WiFi.

I think this is going to be more common in future. This is Apple’s dilemma. As it launches more and more new products – more secretly and with a tight hold on who gets to see what – there would be more surprises as they launch new products. I think this issue with iPhone could have been resolved if any real customer would have tested it. But no, because of Apple’s draconian secret development – all the people who test it are either tech savvy or it’s been tested in a very safe environment. This causes the product to be not tested well before it hits the shop.

I can only see how Apple is going to curtail more and more future product releases. Just imagine how they freaked out when iPhone 4 leaked out 2 months back. I am sure they have bolted down everything on their campus now.

So, this is Apple’s dilemma. By being super secret about their new upcoming products they come out with the most interesting product launches. But the very idea of keeping it a tight secret denies them access to a real test market and there by results in a crappy functionality of the product.

I am not sure how they are going to solve it but making sure you always buy 2nd or 3rd generation of any Apple product is always a safe bet. But then you wouldn’t get to spend 10 hours in front of an Apple store and showcase your new toy to your friends. In the whole tech industry – Apple is the ONLY company that can pull this off.

Posted in Apple, Products | Tagged | Leave a comment

CakePHP Conventions Explained

I have worked on CakePHP on and off. I was revising it recently for a project at hand and I realized that it would be nice to have a diagram which explains all the players involved in CakePHP framework and also the conventions it uses.

Here it is:

CakePHP Conventions

Posted in cakephp, programming | Leave a comment

Upgraded to WordPress 3.0

I am really impressed with WordPress 3.0 so far. Just upgraded from 2.9.2 to 3.0. Here is a video to convince you too if you are looking.

Posted in Wordpress | 1 Comment

Mind Map of “The Javascript Programming Language – Part 1″

Recently, there has been a shift in perception of Developers. People are taking Javascript very seriously. Not only it has excelled on the Client side, now it’s entering into server side. A very welcoming trend but also a difficult one – because a lot of people like me don’t necessarily learn Javascript the right way. I think Douglas Crockford is doing an amazing job of spreading  the right knowledge about the language. His series of talks on javascript are becoming classics. I was revising them just so I can work on one of my pure Javascript based project and thought I would put out the Mind Maps I usually create when I learn something.

Here is the link to the video :

Click on the image to download the mind map. I use Freemind.

Posted in Javascript | Tagged | Leave a comment

Google buys a Chip making company

Giving a new meaning to the battle between Apple and Google – Google bought a chip making company called Agnilux which was started by former P.A.Semi chip company guys.  Apple bought P.A. Semi couple of years ago.

I personally believe that this move on behalf of Google clubbed with buying of On2 – there by their video codec VP6 – and rumors of releasing it as an Open Source software in an upcoming Google IO event next month – Google is preparing to get into building a DVR and getting into TV medium. The Google TV effort started only a month ago. Just imagine a DVR built by Google using Android as a OS and all the apps on the Andriod Marketplace can be used on TV. Thats much much better than Apple TV.

I would love to have a Google based DVR. Have you ever tried to do a search and record on either Dish DVR or Comcast’s DVR? It’s nearly impossible.

Here are the link(s) related to this news:

Posted in Google, News | Leave a comment

HTML 5 presentation done in HTML5

Posted in Links, html5 | Tagged , | Leave a comment