Posts

Network Programming

Image
Contents:           What is Client/Server Architecture?           Sockets: Communication Endpoints           Networking Programming in Python           The SocketServer Module           Twisted Framework           Related Modules Client Server Architecture:        It is simple., the Server is a piece of hardware or software provides a "service" that is needed by one or more clients (user of the service). Its purpose is to wait for the client's request and respond to those clients and then wait for more requests.        Clients on the other hand, contacts server for a particular request, send over any necessary data, and then wait foe the server ti reply, either completing the request or indicating cause of failure.        The common notion o...

Regular Expressions

Image
Introduction to Regular Expressions:             Regular Expression , referred as regex , a sequence of characters that define a search pattern .            If you are in need of matching a string, extraction of some data, and/or search-and-replace functionality, Regular expression is a best tool. Everything in regex is a Character. To put it simple:            A Regular expression is a string that use special symbols and characters to indicate pattern repetition or to represent multiple characters  to indicate pattern repetition or to represent multiple characters so that they can 'match' a set if strings with similar characteristics described by the pattern. Library :            Python supports regexes through the standard library re module. The re module raises the exception re.error if an error occurs while compiling or us...