Friday, December 27, 2019

The Birth, Life and Death of a Delphi Form

In Delphi, every project has at least one window -- the programs main window. All windows of a Delphi application are based on TForm object. Form Form objects are the basic building blocks of a Delphi application, the actual windows with which a user interacts when they run the application. Forms have their own properties, events, and methods with which you can control their appearance and behavior. A form is actually a Delphi component, but unlike other components, a form doesnt appear on the component palette. We normally create a form object by starting a new application (File | New Application). This newly created form will be, by default, the applications main form - the first form created at runtime. Note: To add an additional form to Delphi project, select File|New Form. Birth OnCreateThe OnCreate event is fired when a TForm is first created, that is, only once. The statement responsible for creating the form is in the projects source (if the form is set to be automatically created by the project). When a form is being created and its Visible property is True, the following events occur in the order listed: OnCreate, OnShow, OnActivate, OnPaint. You should use the OnCreate event handler to do, for example, initialization chores like allocating string lists. Any objects created in the OnCreate event should be freed by the OnDestroy event. OnCreate - OnShow - OnActivate - OnPaint - OnResize - OnPaint ... OnShowThis event indicates that the form is being displayed. OnShow is called just before a form becomes visible. Besides main forms, this event happens when we set forms Visible property to True, or call the Show or ShowModal method. OnActivateThis event is called when the program activates the form - that is, when the form receives the input focus. Use this event to change which control actually gets focus if it is not the one desired. OnPaint, OnResizeEvents like OnPaint and OnResize are always called after the form is initially created, but are also called repeatedly. OnPaint occurs before any controls on the form are painted (use it for special painting on the form). Life The birth of a form is not so interesting as its life and death can be. When your form is created and all the controls are waiting for events to handle, the program is running until someone tries to close the form! Death An event-driven application stops running when all its forms are closed and no code is executing. If a hidden form still exists when the last visible form is closed, your application will appear to have ended (because no forms are visible), but will in fact continue to run until all the hidden forms are closed. Just think of a situation where the main form gets hidden early and all other forms are closed. ... OnCloseQuery - OnClose - OnDeactivate - OnHide - OnDestroy OnCloseQueryWhen we try to close the form using the Close method or by other means (AltF4), the OnCloseQuery event is called. Thus, event handler for this event is the place to intercept a forms closing and prevent it. We use the OnCloseQuery to ask the users if they are sure that they realy want the form to close. procedure TForm1.FormCloseQuery(Sender: TObject; var CanClose: Boolean) ;begin    if MessageDlg(Really close this window?, mtConfirmation, [mbOk, mbCancel], 0) mrCancel then CanClose : False;end; An OnCloseQuery event handler contains a CanClose variable that determines whether a form is allowed to close. The OnCloseQuery event handler may set the value of CloseQuery to False (via the CanClose parameter), aborting the Close method. OnCloseIf OnCloseQuery indicates that the form should be closed, the OnClose event is called. The OnClose event gives us one last chance to prevent the form from closing. The OnClose event handler has an Action parameter, with the following four possible values: caNone. The form is not allowed to close. Just as if we have set the CanClose to False in the OnCloseQuery.caHide. Instead of closing the form you hide it.caFree. The form is closed, so its allocated memory is freed by Delphi.caMinimize. The form is minimized, rather than closed. This is the default action for MDI child forms. When a user shuts down Windows, the OnCloseQuery event is activated, not the OnClose. If you want to prevent Windows from shutting down, put your code in the OnCloseQuery event handler, of course CanCloseFalse will not do this. OnDestroyAfter the OnClose method has been processed and the form is to be closed, the OnDestroy event is called. Use this event for operations opposite to those in the OnCreate event. OnDestroy is used to deallocate objects related to the form and free the corresponding memory. When the main form for a project closes, the application terminates.

Thursday, December 19, 2019

Essay on The Homeless in Our Community - 3185 Words

