3rd
JAN

Google Go, windows version is out

Posted by Keith under Golang

There were only Linux/OSX versions – now someone built it for Windows ( http://code.google.com/p/go-windows/ )

Get http://go-windows.googlecode.com/files/go-1.zip

To install, unzip and set the following environment variables:

set GOROOT=<the go folder>
set GOOS=mingw
set GOARCH=386 

and then add GOROOT\bin directory to PATH.

Go Hompage: http://golang.org/

Go packages: http://golang.org/pkg/

Tutorial: http://golang.org/doc/go_tutorial.html

Sample Hello world source:

Save below as “hello.go

package main

import “fmt”

func main() {

fmt.Printf(”hello, world\n”)

}

How to compile:

% 8g hello.go à produces “hello.8”

% 8l hello.8 à produces “8.exe”  (or “8.out” in Linux)

3rd

Using Clojure in Cygwin

Posted by Keith under Clojure

 

Create a shell script as below:

#!/usr/bin/bash
CLASS_PATH=/java/lib/clojure.jar:/java/lib/jline.jar
CMD="java -cp `cygpath -wp $CLASS_PATH`"
SHELL="jline.ConsoleRunner clojure.main"
SCRIPT="clojure.main" 

if [ "$1" ]; then
  $CMD $SCRIPT $1
else
  $CMD $SHELL
fi

28th
DEC

Editing big text files in Windows

Posted by Keith under Cool Apps, Windows

Tried a few apps and found this works the best: JujuEdit

http://www.jujusoft.com/software/edit/index.html

25th
NOV

Try Google Chrome OS

Posted by Keith under Unix/Linux

Download VMWare or VirtualBox image from this site – it requires to create an account:

http://gdgt.com/google/chrome-os/download/

Or use this torrent for VMWare image:

http://torrents.thepiratebay.org/5170843/chromeos-image-999.999.32309.211410-a1.vmdk.bz2.5170843.TPB.torrent

For Windows Torrent client, I use this client: http://www.utorrent.com/

23rd
NOV

The surprising science of motivation: Dan Pink on TED.com

Posted by Keith under Management

Amazing.  All managers should watch this and think about it.  What really motivates people?

http://blog.ted.com/2009/08/the_surprising.php