Wednesday, October 30, 2019
Biometric Research Paper Example | Topics and Well Written Essays - 1000 words
Biometric - Research Paper Example However, research has shown that the mismatched identification in a whispered speech is due to the phonemes hence providing an unvoiced consonant will prevent this mismatched in whispered identification. Key Words- Voice, Phoneme, Biometric Authentication I. RESEACH QUESTION/PROPOSAL A feature information of enrolled personââ¬â¢s biometric information in biometric authentication is normally enrolled as templates that are stored by secure databases and anti-tampered devices. However, the disadvantage is that biometric information is irrecoverable once compromised. Therefore, there is need to give such information special attention in order to ensure they are safely stored. Also due to increased internet penetration and access by many people has raised a need for the implementation of online biometric authentication i.e. a uniform, secure and reliable method of biometric authentication. Therefore, the research proposal in this case is to identify alternatives for the password-based authentication used in most smart devices today. This kind of authentication is vulnerable and can be compromised hence a proposal to focus and introduce better authentication ways i.e. biometric that uses oneââ¬â¢s unique biological and psychological features. ... Mobile devices are being stolen daily, which puts in danger important information that had been stored before. [1]. Therefore, a user will hope that his/her password is strong enough not to be decoded. Biometric authentication is giving a natural alternative to passwords. The wide variety of input sensors that mobile devices include nowadays like microphones, camera, PS, touch screens helps with the implementation of biometric authentication. Businesses are requiring an easy to use but secure authentication for their mobile devices in their corporations as well users around the world. Many of the biometric authentications are strong, but others have their limitations. [2] This paper will discuss and will show an improvement in the authentication of voice recognition. I. BACKGROUND Biometric can be classified in to two major categories based on their characteristics i.e. Behavioral Biometric and Physiological Biometric. Behavioral biometric is the study of the differences in how peopl e do things while physiological biometric is the study of physical uniqueness of individual, which is unlikely to change very easily [3]. A. Importance of Voice Authentication Most of the biometric authentications works with sophisticated equipment that requires the physical presence of the person. For example, Retina biometric authentication needs a camera; which are contained in most smartphones. TABLE 1 PHYSIOLOGICAL BIOMETRIC AND BEHAVIOR BIOMETRIC Physiological Biometric Behavioral Biometric Voice Scan Iris Scan Finger Print DNA Matching Facial Scan Retina Scan Hand Scan Keystroke Scan Signature Scan Gait Recognition However, a Charge Coupled Device (CCD) which is complement with ANSI/IESNA RP-27.1-96 and IEC 60825-1 standards for radiation have
Monday, October 28, 2019
Conflicting Perspectives Essay Example for Free
Conflicting Perspectives Essay ââ¬Å"An important outcome of studying this elective is the realisation that all representations of perspectives are designed to provoke an intended response. â⬠To what extent does this statement relate to your study of at least one of Hughesââ¬â¢ poems and one related text of your own choosing? In some texts authors have the intention to evoke a personal understanding in the audience. However, the personal experience varies between each individual creating conflicting ways in response to a text. These responses to the messages from the authors are shaped through personal experience and values of the individual. The notion of conflict within perspectives is evident in ââ¬Å"Birthday Lettersâ⬠by Ted Hughes especially in the poems ââ¬Å"Fulbright Scholarsâ⬠and ââ¬Å"Samâ⬠as well as in Michel Gondryââ¬â¢s film ââ¬Å"Eternal Sunshine of the Spotless Mind. â⬠The conflict within memory and connections leads to a representation of their conflict in perspectives. The nature and strength of memories is to some extent subjective in relation to events, situations and people. Hughes proves this idea of selective memory through the use of rhetorical questions asked in his first poem Fulbright Scholars such as ââ¬Å"where was it, in the Strand? â⬠and ââ¬Å"was it when I bought a peach? These questions are evidence of his disordered memory. Hughes perspective of Plath is somewhat subjective as he remembers vague details of particular moments and her ââ¬Å"Veronica Lake bangs. â⬠In his second poem ââ¬Å"Samâ⬠depicts the same events as Plathââ¬â¢s poem ââ¬Å"Whiteness I rememberâ⬠but showing his conflicting interpretation of Plathââ¬â¢s memory. The two poems prove conflicting ideas through the tempo of the first paragraphs and Hughes ongoing use of caesura. Although Plath interprets the event to be a ââ¬Å"great runâ⬠and ââ¬Å"high as the roofsâ⬠conflicting this idea Hughes describes it as dangerous and Plath having ââ¬Å"lost (her) stirrups. The text ââ¬Å"Eternal Sunshine of the Spotless Mindâ⬠proves memory to be a selective sense; the character Joel displays merely a memory of selective moments, objects and feelings of his past relationship with Clementine. The key motifs are birthday presents and certain outings. The fallibility of memory can lead the distortion of connections between memory and reality. The author intends to create a particular emotional response to the text that is represented through a connection between the audience and their perspective of the text. The connection between the perspectives in ââ¬Å"Eternal Sunshine of the Spotless Mindâ⬠show the author is being balanced and unbiased. The perspectives of both the character is shown equally to the audience, forcing and internal response in each individual. In ââ¬Å"Fulbright Scholarsâ⬠Hughes repetitively uses ââ¬Å"youâ⬠to simultaneously speak to Plath as well as the audience, to create a more intimate connection with the text. This continues into his next poem ââ¬Å"Samâ⬠alongside alliteration and assonance in the line ââ¬Å"horribly hard, swift riverâ⬠increasing the intensity for the audience. In the final stanza Hughes personifies Sam as himself, and positions the audience as Plath. In the line ââ¬Å"you strangled meâ⬠he uses accusatory language to gain an emotional response and connection from his audience, which relates back to the publics perceptions of him during this time. It is clear that all authors create their texts to gain a reflection the audience towards the text. Each text is a representation of the authorââ¬â¢s perspective response to their memory, creating an emotional connection to their audience, which provokes an internal response. The connections made are used to intensify a reaction within each individual.
Saturday, October 26, 2019
Hackers Today :: Essays Papers
Hackers Today Over the last twenty years, a technological revolution has occurred as computers are now an essential element of today's society. Large computers are used to track reservations for the airline industry, process billions of dollars for banks, manufacture products for industry, and conduct major transactions for businesses because more and more people now have computers at home and at the office. People commit computer crimes because of society's declining ethical standards more than any economic need. According to experts, gender is the only bias. The profile of today's non-professional thieves crosses all races, age groups and economic strata. Computer criminals tend to be relatively honest and in a position of trust: few would do anything to harm another human, and most do not consider their crime to be truly dishonest. Most are males: women have tended to be accomplices, though of late they are becoming more aggressive. Computer Criminals tend to usually be "between the ages of 14- 30, they are usually bright, eager, highly motivated, adventuresome, and willing to accept technical challenges."(Shannon, 16:2) "It is tempting to liken computer criminals to other criminals, ascribing characteristics somehow different from 'normal' individuals, but that is not the case."(Sharp, 18:3) It is believed that the computer criminal "often marches to the same drum as the potential victim but follows and unanticipated path."(Blumenthal, 1:2) There is no actual profile of a computer criminal because they range from young teens to elders, from black to white, from short to tall. Definitions of computer crime has changed over the years as the users and misusers of computers have expanded into new areas. "When computers were first introduced into businesses, computer crime was defined simply as a form of white-collar crime committed inside a computer system."(2600:Summer 92,p.13) Some new terms have been added to the computer criminal vocabulary. "Trojan Horse is a hidden code put into a computer program. Logic bombs are implanted so that the perpetrator doesn't have to physically present himself or herself." (Phrack 12,p.43) Another form of a hidden code is "salamis." It came from the big salami loaves sold in delis years ago. Often people would take small portions of bites that were taken out of them and then they were secretly returned to the shelves in the hopes that no one would notice them missing.(Phrack 12,p.44) Congress has been reacting to the outbreak of computer crimes.
Thursday, October 24, 2019
Summer of My German Soldier :: Essays Papers
Summer of My German Soldier The novel, Summer of My German Soldier, written by Bette Greene is about a young Jewish girl, Patty, who befriends a Nazi soldier. She confides in him because of the lack of parental love in her life. The Nazi soldier shows Patty that she is a person of value and is important in the world. This is something that her parents have never told her. Michael Tuchner, director of the cinematic version of, Summer of My German Soldier, does a fair job of portraying the action in the novel, however some key scenes are not shown thus taking away important facts that the viewer would see. There are many scenes in the movie that are not in the book. There are a few key additions, one of which is, Anton asking Patty for accessories. The accessories are a toothbrush, toothpaste, razor, comb, etc. When he is asking for these things he seems really demanding. In the book he does not appear to be this way. Another addition is, towards the end of the movie, Pattyââ¬â¢s father comes into her room and tells her that she is a bad person and is dead to him. He also tells her that she has always hated him, and in a way this compares to the scene in the book where he goes into the garage and yells ââ¬Å"nobody loves me, nobody loves me!â⬠. The scene in which Ruth walks through the town with Patty is another key addition. It shows that she is confident in herself and that she is not afraid of the prejudice of the white people. This scene closely compares to the scene in the book where Ruth orders the white guards in the juvenile detention center to fetch Pattyâ⠬â¢s Christmas bag. There are many scenes in the book that do not take place in the movie. The most apparent deletion is of the scenes dealing with the grandparents. In the movie Pattyââ¬â¢s grandparents are never mentioned; in the book they play a major role in her life. In the beginning of the book, before Patty meets Anton, her grandparents are all she has. Unlike her parents, they treat her like a person. Also at the end of the book they keep her before she has to go to the juvenile detention center.
Wednesday, October 23, 2019
Blindness by Jose Saramago
If an attempt is made to describe Jose Saramagoââ¬â¢s Blindness in a single sentence, it will be justified to say that the novel is a product of the authorââ¬â¢s extraordinary vision. Primarily an allegorical piece of fiction, Blindness is a literary masterpiece in terms of its subtle delineation of ironic humor and bleakness of existence. Numerous thematic constructs are interwoven into the plot of the novel. Post-modern literary techniques such as long sentences without punctuation marks, indefinite usage of proper nouns and so on are incorporated for illustrating the themes adequately.The haunting prose style is beautifully supplemented by the sparse imageries of manââ¬â¢s worst appetites and weaknesses. The socialistic approach to the novel is as significant as the internal representations. This essay is going to elaborate on the arguments that connect the thematic devices of the novel. It might be noted that there are quite a few themes to be taken within the periphery of discussion in order to substantiate the authorââ¬â¢s argumentative claims and subclaims.As the novel nears its end, one of the characters remark during the process of getting his vision back: ââ¬Å"I don't think we did go blind, I think we are blind, Blind but seeing, Blind people who can see, but do not see. â⬠(Saramago 292) This statement highlights the political and philosophical essence of the novel. The story of Blindness centers round a nightmarish vision of disorientation and loss. A city the identity of which is kept undisclosed is struck by a sudden epidemic, leaving its inmates blind. Nobody is able to find any apparent reason behind such a contagion.The general tenor of panic and disorientation triggers a social breakdown. The camps set up by the civic administrative body to cater to the disaster are ill-governed. A sense of hopelessness and loss of direction runs through each individualââ¬â¢s psyche. In the wake of the epidemic, the initial government res ponse involves setting up of large quarantine areas to accommodate the infected people. However, the filthy and overcrowded centers turn out to be grossly unhygienic to stand any chance of the inmates recovering. Soon, living conditions deteriorate rapidly, spreading a wave of nervousness and anxiety outside.As far as the thematic significance is concerned, this anxiety plays a steering role through the length of the novel. Anxiety over inadequacy of food and medicine, anxiety over future and last but not the least, anxiety over administrative laxity collectively bring out the central theme of Blindness ââ¬â of social system failure and mankindââ¬â¢s inane incapacity to care for strangers. As Bob Corbett points out, ââ¬Å"How are we to imagine a world in which some central part of our meaning system suddenly disappears? â⬠(Corbett 1997) A summoning of horror in the uncertain context of the twentieth century is what Saramago pens down in the novel.The disappearance of t his central part can be understood right from the opening chapter when a man stuck in the traffic light loses his vision. The oxymoronic element present here is quite significant. The fact that this man loses his sight while standing in the traffic light and not in any dark corridor sums up the bitter irony of situation. The following course of events, all in a swift motion, underlines humankindââ¬â¢s perpetual struggle to cope with unexpected changes in habitual infrastructures. As soon as the first man goes blind, a series of misfortunes befalls the city. The person who takes him to an eye doctor also goes blind.The entire plot is unfolded around the doctor and his wife, who eventually suffers the same fate as of others. The mysterious blindness doesnââ¬â¢t spare anybody in the unnamed city. A horrifying vision of the apocalypse, like in William Goldingââ¬â¢s Lord of the Flies, can be felt at every turn of a city that has gone berserk. The governmentââ¬â¢s disorganized attempt to restore sanity into proceedings falls short of its intended result as a gang of opportunists assume control of the chaotic surroundings. The political turmoil is juxtaposed against the psychological despair to address the theme of unexpected changes in known order.In fact Saramago is well known for coalescing myth, fiction and history in his works in order to depict abrupt changes. The setting of Blindness allows the readers to embark on a timeless voyage back to the mysterious historical times associated with myths and legends. Modern technological advancements have been satirized by the author to undermine their inadequacy in dealing with unexpected blows: ââ¬Å"[There] must be some mechanical fault, a loose accelerator pedal, a gear lever that has struck,â⬠but none of these technical problems are the cause of the car's prolonged halt.The driver inside starts shouting and ââ¬Å"to judge by the movement of his mouth he appears to be repeating some words, not one word but three, as turns out to be the case when someone finally manages to open the door, I am blind. â⬠(Saramago 1) A group of central characters in Blindness, united as a family in the wake of such an unprecedented disaster, play a crucial role. The characterization is done in a deliberate manner to serve the purpose of the plot. In other words, the storyline doesnââ¬â¢t discriminate between characters that are common in one aspect ââ¬â they are all blind.The doctor, his wife, the girl with dark glasses, the boy with the squint, the man with the black eye patch and the dog of tears are representative of the small world of struggling survivors in the face of seemingly incurable adversity. It is worth spotting that none of these characters has been given any proper name by the novelist. Blindness doesnââ¬â¢t need any nomenclature ââ¬â this is perhaps the argument Saramago wants to advocate. They are called according to their position in the society and relation with each other.The literary device deployed by Saramago to support his argument behind characterization involves continuous sentence structuring. Some of the sentences run half the length of a page, without any hyphenation or semi colon. Only commas and periods are used sparsely: ââ¬Å"The amber light came on. Two of the cars ahead accelerated before the red light appeared. At the pedestrian crossing the sign of a green man lit up. The people who were waiting began to cross the road, stepping on the white stripes painted on the black surface of the asphalt, there is nothing less like a zebra, however, that is what it is called.The motorists kept an impatient foot on the clutch, leaving their cars at the ready, advancing, retreating like nervous horses that can sense the whiplash about to be inflicted. The pedestrians have just finished crossing but the sign allowing the cars to go will be delayed for some seconds, some people maintain that this delay, while apparently so insignif icant, has only to be multiplied by the thousands of traffic lights thatâ⬠¦ â⬠. (Saramago 3) Such writing style may immediately recall the stream-of-consciousness technique which is prolifically used in James Joyceââ¬â¢s masterpiece Ulysses.Separated by almost a century with regards to dates of publication, there isnââ¬â¢t much difference in the treatment of themes between these two novels. This technique is normally adopted to do away with editing of thought processes as the writer writes. In Blindness, the apparent mystery of the situation and the resultant uncertainties require a technique or writing style that can conform to the inner vacuum the characters feel while expressing their thoughts. At the same time, the narrative must also synchronize with the dialogues. Hence, quotation is non-existent in Blindness.Speeches merge onto one another in a continual maze of words. As a reader, one feels how difficult it is to broaden the viewpoint of observation. As if, a blind spot is generated in the actual reading of the novel, which puts interpretive constraints. As some critics have argued, Saramagoââ¬â¢s profuse adaptation of allegorical means may have been inspired by his intent to emphasize more on human factors than on fatalistic elements. Although there are a few distinctive references to the contemporary technological aspects, Blindness doesnââ¬â¢t specify any timeframe.Readers are not given any clear perception about the time the novel portrays. Thus, Blindness reflects a universality of creation, a ubiquitous presence upon human realms of perception. However, there are a few speculations made regarding the probable cultural setting of the novel. Tracing the nature of language spoken by the characters and their food habits, it has been argued that the country shown in the novel is likely to be Saramagoââ¬â¢s homeland Portugal. The theme of timelessness is relevant in more than just one aspect of this discussion.As is the case wit h Albert Camusââ¬â¢ The Plague, Blindness too is a novel which symbolically represents a widespread affliction, regardless of space or time. The predicament of humanity in the midst of social, political and ethical degeneration is not a theme that should not be kept bound under a constrained timeframe or spatial margin. Moreover, the way a group of people start fishing in troubled waters, exploiting the helpless condition of others, goes beyond the borderline of time and geographic barriers, echoing the universality of manââ¬â¢s futile but stubborn attempt to cope with disasters.Apart from Albert Camusââ¬â¢ The Plague and Jose Saramagoââ¬â¢s Blindness, John Wyndhamââ¬â¢s The Day of the Triffids and P. D. Jamesââ¬â¢ The Children of Men also showcase characteristics of human nature as they emerge in a crisis situation marked by rapid and uncontrollable epidemics. Blindness, however, is distinguishable from other novels in one crucial aspect. It reflects the deep-seat ed humanity of those who are compelled to depend on each other for the sake of survival.This yearning for survival doesnââ¬â¢t seem to fit the category of existentialism or other post-modern philosophical doctrines since it is hampered by the loss of external senses of vision. So the vision must come from within. The message of hope in a situation which is least congenial to breeding of hope is conveyed through the character of doctorââ¬â¢s wife. She is the only person who manages to regain sight. When she and other group members flee from the asylum, the plot takes a turn toward the recreation of a world which is not robbed of all hopes.Since she has vision, she can at least guide her companions in finding food and shelter. The argument Saramagoââ¬â¢s seeks to put forth through this episode involves that of restoration of orderliness in a world which is blind. It might be noted, however, that only physical blindness is not the construct of the proposed argument. The spirit ual blindness associated with chaos, opportunism and moral degradation is the fundamental base upon which the plot is built. As mentioned earlier, when the central system starts malfunctioning, human beings tend to cling onto each other in search of a helping hand.A sudden change in the known world makes for a total loss of faith and triggers disorientation in the society. Doctorââ¬â¢s wife metaphorically symbolizes the dependable constant around which other variables revolve. But what does Jose Saramago want to tell in Blindness, especially through the thematic inclusion of ââ¬Ëone person who is not blindââ¬â¢? Since the novel is widely accepted as an allegory, the question remains: It is an allegory of what? Finding a plausible answer to the question stated above is not an easy task in that multiple layers of interpretation can be made to it.The main problem with an allegorical novel such as Blindness is that it accords too much freedom to the reader. It grants the room f or too many interpretations. On one hand, the allegorical literary device helps reveal the basic needs of a social system ââ¬â the need for food, shelter and most importantly, for fraternity. Hence the thematic concept of allegory refers to the interdependency of individuals within a system which threatens to go astray. But despite this interpretation, Blindness can be approached from a different viewpoint as well.The novel can be studied as an allegory of human damnation. The novelist criticizes the so-called established norms of civilization in a staunch manner. He observes how human beings, when pitted against a failing central system of order, can indulge in brutal acts of cruelty among one another. This is manifested in the events occurring at quarantine centers where no law and order exists whatsoever. Even the military takes an indifferent stance and refuses to supply basic medication. Consequently, a simple infection assumes a deathly proportion, destroying the lives of many.Timely food deliveries are hindered due to the illegal intervention of a gang of opportunists who unleash lethal torture on the hapless inmates. Thus the allegory of the novel can be explicated from a twofold perspective ââ¬â firstly, it is a literary device which serves the purpose of underlying the fundamental social requirements for a smooth functioning, and secondly, it brings out the condemnable elements of a society devoid of any order or discipline. Corbett argues that the theory of allegory can also be done away with.Blindness can be seen as a masterful piece of authorââ¬â¢s logical reasoning of a world which lacks imaginative sensibility. This point of view insists on interpreting the major themes of the novel from a matter-of-fact perspective. There is nothing beyond what is literally apparent. The logical qualities prompt the readers to investigate into a cityââ¬â¢s condition when everyone except a single lady goes blind all on a sudden. The only sighted pe rson acts as a vehicle of hope and good fortune in a time when survival seems impossible.According to Corbett, this methodology of explanation is also applicable to two other novels of Saramago, The Gospel According to Jesus Christ and The Stone Raft. (Corbett 1997) The larger social picture painted by Blindness is of worth consideration. The collective physical loss of vision is used by the author as a metaphor for both ââ¬Ëpersonal misfortune and social catastropheââ¬â¢. (Snedeker 1997) The succession of events initiating from a single, odd instance of just one man getting blind while waiting at a traffic signal underscores the broader social context.As the entire population goes blind, the social system starts to crumble under pressure. Public health officials working under the aegis of the government panic and mayhem descend over the city. The disintegration of faith and reliability is apparent as soldiers guarding the asylum premises threaten to kill anyone who attempts t o flee. The disease of blindness is used metaphorically as a limitation from a personal context extending to collective domain. Finding themselves in a society which no longer functions as it should do, the blind men reach the breaking limits of despair and trauma.Due to lack of food and other essential commodities for a healthy survival, the general ways of living begin deteriorating rapidly. Taking a cue out of the broader social significance of blindness, one can critically observe that the metaphor is not restrained to any uni-dimensional mode of interpretation. If approached logically, the sudden onset of the epidemic is nothing but an unfortunate incident that befalls a city, making the lives of its dwellers difficult. So this explanation follows a ââ¬Ërealââ¬â¢ course.But the symbolic implication becomes apparent when one takes into account the cultural impact of vision impairment that the author leaves ambiguous, arguably in an advertent manner. Hence, the epidemic, no matter whichever way the readers look at it, leads more to the notion of being a realistic literary device. An unnamed city, completely disintegrated by the sudden attack of an epidemic, struggles to combat not just the disease, but also the virtues that make up of human society.A small group of people, led by a woman, find themselves in the squalid and terrifying spectacle of people scrounging for food and shelter. Such visions present a bleak and dreary setting of a post-modern novel. The abrupt ending, nearly as shocking as the beginning itself, goes to show how Saramago eluded the enticement of telling more than what is already indicated. Hence, the construct of allegory, even though it can be discarded from a ââ¬Ërealisticââ¬â¢ approach, comes back once again. As the blind community of the city gets their vision back, everything seems to fall in pace for the city.The veil of clouds is lifted over from a diseased and desperate existence of the city as if by some mysteriou s power, much to the relief of its inmates. It is apparent that the thematic constructs of change, human coping, the inevitability of disease and the undying spirit to overcome every adversity are extremely well manifested by the literary techniques adapted by the novelist in Blindness. This is particularly true in case of the profuse usage of long, unbroken sentences without too many punctuation marks.Moreover, the speeches without quotation too act as a potent literary device to represent the internal crisis of the characters. Again, the use of descriptive appellation in naming of characters is self-explanatory of its intended purpose. It establishes the interconnection between various characters who are mutually dependent on each other for the sake of surviving in a blind world that does not distinguish between masses. So it can be concluded that characterization, setting and plot work as a cohesive unit in perfect synchronization with the thematic aspects.It is virtually impossi ble to single out any particular argumentative theme if one attempts to focus on the novel in its entirety, especially if that focus takes into consideration the key literary devices. Works cited Saramago, Jose. Blindness: a novel. London: Harvill Press, 1997. Corbett, Bob. ââ¬Å"BLINDNESS. â⬠1997. 10 March 2009 Snedeker, George. ââ¬Å"BLINDNESS. â⬠1997. 10 March 2009
Tuesday, October 22, 2019
Transition to Full-time Freelance Writing Just Took a Bit of Math
Transition to Full-time Freelance Writing Just Took a Bit of Math Like many people who want to write for a living, I was much better in English class than math. But, once I crafted a loosely-defined mathematical equation about freelance writing income, I easily transitioned into full-timeà freelance writing. I began writing professionally as a side gig in 1990, working other non-writing jobs for steady income. I then began working in writing-related jobs while growing my freelance business- and then became fully self-employed when I created the following mix of income streams: à à à Creating content for clients of digital marketing agencies à à à Creating content for clients where I directly contract with them à à à Writing books à à à Teaching/consulting/mentoring/speaking gigs à à à Editing content à à à Doing creative writing projects Here are benefits of each. Digital Marketing Agency Content Digital marketing agencies are companies that offer blogging and copywriting services, among other offerings such as SEO, to clients. Often, they get more writing work than they can handle, so they outsource it. To find agencies in my state, Iââ¬â¢d type this in Google: digital marketing agencies Ohio. Iââ¬â¢d then click on the Google Map that shows up and contact numerous agencies that show up. Iââ¬â¢ve also found opportunities at FreelanceWritingGigs.com. With this type of work, Iââ¬â¢m given monthly writing assignments from the agencies, often for several of their clients, and then I get paid directly from the agency: one monthly invoice, one monthly check per agency for me. Directly Contracting with Clients Typically, I can get a higher rate when I work directly with a client, which is a plus. So, you can make more money Writing books At any given time, I like to have a book in some stage of development. To date, Iââ¬â¢ve traditionally published 14 (and Iââ¬â¢m considering self-publishing a book of poetry). The advantage of including book publishing in the mix is that you can gain fairly significant publicity for your work through being an author, plus this is one of the best ways to get speaking gigs- plus there is the income from book sales. I wouldnââ¬â¢t want to rely solely on royalties and book signings, but it plays a role. I find that books appealing to niche audiences to be the most in demand. These include Hidden History of Lorain County, About Boomerangs: Americaââ¬â¢s Silent Sport and Joe Jackson: A
Monday, October 21, 2019
Defining and Implementing Interfaces in Delphi
Defining and Implementing Interfaces in Delphi In Delphi, interface has two distinct meanings. In OOP jargon, you can think of an interface as a class with no implementation. In Delphi unit definition interface section is used to declare any public sections of code that appear in a unit. This article will explain interfaces from an OOP perspective. If you are up to creating a rock-solid application in a way that your code is maintainable, reusable, and flexible the OOP nature of Delphi will help you drive the first 70% of your route. Defining interfaces and implementing them will help with the remaining 30%. Abstract Classes You can think of an interface as an abstract class with all the implementation stripped out and everything that is not public removed. An abstract class in Delphi is a class that cannot be instantiated- you cannot create an object from a class marked as abstract. Lets take a look at an example interface declaration: typeIConfigChanged interface[{0D57624C-CDDE-458B-A36C-436AE465B477}]procedure ApplyConfigChange;end; The IConfigChanged is an interface. An interface is defined much like a class, the keyword interface is used instead of class. The Guid value that follows the interface keyword is used by the compiler to uniquely identify the interface. To generate a new GUID value, just press CtrlShiftG in the Delphi IDE. Each interface you define needs a unique Guid value. An interface in OOP defines an abstraction- a template for an actual class that will implement the interface- that will implement the methods defined by the interface. An interface does not actually do anything, it only has a signature for interaction with other (implementing) classes or interfaces. The implementation of the methods (functions, procedures, and property Get/Set methods) is done in the class that implements the interface. In the interface definition, there are no scope sections (private, public, published, etc.) everything is public. An interface type can define functions, procedures (that will eventually become methods of the class that implements the interface) and properties. When an interface defines a property it must define the get/set methods - interfaces cannot define variables. As with classes, an interface can inherit from other interfaces. typeIConfigChangedMore interface(IConfigChanged)procedure ApplyMoreChanges;end; Programming Most Delphi developers when they think of interfaces they think of COM programming. However, interfaces are just an OOP feature of the language- they are not tied to COM specifically. Interfaces can be defined and implemented in a Delphi application without touching COM at all. Implementation To implement an interface you need to add the name of the interface to the class statement, as in: typeTMainForm class(TForm, IConfigChanged)publicprocedure ApplyConfigChange;end; In the above code a Delphi form named MainForm implements the IConfigChanged interface. Warning: when a class implements an interface it must implement all its methods and properties. If you fail/forget to implement a method (for example: ApplyConfigChange) a compile time error E2003 Undeclared identifier: ApplyConfigChange will occur.Warning: if you try to specify the interface without the GUID value you will receive: E2086 Type IConfigChanged is not yet completely defined. Example Consider an MDI application where several forms can be displayed to the user at one time. When the user changes the application configuration, most forms need to update their display- show/hide some buttons, update label captions, etc. You would need a simple way to notify all open forms that a change in the application configuration has happened. The ideal tool for the job was an interface. Every form that needs to be updated when the configuration changes will implement IConfigChanged. Since the configuration screen in displayed modally, when it closes the next code ensures all IConfigChanged implementing forms are notified and ApplyConfigChange is called: procedure DoConfigChange() ;varcnt : integer;icc : IConfigChanged;beginfor cnt : 0 to -1 Screen.FormCount dobeginif Supports(Screen.Forms[cnt], IConfigChanged, icc) thenicc.ApplyConfigChange;end;end; The Supports function (defined in Sysutils.pas) indicates whether a given object or interface supports a specified interface. The code iterates through the Screen.Forms collection (of the TScreen object)- all the forms currently displayed in the application. If a form Screen.Forms[cnt] supports the interface, Supports returns the interface for the last parameter parameter and returns true. Therefore, if the form implements the IConfigChanged, the icc variable can be used to call the methods of the interface as implemented by the form. Note, of course, that every form can have its own different implementation of the ApplyConfigChange procedure. Ancestors Any class you define in Delphi needs to have an ancestor. TObject is the ultimate ancestor of all objects and components. The above idea applies to interfaces also, the IInterface is the base class for all interfaces. IInterface defines 3 methods: QueryInterface, _AddRef and _Release. This means that our IConfigChanged also has those 3 methods, but we have not implemented those. This is because TForm inherits from TComponent that already implements the IInterface for you! When you want to implement an interface in a class that inherits from TObject, make sure your class inherits from TInterfacedObject instead. Since TInterfacedObject is a TObject implementing IInterface. For example: TMyClass class(TInterfacedObject, IConfigChanged)procedure ApplyConfigChange;end; In conclusion, IUnknown IInterface. IUnknown is for COM.
Subscribe to:
Posts (Atom)