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


Export html web page to pdf using jspdf

Posted On 15 October 2015 By MicroPyramid

jsPDF is used to generate pdf files in client-side Javascript. You can find the links for jsPDF here and also you can find the link to project homepage. You've to include the scripting files/links in head section to work properly.

Tip: We have to download the newest version of the library and include it in the HEAD or at the end of the BODY section.

Usage and configuring i3 window manager in Ubuntu

Posted On 02 October 2015 By MicroPyramid

i3 is a tiling window manager, tiling window manager is non-overlapping frames of application windows. In this tutorial you will learn how to install i3wm

Paginating S3 objects using boto3

Posted On 28 September 2015 By MicroPyramid

When using Boto you can only List 1000 objects per request. So to obtain all the objects in the bucket. You can use s3's paginator.

Building Documentation with readthedocs

Posted On 24 September 2015 By MicroPyramid

In this blog, I'm going to explain you how to write the Sphinx docs using reStructuredText to host in the Read the Docs.

Installing Sphinx
$ pip install Sphinx

And we have script called sphinx-quickstart in Sphinx that sets up a source directory and creates a default conf.py with the most useful configuration values from a few questions it asks you. Just run the following command-
$ sphinx-quickstart

Preserve file names with sorl for better SEO

Posted On 21 September 2015 By MicroPyramid

We use sorl-thumbnail for scaling images by keeping the original one intact. Sorl proven to be great tool for generating different sized images throughout website. I presume that you know how to use sorl-thumbnail. Here we see how to preserve filename. Search Engines will give importance to image alt tag content but it definately have some impact on relevant image file name too.

Automate Django Deployments with fabfile

Posted On 15 September 2015 By MicroPyramid

Fabric is a Python library and command-line tool with the ability to execute commands on a remote server. It is designed to use SSH to execute system administration and deployment tasks on one or more remote machines.

Ansible for Server Process Automation

Posted On 31 August 2015 By MicroPyramid

Ansible is one of the few automation tools which uses an agentless architecture, where you dont need to install daemons in client nodes for interacting with controlling system. It combines multi-node software deployment, ad hoc task execution, and configuration management.

Creating Elastic Search Cluster (EC2, cloud-aws Plugin)

Posted On 09 August 2015 By MicroPyramid

While handling Large amounts of data with elasticsearch, you may run out of server capacity or compute power, Forming a Elasticsearch cluster will reduce the load distribution. In Single ElasticSearch Instance end point acts as Data Node + Master Node + Client Node.

Custom Password Less Authentication in Django

Posted On 31 July 2015 By MicroPyramid

Authentication backends allow the ability to change what method checks your users credentials.

For web services, ie Facebook authentication, you don't have access to user data like a password. Without password(not like random string) we can't create a user in django. Facebook connect provides you details of the currently authenticated user.

Improving page speed score in Google Page Score test- PART2

Posted On 30 July 2015 By MicroPyramid

In our previous blog post we got an idea of what are the things that Google's Page Speed Insights will take into count to give page socre, now in the present blog post we'll get to know what are the techniques we can use to improve the page scrore.

Need any Help in your Project?Let's Talk