Thursday, November 28, 2019

Short story by John Updike free essay sample

As people age, maturity and wisdom is gained through every experiences. From the time a child turns eighteen and becomes an adult, they are required to deal with the realities of the real world and learn how to handle its responsibilities. In John Updikes short story, Aamp;P, the narrator Sammy, a young boy of nineteen, makes a major change to his life fueled by nothing more than his immaturity and desire to do what he wants and because of that, he has do deal with the consequences. From the beginning of the story, it is clear that Sammy does not likes his job, nor is he fond of the customers and people he is surrounded by each day. To Sammy, they are nothing more than sheep going through the motions of life. I bet you could set off dynamite in an Aamp;P and the people would by and large keep reaching and checking oatmeal off their lists and muttering ‘Let me see, there was a third thing, began with A, asparagus, no, ah, yes, applesauce! or whatever it was they do mutter. We will write a custom essay sample on Short story by John Updike or any similar topic specifically for you Do Not WasteYour Time HIRE WRITER Only 13.90 / page (Updike 616). He view them negatively; to him they are boring and useless, living dull and unimportant lives and its obvious through Sammy that he doesnt want to ever become one of them, nor does he want to be around them. It is also clear through Sammy and everyone else who works at the Aamp;P that the job is boring, simply by the way they react to the arrival of the three unique teenage girls. Granted the only people working in the store are men, they still find the arrival of the girls to be extremely exciting and an event worth waiting for. The stores pretty empty, it being Thursday afternoon, so there was nothing much to do except lean on the register and wait for the girls to show up again(Updike 617). They take pleasure in the girls visits, and when they do arrive, Sammy makes it clear that he is not the only one captivated by them; McMahon at the meat counter is seen sizing up their joints (Updike 617) and Stokesie expresses a constant fixation with the girls as well, which he shares with Sammy the first time they come into the store. Also, in contrast to the sheep, he views the girls as though they are superior to everyone else in the store. They stand out amongst the customers, walking against the usual traffic(Updike 616), and not blending in, and Sammy almost idolizes that; he sees the way their simplistic yet unique appearance and actions distinguish them and he seems to really appreciate it. About the Queenie he says, I mean, it was more than pretty(Updike 619). And in reference to the other customers reaction Sammy says, †¦ there was no doubt, this jiggled them. A few houseslaves in pin curlers even looked around after pushing their carts past to make sure what they had seen was correct (Updike 616). Although Sammy isnt really voicing a positive or negative stance on the issue here, he makes an effort to point out how unique and almost distracting they are to everyone in the store. It also becomes clear that Sammy wants to know more about them through his fixation with them, which may add to the reason he wanted to quit; he hoped to captivate their attention and gain their praise. When Sammy sees the store manager, Lengel, embarrass the girls, not only does Sammy see the ability to look heroic in front of his three mystery girls, like an unsuspected hero (Updike 618), he also sees the ability to get out of his boring nine to five job. Partially, because he is only nineteen and very immature in the way he views the world, he may have thought the girls would find him heroic. However, as soon as he quits his job he realizes that they didnt seem to care; it was just a silly childish fantasy he hoped would come true. After leaving the store, Sammy says I look around for my girls, but theyre gone of course (Updike 619) as though he knew from the beginning that although in his mind it may have seemed like something worth praise, they really wouldnt care at all. However, Sammy’s quit is more for himself that the girls in the long run, after all if it was really for the girls he wouldve ceased quitting the moment the girls rushed out and flicker[ed] across the lot to their car (Updike 618). However he proceeds even with the negative aspects attached. â€Å" ‘Sammy, you dont want to do this to your Mom and Dad,’ he tells me. Its true, I dont. But it seems to me that once you begin a gesture its fatal not to go through with it. (Updike 618). Even though he knows this will be difficult for his family he continues to quit. On one hand, he is being mature by not backing down and changing his mind once he realizes the girls are gone, because he is right in that when you make decisions you must follow through with them. However the decision to quit was stupid, drastic, and an immature one to begin with. The story ends with Sammy looking back at Lengel in the store, saying His face was dark gray and his back stiff, as if hed just had an injection of iron, and my stomach kind of fell as I felt how hard the world was going to be to me hereafter (Updike 619). The dark and unappealing imagery he uses to portray Lengel and the store hints that he still views it negatively and he is most likely content with his decision to leave. However he ends realizing how much damage this silly impulse can and will cause him. This may be a lesson for Sammy in which he learns from and gains some maturity; he learns that there are consequences and positives to every situation and it is his responsibility to deal with them as they arise. In this particular situation, although he is happy to not be in his job, he now has to deal with telling his parents he quit and telling them why he made such a rash decision. Then he must deal with their feelings on the matter and what actions they take; they may not care, or its possible, as the story and Lengel suggest, that they will be upset and he will have to deal with that. Regardless, he will definitely learn from this. Overall, the story of Aamp;P summarizes for Sammy, as Bruce Kellner states, â€Å"On first reading or last, the words on the pages of ‘Aamp;P’ do not change, but Sammy changes. Sammy takes a step towards maturity and towards learning; he learns about reality and how for every step you take there are consequences, and if you want something you have to deal with the issues that come with it.

Monday, November 25, 2019

The ways Steinbeck creates dislike of and sympathy for Curley’s wife in his novel “Of Mice and Men” Essay Essay Example

