Thursday, November 28, 2019

Hospitality refers to the relationship between a g Essays

Hospitality refers to the relationship between a guest and a host, wherein the host receives the guest with goodwill, including the reception and entertainment of guests, visitors, or strangers. Louis, chevalier de Jaucourt describes hospitality in the Encyclopedie as the virtue of a great soul that cares for the whole universe through the ties of humanity. Hospitality ethics is a discipline that studies this usage of hospitality. Etymology Derives from the Latin hospes, meaning "host", "guest", or "stranger". Hospes is formed from hostis, which means "stranger" or "enemy" . By metonymy the Latin word 'Hospital' means a guest-chamber, guest's lodging, an inn. Hospes is thus the root for the English words host, hospitality, hospice, hostel and hotel. Historical practice In ancient cultures hospitality involved welcoming the stranger and offering him food, shelter, and safety. Global concepts Ancient Greece In Ancient Greece, hospitality was a right, with the host being expected to make sure the needs of his guests were met. The ancient Greek term xenia, or theoxenia when a god was involved, expressed this ritualized guest-friendship relation. In Greek society a person's ability to abide by the laws of hospitality determined nobility and social standing. The Stoics regarded hospitality as a duty inspired by Zeus himself. Judaism Judaism praises hospitality to strangers and guests based largely on the examples of Abraham and Lot in the Book of Genesis . In Hebrew, the practice is called hachnasat orchim, or "welcoming guests". Besides other expectations, hosts are expected to provide nourishment, comfort, and entertainment for their guests, and at the end of the visit, hosts customarily escort their guests out of their home, wishing them a safe journey. Christianity In Christianity, hospitality is a virtue which is a reminder of sympathy for strangers and a rule to welcome visitors. This is a virtue found in the Old Testament, with, for example, the custom of the foot washing of visitors or the kiss of peace. It was taught by Jesus in the New Testament. Indeed, Jesus said that those who had welcomed a stranger had welcomed him. Some Western countries have developed a host culture for immigrants, based on the bible. Pashtun One of the main principles of Pashtunwali is Melmastia. This is the display of hospitality and profound respect to all visitors without any hope of remuneration or favour. Pashtuns will go to great lengths to show their hospitality. Celtic cultures Celtic societies also valued the concept of hospitality, especially in terms of protection. A host who granted a person's request for refuge was expected not only to provide food and shelter for his/her guest, but to make sure they did not come to harm while under their care. Current usage In the West today hospitality is rarely a matter of protection and survival and is more associated with etiquette and entertainment. However, it still involves showing respect for one's guests, providing for their needs, and treating them as equals. Cultures and subcultures vary in the extent to which one is expected to show hospitality to strangers, as opposed to personal friends or members of one's ingroup. Anthropology of Hospitality Jacques Derrida offers a model to understand hospitality that divides unconditional hospitality from conditional hospitality. Over the centuries, philosophers have devoted considerable attention to the problem of hospitality. However, hospitality offers a paradoxical situation since inclusion of those who are welcomed in the sacred law of hospitality implies others will be rejected. Julia Kristeva alerts readers to the dangers of "perverse hospitality", which consists of taking advantage of the vulnerability of aliens to dispossess them. Hospitality serves to reduce the tension in the process of host-guest encounters, producing a liminal zone that combines curiosity about others and fear of strangers. In general terms, the meaning of hospitality centres on the belief that strangers should be assisted and protected while traveling. However, not all voices are in agreement with this concept. Professor Anthony Pagden describes how the concept of hospitality was historically manipulated to legitimate the conquest of Americas by imposing the right of free transit, which was conducive to the formation of the modern nation-state. This suggests that hospitality is a political institution which can be ideologically deformed to oppress others. Over recent years and following Padgen, Maximiliano Korstanje argued that hospitality is an

Sunday, November 24, 2019

How to Exchange Data Over a Network Using Delphi

