Tips and Tricks SQL PL/SQL HTML CSS Web services(SOAP/REST) ANT MAVEN XML JSON Ajax Materials Eclipse Tricks Server Confiqurations Bootstrap

Tuesday, 6 September 2016

How to start command prompt with batch file?

  Normally we will open command prompt with run command "cmd", we have another way to open command prompt with single click, that is with batch file. Just follow below steps to achieve that thing.

1) Open notepad just type "start" and save with cmd.bat
Note:- Here instead of cmd you can save with any name, but extension should be .bat

2) After saving that file simply double click on that, then command prompt will open.

Monday, 15 August 2016

Introduction about FileUtils class in java and example

   Normally in java we can perform File related operations with Files class like reading,writing files e.t.c. . But we can do more operations on files with third patry class that is FileUtils, provided by Apache foundation software. And this class 
included in commons-io-2.5.jar file, you can download it from this link  https://commons.apache.org/proper/commons-io/download_io.cgi
And include it in your project build path for usage.

We will get following functionalities with this class :-

1) Reading from a file
2) Writing to a file
3) Copying files and directories
4) Deleting files and directories
5) Comparing files content
6) Getting file last changed date
7) Listing files and many more...

Now we will look at simple example i.e writing string in to a file using FileUtils class. To do this operation we have a method i.e writeStringToFile in FileUtils class this simply writes mentioned string data in to a given file.Now let me write code
for this example.
package com.thirdparty;

import java.io.File;
import java.io.IOException;

import org.apache.commons.io.FileUtils;

public class Example {

	public static void main(String[] args) {

		
		String data = "Hello Programmer!";
		File file = new File("F://newdata.txt");
		try {
			FileUtils.writeStringToFile(file, data);
		} catch (IOException e) {
			System.out.println("Problem Occured");
			e.printStackTrace();
		}
	}

}

Sunday, 31 July 2016

How to get Integer maximum and minimum value in java?

In this example  we will code to get integer minimum and maximum values. Let's do code
package com.system;


/**
 * 
 * @author Sreekanth Gude
 * 
 */
public class DateToString {

 public static void main(String[] args) {

     // Getting Integer data type Minimum and maximum value.
  
  System.out.println("Integer Maximum Value: "+Integer.MAX_VALUE);
  System.out.println("Integer Minimum Value: "+Integer.MIN_VALUE);
 }

}

Sunday, 24 July 2016

Java Code Snippet: Converting Date to String in Java

package com.system;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

/**
 * 
 * @author Sreekanth Gude
 * 
 */
public class DateToString {

public static void main(String[] args) {

// Getting the Current Date By using calendar object
Date date= Calendar.getInstance().getTime();
System.out.println("date"+date);
// Creating the SimpleDateFormat instance by using formatting 
// Here we are specifying the required date format
DateFormat df =new SimpleDateFormat("dd/MM/yyyy");
// By using format method we are converting specified Date into string in a given format
String stringFormatOfDate=df.format(date);
System.out.println("stringFormatOfDate"+stringFormatOfDate);
}

}

Wednesday, 20 July 2016

Download Pokemon Go Free on android devices for Indian users only !!

   Hello gaming  lovers  you might be heard about  Pokemon Go game, today it is going viral across the world. This game officially launched by Niantic and The Pokemon Company on july 12. Now this game officially launched in US,Newzland, Zermany, Australlia and it is not yet released officially in any other region. Coming to indian users it is not available in Google play store. But here we have a way to download apk file from apkpure.com then we can easily install it on Android devices



Steps to download Pokeman Go game download:

1) First of all go through this link https://apkpure.com/pok%C3%A9mon-go/com.nianticlabs.pokemongo

2) Now click on download option. If your downloading it in your PC, then transfer it to your mobile. If your downloading from mobile then directly take it from downloads folder.
                                       
3)  Then click on that apk file it will ask's you to install the game. Then click on install option later click on next , next option

4) Now your done with Pokemon Game installation. Enjoy it.

Please do comment below if you have any problem with downloading and installation.

Here is the beginner's guide  to start Pokemon GO  game.


Sunday, 1 May 2016

How to get or download audio file(MP3 file) from youtube video without using any software with simple trick?


 Sometime you may want only audio file from any Youtube videos. For that you might have seen soo many software's to do that work,but you can achieve that with out using any software with simple 2 sec trick. Just follow the below steps

Step 1:-

Open Youtube Home page




Step 2:-

Select video which you want to download only audio file that is in MP3 format


Step 3:- 

Then you can see the full URL of the video in address bar. From that Remove "ube" from the youtube. See below


Orginal URL:- https://www.youtube.com/watch?v=jDn2bn7_YSM

After Removing "ube"  :- https://www.yout.com/watch?v=jDn2bn7_YSM

Then hit enter


Step 4:-

After completion of 3 rd step you will be redirected to new Screen. You can see below.




Step 5:-

Now your's favourite audio file ready to be download you can see at below of the browser




Monday, 29 February 2016