The ways Steinbeck creates dislike of and sympathy for Curley’s wife in his novel â€Å"Of Mice and Men† Essay Essay Example The ways Steinbeck creates dislike of and sympathy for Curley’s wife in his novel â€Å"Of Mice and Men† Essay Paper The ways Steinbeck creates dislike of and sympathy for Curley’s wife in his novel â€Å"Of Mice and Men† Essay Paper ‘Of Mice and Men’ is a short novel by John Steinbeck. which is set in 1930s America. At this clip in American History they were enduring from a difficult striking economic depression. This book is set on a spread in Soledad. California. Throughout this novelette. Steinbeck addresses cardinal subject. for illustration favoritism. solitariness and the American Dream. Curley’s married woman is a complex character. She is the lone adult female on the spread. Curley’s married woman is used as a secret plan device by Steinbeck to research subjects like favoritism and attitudes toward adult females in the 1930s. Although. she is thought of as a ‘tart’ at the beginning. throughout the novel we develop our sentiment of Curley’s married woman. Steinbeck introduces us to Curley’s married woman through the sentiment of Candy. His positions and sentiments are misogynous. when he calls her a ‘tart’ . doing the reader prejudiced tow ards Curley’s married woman before we even meet her. Candy references that she ‘got the eye’ explicating that she is being coquettish and immoral as we are told that she is flirt with other work forces directly after we are told that she married to Curley. Candy makes us expect her entryway ‘Wait boulder clay you see Curley’s wife’ . Steinbeck uses this technique to do the reader want to read on and happen out more. When Curley’s married woman is foremost introduced we gain a colored feeling from her description ‘She wore a cotton house frock and ruddy mules’ reenforcing our original sentiment of a ‘tart’ . The vesture she wears is besides incongruous on a on the job spread and expensive during the economic depression demoing that she wants to affect. She is high care as ‘She had full roughed lips and wide-spaced eyes. to a great extent made up’ screening to the reader that she has to look perfect before go forthing the house and needs to look reasonably to the work forces. Steinbeck to the full describes the actions of Curley’s married woman. This shows physical awareness the work forces have towards her. ‘She put her custodies behind her back and leaned ag ainst the door frame so that her organic structure was thrown forward’ Steinbeck’s description of Curley’s married woman actions is non merely to depict the men’s physical consciousness of the character but to demo the despair of Curley’s married woman and other adult females in the 1930s. Throughout the address between George and Curley’s married woman. she doesn’t sustain oculus contact. ‘She looked at her fingernails’ this implies that she is seeking to chat up with her eyes. This usage of organic structure linguistic communication is in a coquettish and provocative manner. When Curley’s married woman enters ‘The rectangle of sunlight in the door manner is cut off’ Steinbeck uses this barricading visible radiation to propose that Curley’s married woman is an obstruction. to Lennie’s and George’s ‘light’ which is mentioning to their dream. This means we do non like Curley’s married woman as she poses a menace. The fact that George calls Curley’s married woman ‘tramp’ makes us instantly dislike her as we trust George’s sentiments. As her visual aspect is described foremost this suggests that others judge her on the manner she looks and her visual aspect i s regarded as her most of import characteristic. This thought is developed through Curley’s wife’s gender which is apparent in her obvious flirtation when she moves so that ‘her organic structure was thrown forward’ and speaks ‘playfully’ . Through Curley’s married woman actions. Steinbeck suggests that her gender is the lone signifier of power she has and is the lone manner she knows to derive attending. The first entryway for Curley’s married woman lives up to and corroborate the feelings created by Candy. Although ab initio we believe what Candy said. as the novelette progresses more of her character is revealed. When Slim finds Curley’s married woman. at the terminal of her first entryway ‘She was all of a sudden apprehensive’ which could propose that Curley’s married woman is scared of Curley and suggests that he is aggressive towards her associating to the subject of force. The reader is discerning of Curley’s married woman and the harm she may do. The work forces of the spread think she is ‘jailbait’ . and they are scared that they may lose their occupation. The reader agrees with what the work forces on the spread think as she may take to the ruin of George and Lennie. At this point in the novel. Curley’s married woman is seen with disdain and there is small sympathy for her. The repeat of the coloring material ‘red’ suggests danger and passion. supported by similarities between her and the miss in Weed. Not merel y is Curley’s married woman described as a streetwalker. but besides as endangering. When she enters the barn where Crook and Candy are. they are both afraid and ‘were scowling down off from her eyes’ this bar of oculus contact could be seen that she is exercising power over the work forces. She exercises her power by endangering to hang Crooks. ‘I could acquire you stung up on a tree so easy’ . this links to the subject of force as she acts nastily and cruelly which reflects the societal hierarchy of the clip. She goes from being bullied by the work forces to strong-arming the ‘weak ones’ . Curley’s married woman gets frustrated by their unresponsive behavior towards her. She is used to foreground the racialist society and to demo the position of black people at that clip in America. The reader possibly discerning toward Curley’s Wife. yet it is obvious that she may be lonely. Curley’s married woman has excessively much clip on her custodies ‘Her face was to a great extent made up’ this is shown by how much do up she is ever have oning. None of the work forces on the spread will speak to her as they are scared that they may be tempted ‘Maybe you better travel along to your ain house now’ The ground they don’t talk to her is that they are scared that they could acquire into problem with Curley. Steinbeck does this to demo how stray adult females were in the 1930s. Even though Curley’s married woman has merely been married two hebdomad we get told that Curley is at the ‘Cat house’ and isn’t w ith his new married woman with would propose that he has no clip for her and a deficiency of love. When she is in the barn with Crooks. Candy and Lennie ‘talkin’ to a clump of bindle stiffs –a nigger an’ a dum-dum and a icky ol’ sheep- an ‘liken’ it because they ain’t cipher else’ this show she will travel to great lengths to speak to person and will even speak to the ‘weak ones’ when cipher is about. When she is entirely in the barn with Lennie. she expresses her solitariness ‘I get atrocious lonely’ she does this to derive understanding from the reader. although she is stating the one individual who won’t understand what she is stating. Curley’s married woman is the lone adult females on the spread and this could associate to her solitariness. This links to one of Steinbeck subject. solitariness and how Curley’s married woman being female agencies that she is invariably segregated and isolated because of her gender. As the reader reads on we start to gain that Curley’s married woman isn’t what we expected. We start to see that she is more of a victim. Her name Curley’s married woman suggest that she is a ownership of Curley’s ‘Curley’s is even cockier’n of all time since he got married’ this suggest that she is something that Curley can demo off to the other work forces on the spread. Besides Slims Canis familiaris and Aunt Clara all have name but Curley’s married woman doesn’t which even more suggests that she is object in society. She is besides married to Curley who isn’t spends his Saturday eventide in the ‘Cat houseà ¢â‚¬â„¢ which does propose that Curley has no love for his new married woman. Curley’s married woman has an unconditioned apprehension of society. She understands her places and knows what she can and can’t do. ‘nobody’d listen to you’ they are all incapacitated as society is rough and what Curley’s married woman says applies to all of them in the barn. Curley’s married woman is merely coquettish and average to work forces because it is the lone manner she knows who to speak to work forces. Although she is portrayed as a victim and as lonely. we still see as manipulative when she speaking to Lennie nears the terminal of the novel. As Curley’s married woman describes to utilize the ground why she is married to Curley it come apparent that she married Curley to acquire off from her Mother and so she wants to utilize Lennie to acquire off from Curley. Steinbeck has used this to do the reader feel that Curley’s married woman is naif and has hapless opinion. The reader can state that Curley’s married woman has thought through what she wants Lennie to make and she thinks that she can utilize him to her advantage. In this subdivision she is being manipulative ‘you can interrupt his other han’’ She can see that Lennie can stand up to Curley even if it is merely to a basic degree. Although you could reason that Curleys’s married woman was described as a ‘girl’ which suggests artlessness and naivete. She is in some ways like Lennie in that she doesn’t think before the action. The apparels she wear can be seen as to be dressing up to look like graven images and is concealing under her make-up. If this is all true so Curley’s married woman suffered a horrid decease which she doesn’t merit the decease she was given. Throughout the novelette. Steinbeck looks at the thought of the ‘American Dream’ . like George and Lennie. Curley’s married woman has a dream and that was to be in the ‘pitchers’ . Her dream is to be actress but is it truly the thought of being an actress or the ground was that she wanted the money so she would be able to purchase the apparels but non to make the work. She met a adult male who said she could be in the films but neer got missive. she blames her female parent for neer acquiring missive but it is possible that the work forces neer really was from the films and if he was at the films so why was he a unknown riverbank dance. Besides the fact that we are told about the rhinal voice ‘Her voice had a nasal. brittle quality’ show to the reader that she is deluded and that she will neer do her dream but has them to maintain traveling in what is a suffering life. Work force are prejudice towards Curley’s married woman on the manner in which she looks. Steinbeck’s initial portraiture of Curley’s married woman shows her to be a average and seductive enchantress. and alive she is the connexion to Eve. she brings evil in to m en’s lives. She is besides blamed for many of the action of Curley’s and she is thought of merely by how she looks non by how she is. The concluding scene for Curley’s married woman is her decease. When she is acquiring murdered. the understanding lies with Lennie. Steinbeck did this to make more sympathy from the reader for Curley’s married woman. This is what Steinbeck has been taking up throughout the book and to the ruin of the relationship between George and Lennie. HEr beauty is shown though when she is dead ‘she was really reasonably and simple’ . this creates more sympathy from the reader by demoing how simple and pretty she was. Besides the to associate with the description the word ‘girl’ is used. to make artlessness. The reader perceptual experience of her has changed ‘Ache for attending all gone’ Steinbeck wrote this to do the readers realise the abnormalcy of what has been done and how we can merely see her artlessness. simpleness and beauty. The concluding description of Curley’s married woman shows us the miss beneath what the universe she lived in made her. Although we see this different side to Curley’s married woman. Candy still has his misogynous sentiment of Curley’s married woman. ‘Ever’body knowed you’d muss things up’ this show that Candy blames Curley’s married woman for what has happened even though Lennie was the 1 who murdered Curley’s married woman. Candy’s deficiency of sympathy towards her creates more sympathy from the reader. Steinbeck does this to demo that Women got blamed for what the work forces did even if they had nil to make with it. In decision. Curley’s married woman was in fact the victim of her society and although some of her action were in some ways indecent for a freshly married adult females it. in some manner this shows how much she was really a victim. Besides she was occupation copying the action and dressing like the histrions which she idolised. I personal believe that Curley’s married woman was non all to fault for her action s and hence she did non merit the decease that she got as it was harsh a brutal.

