Sunday, February 16, 2014

Save Web pages as PDF!

If you want to save any web page as pdf you only require chrome.Chrome will let you save any page as pdf. Let's see how we can do this: 1) Open you web page in chrome. 2)Press ctrl+p. 3)Print dialog will open.In print dialog change destination to "Save As PDF" 4)Hit the print button. Your web page will be saved as pdf. Using above steps you can convert any file to pdf. You just have open that file in chrom...

Tuesday, February 4, 2014

When to use RESTful design for web service development !

A RESTful design may be appropriate when the following conditions are met. The web services are completely stateless. A good test is to consider whether the interaction can survive a restart of the server. A caching infrastructure can be leveraged for performance. If the data that the web service returns is not dynamically generated and can be cached, the caching infrastructure that web servers and other intermediaries inherently provide can be leveraged to improve performance. However, the developer must take care because such caches are limited to the HTTP GET method for most servers. The service producer and service consumer have a mutual understanding of the context and content being passed along. Because there is no...

Monday, February 3, 2014

Getting location in android!

Below is a demo code for getting location from your android devices. MainActivity.class package com.gpsdemo; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Locale; import android.R.string; import android.app.Activity; import android.content.Context; import android.location.Address; import android.location.Criteria; import android.location.Geocoder; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.location.LocationProvider; import android.os.Bundle; import android.provider.SyncStateContract.Constants; import android.util.Log; import android.view.Menu; import android.widget.TextView; public class MainActivity...

Sunday, February 2, 2014

Format drive in Linux!

Formatting a drive in Linux is not a big issue.Linux provide an inbuilt utility "Disks" that can be used for this purpose.Steps for formatting drive using disks are as follow: 1) Open disks utility. 2)Select your drive to format. 3)Click setting icon and click format option. 4)Select erase and format type according to your requirements. 5)Click format. Now formatting will start...

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Affiliate Network Reviews