Thursday, October 6, 2011

Sending this message from an IPad... Can't understand the feeling. But one thing is there... What a life he has led! bye Steve Jobs!

Steve Jobs RIP – How the world is reacting

http://thegadgetfan.com/apple/steve-jobs-rip-how-the-world-is-reacting.html

Steve Jobs, the vision­ary who built many beau­ti­ful things have passed away at the age of 56. Jobs has stepped down as Apple’s CEO only recent­ly and made sure that the tran­si­tion will be smoother. More than Apple, more than the prod­ucts Jobs built it’s his atten­tion to detail that strikes me the most. Excel­lence is what Jobs strived for. If there are two things I have learnt from the man it is this – Para­noia and excel­lence.

Wednesday, October 5, 2011

The camera is surely better but 'Siri' seems to be the exciting stuff!

Breaking : Apple intros new iPhone 4s with A5 Chipset Retina display same design as the iPhone 4 (PR)

http://igyaan.in/2011/10/breaking-apple-intros-iphone-4s-a5-chipset-retina-display-design-iphone-4/

Apple Launch­es iPhone 4S, iOS 5 & iCloudiPhone 4S Fea­tures Dual-Core A5 Chip, All New Cam­era, Full 1080p HD Video Record­ing & Intro­duces Siri

Tuesday, October 4, 2011

Beware of these calls

After spam SMS, phishing ISD missed calls menace beckons | Video & Photo Reviews of Gadgets at BGR I

http://www.bgr.in/2011/10/04/after-spam-sms-phishing-isd-missed-calls-menace-beckons/

After spam SMS, phishing ISD missed calls menace beckons | Get Video & Photo Reviews of latest gadget launches at BGR India Website. Get insights from all gadgets shows with a complete expert tech review.

Sunday, October 2, 2011

Setting up Scalate with Spring MVC

A week back I tried out using scalate with spring mvc:
The above link talks about just the spring configuration entry. I thought I could add a bit more information.
Get the required libraries
Yeah, this must be obvious. But just to keep things explicit.
  • scalate libraries  - scalate-core-1.5.2.jar, scalate-util-1.5.2.jar (I did not know I need the util jar also till I hit an issue) 
  • scalate spring mvc integration library - scalate-spring-mvc-1.5.2.jar
  • scala jars (hmmm... now that was obvious but yet...) - scala-library-2.9.1.jar, scala-compiler-2.9.1.jar.  Still not sure why the compiler is required!!!
Configure the spring configuration file
I think this is already covered in the above link. It tries to configure a view resolver for scalate templates.


A sample Spring MVC controller
A sample controller which provides some data to the template (I used the mustache based templates which we will see soon).
@Controller
public class ScalatePOCController {

	@RequestMapping("/scalatePOC.html")
	public ModelAndView pocHandler() {
		ModelAndView modelAndView = new ModelAndView();

		String name = "Superman";
		Product product = new Product();
		product.setId(10l);
		product.setName("Super Belt");
		return modelAndView;
	}

}

A sample template
I used mustache as my templating mechanism. Kind of like the fact that I can use the same template on both server and client side.
Hello Basic POC working!!!
Hello {{name}}!

This is the Product you want!!!
	{{#product}}
		{{id}}
		{{name}}
	{{/product}}


That I thought should get me rolling. When I then ran my tomcat to see the page, I got OOM (OutOfMemoryError). The JVM perm gen space had run out. Looks like all the scala stuff meant I needed a little more memory (could be just my case because I had other stuff also in my project.... so may not happen to all). I increased my perm gen space by giving the following jvm argument.
-XX:MaxPermSize=256M
That did it! I got my simple scalate - spring mvc app running...

Saturday, October 1, 2011

JavaScript again... And google- what happened to dart

Introducing Google JS Test - Google Open Source Blog

http://google-opensource.blogspot.com/2011/09/introducing-google-js-test.html

News about Google"s Open Source projects and programs

Quite useful hmmm...

Spice Mi 350 : First 3G Dual SIM Android phone

http://thegadgetfan.com/mobile-smartphones/spice-mi-350-first-3g-dual-sim-android-phone.html

Spice Mobil­i­ty, which gave India its first taste of a dual SIM mobile phone is the first to launch a 3G Dual SIM Android phone. Spice Mi350 is a dual SIM (GSM+GSM) phone pow­ered by Android 2.3 and will cost Rs. 9000. Spice Mi350 has other great spec­i­fi­ca­tions like a 3.5 inch touch screen and 5 megapix­el cam­era. Before we get to that let’s clear what’s first about this dual SIM phone.

Hmmm... Watch out for Amazon!!

Amazon to buy Palm and WebOS?

http://thegadgetfan.com/tablets/amazon-to-buy-palm-and-webos.html

Ama­zon not con­tent with its Android fork is shop­ping for WebOS. Sam­sung has backed out and HTC is still think­ing, leav­ing Ama­zon to grab Palm. In all like­li­hood Ama­zon will buy Palm and WebOS. If and when that hap­pens, the mobile game and tech indus­try dynam­ics will change one more time.

Friday, September 30, 2011

Nokia does not want to put all the eggs in one basket after all! Why? Is it worried about the basket or it's peers.

Nokia to turn mobile landscape on its head with ‘Meltemi’ smartphone OS

http://www.bgr.in/2011/09/29/nokia-to-turn-mobile-landscape-on-its-head-with-%E2%80%98meltemi%E2%80%99-smartphone-os/

Nokia is again devel­op­ing a pro­pri­etary smart­phone oper­at­ing sys­tem after announc­ing this past Feb­ru­ary that it would aban­don both Sym­bian and MeeGo in favor of Microsoft’s Win­dows Phone plat­form. Cit­ing mul­ti­ple anony­mous sources, The Wall Street Jour­nal on Wednes­day report­ed that Nokia’s exec­u­tive vice pres­i­dent of mobile phones, Mary McDow­ell, is head­ing up the project. Code-named “Meltemi,” the new mobile plat­form is report­ed­ly Linux-based and it is intend­ed for use on low-end smart­phones. BGR has inde­pen­dent­ly con­firmed the report, and we have learned addi­tion­al details that paint an excit­ing new pic­ture of the mobile indus­try should Nokia’s new OS real­ize its poten­tial.

A possibility of having super long lasting and super cheap batteries!

First Energy-Storage Membrane

http://nextbigfuture.com/2011/09/first-energy-storage-membrane.html

The new membrane promises greater cost-effectiveness in delivering energy, but also an environmentally-friendly solution. The researchers used a polystyrene-based polymer to deposit the soft, foldable membrane that, when sandwiched between and charged by two metal plates, could store charge at 0.2 farads per square centimeter. This is well above the typical upper limit of 1 microfarad per square centimetre for a standard capacitor.

Microsoft is really making a lot of noise of the right kind nowadays. Watch out!

Sencha Likes IE10: A Native Apps Library for JS is Coming

http://www.readwriteweb.com/hack/2011/09/sencha-likes-ie10-a-native-app.php

The big ques­tion among Web devel­op­ers has been whether brows­er and plat­form mak­ers are sim­ply lever­ag­ing HTML5 as an open-ended means to a closed end: specif­i­cal­ly, as a stan­dard lan­guage for pro­duc­ing native apps for mul­ti­ple plat­forms, as opposed to a sin­gle, cross-platform app that plays for all. That ques­tion may very soon be ren­dered moot if and when the lead­ing pro­duc­ers of JavaScript libraries ren­der native-looking con­tent using cross-platform code.