MSBLOGS

Pages

Saturday, January 27, 2018

Benefits of Tortoise/Turtle ring. How and why....

Wearing Turtle Ring ?? Why and How aboout it...


Now a days there is a new trend of wearing turtle ring. People wear it not only as fancy item or for Style but it is also associated with vaastu or fen-Sui.



Indeed, the turtle ring is considered auspicious within Vastu Shastra. This ring works to calm many of the faults of a person's life. But if it is most helpful in some matter, then other  because of this reason. This help wear in 'increasing self-confidence'



The tortoise that lives in water is considered to be a symbol of positivity and progress. This turtle is also an incarnation of Lord Vishnu. It was known as “KURMAA Avatar”. Lord Vishnu took this avatar to provide solid base and stabilize the sumeru mountain for churning the ocean to fetch Amrit, Laxmi, Dhanvantri and many other divine things. So it is said that this turtle symbol is associated with providing stability, wealth, prosperity to life.


Same thing is said in fen-sui. In feng shui the tortoise with its many eye shaped hexagonal shapes and hard shell represents strength and adjustment to all situations. As per fen- sui it should be placed at the entrance. The turtle symbolizes wealth coming in gradually and persistently. Longevity and protection. So as per Indian astrology the turtle ring is worn to gain wealth, stabilize the life and provide prosperity to the wearer.



Symbol of prosperity: This is the reason that the turtle gives so much importance in Vastu Shastra. The turtle is considered to be a wealth addition by adding to Goddess Lakshmi. Apart from this, this creature is also a symbol of patience, peace, continuity and prosperity.





So if you are planning to wear a turtle ring to maximum benefits, then you should consider the following thing while wearing it.



According to Vaastu Shastra, the turtle ring should made of silver. If you want to use any other metal such as gold or any other gem, then you can make the shape of a turtle in silver and attach the gold design or gem on it. Like turtle cover can be made in gold/GEM and silver outline on body can be used.



How it should be worn? which finger ? which direction? :

Buy on Friday and after cleansing with milk etc it should be worn in the ring finger as it is associated with goddess Laxmi and Sukra planet. It should be worn so that is facing you. It brings wealth and prosperity so it should come to you not go away from you. While you search on net you will find that out of 10, 8 are suggesting you to wear such that it face away from you. But it is wrong. It is not associated with warding off evil but it is for bringing wealth so it should be worn so that it is facing you. 

Lemme know if you  have any other question in this regards, I can get your Queries solved with proper solutions..

 


Sunday, July 2, 2017

JMeter-: For Load and Performance Testing..


JMeter
Overview

http://www.methodsandtools.com/tools/jmeter1.jpg


SUMMARY

.Introduction
.What is Jmeter?
.Why ?


.Preparing tests
.Step 1 Proxy server
.Step 2 Organization
.Step 3 Genericity
.Step 4 Assertions


.Running tests
.Non GUI mode
.Distributed testing
.Analyzing Test







Introduction

.Definition :
.JMeteris an Apache Jakarta project that can be used as a
load testing tool for analyzing and measuring the
performance of a variety of services, with a focus on web
applications.


.Why ? :
.JMeter can be used as a unit test tool for JDBC database
connection, FTP, LDAP, WebServices,J MS, HTTP and
generic TCP connections. JMeter can also be configured
as a monitor, although this is typically considered an ad-
hoc solution in lieu of advanced monitoring solutions.


http://www.methodsandtools.com/tools/jmeter1.jpg 




Proxy Server

Role

.Record Http requests run by
users.
.Stick to the exact http
request a lambda user .
.Record only what is
meaningful.
.To be organized.


.Warning
.Doesn’t record https.






ProxyServer.JPG
regexp.JPG



Organization

Thread groups

Loop controllers

.Determine
.How many users, will
concurrently run the tests
.How long between 2 launch
of the test
.How many times the tests
will be run