Table of Contents Literature Review — 3 Methodology — 5 Findings — 6 Summary — 8 Works Cited/Works Used — 9 Appendix: Survey Form — 11 LITERATURE REVIEW In this information behavior study, our group examines the everyday information resources, needs, and behaviors of the homeless. Literature research has led us to many key resources. Important literature on our topic includes Everyday Information Needs and Information Sources of Homeless Parents, The Homeless and Information Needs and Services, and Are the economically poor information poor? Does the digital divide affect the homeless and access to information? by Julie Hersberger, and The Impoverished LifeWorld of Outsiders and Framing Social Life in Theory and Research†¦show more content†¦4), found after many studies on marginalized populations that instead of sharing information, the constituents of the population often withheld information from one another during the information seeking process. The key components Chatman identified in information poverty were secrecy, deception, risk-taking, and situational relevance.1 Other commonly cited factors include: gentrification of urban areas, cutbacks in aid resources for the poor and homeless, and minimum wages that don’t match the cost of living. (Chatman, 1996, p.194). Interestingly, Hersberger found in a number of studies specifically on the homeless that being homeless does not necessarily mean that one is information poor or that the homeless view themselves as information impoverished. Quite a few homeless people have some level of education, such as high school, college, trade, or military training. Most have access to such technology as television, computers, and phones, and they have resources and services in the forms of libraries, churches, shelters, nonprofits, and government-run agencies. But the exact issues that contribute to their homeless status, as listed above, also restrict them from utilizing information in a way that addresses their needs. This results in what Chatman identifies as the â€Å"outsider† status. The homeless, a marginalizedShow MoreRelatedThe Proposed Corporate Social Responsibility1329 Words   |  6 Pagesthe wealthiest and most educated people in the country. And yet thousands of people are homeless in the community. The proposed corporate social responsibility (CSR) program aims to reduce the homeless population in the region by implementing a financial education program in homeless shelters. Background According to Metropolitan Washington Council of Government (COG), as of 2014, there are 11,946 homeless individuals inhabit in Washington Metropolitan area. This region consists of Alexandria,Read More The Homeless are Not Legitimate Members of a Community Essay1583 Words   |  7 PagesThe Homeless are Not Legitimate Members of a Community In most every community in the United States there exists an ever-growing population of disenfranchised individuals, created by the absence of a home. Their place in the community allows them, at best, the socioeconomic status of â€Å"the homeless-members in our community.† But, are these homeless-members actually legitimate autonomous-members of a moral community? In this paper I will first argue that the homeless are not legitimate autonomousRead MoreHomeless Youth Of The 20th Century Essay970 Words   |  4 PagesHomeless Youth in the 20th Century There is an inaccurate count of the number of homeless youth individuals are currently in America. They only account for those who are in the shelter’s system, which is a small portion of the total population of homeless youth. One report estimated that only one in twelve homeless youth ever come into contact with the shelter system (Somllar, 1999). The main focus is on â€Å"street youth† who are still on the streets with no home, and no adult guidance. The downfallRead MoreNo Place to Go Essays1389 Words   |  6 PagesHomelessness is viewed as a social problem of our society because people consider it to be an undesirable condition. It’s something that most people don’t want to see or think about. Our communities share a social responsibility to find ways to eradicate homelessness. The article, Helping the homeless get off the streets, takes the functionalist approach to eradicating homelessness, in addition to this approach; the Symbolic Internatio nalist Perspective would be a beneficial addition to the solutionRead MoreOur Group Surveyed Homeless Individuals To Find Out What1016 Words   |  5 Pagesï » ¿Our group surveyed homeless individuals to find out what needs they thought were most important.   We walked around downtown Asheville near Vance Memorial Park, Library and other parts of downtown to understand the environment the homeless live daily. I could only invest two hours on the project due to the lack of communication with BeLoved and finding ways of transportation that will work around everyone’s schedule.   My next steps are to provide a data analysis on the information we collected. Read MoreWhy Do People Become Homelss1750 Words   |  7 PagesASSIGNMENT WHY PEOPLE BECOME HOMELESS AND WHY IT DOESN’T STOP LAVERNA MOORER ARGOSY UNIVERSITY Abstract This paper is going to present to you why people become homeless and why it does not stop Homelessness is a problem that have getting out of hands because of not addressing the situation on time. The focus is not so much the why but, if it will ever stop. Homelessness is a phenomenon that has so much to address research has been done; it was discover that for our government to concentrate onRead MoreHomelessness Is A Growing Problem1429 Words   |  6 Pagesis more than 800,000 homeless individuals in the U.S†. People who are homeless have poorer health and higher mortality than the general population, because of these statistics my program will be targeting the homeless population in our Miami-Dade community who are suffering from tuberculous. Tuberculosis have been recognized as an important health problem among the homeless population, that is why I believe it is very important to teach the homeless population in our community how to prevent the spreadRead MoreThe Effects Of Today s Media On The Homeless Community Essay1696 Words   |  7 PagesThe Effect of Today’s Media On the Homeless Community Brad Jones Cisco College Introduction In today’s society, you see an outstanding amount of homelessness in the streets with no sign of stopping anytime in the near future. These numbers continue to climb with the majority of people blaming it on the homeless individual either being too lazy to get a college (sometimes even high school) degree, too lazy to go and at least try to get a job or a combination of both. With this thought process inRead MoreHomeless Child Education : Homeless Children1678 Words   |  7 PagesHomeless Children Education Several factors severely compromise the ability of homeless children to succeed in school, as I discovered in interviews with 277 homeless families in New York City in 1988. Barriers to the success of these children include health problems, hunger, transportation obstacles, and difficulty obtaining school clothes and suppliesà ¢Ã¢â€š ¬Ã¢â‚¬ all of which are linked to low attendance rates (Rafferty and Rollins 1989). Other factors are associated with the nature of the emergency shelterRead MoreThe Community Action Partnership Of San Luis Obispo County1431 Words   |  6 Pagesall of that area, there are only two active homeless shelters according to the San Luis Obispo Homeless Shelter Directory. The Maxine Lewis Memorial Homeless Shelter provides 50 beds year round, with anywhere between 25-35 additional overflow beds provided by one church every month. The Santa Maria Emergency Shelter Campus has 150 beds available for up to 90 days at a time. Our two homeless shelters can only h ouse up to 235 occupants at a time (SLO Homeless...). At any given time, as I had mentioned

