Networking: Protocol, Sockets, Knowing IP Address, URL, Reading the Source Code of a Web Page, Downloading a Web Page from Internet, Downloading an Image from Internet, A TCP/IP Server, A TCP/IP Client, A UDP Server, A UDP Client, File Server, File Client, Two-Way Communication between Server and Client, Sending a Simple Mail,
This document provides an introduction to dynamic web content and web application technologies. It discusses how web servers, browsers, HTML, CSS, JavaScript, and other technologies work together to deliver dynamic web pages and applications to users. Key points covered include how browsers make HTTP requests to servers, how servers respond with HTML documents, and how languages like JavaScript can be used to add interactivity to web pages. Network concepts like TCP connections, ports, and IP addresses are also briefly summarized.
This document discusses network programming using Python sockets. It covers data communication fundamentals, TCP and UDP sockets, and examples of TCP and UDP client-server communication using Python's socket module. It also discusses higher level networking in Python using modules like httplib, urllib2, smtplib, and SocketServer that build upon the lower-level socket module.
This document provides an overview and outline of lecture 11 of CS 3430: Introduction to Python and Perl at Utah State University. It covers basic network programming concepts like sockets, clients, servers, TCP, UDP and includes code examples for minimal servers and clients. It also discusses handling multiple connections, accessing URLs, opening remote files, getting HTML source, and installing and checking availability of the Python Imaging Library (PIL).
This document discusses various topics related to computer networking including protocols, sockets, IP addresses, URLs, reading web page source code, downloading files from the internet, TCP/IP and UDP servers and clients, file servers and clients, two-way communication between servers and clients, and sending simple emails. It provides information on networking hardware and software, protocols like TCP/IP and UDP, socket programming, parsing URLs, creating servers and clients, and sending/receiving data over networks.
The document provides an overview of network programming in Python. It discusses key Python concepts like lists, dictionaries, tuples and strings. It then covers network programming topics like sockets, TCP/IP, HTTP requests and responses. It introduces the select module for building non-blocking servers that can handle multiple clients simultaneously using a single thread.
The document discusses socket programming in Python. It describes how sockets provide a way for programs to communicate over a network, with sockets acting as endpoints. It explains the client-server model, with the server listening on a port for connection requests from clients. It then provides details on creating both server and client sockets in Python, including required methods like bind(), listen(), accept(), connect(), recv(), and send(). It also includes tables summarizing socket vocabulary, common server/client socket methods, and Python modules for various internet protocols.
Python is a computer programming language often used to build websites and software, automate tasks, and conduct data analysis. Python is a general-purpose language, meaning it can be used to create a variety of different programs and isn't specialized for any specific problems.
This document provides an overview of sockets programming in Python. It discusses the basic Python sockets modules, including the Socket module which provides a low-level networking interface based on the BSD sockets API, and the SocketServer module which simplifies the development of network servers. It also provides examples of creating server and client sockets in Python and performing basic I/O operations. The document demonstrates how to create TCP and UDP sockets, bind addresses, listen for connections, accept clients, and send/receive data.
This document discusses client-server programming and socket programming. It begins by explaining the client-server model, where the client initiates contact with the server to request a service. It then covers application layer programming using sockets as the interface. Sockets provide an abstraction for network communication, representing an endpoint. The document outlines functions for creating, binding, listening for connections, accepting connections, and sending/receiving data with sockets. It also discusses related topics like network byte order, utility functions, and address data structures.
This document discusses client-server programming and socket programming. It begins by explaining the client-server model, where the client initiates contact with the server to request a service. It then covers application layer programming using sockets as the interface. Sockets provide an abstraction for network communication, representing an endpoint. The document outlines functions for creating, binding, listening for connections on server sockets, and accepting connections from client sockets. It also summarizes basic socket calls for messaging passing between connected sockets.
This document provides an overview of network programming in Python. It discusses how Python allows both low-level socket access for building clients and servers as well as higher-level access to application protocols like FTP and HTTP. It then describes socket programming concepts like domains, types, protocols and functions for binding, listening, accepting, connecting, sending and receiving data. Simple client and server code examples are provided to demonstrate creating a basic socket connection between two programs. Finally, commonly used Python network modules for protocols like HTTP, FTP, SMTP and more are listed.
Introduction
This Tutorial is On Socket Programming In C Language for Linux. Instructions Give Below will only work On Linux System not in windows.
Socket API In windows is called Winsock and there we can discuss about that in another tutorial.
What is Socket?
Sockets are a method for communication between a client program and a server program in a network.
A socket is defined as "the endpoint in a connection." Sockets are created and used with a set of programming requests or "function calls" sometimes called the sockets application programming interface (API).
The most common sockets API is the Berkeley UNIX C interface for sockets.
Sockets can also be used for communication between processes within the same computer.
The document outlines a 15 week semester plan for learning network programming. It includes 7 topics covered over the semester with associated tasks, estimated time commitments, and learning outcomes. The topics progress from an overview of networking concepts to implementing client-server applications and multithreaded network programming.
Of the variedtypes of IPC, sockets arout and awaythe foremostcommon..pdfanuradhasilks
Of the variedtypes of IPC, sockets arout and awaythe foremostcommon. On any given platform,
there arprobably to be differenttypes of IPC that arquicker, except for cross-platform
communication, sockets arregardingthe sole game in city.
They were fancied in Berkeley as a part of the BSD flavor of UNIX operating system. They
unfold like inferno withthe web. With sensible reason — the mixture of sockets with INET
makes reprehensionabsolute machines round the world incrediblystraightforward (at least
compared to different schemes).
Creating a Socket
Roughly speaking, once you clicked on the link that brought you to the current page, your
browser did one thingjust like the following:
#create Associate in Nursing INET, STREAMing socket
s = socket.socket(
socket.AF_INET, socket.SOCK_STREAM)
#now connect withthe net server on port eighty
# - the traditionalcommunications protocol port
s.connect((\"www.mcmillan-inc.com\", 80))
When the connect completes, the socket s may beaccustomedsend outa call for participation for
the text of the page. a similar socket canbrowse the reply, so be destroyed. That’s right,
destroyed. shopper sockets arunremarkablysolely used for one exchange (or atiny low set of
sequent exchanges).
What happens within thenet server may be a bit additionalcomplicated. First, the net server
creates a “server socket”:
#create Associate in Nursing INET, STREAMing socket
serversocket = socket.socket(
socket.AF_INET, socket.SOCK_STREAM)
#bind the socket to a public host,
# and a widely known port
serversocket.bind((socket.gethostname(), 80))
#become a server socket
serversocket.listen(5)
A couple things to notice: we tend to used socket.gethostname() in order that the socket would
be visible to the surface world. If we tend to had used s.bind((\'localhost\', 80)) or
s.bind((\'127.0.0.1\', 80)) we\'d still have a “server” socket, however one that was solely visible
insidea similar machine. s.bind((\'\', 80)) specifies that the socket isaccessible by any address the
machine happens to own.
A second issue to note: low range ports arsometimes reserved for “well known” services (HTTP,
SNMP etc). If you’re kidding, use a pleasant high range (4 digits).
Finally, the argument to pay attention tells the socket library that we wish it to queue as several
as five connect requests (the traditional max) before refusing outside connections. If the
remainder of the code is written properly,that ought to be masses.
Now that we\'ve got a “server” socket, listening on port eighty, we will enter the mainloop of the
net server:
while 1:
#accept connections from outside
(clientsocket, address) = serversocket.accept()
#now do one thing with the clientsocket
#in this case, we\'ll fakethis can be a rib server
ct = client_thread(clientsocket)
ct.run()
There’s trulythree general ways thatduring which this loop might work - dispatching a thread to
handle clientsocket, producea replacementmethod to handle clientsocket, or structure this app to
use non-blocking socke.
This document discusses several ways of programming network communication in Python including:
1. Getting the hostname and IP address of the local system using the socket module.
2. Creating sockets for both client and server programs to allow communication over TCP/IP networks. Sockets can be bound to ports and listen for connections.
3. Exchanging data between connected client and server sockets by sending and receiving fixed sizes of data.
4. Looking up service names for well known ports like HTTP and DNS.
5. Setting timeout values for sockets.
6. Providing examples of basic TCP client and server programs as well as a file transfer between client and server.
WebSockets allow for two-way communication between a client and server using a single connection. They provide a more efficient alternative to previous solutions like long-polling that required separate connections. While WebSockets improve performance, they also introduce some security concerns due to their ability to establish persistent connections that bypass some cross-origin protections. Attackers could potentially abuse WebSockets to conduct denial of service attacks or inject malicious content into connections. Web developers need to ensure proper security practices like using TLS to prevent issues with mixed content or connection interception.
This document provides information about the Networks Laboratory course offered at Anjalai Ammal Mahalingam Engineering College. It includes the syllabus, list of experiments, objectives and outcomes of the course. The course aims to teach students socket programming, simulation tools, and hands-on experience with networking protocols. Some key experiments include implementing stop-and-wait and sliding window protocols, socket programming, simulating ARP/RARP, PING and traceroute, and studying routing algorithms. The course is intended to help students use simulation tools, implement protocols, and analyze network performance and routing.
What is Socket Programming in Python | EdurekaEdureka!
This document discusses socket programming in Python. It covers what sockets are, how to create them in Python, common port numbers and protocols, important socket methods, the roles of clients and servers in communication, and how to transfer Python objects using sockets and the pickle module.
Sockets provide an abstraction for network communication between processes. They define endpoints for connections that are identified by IP addresses and port numbers. There are two main types - stream sockets which provide reliable connected service using TCP, and datagram sockets which provide unreliable datagram service using UDP. To use sockets, an application creates a socket, binds it to an address, listens/accepts for incoming connections, and sends/receives data. Key functions include socket(), bind(), listen(), accept(), connect(), send(), and recv(). Select() allows monitoring multiple sockets to avoid blocking. Proper use requires consideration of addressing, port numbers, error handling, and blocking behavior.
URI refers to Uniform Resource Identifiers, which include URLs and URNs used to identify resources on the web. URLs contain the protocol, host, path, and name to locate a resource using its network location. URIs are encoded to represent unsafe characters like spaces using percent encoding. Web browsers make HTTP requests to web servers, which respond by sending the requested pages back to the browser over the TCP protocol in a stateless manner according to the HTTP specification. HTML forms allow collecting user input on web pages for submission to servers via the GET or POST methods.
The document discusses internet protocols including IP addresses, sockets, TCP, UDP, DNS, HTTP, and HTTPS. IP addresses are used to identify devices on the internet. Sockets are a combination of IP address and port number that allow incoming data to be routed to the correct application. TCP provides reliable two-way connections while UDP provides faster one-way transmission without reliability. HTTP is the main application layer protocol for web content and uses TCP. HTTPS provides encryption to HTTP using TLS/SSL for secure transmission.
TCP and UDP use ports to direct data packages to applications. Ports are numbered openings that operating systems use to direct incoming data to the correct destination. Common port numbers include 80 for HTTP, 443 for HTTPS, 22 for SSH, and 25 for SMTP. Protocols like HTTP and HTTPS operate at the application layer and use plain text requests and responses, while HTTPS additionally implements encryption through SSL to secure the connection.
When we desire a communication between two applications possibly running on different machines, we need sockets. This presentation aims to provide knowledge of basic socket programming to undergraduate students. Basically, this presentation gives the importance of socket in the area of networking and Unix Programming. The presentation of Topic (Sockets) has designed according to the Network Programming Subject, B.Tech, 6th Semester syllabus of Punjab Technical University Kapurthala, Punjab.
The document discusses sockets and how they allow communication between processes on the same or different machines. It defines sockets, describes their history and key characteristics like being bidirectional endpoints. It covers socket domains, types (stream, datagram), common functions like socket(), bind(), listen(), accept(), connect(), recv(), send() and close(). It explains how these functions work for both TCP and UDP clients and servers.
This document provides an overview of sockets programming in Python. It discusses the basic Python sockets modules, including the Socket module which provides a low-level networking interface based on the BSD sockets API, and the SocketServer module which simplifies the development of network servers. It also provides examples of creating server and client sockets in Python and performing basic I/O operations. The document demonstrates how to create TCP and UDP sockets, bind addresses, listen for connections, accept clients, and send/receive data.
This document discusses client-server programming and socket programming. It begins by explaining the client-server model, where the client initiates contact with the server to request a service. It then covers application layer programming using sockets as the interface. Sockets provide an abstraction for network communication, representing an endpoint. The document outlines functions for creating, binding, listening for connections, accepting connections, and sending/receiving data with sockets. It also discusses related topics like network byte order, utility functions, and address data structures.
This document discusses client-server programming and socket programming. It begins by explaining the client-server model, where the client initiates contact with the server to request a service. It then covers application layer programming using sockets as the interface. Sockets provide an abstraction for network communication, representing an endpoint. The document outlines functions for creating, binding, listening for connections on server sockets, and accepting connections from client sockets. It also summarizes basic socket calls for messaging passing between connected sockets.
This document provides an overview of network programming in Python. It discusses how Python allows both low-level socket access for building clients and servers as well as higher-level access to application protocols like FTP and HTTP. It then describes socket programming concepts like domains, types, protocols and functions for binding, listening, accepting, connecting, sending and receiving data. Simple client and server code examples are provided to demonstrate creating a basic socket connection between two programs. Finally, commonly used Python network modules for protocols like HTTP, FTP, SMTP and more are listed.
Introduction
This Tutorial is On Socket Programming In C Language for Linux. Instructions Give Below will only work On Linux System not in windows.
Socket API In windows is called Winsock and there we can discuss about that in another tutorial.
What is Socket?
Sockets are a method for communication between a client program and a server program in a network.
A socket is defined as "the endpoint in a connection." Sockets are created and used with a set of programming requests or "function calls" sometimes called the sockets application programming interface (API).
The most common sockets API is the Berkeley UNIX C interface for sockets.
Sockets can also be used for communication between processes within the same computer.
The document outlines a 15 week semester plan for learning network programming. It includes 7 topics covered over the semester with associated tasks, estimated time commitments, and learning outcomes. The topics progress from an overview of networking concepts to implementing client-server applications and multithreaded network programming.
Of the variedtypes of IPC, sockets arout and awaythe foremostcommon..pdfanuradhasilks
Of the variedtypes of IPC, sockets arout and awaythe foremostcommon. On any given platform,
there arprobably to be differenttypes of IPC that arquicker, except for cross-platform
communication, sockets arregardingthe sole game in city.
They were fancied in Berkeley as a part of the BSD flavor of UNIX operating system. They
unfold like inferno withthe web. With sensible reason — the mixture of sockets with INET
makes reprehensionabsolute machines round the world incrediblystraightforward (at least
compared to different schemes).
Creating a Socket
Roughly speaking, once you clicked on the link that brought you to the current page, your
browser did one thingjust like the following:
#create Associate in Nursing INET, STREAMing socket
s = socket.socket(
socket.AF_INET, socket.SOCK_STREAM)
#now connect withthe net server on port eighty
# - the traditionalcommunications protocol port
s.connect((\"www.mcmillan-inc.com\", 80))
When the connect completes, the socket s may beaccustomedsend outa call for participation for
the text of the page. a similar socket canbrowse the reply, so be destroyed. That’s right,
destroyed. shopper sockets arunremarkablysolely used for one exchange (or atiny low set of
sequent exchanges).
What happens within thenet server may be a bit additionalcomplicated. First, the net server
creates a “server socket”:
#create Associate in Nursing INET, STREAMing socket
serversocket = socket.socket(
socket.AF_INET, socket.SOCK_STREAM)
#bind the socket to a public host,
# and a widely known port
serversocket.bind((socket.gethostname(), 80))
#become a server socket
serversocket.listen(5)
A couple things to notice: we tend to used socket.gethostname() in order that the socket would
be visible to the surface world. If we tend to had used s.bind((\'localhost\', 80)) or
s.bind((\'127.0.0.1\', 80)) we\'d still have a “server” socket, however one that was solely visible
insidea similar machine. s.bind((\'\', 80)) specifies that the socket isaccessible by any address the
machine happens to own.
A second issue to note: low range ports arsometimes reserved for “well known” services (HTTP,
SNMP etc). If you’re kidding, use a pleasant high range (4 digits).
Finally, the argument to pay attention tells the socket library that we wish it to queue as several
as five connect requests (the traditional max) before refusing outside connections. If the
remainder of the code is written properly,that ought to be masses.
Now that we\'ve got a “server” socket, listening on port eighty, we will enter the mainloop of the
net server:
while 1:
#accept connections from outside
(clientsocket, address) = serversocket.accept()
#now do one thing with the clientsocket
#in this case, we\'ll fakethis can be a rib server
ct = client_thread(clientsocket)
ct.run()
There’s trulythree general ways thatduring which this loop might work - dispatching a thread to
handle clientsocket, producea replacementmethod to handle clientsocket, or structure this app to
use non-blocking socke.
This document discusses several ways of programming network communication in Python including:
1. Getting the hostname and IP address of the local system using the socket module.
2. Creating sockets for both client and server programs to allow communication over TCP/IP networks. Sockets can be bound to ports and listen for connections.
3. Exchanging data between connected client and server sockets by sending and receiving fixed sizes of data.
4. Looking up service names for well known ports like HTTP and DNS.
5. Setting timeout values for sockets.
6. Providing examples of basic TCP client and server programs as well as a file transfer between client and server.
WebSockets allow for two-way communication between a client and server using a single connection. They provide a more efficient alternative to previous solutions like long-polling that required separate connections. While WebSockets improve performance, they also introduce some security concerns due to their ability to establish persistent connections that bypass some cross-origin protections. Attackers could potentially abuse WebSockets to conduct denial of service attacks or inject malicious content into connections. Web developers need to ensure proper security practices like using TLS to prevent issues with mixed content or connection interception.
This document provides information about the Networks Laboratory course offered at Anjalai Ammal Mahalingam Engineering College. It includes the syllabus, list of experiments, objectives and outcomes of the course. The course aims to teach students socket programming, simulation tools, and hands-on experience with networking protocols. Some key experiments include implementing stop-and-wait and sliding window protocols, socket programming, simulating ARP/RARP, PING and traceroute, and studying routing algorithms. The course is intended to help students use simulation tools, implement protocols, and analyze network performance and routing.
What is Socket Programming in Python | EdurekaEdureka!
This document discusses socket programming in Python. It covers what sockets are, how to create them in Python, common port numbers and protocols, important socket methods, the roles of clients and servers in communication, and how to transfer Python objects using sockets and the pickle module.
Sockets provide an abstraction for network communication between processes. They define endpoints for connections that are identified by IP addresses and port numbers. There are two main types - stream sockets which provide reliable connected service using TCP, and datagram sockets which provide unreliable datagram service using UDP. To use sockets, an application creates a socket, binds it to an address, listens/accepts for incoming connections, and sends/receives data. Key functions include socket(), bind(), listen(), accept(), connect(), send(), and recv(). Select() allows monitoring multiple sockets to avoid blocking. Proper use requires consideration of addressing, port numbers, error handling, and blocking behavior.
URI refers to Uniform Resource Identifiers, which include URLs and URNs used to identify resources on the web. URLs contain the protocol, host, path, and name to locate a resource using its network location. URIs are encoded to represent unsafe characters like spaces using percent encoding. Web browsers make HTTP requests to web servers, which respond by sending the requested pages back to the browser over the TCP protocol in a stateless manner according to the HTTP specification. HTML forms allow collecting user input on web pages for submission to servers via the GET or POST methods.
The document discusses internet protocols including IP addresses, sockets, TCP, UDP, DNS, HTTP, and HTTPS. IP addresses are used to identify devices on the internet. Sockets are a combination of IP address and port number that allow incoming data to be routed to the correct application. TCP provides reliable two-way connections while UDP provides faster one-way transmission without reliability. HTTP is the main application layer protocol for web content and uses TCP. HTTPS provides encryption to HTTP using TLS/SSL for secure transmission.
TCP and UDP use ports to direct data packages to applications. Ports are numbered openings that operating systems use to direct incoming data to the correct destination. Common port numbers include 80 for HTTP, 443 for HTTPS, 22 for SSH, and 25 for SMTP. Protocols like HTTP and HTTPS operate at the application layer and use plain text requests and responses, while HTTPS additionally implements encryption through SSL to secure the connection.
When we desire a communication between two applications possibly running on different machines, we need sockets. This presentation aims to provide knowledge of basic socket programming to undergraduate students. Basically, this presentation gives the importance of socket in the area of networking and Unix Programming. The presentation of Topic (Sockets) has designed according to the Network Programming Subject, B.Tech, 6th Semester syllabus of Punjab Technical University Kapurthala, Punjab.
The document discusses sockets and how they allow communication between processes on the same or different machines. It defines sockets, describes their history and key characteristics like being bidirectional endpoints. It covers socket domains, types (stream, datagram), common functions like socket(), bind(), listen(), accept(), connect(), recv(), send() and close(). It explains how these functions work for both TCP and UDP clients and servers.
This presentation was provided by Jennifer Gibson of Dryad, during the first session of our 2025 NISO training series "Secrets to Changing Behavior in Scholarly Communications." Session One was held June 5, 2025.
How to Manage Maintenance Request in Odoo 18Celine George
Efficient maintenance management is crucial for keeping equipment and work centers running smoothly in any business. Odoo 18 provides a Maintenance module that helps track, schedule, and manage maintenance requests efficiently.
Artificial intelligence Presented by JM.jmansha170
AI (Artificial Intelligence) :
"AI is the ability of machines to mimic human intelligence, such as learning, decision-making, and problem-solving."
Important Points about AI:
1. Learning – AI can learn from data (Machine Learning).
2. Automation – It helps automate repetitive tasks.
3. Decision Making – AI can analyze and make decisions faster than humans.
4. Natural Language Processing (NLP) – AI can understand and generate human language.
5. Vision & Recognition – AI can recognize images, faces, and patterns.
6. Used In – Healthcare, finance, robotics, education, and more.
Owner By:
Name : Junaid Mansha
Work : Web Developer and Graphics Designer
Contact us : +92 322 2291672
Email : [email protected]
Diptera: The Two-Winged Wonders, The Fly Squad: Order Diptera.pptxArshad Shaikh
Diptera, commonly known as flies, is a large and diverse order of insects that includes mosquitoes, midges, gnats, and horseflies. Characterized by a single pair of wings (hindwings are modified into balancing organs called halteres), Diptera are found in almost every environment and play important roles in ecosystems as pollinators, decomposers, and food sources. Some species, however, are significant pests and disease vectors, transmitting diseases like malaria, dengue, and Zika virus.
HOW YOU DOIN'?
Cool, cool, cool...
Because that's what she said after THE QUIZ CLUB OF PSGCAS' TV SHOW quiz.
Grab your popcorn and be seated.
QM: THARUN S A
BCom Accounting and Finance (2023-26)
THE QUIZ CLUB OF PSGCAS.
THE QUIZ CLUB OF PSGCAS BRINGS T0 YOU A FUN-FILLED, SEAT EDGE BUSINESS QUIZ
DIVE INTO THE PRELIMS OF BIZCOM 2024
QM: GOWTHAM S
BCom (2022-25)
THE QUIZ CLUB OF PSGCAS
How to Manage Upselling of Subscriptions in Odoo 18Celine George
Subscriptions in Odoo 18 are designed to auto-renew indefinitely, ensuring continuous service for customers. However, businesses often need flexibility to adjust pricing or quantities based on evolving customer needs.
Parenting Teens: Supporting Trust, resilience and independencePooky Knightsmith
For more information about my speaking and training work, visit: https://www.pookyknightsmith.com/speaking/
SESSION OVERVIEW:
Parenting Teens: Supporting Trust, Resilience & Independence
The teenage years bring new challenges—for teens and for you. In this practical session, we’ll explore how to support your teen through emotional ups and downs, growing independence, and the pressures of school and social life.
You’ll gain insights into the teenage brain and why boundary-pushing is part of healthy development, along with tools to keep communication open, build trust, and support emotional resilience. Expect honest ideas, relatable examples, and space to connect with other parents.
By the end of this session, you will:
• Understand how teenage brain development affects behaviour and emotions
• Learn ways to keep communication open and supportive
• Explore tools to help your teen manage stress and bounce back from setbacks
• Reflect on how to encourage independence while staying connected
• Discover simple strategies to support emotional wellbeing
• Share experiences and ideas with other parents
A short update and next week. I am writing both Session 9 and Orientation S1.
As a Guest Student,
You are now upgraded to Grad Level.
See Uploads for “Student Checkin” & “S8”. Thx.
Thank you for attending our workshops.
If you are new, do welcome.
Grad Students: I am planning a Reiki-Yoga Master Course (As a package). I’m Fusing both together.
This will include the foundation of each practice. Our Free Workshops can be used with any Reiki Yoga training package. Traditional Reiki does host rules and ethics. Its silent and within the JP Culture/Area/Training/Word of Mouth. It allows remote healing but there’s limits As practitioners and masters. We are not allowed to share certain secrets/tools. Some content is designed only for “Masters”. Some yoga are similar like the Kriya Yoga-Church (Vowed Lessons). We will review both Reiki and Yoga (Master tools) in the Course upcoming.
Session Practice, For Reference:
Before starting a session, Make sure to check your environment. Nothing stressful. Later, You can decorate a space as well.
Check the comfort level, any needed resources (Yoga/Reiki/Spa Props), or Meditation Asst?
Props can be oils, sage, incense, candles, crystals, pillows, blankets, yoga mat, any theme applies.
Select your comfort Pose. This can be standing, sitting, laying down, or a combination.
Monitor your breath. You can add exercises.
Add any mantras or affirmations. This does aid mind and spirit. It helps you to focus.
Also you can set intentions using a candle.
The Yoga-key is balancing mind, body, and spirit.
Finally, The Duration can be long or short.
Its a good session base for any style.
Next Week’s Focus:
A continuation of Intuition Development. We will review the Chakra System - Our temple. A misguided, misused situation lol. This will also serve Attunement later.
For Sponsor,
General updates,
& Donations:
Please visit:
https://ldmchapels.weebly.com
How to Create Quotation Templates Sequence in Odoo 18 SalesCeline George
In this slide, we’ll discuss on how to create quotation templates sequence in Odoo 18 Sales. Odoo 18 Sales offers a variety of quotation templates that can be used to create different types of sales documents.
This presentation has been made keeping in mind the students of undergraduate and postgraduate level. To keep the facts in a natural form and to display the material in more detail, the help of various books, websites and online medium has been taken. Whatever medium the material or facts have been taken from, an attempt has been made by the presenter to give their reference at the end.
In the seventh century, the rule of Sindh state was in the hands of Rai dynasty. We know the names of five kings of this dynasty- Rai Divji, Rai Singhras, Rai Sahasi, Rai Sihras II and Rai Sahasi II. During the time of Rai Sihras II, Nimruz of Persia attacked Sindh and killed him. After the return of the Persians, Rai Sahasi II became the king. After killing him, one of his Brahmin ministers named Chach took over the throne. He married the widow of Rai Sahasi and became the ruler of entire Sindh by suppressing the rebellions of the governors.
How to Configure Vendor Management in Lunch App of Odoo 18Celine George
The Vendor management in the Lunch app of Odoo 18 is the central hub for managing all aspects of the restaurants or caterers that provide food for your employees.
Trends Spotting Strategic foresight for tomorrow’s education systems - Debora...EduSkills OECD
Deborah Nusche, Senior Analyst, OECD presents at the OECD webinar 'Trends Spotting: Strategic foresight for tomorrow’s education systems' on 5 June 2025. You can check out the webinar on the website https://oecdedutoday.com/webinars/ Other speakers included: Deborah Nusche, Senior Analyst, OECD
Sophie Howe, Future Governance Adviser at the School of International Futures, first Future Generations Commissioner for Wales (2016-2023)
Davina Marie, Interdisciplinary Lead, Queens College London
Thomas Jørgensen, Director for Policy Coordination and Foresight at European University Association
Analysis of Quantitative Data Parametric and non-parametric tests.pptxShrutidhara2
This presentation covers the following points--
Parametric Tests
• Testing the Significance of the Difference between Means
• Analysis of Variance (ANOVA) - One way and Two way
• Analysis of Co-variance (One-way)
Non-Parametric Tests:
• Chi-Square test
• Sign test
• Median test
• Sum of Rank test
• Mann-Whitney U-test
Moreover, it includes a comparison of parametric and non-parametric tests, a comparison of one-way ANOVA, two-way ANOVA, and one-way ANCOVA.
Rose Cultivation Practices by Kushal Lamichhane.pdfkushallamichhame
This includes the overall cultivation practices of Rose prepared by:
Kushal Lamichhane (AKL)
Instructor
Shree Gandhi Adarsha Secondary School
Kageshowri Manohara-09, Kathmandu, Nepal
2. A Free Book on
Network
Architecture
• If you find this topic area interesting
and/or need more detail
• www.net-intro.com
3. Transport Control Protocol (TCP)
• Built on top of IP (Internet Protocol)
• Assumes IP might lose some data
- stores and retransmits data if it
seems to be lost
• Handles “flow control” using a
transmit window
• Provides a nice reliable pipe Source: http://en.wikipedia.org/wiki/Internet_Protocol_Suite
5. TCP Connections / Sockets
http://en.wikipedia.org/wiki/Internet_socket
“In computer networking, an Internet socket or network socket is
an endpoint of a bidirectional inter-process communication flow
across an Internet Protocol-based computer network, such as the
Internet.”
Internet
Process Process
6. TCP Port Numbers
• A port is an application-specific or process-specific
software communications endpoint
• It allows multiple networked applications to coexist on the
same server
• There is a list of well-known TCP port numbers
http://en.wikipedia.org/wiki/TCP_and_UDP_port
9. Sometimes we see the
port number in the URL if
the web server is running
on a “non-standard” port.
10. Sockets in Python
Python has built-in support for TCP Sockets
import socket
mysock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
mysock.connect( ('data.pr4e.org', 80) )
http://docs.python.org/library/socket.html
Host Port
13. Application Protocol
• Since TCP (and Python) gives us a
reliable socket, what do we want to
do with the socket? What problem
do we want to solve?
• Application Protocols
- Mail
- World Wide Web Source: http://en.wikipedia.org/wiki/Internet_Protocol_Suite
14. HTTP - Hypertext Transfer Protocol
• The dominant Application Layer Protocol on the Internet
• Invented for the Web - to Retrieve HTML, Images, Documents,
etc.
• Extended to retrieve data in addition to documents - RSS, Web
Services, etc. Basic Concept - Make a Connection - Request a
document - Retrieve the Document - Close the Connection
http://en.wikipedia.org/wiki/Http
15. HTTP
The HyperText Transfer Protocol is the set of rules
to allow browsers to retrieve web documents from
servers over the Internet
16. What is a Protocol?
• A set of rules that all parties follow so we can
predict each other’s behavior
• And not bump into each other
- On two-way roads in USA, drive on the right-
hand side of the road
- On two-way roads in the UK, drive on the
left-hand side of the road
18. Getting Data From The Server
• Each time the user clicks on an anchor tag with an href= value to
switch to a new page, the browser makes a connection to the web
server and issues a “GET” request - to GET the content of the page
at the specified URL
• The server returns the HTML document to the browser, which
formats and displays the document to the user
23. Browser
Web Server
<h1>The Second
Page</h1><p>If you like,
you can switch back to the
<a href="page1.htm">First
Page</a>.</p>
80
Request Response
GET http://www.dr-
chuck.com/page2.htm
Click
24. Browser
Web Server
<h1>The Second
Page</h1><p>If you like,
you can switch back to the
<a href="page1.htm">First
Page</a>.</p>
80
Request Response
Parse/
Render
GET http://www.dr-
chuck.com/page2.htm
Click
25. Internet Standards
• The standards for all of the
Internet protocols (inner
workings) are developed by an
organization
• Internet Engineering Task Force
(IETF)
• www.ietf.org
• Standards are called “RFCs” -
“Request for Comments”
Source: http://tools.ietf.org/html/rfc791
28. Making an HTTP request
• Connect to the server like www.dr-chuck.com"
• Request a document (or the default document)
• GET http://www.dr-chuck.com/page1.htm HTTP/1.0
• GET http://www.mlive.com/ann-arbor/ HTTP/1.0
• GET http://www.facebook.com HTTP/1.0
29. Browser
Web Server
Note: Many
servers do not
support HTTP
1.0
$ telnet data.pr4e.org 80
Trying 74.208.28.177...
Connected to data.pr4e.org.
Escape character is '^]'.
GET http://data.pr4e.org/page1.htm HTTP/1.0
HTTP/1.1 200 OK
Date: Tue, 30 Jan 2024 15:30:13 GMT
Server: Apache/2.4.18 (Ubuntu)
Last-Modified: Mon, 15 May 2017 11:11:47 GMT
Content-Length: 128
Content-Type: text/html
<h1>The First Page</h1>
<p>If you like, you can switch to
the <a href="http://data.pr4e.org/page2.htm">Second
Page</a>.</p>
Connection closed by foreign host.
30. Accurate Hacking in
the Movies
• Matrix Reloaded
• Bourne Ultimatum
• Die Hard 4
• ...
http://nmap.org/movies.html
32. An HTTP Request in Python
import socket
mysock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
mysock.connect(('data.pr4e.org', 80))
cmd = 'GET http://data.pr4e.org/romeo.txt HTTP/1.0rnrn'.encode()
mysock.send(cmd)
while True:
data = mysock.recv(512)
if (len(data) < 1):
break
print(data.decode(),end='')
mysock.close()
33. HTTP/1.1 200 OK
Date: Sun, 14 Mar 2010 23:52:41 GMT
Server: Apache
Last-Modified: Tue, 29 Dec 2009 01:31:22 GMT
ETag: "143c1b33-a7-4b395bea"
Accept-Ranges: bytes
Content-Length: 167
Connection: close
Content-Type: text/plain
But soft what light through yonder window breaks
It is the east and Juliet is the sun
Arise fair sun and kill the envious moon
Who is already sick and pale with grief
while True:
data = mysock.recv(512)
if ( len(data) < 1 ) :
break
print(data.decode())
HTTP Header
HTTP Body
36. Representing Simple Strings
• Each character is represented by a
number between 0 and 256 stored in
8 bits of memory
• We refer to "8 bits of memory as a
"byte" of memory – (i.e. my disk
drive contains 3 Terabytes of
memory)
• The ord() function tells us the
numeric value of a simple ASCII
character
>>> print(ord('H'))
72
>>> print(ord('e'))
101
>>> print(ord('n'))
10
>>>
39. Multi-Byte Characters
To represent the wide range of characters computers must handle we represent
characters with more than one byte
• UTF-16 – Fixed length - Two bytes
• UTF-32 – Fixed Length - Four Bytes
• UTF-8 – 1-4 bytes
- Upwards compatible with ASCII
- Automatic detection between ASCII and UTF-8
- UTF-8 is recommended practice for encoding
data to be exchanged between systems
https://en.wikipedia.org/wiki/UTF-8
40. Two Kinds of Strings in Python
Python 3.5.1
>>> x = '이광춘'
>>> type(x)
<class 'str'>
>>> x = u'이광춘'
>>> type(x)
<class 'str'>
>>>
Python 2.7.10
>>> x = '이광춘'
>>> type(x)
<type 'str'>
>>> x = u'이광춘'
>>> type(x)
<type 'unicode'>
>>>
In Python 3, all strings are Unicode
41. Python 2 versus Python 3
Python 3.5.1
>>> x = b'abc'
>>> type(x)
<class 'bytes'>
>>> x = '이광춘'
>>> type(x)
<class 'str'>
>>> x = u'이광춘'
>>> type(x)
<class 'str'>
Python 2.7.10
>>> x = b'abc'
>>> type(x)
<type 'str'>
>>> x = '이광춘'
>>> type(x)
<type 'str'>
>>> x = u'이광춘'
>>> type(x)
<type 'unicode'>
42. Python 3 and Unicode
• In Python 3, all strings internally
are UNICODE
• Working with string variables in
Python programs and reading data
from files usually "just works"
• When we talk to a network
resource using sockets or talk to a
database we have to encode and
decode data (usually to UTF-8)
Python 3.5.1
>>> x = b'abc'
>>> type(x)
<class 'bytes'>
>>> x = '이광춘'
>>> type(x)
<class 'str'>
>>> x = u'이광춘'
>>> type(x)
<class 'str'>
43. Python Strings to Bytes
• When we talk to an external resource like a network socket we send bytes,
so we need to encode Python 3 strings into a given character encoding
• When we read data from an external resource, we must decode it based on
the character set so it is properly represented in Python 3 as a string
while True:
data = mysock.recv(512)
if ( len(data) < 1 ) :
break
mystring = data.decode()
print(mystring)
socket1.py
44. An HTTP Request in Python
import socket
mysock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
mysock.connect(('data.pr4e.org', 80))
cmd = 'GET http://data.pr4e.org/romeo.txt HTTP/1.0nn'.encode()
mysock.send(cmd)
while True:
data = mysock.recv(512)
if (len(data) < 1):
break
print(data.decode())
mysock.close()
socket1.py
48. Since HTTP is so common, we have a library that does all the
socket work for us and makes web pages look like a file
import urllib.request, urllib.parse, urllib.error
fhand = urllib.request.urlopen('http://data.pr4e.org/romeo.txt')
for line in fhand:
print(line.decode().strip())
Using urllib in Python
urllib1.py
49. But soft what light through yonder window breaks
It is the east and Juliet is the sun
Arise fair sun and kill the envious moon
Who is already sick and pale with grief
urllib1.py
import urllib.request, urllib.parse, urllib.error
fhand = urllib.request.urlopen('http://data.pr4e.org/romeo.txt')
for line in fhand:
print(line.decode().strip())
50. Like a File...
import urllib.request, urllib.parse, urllib.error
fhand = urllib.request.urlopen('http://data.pr4e.org/romeo.txt')
counts = dict()
for line in fhand:
words = line.decode().split()
for word in words:
counts[word] = counts.get(word, 0) + 1
print(counts)
urlwords.py
51. Reading Web Pages
import urllib.request, urllib.parse, urllib.error
fhand = urllib.request.urlopen('http://www.dr-chuck.com/page1.htm')
for line in fhand:
print(line.decode().strip())
<h1>The First Page</h1>
<p>If you like, you can switch to the <a
href="http://www.dr-chuck.com/page2.htm">Second
Page</a>.
</p>
urllib2.py
52. Following Links
import urllib.request, urllib.parse, urllib.error
fhand = urllib.request.urlopen('http://www.dr-chuck.com/page1.htm')
for line in fhand:
print(line.decode().strip())
<h1>The First Page</h1>
<p>If you like, you can switch to the <a
href="http://www.dr-chuck.com/page2.htm">Second
Page</a>.
</p>
urllib2.py
53. The First Lines of Code @ Google?
import urllib.request, urllib.parse, urllib.error
fhand = urllib.request.urlopen('http://www.dr-chuck.com/page1.htm')
for line in fhand:
print(line.decode().strip())
urllib2.py
55. What is Web Scraping?
• When a program or script pretends to be a browser and retrieves
web pages, looks at those web pages, extracts information, and
then looks at more web pages
• Search engines scrape web pages - we call this “spidering the
web” or “web crawling”
http://en.wikipedia.org/wiki/Web_scraping
http://en.wikipedia.org/wiki/Web_crawler
56. Why Scrape?
• Pull data - particularly social data - who links to who?
• Get your own data back out of some system that has no “export
capability”
• Monitor a site for new information
• Spider the web to make a database for a search engine
57. Scraping Web Pages
• There is some controversy about web page scraping and some
sites are a bit snippy about it.
• Republishing copyrighted information is not allowed
• Violating terms of service is not allowed
58. The Easy Way - Beautiful Soup
• You could do string searches the hard way
• Or use the free software library called BeautifulSoup from
www.crummy.com
https://www.crummy.com/software/BeautifulSoup/
59. # To run this, you can install BeautifulSoup
# https://pypi.python.org/pypi/beautifulsoup4
# Or download the file
# http://www.py4e.com/code3/bs4.zip
# and unzip it in the same directory as this file
import urllib.request, urllib.parse, urllib.error
from bs4 import BeautifulSoup
...
urllinks.py
BeautifulSoup Installation
60. import urllib.request, urllib.parse,
urllib.error
from bs4 import BeautifulSoup
url = input('Enter - ')
html = urllib.request.urlopen(url).read()
soup = BeautifulSoup(html, 'html.parser')
# Retrieve all of the anchor tags
tags = soup('a')
for tag in tags:
print(tag.get('href', None))
python urllinks.py
Enter - http://www.dr-chuck.com/page1.htm
http://www.dr-chuck.com/page2.htm
61. Summary
• The TCP/IP gives us pipes / sockets between applications
• We designed application protocols to make use of these pipes
• HyperText Transfer Protocol (HTTP) is a simple yet powerful
protocol
• Python has good support for sockets, HTTP, and HTML
parsing
62. Acknowledgements / Contributions
Thes slide are Copyright 2010- Charles R. Severance (www.dr-
chuck.com) of the University of Michigan School of Information
and open.umich.edu and made available under a Creative
Commons Attribution 4.0 License. Please maintain this last slide
in all copies of the document to comply with the attribution
requirements of the license. If you make a change, feel free to
add your name and organization to the list of contributors on this
page as you republish the materials.
Initial Development: Charles Severance, University of Michigan
School of Information
… Insert new Contributors here
...