Friday, March 13, 2020

Understanding the Eval () PHP Language Construct

Understanding the Eval () PHP Language Construct The PHP eval () construct is used to evaluate an input string as PHP and then process it as such. Eval() is not a function, but it works like one in the sense that it outputs everything- except instead of outputting it as text, it outputs it as PHP code to be executed. One use of the eval() construct is to store code in a database to execute later. Example of Eval() LanguageConstruct Here is a simple example of coding for the eval() language construct. ; eval(\$a \$a\;); print $a . ; ? This code example outputs My friends are $name and $name2 when first called with the print statement, and it outputs  My friends are Joe and Jim when called the second time after running eval (). Requirements and Characteristics of Eval() The passed code cant be wrapped in opening and closing PHP tags.The passed code must be valid PHP.All statements must be terminated with a semicolon.A return statement terminates the code evaluation.Any variable defined or changed in eval() remains after it terminates.What a fatal error occurs in the evaluated code, the script exits.Because eval() is a language construct and not a function, it cant be used in higher-order functions. The Danger of Using Eval() The PHP manual discourages the use of the eval() construct, stressing its use is very dangerous because arbitrary PHP code can be executed. Users are instructed to use any other option than eval() unless that is not possible. The use of PHP eval() construct presents security risks.

Tuesday, February 25, 2020

Standardized testing - Cons Research Paper Example | Topics and Well Written Essays - 1750 words

Standardized testing - Cons - Research Paper Example since then it has been a debatable topic. It has become one of the most controversial topics in the education field where educationists have presented different views about this type of testing. Initially, the standardized testing was used to enhance the thinking skills and was seen as a way to expand the education system, but as soon as this type of testing became a persistent aspect of higher education, the educationists criticized it, and argued that this is not the basis of education. A standardized test is measured and administered in a consistent manner. It usually comprises of multiple choice or true and false questions, it does not encourage critical thinking or analytical study, and rather it repeats the same mindless facts. The standardized tests are needed by schools in order to meet their federal funding. When a school knows that some percentage of their students needs to pass the standardized test in order to ensure their funding, they give this test immense importance (Downing and Haladyna, 2006). There are test curriculums given to the teachers which include the basic and important items that are featured in this test. According to that, the teachers have to plan their lessons. There is further pressure to get all the material that is needed in order to introduce to the class before the test so that any confusion or trouble of the student can be resolved (Downing and Haladyna, 2006). This system is at times referred to as the system to test the progress made by the teachers and school management rather than addressing to the students’ abilities and learning (Assessor, 2011). Educationists have long debated on the fact that whether standardized testing is fair. Standardized tests are hence, referred as unfair and unhelpful evaluation tools. In these exams, all the questions are either multiple choice or true and false. All the test takers answer the same questions on the same conditions. These tests reward to quick answers and usually

Sunday, February 9, 2020

The Vision Failed Case Study Example | Topics and Well Written Essays - 750 words

