Search the Blog
Showing posts with label Code. Show all posts
Showing posts with label Code. Show all posts
Friday, June 12, 2020
Thursday, August 29, 2019
Palindrome number program in Pythan
In this post i will explain the palindome number program in python and also to expalin the same i also created a youtube video so you can check also complete step by step and also output in IDE.
Palindrome number program in Pythan |
Palindrome No Program in Python-
num = int(input("enter a number: ")) temp = num rev = 0while temp: rev = (rev * 10) + (temp % 10) temp = temp // 10if num == rev: print("No is palindrome") else: print("No is not palindrome")
Output-
When entered Item is- 747
No is Palindrome.
when entered Item is- 67
No is notb Palindrome.
See Also-Pythan All type of program
Labels:
Android,
Code,
CSS,
database,
DIZSWEB,
example,
HTML,
INFORMATION QUERY,
Interview,
JAVA,
JavaScript,
JS,
Online Exam,
Ouery,
pattern,
program,
Python,
Query Optimization,
SERVERS,
SQL
Saturday, August 24, 2019
Python Pattern Program Example With Code
As all of us knows that as we used to print the pattern program in C, JAVA,Net etc. To make comfortable and understand to the new user in Pyhton we started learning that programming language.
In the same way to make confidence, Comfortable and learn syntax and logic writing style in Python we can practice for this i am showing to all of you more than 20 pattern program code in Python.
You can copy and paste these code and even test at your own system. Users can modify these Codes too accrding to requirement.
---------------------------------------------------------------------------------
Example 1-
...................................................................................................................................................................
Source Code- Pycharm IDE
# Function to demonstrate printing pattern
def python_pattern(n): # outer loop to handle number of rows
# n in this case
for i in range(0, n): # inner loop to handle number of columns
# values changing acc. to outer loop
for j in range(0, i + 1): # printing stars
print("* ", end="") # ending line after each row
print("\r") # Driver Code # No of rows variable length n = 6
python_pattern(n)
Output-
F:\web\venv\Scripts\python.exe F:/web/pattern.py
*
* *
* * *
* * * *
* * * * *
* * * * * *
Process finished with exit code 0
Friday, August 23, 2019
SQL SERVER High Availability (HA)
High Availability (HA) of the server of Database is the solution( process, technology ) to make the application database available 24x7 under either planned or un - planned conditions.
There are five type of options in MS SQL Server to achieve and configure a setup for high availability solution for the databases.
Replication
The source(Main) data will be copied to destination, through replication agents (jobs). Object level technology.
Main terminology
- Publisher is source server.
- Distributor is optional and stores replicated data in a suitble environemt for the subscriber.
- Subscriber is the destination server.
Log Shipping
The source data will be copied to destination through Transaction Log backup jobs. Various Database level technology.
Main terminology
- Primary server is source server.
- Secondary server is destination server.
- Monitor server is optional and will be monitored by log shipping status.
Mirroring
The primary data will be copied to a secondary through a network transaction basis with help of mirroring endpoint and port number. Database level technology.
Main terminology
- Principal server is source server always.
- Mirror server is destination server always.
- Witness server is optional and can be used to make automatic failover.
Clustering
The data will be stored in shared location which is used by both primary and secondary servers based on availability of the server. Instance level technology. Windows Clustering setup is required with shared storage
Main terminology
- Active node is where SQL Services are running.
- Passive node is where SQL Services are not running.
AlwaysON Availability Groups
The primary data will be copied to secondary through network transaction basisand Group of database level technology. Windows Clustering setup is required without shared storage for ALwaysON Availibilty Groups.
Main terminology
- Primary replica is source server.
- Secondary replica is destination server.
Check Java Pattern Program
Labels:
Code,
CSS,
database,
DIZSWEB,
HTML,
INFORMATION QUERY,
Interview,
JAVA,
JavaScript,
Online Exam,
Ouery,
Query Optimization,
SERVERS,
SQL
Sunday, August 18, 2019
SQL SERVER Installation
With the help of this post you can installl SQL Server in your window oprerating system directly
Step 1: Download the Evaluation Edition from the microsoft website.
Step 2: Double - click on the “SQLFULL_x86_ENU_Install.exe” or “SQLFULL_x64_ENU_Install.exe” , It will extract the required files for installation in the “SQLFULL_x86_ENU” or “SQLFULL_x86_ENU” folder respectively one by one.
Step 3: Click the “ SQLFULL_x86_ENU ” or “SQLFULL_x64_ENU_Install.exe” folder and double-click “SETUP ” application file.
Step 4: Once we click on ' setup ' application, the following screen will open. It will show the following.
Step 5: Click Installation which is on the left side of the below screen.
Step 6: Click the first option of the right side seen on the above screen. The following screen will open and it will take some time for intallation.
SQL SERVER Installation |
Step 8: Click Next to get the following screen wait for installation of all.
Step 9: Make sure to check the product key selection and click Next.
Step 10: Select the checkbox and accept the license option and click Next.
Step 11: Select SQL Server feature installation option and then click Next.
Step 12: Select Database engine services checkbox and then click Next.
Step 13: Enter the named instance ( here I used TestInstance ) and click Next.
Step 14: Click Next on the above screen and the following screen appears you have to select server agent.
Step 15: Select service account names and start-up types for the above listed services and then click Collation.
Step 16: Make sure the correct collation selection is checked and then click Next.
Step 17: Make sure authentication mode selection and administrators are checked and
click Data Directories
Step 18: Make sure to select the above directory locations and click Next. The following
screen appears.
Step 19: Click Next on the below screen .
Step 20: Click Next on the below screen to the get the following screen .
Step 21: Make sure to check the below selection correctly and click Install and finish.
Subscribe to:
Posts (Atom)