.Determine in a thread group
.How long between 2 launch
of the same sampler
.How many times the set of
tests will be run.







Organization

Thread groups

Loop controllers

untitled.JPG
untitled.JPG



Organization

Throughput Controller

.Make variable pause during
the test run to simulate better
a client behavior.
.Because the thread group
doesn’t take in count the
server, can take several
seconds before responding.


untitled.bmp



Genericity

.Variabilisation :
.In order not to modify a test to run it on different
machines
.Example : user and password changing from a shelf to an
other




untitled.JPG
untitled.JPG



Genericity

.Http default Request
.Allows you to put a default ip port and path for all the
Http Request contained in the scope
.Gives you an easy way to run your test from a device to
an other one just by changing the default adress.




untitled.JPG



Genericity

.Regular Expression extractor
.If the data has to be used several times along the test
.Like a sessionId for instance.






untitled.bmp
untitled.bmp



Assertions

.Response assertion
.To match a pattern in the response code
.The response code for instance.




.Xpath assertion
.Using the DOM of the response to check if an element
appear.
.A research result for instance.




.Size assertion
.To know if the size of the response received match with
the size expected
.To verify if the file received is the good one.









Running tests

.Non Gui Mode


.Why?
.The stress due to test and display is too high when running
distributed tests.


.How ?
.By running command line






Example : jmeter -n -t my_test.jmx -l log.jtl -H my.proxy.server -
P 8000




Distributed testing

.Why ?
.To simulate stressed environment with a lot of clients.


.How ?
.Edit “remote_hosts=127.0.0.1” in jmeter.properties
.Start jmeter_server.bat on the host machines
.Run jmeter.bat







Analyzing Test

Aggregated graph

Result tree

.Gives all the statistics
concerning the tests
.May be recorded in a
specified file for further
treatment (data mining)


.Gives in a tree form, all the
samplers results, the
requests, and the sampler
data.
.May also be recorded in a
specified file for further
treatment





Analyzing Test

Aggregated graph

Result tree

untitled.JPG
untitled.JPG



MSBLOGS: Overview of Python Web development framework

MSBLOGS: Overview of Python Web development framework

Friday, April 21, 2017

Overview of Python Web development framework

I have evaluated few frameworks for python and based on that I am trying to compare the three popular web-development frameworks; Django, Pyramid and Flask"

With python we can do a lot with just a few lines of Python code. However, if we are thinking of building a complex full-fetched web application in Python from scratch, we might be doing it wrong.
There are already some great Python frameworks present in the modern-day that we can use for web development. They are fast, refined and backed by thousands of developers.
Here, we are explaining why Python frameworks are a great choice for web development — where to start with them and how. Also, we are introducing to Python libraries and helper tools that will help we throughout the web development process.

Framework?

A web framework is nothing but a collection of packages and modules that allows easier development of websites. It handles all low-level communication within the system and hides it from we to make no issues for performing common tasks for the development.
The line where it draws the line between which to hide and which to not, depends on the individual framework itself (more on this later).

Choosing Python web framework?

we can always create a web application from scratch, but there are various reasons we would not want to. Below are the top five reasons why we should choose Python framework over our own.

Used and trusted by many large companies

Popular Python frameworks like Pyramid and Django are used by companies like Bitbucket, Pinterest, Instagram and Dropbox in their web application development. So, it is safe to say these frameworks are able to handle almost everything we throw at them.

Hides complicated low-level details

As stated above, web frameworks are meant to hide and handle all low-level details so that we as a developer, do not have to dig deep into how everything works when we are developing a web-enabled application.

Saves our valuable time

The frameworks have been built investing thousands of developer and testing hours. Building on top of it saves our valuable time. Especially, when we are developing a simple prototype of a website or are closer to a deadline, using web frameworks can turn out to be a life safer.

Security

One of the most important advantages of using a web framework as opposed to building something on our own is handling the security of our website. Since web frameworks have been used and backed by thousands, it inherently handles security, preventing any misuse of the web application.

