Wednesday, October 30, 2019

The Travels of Marco Polo by Colin Thubron Essay

The Travels of Marco Polo by Colin Thubron - Essay Example Thus, the author provides reliable information about the various aspects of the city and the descriptions are highly factual and realistic. There are important descriptions of many towns, castles, and villages and the readers are given factual descriptions about the people, the kings, and the currency in the city. â€Å"At the end of three days, you reach the noble and magnificent city of Quinsai, a name that signifies ‘the celestial city’, and which it merits from its pre eminence to all others in the world, in grandeur and beauty, as-well as from its abundant delights, which might lead inhabitants to imagine himself in paradise. In all seasons there is, in the markets, a great variety of herbs and fruits, especially pears of an extraordinary size†¦ Each of the 10 markets squares is surrounded by high dwelling houses, in the lower part which are shops, where every kind of manufacture is carried on, and ever pre-eminence trade is sold, such as spices drugs trinkets and pearls...† (Thubron, 209) Therefore, the book provides great details about the various aspects of the city and the readers are able to gather some essential factual data regarding the cities of ancient China. Two other articles which deal with the great cities of ancient China are â€Å"The Attractions of the Capital† and â€Å"Recollections of Northern Song Capital†. A reflective analysis of these resources in comparison to each other provides an enlightening understanding of the great cities of ancient China.  

Monday, October 28, 2019

Chef Satisfaction Essay Example for Free

