Installing Google Plugin in Eclipse

Installing Google Plugin in Eclipse

Installing Google Plugin in Eclipse: Google plugin can be helpful to work with appengine, android ADT’s and cloud deployments. Appengine is one of the best one to deploy Java J2EE web applications. Appengine gives daily free limits, so you can start using google appengine service to deploy J2EE web application either for learning or small start-ups or initiatives.   Step 1: Open your eclipse and follow the steps, Step 2:  Eclipse Juno 4.2: http://dl.google.com/eclipse/plugin/4.2 Eclipse Indigo 3.7: http://dl.google.com/eclipse/plugin/3.7 Eclipse Helios…

Read More Read More

780 total views, no views today

Failed to load JNI shared library

Failed to load JNI shared library

Eclipse error: Reason for the above error: Both eclipse and java bit may not be same. Eg:  eclipse (32bit) and java(64bit) or eclipse(64bit) and java(32bit). Solution: Match the eclipse bit(32bit) and java(32bit) or eclipse bit(64bit) and java(64bit). How to check whether eclipse is 32bit or 64bit ? Just go to eclipse configuration file and see the line below like this, eclipse.ini plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813 this is 32bit eclipse. Download the eclipse and java from the official below sites with same bit(32 bit)…

Read More Read More

1,258 total views, 1 views today

array in php example

array in php example

Program: array.php <?php $myarray=array(1,2,3,4, 5 => 11, 26 => 2,5, 11 => 10); print_r($myarray); ?>  Output:   Thanks for reading this post…………!!! 723 total views, no views today

723 total views, no views today

array_combine in php example

array_combine in php example

Program: array_combine.php <?php $arr_one=array(1,2,3); $arr_two=array(java,html,php); $array_combined=array_combine($arr_one,$arr_two); print_r($array_combined); ?>  Output: Thanks for reading this post…………!!! 699 total views, no views today

699 total views, no views today

array_count_values in php example

array_count_values in php example

Program: array_count_values.php: <?php $array=array(5,”naveen”,11,“indian”,”naveen”,5,”naveen”,”naveen”); print_r(array_count_values($array)); ?>  Output:   Thanks for reading this post…………..!!! 768 total views, no views today

768 total views, no views today

Retrieving Hashmap value by comparing hashmap key

Retrieving Hashmap value by comparing hashmap key

Program: Hashmap.java package com.ngdeveloper.com; import java.util.HashMap; import java.util.Map.Entry; public class Hashmap { public static void main(String[] args) { String keyword="super"; HashMap<String, String> myMap = new HashMap<String, String>(); myMap.put("super", "java keyword"); myMap.put("array_merge", "php array function"); for (Entry<String, String> pair : myMap.entrySet()) { if(pair.getKey().equalsIgnoreCase(keyword)){ System.out.println(keyword+" is: " + pair.getValue()); } } } }   Output: super is: java keyword Thanks for reading this post…….!!! 773 total views, no views today

773 total views, no views today

Android Hello World

Android Hello World

Step 1: File -> New -> Android Application project in eclipse (see “Android in Eclipse“ article for how to program android in eclipse). Step 2: Create Helloworld.java class file under com.example.helloworld package, and paste the below code. package com.example.helloworld; import android.os.Bundle; import android.provider.Settings.System; import android.app.Activity; import android.widget.EditText; import android.widget.TextView; public class HelloWorld extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_hello_world); TextView agnPrint = new TextView(this); agnPrint.setText(“Hello world…!!”); setContentView(agnPrint); } }  Output:   Thanks for reading this post……………!!!…

Read More Read More

949 total views, 1 views today

Adding Address Bar Icon in wordpress

Adding Address Bar Icon in wordpress

Step 1: Go to Appearance -> Editor and open header.php Step 2: under </title> in header.php add the below line with your customization, <link rel=”shortcut icon” href=”(specify the icon location in the server)” /> Then you can see your icon at the address bar or title bar. Note: .ico file is prefered for address bar icon.   Thanks for reading this post………!!! 793 total views, no views today

793 total views, no views today

Removing wordpress footer

Removing wordpress footer

Step 1: Go to Appearance -> Editor and open the footer.php. Step 2: Change the footer.php file. search php printf statement, based on the theme it will be there in top or middle or last.   to comment any line, use this <!– –> . Thanks for reading this post……!!! 838 total views, no views today

838 total views, no views today

Php Hello world

Php Hello world

Step 1: Create a file named hello.php under the php file extracted location(I have extracted my php in d:\php), so i have pasted the below code in d:\php\hello.php and paste the below code, <?php echo “Hello World!\\n” ?>   Step 2: Now go to the command and execute as follows,   Thanks for reading this post……….!!! 920 total views, 1 views today

920 total views, 1 views today