Thursday, March 19, 2020
Yamamoto essays
Yamamoto essays Yamamoto, the man who planned Pearl Harbor increased my knowledge about the people of Japan because it introduced me to their culture, and the life and times in Japan before World War II. In Japan, the family is the basic unit of society. For example, if a Japanese has the unfortunate occurrence of producing only daughters, they will insist that one of their daughters husbands changes his last name to keep their daughter's last name alive. It was, also, not unusual for people to change their last names. Isoroku Tankano was born in 1884. In 1916, he changed his last name to Yamamoto, because the name Yamamoto was an honorable and ancient one in the history of Japan. One such figure was Tatekawa Yamamoto, who fought against the Emperor, and his forces at the Battle of Watkamatsu, during the Bosshin War. Since he was one of the leaders of the rebellion, when he was captured, he was beheaded at Watkamatsu. Since Tatekawa had no sons, Isoroku was also the future of the Yamamoto clan. Not uncommon in Japan was the fact that men got married for the purpose of producing sons to keep the family name alive. This is exactly what Isoroku did. In 1918, he got married to Reiko, who, ironically, was from Watkamatsu. They had 4 children together, 2 sons, and 2 daughters. It was the standard Japanese family, the mother in charge of the household and of raising the children. He never really loved her, because he had many extramarital affairs, and 2 of the women he "loved". The life and times in Japan right before World War 2 are simply explained: The Imperialist Japanese Army, otherwise known as the "young Turks" was steadily gaining power in the government, was assassinating anyone who did not share in their views for a united Asia (Yamamoto received many death threats, because he wanted to avoid war with the U.S.A. or with Great Britain at all costs), and was using propaganda to c...
Monday, March 2, 2020
Intercepting Keyboard Input With Delphi
Intercepting Keyboard Input With Delphi Consider for a moment creation of some fast arcade game. All the graphics are displayed, lets say, in a TPainBox. TPaintBox is unable to receive the input focus - no events are fired when the user presses a key; we cannot intercept cursor keys to move our battleship. Delphi help! Intercept Keyboard Input Most Delphi applications typically handle user input through specific event handlers, those that enable us to capture user keystrokes and process mouse movement. We know that focus is the ability to receive user input through the mouse or keyboard. Only the object that has the focus can receive a keyboard event. Some controls, such as TImage, TPaintBox, TPanel, and TLabel cannot receive focus. The primary purpose of most graphic controls is to display text or graphics. If we want to intercept keyboard input for controls that cannot receive the input focus well have to deal with Windows API, hooks, callbacks and messages. Windows Hooks Technically, a hook function is a callback function that can be inserted in the Windows message system so an application can access the message stream before other processing of the message takes place. Among many types of windows hooks, a keyboard hook is called whenever the application calls the GetMessage() or PeekMessage() function and there is a WM_KEYUP or WM_KEYDOWN keyboard message to process. To create a keyboard hook that intercepts all keyboard input directed to a given thread, we need to call SetWindowsHookEx API function. The routines that receive the keyboard events are application-defined callback functions called hook functions (KeyboardHookProc). Windows calls your hook function for each keystroke message (key up and key down) before the message is placed in the applications message queue. The hook function can process, change or discard keystrokes. Hooks can be local or global. The return value of SetWindowsHookEx is a handle to the hook just installed. Before terminating, an application must call the UnhookWindowsHookEx function to free system resources associated with the hook. Keyboard Hook Example As a demonstration of keyboard hooks, well create a project with graphical control that can receive key presses. TImage is derived from TGraphicControl, it can be used as a drawing surface for our hypothetical battle game. Since TImage is unable to receive keyboard presses through standard keyboard events well create a hook function that intercepts all keyboard input directed to our drawing surface. TImage Processing Keyboard Events Start new Delphi Project and place one Image component on a form. Set Image1.Align property to alClient. Thats it for the visual part, now we have to do some coding. First, well need some global variables: var à à Form1: TForm1; à à KBHook: HHook; {this intercepts keyboard input} à à cx, cy : integer; {track battle ships position} à à {callbacks declaration} à à function KeyboardHookProc(Code: Integer; WordParam: Word; LongParam: LongInt): LongInt; stdcall; implementation ... To install a hook, we call SetWindowsHookEx in the OnCreate event of a form. procedure TForm1.FormCreate(Sender: TObject) ; begin à {Set the keyboard hook so we à can intercept keyboard input} à KBHook:SetWindowsHookEx(WH_KEYBOARD, à à à à à à à à à à à {callback } KeyboardHookProc, à à à à à à à à à à à à à à à à à à à à à à à à à à HInstance, à à à à à à à à à à à à à à à à à à à à à à à à à à GetCurrentThreadId()) ; à {place the battle ship in à the middle of the screen} à cx : Image1.ClientWidth div 2; à cy : Image1.ClientHeight div 2; à Image1.Canvas.PenPos : Point(cx,cy) ; end; To free system resources associated with the hook, we must call the UnhookWindowsHookEx function in the OnDestroy event: procedure TForm1.FormDestroy(Sender: TObject) ; begin à à {unhook the keyboard interception} à à UnHookWindowsHookEx(KBHook) ; end; The most important part of this project is the KeyboardHookProc callback procedure used to process keystrokes. function KeyboardHookProc(Code: Integer; WordParam: Word; LongParam: LongInt) : LongInt; begin à case WordParam of à à vk_Space: {erase battle ships path} à à à begin à à à à with Form1.Image1.Canvas do à à à à begin à à à à à Brush.Color : clWhite; à à à à à Brush.Style : bsSolid; à à à à à Fillrect(Form1.Image1.ClientRect) ; à à à à end; à à à end; à à vk_Right: cx : cx1; à à vk_Left: cx : cx-1; à à vk_Up: cy : cy-1; à à vk_Down: cy : cy1; à end; {case} à If cx 2 then cx : Form1.Image1.ClientWidth-2; à If cx Form1.Image1.ClientWidth -2 then cx : 2; à If cy 2 then cy : Form1.Image1.ClientHeight -2 ; à If cy Form1.Image1.ClientHeight-2 then cy : 2; à with Form1.Image1.Canvas do à begin à à Pen.Color : clRed; à à Brush.Color : clYellow; à à TextOut(0,0,Format(%d, %d,[cx,cy])) ; à à Rectangle(cx-2, cy-2, cx2,cy2) ; à end; à Result:0; {To prevent Windows from passing the keystrokes à to the target window, the Result value must à be a nonzero value.} end; Thats it. We now have the ultimate keyboard processing code. Note just one thing: this code is in no way restricted to be used only with TImage. The KeyboardHookProc function serves as a general KeyPreview KeyProcess mechanism.
Saturday, February 15, 2020
Pro Genetically Modified Foods. Only the pros not the cons Essay
Pro Genetically Modified Foods. Only the pros not the cons - Essay Example These foods benefit farmers as they realize higher yields when they grow them (Carter, Moschini & Sheldon, 2011, p. 33). Therefore, these foods promote the wellbeing of the entire society. Reduced poverty levels, for example, illustrate the importance of genetically modified foods. These foods, also, affect positively on the environment. They safeguard the environment in a number of ways, which makes the earth a better place to live in. consequently, human beings achieve peace of mind as protection of the environment assures them of the protection of future generations. Many governments around the globe advocate for the use of genetically modified foods. The United States, for example, encourages the growth of these foods (Forman, 2010, p. 26). Governments appreciate that the foods alleviate poverty in their respective countries. More to this, they encourage cultivation of these foods due to the economic implications resulting from the foods. The foods, for example, promote economic growth, given the availability of food that can be exported to other countries. The foods also save the various economies amounts that could have been used to import foods. These funds can be channeled to other development projects, thus boosting the standards of living in the nations. Environmental activists also support the use of genetically modified foods. These foods protect their interest of conserving the environment, which makes them support the implementation of these crops in their different regions (Young, 2004, pp. 2-3). Health institutions encourage the use of these foods as well. This follows the health benefits derived from growing the crops. They, for example, utilize minimal application of chemicals on the plants. Consequent to this, farmers and other farm workers experience reduced exposure to harmful chemicals. This reduces the number of health cases related to the use of the chemicals,
Sunday, February 2, 2020
Social issues Essay Example | Topics and Well Written Essays - 2500 words
Social issues - Essay Example If the figure of 200 000 backstreet abortions is used (assuming that it is accurate which highly questionable) and these backstreet abortions are now performed legally, then this will cost the state R200 million a year! Consider also that the abortion increased 16 fold in the USA when it was legalised - from 100 000 to 1,6 million a year.1 Can the Health Department cope with this In terms of the economy, abortion undermines future growth. It is still too early for us to see the effects now, but the disastrous consequences are going to be visable very soon. A recent study shows that abortion is going to be an economic disaster. The report calculates that for every European and American who is aborted, it costs their economy $1 5000 000. In terms of today's (1994) money adjusted to present value, the average American or European spends over $1 177 000 in his lifetime in terms of housing, medicine, clothes, transport and so on. He also pays over $440 000 in taxes in his lifetime. This makes $1 617 000 in total. So this means that the doctor may get $300 for murdering that baby which immediately helps the abortion industry. However, there are other industries that will be adversely affected. The cost to America alone of their aborted babies is well over $41 trillion! These figures are too large for any of us to grasp, but understand that America's entire deficit is $4 trillion, while their abortions will cost 10 times more than even the total debt of America. What will the cost for South Africa be2 2. Backstreet Abortions Increase Will those who perform these abortions have either the equipment or the knowledge to deal with complications that may occur Count the cost in terms of money and human lives that will result from botched legal abortions. Speaking before the 93rd Congress of the US, Senator James Buckley stated: "Data from foreign countries having far longer experience with legalised abortion than we have had in the US, suggest that legalisation has no effect on the criminal abortion rate. In at least three countries, the criminal abortion rate has actually risen since legalisation. Legalised abortion moves the back alley abortionists into the front office where their trade can be practised without fear of criminal prosecution."3 Dr Christopher Tietze, an abortion advocate, concedes: "Although one of the major goals of the liberalisation of abortion laws in Scandinavia was to reduce the incidence of illegal abortion, this was not accomplished. Rather as we know from a variety of sources, both criminal and total abortions increased." [original emphasis]4 Regardless of whether abortions are legal or not, some women will have abortions and some women will die from complications. Certainly all the babies will die. However, legalising abortion greatly increases the number of abortions. In various surveys 40-85% of the women said they would not have aborted their babies if it had been illegal. 5 We must not legalise procedures that kill the innocent just to make the killing process less dangerous. 3. Parallels between Abortion & Slavery Slavery in centuries past and abortions in this century were defended and promoted by the same arguments. Consider the case in the USA: In 1857, in the Dred Scott case, the US Supreme Court decided, by a 7 to 2 majority, that according to the US Constitution, black
Saturday, January 25, 2020
Motivation :: Business, Employee Satisfaction, Pay
Analysis The findings of the questionnaire revealed which motivational factors impacted the workplace. Pay was the most frequent response, with 92% of the responded answering that salary is biggest motivational factor. This is consistent with the findings of the second question when 82% of the respondents strongly agreed that that was a motivational factor in the workplace. Wiley (1997) suggested that financial compensation impels motivation and job performance. Also, according to Maslowââ¬â¢s hierarchy of needs (1943), psychological needs are said to be the first and most important need to be satisfied and in other to satisfy this needs, good or satisfactory wage has to be paid to employees to ensure maximum productivity. The finding of the research on the question 3 show that the 43% of the respondents strongly agreed that promotion motivate them whilst at workplace. (See figure 3). This finding fit on Herzbergââ¬â¢s two factor theory where he referred to intrinsic and extrinsic motivational factors. According to McCormick and Tifflin (1979), rewards can be either intrinsic or extrinsic. Intrinsic rewards stem from rewards that are inherent in the job itself and which the individual enjoys because of successfully completing the task or attaining his goals. While extrinsic rewards are those that are external to the task of the job, such as pay, work condition, fringe benefits, security, promotion, contract of service, the work environment and conditions of work. According to question 4, 37% of the respondents strongly agree with a job title affect their motivation within workplace, where the job title make some staff at Kerry Food higher motivated due to their job title or status. According to Wiley (1997) suggest that by providing a higher status or designations the employee must be motivated. Employees prefer and proud of higher designations. According to question 5, the majority of the Kerry Food employees with 86% of the respondents felt that the change within their shift wasnââ¬â¢t good idea, and this lack of planning has affected the motivation of the employees in a negative way. Without a compressive roadmap or model for guiding the change process, organisational leaders may fall short in implementing their strategies for change Kotter (2007). According to question 6, the majority of the Kerry Food employees with 93% of the respondents said that they were more motivated before the change, the most affected where the participants with childrenââ¬â¢s, which they had to adopt new ways to avoid any conflict of their work patter, and most of them felt that they had to pay for a baby sister and it get expensive for them, and they felt dissatisfaction with the change.
Friday, January 17, 2020
Strengths and Weakness
By conducting such a preliminary assessment, teams will be In a better position to instruct the most efficient and satisfying strategy for fulfilling the team's purpose. Answer the following questions with typed responses. Each question below contains multiple subtopics. Each question, Including all subtopics, should be answered In 25-50 words. 1. What are the academic goals of each team member? What are the career goals of each team member? How do the academic goals of other members relate to their career goals? My (Tina) academic goals are to become an accountant.My goals are to get through school with a degree. I am thinking of trying to work for the government, so I can get the schooling paid for. Have good benefits and so on. My current job keeps me very motivated and the money will not be a bad thing. 2. What are the strengths of each member of the team? How have these strengths been demonstrated in the past (at work, at home, or in college)? How have each team members' strengt hs contributed to the overall success of the team in accomplishing team objectives and projects. At home, my goals are to get through school and get my degree.So I am dedicated to accomplishing this task by going to the university of Phoenix. At work, I demonstrate customer service, by being on the front-line. Friendly, and compassionate and we all work towards customer satisfaction. At college, I help to get all the group members together and listen and learn. While they do the same to me. Our goal is to do well, and we all do that through trial and error. We all want to accomplish our projects on time and planned out nicely, and in a timely manner. 3. What are the weaknesses of each member of the team?How have these weaknesses been demonstrated in the past (at work, at home, or in college)? How have the team members worked together to overcome Individual member's weaknesses to help team members and the team become successful? I believe my weakness Is taking charge or being the fac ilitator. I also, have trouble following some of the concepts of the projects assigned. My group helps me out by Glenn me stories of examples that relate to the Ideas of the projects. 4. What are the technology skills of each member of the team regarding operating systems, software, etc?What technology Is available to each team member on systems at home or at work)? How will team members address technology needs to meet the objectives for the team successfully? I am not a guru In the computer Industry, however, I have learned by leaps and bounds lust from doing schoolwork. As, with Word, and Power Point and it has been a do the team goals relate to the individual goals? What quality of academic work are the team members committed to and how will this quality be demonstrated in teamwork when writing papers and preparing for presentations? Strengths and Weakness Crooks is a lively, sharp-witted, black stable-hand, who takes his name from his crooked back. Like most of the characters in the story, he admits that he is extremely lonely. When Lennie visits him in his room, his reaction reveals this fact. At first, he turns Lennie away, hoping to prove a point that if he, as a black man, is not allowed in white menââ¬â¢s houses, then whites are not allowed in his, but his desire for company ultimately wins out and he invites Lennie to sit with him. Like Curleyââ¬â¢s wife, Crooks is a disempowered character who turns his vulnerability into a weapon to attack those who are even weaker.He plays a cruel game with Lennie, suggesting to him that George is gone for good. Only when Lennie threatens him with physical violence does he relent. Crooks exhibits the corrosive effects that loneliness can have on a person; his character evokes sympathy as the origins of his cruel behavior are made evident. Perhaps what Crooks wants more than anything else is a sense of belongingââ¬âto enjoy simple pleasures such as the right to enter the bunkhouse or to play cards with the other men.This desire would explain why, even though he has reason to doubt George and Lennieââ¬â¢s talk about the farm that they want to own, Crooks cannot help but ask if there might be room for him to come along and hoe in the garden. Candy One of the bookââ¬â¢s major themes and several of its dominant symbols revolve around Candy. The old handyman, aging and left with only one hand as the result of an accident, worries that the boss will soon declare him useless and demand that he leave the ranch.Of course, life on the ranchââ¬âespecially Candyââ¬â¢s dog, once an impressive sheep herder but now toothless, foul-smelling, and brittle with ageââ¬âsupports Candyââ¬â¢s fears. Past accomplishments and current emotional ties matter little, as Carson makes clear when he insists that Candy let him put the dog out of its misery. In such a world, Candyââ¬â¢s dog serves as a harsh reminder of the fate that awaits anyone who outlives his usefulness. For a brief time, however, the dream of living out his days with George and Lennie on their dream farm distracts Candy from this harsh reality.He deems the few acres of land they describe worthy of his hard-earned lifeââ¬â¢s savings, which testifies to his desperate need to believe in a world kinder than the one in which he lives. Like George, Candy clings to the idea of having the freedom to take up or set aside work as he chooses. So strong is his devotion to this idea that, even after he discovers that Lennie has killed Curleyââ¬â¢s wife, he pleads for himself and George to go ahead and buy the farm as planned.
Wednesday, January 8, 2020
Positive Female Role Models Eliminate Negative Effects of...
Sexuality in the media is a major problem that influences the public both negatively and positively. The article entitles ââ¬Å"Positive female role models eliminate negative effects of sexually violent mediaâ⬠written by Christopher J. Ferguson, tested four hypothesis as to whether or not the media portrayal of women influence or impact depression, anxiety and negative attitudes of women of both male or female. He also tested his hypotheses by concluding that sexuality violence is not only found in pornographic films but also nonpornograhic films. Sexually violent media encapsulates a broad category of media in which themes and violence are intermingled. For instance such media may depict physical aggression by males against females (orâ⬠¦show more contentâ⬠¦Six television shows were selected that expresses strong independent females and also weak females. 7th Heaven and Gilmore girls was selected as the nonsexual and nonviolent show, The Tudors and Masters of Horror was selected as sexually violent with negative/subordinate female characters and Buffy the Vampire Slayer and Law and Order are sexually violent shows with strong independent female characters. The hypothesis was tested by using three measures. For Negative attitudes towards women, Spence Helmreich, Attitudes towards Women Scale was used. It is a 15-item Likert type scale that queries respondents in regards to their beliefs about the equal rights of women in multiple dimensions.() For Depression, The Beck Depression Inventory-II was sued to identify symptoms of Depression. Scores ranging from 0 to 13 are indicative of minimum depression, 14-19 of mild depression, 20-28 of moderate depression and 29-63 of severe depression (Ferguson, 2012). For anxiety, The Beck Anxiety Inventory was used. Students were asked to complete an assignment for extra credit in the school theatre. The students were randomly given appointments where each show was appointed. They also signed a consent form and were asked to ask any question they might have before the presentation of the film. After theShow MoreRelatedStephen P. Robbins Timothy A. Judge (2011) Organizational Behaviour 15th Edition New Jersey: Prentice Hall393164 Words à |à 1573 PagesSpecialist: Cathleen Petersen Senior Art Director: Janet Slowik Art Director: Kenny Beck Text and Cover Designer: Wanda Espana OB Poll Graphics: Electra Graphics Cover Art: honey comb and a bee working / Shutterstock / LilKar Sr. Media Project Manager, Editorial: Denise Vaughn Media Project Manager, Production: Lisa Rinaldi Full-Service Project Management: Christian Holdener, S4Carlisle Publishing Services Composition: S4Carlisle Publishing Services Printer/Binder: Courier/Kendallville Cover Printer: Courier/KendalvilleRead MoreOne Significant Change That Has Occurred in the World Between 1900 and 2005. Explain the Impact This Change Has Made on Our Lives and Why It Is an Important Change.163893 Words à |à 656 Pagesthe International Systems of Law in the Twentieth Century â⬠¢ Jean H. Quataert 116 5 The Impact of the Two World Wars in a Century of Violence â⬠¢ John H. Morrow Jr. 161 6 Locating the United States in Twentieth-Century World History â⬠¢ Carl J. Guarneri 213 7 The Technopolitics of Cold War: Toward a Transregional Perspective â⬠¢ Gabrielle Hecht and Paul N. Edwards 271 8 A Century of Environmental Transitions â⬠¢ Richard P. Tucker 315 About the Contributors â⬠¢ 343 _
Subscribe to:
Posts (Atom)