Chef Satisfaction Essay The findings showed that employees’ job satisfaction directly and positively influences organizational commitment, but does not directly influence job performance. Employees’ job satisfaction enhances job performance only through organizational commitment. Internal marketing, empowerment and leadership also positively influence job satisfaction. Empowerment and leadership enhance employees’ organizational commitment. Internal job stress negatively influences employees’ job satisfaction and external job stress enhances employees’ job performance. According to the findings, this paper realized the main factors which influence hospitality industry employees’ job satisfaction, organizational commitment and job performance, which can function as criteria for human resource management in the hospitality industry. Key words: Hospitality industry, job satisfaction, organizational commitment, job performance.   With the change of the industrial structure in recent years, the output value of the service industry has become more than 70% of the GDP in most advanced countries (CIA, 2009). Thus, the service industry plays a significant role in national economic development. In 2008, as the world encountered a financial tsunami, the governments of different countries selected potential service industries and supported them with resources, in order to energize economic development. The hospitality industry is a typical service industry, and it is critical service industry around the world. In Taiwan, the scale of the hospitality industry has been increasing year by year. According to the Statistics Department, Ministry of Economic Affairs, in 2001 the business volume of the hospitality industry in Taiwan was NTD 261. 3 billion. In 2006 it passed NTD 300 billion and in 2009 it reached NTD 321. 7 billion. However, the hospitality industry refers to labor services and relies on manpower in areas such as production, delivery and restaurant service. Thus, the hospitality industry is mainly based on services. As mentioned in Bitner’s (1995) framework of the service marketing triangle, service providers play a critical role in the service industries. In service industry management, regarding the importance of employees, Heskett et al. (1994) proposed the framework of service profit chain. In the service profit chain, there are critical linkages among internal service *Corresponding author. E-mail: [emailprotected] tcmt. edu. tw. Tel: +886-2-28102292 ext. 5009. Fax: +886-2-2810-6688. Tsai et al. 4119 quality, employee satisfaction/productivity, the value of services provided to the customer, customer satisfaction and company’s profits. This chain shows that internal service quality can enhance employee satisfaction, which will enhance employee productivity and further result in external service value and enhanced customer satisfaction. Finally, the company can make a profit (Zeithaml et al. , 2009). Therefore, satisfied employees make satisfied customers. Service personnel satisfaction significantly influences organizational commitment and job performance on customer satisfaction and corporate operational performance (Ladkin, 2002; Dunlap et al. , 1988; Tansuhaj et al. , 1988; Chowdhary, 2003; Yang and Chen, 2010). How to enhance service personnel satisfaction, organizational commitment and job performance is a critical issue in service industry management. In past research on employee satisfaction, organizational commitment and job performance, many scholars (Babin and Boles, 1998; Bernhardt et al. 2000; Van Scotter, 2000; Koys, 2003; Testa, 2001) have validated that employees’ job satisfaction positively influences job performance and organizational commitment. In studies on factors of employees’ job satisfaction, job performance and organizational commitment, the service profit chain proposed by Heskett et al. (1994) and service marketing management model indica ted by Tansuhaj et al. (1988) on overall service industry both demonstrated that managements internal marketing activities produce job satisfaction and commitment to the organization. In addition, many studies have found close relationships between leadership, employee satisfaction, organizational commitment and job performance (Billingsley and Cross, 1992; Yammarino and Dubinsky, 1994; Burton et al. , 2002; Avolio et al. , 2004; Chen and Silverthorne, 2005). The above studies have mainly focused on the educational service industry, retail industry, manufacturing service industry, medical service industry and governmental institutions, but have not conducted indepth explorations on the hospitality service industry. Hopfl (1994) indicated that in the service delivery, firstline employees must be empowered to some degree in order to cope with customers’ special demands. Thus, job empowerment can be treated as important management to encourage first-line service personnel and immediately solve customers’ differential demands. Avolio et al. (2004), Caykoylu et al. (2007) and Chen et al. (2008) respectively conducted empirical studies on medical personnel and employees of the telecommunication industry, banking industry and postal industry, and found that empowerment positively influences employee satisfaction and organizational commitment. One issue worthy of further study is the extent of how empowerment positively influences hospitality industry employee satisfaction and organizational commitment. In addition, first-line employees face different customer demands and supervisor requirements, therefore job stress is a critical issue for them. Jamal (1990) and Jex (1998) suggested that reducing employees’ job stress could enhance employees’ job satisfaction and job performance. Williams and Cooper (2002) and Ouyang (2009) indicated that proper job stress would enhance employees’ job performance. In the hospitality industry, the influence of job stress from external customers and internal supervisors on employees’ job satisfaction and job performance is an issue worthy of further exploration. Based on the above, internal marketing, leadership, empowerment and job stress are possible factors of service industry employees’ job satisfaction, organizational commitment and job performance, and these factors are validated in various service industries. However, the outcomes in different service industries are not the same. For the hospitality industry, it is important to validate and analyze the influences of the above factors on employees’ job satisfaction, organizational commitment and job performance. Thus, this study intended to combine internal marketing, leadership, empowerment and job stress and proposed an integrated model of hospitality industry employees’ job satisfaction, organizational commitment and job performance. Hospitality industry employees in Taipei City were treated as the subjects, and the researcher probed into factors of hospitality industry employees’ job satisfaction, organizational commitment and job performance in order to function as criteria for management in the hospitality industry. LITERATURE REVIEW Job satisfaction The term â€Å"job satisfaction† was proposed by Hoppock (1935) who suggested that job satisfaction means employees’ emotions and attitude toward their jobs, and is their subjective reaction toward their jobs. The definition of job satisfaction is generalized into three categories: (1) Definition of generality: Job satisfaction refers to the affective reaction to one’s job as the most (Ozer and Gunluk, 2010). Job satisfaction, which is one of the most important necessities for an individual to be successful, happy and productive, is a feeling of satisfaction, that is, an outcome of the perception of what the job provides for an individual (Ay and Av aro lu, 2010); (2) Definition of difference: This refers to the degree of satisfaction and the difference between ndividual actual returns and required returns. For instance, Porter and Lawler (1968) suggested that the degree of satisfaction depends on the difference between a person’s actual returns and expected returns; (3) Definition of criterion framework: Peoples subjective perception and interpretation on objective traits of organizations or jobs would be influenced by individual criterion framework. According to Smith et al. (1969), job satisfaction is the outcome after a person interprets the job traits according 4120 Afr. J. Bus. Manage. o the criterion framework. The influence of certain work situations on job satisfaction is related to many factors, such as comparisons between good and bad jobs, comparisons with others, personal competency and past experience, etc. Job performance Kane and Lawler (1976) suggested that job performance refers to the record of the results when employees have practiced a job for a certain period of time. According to Schermerhorn (1989), job performance refers to the quality and quantity accomplished by individuals or groups after fulfilling a task. After a certain period of time, measurements of employees’ job performance could serve as criterion for promotions, wage adjustments, rewards, punishments and evaluations. Cascio (2006) suggested that managers must specifically define performance to allow the teams or employees to recognize the organizational expectations in order to fulfill the organizational goals. In other words, managers must set concrete goals, trace the fulfillment degree and evaluate the teams’ or employees’ performance. Van Scotter and Motowidlo (1996) suggested that employees with a high degree of job enthusiasm will demonstrate extra effort and devotion, and will actively seek out solutions to problems at work in order to enhance their job performance. Robbins (1998) divided the measurement of job performance into job result, job behavior and personal traits. Lee et al. (1999) divided job performance into efficiency, efficacy and quality. Efficiency refers to the employees’ output rate and is the ability to accomplish tasks before deadline. Efficacy refers to the employees’ goal accomplishment rate and proposals. Quality refers to the employees’ error rate and complaint rate, supervisor satisfaction, customer satisfaction and colleague satisfaction. This study suggested that in the application of this construct to measure hospitality industry employees’ job performance, efficiency should refer to the employees’ speed in customer service, efficacy should mean the accomplishment of tasks assigned by customers, and quality should mean the employees’ performance in customer service. As to measurement, Shore and Thornton (1986) indicated that self-evaluation allows individuals to participate in performance evaluation and serves as a criterion. Based on the above, according to the views of Lee et al. (1999), this study divided job performance into efficiency, efficacy and quality, and measured hospitality industry employees’ job performance using employee self-evaluation. Smith et al. (1969) proposed the Job Description Index (JDI) to measure job satisfaction, with the constructs including wage, promotion, job, supervisors and colleagues. Black and Gregersen (1997) found a positive correlation between job satisfaction and job performance. Organ (1990) suggested that when employees are satisfied with their work, they are willing to sacrifice themselves and devote to their organization. Organizational commitment From the perspective of attitude, Porter et al. (1974) indicated that organizational commitment is a person’s active and positive intention to identify with and internalize organizational goals and value. According to Reyes and Pounder (1990), organizational commitment is the strong belief and intention to identify with organizational value, devote to and stay with the organization. Mathews and Shepherd (2002) suggested that organizational commitment refers to workers’ attitude, behavior and connection between individuals and the organization. Guest (1995) indicated that organizational commitment is at the core of human resource management. It transforms traditional manpower management into the core of human resources. Organizational members’ attitude or intentions particularly indicate the importance of employees’ organizational commitment. Dee et al. (2006) suggested that organizational commitment is a person’s intention to devote to and be loyal to the organization. Lambert et al. (2006) suggested that organizational commitment is the structural phenomenon of trading between individuals and organizations. It increases with time, but it does not lead to a transferable investment outcome. Thus, in theoretical study and practical use, scholars have valued organizational commitment in human resource management. In recent years, many scholars have probed into organizational commitment from the view of Porter et al. (1974). Thus, this study also followed the above view and divided organizational commitment into value commitment, effort commitment and retention commitment. This study further treated these three constructs as criteria to measure hospitality industry employees organizational commitment. Definitions of these constructs are thus shown: (1) Value commitment: a strong belief and identification with organizational goals and values. 2) Effort commitment: the intention to devote more to the organization. (3) Retention commitment: a strong intention to continue being part of the organization. Internal marketing Internal Marketing (IM) is the process of handling staff as internal customers and projects as internal products that satisfy the needs and desires of the customers and adhere to the company’s goals (Berry and Parasuraman, 1991). Rafiq and Ahmed (1993) suggest that internal marketing involves â€Å"a planned effort to overcome organizational resistance to change and to align, motivate Tsai et al. 4121 nd integrate employees towards the effective implementation of corporate and functional strategies†. Joseph (1996) suggested that internal marketing is can be applied to marketing and human resource management, combining theoretical techniques and principles in order to encourage, recruit and manage all employees in the organization and constantly improve external customer service and mutual services. In addition, Ahmed et al. (2003) defined internal marketing as the emp loyees’ evaluation of the reward system, internal communication, training and development of the company. Internal marketing empirical research in the service sector has proven that internal marketing has influenced on internal customers (that is, employees) satisfactions. Berry and Parasuraman (1991) suggested that the advantages of internal marketing implementation in organizations are as follows: (1) To acquire and keep excellent talent; (2) to provide a common vision so that employees have job purpose and meaning; (3) to give employees the ability and knowledge to accomplish the work; (4) to encourage employees to share the results of teamwork; (5) to create job designs be based on the findings of marketing studies. The aforementioned views reveal that corporate implementation of internal marketing allows employees to enhance service quality, which increases the production and profits of the companies. The implementation of internal marketing in the organizations results in an internal service culture, raises service consciousness and increases profits (Parasuraman et al. , 1985). Based on the views of these scholars, internal marketing is critical for organizations and influences external marketing to further enhance customer satisfaction. According to the these definitions and based on the views of Rafiq and Ahmed (1993) and Ahmed et al. (2003), this study treated employee evaluations of reward systems, internal communication, and training and development of companies as criterion for measuring internal marketing of the hospitality industry. Leadership Leadership refers the process of influencing the team to accomplish the goals (Robbins and Coulter, 2005). Leaders are key success factors of an organization (Bass, 1985; Daft, 2002). Skillful leaders recognize and use the interpersonal relationships of the team and strengthen the members’ loyalty and morale. Effective leaders must learn skills such as patiently sharing information, trusting others and recognizing the timing of interventions (Steckler and Fondas, 1995). In recent years, numerous scholars have tried to discuss leadership from new perspectives. New studies of leadership theory have particularly stressed the influences of demands between leaders and subordinates, the interaction of personality traits and situational factors on leadership (Bargal and Schmid, 1989). Corporate leaders must select a proper leadership according to their subordinates’ different demands for supervision, in order to enhance employee satisfaction and fulfill expected goals. Bass and Avolio (1997) divided leadership into transformational leadership and transactional leadership. In transformational leadership, subordinates trust, respect and are loyal to their leaders. Leaders can develop their subordinates’ potential and enhance their confidence by changing their values and beliefs in order to increase their organizational commitment, intention and motivation to create exceptional outcomes. Transformational leadership can be divided into ideal traits, ideal behavior, the encouragement of inspiration, and the stimulation of wisdom and individual care. In addition, transactional leadership means leaders and members remain in the process of negotiation and mutual benefit instead of a persistent one-purpose relationship. Social exchange theory is treated as the theoretical base. When subordinates act according to their leaders’ expectations, they will have returns with a specific value. Transactional leadership can be divided into contingent rewards, and active and passive exceptional management. Most quantitative studies on leadership have created questionnaires using the MLQ scale designed by Bass and Avolio (1997). The MLQ scale includes two constructs (transformational leadership and transactional leadership). This study also designed a leadership questionnaire for the hospitality industry according to the MLQ scale. Empowerment Empowerment signals a transition away from traditional development that confined people’s role to that of passive recipients, effectively rendering them dependent on handouts in the form of foreign aid (O’Gorman, 1995). Bowen and Lawler III (1992) define empowerment as sharing with frontline employees four organizational ingredients: (1) Information about the organizations performance; (2) rewards based on the organizations performance; (3) knowledge about contributing to organizational performance; (4) power to make decisions that influence organizational direction and performance. Murat and Thomas (2003) suggested that empowerment does not simply refer to telling employees that they are empowered, but aims to allow the employees to recognize what power has been authorized. Boudrias et al. (2004) suggested that in managerial circles, empowerment application includes two types: (1) Empowering the responsibility of decision-making to subordinates while emphasizing rich work environments 4122 Afr. J. Bus. Manage. and diverse authority, information, resources and support, and providing the opportunity to learn in order to improve performance; (2) psychological empowerment, which refers to employees’ experiences of empowerment that are inferred as a mediating variable of empowerment and expected results. According to Sherman (1996), empowerment acknowledges that employees have the power to change in order to encourage employees to increase their competency. Kanter (1993) suggested that empowerment can keep employees from feeling helpless. Organizations could thus reduce negative effects such as low morale. The most significant effect of empowerment is to enhance employees’ abilities and self-efficacy (Conger and Kanungo, 1988). Bowen and Lawler III (1992) suggested the advantages of empowerment for organizations below: (1) To rapidly respond to customer demands and questions; (2) a high degree of employees’ job satisfaction; (3) positive interactions with consumers; (4) employees with creative thoughts; (5) the creation of loyal customers. About the definition of psychological empowerment, Spreitzer (1995) defines this concept as the psychological state that employees must experience for managerial empowerment interventions to be successful.