The Vision Failed - Case Study Example In HTE case, Mr. Barelli did manage to create a vision statement of 2 pages and get it pasted at every nook and corner of the building. But he failed to relate that transformational management needs a lot of input from the employees. His failure to realize the importance of the low line managers and executives and their involvement in taking his vision for the company ahead made his vision fail badly. If I were to advice as a member of board of directors, I would have voted against it. There are many reasons of this reaction. (Northhouse,2003) First and the foremost reason is that if a company's success is dependent majorly on the unity of its workers and good relations between the management and employees, you need to keep that strength with you. Secondly, if you want to change the vision and direction of your firm, you need to discuss this not only with the top line management, but the low line management and executives are also to be involved in this case. Thirdly, one must make the other stakeholders understand his point of view before taking such steps. So if I were to advice on this topic, I would have voted against Mr. Barelli's transformational leadership. Mr. Barelli though that he had a very clear image of the vision of HTE in his eyes, but this was not the case. He was sadly mistaken. May be he was clear about the goals he had in mind with regard to this organization; he was surely unaware of the best methods to implement such changes. The vision was to create a very democratic environment. The description of the case indicates the culture prevailing in HTE at that time was already quite democratic. There was not that alarming need of converting it to something new where none of the employees were able to understand the changes, and the motives behind those changes. The implementation of the transformational plan was for sure very weak. Most of the cultural and social factors were not taken care of. The vision highlighted a democratic kind of environment where Mr. Barelli rarely used to get into a dialogue. He preferred monologues, one sided orders better than that. This clash of personality and vision resulted in poor implementations and confusions creation after four years of his management. (Hesselbein and Goldsmith, 2006) Answer 3: Mr. Barelli had immense knowledge of the aircraft industry. The vision he crafted for HTE was really attractive if we look at the wordings and the way it was drafted. But the worst thing about Mr. Barelli's management was that it damaged the social fabric of this organization. The organization was known for very effective and impressive relationships between employees and the owners, but his poor implementation of the plan changed everything for him and the organization. He tried to change things. Things changed for the worst. (Beyerlein, McGee, Klien, Nemiro and Broedling, 2003). His managerial skills resulted in a damaged social fabric of an organization that had this strength of its social fabric as it's most important success factors. Answer 4: If Mr. Barelli returns as president of this firm, I would advice him to first of all make the vision clear to him. Once he understand it fully in the form of what exists and what he is looking for, the next step is to take into consideration all those who are involved and would be effected by this change. Take them in consideration, discuss it out with them, listen to their

Thursday, January 30, 2020

James Moore v Mack Trucks, Inc and Worldwide Equipment Inc Essay Example for Free

James Moore v Mack Trucks, Inc and Worldwide Equipment Inc Essay In the case of James Moore v. Mack Trucks, Inc. and Worldwide Equipment Inc. , the facts are that the Appellant appeals against the truck manufacturer and the distributor for recovery of business losses and losses associated with the trucks eventual repossession. The Circuit Court, Floyd County had summarily dismissed the contention made by the Appellant. After ruling that the appeal has been preferred in a timely and proper manner, the court goes into the merits of the contentions of the Appellant. The Appellant alleges that when he expressed concerns about the eighteen speed transmission of the vehicle, he was informed him the transmission had been completely redone by Mack. Appellant claims that he was informed him that the truck would suit appellants needs because the truck had a large rear differential and a larger motor, allowing it to get up and down hills. This, the Appellant contends created an express warranty. However, the court dismissed the contention as the warranty and sales agreement of the defendant disclaimed all implied warranties. In my opinion, the ruling is incorrect as even though the warranty agreements signed clearly disclaim any other implied warranties, a customer can ordinarily rely on statements made by the representatives of the defendants. While the second statement made by the representative is merely an opinion, as rightly pointed by the court, the appellant should not have to suffer as a result of relying on the first statement. It is conceded that the appellant should have perused the documents diligently, yet to state that a vendor is exempted from liabilities arising out of a default of his promises so long as there is an exemption clause protecting him, would put the buyer in a very precarious position. The ruling is somewhat contrary to Christian principles in that it legitimizes a certain amount of deception by the seller, allowing him to dupe and take pecuniary advantage. Ordinarily, the tenet of caveat venditor should be followed rather than caveat emptor. As per the Christian idea, we trust our fellow beings, and it would be of benefit and advantage to all. In the given case, the respondents are allowed to be exempt from their promises solely on the basis of a technicality in the contract.

Wednesday, January 22, 2020

Ophelias Weakness Essay -- essays research papers

In classic works of literature, all characters have certain flaws, and Shakespeare’s tragedies’ characters in particular have faults that ultimately lead to their ruination. In Hamlet, Ophelia’s flaws eventually kill her. In the beginning of the play, it is clear through her thoughts and actions that that Ophelia is an obedient person. But upon closer inspection, the audience can see that she is not merely an obedient, but completely dependent and weak character. In fact, her needy nature is unmistakable from the beginning. OPH: â€Å"I do not know, my lord, what I should think.† POL: â€Å"Marry, I will teach you. Think yourself a baby†¦Ã¢â‚¬  (Act I, Scene III, lines 105-106) Her cruel clashings with Hamlet, which go against her feelings for him, demonstrate her absolute obedience to her father. For example, from the start Ophelia told her father that she is fond of Hamlet: â€Å"My lord, he hath importuned me with love / In honorable fashion.† (Act I, Scene IV, lines 111-112) In relating this to Polonius, she implies that Hamlet is a decent and honorable man, and that she does have feelings for him. Ophelia’s later actions sacrifice these personal feelings by order of he r father, proving her total submission to his authority. Ophelia specifically agrees with her father not to see Hamlet again: â€Å"I shall obey, my lord†¦Ã¢â‚¬  (Act I, Scene IV, line 136) This shows that Polonius has complete control over his daughter, with her desire to please her father as the direct cause. Ophelia has an innate desi...

