Custom Search

SUBSCRIBE

SUBSCRIBE : 300 + Free Video Tutorials Programming (Python, golang, Julia), DevOps

Wednesday, September 27, 2017

How to Install maven in Mac macOS Sierra 10.12.5 Mac OS X

$ java -version

$ echo $JAVA_HOME

$ brew install maven

$ which mvn

$ mvn -v

======

$ java -version
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

$ echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home

$ brew install maven
Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
==> Downloading https://www.apache.org/dyn/closer.cgi?path=maven/ma
Already downloaded: /Users/user/Library/Caches/Homebrew/maven-3.3.9.tar.gz
🍺  /usr/local/Cellar/maven/3.3.9: 94 files, 9.6M, built in 0 seconds
yadneshs-MacBook-Pro:~ user$ 

$ mvn -v
Apache Maven 3.3.9
Maven home: /usr/local/Cellar/maven/3.3.9/libexec
Java version: 1.8.0_131, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.12.5", arch: "x86_64", family: "mac"

Saturday, September 23, 2017

How to Setup Python Development Environment with Atom Editor in macOS Sierra Mac OS X

1)
Launch Atom.
Go to ---> "Preferences".
Click on +Install

In the Search packages search box, enter the following plugins and install it:





a) script
Select python file, then press "CTRL+SHIFT+P", then type "script" then enter to run python file.

b) autocomplete-python

d) python-autopep8
* dependency package : pip install autopep8
* In package settings select "format on save" option.
* format check

e)linter-flake8
* dependency package : pip install flake8
* syntax check

Optional:
a)file-icons
b)minimap

Saturday, September 16, 2017

How to Setup Golang Go Development Environment with Atom Editor IDE

1)
Setup the "GOPATH" for your Go Projects
vim ~/.bashrc

export GOROOT=$HOME/go
export PATH=$GOROOT/bin:$PATH

export GOPATH=$HOME/mygoproject1
export PATH=$GOPATH/bin:$PATH

===========


1)
sudo add-apt-repository ppa:webupd8team/atom

2)
sudo apt update

3)
Install
sudo apt install atom

4)
Remove
sudo apt remove --purge atom

============

1)
Launch Atom.
Go to "Edit" ---> "Preferences".
Click on +Install

In the Search packages search box, enter the following plugins and install it:

a) go-plus
b) atom-runner

3)
Close Atom Editor and launch it again.


4)
In the Atom Editor, go to "File" ---> "Add Project Folder".
This will bring up a Folder selection dialog and you can point it to the root of your application.

5)
Create a new file named main.go and create "Hello World" Program.

6)
Check auto-complete, Try "Ctrl-Space".

7)
Select *.go file and press "CTRL+SHIFT+P", then type "run file" and enter to run the go file.