Categories
Uncategorized

The Google Go Experience

I have always wanted to check out the Go language sooner but unfortunately enough couldn’t have a go… Today I googled if there are any debian packages for Google Go and luckily I found one… It’s of course not an official release from the Go team. Still it interested me. I downloaded the file and installed the package. Yeah, it works! This is the first time I am playing with Go, so no issues have been encountered. But the debian package requires me to overwrite some of the GCC files. Again, I am not a serious C/C++ programmer, so I don’t know if that has damaged my GCC to any extent.

Oh yeah, I forgot to mention I am on Ubuntu 9.04 🙂 I downloaded the package from this link: http://drop.io/gccgodeb/asset/gccgo-4-5-0-1-i386-deb

It’s nearly a 27 MB of download. I downloaded and double clicked to install it. The installation failed with some errors. So, I pointed back to the Original Source Page (Author’s Blog Post) of the package and re-read carefully. I had to use the command line to set “–force-overwrite” mode to the dpkg utility so that it could overwrite files at it’s discretion. Here’s the command:

Now, for quick demo, I downloaded the sample “Hello World!” source code from the official Go website at http://golang.org/ 🙂 (Hey, wasn’t it http://go-lang.org the last time I visited it? No way, both URL works now 😀 )

PS: I am sorry that my Syntax Highlighter doesn’t yet have the Go syntax highlighting patterns. Neither does my code editor! But still I used the code block, just out of a good practice! 😛

Then I compiled the source (after naming it masnun.go) with the following command:

It created the file a.out . I ran it from the command line again:

It was pretty easy in fact! I am going to play with Go at my leisure to check out what it has to provide the developers with… I love Python, let’s see if Go can give me anything more than Python 🙂

Thanks to Google, we have another programming language to do our bidding! Happy programming!

Categories
Python

Sending Mail Via Postfix: A perfect Python Example :)

I have been playing with Postfix for the last couple of days. I have already posted a perfect php class for sending email with attachments in a previous post. The Python example I posted earlier does the job for me but it was not perfect like the php one.

After digging a while, I found a nice way to do the same for python as well. I have just tested the codes and the result is perfectly what I desired 🙂

Here’s the code:

Categories
Personal

Good Bye 2009, Welcome 2010!

I should feel sorry now that 2009 is leaving me, leaving us! I have had the most eventful year in 2009 🙂

First things First
What were the things those happened first time in my life?

— I sat for University Admission test.
— Got chances in SUST CSE and 4 disciplines in KU.
— My University life began.
— Started free lancing seriously.
— Started earning money at a regular interval.
— Went to BAD picnic and my first tour with the BAD family into the Sunderbans 🙂
— Joined my first Job (At Leevio as a software engineer).
— Attended the first ever FICC.
— Stood 3rd in my first Uni term final 🙂
— Started using Ubuntu seriously
— Started working with WP API
— Worked on GAE and other Python stuff 🙂

What else?
— BAD won the cricket championship. I was an active part in the gallery.
— Met a bunch of cool friends.
— Lost a few fake ones as well.
— My brother got chance in Khulna Zilla School 🙂

Wishlist for 2010
I would wish only one thing — A laptop in 2010 🙂

I am really contended with what I have got in life. I am happy with what I got in 2009. Thanks to the Almighty Allah for everything HE has blessed on me 🙂 I just pray that nothing bad happens in 2010 😀

I pray to the Almighty so that HE bestows his blessings upon those who have a worse life than me. I have nothing more to expect 🙂

Good Bye 2009, Welcome 2010! 🙂