How to Exchange Data Over a Network Using Delphi Of all the components that  Delphi provides to support applications that exchange data over a network (internet, intranet, and local), two of the most common are  TServerSocket and TClientSocket, both of which are designed to support read and write functions over a TCP/IP connection. Winsock and Delphi Socket Components Windows Sockets (Winsock) provides an open interface for network programming under the Windows operating system. It offers a set of functions, data structures, and related parameters required to access the network services of any protocol stacks. Winsock acts as a link between network applications and underlying protocol stacks. Delphi socket components (wrappers for the Winsock) streamline the creation of applications that communicate with other systems using TCP/IP and related protocols. With sockets, you can read and write over connections to other machines without worrying about the details of the underlying networking software. The internet palette on the Delphi components toolbar hosts the TServerSocket and TClientSocket components as well as TcpClient, TcpServer,  and TUdpSocket. To start a socket connection using a socket component, you must specify a host and a port. In general, host specifies an alias for the IP address of the server system; port specifies the ID number that identifies the server socket connection. A Simple One-Way Program to Send Text To build a simple example using the socket components provided by Delphi, create two forms- one for the server and one for the client computer. The idea is to enable the clients to send some textual data to the server. To start, open Delphi twice, creating one project for the server application and one for the client. Server Side: On a form, insert one TServerSocket component and one TMemo component. In the OnCreate event for the form, add the next code: procedure TForm1.FormCreate(Sender: TObject);begin ServerSocket1.Port : 23; ServerSocket1.Active : True;end; The OnClose event should contain: procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction);begin ServerSocket1.Active : false;end; Client Side: For the client application, add a TClientSocket, TEdit, and TButton component to a form. Insert the following code for the client: procedure TForm1.FormCreate(Sender: TObject);begin ClientSocket1.Port : 23; //local TCP/IP address of the server ClientSocket1.Host : 192.168.167.12; ClientSocket1.Active : true;end;procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction);begin ClientSocket1.Active : false;end;procedure TForm1.Button1Click(Sender: TObject);beginif ClientSocket1.Active then ClientSocket1.Socket.SendText(Edit1.Text);end; The code pretty much describes itself: when a client clicks a button, the text specified inside the Edit1 component will be sent to the server with specified port and host address. Back to the Server: The final touch in this sample is to provide a function for the server to see the data the client is sending. The event we are interested in is OnClientRead- it occurs when the server socket should read information from a client socket. procedure TForm1.ServerSocket1ClientRead(Sender: TObject; Socket: TCustomWinSocket);begin Memo1.Lines.Add(Socket.ReceiveText);end; When  more than one client sends data to the server, youll need a little more to code: procedure TForm1.ServerSocket1ClientRead(Sender: TObject; Socket: TCustomWinSocket);var i:integer; sRec : string;beginfor i : 0 to ServerSocket1.Socket.ActiveConnections-1 dobeginwith ServerSocket1.Socket.Connections[i] dobegin sRec : ReceiveText; if sRecr thenbegin Memo1.Lines.Add(RemoteAddress sends :) ; Memo1.Lines.Add(sRecr); end; end; end;end; When the server reads information from a client socket, it adds that text to the Memo component; both the text and the client RemoteAddress are added, so youll know which client sent the information. In more sophisticated implementations, aliases for known IP addresses can serve as a substitute. For a more complex project that uses these components, explore the Delphi Demos Internet Chat project. Its a simple network chat application that uses one form (project) for both the server and the client.

Thursday, November 21, 2019

Malpractice Essay Example | Topics and Well Written Essays - 1000 words