Saturday, October 26, 2019

Infertility Treatments: Is it Ethical? Essay -- fertility medications,

In this day and age several factors have changed the definition of a family. We live in a time where careers, education, and work are now put before starting a family, making it more difficult to have children. The traditional family archetype has changed with a rise in single and homosexual parenting. This change, even though it is a positive one, can result in several people being unable to have children. Infertility treatments have become a popular option for these people who cannot have children. These treatments have become popular in books, movies, and other forms which has brought attention to the ethics of the practices. The ethics of these treatments are challenged by the health risks on people seeking treatments and their potential child, the morality of how embryos are used in these treatments, and the costs of these treatments. Although these treatments have their medical risks, anyone should have the option to use these treatments because they are often the only way they can have a child. Infertility treatments are various types of medicines and medical technologies that aid pregnancy. Some forms of medicines used to treat infertility include hormone injections, fertility drugs, and ovulation drugs. Fertility medications and hormone injections increases the chances of a person to get pregnant or impregnate someone by aiding in the release of hormones to regulate specific reproductive processes such as sperm production or ovulation. Technology based infertility treatments, or more commonly known as ART-technology (assisted reproductive technology), include in-vitro fertilization, artificial insemination, and embryo/zygote transfers. Artificial insemination is a procedure where sperm is placed inside the uterus. In vi... ...e treatments should not matter because the gift of a child is priceless. Altogether the practice of infertility treatments is absolutely necessary. Even though there are some possible negative effects from treatment and treatments can be pricey, nothing can be more valuable and precious than a child. Works Cited http://www.cdc.gov/reproductivehealth/Infertility/Index.htm https://www.nichd.nih.gov/health/topics/infertility/conditioninfo/Pages/art.aspx http://www.womenshealth.gov/publications/our-publications/fact-sheet/infertility.html http://www.health.harvard.edu/press_releases/Psychological-impact-of-infertility http://www.sart.org/uploadedFiles/ASRM_Content/News_and_Publications/Ethics_Committee_Reports_and_Statements/fertility_gaylesunmarried.pdf http://humrep.oxfordjournals.org/content/13/6/1502.short http://humrep.oxfordjournals.org/content/22/6/1506.full

