Thursday, September 5, 2013

Go Programming - Installation

I was playing with Go programming language (Golang) recently. Go looks like an interesting programming language.  I will show you how you can install Go in a 64 bit GNU/Linux system.


To install Go in a 64 bit GNU/Linux:
cd $HOME
wget -c
tar zxvf go1.1.2.linux-amd64.tar.gz
mkdir mygo
You can download source and binary packages of Go from from here:
To set PATH and other environment variables, add these lines at the end of $HOME/.bashrc:
export GOROOT=$HOME/go
export PATH=$PATH:$GOROOT/bin

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

Running a program

To run a program:
go run <program.go>
Here is an example hello world program:
package main

import "fmt"

func main() {
    fmt.Printf("Hello, world.\n")
Save the above code in a hello.go and run it like this:
go run hello.go

You can build (compile) and run the binary like this:
go build hello.go

Here is the screencast I created with same notes.

I am looking forward to your feedback.

Monday, September 2, 2013

To the Indian Python Programming Community, Thank you for the award

I received the first Kenneth Gonsalves Memorial Award for contributions towards advocacy and adoption of Python programming language in India. My thanks to the Indian Python Programming Community and Python Software Society of India (PSSI) for the award.

The award was given on the first day of PyCON India 2013 conference (last Saturday).  This is the 5th year of  PyCON India, There was more than 1100 attendees this time. The keynotes, talks, workshops and panel discussion (on Python in education) were great.

I had my workshop (tutorial) on Selenium last Friday. I hope the video will be available soon.