Thursday, August 2, 2012

Review of Sony Vaio (VPCEB34EN) E series



Hi This post is about my Sony vaio laptop experience which might help you in buying Sony's vaio . 
I bought my sony vaio (vpceb34en) laptop in Novermber 2010. Worth  40,000(INR)












Basic Specs - E series  
  • Intel core i3 processor 2.40 GHz
  • windows 7 Home basic (original- pre-loaded)
  • Hard disk- 320 GB
  • Ram or memory- 3GB DDR3
  • 512 ATI RADEON graphic card
Plus all features like  WI-FI,Webcam(motion eye), CD ROM, HDMI I/O, 3 USB slots, projector connector, Sata port , MMC(memory card) slot, SD slot and HG duo memory stick slot(sony cams)

Screen size and keyboard - 15.6" with isolated keyboard, which i think is best. 

So its after one and half year later review . 

At first look you would fall in love with sony vaio laptops. build is good and screen, keyboard is fantastic. Gaming with 512 ATi readon is awesme. But just in one year i had got a problem in my laptop. Many small spots inside screen or a cluster of tiny spots inside the screen (middle of screen, corner of screen) .


My laptop comes into warranty so i went to sony's customer care or service center and there they detected a issue with my laptop and submit my laptop just for one day with the promise to replace the whole screen. A very next day they called me for receiving of laptop and i got my laptop fixed they kept their promise. New screen has been implanted. i am happy with the service. But after 8 months what i noticed that same thing happening again.and spots are coming back on new screen as well, small clusters of spots are appearing on 3 or 4 places like in the corner of screen,middle of screen.Spots are not irritating or agitate while working. but why they are appearing. there is some problem in screen.Now that time i didn't talk with Sony customer center again because now they are gonna charge me for fixing this and i m sure they would charge high to replace the screen. 

Battery life- Pretty Bad battery life, Just one and half hour. (Vaio claims 3 hours )


Brightness issue- There is some brightness issue in Sony vaio. lets say if you maximize your laptop brightness with function [fn] + brightness button. as you close the lid and open it again, It lost that brightness and again return to low brightness now if you are trying to adjust the brightness again with same keys  nothing would happen. so this happens with me all the time.I have to close and open the lid in order to adjust the screen brightness.Which is pretty  irritating.

When i follow the battery saver instructions  

Ran laptop on very low brightness with Wi-fi and Bluetooth off and charge laptop upto 80% not full charged. Still gave me one and half hour backup which is certainly not good. I am a web developer and it hurts when its shows battery remaining 10% and you are end up searching for power source after just one and half hour.


So if you are heavy laptop user.then don't go for such big screen laptops. Vaio consume lots of battery if it has big screen or in this price and range.   

























Tuesday, April 10, 2012

Express.js













Express.js

High performance, high class web development for Node.js

ExpressJs is a small library for building web apps with JavaScript, written with node.js and V8. Express is  an insanely fast (and small) server-side JavaScript web development framework. It has a terse syntax because it’s based on Sinatra.

FEATURES

o    Robust routing
o    Redirection helpers
o    Dynamic view helpers
o    Application level view options
o    Content negotiation
o    Focus on high performance
o    View rendering and partials support
o    Environment based configuration
o    Session based flash notifications
o    Built on Connect
o    Executable for generating applications quickly
o    High test coverage


var app  = express.createServer();

app.get('/' function(req, res){
res.send('foo bar');

});

app.listen(3000)

See with a small code server can be created . it can accept requests and send back response. 

express got all the library that we need, we just have to require and all done . 

for more info refer that
http://expressjs.com/


Saturday, February 4, 2012

Monday, January 30, 2012

Socket.Io

Socket.IO aims to make realtime apps possible in every browser and mobile device, blurring the differences between the different transport mechanisms. It's care-free realtime 100% in JavaScript.

We can create realtime application with the use of socket.io . i have used this with my node.js server to create my app . In simple language what socket.io do . I am taking a simple daily life exmple to explain . 

Example - what is socket.io  ?
suppose you are traveling in the bus from New Delhi to Noida . you just board on bus after travelling little you ask conductor is Noida come ? . conductor say no  . after some time you again ask , is noida come ?
conductor said no . and you keep asking to conductor like this . and conductor obviously annoyed at some time .and now imagine if everyone on bus keep asking for their respective stations. this is pretty obvious he will annoy and shout . if same thing happen with server, it may crash. So what we need . that a person who would board on the bus tell conductor in advance that whenever bus arrive to Noida station just tell me . whenever that station come , conductor give a message to all, who so ever is interested just step down from bus. simple.
Same thing we want with sever , whenever a client send request to server it make a bidirectional connection with it which will not going to close after the desired event happen. so its like a tunnel. 
e.g if client want Rss feed of some foo bar website . client just once need to connect with server, whenever server got any new feed it just broadcast to user who is interested  in that feed without opening and closing connection again again . its a persistence connection between client and server. 

why we need socket.io ?
 yes why we need socket.io , sever and client request responses also handle by ajax , but why socket.io.
because we need a persistence connection between client and server. Most of the time wasted in opening and closing connection . why we need to close connection if we want regular news feed .now it make sense . if any client server req res cycle takes 300ms to perform one job . only 100ms it take to exchange data, other 200ms used in opening and closing the connection . This much waste of time it matters on internet . 

Monday, January 16, 2012

JSON



JSON is Javascript object notation . this is also a part of my learning . bcoz Its a popular data interchange format between clients and servers. 

Json is basically a lightweight data interchange format. earlier we used to with XML and HTML and many more .But Json is lightweight , Easy to understand , language independent and self describing.

As we know that Server cannot send any object directly to client . so it need any middleware which can understandable both the side  so through Json, server send any query as a string type and on client side it can easily be parsed as Object .So basically in laymen language json is a string , which can be easily converted into object and also object to string.

lets take a example. 

1.)
{
"student": [
{ "firstName":"tom" , "lastName":"decker" }, 
{ "firstName":"varun" , "lastName":"jain" }, 
{ "firstName":"lexia" , "lastName":"woodhouse" }
]

} 

2.)
'{
"employees": [{ "firstName":"John" , "lastName":"Doe" }, { "firstName":"Anna" , "lastName":"Smith" }, { "firstName":"Peter" , "lastName":"Jones" }]}'

so you can see how both look similar but First one is object and Second one is String. 

so object to string and string to object . 

JSON.stringify(data);  - this convert into string format.

JSON.parse(data);      - this convert into javascript object . 


Friday, January 6, 2012

Create Server with Node js

We can create a full fledged SERVER in Node.js , we need HTTP server to handle all web requests and responses  and to serve web pages.

lets make a simple server,At first it seems like tough task to create server , but with node js its not 

  

var http = require("http");

http.createServer(function(request, response) {
  response.writeHead(200, {"Content-Type": "text/plain"});
  response.write("Hello World");
  response.end();
}).listen(8888);

That's it! You just wrote a working HTTP server. Let's prove it by running and testing it. First, execute your script with Node.js
require HTTP  its like include header files in c/c++.  it include the module called "http". Now In  http.createServer passing anonymous function (function with no name).  


Wednesday, January 4, 2012