Sunday, December 29, 2019

Load a DLL From a Resource Directly From Memory

Article idea by Mark E. Moss The article how to store a DLL inside a Delphi program exe file as a resource explains how to ship a DLL with your Delphi application executable file as a resource. Dynamic link libraries contain sharable code or resources, they provide the ability for multiple applications to share a single copy of a routine (or resource) they have in common. Using resource (.RES) files, you can embed (and use) sound files, video clips, animations and more generally any kind of binary files in a Delphi executable. Loading DLLs From Memory if a DLL stored in a RES can be used without first saving it on the file system (hard disk) According to the article Loading a DLL from memory by Joachim Bauch, this is possible. Heres how Joachim looks at the issue: The default windows API functions to load external libraries into a program (LoadLibrary, LoadLibraryEx) only work with files on the filesystem. Its therefore impossible to load a DLL from memory. But sometimes, you need exactly this functionality (e.g. you dont want to distribute a lot of files or want to make disassembling harder). Common workarounds for this problems are to write the DLL into a temporary file first and import it from there. When the program terminates, the temporary file gets deleted. The code in the mentioned article is C, the next step was to convert it to Delphi. Luckily, this has already been done by Martin Offenwanger (the author of DSPlayer). Memory Module by Martin Offenwanger is an extended Delphi (and also Lazarus) compatible version of Joachim Bauchs C Memory Module 0.0.1. The zip package includes the complete Delphi source code of the MemoyModule (BTMemoryModule.pas). Furthermore theres a Delphi and sample included to demonstrate how to use it. Loading DLLs From Resources From Memory If a demo DLL is stored as a resource using the RC file: DemoDLL RCDATA DemoDLL.dll varms : TMemoryStream;rs : TResourceStream;beginif 0 FindResource(hInstance, DemoDLL, RT_RCDATA) thenbeginrs : TResourceStream.Create(hInstance, DemoDLL, RT_RCDATA);ms : TMemoryStream.Create;tryms.LoadFromStream(rs);ms.Position : 0;m_DllDataSize : ms.Size;mp_DllData : GetMemory(m_DllDataSize);ms.Read(mp_DllData^, m_DllDataSize);finallyms.Free;rs.Free;end;end;end; varbtMM: PBTMemoryModule;beginbtMM : BTMemoryLoadLibary(mp_DllData, m_DllDataSize);tryif btMM nil then Abort;m_TestCallstd : BTMemoryGetProcAddress(btMM, TestCallstd);if m_TestCallstd nil then Abort;m_TestCallstd(This is a Dll Memory call!);exceptShowmessage(An error occoured while loading the dll: BTMemoryGetLastError);end;if Assigned(btMM) then BTMemoryFreeLibrary(btMM);end; Have / Create a DLLStore the DLL in a RES fileHave BTMemoryModule implementation.Grab the DLL from the resource and load it directly into memory.Use BTMemoryModule methods to execute procedure from the DLL in memory. BTMemoryLoadLibary in Delphi 2009, 2010, ... The linked BTMemoryModule.pas does not work with Delphi 2009 (and I would assume Delphi 2010 also).I found a similar version of the BTMemoryModule.pas file a while ago, and made changes so it works with (at least) Delphi 2006, 2007 and 2009. My updated BTMemoryModule.pas, and a sample project, are at BTMemoryLoadLibary for Delphi 2009

Saturday, December 21, 2019

Should Gay Marriage Be Equal - 1387 Words

Gay Marriage in America The United Stated of America consists of many different types of people, all who take pride in their freedom. Recently, we had seen the reality of our â€Å"freedom,† which some may not really have considered America the land of the free, homosexuals especially. Just like the â€Å"normal† citizen in America, homosexuals like the idea of the American dream as well. And most Americans believe in, or enjoy the idea of marriage. People get married all across the country; people of all races, religion, ethnicity, and as of June 26th, 2015, people of the same sex may also enjoy that privilege to be happy as well. Anyone who believes in love shall be able to marry as they please, regardless of their preferences. Homosexuals should†¦show more content†¦The Roman Catholic Church opposes same sex marriage, and American bishops, stating that â€Å"marriage is a faithful, exclusive and lifelong union between one man and one woman,† strongly support the FMA. The United Church of Christ, in 2005, became the first major Christian denomination to give official support to same sex marriage. In 2009 the Episcopal Church voted not to block same sex marriages in dioceses that chose to perform them. More fundamentalist churches, such as the Southern Baptist Convention, however, have actively opposed same sex marriage and homosexuality. Unitarian Universalist churches unequivocally support same sex marriage. Even though certain religions may or may not support same sex marriage, attitudes among churchgoers may differ considerably from those of church officials.† And although same sex marriage is now legal, many churches are standing firm of their beliefs that gay marriage and will not allow gay couples to have their marriage ceremonies at the church. â€Å"Same sex marriage and homosexuality is a sin,† is what some people are taught and believe, which according to The Holy Bible, is very much true. In â€Å"Leviticus† 18:21-22 and â€Å"Leviticus† 20:13, the Bible talks about the sexual acts of man and man and woman and woman and how they are not right, and God does not approve of them. So yes, if you believe in The Holy Bible, it is a sin. But