Thursday, October 24, 2019

Mrs Aesop Analysis Essay

‘The worlds wife’ is a collection of poems by Duffy written by the female halves of well-known men of time in both reality and myth. Duffy has created a literal version of an old saying behind every great man there is an even greater woman. These poems are both shocking and thought provoking as Duffy steps into the shoes of every woman, whose partner has affected history or the world in any way and given them a voice. Aesop was a fabulist credited with a number of fables now collectively known as ‘Aesop’s Fables’. Although his existence remains uncertain and no writings by him survive, numerous tales credited to him were gathered across the centuries and in many languages in a storytelling tradition that continues to this day. In many of the tales, animals speak and have human characteristics. The impious (disrespectful) opening, ‘By Christ’ foregrounds Mrs Aesop’s disrespectful attitude towards her husband. She says he can ‘bore for Purgatory’ – this is a reference to the Catholic belief in a conceptual space between heaven and hell in which souls are condemned to suffer for their sins after death. Through this Mrs Aesop is literally expressing that her husband is capable of making such a place as purgatory worse than it already is. Aesop’s wife belittles him – ‘he was small’ – and the use of the internal rhyme â€Å"didn’t prepossess. So he tried to impress† is both comic and cutting. Through the continuous references to Aesop’s fables, Mrs Aesop is clearly mocking and disrespecting his works that were popular with so many. On the fourth line of the first stanza, Mrs Aesop puts her own twist of one of her husbands many fables – â€Å"a bird in the hand is worth two in the bush†, changing it to, â€Å"the bird in his hand shat on his sleeve†. By putting this nasty little twist on his work, she is disrespecting both her husband and his work, reflecting her feelings that she appears to have been bottling up for a while. The sheer number of allusions reflects the deadening effect that his fables have on Aesop’s wife. In the first stanza, the end focus on ‘Tedious’, emphasised by the caesura that precedes it, highlights how she  perceives his stories. The fables are chosen to reflect Aesop’s dull, cautious nature – he is the ‘shy mouse’, ‘the jackdaw’, one of the ‘donkeys th at would, on the whole, prefer to be lions.’ It appears that through Duffy writing this poem, Mrs Aesop is finally able to convey her inner thoughts to an audience, bringing her huge relief. In the second stanza, Duffy mocks Mr. Aesop, â€Å"look, then leap†. Duffy has used alliteration to emphasise the childlessness and immaturity of her husband and that his work represents him, making that childish and immature also. Duffy continues this idea onto the third stanza, describing their evening stroll as appalling, and using the tortoise from one of Mr. Aesop’s most famous fables – the hair and the tortoise – as a simile, by describing the way it crawled as â€Å"slow as marriage, indicating that her marriage is tedious and boring, like his work. Duffy uses numerous successful techniques to convey Mrs Aesop’s views of her husband Mr Aesop and his work. However, like in many of Duffy’s poems where she convinces the reader to back the women, due to her feminist views, I don’t believe that she does this in this particular poem. I sympathise with Mr Aesop as his wife is mocking and disrespecting him and his work, something that he takes a lot of pride in.