Thursday, November 21, 2019

Psychotherapy Essay Example | Topics and Well Written Essays - 1500 words

Psychotherapy - Essay Example Using this technique requires the therapist or counsellor to have unconditional positive regard, genuineness and empathic understanding. (Wikipedia "Psychotherapy" 3) Carl Rogers in the 1950's was the proponent of this system and he became very controversial because he used the term "counselling" to connote a softer and more positive and humanistic approach to psychotherapy. The technique used in PCT is non-directive, where the therapists use effective listening skills in facilitating the face-to-face communication. "Cognitive Behavioural Therapy (CBT) is a psychotherapy based on modifying everyday thoughts and behaviours, with the aim of positively influencing emotions." (Wikipedia: "Cognitive" 1) According to Wikipedia, CBT is based on the thoughts, the emotions and the behaviour, which are, how we think, how we feel and therefore how we act as a result of the interactions of how we think and feel. In other words, how we think influence how we feel and behave on a certain situation. The problem is created because of some irrational or unrealistic thinking that gives rise to a negative a feeling and leads to a problematic behaviour. An example of which, is a child who thinks his mother does not love him because he is "dumb" therefore keeps getting his mother's attention by being excessively naughty. CBT is applied to situations like this, sometimes ranging from ordinary problems to abnormal psychological conditions and are treated through series of face-to-face sessions with a trained psychoth erapist.Other Similar Approaches Person-Centred Therapy, considered "a founding work in the humanistic schools of psychotherapies" (Wikipedia "Client-Centred" 1), is a positive approach to psychotherapy that uses the concept "here and now" and self awareness. Carl Rogers patterned his works from the existentialism theories of Abraham Maslow and the hierarchy of human needs. Other approaches that were developed from this concept but branched out to more specific systems were the Feminist therapy, Somatic Psychology, Expressive therapy, Brief therapy, Systems therapy, all of which use the modern approach of valuing the client's will to heal himself. (Wikipedia "Psychotherapy" 3) The Cognitive Behavioural Therapy does not stand on its own. In other words, it is a general term for a classification of techniques, an "umbrella term for many different therapies that share common elements" (Wikipedia "Cognitive" 2). Albert Ellis in the 1950's was the first to develop the combination of cognitive and behavioural approaches, the Rational Emotive Behavioural Therapy (REBT) and Aaron T. Beck developed the Cognitive Therapy. Richard Heimberg based his Cognitive Behavioural Group Therapy (CBGT) on CBT applying group therapy which made patients feel better when they knew that

Wednesday, November 20, 2019

Cultural Change and Transformation Throughout Military History Essay

Cultural Change and Transformation Throughout Military History - Essay Example The role of cultural understanding as a factor influencing military operations is examined in this paper. Reference is made to two particular military operations: the American Civil War and the Operation Iraqi...... The economic development between the North and the South was not equal; the North, based on the principle of freedom of all people no matter their race, was able to absorb the immigrants and support a rapid industrial development. On the contrary, the South where immigrants were needed for supporting the farming activities of the local population, different rules – in terms of equality among people – existed. In South, farmers were asking for more slaves in order to respond to the needs of the continuously increased production. For example, the production of cotton in South was increased to ‘2.3 billion pounds in 1860, i.e. at about 230 percent during the 1850s’ (Macrohistory and World Report 2011, online article). Under the above terms, the number of slaves in USA was continuously increased, reaching in 1860 the 3,953,760 – from 1.2 million in 1800s (Macrohistory and World Report 2011, online article). Almost all slaves were living in South, a fact that led to the clear cultural differentiation between North and South. In South, the political and military authorities respected the principles of equality and freedom; in South, slavery was the rule for black and people in minorities. In terms of the characteristics of the society also, North was different from South; in North, middleclass people represented the high percentage of the population, a fact that led to the development of different ethics and culture compared to the South where the distinction between the classes was significant; two main social classes could be identified in South: the farmers and the poor people (Macrohistory and World Report 2011, online article). On the other hand, in North people did not have many chances for entertainment. They

Monday, November 18, 2019

Forensic Accountants as Fraud Buggers Case Study

