A blog about Django, Python, mongo DB, LINUX, Amazon Web Services


Django on GAE (google app engine)

Posted On 10 March 2013 By MicroPyramid

Google App Engine (often referred to as GAE or simply App Engine) is a platform as a service (PaaS) cloud computing platform for developing and hosting web applications in Google-managed data centers. Applications are sandboxed and run across multiple servers.App Engine offers automatic scaling for web applications—as the number of requests increases for an application, App Engine automatically allocates more resources for the web application to handle the additional demand.

How to access development server publicly using Localtunnel

Posted On 23 February 2013 By MicroPyramid

We do need to expose our local server to hit call-back URLs while programming with other APIs. There is a tool called local tunnel from http://localtunnel.me/ and that does it for you for free with https. Now, what local tunnel is? Local tunnel allows us to easily share a web service on our local development machine without any server modifications. It will assign a unique URL which can be publicly accessible that will proxy all requests to our locally running webserver.

How to generate PDF Files from HTML In Python using PDFKIT

Posted On 02 February 2013 By MicroPyramid

There are many approches for generating PDF in python. pdfkit is one of the better approache as, it renders HTML into PDF with various image formats, html forms and other complex printable documents.

Converting Audio and Video files using FFMPEG Tool

Posted On 29 January 2013 By MicroPyramid

FFMPEG is a command-line tool that converts audio or video to required formats, which handle multimedia data. It can also capture and encode in real-time.

Amazon SES - Handling Bounces and Complaints

Posted On 14 January 2013 By MicroPyramid

In general while sending emails, we will prepare some recipient addresses as our mailing list, which are valid and our recipients want and expect our mail. But some times, some emails which are invalid will bounce, and if valid recipients do not want your mail, they may mark your email as spam in their email client. High bounce and complaint rates put your account at risk of being shut down. So in order to avoid such problem we'll handle the bounces and complaints

Hosting Django Application with Nginx and UWSGI

Posted On 17 December 2012 By MicroPyramid

Django is a python based web- application development framework. Setting up a sample app and running it as easy as pie. Nginx is a webserver and like every other webserver it has it Pro's and Con's. Nginx was an answer to concurrency issue(handling thousands of concurrent connections) faced in apache and raised to fame.

Amazon AWS IAM Roles and Policies

Posted On 04 December 2012 By MicroPyramid

When You want to Provide access to Amazon Web Services Console or if you're planning to provide REST API Keys to your Developers of a Third Party Person, Using Providing access to Root Account Console or API Keys is not advisable since they basically will have full level access. Instead we can rely on IAM(Identity and Access Management).

CORS with Amazon S3 and CloudFront

Posted On 24 November 2012 By MicroPyramid

We struggle to load fonts from CloudFront because of CORS.

CORS - Cross Origin Resource Sharing is a security measure to block macious scripts or resources loading from foreign domain origins. This security will become hurdle when want to load resources from Amazon CloudFront. this is often encounter when we want to load fonts from CloudFront. Here is simple yet detailed steps to enable CORS on CloudFront.

Python Web Scraping with Beautiful soup

Posted On 05 November 2012 By MicroPyramid

Download all One Piece animation series episodes by scraping site using BeautifulSoup python library.


Posted On 21 October 2012 By MicroPyramid

The group() command, Aggregation Framework and MapReduce are collectively aggregation features of MongoDB. group(): Group Performs simple aggregation operations on a collection documents. Group is similar to GROUP_BY in mysql. Output format : Returns result set inline. Sharding: Its not support in shared environment. Limitations:

Need any Help in your Project?Let's Talk