Wednesday, October 23, 2019

Joseph McCarthy Essay

Joseph McCarthy was born on November 14, 1909 in Grand Chute, Wisconsin. At fourteen he stopped schooling only to return six years later. What normally took four years of high school, he finished in one year. The years 1930 to 1935 were spent in Marquette University where got his law degree. In 1939 he became a circuit court judge in Wisconsin. He was a Marines lieutenant in World War II. He ran for and lost a Senate seat in 1944. In 1946, he tried again and won this time as junior senator from Wisconsin. The first years were lackluster for Senator McCarthy. In 1949 he found issues to ride on like the US Cold War and anti-Communists sentiments. He claimed to have a Communists List including employees of the State Department. While that was in February of 1950, he named the alleged communists in government service for a whole of five years. Due to the strong anti-communist climate, even without evidence to support his accusations, his claims had damaged the careers and ruined the lives of his victims. Winning yet in another election in 1952 he had used his position as chairman of the Permanent Investigations Subcommittee to put more government officials and agencies under investigation. He spared no one from his onslaught including President Eisenhower. While hating the senator in private, the President ignored him in public. McCarthy’s downfall came in 1954 when the Army charged him of giving political favors to a consultant, a former army draftee. The Army-McCarthy hearings were held in his own subcommittee. He was found to be irresponsible as well as dishonest by the subcommittee in televised hearings. Unrepentant to the end, he was censured by Senate in 1954. He died at age 47 from liver ailment. The site elaborated on the rise and fall of a man. It helped me understand the complexities in the life of a man whose humble beginnings propelled him to seek out his dreams and the trappings of power brought him down and away from those dreams. Reference CNN Interactive. Com. Knowledge Bank:Profiles. Retrieved April 17, 2008, from http://www. cnn. com/SPECIALS/cold. war/kbank/profiles/mccarthy/