Malpractice - Essay Example Legal issues governing the medical malpractice law already way out of the field of health care and one has to have a good legal counsel to prove the actions made to be acted upon good faith under the scope of health care profession. Malpractice: Failure to assess and document Introduction: The world has evolved into a large pit of legalities, where every action has a legal implication if done mischievously. This in turn as a person have reinforced the right to the best health care possible but as a health care professional emotions are wired not because of fear that the author will personally be mitigated upon but the author speaks for the rest of the nursing professionals who understand that biologically speaking some things may get out of people’s hands and worst out of people’s understanding. But legality tells it otherwise that every person is held legally accountable despite clarity of one’s conscience and the ability to pay legal proceedings, for the sake o f legality and the truth legal proceeding is a must and health care professionals are required to maintain professional liability insurance to offset the risk and costs of lawsuits based brought by litigations of medical malpractice. ... Medical malpractice is professional negligence by act or omission by a health care provider in which care provided deviates from accepted standards of practice in the medical community and causes injury or death to the patient. Standards and regulations for medical malpractice vary by country and jurisdiction within countries (HG Global legal Resources, 2012). According to Nurses Service Organization, medical malpractice claims can be asserted against healthcare providers including nurses. Although there may be a perception that physicians are held responsible for the majority of lawsuits, the reality is that nurses are more frequently finding themselves defending the care they provide to patients. Moreover over $83 Million was paid for malpractice claims involving nursing professionals according to the most recent study (Nurses Service Organization 2012). Case Study: Failure to assess and document The case that will be tackled in this paper involves the very basic of all nursing pro cedures which is to assess patient condition before and after any procedure and to properly document any reaction even if nothing happened. Documentation is very important for the nursing profession; it does not only details the kind of nursing care and procedures done to every patient but in cases of legal proceedings the documentation will tell and not only back nurses up but to prove otherwise with what was done for the patient. This is a case of a 23 woman who presented in the emergency of a local hospital with persistent flu like symptoms—generalized body ache and fever for the past two weeks. An abnormal CT scan of the chest prompted for admission—near

Wednesday, November 20, 2019

History Essay Example | Topics and Well Written Essays - 1000 words - 18

