Tuesday, January 24, 2017

Atom Editor: setup

http://www.marinamele.com/install-and-configure-atom-editor-for-python

Use a Python virtualenv
 apm install linter
 pip install flake8
 pip install flake8-docstrings
 pip install jupyter

 apm install linter-flake8
 apm install hydrogen

start atom after using workon to select the virutalenv

https://atom.io/packages/hydrogen

http://marcio.io/2015/07/supercharging-atom-editor-for-go-development/

apm install go-plus
apm install go-rename
apm install file-icons
apm install linter-golinter

go get -u github.com/jstemmer/gotags 
go get -u golang.org/x/tools/cmd/...
go get -u github.com/golang/lint/golint 
 
https://rominirani.com/setup-go-development-environment-with-atom-editor-a87a12366fcf#.94k3uye2t 
 
apm install terminal-plus 

http://stackoverflow.com/questions/38012317/why-isnt-autocomplete-of-local-packages-working-in-atom-editor
The issue is addressed in the README.md of the go-plus package:
First of all, make sure autocomplete-plus is present on your setup. Go-plus provides autocompletion through gocode tool, so you should ensure it's in PATH and available.
If you can't get autocompletion for the user-defined packages working, while it's there for packages from standard library, it's likely a trivial gocode-related issue. Try running gocode set. Some expected output'd be: propose-builtins false lib-path "" autobuild false force-debug-output "" package-lookup-mode "go"
What you gotta do is switching autobuild to true, by running gocode set autobuild true. Check autocompletion now, it must be working right.

Wednesday, January 11, 2017

New Ubuntu Setup for Deep Learning, Scala, and SPARK

# Install Ubuntu 16.04


sudo apt-get update
sudo apt-get upgrade

# See this post for a clean Tensorflow 1.0 CUDA 8.0 CUDNN 5 Python 3.5 Ubuntu 16.04 installation
https://programmingmatrix.blogspot.ca/2017/04/clean-tensorflow-10-installation.html







~/.bash_profile : export JAVA_HOME="`/usr/libexec/java_home -v '1.8*'`"

Scala


~/.bash_profile:
export SCALA_HOME=$HOME/scala-2.12.1
export SCALA_BIN=$SCALA_HOME/bin
export PATH=$PATH:$SCALA_BIN

Spark


cd
mv Downloads/spark-2.0.2-bin-hadoop2.7.tar .
tar xvf spark-2.0.2-bin-hadoop2.7.tar 
~/.bash_profile:
export SPARK_HOME=$HOME/spark
export SPARK_BIN=$SPARK_HOME/bin
export PATH=$PATH:$SPARK_BIN
export KERAS_BACKEND=tensorflow

ln -s spark-2.0.2-bin-hadoop2.7 spark

Golang

Atom Editor 


Tuesday, January 3, 2017

Go lang: adding a GitHub import

In your go code

import "github.com/valyala/fasthttp"

#Add to your ~/.bash_profile file for OS X and ~/.bashrc for Linux
export GOPATH=$HOME/golib
export PATH="$PATH:$GOPATH"

# OSX
source~/.bash_profile

# Linux
source~/.bashrc

go get -u github.com/valyala/fasthttp