Getting the value based upon ID Using Jquery

   In this article we will code to get the value of HTML element based upon ID. For that we will use the predefined  function of Jquery i.e val(), Now look at the code.

<html>

<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
    $("#button").click(function(){
       var name= $("#name").val();
    alert("The name is"+name);
    });
});
</script>
</head>
<body>
<div align="center">

<h2 style="color:green"> Getting the value based upon ID in Jquery</h2>
<input  type="text" id="name"/>

<input type="submit"  id="button" value="Get Name" />
</div>
</body>
</html>

Thursday, 18 February 2016

Freedom 251 mobile online booking process at www.freedom251.com and features of this mobile

Hi buddies, today i am going to share the trending topic in the world now that was freedom 251 , it is a India's cheapest mobile launched by Ringing bells Pvt Ltd on 17th feb 2016. This was released by the indian defence minister 'Manohar Parrikar'. The official website to book this smartphone freedom 251 is http://www.freedom251.com, latest updates states that due to huge number of server hits while booking for this phone their  server goes down. They said that we will again start the services with in the 24 hours
To book the freedom 251 please follow the below process.


The booking already has been started at morning 6 AM on 17th Feb 2016, due to huge number of hits server goes down they are working on that they will get ready with in 24 hours, after that you can book the freedom 251 by following below process

For Online booking you have to visit freedom 251 official website that was http://freedom251.com, the cost of this mobile was 251/- Rs only after went to the official website you have to confirm your details and pay the money in advance. It may be delivered by after 30th feb 2016

Steps to follow to book freedom251 online

1) Go to the freedom 251 official website http://www.freedom251.com

2) Click the option "Buy Now" in website

3) There you have chance to enter your details and then click next(Here you have to enter name, mobile number, email id ,password, pincode, address details e.t.c)

4) Here you have to confirm your mobile number then save your details

5) And next step is payment, here you can use net banking or credit card

Note:- This freedom 251 3G smartphone mobile bookings will be close on 21st Feb 2016(sunday) 8 PM IST

Features of freedom 251 3G smartphone:-

Screen size: 4 Inch

Battery Capacity : 1450 mAh

Touch screen availability: yes

RAM: 1GB

Processor: 1.3 Ghz quad-core processor

Internal Storage: 8GB

Extendability of SD card: upto 32 GB

Flash availability: No

Camera: 3.2 MP

front camera: 0.3 MP

Operating system: Android Lollipop 5.1

Wi-Fi,GPS,Blutooth,GSM,3G option is available

There is no 4G operation





Saturday, 6 February 2016

Pavan negi solded for 8.5 crores in IPL for Delhi dare devils

  Pavan negi an indian young player had a double jock pot as he is selected for ICC T20 world cup recently. Just now he sold out for 8.5 crores to delhi at the age of 23. As pune, delhi started their base prize with 10 lakh finally an unexpected prize 8.5 crores for pavan negi.has been sold out to delhi.
Stephen flemming pune warriors coach as tried a lot to get pavan negi into pune warriors but finally delhi has picked him. The greatest news is that he had sold out for more prize than yuvi.


Friday, 29 January 2016

How to get value of selected radio button by using Javacsript?

    Below  mentioned script is useful to get the value of radio button when we have multiple radio buttons. So let.s check below mentioned code.
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<script type="text/javascript">
function getFunction(){


var values = document.getElementsByName('language');
var value;

for(var i = 0; i < values.length; i++){

    if(values[i].checked){
	
        value = values[i].value;
		alert("The value of selected radio button"+value);
    }
}

}
</script>
</head>

<body>
<div align="center">


<h2>How to get value of selected radio button by using javascript</h2>

<br/>
<input type="radio" id="radio1" name="language" value="Java"   onclick="getFunction()"> Java</input>

<input type="radio" id="radio2" name="language" value="PHP"  onclick="getFunction()"> PHP </input>

<input type="radio" id="radio3" name="language" value="Hadoop"  onclick="getFunction()"> Hadoop </input>

</div>
</body>

</html>

Knowing which radio button selected by using Javascript

    In this post we will see how to know which radio button is selected when we have multiple radio buttons in form. Let's check below mentioned script it may helpful in your projects when you go for field validations or to do some other operations.
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<script type="text/javascript">
function getFunction(){
if (document.getElementById('radio1').checked) {
  alert("You selected Java");
}else if(document.getElementById('radio2').checked){
  alert("You selected PHP");
}else if(document.getElementById('radio3').checked){
  alert("You selected Hadoop");
}

}
</script>
</head>

<body>
<div align="center">


<h2>Knowing which radio button selected by using Javascript</h2>

<br/>
<input type="radio" id="radio1" name="language" value="Java" onclick="getFunction()"> Java</input>

<input type="radio" id="radio2" name="language" value="PHP" onclick="getFunction()"> PHP </input>

<input type="radio" id="radio3" name="language" value="Hadoop" onclick="getFunction()"> Hadoop </input>

</div>
</body>

</html>
Powered by Jasper Roberts - Blog