2016/06/21

[Babun] compile with g++

Babun is a shell that allows you to use Unix/Linux command in Windows system.

If you see the message "fatal error: stddef.h: No such file or directory" in babun while compiling cpp source file.

Just use the command to update

pact update gcc-core gcc-g++

[Clion] Quick Start Guide

https://www.jetbrains.com/help/clion/2016.1/quick-start-guide.html

2016/05/15

VirtualMachine 由 USB 開機

Download: https://www.plop.at/en/bootmanager/download.html

將下載回來的檔案解壓縮,只需要用到plpbt.iso
以VMware為例,VirtualBox作法相似,都是指定CD/DVD開機,並且設定好USB連結後啟動虛擬機

在VMware中的CD/DVD Device指定為plopbt.iso,並插入USB
啟動虛擬機後就能從選單中選擇USB開機

2016/05/11

[Go] GOPATH

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

Reference: https://golang.org/doc/install

It is better to install go by downloading binary file.
If you use apt-get to install go, do not set "export GOROOT=$HOME/go"
To unset that, type "unset GOROOT"

[Vim] Vundle (Vim Plugin Manager)

為了替vim加入輔助不同語言開發的plugin
爬文所發現的plugin manager
基本上想要加上新的vim plugin,只要在.vimrc設定檔中加入Plugin 'plugin name'
再到vim裡面執行:PluginInstall,就會自動幫你處理到好,非常方便。


2016/04/17

[Go] Golang Learning Resource


[Websites]


1. https://github.com/dariubs/GoBooks
2. http://www.golang-book.com/
3. https://github.com/ardanlabs/gotraining/tree/master/reading?utm_content=buffere9092&utm_medium=social&utm_source=twitter.com&utm_campaign=buffer


[Books]


1. The Little Go Book (從變數命名判斷作者一定是七龍珠迷...)
http://openmymind.net/The-Little-Go-Book/


[Reference]


1. Golang.org
2. Go by Example
3. Go Tutorial
4. GoDoc

to be continued...

[Go] Golang plugin for Intellij platform


Reference: https://plugins.jetbrains.com/plugin/5047
Project on Github: https://github.com/go-lang-plugin-org/go-lang-idea-plugin

Link below is the autocompletion tool Gocode for Golang
https://github.com/nsf/gocode


(4/18 update) 

Golang plugins for Atom Editor



Golang plugin for Visual Studio Code