Forensic Accountants as Fraud Buggers - Case Study Example A forensic accountant must be equipped with investigative skills. These skills are important in gathering, evaluating and analyzing accounting data and audited information from business organizations (Ramaswamy, 2010). It is through these skills that a forensic accountant will be able to determine possible discrepancies and loopholes within audited accounting data and information (Carnes & Gierlasinski, 2001; DiGabriele, 2008). The effectiveness of a forensic accountant is measured by the ability to apply investigative skills to interpret accounting information and financial evidence to back misappropriation of resources within a business organization or company (Fleming, Pearson, Riley & Richard, 2008). Fraudsters within companies and business organizations often devise methods of embezzlement or fraud that are hard to detect. It is in this regard that a forensic accountant must have effective investigative skills to detect accounting problems which would not be determined by ordina ry auditing and accounting approaches (Bawaneh, 2011). Investigative skills also allow a forensic accountant to adhere to the ethics and regulations that govern investigations of criminal cases. Computing or technical skills are required for an effective forensic accountant. This is due to the fact that contemporary companies and business environments have adopted and implemented information technology methods in accounting and finance (Fleming, Pearson, Riley & Richard, 2008).... This is due to the fact that contemporary companies and business environments have adopted and implemented information technology methods in accounting and finance (Fleming, Pearson, Riley & Richard, 2008). Through computing skills, a forensic accountant is able to retrieve, analyzed and report financial evidence in electronic formats (Topping, 2008). More importantly a forensic accountant must be able to apply computer software and applications and other computer assisted tools to detect fraud or embezzlement of resources within companies (Fleming, Pearson, Riley & Richard, 2008). Modern business organizations are characterized by what is referred to as white collar crime in which technology is used to defraud or embezzle resources and hide evidence. It is in this sense that computing skills of a forensic accountant become significant (Carnes & Gierlasinski, 2001). Litigation skills area also required for effective forensic accountants. These skills are significant in the role of a forensic accountant as an arbitrator or mediator in legal accounting problems. These skills are also important because they enable forensic accountants to be effective experts and credible consultants who could be used by companies to detect and report fraud or embezzlement of resources. Through litigation skills, forensic accountants are able to evaluate damages and losses and find ways of resolving disputes among the disputants (Topping, 2008). Other important skills of a forensic accountant include analytical and forensic skills. Effective forensic accountants must have analytical skills that will empower them to determine the importance of the gathered financial evidence in reporting fraud (DiGabriele, 2008). Through analytical skills, forensic accountants analyze and professionally

Friday, November 15, 2019

Efficient Streaming Protocol for Transmitting Video Files

Efficient Streaming Protocol for Transmitting Video Files Chapter one Introduction Chapter One Introduction 1.1 Motivation Information in computer science might be represented in multiple forms. In the beginning the first used forms of information were text and images, after the huge increase of using computers and internet another type of information appears, it is the hyper text which is the combination of text and images. Hyper text is text pages that connected by hyper links (hyper link provide non linear access to the text pages no need to view all the pages sequentially to access a specific page) and then new forms are used like Audio and motion pictures or videos, nowadays a combination of these representations as well as the traditional forms (text and images) is called multimedia [LIZ04]. Multimediais a data type may contain multiple types of information like: audio, video, and animation in addition to traditional media (text, graphics, drawings and images), Digital multimedia is a data type represented by series of bits and manipulated by some multimedia applications and stored on some storage units like on CD or DVD or in multimedia servers. Digital multimedia can be interactive (non linear access) that can be manipulated with computer programs (create, edit, transfer), or non interactive (linear access) where the viewer is unable to control the multimedia like the presentation of movie in the cinema [LIZ04]. Hypermedia is a collection of many types of information like text, images even videos in one website or more that are connected together by some hyper links that provide non linear access to the media like encyclopedia which user can jump from article to the other or jump to the next mark in DVD. The figure 1.1 below shows the structure of Hypermedia. Figure 1.1 Hypermedia Multimedia applications are a computer based programs that are designed to manipulate multimedia data with different sources like text, graphics, audio and video [NIE07]. Multimedia applications can be found in many areas such as: Education, nowadays computer based training applications that designed to simulate the scientific experiments by creating the reactions environment and show the hypothetical results that should be produced from the row materials that will react in the reaction environment, these applications are safer for students from some experiments in real world as well they use some visual effects to explain some phenomenon like physical, chemical and geographic learning applications. Advertising, multimedia applications can be found in advertising and journalism like the advertising of products and places like restaurants and companies, in journalism nowadays electronic copies of magazines and journals. Entertainment, in this field multimedia is used to design video games and visual effects of games and movies, interactive multimedia is used heavily in video games that the user participates alone or with others on the same computer or over the internet not just sit and watch. Industrial sector, multimedia is used as a way to help present information to shareholders, superiors and coworkers. Multimedia is also helpful for providing employee training, advertising and selling products all over the world via virtually unlimited web-based technology. Mathematical  and  scientific research, multimedia is mainly used for modeling and simulation. For example, a  scientist  can look at a  molecular model  of a particular substance and manipulate it to arrive at a new substance. Representative research can be found in journals such as the  Journal of Multimedia, in engineering multimedia applications now used to design buildings and machines before implementing them in real world [LIZ04]. Since multimedia represents some motion captured and stored on some remote place there must be some kind of delivery mechanism to transfer multimedia files from its source (producer) to the destination (consumer) [LIZ04]. Multimedia delivery can be divided into two categories offline and online delivery, offline delivery means transferring multimedia, without using internet, by using removable storage medium like CD-ROM to the hard disk on one station, multimedia was spread widely after the increase using of CD’s DVD’s and now Blue ray which are large storage media can hold the large size of multimedia files, online delivery (also called Streaming) uses the internet for transferring the multimedia from the producer which is usually a server with bulky storage to the consumer which is the client who can be any terminal mobile phone, personal computer or television and takes into consideration the statues of the network the client and server are connected to. Online delivery transmits video files for events happened at the same time like video conferences, football games or video calls; or already processed and stored videos like video clips and movie trailers, online delivery multimedia and websites should be written in an efficient way to transmit or deliver the multimedia files and they are able to be read by the client, also there must be enough resources for the network and the client (which are available bandwidth, network throughput, congestion, and for the client the available buffer and client’s device speed, etc..) in order to transmit the multimedia file efficiently and the client has a successful experience [NIE07][LIZ04]. The adaptive streaming is the process of transmitting videos from the server to the client over internet in an efficient way depending on the network and client’s statues; to deliver videos faster and fewer pauses different qualities are saved to the same video and the server switches between these qualities according to the network and client’s statues. In this thesis, a proposed protocol for streaming videos in adaptive way is introduced; the protocol has two sides the server or the sending parity which is responsible of transmitting the video files to the client in an adaptive way and the receiving party known as the client who receives the videos and displays them on his screen, adaptive means taking into consideration the statues of network like the available bandwidth in order to transmit the video file to the client smoothly, the processing of the video files is done on line, in other words the video frames are processed during the transmission according to the available bandwidth measured at the moment, dislike the used technologies nowadays which they save more than one copy of the video file with different bitrates and transmit the proper bitrate version of the video to the client according to the available bandwidth. Literature Review In this section reviews to some related work for this thesis about the dynamic video streaming over the internet â€Å"A Buffer-Driven Approach to Adaptively Stream Stored Video over Internet†, by Dejian Ye [YED02], In dynamic video streaming technique many parameters can affect the streaming operation of video from a server to client one of these parameters is the buffer size of the sending and receiving parts, authors focused on the server and client buffer size and according to their statues server decide the quality of transmitted video, the buffer size and amount of available buffer size in the sender and receiver sides decide the quality of the transmitted video from the server to the client. â€Å"ENet Dynamic QoS Controller for Video Streaming Application†, by Qingyang Wang [WAN10], the popularity of video on demand and streaming over the internet increased and the limitations between the server and the client that may appear during streaming like supporting data type or bandwidth or computer speed and throughput and how to maintain a good QOS the authors design Enet which is a tool added to the server. Enet is a simple Fuzzy System used to switch between multiple bit rate versions of video, it picks the most appropriate bit rate to the client’s properties, this method takes a large storage space since it stores multiple versions of video with different bit rate for each video copy. â€Å"Adaptation Algorithm for Adaptive Streaming over HTTP†, by Konstantin Miller [MIL12]. Internet videos (live or on demand) take a large amount of internet traffic, in this paper authors build an algorithm for the client side which tries to improve the delivery of video to the client by making client selects the appropriate bit rate depending on the client and network conditions like bandwidth available buffer and network throughput. They integrated the algorithm with a prototype implementation of a streaming client based on the MPEG DASH (Dynamic Adaptive Streaming over HTTP) standard which divide the video file into segments and each segment is saved in a number of different bit rates and client take the responsibility of selecting the most appropriate bit rate depending on the clients and network state. The design of the algorithm download the video file as segments one after the other and it uses one buffer that results client cannot receive the segment N unless it com plete receiving segment N-1. â€Å"Confused, Timid, and Unstable: Picking a Video Streaming Rate is Hard†, by Te-Yuan Huang [HUN12], Hulu, Vudu and Net Flux are three video streaming service providers that provide videos with high quality to the users with some fee. Videos provided by these services are divided to chunks with multiple bit rates for each chunk (when bit rate is slow chunk size is small and high bit rate the chunk size is big) and server switches between these chunks with different bit rates according to the available bandwidth. The problem is when requesting a video and start watching it and after some time another video requested a downward spiral effect appears which is bit rate goes down to the lowest level despite there is enough bandwidth for higher bit rate. â€Å"USING SCALABLE VIDEO CODING FOR DYNAMIC ADAPTIVE TREAMING OVER HTTP IN MOBILE ENVIRONMENTS†, by Christopher Muller [MUL12], DASH is the approach that is used to transfer video over the internet in dynamic way to the user, it’s done by saving multiple copies of the video each copy with different bit rate and the server starts switching between these copies or bitrates according to client’s specifications. In this paper authors uses scalable video coding (SVC) instead of advanced video coding (AVC or H264) which provide more flexibility to the system with the available bandwidth and the buffer size, But if the client switches from one bit rate to the other (higher or lower) and he already requested a chunk before, this chunk will be canceled. The server will save multiple copies of video as a group of chunks. SVC experiment and code depend on windows so it’s not available to other operating systems. â€Å"OPTIMIZING HTTP-BASED ADAPTIVE VIDEO STREAMING FOR WIRELESS ACCESS NETWORKS† by Xiaoling Qiu [Qui 13], Authors in this paper propose new approach for dynamic streaming videos over HTTP; their approach measure the available bandwidth of the network and client’s CPU speed and old measurements into account to select the best video quality using an optimization algorithm. This method contains optimization algorithm to select quality of segments to be sent to the client, but this method suffer from high computation rate. Aim of thesis The aim of this thesis is to build an efficient streaming protocol for transmitting video files from the server to the client with accepted waiting time at the client side. The work in the thesis focuses on video files transmission to provide the accepted delivery time, videos usually are large size files this needs compression method to be used to reduce the video file size when the available bandwidth is below the required level for transmitting videos without compression, also this thesis takes into consideration the quality of the delivered video, the quality of the received video is maintained since the used compression technique in the proposed protocol is lossless technique so there is no loss in the transmitted video file quality at the client side. Another important side in video streaming technique is the buffer management; the proposed streaming protocol uses a variable size for the buffers at the server side and the client side. This approach guarantees the efficient delivery of the required video file without take more than the required memory space. The limitations that affect the proposed protocol execution are: The execution on the internet is hard because it needs to reserve domain in a server over the internet, so the proposed protocol implemented on Local Area Network. The bandwidth values are not real and they were generated randomly to simulate the change on the available bandwidth in real world but the limit of bandwidth was selected depending on used LAN defined bandwidth. Outlines of the thesis This thesis is organized in five chapters as follows: Chapter one: â€Å"Introduction† This chapter begins with explanation of the meaning of multimedia and its applications in real world and also contains a list of reviews works related to this work. Chapter two: â€Å"Theoretical Background† This chapter contains description of the main concepts of video file, video streaming, compression and quality. Chapter Three: â€Å"Video Streaming Protocol† This chapter contains the proposed streaming protocol between the server and the client that satisfy the aim of this thesis of delivering video from the server to the client with little or no pauses and with acceptable quality. Chapter Four: â€Å"Experimental Results† This chapter contains the results of the video streaming protocol introduced in the thesis. Chapter Five â€Å"Conclusion and Future work† This chapter contains the conclusions and the future work for the thesis. 1