Monday, January 13, 2020

Medical Equipment Inc

Medical Equipment INC Q1) No, Grover thought that he has a good understanding for the culture because he was raised in Saudi Arabia, but the reality is he grew in an expatriate compound with limited contact with the Saudi people or the Saudi culture. He went to an Indian school and then went to take his college degree in the USA. His internships gave him the opportunity to work in France and the United States. The internships prepared him to work in the field but Saudi business concept is foreign to him.Grover did not understand the Saudi culture and missed some critical points while he was trying to get the deal. He knew that relationships are important in making business in Saudi Arabia which is completely true. The problem was he tried to build relations with the wrong persons the foreign cardiologist, the Egyptian biomedical engineer and the purchasing manager, but he could not reach the purchasing director. In a hierarchy community as Saudi Arabia the purchasing director is the most important one to build a relation with he is the one who can give Grover the deal.Grover spent his time building relation with people who can’t help him with the deal. It was obvious for me that Al Humaidi was avoiding meeting with Grover and when he finally met him after approximately one month it was a formal conversion. I lived in Saudi Arabia for 9 years and from my experience Saudi’s only have a say in Saudi Arabia. Foreigners or non Saudi Arabs working there have no say when it comes to business deals.A Saudi will always prefer to work with an Arab like Najjar and not an Indian because of the language and religious similarities this may sound harsh but is true especially in a situation like this where Al Humaidi had established a long relation with Najjar. Q2) Bribe is never justified and it is unethical, unless you are working in a pharmaceutical company or in a medical equipment company. I am a pharmacist who worked in Egypt and lived in Saudi Arabia and f rom my experience that all the deals in this field need bribes.Bribes are not ethical at all but are a common practice in field of pharmaceutical and medical equipment companies. In Grover’s case it’s within company rules to offer a trip to a business customer to one of the showrooms to view and get more details regarding medical equipments latest software and technology. This can be considered a bride but it’s not as obvious as cash. Cash bribery’s is not allowed, and would be a mistake. The hospital that Al Humaidi works for is a government owned one with a large budget to work with so if Grover offered money this wouldn’t be viewed as an incentive to buy the medical equipment.In Egypt companies give the mangers of the client gifts depending on the field that the company works in and how popular and attractive the actual product being offered is. I remember a famous company that produces the devices that measures blood sugar level, in a way to pr omote its devices the company offered the product free to the physicians and the pharmacies with the strips needed so the physician can use it himself on patients or give it as a gift or use it in his clinic and the pharmacy of course will use it to measure the blood sugar level for the customer.The company will get double benefit, the physician and the pharmacy will advertise the product to the patient by using this device and the patient will be advised to buy one. Q3) Grover has limited options that may be acceptable. There are 4 options I see as possible the first one is to continue in his way of conducting business. Grover’s current plan of action is morally and ethically safe, will not break any rules of the company or of his conscious but he may lose the deal.The second option is to proceed with the trip offer which will give him a chance to win the deal and in the same time he can document it as a business expense so it will not look as a bribe. As a show of commitmen t Grover should accompany Al Humaidi to the trip to help build a long lasting relationship. By going on the trip with Al Humaidi he can try to secure the current sale and also build for the future by assuring Al Humaidi that Medical Equipment INC. will be ready to work with him and be there for support and logistical backup and no also provide the best, outstanding technology for a reasonable price.The third option is to create a plan B and try to secure a sale regardless of the size, just to try and get in good favor with Al Humaidi with a potential of future business. It seems that even with careful analysis and generating a sales plan that offered all the best equipment according to the hospitals needs; this was still not adequate to secure the sale. From what Grover knows now he can create a plan B and modify the list of equipment that is offered and tailor it to the needs of the engineering and cardiology department only.The ECG machine that is being offered is far superior to that of the equivalent product that Wilson’s is offering. Knowing this and already having established a positive relationship with Dr. Saxman, Grover can push the two products that appeal more to the hospital. If the desired sale of $725,000USD worth of equipment is out of reach, then Grover could go forward with plan B and put an emphasis on the two ranges of products that Medical Equipment INC. has the edge over.While implementing this plan Grover already knows he is in good place with the cardiology department and engineering department so he could meet again with the purchasing manager Sultan and persuade him to schedule a meeting between the cardiology, engineering department, Sultan and Al Humaidi to discuss the new plan. This way not only would Grover have the support of the department but he would have a Saudi in Sultan to help push this new idea. Al Humaidi will be still able to take the two devices from Grover and take the other devices the hospital needs from Najja r.In the case it was mentioned that the low or high estimation of the order is wrong and will result in losing the deal but in Grover case he make the right evaluation of the need of the hospital but he will provide just 2 devices of these needs and this is acceptable, during my work in a governmental institution that need medical devices I saw a lot of deals involve buying the needs of the institution from 2 and 3 different companies depend on the price and the quality of the devices each company offers. So it is not weird or strange to just provide part of the needs even when you can provide it all it depends on the situation of the deal.The One option that would cause him to lose the deal is to offer cash to Al Humaidi. For one Grover would not be able record the cash gift and it would be highly against company ethic code. If an unethical cash type bride was offered, Grover would not be able to predict the reaction of Al Humaidi and the deal could be lost and Grover could risk hi s job or worse be deported from the country. Q4) I think the best option is to go with the trip option. In my field of work in pharmacy I saw these trips happen a lot and it is a common practice in the pharmaceutical and medical equipment companies.It’s an acceptable way to close the deals and gives the seller a higher percentage of closing the deal. So I think this trip will give him a great opportunity to win this deal especially if he went with the director in it and build a good relation with him and at the same time Grover won’t risk his position in the company because it is not considered a bribe or unethical for the medical equipment’s company. If the trip did not secure the deal he can always use plan B which will be easier to use after the trip because of the good relation he built with Al Humaidi.

