Masnun - masnun.com - Abu Ashraf Masnun
General Information:
Latest News:
Django on Heroku: Postgres and dbshell 18 Aug 2013 | 03:28 am
If you’re deploying a Django app on Heroku you should already know that Heroku uses Postgres. The surprise comes when your “dbshell” command will fail with an error message like: You appear not to ha...
Python: Sending Growl Notifications 18 Aug 2013 | 02:40 am
Growl is an extremely popular notification system for OS X. The application allows developers to display beautiful notification messages with ease. If you’re developing an application in Python and wo...
Extend Google Apps With Custom Scripts 17 Aug 2013 | 07:22 pm
Let’s get to the point straight way – we can extend the functionality of Google apps with our own scripts. Google allows us to create small scripts written in JS and attach these scripts to certain ev...
Django REST Framework: Quick Introduction 14 Aug 2013 | 03:21 am
Okay, so you know how cool Django is? Well, Django Rest Framework brings the Django like simplicity in building REST APIs. Installation Use pip to install: Add to Installed Apps: ModelViewSet: Doi...
Django: Flush (Clear) Database 13 Aug 2013 | 01:59 am
In Django, we often need to remove all the tables (with data) and recreate them from scratch. Specially, after changing a model structure, if we’re not using any database migration tool, we usually ma...
Vim Madness 13 Aug 2013 | 01:03 am
I use the top notch IDEs for development but that is not geeky enough. So, ignoring my previous failed attempts, I am going to give the text editor one more try. Apparently, this blog post would be mo...
Go: Creating new types based on built-in types 6 Aug 2013 | 09:04 pm
Ever needed a custom string type to add your own methods or tweak certain behavior? In languages like Ruby or Javascript, you can directly modify built in types. In other languages, we usually create ...
Goroutines: Threading made easy! 2 Aug 2013 | 12:59 am
This post is dedicated to the awesome concept of “Goroutines” in Go. A “Goroutine” (Go Routine?) is a lightweight thread implementation that executes asynchronously with the main process. To define a ...
The “Go” Programming Language: A First Look [Part-1] 29 Jul 2013 | 09:47 pm
It’s been a while I am looking at Go. The language is nice, feels like a mixture of Python and C with huge performance gains and some innovative language features. In this post, I would try to quickly...
Laravel 4: Sending Emails 13 Jul 2013 | 01:26 pm
Laravel 4 uses SwiftMailer library behind the stage. They have wrapped the SwiftMailer functionality in elegant and easy to use APIs for delivering emails. The Mail::send() API is straight forward, i...