Wednesday, December 11, 2019

Smart Drugs to Enhance Intellectual Performance-Free-Samples

Question: Discuss about the use of smart drugs to enhance intellectual performance. Answer: Introduction The purpose of this task is to provide a brief overview about the use of smart drugs in todays environment. The report tells about the problem caused due to the use of smart drugs and whether its usage enhances intellectual performance or not. Further the task provides possible solutions and proposals for the problems. Smart drugs are the drugs which improve the functions performed by the brain. It improves the capacity of the brain which helps people execute function quickly, memorize activities and initiate creative and motivated activities (Ohashi, e. al., 2014). Smart drugs are also called cognitive enhancers and Nootropic. More details about the use of smart drugs are discussed below: Present Situation Smart drugs are basically drugs which are used by people to improve their capabilities to initaite their activities in better ways and initiate good outcomes. So, this can be regarded as one of the major reasons due to which people intake such drugs. Also this drug is used to treat the cognitive or motor functioning difficulties of people present in their mind. Disorder such as Alzheimers, ADHD, Parkinsons disease and Huntingtons disease are treated with the use of this drug as it helps the brain to such people to function normally (Sahakian, et. al., 2015). Apart from that students also use such type of drugs to increase their productivity to attentiveness to study on the topics. Such of smart can be regarded as smart only if the people using it have some mental disability or it is used by normal person under the prescription of doctor. Further talking about the present scenario it shall be noted that regular of such drugs adversely affect the body of an individual as it makes people addictive to such drugs due to which they start relying on them. Resulting to which, their mind do not function without the use of such drug and it leads to severe neurological disorder (Sahakian, and LaBuzetta 2013). Problem Everything taken to some extent is good for the human body but over intake of any medicine or eatery can negative affect on the human body. So, the fact shall be considered that it cannot be said that smart drugs negatively affects on the health of people but it shall be noted that over usage of such drug can show adverse effects on human brain and whole body. Furthermore talking about the problem which arises due to usage of smart drugs is that people start to depend on drugs and they become addicted to it. Smart drugs acts in such a way that it helps the brain to function more effectively and fast as well. So, the body and brain becomes habitual to this speed of function and if such drugs are not taken then the brain do not respond. The brain has its own functioning but if some drug is taken then the cells present in the brain do not work itself instead it is push but that drug to work, in its absence the cells of the brain are unable to carry the functions of the body on their own (Graeppi-Dulac, et. al., 2014). Possible Solution Talking about possible solution sought by the society worldwide to measure the use of such drugs and prevents its negative effect, the facts that clearly appeared is that neither the government can prohibit the use of such drugs nor people will understand the proper usage of such drugs in body. But still some possible solution have been initiated by the society is by spreading awareness. The medical practitioners have started making people with the adverse effects of over usage of smart drug in the human body (Witt, and Helmstaedter 2017). Also the chemist provides these drugs to people only if the person has prescription of doctor. These are a few possible solutions which are initiated by the people worldwide. But still there is lack of knowledge among people due to which they intake such drugs rapidly. With regards to that, on every smart drugs package the information is mentioned about the right of taking such drugs and with optimum quantity. Lastly, it all depends upon the mindse t of people their understanding that the want to use such drugs on not. If people are convinced with the product that it can increase their brain functioning positively then they will not understand the side effect of such drugs and use it anyway because it cause them pleasure (Jeon 2015). Proposal As discussed above that intake of smart drugs to a limited extent is good but it is harmful for people in long run. Thus, it shall be proposed that the governmental bodies shall regulate the supply of smart drugs in the stores. They shall strictly look after such stores who supplying it ask them to supply it only to the people who have authentic prescription. This will somehow reduce the illegal supply of such drugs and prevent people using it (Joshi Pranav 2013). The government shall look after the content mixed in the drugs as well. It should be formed in a way that it does not harm the health of normal healthy people. In this way somehow smart drugs negative use can be prohibited. Lastly, the awareness programs shall be organized and initiated by the societies so to prevent the negative usage of drugs. Also normal people shall be restricted to its use and the chemist shall aware people and instruct them with the usage while initiating sale (Karpukhin, et. al., 2014). Conclusion Thus in the limelight of above mentioned events, the facts that shall be noted is that limited intake of smart drugs is good for the human body. But people need to understand the crucial circumstances of using such drugs as it hampers the growth of the brain and makes it rely on the drugs only. It shall not be said that smart drugs are adverse for the human body but adequate consumption according to the prescriptions is good. People regularly use it increase their energies which after some time show its negative result on the human body. References Graeppi-Dulac, J., Vlaeminck-Guillem, V., Perier-Muzet, M., Dalle, S. and Orgiazzi, J., 2014. Endocrine side-effects of anti-cancer drugs: the impact of retinoids on the thyroid axis.European journal of endocrinology,170(6), pp.R253-R262. Jeon, J.P., 2015. Nootropics for Healthy Individuals. Joshi Pranav, C., 2013. A review on natural memory enhancers (Nootropics).Unique Journal of Engineering and Advanced Sciences,1(01), pp.8-18. Karpukhina, O.V., Gumargalieva, K.Z., Bokieva, S.B. and Inozemtsev, A.N., 2014. Heavy metals change effects of piracetam on learning and memory.Journal of Nature Science and Sustainable Technology,8(3), p.439. Ohashi, K., Dalleur, O., Dykes, P.C. and Bates, D.W., 2014. Benefits and risks of using smart pumps to reduce medication error rates: a systematic review.Drug safety,37(12), pp.1011-1020. Sahakian, B. and LaBuzetta, J.N., 2013.Bad Moves: How decision making goes wrong, and the ethics of smart drugs. OUP Oxford. Sahakian, B.J., Bruhl, A.B., Cook, J., Killikelly, C., Savulich, G., Piercy, T., Hafizi, S., Perez, J., Fernandez-Egea, E., Suckling, J. and Jones, P.B., 2015. The impact of neuroscience on society: cognitive enhancement in neuropsychiatric disorders and in healthy people.Phil. Trans. R. Soc. B,370(1677), p.20140214. Witt, J.A. and Helmstaedter, C., 2017. How can we overcome neuropsychological adverse effects of antiepileptic drugs?.