Medical Equipment Inc

Medical Equipment INC Q1) No, Grover thought that he has a good understanding for the culture because he was raised in Saudi Arabia, but the reality is he grew in an expatriate compound with limited contact with the Saudi people or the Saudi culture. He went to an Indian school and then went to take his college degree in the USA. His internships gave him the opportunity to work in France and the United States. The internships prepared him to work in the field but Saudi business concept is foreign to him.Grover did not understand the Saudi culture and missed some critical points while he was trying to get the deal. He knew that relationships are important in making business in Saudi Arabia which is completely true. The problem was he tried to build relations with the wrong persons the foreign cardiologist, the Egyptian biomedical engineer and the purchasing manager, but he could not reach the purchasing director. In a hierarchy community as Saudi Arabia the purchasing director is the most important one to build a relation with he is the one who can give Grover the deal.Grover spent his time building relation with people who can’t help him with the deal. It was obvious for me that Al Humaidi was avoiding meeting with Grover and when he finally met him after approximately one month it was a formal conversion. I lived in Saudi Arabia for 9 years and from my experience Saudi’s only have a say in Saudi Arabia. Foreigners or non Saudi Arabs working there have no say when it comes to business deals.A Saudi will always prefer to work with an Arab like Najjar and not an Indian because of the language and religious similarities this may sound harsh but is true especially in a situation like this where Al Humaidi had established a long relation with Najjar. Q2) Bribe is never justified and it is unethical, unless you are working in a pharmaceutical company or in a medical equipment company. I am a pharmacist who worked in Egypt and lived in Saudi Arabia and f rom my experience that all the deals in this field need bribes.Bribes are not ethical at all but are a common practice in field of pharmaceutical and medical equipment companies. In Grover’s case it’s within company rules to offer a trip to a business customer to one of the showrooms to view and get more details regarding medical equipments latest software and technology. This can be considered a bride but it’s not as obvious as cash. Cash bribery’s is not allowed, and would be a mistake. The hospital that Al Humaidi works for is a government owned one with a large budget to work with so if Grover offered money this wouldn’t be viewed as an incentive to buy the medical equipment.In Egypt companies give the mangers of the client gifts depending on the field that the company works in and how popular and attractive the actual product being offered is. I remember a famous company that produces the devices that measures blood sugar level, in a way to pr omote its devices the company offered the product free to the physicians and the pharmacies with the strips needed so the physician can use it himself on patients or give it as a gift or use it in his clinic and the pharmacy of course will use it to measure the blood sugar level for the customer.The company will get double benefit, the physician and the pharmacy will advertise the product to the patient by using this device and the patient will be advised to buy one. Q3) Grover has limited options that may be acceptable. There are 4 options I see as possible the first one is to continue in his way of conducting business. Grover’s current plan of action is morally and ethically safe, will not break any rules of the company or of his conscious but he may lose the deal.The second option is to proceed with the trip offer which will give him a chance to win the deal and in the same time he can document it as a business expense so it will not look as a bribe. As a show of commitmen t Grover should accompany Al Humaidi to the trip to help build a long lasting relationship. By going on the trip with Al Humaidi he can try to secure the current sale and also build for the future by assuring Al Humaidi that Medical Equipment INC. will be ready to work with him and be there for support and logistical backup and no also provide the best, outstanding technology for a reasonable price.The third option is to create a plan B and try to secure a sale regardless of the size, just to try and get in good favor with Al Humaidi with a potential of future business. It seems that even with careful analysis and generating a sales plan that offered all the best equipment according to the hospitals needs; this was still not adequate to secure the sale. From what Grover knows now he can create a plan B and modify the list of equipment that is offered and tailor it to the needs of the engineering and cardiology department only.The ECG machine that is being offered is far superior to that of the equivalent product that Wilson’s is offering. Knowing this and already having established a positive relationship with Dr. Saxman, Grover can push the two products that appeal more to the hospital. If the desired sale of $725,000USD worth of equipment is out of reach, then Grover could go forward with plan B and put an emphasis on the two ranges of products that Medical Equipment INC. has the edge over.While implementing this plan Grover already knows he is in good place with the cardiology department and engineering department so he could meet again with the purchasing manager Sultan and persuade him to schedule a meeting between the cardiology, engineering department, Sultan and Al Humaidi to discuss the new plan. This way not only would Grover have the support of the department but he would have a Saudi in Sultan to help push this new idea. Al Humaidi will be still able to take the two devices from Grover and take the other devices the hospital needs from Najja r.In the case it was mentioned that the low or high estimation of the order is wrong and will result in losing the deal but in Grover case he make the right evaluation of the need of the hospital but he will provide just 2 devices of these needs and this is acceptable, during my work in a governmental institution that need medical devices I saw a lot of deals involve buying the needs of the institution from 2 and 3 different companies depend on the price and the quality of the devices each company offers. So it is not weird or strange to just provide part of the needs even when you can provide it all it depends on the situation of the deal.The One option that would cause him to lose the deal is to offer cash to Al Humaidi. For one Grover would not be able record the cash gift and it would be highly against company ethic code. If an unethical cash type bride was offered, Grover would not be able to predict the reaction of Al Humaidi and the deal could be lost and Grover could risk hi s job or worse be deported from the country. Q4) I think the best option is to go with the trip option. In my field of work in pharmacy I saw these trips happen a lot and it is a common practice in the pharmaceutical and medical equipment companies.It’s an acceptable way to close the deals and gives the seller a higher percentage of closing the deal. So I think this trip will give him a great opportunity to win this deal especially if he went with the director in it and build a good relation with him and at the same time Grover won’t risk his position in the company because it is not considered a bribe or unethical for the medical equipment’s company. If the trip did not secure the deal he can always use plan B which will be easier to use after the trip because of the good relation he built with Al Humaidi.