Friday, December 13, 2019

Professionalism in Sports Free Essays

string(91) " in the practice games, train more or less, and get a great deal of benefit from the work\." PROFESSIONALISM IN SPORTS August 1890 – The North American Review It is hardly necessary at the present day to enter a plea for athletic exercise and manly outdoor sports. During the last twenty-five years there has been a wonderful growth of interest in and appreciation of healthy muscular amusements; and this growth can best be promoted by stimulating, within proper bounds, the spirit of rivalry on which all our games are based. The effect upon the physique of the sedentary classes, especially in the towns and cities, has already been very marked. We will write a custom essay sample on Professionalism in Sports or any similar topic only for you Order Now We are much less liable than we were to reproaches on the score of our national ill health, of the bad constitutions of our men, and of the fragility and early decay of our women. There are still plenty of people who look down on, as of little moment, the proper development of the body; but the men of good sense sympathize as little with these as they do with the even more noxious extremists who regard physical development as an end instead of a means. As a nation we have many tremendous problems to work out, and we need to bring every ounce of vital power possible to their solution. No people has ever yet done great and lasting work if its physical type was infirm and weak. Goodness and strength must go hand in hand if the Republic is to be preserved. The good man who is ready and able to strike a blow for the right, and to put down evil with the strong arm, is the citizen who deserves our most hearty respect. There is a certain tendency in the civilization of our time to underestimate or overlook the need of the virile, masterful qualities of the heart and mind which have built up and alone can maintain and defend this very civilization, and which generally go hand in hand with good health and the capacity to get the utmost possible use out of the body. There is no better way of counteracting this tendency than by encouraging bodily exercise, and especially the sports which develop such qualities as courage, resolution, and endurance. The best of all sports for this purpose are those which follow the Macedonian rather than the Greek model: big-game hunting, mountaineering, the chase with horse and hound, all wilderness life with all its keen, hardy pleasures. The hunter and mountaineer lead healthier lives in time of need they would make better soldiers than the trained athlete. Nor need these pleasures be confined to the rich. The trouble with our men of small means is quite as often that they do not know how to enjoy pleasures lying at their doors as that they cannot afford them. From New York to Minneapolis, from Boston to San Francisco, there is no large city from which it is impossible to reach a tract of perfectly wild, wooded or mountainous land within forty-eight hours; and any two young men who can get a months holiday in August or September cannot use it to better advantage than by tramping on foot, pack on back, over such a tract. Let them go alone; a season or two will teach them much woodcraft, and will enormously increase their stock of health, hardihood, and self-reliance. If one carries a light rifle or fowling-piece, and the other a fishing rod, they will soon learn to help fill out their own bill of fare. Of course they must expect to find the life pretty hard, and filled with disappointments at first; but the cost will be very trifling, and if they have courage, their reward is sure to come. However, most of our people, whether from lack of means, time, or inclination, do not take to feats of this kind, and must get their fun and exercise in athletics proper. The years of late boyhood and early manhood say from twelve or fourteen to twenty-eight or thirty, and often until much later are those in which athletic sports prove not only most attractive, but also most beneficial to the individual and the race. In college and in most of the schools which are preparatory for college rowing, foot-ball, base-ball, running, jumping, sparring, and the like have assumed a constantly increasing prominence. Nor is this in any way a matter for regret. Of course any good is accompanied by some evil; and a small number of college boys, who would probably turn out badly anyhow, neglect everything for their sports, and so become of little use to themselves or any one else. But as a whole college life has been greatly the gainer by the change. Only a small proportion of college boys are going to become real students and do original work in literature, science, or art; and these are certain to study their best in any event. The others are going into business or law or some kindred occupation; and these, of course, can study but little that will be directly of use to them in after-life. The college education of such men should be largely devoted to making them good citizens, and able to hold their own in the world; and character is far more important than intellect in making a man a good citizen or successful in his calling meaning by character not only such qualities as honesty and truthfulness, but courage, perseverance, and self-reliance. Now, athletic sports, if followed properly, and not elevated into a fetish, are admirable for developing character, besides bestowing on the participants an invaluable fund of health and strength. In each of the larger colleges there are from fifty to a hundred men who, on the various class and college crews and ball teams, or in the track and gymnasium games, compete for the different championships; and for every one such man who actually competes there are five or ten who take part in the practice games, train more or less, and get a great deal of benefit from the work. You read "Professionalism in Sports" in category "Essay examples" The careful system of measurements which have been taken at Harvard shows a marked improvement in the physique of the men even during the last ten years; and what is more important this shows that this improvement is, if anything, more marked in the case of the average man than in that of the picked champions. The colleges contain but a small proportion of the men interested in amateur athletics, as can be seen by the immense number of ball clubs, rowing clubs, polo clubs, hunt clubs, bicycle clubs, snow-shoe clubs, lacrosse clubs, and athletic clubs proper which are to be found scattered among our cities and towns. Almost any man of sedentary life who wishes to get exercise enough to keep him in vigorous health can readily do so at one of these clubs; and an increasing proportion of our young men are finding this out and acting accordingly. More than one of our most famous athletes originally took to athletics for his health; and, on the other hand, be it remembered always that the sports which prove most bene- ficial bodily to a man are those which interest and amuse him. If he belongs to a rowing club or baseball nine, the eagerness and excitement of a contest with a rival association spur him on to keep his body in good condition; and, as with the college athletes, there are scores of outsiders, whom these championship contests attract, and whose love for athletics is increased thereby, for every individual contestant who directly participates in them. It is needless to say that under the head of manly sports I do not in elude pigeon-shooting; and still less rabbit-coursing, or any other game where the man does nothing but look on. Already this awakening of interest in manly sports, this proper care of the body, have had a good effect upon our young men; but there are, of course, accompanying dangers in any such movement. With very few exceptions the man who makes some athletic pursuit his main business, instead of turning to it as a health-giving pastime, ceases to be a particularly useful citizen. Of course I do not refer to the men who act as trainers and instructors at the different colleges and clubs ; these perform a most useful and honorable function, and among them several could be named who have rendered as high service as any men in the community. But the amateur athlete who thinks of nothing but athletics, and makes it the serious business of his life, becomes a bore, if nothing worse. A young man who has broken a running or jumping record, who has stroked a winning club crew, or played on his college nine or eleven, has a distinct claim to our respect; but if, when middle-aged, he has still done nothing more in the world, he forfeits even this claim which he originally had. It is so in an even more marked degree with the professional athlete. In America the difference between amateurs and professionals is in one way almost the reverse of what it is in England, and accords better with the ways of life of our democratic community. In England the average professional is a man who works for his living, and the average amateur is one who does not; whereas with us the amateur usually is, and always ought to be, a man who, like other American citizens, works hard at some regular calling, it matters not what, so long as it is respectable, while the professional is very apt to be a gentleman of more or less elegant leisure, aside from his special pursuit. The mere statement of the difference is enough to show that the amateur, and not the professional, is the desirable citizen, the man who should be encouraged. Our object is to get as many of our people as possible to take part in manly, healthy, vigorous pastimes, which will benefit the whole nation; it is not to produce a limited class of athletes who shall make it the business of their lives to do battle with one another for the popular amusement. Most masterful nations have shown a strong taste for manly sports. In the old days, when we ourselves were still a people of backwoodsmen, at every merrymaking there were sure to be trials f skill and strength, at running, wrestling, and rifleshooting, among the young men. We should encourage by every method the spirit which makes such trials popular; it is a very excellent revival of old-time American ways. But the existence of a caste of gladiators in the midst of a population which does not itself participate in any manly sports is usu ally, as it was at Rome, a symptom of national decadence. The Romans who, when the stern and simple strength of Rome was departing, flocked to the gladiatorial shows, were influenced only by a ferocious craving for bloody excitement; not by any sympathy with men of stout heart and tough sinew. So it is, to a lesser extent, today. In baseball alone, the professional teams, from a number of causes, have preserved a fairly close connection with non-professional players, and have done good work in popu- larizing a most admirable and characteristic American game ; but even here the outlook is now less favorable, and, aside from this one pastime, professionalism is the curse of many an athletic sport, and the chief obstacle to its healthy development. Professional rowing is under a dark cloud of suspicion because of the crooked practices which have disgraced it. Horse-racing is certainly not in an ideal condition. A prize-fight is simply brutal and degrading. The people who attend it, and make a hero of the prizefighter, are, excepting boys who go for fun and dont know any better,to a very great extent, men who hover on the border-line of criminality; and those who are not are speedily brutalized, and are never rendered more manly. They form as ignoble a body as do the kindred frequenters of rat-pit and cock-pit. The prizefighter and his fellow professional athletes of the same ilk are, together with their patrons in every rank of life, the very worst foes with whom the cause of general athletic development has to contend – THEODORE ROOSEVELT. How to cite Professionalism in Sports, Essay examples