History - Essay Example Death because the bubonic strain is typified by â€Å"large, inflamed lymph nodes around the neck, groin and armpits† that would turn black with the progression of the disease (Hayden, â€Å"History of The Black Death†). The spread of the disease was fast and crossed countries and continents within months as rat fleas feeding on infected black rats, causing the fleas to hunger for more sources of blood, were transported through ships that sailed from the East to the West (Hayden, â€Å"History of The Black Death†). Combined with the unsanitary conditions of the cities back then and contagion became inevitable. â€Å"The violence of this disease was such that the sick communicated it to the healthy who came near them, just as a fire catches anything dry or oily near it† (â€Å"The Black Death, 1348†). This was evidenced by black flags that were hung on villages and towns that were infected by the plague; almost everywhere these black flags were seen flying in the air (Butler, â€Å"The Black Death and its Impact (c.1300-1450)†). The rapid devastation of village and city populations created an aura of doom and fear—experiences that were never forgotten and gotten over with. Entire families died; survivors did not even have time to mourn their loved ones as the fear of contacting the disease was all-consuming (Holmes 249). People were forced to throw their loved ones in mass graves of ditches without a proper burial ceremony and even a hastened prayer (Holmes 249; James, â€Å"Black Death: The lasting impact†). â€Å"And there were those who had been so poorly covered with earth that dogs dragged them from there and through the city and fed on corpses† (qtd. in Holmes 249). Experiences like this are etched into the memory of the people and has inadvertently affected the psyche and morale of not only the individual, but of populations worldwide. This has resulted to a change in the way of living, especially for the peasants who were affected greatly as they did not have the

Sunday, November 17, 2019

Kierkegaard and Sartre's versions of existentialism Essay

Kierkegaard and Sartre's versions of existentialism - Essay Example On the other hand, they are similar in ways such as their trust on individuality, will power and meaningful decision making through choices. Sartre defines existentialism in ways that deduce the nature of man as man himself and that he uses his wills to accomplish his own destiny using various principles. The first one is that a man is only what he designs of himself. This means that men in the world shoulder responsibilities due to their mere existence on earth and each man knows his in full. He further explains that every man is responsible for humanity in its entirety and not merely for himself (individuality). Every choice that a man makes affects the rest of his species. In another perspective, he declares that God does not exist. Therefore, all men carry the responsibility of their actions. He defines an ethical person as an independent thinker who lives generously in consideration to the needs of others. He sets goals, pursues them actively and enumerates decisions on how to achieve them. This is under the choice of active life. This drives to invisibility of a man’s existence if he fails to pursue his goals in an active manner or make plans of achieving them. This eventually leads to despair, where a man loses hope and the meaning of life itself. Kierkegaard however contradicts this by setting three models of existentialism, namely: aesthetic, ethical and supranational religious faith. The importance of making a choice and the difference between ethical and aesthetical choices are the areas of emphasis. Men shape their personalities through their choices, which in itself is an ethical quality. High levels of determination together with thorough thinking enables man to make an ethical choice that is absolute and genuine. Aesthetical choices are neither meaningful nor stable and usually made for timely or sensual pleasure. Thus, they are not as genuine as

Friday, November 15, 2019

Comparison between SOAP and REST

Comparison between SOAP and REST Dickriven Chellemboyee Table of Contents (Jump to) Abstract Introduction to Software Architecture Service-Oriented Architecture Resource-Oriented Architecture Web service SOAP REST RESTful Features SOAP WS-* REST Description Language WSDL WADL Message Format XML JavaScript Object Notation Pros and Cons Pros of SOAP over REST Cons of SOAP over REST Statistics Real Life Scenario Conclusion References List of Figures Figure 1: Basic web service Figure 2: Comparison of web services usage in 2006 and in 2011 Figure 3: Web service with JSON support Figure 4: New web service with JSON support only Figure 5: Web service with XML support Abstract The main aim of this document is to describe the two common software architectures mostly used in distributed system namely Service-Oriented Architecture and Resource-Oriented Architecture. The document provides a high-level descriptions of the two software architectures and implementation of those software architectures in the form of web services. Web services allow interaction between applications. Web services are compared and contrasted. The document describes and compares the differences between two types of web services namely SOAP-based web service and REST-based web services. Introduction to Software Architecture Service-Oriented Architecture Service-Oriented Architecture is a concept aims to improve flexibility by organizing and utilizing nodes of a network [1]. SOA enables the realization of business functionalities by allowing interactions between service providers and service consumers [2]. SOA turn application functions into services which can be consume by other applications over a network. A service describes the business function, self-contained and developed independently. It is defined by a verb, for example: validate user [3]. Services are simply a collection of service with independent methods. Resource-Oriented Architecture Resource-oriented architecture is based on the concept of resource. It involves retrieving particular resource instance and it has operations for resource lifecycle management that is to create, read, update and delete resource. Requests are stateless, one request has no connection with the next one. Resources are identified by some address and data included within the request [4]. Web service A web service is a node of a network accessible interface to application functionalities that is a set of specifications to support interoperable machine-to-machine interaction [2] [5]. The protocol and the format that are used for specific services are defined in those specifications. Figure 1 shows a basic web service where communication is done between two machines with different operation systems (Windows and Linux) and built with different programming language (Perl and Java). Figure 1: Basic web service SOAP SOAP originally Simple Object Access Protocol, is a set of rules for transferring organised information by the use of web services. SOAP uses XML based for transferring of information in a distributed computing style. SOAP is independent of transport protocol that is it can use any transport protocol for example HTTP, FTP, TCP, UDP, etc. [6]. SOAP has been developed by Microsoft to replace older technologies like CORBA and DCOM SOAP has an RPC architecture, all web service are message-oriented as HTTP itself is message-oriented, SOAP uses a second envelope inside the HTTP one, that contains XML data which is a description of a RPC call similarly as XML-RPC. This is how SOAP is used to call a remote function or what the return value from a function. Soap message contains data, the action to perform, the headers and the error details in the case of failure [6]. It uses interfaces and named operations to expose the business logic. It makes use of WSDL to describe the services for client to use and UUDI to advertise their existence [6]. REST Representational State Transfer is a set of software architectural style for distributed computing system like the World Wide Web. REST is not a protocol. The REST term originated by Roy Fielding in his doctoral dissertation. Roy Fielding is one of the main author of the HTTP protocol specification. The REST term has quickly come in practise in the network community [7]. REST tries to fix the problems with SOAP and provides a truly method of using web services [8]. REST do not require to add another messaging layer to make the transfer to message as oppose to SOAP, REST transfer its message in the HTTP request. It concretes on design rules for making stateless services. Request and response are built by the transfer of representational of resources. A resource can be essentially the data (object) that may be addressed [6]. Rest recognizes everything as a resource (e.g. User). Each resource has a standard uniform interface, usually an HTTP interface, resources have a name and addresses (URIs). Each resource serves a unique resource since each URL are unique. The different types of operations that can be performed on the resource are done by the different HTTP operations also known as HTTP verbs which are GET, PUT, POST and DELETE. Each resource has one or more representation (JSON, XML, CSV, text, etc.) and the resource representations are transferred across the network [6]. REST allows the creation of ROA but it can be used for both ROA and SOA [3]. RESTful A RESTful web service is the implementation of REST principles. HTTP Methods GET getUser – retrieve user information DELETE deleteUser – delete user PUT createUser– create user HEAD – getInformation – get meta information POST – updateUser – modify user information Features SOAP Independent of transport protocol (http, ftp, tcp, udp , or named pipes) [6] It can perform asynchronous processing and invocation (e.g. JAX-WS) It caters for complex operations which require conversional state and contextual information to be maintained. WS-* SOAP has a different set of XML â€Å"stickers† for its SOAP envelope to provide enhance features to transport its message. These specifications are analogous to HTTP headers. Some of these specifications are described below: WS-Security Enterprise security features are provided by the WS-Security standards. It supports identity through intermediaries, also provides the implementation of data integrity and data privacy [9]. WS-ReliableMessaging Provides reliable messaging that is a successful/retry process built in and provides reliability through soap intermediaries [6]. REST don’t have such feature therefore it should deal with failures by retrying the request. WS-Trust Enables issue, renew and validate security tokens. WS-AtomicTransaction ACID transactions over a service, REST is not ACID compliant. [9] REST Does not enforce message format as XML or JSON or etc. It has a good caching infrastructure which greatly improve performance when the data is not altered often or is not dynamic Security is provided by the transport mechanism (SSL), it does not have dedicated concepts for each, it relies predominantly on HTTPS Description Language WSDL The Web Service Description Language is used to describe SOAP interface in XML format. A client can read the file and know exactly which methods it can call and the signatures of the methods. The client can discover services automatically and generate useable client proxy from the WSDL. Most SOAP web services would be very cumbersome to use without it. The WSDL is a machine-readable file that is an application can parse it and knows how to make a service call. When a service method is called, a POST request is made to the endpoint of the SOAP service which is a single URL for all API call and only POST requests can be made. The signature details are found in the WSDL document. WSDL version 2 caters for HTTP verbs and it can be useful for documenting RESTful system but it will still very verbose [6]. WADL The Web Application Description Language is used to describe RESTful web services using XML grammar. A client can load the WADL file and access the functionality of the RESTful web services directly. A WADL is normally less verbose than a WSDL [6]. However since RESTful web services have simpler interfaces, the WADL is not mandatory as opposed to WSDL is to SOAP-based web services. Message Format XML A client requires an XML parser in order to get the information from the XML document. The parsing of XML has to go through different stages (character conversion, lexical analysis and syntactic analysis) before machine can interpret it. The parsing of XML document can take a lot of time since XML is a very verbose document and as the XML document gets longer much more time is taken to parse it. By replacing XML document with a remote call, there will be a great performance improvement if both sides of the application uses the same binary logic [10]. JavaScript Object Notation XML is mainly used by most web services for request and response messages but a growing number of web services are using simple data structures (such as numbers, array) serialized as JSON-formatted strings. JSON is expected to be used by a JavaScript call; it is much easier to get a JavaScript data structure from JSON than from XML document. Web browsers don’t have a standard JavaScript interface for XML parser as every browser has a different interface for treating XML document. JSON is normally just a string with some constraints with JavaScript so we can say that JSON string is interoperable on all web browsers. JSON is not attached to JavaScript but an alternative data serialisation to XML. JSON is a simple language-independent method of formatting complex data structures (e.g. array, object, etc.) as string. [11] Pros and Cons Pros of SOAP over REST Some programming languages provides some shortcuts, reducing the effort needed to build a request and parse the response. For example with .NET technology, the XML is invisible in the user codes [8]. SOAP has more mature tool support as compare to REST, but this is likely to change in the future [12]. No native support for SOAP in mobile, even though there are third-party libraries to bring SOAP support, out of the box SOAP support is not available. [13] SOAP has a lot of rules thus make it restrictive as compared to REST in the implementation Cons of SOAP over REST It is much simpler to implement REST as compared to SOAP The learning curve for REST is smaller than SOAP The difficulty lies greatly in the chosen programming language to develop it since some IDE automate the process of generate or referencing the WSDL Has support for error handling and the error reporting provides a standard error codes which can be very useful to handle the request and response in the application consuming it. SOAP is sometimes considered to be slower than legacy system such as CORBA or ICE because of being too verbose [14] While some programming language provides some shortcut to SOAP services, it can be very cumbersome in some others such as JavaScript since an XML structure needs to be created each time a request should be made. Distributed environments is best suited for SOAP whereas REST assumes an end-to-end communication Has strict set of rules for every stage of implementation while REST provides a concept and less restrictive with the implementation Uses strongly type messages, which is a problem for loosely coupled systems. If type signature of an operation is changed, all the clients that was using it will failed [15]. REST is flexible for data representation, it is easier to understand as they add an element of using standardized URIs and give importance to HTTP verb used. They are lightweight as they don’t need extra XML mark-up [6]. SOAP uses XML structure which make it slow as compare Statistics A comparison of web services protocol, styles in 2006 and in 2011 from more than 2000 web services are shown below. It clearly demonstrate that most developers have moved from SOAP to REST. The interest in REST is growing very rapidly whose those in SOAP is declining [16]. Figure 2: Comparison of web services usage in 2006 and in 2011 Figure 3: Web service with JSON support Figure 4: New web service with JSON support only Figure 5: Web service with XML support Real Life Scenario Amazon has SOAP and REST based web services and around 85% of their usage is from the REST-based web service [17]. Although all the beautiful name with SOAP, it is an evidence that developers like the simpler one, that is the REST one [18]. Google has deprecated its SOAP services in favour of a RESTful, resource –oriented service [11] Nelson Minar, used SOAP-based web service to design Google API for Google search and AdWord, he stated to be wrong for choosing SOAP [15]. Conclusion SOAP is more useful for complex web service or when there is critical data involve such as banking transaction where retrying the same request can be very critical. If one need a web service up-and-running quickly, it is better to start with REST rather than SOAP. REST is a good option for web service which are meant to be simple, lightweight and fast. However after using one of the web service, it can be almost impossible to change it to the other one. It would be cheaper to re-build the web service. When making your decision on which type of web service to use, the decision should be which one best meets the requirements with the chosen programming language and in which environment it will be used. Even though SOAP is meant to be flexible to change, add new features, expanding it. It is not the case in practise by the use of strongly-type as it can make existing client to stop working just by changing the type of method signature. References 1

Wednesday, November 13, 2019

Rock Essay -- essays research papers

The music genre of Rock, thought by some to be the devil’s music, to me is an inspiration and it helps me deal with situations going on in my life. If you listen to Rock you know what I’m saying, but by most people who do not, they are so put in there ways of believing that anybody even listening to it is a devil worshipper, or some drug addict and is out casted because of what they listen to. That is totally arrogance and I for one am really serious about music and couldn’t see living without it. First of all, all of my favorite bands do not ever comment on Satan or anything dealing with evilness in their lyrics. Secondly in modern Rock there aren’t too many drugies in the music business, if they are it’s in other genres that I don’t care to talk about. For me it’s not so much the lyrics of the song that can inspire me to do something, but also in how the guitarist hits the notes of his solo, or how the drummer leads them all in synch ronization, or merely how the bassist wails away with his bass rhythm. But in all it’s how the music is presented and played that inspires me along with millions of fans around the world.   Ã‚  Ã‚  Ã‚  Ã‚  For bands like Creed, Red Hot Chilli Peppers, Candlebox, Queensrà ¿che, Live, and Silverchair, to name a few, the lyrics they write, the solos they play, the riffs they come up with and the feeling they get when they see 100,000 people cheer is something unbelievable. They play music not to persuade people into their beliefs, but ...