Wednesday, November 13, 2019

Ancient Corinth Essay -- Greece Ancient History Historical Papers

Ancient Corinth ?Unlike most other cities in the ancient world, Corinth was a city destined for prosperity and longevity no matter who occupied it or how it was governed.? It is as old, or older, than any other ancient Greek city, with origins that lie only in myths and legends that are more than two thousand years old.? Little is known of who established the city or when it was actually founded.? What we do know is Corinth was a very important city and it became a major player in ancient Greek and Roman history.? ?The main reason for the existence of Corinth is the same reason for its greatness.? The ancient civilizations of the Mediterranean world produced this city out of geographical and commercial necessity.? The southern most part of Greece is very nearly an island, attached to the main landmass by only a four mile wide isthmus, with the Corinthian Gulf to the west, and the Saronic Gulf to the east.? Corinth sits along this narrow isthmus, making itself one of the most important trading and commercial centers of the ancient world.? Corinth was positioned perfectly between the two greatest political city-states in ancient Greece, Athens to the north and Sparta to the south; because, any traffic from these two cities, as well as anywhere else to the north and south, had no choice but to pass through Corinth.? The east and west traffic, on the other hand, had a choice to pass or not pass through Corinth, though limited as that choice was (Barclay 1).? The only way to sail east to west in th e Mediterranean was all the way around the southern tip of Greece, known as Cape Malea.? Cape Malea was considered the most dangerous Cape in all the Mediterranean due to its high seas, contrary winds, and difficult navigation (Engel... ...hey knew they could not keep such a gold mine lying in ruins.? So Corinth did not die, instead it was a cultural hubbub for over a thousand years. Bibliography Barclay, William. The Letter to the Corinthians, Revised Edition. The Westminster Press,? Philadelphia.? 1975 Engels, David. Roman Corinth, An Alternative Model for the Classical City. University? of Chicago,? Chicago, 1990. Papahatzis, Nicos. Ancient Corinth, The Museums of Corinth, Isthmia and Sicyon.? Ekdotike Athenon S.A.? Athens, 1981. Papakyriakou/Anagnostou, Ellen. ?History of Corinth?.?www.sikyon.com/Korinth/history_eg.html Parada, Carlos. ?The Seven Sages of Greece, Between Legend and History.? http://homepage.mac.com/cparada/GML/SevenSages.html#Periander Strabo. ?Geography, 8.6.20-23? (Late 1st Century BCE-Early 1st Century)?www.abu.nb.ca/courses/Pauline/images/StraboCor.htm

Monday, November 11, 2019

Practice Math

1. The nth term of an arithmetic sequence is given by un = 5 + 2n. (a) Write down the common difference. (1) (b) (i) (ii) Given that the nth term of this sequence is 115, find the value of n. For this value of n, find the sum of the sequence. (5) (Total 6 marks) 2. A sum of $ 5000 is invested at a compound interest rate of 6. 3 % per annum. (a) Write down an expression for the value of the investment after n full years. (1) (b) What will be the value of the investment at the end of five years? (1) (c) The value of the investment will exceed $ 10 000 after n full years. i) (ii) Write down an inequality to represent this information. Calculate the minimum value of n. (4) (Total 6 marks) 3. (a) Consider the geometric sequence ? 3, 6, ? 12, 24, †¦. (i) (ii) Write down the common ratio. Find the 15th term. (3) Consider the sequence x ? 3, x +1, 2x + 8, †¦. IB Questionbank Maths SL 1 (b) When x = 5, the sequence is geometric. (i) (ii) Write down the first three terms. Find the co mmon ratio. (2) (c) Find the other value of x for which the sequence is geometric. (4) (d) For this value of x, find (i) (ii) the common ratio; the sum of the infinite sequence. (3) (Total 12 marks) . Clara organizes cans in triangular piles, where each row has one less can than the row below. For example, the pile of 15 cans shown has 5 cans in the bottom row and 4 cans in the row above it. (a) A pile has 20 cans in the bottom row. Show that the pile contains 210 cans. (4) (b) There are 3240 cans in a pile. How many cans are in the bottom row? (4) IB Questionbank Maths SL 2 (c) (i) There are S cans and they are organized in a triangular pile with n cans in the bottom row. Show that n2 + n ? 2S = 0. Clara has 2100 cans. Explain why she cannot organize them in a triangular pile. 6) (Total 14 marks) (ii) 5. Ashley and Billie are swimmers training for a competition. (a) Ashley trains for 12 hours in the first week. She decides to increase the amount of time she spends training by 2 hou rs each week. Find the total number of hours she spends training during the first 15 weeks. (3) (b) Billie also trains for 12 hours in the first week. She decides to train for 10% longer each week than the previous week. (i) (ii) Show that in the third week she trains for 14. 52 hours. Find the total number of hours she spends training during the first 15 weeks. (4) (c)In which week will the time Billie spends training first exceed 50 hours? (4) (Total 11 marks) IB Questionbank Maths SL 3 6. The diagram shows a square ABCD of side 4 cm. The midpoints P, Q, R, S of the sides are joined to form a second square. A Q B P R D (a) (i) (ii) Show that PQ = 2 2 cm. Find the area of PQRS. S C (3) The midpoints W, X, Y, Z of the sides of PQRS are now joined to form a third square as shown. A W Q X B P Y S R Z D C (b) (i) (ii) Write down the area of the third square, WXYZ. Show that the areas of ABCD, PQRS, and WXYZ form a geometric sequence. Find the common ratio of this sequence. 3) IB Questi onbank Maths SL 4 The process of forming smaller and smaller squares (by joining the midpoints) is continued indefinitely. (c) (i) (ii) Find the area of the 11th square. Calculate the sum of the areas of all the squares. (4) (Total 10 marks) 7. Let f(x) = log3 (a) x + log3 16 – log3 4, for x > 0. 2 Show that f(x) = log3 2x. (2) (b) Find the value of f(0. 5) and of f(4. 5). (3) The function f can also be written in the form f(x) = (c) (i) Write down the value of a and of b. ln ax . ln b (ii) Hence on graph paper, sketch the graph of f, for –5 ? x ? 5, –5 ? y ? , using a scale of 1 cm to 1 unit on each axis. (iii) Write down the equation of the asymptote. (6) (d) Write down the value of f–1(0). (1) IB Questionbank Maths SL 5 The point A lies on the graph of f. At A, x = 4. 5. (e) On your diagram, sketch the graph of f–1, noting clearly the image of point A. (4) (Total 16 marks) 8. Let f(x) = Aekx + 3. Part of the graph of f is shown below. The y-inte rcept is at (0, 13). (a) Show that A =10. (2) (b) Given that f(15) = 3. 49 (correct to 3 significant figures), find the value of k. (3) (c) (i) (ii) (iii) Using your value of k, find f? (x).Hence, explain why f is a decreasing function. Write down the equation of the horizontal asymptote of the graph f. (5) IB Questionbank Maths SL 6 Let g(x) = –x2 + 12x – 24. (d) Find the area enclosed by the graphs of f and g. (6) (Total 16 marks) 9. Consider the function f(x) = px3 + qx2 + rx. Part of the graph of f is shown below. The graph passes through the origin O and the points A(–2, –8), B(1, –2) and C(2, 0). (a) Find three linear equations in p, q and r. (4) (b) Hence find the value of p, of q and of r. (3) (Total 7 marks) IB Questionbank Maths SL 7 10. Let f (x) = 4 tan2 x – 4 sin x, ? a) ? ? ? x? . 3 3 On the grid below, sketch the graph of y = f (x). (3) (b) Solve the equation f (x) = 1. (3) (Total 6 marks) IB Questionbank Maths SL 8 11. A city is concerned about pollution, and decides to look at the number of people using taxis. At the end of the year 2000, there were 280 taxis in the city. After n years the number of taxis, T, in the city is given by T = 280 ? 1. 12n. (a) (i) (ii) Find the number of taxis in the city at the end of 2005. Find the year in which the number of taxis is double the number of taxis there were at the end of 2000. (6) (b)At the end of 2000 there were 25 600 people in the city who used taxis. After n years the number of people, P, in the city who used taxis is given by P= (i) (ii) 2 560000 . 10 ? 90e – 0. 1n Find the value of P at the end of 2005, giving your answer to the nearest whole number. After seven complete years, will the value of P be double its value at the end of 2000? Justify your answer. (6) (c) Let R be the ratio of the number of people using taxis in the city to the number of taxis. The city will reduce the number of taxis if R ? 70. (i) (ii) Find the value of R at the end of 2000.After how many complete years will the city first reduce the number of taxis? (5) (Total 17 marks) IB Questionbank Maths SL 9 12. The function f is defined by f(x) = 3 9 ? x2 , for –3 < x < 3. (a) On the grid below, sketch the graph of f. (2) (b) Write down the equation of each vertical asymptote. (2) (c) Write down the range of the function f. (2) (Total 6 marks) IB Questionbank Maths SL 10 13. Let f (x) = p ? 3x , where p, q? x ? q2 2 + . Part of the graph of f, including the asymptotes, is shown below. (a) The equations of the asymptotes are x =1, x = ? , y = 2. Write down the value of (i) (ii) p; q. (2) (b) Let R be the region bounded by the graph of f, the x-axis, and the y-axis. (i) (ii) Find the negative x-intercept of f. Hence find the volume obtained when R is revolved through 360? about the x-axis. (7) (c) (i) Show that f ? (x) = 3 x 2 ? 1 ?x ? 2 ?1 ? 2 ?. (8) (ii) Hence, show that there are no maximum or minimum points on the graph of f. IB Questionbank Mat hs SL 11 (d) Let g (x) = f ? (x). Let A be the area of the region enclosed by the graph of g and the x-axis, between x = 0 and x = a, where a ? . Given that A = 2, find the value of a. (7) (Total 24 marks) 14. Two weeks after its birth, an animal weighed 13 kg. At 10 weeks this animal weighed 53 kg. The increase in weight each week is constant. (a) Show that the relation between y, the weight in kg, and x, the time in weeks, can be written as y = 5x + 3 (2) (b) (c) (d) Write down the weight of the animal at birth. (1) Write down the weekly increase in weight of the animal. (1) Calculate how many weeks it will take for the animal to reach 98 kg. (2) (Total 6 marks) IB Questionbank Maths SL 12