Thursday, December 5, 2019

Biotechnology Membrane Protein

Question: Describe about the Biotechnology for Membrane Protein. Answer: 1. As the G-coupled protein receptor are also an important class of membrane protein. Therefore the approach and technique that should be taken to determine the molecular structure of a particular G-coupled protein receptor is done by comparing the experimental mass date of the G-coupled protein receptor with the theoretical mass data that is generated from the previously predicted protein sequence. The homology comparison can very useful in this approach because it can identify the changes in the modification and the expression of the protein under different conditions. The techniques used for this approaches is at first the protein is separated by the process of 2D gel electrophoresis (Schaal et al. 2012). The 2D chromatography like the ion exchange chromatography and reverse phase high performance liquid chromatography (HPLC) can be more effective than the 2D gel in some cases such as the low abundance or hydrophobic proteins. Then the protein spot is to be cut from the gel and th en the protein is digested by different protease enzyme like trypsin. This digestion will generate a unique fragment pattern or finger print. After this mass spectroscopy is used for the analysis of this fragment. The mass spectroscopy will generate a protein specific mass finger print. To identify the protein the mass finger print of the protein which is tested is then matched with the predicted mass finger print of several proteins that are present in the protein sequence data bases (Sugimoto et al. 2012 pp.96-108). For this matching process many web based programs are available which assist the searching procedure of the sequence databases with the data of the mass spectrometry. The web based available programs that are present online are MS-Fit, Mascot ms/ms and Mascot PMF. The reason behind using the mass spectroscopy for the determining the molecular structure of the protein is that the results of the mass spectroscopy is very sensitive and accurate. The result of the mass spe ctroscopy is also very fast, these are the reason that mass spectroscopy has become the indispensable technique for the analysis of the biomolecules. Figure 1 Graph of Gel Electrophoresis Source: (Google.co.in, 2016) 2. The hormones are one type of protein and so if the researcher have to find which hormones are involved in causing the particular type of prostate cancer. The researcher have to understand the protein- protein interaction. To study protein-protein interaction several biophysical, genetic and biochemical experimental methods have been developed. For the understanding the protein-protein interaction that researcher can utilize is Fluorescence resonance energy transfer (FRET). In this technique the two hormone proteins are to tag one with the Cyan fluorophore protein (CFP) and the other with the yellow fluorophore protein (YFP). The CFP is excited light of wavelength of 436nm and if the protein- protein interaction does not occur then the excitation of the CFP results in the emission of the light at a wavelength of 475nm on the other hand if the protein- protein interaction occurs perfectly then the CFP and the YFP are brought into close proximity. This leads to the energy transfer fr om the CFP to the nearby YFP. This energy transfer is referred to as FRET. The light emission from the YFP can be detected at a wavelength of 528nm. In this process it will become evident that whether this protein-protein interaction is occurring in the normal cells or in the cancer cells just by comparing their activities (Yuan et al. 2013 pp.1462-1473). Figure 2 Fluorescence resonance energy transfer (FRET) Source: (De Baerdemaeker et al. 2013) Figure 3 Graph of FRET Source: (Google.co.in, 2016) 3. As the ATP synthase of the novel organism is functional and it has essential subunits that are homologous to only 5 essential subunits out of the 8 essential subunits present in the ATP synthase of the all the studied organisms. These subunits are essential for several complex functions. From these findings it can be concluded that the 3 different subunits present in the ATP synthase of the novel organism possess the ability to fulfil all the functional roles of the missing essential subunits. To identify the novel subunits first the proteins of the subunits of both the novel organism and the other studied organisms are to be isolated with the help of gel electrophoresis (Jordan and Dalmasso, 2015). Then taking proteins of the subunits that are similar to the missing essential subunits are digested with the help of the protease enzyme. This type of digestion will generate a unique fragment pattern which will act as finger print which is analysed by mass spectroscopy (Adams, 2012). The mass finger print generated due to mass spectroscopy is then used to find homology between the proteins of the novel organism and the proteins present in the protein sequence data base. To perform this homology identification different web based programs like Mascot ms/ms, MS-Fit and Mascot PMF can be used. Figure 4 Graph of Mass spectroscopy Source: (Google.co.in, 2016) Reference Adams, R.P., 2012. Identification of essential oils by ion trap mass spectroscopy. Academic Press. De Baerdemaeker, T., Lemmens, B., Dotremont, C., Fret, J., Roef, L., Goiris, K. and Diels, L., 2013. Benchmark study on algae harvesting with backwashable submerged flat panel membranes. Bioresource technology, 129, pp.582-591. Google.co.in. (2016). Images of graph of FRET - Google Search. [online] Available at: https://www.google.co.in/search?q=Images+of+graph+of+FRETespv=2tbm=ischimgil=gU7Xvuc-iqk6ZM%253A%253Bnlcc0TO9FWSlXM%253Bhttp%25253A%25252F%25252Fwww.semrock.com%25252Ffret.aspxsource=iupf=mfir=gU7Xvuc-iqk6ZM%253A%252Cnlcc0TO9FWSlXM%252C_usg=__UN4X3UDAeFIZXoPKNuLKluWjuhs%3Dbiw=1366bih=613ved=0ahUKEwi-z8KIpPXPAhWIPI8KHX1SB14QyjcIOQei=ePUOWL6zCYj5vAT9pJ3wBQ#imgrc=gU7Xvuc-iqk6ZM%3A [Accessed 25 Oct. 2016]. Google.co.in. (2016). images of graphs of gelelectrophoresis - Google Search. [online] Available at: https://www.google.co.in/search?q=images+of+graphs+of+gelelectrophoresisespv=2tbm=ischimgil=DeqUs2WJ0lgviM%253A%253Bny3QtfrsQkL2NM%253Bhttps%25253A%25252F%25252Focw.mit.edu%25252Fcourses%25252Fbiological-engineering%25252F20-109-laboratory-fundamentals-in-biological-engineering-fall-2007%25252Flabs%25252Fmod1_2source=iupf=mfir=DeqUs2WJ0lgviM%253A%252Cny3QtfrsQkL2NM%252C_usg=__sGH4UamU30NFaGaqYHsx6MowtJk%3Dbiw=1366bih=613ved=0ahUKEwjDrfzPn_XPAhXIRY8KHWH3AGEQyjcINgei=z_AOWIOKMsiLvQTh7oOIBg#imgrc=DeqUs2WJ0lgviM%3A [Accessed 25 Oct. 2016]. Google.co.in. (2016). images of mass spectroscopy graph of 8 proteins - Google Search. [online] Available at: https://www.google.co.in/search?espv=2biw=1366bih=613tbm=ischsa=1q=images+of+mass+spectroscopy+graph+of+8+proteinsoq=images+of+mass+spectroscopy+graph+of+8+proteinsgs_l=img.3...436785.441114.0.441465.0.0.0.0.0.0.0.0..0.0....0...1c.1.64.img..0.0.0.yHwvTAXUdt8 [Accessed 25 Oct. 2016]. Jordan, K. and Dalmasso, M., 2015. Pulse field gel electrophoresis. Methods in Molecular Biology, 1301. Schaal, B.A. and Anderson, W.W., 2012. 74-3 An outline of techniques for starch gel electrophoresis of enzymes from the American Oyster Crassostrea virginica Gmelin. Sugimoto, M., Kawakami, M., Robert, M., Soga, T. and Tomita, M., 2012. Bioinformatics tools for mass spectroscopy-based metabolomic data processing and analysis. Current bioinformatics, 7(1), pp.96-108. Yuan, L., Lin, W., Zheng, K. and Zhu, S., 2013. FRET-based small-molecule fluorescent probes: rational design and bioimaging applications. Accounts of chemical research, 46(7), pp.1462-1473.