Category:

Simple unrar in Ubuntu

This is very simple and easy way to UnZip  rar file in Ubuntu. Please follow these steps to unrar your rar file Step 1. Install unrar in Ubuntu type sudo apt-get install unrar Step 2. If you want to unzip file in same directory type this command unrar e -r /your_path/myfile.rar or in other directory or […]

Continue Reading
Posted On :
Category:

Install xampp server in ubuntu

If you are window user and currently switch to Ubuntu and want to install XAMPP server on your system then this post can help you to install and run Xampp. Follow below steps to learn how to setup XAMPP. Step 1. Download latest release of Xampp server from there official website or click here and download Xampp […]

Continue Reading
Posted On :
Category:

Set custom font family in android application

Some time we need to add custom font family in our android application. Here is simple and working technique you can use to add font family in your android application. Step 1. Create assets folder inside F:\location\app\src\main  in your project. Step 2. Create fonts folder inside assets and paste your font family inside it. Step 3. Now […]

Continue Reading
Posted On :
Category:

Upgrade MySql version on ec2 instance

Here is simple command which you can run on your ec2 instance using putty. Step 1. Login to instance using putty. Step 2. Before typing bellow command take backup of your database so you can export it again after upgrade. Step 3. Type below command sudo apt-get update sudo apt-get upgrade sudo apt-get install mysql-server-5.6 Once upgrade […]

Continue Reading
Posted On :
Category:

Set Navigation Button on custom toolbar android

To enable back/home button on custom toolbar and add click listener on it use bellow technique. Toolbar toolbarTop = (Toolbar) findViewById(R.id.toolbar_top); setSupportActionBar(toolbarTop); /*getSupportActionBar().setDisplayShowHomeEnabled(true); getSupportActionBar().setIcon(R.drawable.ic_action_home);*/ toolbarTop.setNavigationIcon(getResources().getDrawable(R.drawable.ic_action_home)); toolbarTop.setNavigationOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent homeInt = new Intent(SearchResult.this, Search.class); startActivity(homeInt); finish(); } }); 🙂

Continue Reading
Posted On :
Category:

Post form data to server in AngularJs

Simple tip to send your form data to server using angular js and get that data in $_POST variable <html> <head> <meta charset=”utf-8″> <meta http-equiv=”X-UA-Compatible” content=”IE=edge”> <meta name=”viewport” content=”width=device-width, initial-scale=1″> <script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js”></script> <script src=”https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js”></script> <script type=”text/javascript”> var app = angular.module(“myApp” , []); app.controller(“sendForm” , function($scope, $http){ $scope.saveData= function(){ $scope.signError = false; $scope.signSuccess = false; var request […]

Continue Reading
Posted On :
Category:

Print form input key value using javascript

This is a a simple code to check form input fields names and its value using javascript for( var i=0; i<document.forms.FORM_NAME.length; i++ ) { var fieldName = document.forms.FORM_NAME[i].name; var fieldValue = document.forms.FORM_NAME[i].value; // use the fields, put them in a array, etc. // or, add them to a key-value pair strings, // as in regular […]

Continue Reading
Posted On :