MicroPyramid
Blog

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


LATEST BLOGS

Working with python collections Counter

Posted On 15 February 2016 By MicroPyramid

Python collections - Counter is to count the frequency of character, OrderedDict is to track the order of the contents in which they are added and defaultdict is to provide a default value for a nonexistent key for the dictionary element are explained with real time examples in part 2 of collections series.

Sorl-thumbnail to generate thumbnails in django

Posted On 13 February 2016 By MicroPyramid

Displaying and Customizing the images in django with sorl-thumbnail.

Check test coverage in Django code with Coveralls

Posted On 13 February 2016 By MicroPyramid

Coverage: It is a tool used for measuring the effectiveness of tests, showing the percentage of your codebase covered by tests.
Test Coverage is an important indicator of software quality and an essential part of software maintenance. It helps in evaluating the effectiveness of testing by providing data on different coverage items. It is a useful tool for finding untested parts of a code base. Test coverage is also called code coverage in certain cases.

Django Conditional Expressions in Queries

Posted On 13 February 2016 By MicroPyramid

Reduce database queries in django with Conditional Expressions. By using Conditional Expressions we can use "If...Elif...Else" expressions while querying the database so that we can reduce the number of queries to the database and increase the response time. If we don't use conditional expressions in queries we have to write raw SQL queries or we have to hit/query the database for multiple times. That's the reason Django included Conditional Expressions from version 1.8

Python to Debian package: Simple, Easy and Fast

Posted On 11 February 2016 By MicroPyramid

Packaging python script to debian follows strict instructions, using the following instructions, most of the steps can be skipped hence making it easy and fast.
If you like video goto https://www.youtube.com/watch?v=a9GzDZB5VeU. This video doesn't show setup.py file creating which is required, but excluding that portion everything is same as below.

Copy Text to ClipBoard event using Javascript

Posted On 03 February 2016 By MicroPyramid

Here you can learn about copy to clipboard using JavaScript. Copying content from a web form without needing to use the default browser functions. For this i am using ZeroClipboard functionality in the JavaScript.

Getting Started with the IPython Notebook

Posted On 22 January 2016 By MicroPyramid

IPython is a set of tools developed to make it easier for the programmers to work with Python and data. IPython provides extensions to the Python programming language that make working interactively convenient and efficient. IPython Notebook lets you write and execute code, analyze data in your web browser.

Understanding Logstash Parsing Configurations and options

Posted On 22 January 2016 By MicroPyramid

In This Tutorial we will learn to customize Logstash to parse any type of Log Files. Logstash helps us to process logs and other event data from a variety of systems. It also Supports variable injection into elasticsearch and has 200+ plugins.

Customize and Embed Vimeo Videos using Python Requests.

Posted On 22 January 2016 By MicroPyramid

Using python requests and vimeo endpoints it becomes very easy and simple to upload our videos and customize them.

Vimeo Access token:
1. Create an account at vimeo, vimeo has different levels of account, so based on your requirement signup for suitable account.(This article assumes pro account)
2. After you log in, create an app and generate token based on your requirement like editing, uploading, view etc..

Understanding Checkout flow in Django Oscar.

Posted On 22 January 2016 By MicroPyramid

Explaining Django Oscar checkout flow.

Need any Help in your Project?Let's Talk