Friday, November 8, 2019

The eNotes Blog How College Is Like That Juicy Hamburger You Just Dont Want toEnd

How College Is Like That Juicy Hamburger You Just Dont Want toEnd Just come with us on this one intern offers more advice on how to savor college and prep for the real world, which in foodie-terms can only be likened to that salad bar at the Souplantationa bottomless pit of just meh. So, now that weve livened your spirits Picture this. You’re at a restaurant, and it’s around 3 or 4 o’clock. You woke up late and didn’t have time to grab any breakfast, and you had class for a couple straight hours without a break. Essentially, you’ve gone all day without a single bite of food, and MAN you’re hungry. So hungry, in fact, that the moment the waiter brings you whatever it is you’ve ordered (probably something with french fries), you praise him for his good deed, nearly yank it from his hands, and devour the entire meal before you even realize it’s happening. The next time you look at your plate, you realize it’s just you and a couple crumbs left. You aren’t even sure what you just ate. Now, I didn’t just use this example because this is my life on a near regular basis†¦ I used it because it’s really applicable! Watch me go, I promise, this is totally going to resonate. That hamburger and french fries you just savagely took down in 2 minutes flat- that’s college (Oh my GOODNESS, what is that you say?). Chances are, you (you near graduate, you) feel like college â€Å"whoosh†ed past you in 2 minutes flat, or something close to that. You’re looking back at all those fragments of memories and experiences, and probably freaking out a little bit. Okay, maybe a lot-a-bit. I know I’ve spent the past couple nights rehearsing lines like these: â€Å"where’d all the time go?† and â€Å"I can’t believe it† and maybe some â€Å"†¦Ã¢â‚¬  (that’s just some silent wall-staring). Fret no more, fellow sorry souls. We’re all in this together. We’re going to make it through. We’re going to savor all the best things about college while we still can. For those of you who aren’t as close to the end of the plank as us, pay heed to this list of top 10 things that are awesome about college (and maybe try to chew a little slower). When someone asks you what you’re doing with your life, you are allowed to answer â€Å"I’m a student,† and just like that, the â€Å"I now have to tell a stranger I have no idea what I’m doing with my life and I’m unemployed† conversational crisis is averted. Seriously, just like that. Enjoy this. Even if you have to awkwardly linger around people until they ask you that question, just do it. You essentially live in a weird village full of likeminded, crazy 18-22 year olds, and you’re friends with a ton of them- this is something that could only be crafted by a spirit above. Seriously†¦you live surrounded by your friends. Surrounded. This will likely never happen again in your life. Ever. Go hang out with your neighbors (and by neighbors I mean those that live: next door, across the street, down the street, and anywhere from 1-10 blocks away from you). This weird village you live in has its own set of moral codes and ethics. Close to 50% of the things you do in the little microcosm of a world that is your college town will never be accepted outside of that bubble. Revel in it. On the same vein, once you graduate, you will no longer be able to recount events of the past night or week and shrug it off with a smirk and the words, â€Å"college, man.† Self explanatory. The opportunities your university provides for you are endless. Clubs, events, speakers, concerts, special lectures, counselors, employment- the list goes on and on. You should participate as much as you can and take advantage of it all. Don’t be lazy, you’ll miss out on a lot of experiences you won’t be able to get anywhere else. You can cook like you’re a survivor on the series Lost, and no one will judge you. Pre-packaged foods, a microwave†¦who needs a stove or forks or knives? I mean, even if you wanted to have a dinner party, Trader Joes has some frozen meals that serve at least four people. You’re all set! Once you leave college, people actually may start expecting you to use fresh ingredients and things like spices (not the kind that comes inside your top ramen package- mmm, MSG). Eat as many microwavable chicken nuggets and taquitos as you can, while you still can. You get to learn the things you want to learn about. I know everyone complains about school because of all the work and studying and blah, blah, blah. But we all know, deep down, we like it at least a little bit. The fact that we get to fill our brains with new information on a daily basis, and that that information may lead us in one direction or other, building our interests and leading us to new ones†¦that’s just awesome. You know it, I know it. We just don’t like to really admit it all the time. College students are stubborn. You can wear sweatpants whenever you want because your day job isn’t really a job at all. Your job is to sit in a lecture and try to stay awake while learning things. Nowhere in that description are the words â€Å"business casual.† Pajamas are only pajamas if you’re in bed and sleeping- otherwise, they’re just clothes. Think about that. You’re allowed to dabble in things without being talked about as if you’re a lost soul searching for your way. Hey, it’s college. You’re encouraged to try new things, regardless of what they are. Literally, you can do anything and people (essentially by law) have to just nod and say, â€Å"that’s what college is for,† and they’re right. So explore, a lot, and do the weirdest things you can possibly think of because you never know what’ll stick. Soon it’ll be too late and your dreams of being a figure skater will be looked at a little more critically (Not that that should hinder you. You should always chase your dreams, even if people laugh at you, or think you’re nuts. I’m just saying, take advantage of the head start college is intended to give you). You are told, around three times a year, that you must stop doing schoolwork and instead, â€Å"relax.† Winter break, spring break, and summer vacation are some of the best inventions that have ever been created in the history of the world. Fire, the wheel- they pale in comparison. It’s mandated, enforced relaxation. This will most likely never be permitted at any other time in your life. Phew. Good luck. If all else fails, listen to some ‘90s music. Or to Hall and Oates (specifically, â€Å"You Make My Dreams†). You will feel like a kid at Disneyland who’s eating a churro (and we all know that’s the best feeling in the world).

Wednesday, November 6, 2019

How to Use String Substitution in Ruby

How to Use String Substitution in Ruby Splitting a string is only one way to manipulate string data. You can also make substitutions to replace one part of a string with another string. For instance, in an example string (foo,bar,baz) replacing foo with boo in would yield boo,bar,baz. You can do this and many more things using the sub and gsub method in the string class. Many Options for Ruby Substitution The substitution methods come in two varieties. The sub method is the most basic of the two and comes with the least number of surprises. It simply replaces the first instance of the designated pattern with the replacement. Whereas sub only replaces the first instance, the gsub method replaces every instance of the pattern with the replacement. In addition, both sub and gsub have sub! and gsub! counterparts. Remember, methods in Ruby that end in an exclamation point alter the variable in place instead of returning a modified copy. Search and Replace The most basic usage of the substitution methods is to replace one static search string with one static replacement string. In the above example, foo was replaced with boo. This can be done for the first occurrence of foo in the string using the sub method or with all occurrences of foo using the gsub method. #!/usr/bin/env rubya foo,bar,bazb a.sub( foo, boo )puts b $ ./1.rbfoo,bar,bazgsub$ ./1.rbboo,bar,baz Flexible Searching Searching for static strings can only go so far. Eventually, youll run into cases where a subset of strings or strings with optional components will need to be matched. The substitution methods can, of course, match regular expressions instead of static strings. This allows them to be much more flexible and match virtually any text you can dream up. This example is a little more real world. Imagine a set of comma-separated values. These values are fed into a tabulation program over which you have no control (closed source). The program that generates these values is closed source as well, but its outputting some badly-formatted data. Some fields have spaces after the comma and this is causing the tabulator program to break. One possible solution is to write a Ruby program to act as glue, or a filter, between the two programs. This Ruby program will fix any problems in the data formatting so the tabulator can do its job. To do this, its quite simple: replace a comma followed by a number of spaces with just a comma. #!/usr/bin/env rubySTDIN.each do|l|l.gsub!( /, /, , )puts lend gsub$ cat data.txt10, 20, 3012.8, 10.4,11gsub$ cat data.txt | ./2.rb10,20,3012.8,10.4,11 Flexible Replacements Now imagine this situation. In addition to the minor formatting errors, the program that produces the data produces number data in scientific notation. The tabulator program doesnt understand this, so youre going to have to replace it. Obviously, a simple gsub wont do here because the replacement will be different every time the replacement is done. Luckily, the substitution methods can take a block for the substitution arguments. For each time the search string is found, the text that matched the search string (or regex) is passed to this block. The value yielded by the block is used as the substitution string. In this example, a floating point number in scientific notation form (such as 1.232e4) is converted to a normal number with a decimal point. The string is converted to a number with to_f, then the number is formatted using a format string. #!/usr/bin/env rubySTDIN.each do|l|l.gsub!( /-?\d\.\de-?\d/) do|n|%.3f % n.to_fendl.gsub!( /, /, , )puts lend gsub$ cat floatdata.txt2.215e-1, 54, 113.15668e6, 21, 7gsub$ cat floatdata.txt | ./3.rb0.222,54,113156680.000,21,7 Not Familiar With Regular Expressions? Lets take a step back and look at that regular expression. It looks cryptic and complicated, but its very simple. If youre not familiar with regular expressions, they can be quite cryptic. However, once you are familiar with them, theyre straightforward and natural methods of describing text. There are a number of elements, and several of the elements have quantifiers. The primary element here is the \d character class. This will match any digit, the characters 0 through 9. The quantifier is used with the digit character class to signify that one or more of these digits should be matched in a row. You have three groups of digits, two separated by a . and the other separated by the letter e (for exponent). The second element floating around is the minus character, which uses the ? quantifier. This means zero or one of these elements. So, in short, there may or may not be negative signs at the beginning of the number or exponent. The two other elements are the . (period) character and the e character. Combine all this, and you get a regular expression (or set of rules for matching text) that matches numbers in scientific form (such as 12.34e56).

Monday, November 4, 2019

Tillie Olsen's I stand here Ironing By susan Cahill's Essay

Tillie Olsen's I stand here Ironing By susan Cahill's - Essay Example She seems to be worn down by life and does not care about much anymore. I was touched by how the mother in the story is so neglectful of her children. It seems her oldest daughter taught her much about herself, life, and parenting. However, with her knowledge, the mother still does very little to change her life. She thinks that her oldest daughter is basically a lost cause because she is older and tainted by the world. The girl is talented and has much potential but the mother simply looks at her and thinks that it is a shame that her girl will never fully blossom. This is a defeatist attitude and a sad one because the mother is simply too tired to care. The mother seems content with the fact that there is nothing she can do about her situation. It is also sad that the mother finds ways to blame her children when she can. She claims that Emily did not want to be touched and that she was "too much to herself, her life was such that she kept too much in herself" (Olsen 590). In additi on, she sates, "My wisdom came too late . . . she is a child of her age, of depression, of war, of fear" (Olsen 590). Here I see the mother simply giving up because she is tired and all she wants to do is take a nap. This mother has more control and influence that she wants to believe. To turn things around, it might take some hard work.

Saturday, November 2, 2019

Icasualties.Com, Statistics, and Presentation Assignment - 5

Icasualties.Com, Statistics, and Presentation - Assignment Example Specifically, the reporting and graphic presentation of statistics on the website icasualties.com. The website documents casualties in Iraq and Afghanistan since 2003 and 2001 respectively. This analysis will focus only on one aspect of the website, the presentation of statistics relating to Operation Enduring Freedom/Afghanistan. On the left side of the site, a news feed constantly updates on news stories about Operation Enduring Freedom and casualties. The data is presented on the remaining portion of the page. The first set of statistics presented in chart and bar graph format is Coalition Military Fatalities by Year. Both formats clearly depict the rising coalition fatality rate and the fact that 2010 is on track to become the deadliest year in the operation. The accuracy of the figures is incontestable. In this day and age, the U.S. military (as well as those of other nations operating in Afghanistan) cannot hide casualties. As the graph on the following page illustrates (making allowances for this year only being halfway through) the graph presents a minor decline to 2003, and an increasing number of fatalities steadily since. The site then presents charted data of coalition fatalities by year and month. The charts indicate the ebb and flow of fighting throughout the year. Fighting increases when the weather improves and the poppy harvest ends in May. It declines again in the fall as the weather deteriorates. Additionally, a pie chart identifies the nationality of coalition fatalities by country and provides links to the name, unit, date of death and cause of death of each individual. The charting of fatalities for all countries is identical and facilitates comparisons between countries. Finally, a map provides data on all coalition fatalities by province and, again, links to the name, unit, date of death and cause of death of each individual. As with the data sorted by nationality the charting of fatalities for all provinces is identical and facilitates comparisons between provinces.  Ã‚