Efficient and scalable system

Good frameworks are built ensuring scalability from the very beginning of the development process. So, whenever we are planning to scale our website by adding a new component or using a new database, web frameworks are more likely to scale better than what we come up with when building from scratch.
Fun fact: Disqus, a popular blog comment hosting service, has more than eight billion page views and 45K request per second through Python framework Django.

Which framework to choose?

There are tons of Python web frameworks, and every framework has their own strengths and weaknesses. Thus, it is necessary to evaluate our project requirements and pick one the best one from the collection.

Below are the three most popular web frameworks in Python.

Django

Django is the most popular Python web framework and is aimed mostly at larger applications.  It takes a “batteries-included” approach and contains everything needed for web development bundled with the framework itself. So, we do not have to handle things like database administration, templating, routing, authentication and so on. With fairly less code, we can create great applications with Django.
If we are building a mid-high ranged web applicants and are quite comfortable with Python, we should go for Django.

Pyramid

The Pyramid is the most flexible Python web framework and just like Django, it is aimed at mid-high scale applications.
If we think Django brings too much bloat to our web application, use Pyramid. It does not force we to use a single solution for a task, but rather gives we a pluggable system to plug-in according to our project requirements.
we do have the basic web development capabilities like routing and authentication, but that is about it. So, if we want to connect to a database for storage, we ought to do that werself using external libraries.

Flask

Flask is the newest among the others. Unlike Pyramid and Django, Flask is a micro-framework and is best suited for small-scale applications.
Even if it is new, Flask has integrated great features of other frameworks. It includes features like unit testing and built-in development server that enable us to create reliable and efficient web applications.

For a learner pyramid or flask will be best as it start with simple projects and as you progress you can keep intrgrating different plug in like chemeleon, jinga mako etc. The django framework involves everything even if you want to make two page project. But for larger application its the best. Flask is also suitable for small projects and its still growing..

Things to know when we start with Python frameworks

Learn Python and HTML
Before we start with the frameworks, it is the best to learn Python from the ground up. When we are comfortable with the language and its power, we will have a strong understanding of the fundamentals required for our project.
Equally important knowledge to have is the knowledge of HTML and JS. Modern web development is just not possible without them.

Follow getting started guide carefully and grasp their basic architectural knowledge

Since frameworks like Django are based on MVC and Flask uses Jinja2 templating engine, it is always better to how these architectures actually work.

Create simple applications

When starting out, do not rush into creating full-fledged heavy web applications. Start with something simple like a todo list.
This teaches we how CRUD functionalities and basic HTTP requests are handled by the framework. Also, we will have a good grasp on how to get started with the framework itself.
This advice is equally applicable to advanced programmers.

Learn to debug

Exceptions and bugs are programmer’s best friends. Learn to configure and use the debugging capabilities of the frameworks. Understanding the exceptions and how a code behaves in certain cases will take we a long way.
Use IDE’s like PyCharm that makes our life a lot easier with its smart intellisense, debugging capabilities and code optimisation tips.

Integrate third-party modules

The whole point of using a web framework is not to repeat what others have already achieved better, and focusing on the output instead.
Most of the utilities we need for database connection (SQLAlchemy), scientific computations (SciPy) and web scraping (BeautifulSoup) are already implemented and used by many, do not waste time recreating the wheel. web framework powers itself with the use of external libraries. With them, our development project can catch serious speed.
However, before we go for external integration, it is better to familiarise werself with Python’s core modules first. Python’s utility functions and object methods support an array of features.
Manipulations like string encoding, filtering and mapping can be achieved through Python’s internal tools itself.
Python with its powerful web framework catalogue is a great choice for web development and will bring we up to speed with today’s modern needs.
Whichever framework we choose, there is no doubt that there is a great advantage in using a web framework than building a web application from scratch. we can also consider that investing our time in learning and using Python web framework, in turn, can save our time, money and production effort.