Posts

How to upgrade phpMyAdmin in XAMPP to latest?

Image
Most of the windows users choose XAMMP to install Apache distribution containing MySQL, PHP, phpMyAdmin, and Perl. But, if you try to update any one of the softwares, you may face difficulties. Either you must have to install the latest version of XAMPP (or) you must update the software and configure the web server manually. In such case, we may either loss the data (or) it may remain nonfunctional. So it is safe to take backup of whole files, before trying to install manually. In this tutorial, I have tried to update the old phpMyAdmin in the XAMPP to phpMyAdmin 4.2.12 ( the latest stable release, as on Nov 29, 2014 ) and faced many technical problems. I searched through google for this issue, but I didn't got a proper solution. Finally, I referred the phpMyAdmin error message and documentations and solved the problem. It works fine now. The simple and easy steps which I followed is explained below: Download the latest version of the phpMyAdmin from the official site ht...

Basic Calculator using Python GUI (Tkinter) Program

Image
This is a simple graphical user interfaced (GUI) Python application designed using Tkinter package to perform basic arithmetic calculations such as addition, subtraction, multiplication, and division of two numbers through the mouse click event. Copy an icon image ‘favicon.ico’ to the working directory to change the default icon in the title bar of the application. Introduction to Python Tkinter In Python, the tkinter package (“Tcl/Tk interface”) is the standard interface to the Tk GUI toolkit. Both Tk and tkinter are available on most Unix platforms, as well as on Windows systems. ( Tk itself is not part of Python ; it is maintained at ActiveState .) You can check that tkinter is properly installed on your system by running python -m tkinter from the command line; this should open a window demonstrating a simple Tk interface. For more details, refer to the official site of Python ( python.org ). Source Code # calc.py - a Python calculator from tkinter imp...

Hydrophobicity Plot using BioPython

Image
Hydrophobicity is the property of being water repellent, tending to repel and not absorb water. Calculation of hydrophobicity in proteins is important in identifying its various features. This can be membrane spanning regions, antigenic sites, exposed loops or buried residues. Usually, these calculations are shown as a plot along the protein sequence, making it easy to identify the location of potential protein features. The hydrophobicity is calculated by sliding a fixed size window (of an odd number) over the protein sequence. At the central position of the window, the average hydrophobicity of the entire windows is plotted. A hydrophobicity plot is a quantitative analysis of the degree of hydrophobicity of amino acids of a protein. It is used to characterize or identify possible structure or domains of a protein. The plot has amino acid sequence of a protein on its x-axis, and degree of hydrophobicity on its y-axis. In hydrophobicity plot, the degree of hydrophobicity is tak...

Plotting Graph by Keyboard Input using Python

Image
Introduction to 2D Smooth Graph Connecting line between two points ( x 1 , y 1 ) and ( x 2 , y 2 ) is known as a graph. A non-uniform cartesian co-ordinates points will generate a rigid line, which looks ugly. In Python, a rigid graph can be regenerated into a smooth graph by interpolating more points using SciPy module. SciPy (Scientific Python library) generates more sub-points based on the input array values to form a smooth curve. In this program, I have used input() function to get n number of points ( x , y ) from the user through keyboard ( screenshot is given in the bottom ) and store it to arrays. The co-ordinates points used in the program are (1, 2), (2, 5), (3, 3), (4, 6), (5, 7), (6, 2), (7, 10), (8, 5), (9, 6), and (10, 3). Program Implementation In this tutorial, I have used Python 3.5.2 (64-bit) software, and 7 modules: MatPlotLib 2.0.2 , PyParsing 2.2.0 , Python-DateUtil 2.6.1 , PyTZ 2017.2 , SetupTools 36.2.0 , Cycler 0.10.0 , SciPy 0.19.1 , and NumPy-MKL 1.13...

Polynomial Graph using Python

Image
Introduction to Polynomial Graph Polynomial curve a is smooth and continues line of graph, connected by a series of co-ordinates calculated using a polynomial equation (For example, y = f ( x ), where f ( x ) = A x 2 + B x + C). In this program, I have used a polynomial equation y = 3 x 2 + 4 x + 2 with x values range from 0 to 5. The program generated co-ordinate points ( x , y ) in the graph will be (0, 2), (1, 9), (2, 22), (3, 41), (4, 66), and (5, 97). Program Implementation In this tutorial, I have used Python 3.5.2 (64-bit) software, and 7 modules: MatPlotLib 2.0.2 , PyParsing 2.2.0 , Python-DateUtil 2.6.1 , PyTZ 2017.2 , SetupTools 36.2.0 , Cycler 0.10.0 , and NumPy-MKL 1.13.1 implemented in Windows 10 Enterprise operating system. The 7 modules are chosen based on the compatibility of Python and OS version and bit. Source Code import numpy as np import matplotlib.pyplot as plt a = 3 b = 4 c = 2 x = np.linspace(0, 10, 256, endpoint = True) y = (a * (x * x)) + (b ...

Sine and Cosine Graph using Python

Image
Introduction to Sine/Cosine Graph The sine and cosine graphs are almost identical, except the cosine curve ( y = cos ( x )) starts at amplitude y = 1, when angle x = 0° (whereas the sine curve ( y = sin ( x )) starts at amplitude y = 0). We say the cosine curve is a sine curve which is shifted to the left by 90°. The graph of sine and cosine is like a wave that forever oscillates between -1 and 1, in a shape that repeats itself every 360° (2π) units. Program Implementation In this tutorial, I have used Python 3.5.2 (64-bit) software, and 7 modules: MatPlotLib 2.0.2 , PyParsing 2.2.0 , Python-DateUtil 2.6.1 , PyTZ 2017.2 , SetupTools 36.2.0 , Cycler 0.10.0 , and NumPy-MKL 1.13.1 implemented in Windows 10 Enterprise operating system. The 7 modules are chosen based on the compatibility of Python and OS version and bit. Source Code import numpy as np import matplotlib.pyplot as plt X = np.linspace(-np.pi, np.pi, 256, endpoint = True) C, S = np.cos(X), np.sin(X)...

Exponential Graph using Python

Image
Introduction to Exponential Graph Exponential curve a is smooth and continues line of graph, connected by a series of co-ordinates calculated using a polynomial equation containing variable exponential value (For example, y = f ( x ), where f ( x ) = A e B x + C). In this program, I have used a polynomial equation with a exponential variable y = 5 e -2 x + 1 with x values range from 0 to 10. The program generated co-ordinate points ( x , y ) in the graph will be (0, 6.0), (1, 1.7), (2, 1.1), (3, 1.0), (4, 1.0), (5, 1.0), (6, 1.0), (7, 1.0), (8, 1.0), (9, 1.0), and (10, 1.0). Program Implementation In this tutorial, I have used Python 3.5.2 (64-bit) software, and 7 modules: MatPlotLib 2.0.2 , PyParsing 2.2.0 , Python-DateUtil 2.6.1 , PyTZ 2017.2 , SetupTools 36.2.0 , Cycler 0.10.0 , and NumPy-MKL 1.13.1 implemented in Windows 10 Enterprise operating system. The 7 modules are chosen based on the compatibility of Python and OS version and bit. Source Code import numpy as...