How to connect Azure subscription with Azure DevOps project?

by XDK 16. August 2019 02:41


Open Azure DevOps project portal --> Project settings --> Service connections (under Pipelines category) --> New service connection --> Azure Resource Manager Service connection

Enter the details

 Enter Azure credential


Azure DevOps Services | Microsoft Azure Services

Python Operator Precedence

by XDK 12. August 2019 06:10

Note: Operators in the same row are evaluate left to right except ** (Exponentiation) which is right to left binding



Formating in Notepad ++

by XDK 9. August 2019 16:22

To format the below numbers


  • Press Ctrl+H
  • Select Search mode Extended(\n, \r, \t, \o, \x...)
  • Enter Find what: \r\n
  • Enter Replace with: ,
  • Replace_All




Essential Installs to setup python development environment

by XDK 9. August 2019 15:09

Install commands:

Generic update:
sudo apt update

mySQL client install:
sudo apt install mysql-client

** mySQL login command **
mysql -h <RDS endpoint> -u <user name> -p <password>

apache server install:
sudo apt install apache2

python essentials install:
sudo apt install python3

** Refer here for pip install **

sudo apt-get purge python-pip
sudo python

sudo apt install python-pip
sudo pip install mysql-connector-python
sudo pip install pymysql

sudo pip install boto3

** Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for Python, which allows Python developers to write software that makes use of services like Amazon S3 and Amazon EC2. You can find the latest, most up to date, documentation at our doc site, including a list of services that are supported. **


Amazon Web Service | General | Python

File "/usr/bin/pip", line 9, in <module> from pip import main ImportError: cannot import name main

by XDK 9. August 2019 14:46


File "/usr/bin/pip", line 9, in <module> from pip import main ImportError: cannot import name main


The exception appears after installing python-pip in the environment. looks like, the script from github is outdated which may be the reason for the exception.

Quick Fix:

Reinstalling python-pip from website fixed the exception.

sudo apt-get purge python-pip
sudo python


Amazon Web Service | Python

What is Messaging Fan-out?

by XDK 8. August 2019 00:22


Fan-out is a messaging pattern where messages are broadcast in a one-to-many arrangement.One of the very common architectural patterns is fan-out where an event is sent to multiple subscribers by a broker. An event can be like placing an order, which can then be handled by inventory service, record-keeping, as well as shipping service concurrently. These events can also be very frequent - like clickstreams, or search strings on a website. AWS allows for fan-out architecture with SNS topics, and SQS queues. SQS queue(s) can subscribe to SNS topics and receive any message sent to the SNS topic(s)

* SNS - Amazon Simple Notification Service (SNS) is a highly available, durable, secure, fully managed pub/sub messaging service that enables you to decouple microservices, distributed systems, and serverless applications. Additionally, SNS can be used to fan out notifications to end users using mobile push, SMS, and email.

* SQS - Amazon Simple Queue Service (SQS) is a fully managed message queuing service that enables you to decouple and scale microservices, distributed systems, and serverless applications.


Amazon Web Service

What is serialization and Deserialization Python?

by XDK 7. August 2019 03:43


Python object serialization and deserialization is an important aspect of any non-trivial program. If in Python you save something to a file, if you read a configuration file, or if you respond to an HTTP request, you do object serialization and deserialization.

Serialization refers to the translation of object state into bytes to send it over the network or store it in hard disk. We need serialization because the hard disk or network infrastructure are hardware component and we cannot send objects because it understands just bytes and not objects

Pickling and Unpickling in Python.

Pickling in python refers to the process of serializing objects into binary streams, while unpickling is the inverse of that. It’s called that because of the pickle module in Python which implements the methods to do this.Pickling is useful when you want to save the state of your objects and reuse them at another time without losing any instance specific data. If you are using large files, CPickle is recommended. CPickle is implemented in C, making it much faster.


Tags: ,


Amazon CloudFront vs Elastic Load Balancing

by XDK 7. August 2019 01:19

Amazon CloudFront is a web service that speeds up distribution of your static and dynamic web content, such as .html, .css, .js, and image files, to your users. CloudFront delivers your content through a worldwide network of data centers called edge locations.

Elastic Load Balancing automatically distributes incoming application traffic across multiple Amazon EC2 instances. It enables you to achieve greater levels of fault tolerance in your applications, seamlessly providing the required amount of load balancing capacity needed to distribute application traffic.


Amazon Web Service

What is Route 53 in AWS?

by XDK 4. August 2019 16:32

Amazon Route 53 effectively connects user requests to infrastructure running inAWS – such as Amazon EC2 instances, Elastic Load Balancing load balancers, or Amazon S3 buckets – and can also be used to route users to infrastructure outside of AWS.



Tags: , ,

Amazon Web Service

What is Blue-Green Deployment?

by XDK 4. August 2019 16:20


Blue-green deployment is a technique that reduces downtime and risk by running two identical production environments called Blue and Green.

At any time, only one of the environments is live, with the live environment serving all production traffic. For this example, Blue is currently live and Green is idle.

As you prepare a new version of your software, deployment and the final stage of testing takes place in the environment that is not live: in this example, Green. Once you have deployed and fully tested the software in Green, you switch the router so all incoming requests now go to Green instead of Blue. Green is now live, and Blue is idle.

This technique can eliminate downtime due to app deployment. In addition, blue-green deployment reduces risk: if something unexpected happens with your new version on Green, you can immediately roll back to the last version by switching back to Blue.


Amazon Web Service | Azure DevOps Services | General


The information provided here is based on my expreriences, troubleshooting and online/offline findings. It can be used as is on your own risk without any warranties and I impose no rights.

About the author

My name is Xavier Dilip Kumar Jayaraj and I am a Software Configuration Management Engineer with a background in application development, Build & packaging using Install Shield.

Profile in LinkedIn , PCEP-Certified , Azure-DevOps-C1

DevOps Tools

ALM tools:
Azure DevOps
IBM Rational
CA Agile Central-Rally
CollabNet VersionOne

Configuration tools:
• Puppet
• AWS OpsWorks
• Ansible

Build automation tools:
Apache Ant 
Apache Maven

Continuous Integration tools:

Testing tools:

Version control system tools:
Team Foundation Server

Code review tools:
Bitbucket Server

Continuous Delivery/release management tools:
XL Release
Serena Release
Octopus Deploy

Quotes I Like

"Failure will never overtake me if my determination to succeed is strong enough."  - Dr. APJ. Abdul Kalam

"Always be yourself, express yourself, have faith in yourself, do not go out and look for a successful personality and duplicate it." - Bruce Lee

"Technology is just a tool. In terms of getting the kids working together and motivating them, the teacher is the most important." - Bill Gates

"Innovation distinguishes between a leader and a follower." - Steve Jobs

Knowledge Base Articles