Search

11 February, 2016

Linux command

Change file permission:
sudo chmod -R 777 /var/www

04 February, 2016

Python

Class object:
file name media.py
##############
import webbrowser


class Movie():
    def __init__(self, movie_title, movie_storyline, poster_image,                  
                 trailer_youtube):
        self.title = movie_title
        self.storyline = movie_storyline
        self.poster = poster_image
        self.trailer = trailer_youtube

    def show_trailer(self):
        webbrowser.open(self.trailer)
#############
trailller.py
import class_object

movie_story = class_object.Movie("Toy story", "something missing", "image url ", 
                                 "youtube.com")

print(movie_story.storyline)
movie_story.show_trailer()

###################

Read from url:
def read_web_page():
    connection = urllib.request.urlopen(
                 "http://manozbiswas.blogspot.com/2016/02/nice-drawing-in-python.html")
    output = connection.read()
    print(output)
    connection.close()


read_web_page()
#################
Read from file:
def readText():
    quotes = open(r"C:\Users\manoz debnath\Desktop\py\hello.txt")
    contents = quotes.read()
    print(contents)
    quotes.close()


readText()
######################
Drawing image:
import turtle


def drawSquare(some_turtle):
    for i in range(1, 5):
        some_turtle.forward(100)
        some_turtle.right(90)

def drawArt():
    window = turtle.Screen()
    window.bgcolor("red")
    # Create the turtle Brad -Draws square    brad = turtle.Turtle()
    brad.shape("turtle")
    brad.color("yellow")
    brad.speed(2)
    for i in range(1,37):
        drawSquare(brad)
        brad.right(10)
    #Create turtle Angie - Draws a circle 
    # angie = turtle.Turtle() 
    # angie.shape("arrow") 
    # angie.color("blue") 
    # angie.circle(100)
    window.exitonclick()

drawArt()

#######################


Draw a square with a circle:

#################
import turtle


def drawSquare():
    window = turtle.Screen()
    window.bgcolor("red")

    brad = turtle.Turtle()
    brad.shape("turtle")
    brad.color("yellow")
    brad.speed(2)

    brad.forward(100)
    brad.right(90)
    brad.forward(100)
    brad.right(90)
    brad.forward(100)
    brad.right(90)
    brad.forward(100)
    brad.right(90)

    angie = turtle.Turtle()
    angie.shape("arrow")
    angie.color("blue")
    angie.circle(100)

    window.exitonclick()

drawSquare()

###################




03 February, 2016

Challenge and Mistakes in ERP Implementation

 7 Common Challenges Faced in ERP Implementation :
It is very important, that implementation is done in stages. Trying to implement everything at once will lead to a lot of confusion and chaos.
  1. Appropriate training is very essential during and after the implementation. The staff should be comfortable in using the application or else, it will backfire, with redundant work and functional inefficiencies.
  2. Lack of proper analysis of requirements will lead to non-availability of certain essential functionalities. This might affect the operations in the long run and reduce the productivity and profitability.
  3. Lack of Support from Senior Management will lead to unnecessary frustrations in work place. Also, it will cause delay in operations and ineffective decisions. So, it is essential to ensure that the Senior Management supports the transformation.
  4. Compatibility Issues with ERP Modules lead to issues in integration of modules. Companies associate different vendors to implement different ERP modules, based on their competency. It is very essential that there is a way to handle compatibility issues.
  5. Cost Overheads will result, if requirements are not properly discussed and decided during the planning phase. So, before execution, a detailed plan with a complete breakdown of requirements should be worked out.
  6. Investment in Infrastructure is very essential. ERP applications modules will require good processing speed and adequate storage. Not allocating suitable budget for infrastructure will result in reduced application speed and other software issues. Hardware and Software Security is also equally important.
13 Common ERP Mistakes and How to Avoid Making Them
  1. RP Mistake #1: Poor planning 
  2.  ERP Mistake #2: Not properly vetting ERP vendors.
  3. ERP Mistake #3: Not understanding or using key features.
  4. ERP Mistake #4: Underestimating the time and resources required.
  5. ERP Mistake #5: Not having the right people on the team from the start
  6.  ERP Mistake #6: Not setting priorities
  7.  ERP Mistake #7: Not investing in training and change management. 
  8.  ERP Mistake #8: Underestimating the importance of accurate data
  9.  ERP Mistake #9: Taking the kitchen sink approach.
  10.  ERP Mistake #10: Not decommissioning legacy applications.
  11. ERP Mistake #11: Not having an active load testing environment
  12. ERP Mistake #12: Ignoring third-party support alternatives 
  13.  ERP Mistake #13: Not having a maintenance strategy.

 

E-R Diagram

E-R Diagram: Best Design
An entity–relationship diagram using Chen's notation
Symbols:

Derived attributes are depicted by dashed ellipse.


 Cardinality Relationship:


Relationship with foreign key



Participation Constraints

  • Total Participation − Each entity is involved in the relationship. Total participation is represented by double lines.
  • Partial participation − Not all entities are involved in the relationship. Partial participation is represented by single lines.




Generalization:Generalization is a bottom-up approach in which two lower level entities combine to form a higher level entity. In generalization, the higher level entity can also combine with other lower level entity to make further higher level entity
Specialization:Specialization is opposite to Generalization. It is a top-down approach in which one higher level entity can be broken down into two lower level entity. In specialization, some higher level entities may not have lower-level entity sets at all.

Aggregration: Aggregration is a process when relation between two entity is treated as a single entity. Here the relation between Center and Course, is acting as an Entity in relation with Visitor.