about me

Tuesday, 27 December 2016

How to install scala on ubuntu 14.04

-Download scala.
-cd Download

-tar -xvzf scala-2.12.1.tgz

-copy scala folder to your home folder.

-cd scala-2.12.1
-cd bin
scala REPL shell will appear.

:q to exit from REPL.

make your scala program in gedit file with .scala as extension.

-open scala REPL .

compile the program
-scalac HelloWorld.scala

Execute the program
-scalac HelloWorld

Sunday, 25 December 2016

netbeans -error-"not all requested modules can be enabled"

Go to the netbeans root folder/etc and open netbeans.conf.

Make sure the variable netbeans_jdkhome has the correct value, something like:


How to run Visual Studio Code as root in Ubuntu 14.04

1)It is recommended to start vscode as a normal user. To run as root, you must specify an alternate user data directory with the --user-data-dir argument.

 sudo code --user-data-dir=~/root

How to install Tizen Studio on Ubuntu 14.04

we must be same place of repository.

->chmod +x <download file name>
->./<download file name>

Wednesday, 3 August 2016


-Interface support dynamic method resolution at run time.

-Interface are similar to multiple inheritance in C++.

-Interface is defined like class.

    Syntax is:

                            <accessibility modifier> interface<interface name> <extends interface clause> //interface header


                                         // interface body

                                        <return type method1(parameter)>

                                       <return type method2(parameter)>

                                        <type final var 1=value>

                                       <type final var 1=value>

                                     <nested class declaration>

                                    <nested interface declaration>


-Name of interface is preceded by keyword interface.

-Method have no bodies. Each class that includes an interface must implements all of the methods.

-Variables in interface are implicitly final and static, so they can not be change by implementing class.

-Variables must also be initialized with a constant value.

-If interface declared as public, then,  all methods and variables are also implicitly public in interface.

-interface does not provide any implementation, and it is  abstract.

-Members(Methods and Variables) declaration can be written in any order in the interface body.

-Methods in interface are abstract and public by default.

-To implement an interface, a class must create the complete set of methods of interface.

-Any number of classes can implement  single interface.

-Any number of interfaces can be implemented by single class.


          interface x


              void x(int a);


Friday, 15 July 2016

How to Install dotnet core 1.0 and Asp.net 1.0 on Ubuntu 14.04

-sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet/ trusty main" > /etc/apt/sources.list.d/dotnetdev.list'
-sudo apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893
-sudo apt-get -y update
-sudo apt-get -y install dotnet-dev-1.0.0-preview2-003121

-sudo apt-get -y install curl
-sudo curl --silent --location https://deb.nodesource.com/setup_5.x | sudo bash
-sudo apt-get -y install nodejs

-sudo npm install -g yo

-sudo npm install -g generator-aspnet
 for running console and empty allication run follwing comamnds
-cd Helloworld
-dotnet restore
-dotnet build
-dotnet run

 for web application, choose Bootstrap (3.3.6)and also run one additional command

dotnet ef database update

 so here is all commands to run aspnet1.0 web app

-cd Helloworld
-dotnet restore
-dotnet ef database update
-dotnet build
-dotnet run

go to ->http://localhost:5000/

Saturday, 11 June 2016

temporary Email ID without password

If you do not want to give personnel / business email on every online form, survey,then with Mail Drop, you can create temporary ID.Just simply enter a username and your inbox is created, without needing any password,and you can create multiple accounts as per your need.

However, attachments are not allowed  and inbox flushes every 24 hours.


ftp server

If you have setup an FTP server,then  you can use  https://ftptest.net/  to check your configuration settings. This site will try to connect to the server using the ftp server details given by you. The site  will analyze your ftp server . If there are any problems along the way, the site will tell you what is wrong and will display some suggestions how to fix the problem.

Saturday, 28 May 2016

How to find the location of tomcat running on centos6

-ps  -ef |  grep tomcat

-whereis   tomcat6

How to Install FileZilla on Centos 6


-sudo -i

-cd /tmp

download the repo

-wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

Install repo using RPM

-rpm -ivh epel-release-6-8.noarch.rpm

Install FileZilla

-yum install filezilla

Go to CentOS menu bar


Friday, 27 May 2016

How to install Netbeans on centos

1) Download Netbeans

2) Make package executable

-chmod  700  netbeans –8.0.1-linux.sh


-./netbeans  -8.0.1-linux.sh

how to install eclipse on centos

1)Download eclipse

2)expand/extrack tar file

         -tar -xvzf eclipse-standard-luna-R-macosx-cocoa-x86_64.tar.gz(or whatever version of eclipse /repository you installed)

(Adding read permissions)

           - chmod -R +r /opt/eclipse

Creating executable

              - touch /usr/bin/eclipse
             - chmod 755 /usr/bin/eclipse

4)Start Eclipse

              -Change directory to /eclipse.

               -Run the eclipse program by typing:

How to install Android studio on ubuntu 14.04

Download Android studio

Create new folder (AndroidStudio)

-cd AndroidStudio

cut and paste downloaded folder to AndroidStudio folder

unzip the folder

-cd androidstudio

-cd bin


Android studio started to install, but after few steps, it may give Error:

                Error-unable to run mksdcard SDK tool in ubuntu

Type and enter following command

       -sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6

Now again type and run 

Android studio will be installed.

Thursday, 26 May 2016

How to Install unetbootin on ubuntu 14.04

-sudo add-apt-repository ppa:gezakovacs/ppa

-sudo apt-get update

-sudo apt-get install unetbootin

-sudo su

-sudo /usr/bin/unetbootin

How to Install netbean 8.1 on ubuntu 14.04

1) download jdk

2)download netbeans

On Linux platforms, the installer file has the .sh extension. For these platforms, you need to make the installer files executable by using the following command: chmod +x <installer-file-name>.
After that, Type ./<installer-file-name> to run the installer.

Open terminal

cd Downloads

make file executable

chmod +x jdk-8u91-nb-8_1-linux-x64.sh
chmod +x netbeans-8.1-javase-linux.sh

run the installer


How to clean cache in ubuntu14.04

-sudo /etc/init.d/dns-clean start

-sudo apt-get install nscd

-sudo  /etc/init.d/nscd restart