Tuesday, December 3, 2019

The New World Order Essays - World Government, Global Civics

The New World Order The idea of a New World Order has been around for a long time. This ideal centers around the concept of a one world government led by the United Nations. Many have praised the idea of a New World Order, including some of our very own Presidents of the United States, while other stand against the idea all together. In theory the idea of a one world government would be nice, uniting the world as one, however the shortcomings, in my opinion, out weigh the positive factors. In 1989, the Cold War ended with the fall of the Berlin Wall, and the post-war ordeals ended only two years later with the collapse of the Soviet Union. The Kosovo crisis has tagged an end to ten years of disorder and uncertainty with international politics and a breakthrough of a new order for the up and coming century. Today the world is dominated by the idea of economic globalisation, that must be backed up by a new global security arrangement. (http://www.monde-diplomatique.fr) A suggested idea for the 21st century government has been the ideology of the New World Order, one world government lead by the United Nations. It would create new forms of global economics, global politics and overlapping and diminishing cultures. The economic system would be based financial and momentary supported by the New World Order. State borders would be either severely reduced or erased in order to create a one-world government for the New World Order. Some or all this may sound quite appealing bu t it would come with many strings attached, many consequences and many drawbacks. In a New World Order, as proposed by Mehdi Alavi author of A New World Order: Democracy, Civility and World Peace, government would be based on the Law of Nature, or the Natural Law. This would consist of global peaceful participation, majority rule and respect for human rights. Although this may sound good on paper, the drawbacks and consequences are never mentioned in the book. Some of the major problems with the notion of a New World Order are that the states would experience a loss of identity, power and sovereignty as well as combined and/or lost cultures for the citizens of the world.(Alavi) In Article 3 of the Declaration of the Rights of Man and Citizen of 1789, it is stated that "the principle of all sovereignty resides essentially in the nation." This means that governments are entitled to settle conflicts within their own states according to their own laws without interference form the outside. By creating a New World Order state governments would not only have outside interference in upholding their laws they might not even exist at all. It is true that some states have been noting for abusing this law against their own citizens, in cases like forbidding other states to come to the help of their victims as in Yugoslavia. Such cases are not heard of quite often, and are certainly the minority. If the law from 1789 were to be broken, states would lose a great deal of authority, power, respect and ability to stay in charge.(http://www.monde-diplomatique.fr) The concept of globalization, both economically and otherwise, will prove to cause another set of major problems. States identities as well as their sovergnity will be undermined if not lost all together. It would cause for the abolishment of states and combining cultures. Since sovereignty would now not lie solely with the states there could possibly be a new concept of a world wide system of limited sovergnity, which might possibly lead to a another concept of a sovereign individual. .(http://www.monde-diplomatique.fr) By creating a one-world government all the various cultures of the world would be forced to mesh together creating a "monolithic, homogeneous global culture." (http://www.monde-diplomatique.fr) Genuine diversity and uniqueness along with roots and traditions would be destroyed. If the New World Order was to occur a world of traditional cultural and communal relations cannot be expected. Rather a world of human beings with no distinctive ties or loyalties would result. It would lead to the destruction of community and society. The idea of a one-world order would cause for the sacrifice of people's national interests and security, in order for the idea to