Pages

Thursday, July 30, 2015

Python - Exception Handling

As in all High level languages, Python also provides ways for handling Issues.  Python provides 2 features to handle any unexpected error in the Python programs. Exception Handling Assertions Exception Handling – An Exception is an event that occurs during an execution of program that disrupts the flow of the program. Normally...
Read More

Sunday, July 26, 2015

Python - Modules

A Module or a Package allows you to logically arrange or organize your code. This allows us to group related code into a module which makes the code easier to understand and code. A module in a Python is an Python object which can be used to bind and reference. A Module in a Python consists of a Python code. A module can define...
Read More

Python – Basic Syntax

Python can be used as both interactive or script mode.  Interactive Mode – The Interactive mode can be used by starting the interpreter  provided by Python. This can be done by executing the “python” command in the Shell as,  Executing your first “Hello World “ Program with the Interactive mode is Quite Simple....
Read More

Friday, July 24, 2015

Python - File Management

A File is a chunk of logically related data or information which can be used by computer programs. Generally every Programming language provides the ability to store and retrieve information from file. The most basic tasks involving files will be reading and writing data. Python also provides facilities for manipulating files....
Read More

Monday, July 20, 2015

Python- Set

Set – A Set in Python is a Un-ordered Collection of Unique and immutable Objects. The Set does not allow multiple occurrences of the same element. A Set is created using the set() function available as >>> x = set("A Python Tutorial") >>> print x set(['A', ' ', 'i', 'h', 'l', 'o', 'n', 'P', 'r', 'u', 't',...
Read More

Saturday, July 18, 2015

Weblogic Overload Protection

Weblogic Server has a built-in feature for detecing ,avoding and recovering from overload conditions. So when a Weblogic server is experiencing Out of memory conditions or any of the Server Sub System is in failed state , we can instruct weblogic server to take corrective actions .  We can tune the Weblogic server to take corrective...
Read More

Apache - Host a YUM Repository

There will be cases where we need to download various packages from internet. in most of these cases the YUM repository will be hosted on a web server. In this article we will see how we can Host a YUM repository on a Apache web server. 1) Create a location mkdir /var/www/html/myrepo. The location /var/www/html is the Apache Document...
Read More