Tuesday, October 22, 2019

How Delphi Uses Resource Files

How Delphi Uses Resource Files From bitmaps to icons to cursors to string tables, every Windows program uses resources.  Resources  are those elements of a program that support the program but are not executable code. In this article, we will walk through some examples of the use of bitmaps, icons, and cursors from resources. Location of Resources Placing resources in the .exe file has two main  advantages: The resources can be accessed more quickly because it takes less time to locate a resource in the executable file than it does to load it from a disk file.The program file and resources can be contained in a single unit (the .exe file) without the need for a lot of supporting files. The Image Editor First of  all, we need to create a resource file. The default extension for resource files is  .RES. Resource files can be created with  Delphis Image Editor. You can name the resource file anything you want, as long as it has the extension .RES and the filename without the extension is not the same as any unit or project filename. This is important, because, by default, each Delphi project that compiles into an application has a resource file with the same name as the project file, but with the extension .RES. Its best to save the file to the same directory as your project file. Including Resources in Applications In order to access our own resource file, we have to tell Delphi to link our resource file in with our application. This is accomplished by adding a compiler directive to the source code. This directive needs to immediately follow the form directive, like the following: {$R *.DFM} {$R DPABOUT.RES} Do not accidentally erase {$R *.DFM} part, as this is the line of code that tells Delphi to link in the forms visual part. When you choose bitmaps for speed buttons, Image components or Button components, Delphi includes the bitmap file you chose as part of the forms resource. Delphi isolates your user interface elements into the .DFM file. To actually use the resource, you must make a few Windows API calls. Bitmaps, cursors, and icons stored in RES files can be retrieved by using the API functions LoadBitmap, LoadCursor, and LoadIcon respectively. Pictures in Resources The first example shows how to load a bitmap stored as a resource and display it in a TImage component. procedure TfrMain.btnCanvasPic(Sender: TObject);var bBitmap : TBitmap;begin bBitmap : TBitmap.Create; try bBitmap.Handle : LoadBitmap(hInstance, ATHENA); Image1.Width : bBitmap.Width; Image1.Height : bBitmap.Height; Image1.Canvas.Draw(0,0,bBitmap); finally bBitmap.Free; end;end; Note: If the bitmap that is to be loaded is not in the resource file, the program will still run, it just wont display the bitmap. This situation can be avoided by testing to see if the  bBitmap.Handle  is zero after a call to  LoadBitmap()  and taking the appropriate steps. The  try/finally  part in the previous code doesnt solve this problem, it is just here to make sure that the bBitmap is destroyed and its associated memory is freed. Another way we can use to display a bitmap from a  resource is as follows: procedure TfrMain.btnLoadPicClick(Sender: TObject);begin Image1.Picture.Bitmap. LoadFromResourceName(hInstance,EARTH);end; Cursors in Resources Screen.Cursors[]  is an array of cursors supplied by Delphi. By using resource files, we can add custom cursors to the Cursors property. Unless we wish to replace any of the  defaults, the best strategy is to use cursor numbers starting from 1. procedure TfrMain.btnUseCursorClick(Sender: TObject); const NewCursor 1;begin Screen.Cursors[NewCursor] : LoadCursor(hInstance,CURHAND); Image1.Cursor : NewCursor;end; Icons in Resources If we look at Delphis  Project-Options-Application  settings, we can find that Delphi supplies the default icon for a project. This icon represents the application in the Windows Explorer and when the application is minimized. We can easily change this by clicking the Load Icon button. If we want, for example, to animate the programs icon when the program is minimized, then the following code will do the job. For the animation, we need a  TTimer  component on a form. The code loads two icons from resource file into an array of  TIcon  objects; this array needs to be declared in the public part of the main form. Well also need  NrIco, that is an Integer type variable, declared in the  public  part. The  NrIco  is used to keep track of the next icon to show. public nrIco : Integer; MinIcon : array[0..1] of TIcon;...procedure TfrMain.FormCreate(Sender: TObject);begin MinIcon[0]:TIcon.Create; MinIcon[1]:TIcon.Create; MinIcon[0].Handle:LoadIcon(hInstance,ICOOK); MinIcon[1].Handle:LoadIcon(hInstance,ICOFOLD); NrIco:0; Timer1.Interval:200;end;...procedure TfrMain.Timer1Timer(Sender: TObject);beginif IsIconic(Application.Handle) then begin NrIco:(NrIco1) mod 2; Application.Icon:MinIcon[NrIco]; end;end;...procedure TfrMain.FormDestroy(Sender: TObject);begin MinIcon[0].Free; MinIcon[1].Free;end; In the Timer1.OnTimer event handler, IsMinimized function is used to see whether we need to animate our main icon or not. A better way of accomplishing this would be to capture the maximize/minimize buttons and than act. Final Words We can place anything (well, not everything) in resource files. This article has shown you how to use resources to use/display bitmap, cursor or an icon in your Delphi application. Note: When we save a Delphi project to the disk, Delphi automatically creates one .RES file that has the same name as the project (if nothing else, the main icon of the project is inside). Although we can alter this resource file, this is not advisable.

