Assuming you’ve logged in as root in Debian 5.0, to install the Go programming language by Google,

  1. Add these environmental variables for Go in .bash_profile:
    export GOROOT=$HOME/go
    export GOARCH=386  # for 32 bit architectures. Use GOARCH=amd64 for 64 bit architectures
    export GOOS=linux
    export GOBIN=$HOME/bin
    PATH=$PATH:$GOBIN
    
  2. Install the Mercurial ‘hg’ command:
    aptitude install mercurial
  3. Fetch the sources of Go and put them at $GOROOT:
    hg clone -r release https://go.googlecode.com/hg/ $GOROOT
  4. Fetch compilers and related utilities:
    aptitude install bison gcc libc6-dev ed make
  5. Create the directory $HOME/bin by:
    mkdir $HOME/bin

    and compile Go:

    cd $GOROOT/src
    make all

Done. You can now go about writing your first hello world program. If you haven’t got a server yet, I recommend Linode VPS and Rackspace Cloud.

Related Posts:

{ 0 comments }

Rackspace Referral Discount

by on January 3, 2010

By Rackspace I mean Rackspace.com the managed dedicated hosting service, not RackspaceCloud.com the cloud hosting. I’ve been talking a lot lately about Rackspace Cloud so I thought I’d make it clear. ;)

Check them out, they are pretty much the most expensive host you can find on the web. Their most basic server costs over $400 a month with 2TB monthly bandwidth. It’s by all means not a generous offer but it’s probably the most reliable and responsive platform you will ever need to know. They have the best uptime across the entire industry. A profitable online business deserves an uptime of 100%, because every minute of down time costs you money – no matter how solid and perfect your website is, it’s nothing when it’s down.

Rackspace provides the best support to its clients. They are not just a hosting provider, they are the all-around IT company who you can trust your entire IT infrastructure with. They take over everything from creating to optimizing, and monitoring to troubleshooting. When something goes wrong, chances are they have actively found and fixed it even before you know it. Many of the top players use Rackspace for their hosting needs. WHT, the Internet’s No.1 web hosting forum, has been with them for years. In a word, Rackspace is the kind of hosting you need when every second of your business counts.

5% Referral Discount for You

Anyway, as I’m a partner of Rackspace, I can earn or give 5% discount off any of their managed dedicated server packages. Shoot me a message about your intention to host with them, so I can get you the 5% discount and ask them to contact you. I’m currently not relying on this to make a living so, it’s better to pass along the favor than letting my partnership with them sitting in dust.

As per FTC requirement, I’m not making any money off this at all. ;)

Cloud Hosting

If you find their dedicated service a little more privileged than you can afford, their cloud hosting may be a better deal. Use this promo code for Rackspace Cloud to get a discount off their cloud hosting plans.

Related Posts:

{ 0 comments }

PHP: Subject String Length Limit of Regular Expression Matching Functions

January 3, 2010

Here’s a quick tip for those who have encountered this very same problem that all regular expression functions of PHP such as preg_match() and preg_replace() stop working when the input string (subject string to be searched or matched) is too long or large. If you believe your regular expressions should work but didn’t and the [...]

Read the full article →

A Simple PHP Contact Form Script

January 3, 2010

It’s also a free one and a rather easy one too. You should be able to do it yourself. To create a working contact form, you need the front end and the back end. The front end presents the form to the website user and the back end accepts the data sent from the [...]

Read the full article →

Rackspace Cloud Promo Code

January 3, 2010

As the entrenched leader in cloud hosting, Rackspace Cloud is the cloud products division of Rackspace, the world renowned managed dedicated hosting provider. To make a long story short, cloud hosting is simply multiple servers (a pool of servers) simultaneously hosting for your websites and web applications. It’s the base of SaaS hosting. With the [...]

Read the full article →

Cool Suffixes and Prefixes for Brandable Domain Name Registration

January 3, 2010

With all the good ones taken, branding the common keywords / keyphrases may be a better approach in this era of web. Below is a list of short but sweet prefixes and suffixes that I have come up with and that you can use to brand the generic keywords to have an available domain name [...]

Read the full article →

How to change CJ password? (of Commission Junction)

January 3, 2010

This question has been asked a thousand times on the web and Commission Junction has apparently decided to make it harder for the affiliate publishers to find out how to change the password of their account.
To change your CJ account password,

Log into the account area or control panel,
Click “Account” of the top menu,
In [...]

Read the full article →

How to recover lost Firefox bookmarks? Where is my Firefox bookmarks folder?

January 3, 2010

IE records all bookmarks or favorite web shortcuts in a folder named Favorites, but where does Firefox store all the bookmarks?
Below are a list of very probable locations where Firefox would save your bookmarks by the OS you are using.

Windows 95 (without Desktop Update) C:/Windows/Mozilla
Windows 95 (with Desktop [...]

Read the full article →

Firefox 2 Download: The Latest Version of Firefox 2 – Because Firefox 3 Sucks Big Time!

January 3, 2010

Bloated! Simply bloated to a point that’s not geeky any more.
We need to revert to Firefox 2 and this is the download link of Firefox 2 setup executable file, the latest version Firefox 2.0.0.20, for Windows.
http://releases.mozilla.org/pub/mozilla.org/firefox/releases/2.0.0.20/win32/en-US/Firefox%20Setup%202.0.0.20.exe
Otherwise, you can view a list of historical releases of Firefox from the Mozilla team.
Not convinced? Let’s do some googling.

intitle:"ie [...]

Read the full article →

If you are not a professional designer and don’t want to look stupid

January 3, 2010

I have a few tips for you:

Stick to simple white design.
Use no more than 4 colors other than grey scale (white, black, grey). Actually 2 would be perfectly enough for text information intensive sites.
Design the site as if it’s a chapter in a print book.
Plan blank areas.
Be goal oriented and GET RID of EVERYTHING that’s [...]

Read the full article →