Monday, October 21, 2019

Free Essays on Juvenile Crime

Juvenile crime is a rapidly growing problem in the United States. We are seeing more and more "kids" committing horrible crimes. There may be some underlying reasons why these kids of thirteen, fourteen, fifteen year olds are committing "adult crimes" such as armed robbery, rape and murder, but there are no excuses for this behavior. In the eyes of the court, a person is tried as an adult when he is sixteen. That was fine until recent years when we have witnessed children as young as seven years old murdering people. It doesn't even come as a shock to many people when we hear of shootings at schools. Young people are committing serious crimes now more than ever. Juvenile homicides have quadrupled over the last ten years (Reilly 616). That is an alarming rate of juvenile homicides during the nineties, and something must be done to combat that. Maybe adult sentencing is the solution? For obvious reasons some people feel that a fourteen year old convicted on two counts of second ! degree murder should not be in the same prison with a forty four year old murderer, which is understandable because they probably would not survive in that environment. On the other hand, would you be satisfied with the same fourteen year old murderer getting out of a juvenile detention center when he is eighteen? Because that is what would happen, even if he committed a double homicide he will only spend four years in a detention center! That is a shame, imagine that you were the parent of one of the victims, would you be satisfied with that sentence? I should hope not. That is why it is so important for lawmakers to put some laws on the books allowing prosecutors to impose adult sentences on juveniles, so when they do turn eighteen they will not be walking free, instead they will be walking through the gates of an adult maximum security prison. According to the Council on Crime in America, a bipartisan commission chaired by former Attorney General Griffin Bell... Free Essays on Juvenile Crime Free Essays on Juvenile Crime Juvenile crime is a rapidly growing problem in the United States. We are seeing more and more "kids" committing horrible crimes. There may be some underlying reasons why these kids of thirteen, fourteen, fifteen year olds are committing "adult crimes" such as armed robbery, rape and murder, but there are no excuses for this behavior. In the eyes of the court, a person is tried as an adult when he is sixteen. That was fine until recent years when we have witnessed children as young as seven years old murdering people. It doesn't even come as a shock to many people when we hear of shootings at schools. Young people are committing serious crimes now more than ever. Juvenile homicides have quadrupled over the last ten years (Reilly 616). That is an alarming rate of juvenile homicides during the nineties, and something must be done to combat that. Maybe adult sentencing is the solution? For obvious reasons some people feel that a fourteen year old convicted on two counts of second degree murder should not be in the same prison with a forty four year old murderer, which is understandable because they probably would not survive in that environment. On the other hand, would you be satisfied with the same fourteen year old murderer getting out of a juvenile detention center when he is eighteen? Because that is what would happen, even if he committed a double homicide he will only spend four years in a detention center! That is a shame, imagine that you were the parent of one of the victims, would you be satisfied with that sentence? I should hope not. That is why it is so important for lawmakers to put some laws on the books allowing prosecutors to impose adult sentences on juveniles, so when they do turn eighteen they will not be walking free, instead they will be walking through the gates of an adult maximum security prison. According to the Council on Crime in America, a bipartisan commission chaired by former Attorney General Griffin Bell an... Free Essays on Juvenile Crime Juvenile crime is a rapidly growing problem in the United States. We are seeing more and more "kids" committing horrible crimes. There may be some underlying reasons why these kids of thirteen, fourteen, fifteen year olds are committing "adult crimes" such as armed robbery, rape and murder, but there are no excuses for this behavior. In the eyes of the court, a person is tried as an adult when he is sixteen. That was fine until recent years when we have witnessed children as young as seven years old murdering people. It doesn't even come as a shock to many people when we hear of shootings at schools. Young people are committing serious crimes now more than ever. Juvenile homicides have quadrupled over the last ten years (Reilly 616). That is an alarming rate of juvenile homicides during the nineties, and something must be done to combat that. Maybe adult sentencing is the solution? For obvious reasons some people feel that a fourteen year old convicted on two counts of second ! degree murder should not be in the same prison with a forty four year old murderer, which is understandable because they probably would not survive in that environment. On the other hand, would you be satisfied with the same fourteen year old murderer getting out of a juvenile detention center when he is eighteen? Because that is what would happen, even if he committed a double homicide he will only spend four years in a detention center! That is a shame, imagine that you were the parent of one of the victims, would you be satisfied with that sentence? I should hope not. That is why it is so important for lawmakers to put some laws on the books allowing prosecutors to impose adult sentences on juveniles, so when they do turn eighteen they will not be walking free, instead they will be walking through the gates of an adult maximum security prison. According to the Council on Crime in America, a bipartisan commission chaired by former Attorney General Griffin Bell...