Friday, November 8, 2019

Streams, Streams, TStream in Delphi

Streams, Streams, TStream in Delphi What Is a Stream? TStream? A stream is what its name suggests: a flowing river of data. A stream has a beginning, an end, and youre always somewhere in between of these two points. Using Delphis TStream objects you can read from or write to various kinds of storage media, such as disk files, dynamic memory, and so on. What Data Can a Stream Contain? A stream can contain anything you like, in the order you like. In the example project accompanying this article, fixed-size records are used for simplicity purposes, but you can write any mix of variable-sized data to a stream. Remember however, that _you_ are responsible for the householding. There is no way Delphi can remember what kind of data are in a stream, or in what order! Streams Versus Arrays Arrays have the disadvantage of having a fixed size that must be known at compile time. Ok, you can use dynamic arrays. A stream on the other hand, can grow up to the size of available memory, which is considerably large size on todays systems, without any householding chores. A stream cannot be indexed, as an array can. But as youll see below, walking up and down a stream is very easy. Streams can be saved/loaded to/from files in one simple operation. Flavors of Streams TStream is the base (abstract) class type for stream objects. Being abstract means that TStream should never be used as such, but only in its descendant forms. For streaming any kinds of information, choose a descendant class according to the specific data and storage needs. For example:   TFileStream (for working with files)TMemoryStream (for working with a memory buffer)TStringStream (for manipulating in-memory strings)TBlobStream (for working with BLOB fields)TWinSocketStream (for reading and writing over a socket connection)TOleStream (for using a COM interface to read and write) As youll see, TmemoryStream and TFileStream are remarkably interchangeable and compatible. Download  sample project!

Wednesday, November 6, 2019

Biblical Truths Essays - Prophecy, Christian Fundamentalism

Biblical Truths Essays - Prophecy, Christian Fundamentalism Biblical Truths The Bible Teaches many truths about itself. 1. It claims God as its author All Scripture is given by inspiration of God, and is profitable for doctrine, for reproof, for correction, for instruction in righteousness. - 2 Timothy 3:16 Knowing this first, that no prophecy of Scripture is of any private interpretation, for prophecy never came by the will of man, but holy men of God spoke as they were moved by the Holy Spirit. -2 Peter 1:20-21 2. It claims that it is innerant and infallible The law of the Lord is perfect, converting the soul; the testimony of the Lord is sure, making wise the simple; the statutes of the Lord are right, rejoicing the heart; the commandment of the Lord is pure, enlightening the eyes. Psalm 19:7-8 Every word of God is pure; He is a shield to those who put their trust in Him. Do not add to His word, lest He rebuke you, and you be found a liar. Proverbs 30:5-6 3. It claims that it is complete For I testify to everyone who hears the words of the prophecy of this book: if anyone adds to these things, God will add to him the plagues that are written in this book; and if anyone takes away from the words of the book of this prophecy, God shall take away his part from the Book of Life, from the holy city, and from the things which are written in this book. Revelation 22:18-19 4. It claims to authoritative All Scripture is given by inspiration of God, and is profitable for doctrine, for reproff, for correction, for instruction in righteousness, that the man of God may be complete, thoroughly equipped for every good work. 2 Timothy 3:16-17 5. It claims to be effective So shall My word be that goes forth from My mouth; it shall not return to Me void, but it shall accomplish what I please, and it shall prosper in the thing for which I sent it. Isaiah 55:11 6. It claims to be interpretive He who is of God hears Gods words; therefore you do not hear, because you are not of God. John 8:47 The Bible offers limitless

Monday, November 4, 2019

Is Levittown (N.Y) a symbol of American progress, or should it be Essay

Is Levittown (N.Y) a symbol of American progress, or should it be considered a symbol of American prejudice - Essay Example Nevertheless, the long seeded racism cultivates in the town against all races other than Caucasian. Even today, a vast majority of the inhabitants of Levittown are white Americans. According to the 1990 census, 97.37 percent of the inhabitants of Levittown were White Americans (The New York Times, 1997, p. 2). Three years later, in the 2000 census, â€Å"[t]he racial makeup of the CDP was 94.36% White, 2.45% African American, 0.16% Native American, 0.96% Asian, 0.04% Pacific Islander, 0.86% from other races, and 1.17% from two or more races† (Hispanis Dose, n.d.). Owing to the subdued rights of non-Caucasian Americans in Levittown, it is a symbol of prejudice for America. Cultivation of racism in the Long Islands is detrimental even for the racists. Long Islanders have conventionally made every attempt to keep their Island from according with the notion of â€Å"becoming just like Queens† (Newsday, 2002). The fundamental ideology of Long Islanders is that to be Queens-l ike is to be urban, which is not something to feel proud of. In order for the Long Islands like Levittown to be considered good, they have to be suburban with a lot of wealth, safety and most importantly, whiteness! However, â€Å"[i]n their effort to keep things as they are, however, Long Islanders are strangling their own chance of maturing as an economic center and as a vibrant, viable region† (Newsday, 2002). By making the Long Islands race specific, the developers have narrowed the chances of occupancy of their own children on them. They tend to ruin all opportunities to solve the usual issues of protecting open space, controlling overdevelopment, revitalizing the downtown regions, limiting taxes, and most importantly, handling racism. Racism in Long Islands like Levittown moves from private life of individuals to the societal arena. It may frequently show up in public gatherings in terms of racial appellations displayed on the buildings, and humiliation offered to the f amilies of color by the white people residing in the neighborhood. Beatings find origin in racism in such circumstances. Levittown is one of the Long Islands where this happened in particular. Levittown is the first suburb for the American nation after the war. Black soldiers were denied access to this largest housing scheme in the history of America. Since that time, the town has increased in subtleness manifolds, assisting the establishment of a wide range of institutions ranging from schools and boutiques to hospitals. The consequential circumstances have made it difficult for the establishment to take care of the mushrooming problems. The disparity between the rights of Caucasian Americans and non-Caucasian Americans is detrimental for the peace of the town. Long Islanders tend to achieve self control and develop the economic ability to become indifferent to the state of the rest of the nation. The multiple government layers that results in such a system adds so much volume to t he taxes that they promote isolation of the racial grounds. The process of development is curbed by the fragmentation of leadership and it becomes much harder to abolish racism. The price of houses in the Long Islands like Levittown has conventionally been the maximum among all states in the US. The unusually high prices also find a relation to the racism. If the houses become affordable to the public in general, they

Friday, November 1, 2019

Assessment item 2 Essay Example | Topics and Well Written Essays - 2000 words

Assessment item 2 - Essay Example The data they will derive shall be organized and analyzed for measures of center, which will be represented on a bar chart of line plot. 4. They put in the data about the raisins on the worksheets to compare the guesses and estimates, and go around the pairs to collect data garnered by the whole class in order to get for the minimum, maximum and median and mode. If the graph plots values against their frequency in the data, then the values are displayed along the horizontal axis, while the height of each column indicates the number of data elements that have that value. The first task shows students how to go about guessing, estimating, and all the preliminary information necessary to gather, organize, and analyze the data and values derived. It also introduce students to representations of data namely the bar graph and the line plot. From the knowledge and skills they derive from this activity, they get to apply it to the second task. Whereas the first task offered grouped data since everyone used the same data sources, the second task offered ungrouped data where students can collect from various sources of their choice. The first task may be considered teacher-directed while the second task gives the students more leeway to conduct their own investigations.   First to Twenty One: The game First to 21 gives students opportunities to explore the differences between mathematical and social fairness. With the deck of cards, each player takes one and adds up the value of the cards they pick until they reach the value of 21 or over. The last player who picks that card reaching 21 or over wins. 3. Player 1 goes first and chooses the top card and says its value. Player 2 does the same and adds the value of his card to that of Player 1’s. The two players take turns taking a card and announcing its value, adding it to the combined

Wednesday, October 30, 2019

The influence of the holy mosque of Mecca within popular culture Essay

The influence of the holy mosque of Mecca within popular culture - Essay Example The city of Mecca and the holy mosque has changed over the years. The pilgrimage in Mecca draws around two million to three million people from all over the world to go worship at the Mosque. The city has now become a modern spectacle and people talk about going to Mecca simply because it is popular and not for the significance of it and the pilgrimage (Bosworth, 2007). People send a lot of photos and messages from the site and share them on social media. The popular culture has a lot of influence on people all over the world. People have the pressure of sharing the information and experience of the pilgrimage with the world. The pilgrimage at Mecca has been described as being in twenty super bowls with two million people play the game. The holiest part of the pilgrimage is put to the side, and people decide to focus on all the hype and fun of millions of people visiting Mecca (Stefano, 2000). Saudi Arabia gets a lot of revenue from the event, and it has improved the countrys economy immensely. Mecca has a powerful influence on the other Muslim nations and the Muslims look for opportunities and a chance to be able to visit Mecca in their lifetime (Bosworth, 2007). Most of the people interviewed concerning their reasons for wanting to visit Mecca have answers connected to popular culture instead of it being a holy land. Most of the people want to visit the city and the mosque because it is popular, and people who visit them are considered important in the world. Visiting the city during the annual Hajj is quite expensive, and there are several festivities that accompany the pilgrimage. It is a luxury to visit the city, and people want to go visit the place to have a respectable name in the society. Western culture has a significant influence on the events that take place in Mecca. The people who can afford to go to the holy mosque are urged to make sure they go. The current culture in the world has made Hajj be an event of

Monday, October 28, 2019

Of Kind and Cruel Fates Essay Example for Free

Of Kind and Cruel Fates Essay Irony, in its essence, is the humor of contradiction. It is contradiction, in the sense that where we would expect events to lean on one way, events instead completely take the opposite direction. A crude example would be where a string of freak accidents occur at a factory where the manager is showing off to his potential clients that his company is â€Å"accident-free†. Irony is humorous because if one saw it with impartiality, one would find it funny. Having a car accident right after a road is â€Å"improved† to avoid further accidents, would be funny. To study irony further, one could study an average persons sense of humor. While as a child, he may delight in the curiosities of the environment, eventually he becomes adjusted to seeing it everyday, and eventually his enjoyment of it fades. Humor takes on a different characteristic for him. There is the slapstick comedy, where he finds the antics of the performers as funny and absurd, and there is the situational comedy, where he finds funny ordinary people falling to ridiculous situations. The common thread to this humor is that it attacks at something. Whether it is to ridicule a person behaving out of the social norm (as the slapstick), or to ridicule a persons belief or principle that is generally viewed as absurd (the parody), the higher the degree of abuse at the object of humor, the funnier. Irony, then, is humorous in the sense that it attacks something, through its contradiction. As an impartial viewer, we may find funny things that we know to be true as envisioned by the ironic set-up, but which is obscured in the minds of those who are involved in the irony. Humor moreover has intrinsic values it seeks to instill to its impartial witnesses, and consequently irony occurs as some way to inform the viewer of a cosmic lesson. We can delve in this further through the study of three stories, Tartuffe, The Princess of Cleves, and Nathan the Wise. There are several ironic situations that occur throughout the play Tartuffe. The story revolves around a household scandalized by having its head (the father) entertain and welcome as part of the family a man who openly and vocally shows his displeasure at what he deems as vices borne by the various members of the family and the house. One of the first ironic situations occurs with the son, Damis, who hides in the room while Tartuffe has a private conversation with his mother, Elmire. His intention is to unmask Tartuffe to his father as a hypocrite and get him out of the house (Moliere, 39-46). When he finally sees evidence of the mans scandalous behavior towards his mother and reveals it to his father, not only does his father not believe (owing to the hypocrites skillful use of words), but has Damis instead kicked out and even encourages Tartuffe to continue his scandalous behavior towards his wife, in order to spite his family (47-51). The humor in the situation centered on how big a fool the father was to believe in Tartuffes virtue, and an even bigger fool not to see the truth when it is right in front of him. This is further stressed in the next ironic situation, where after Orgon (the father) finally realizes the extent of his friends deceit, he tries to tell his mother, who was also fooled by the hypocrite. For all his protestations she does not believe him until she sees it herself (Moliere, 68-71). The irony is that where he once ignored the loud protests of his family, likewise his mother does not believe him, even for his loud protests. The final ironic twist, however, turns out for the good as the hypocrite Tartuffe, having been unmasked and set his plans for revenge, intrigues on the King and plans to have them all arrested, only to have him as the object of arrest, as the King was â€Å"wise† to his intrigues (77-80). The play has these alternating reversal of fortunes, and its ironic humor attacks two things: that blind faith without reason in open Virtue is folly, and that any malice masked in virtue never remains unpunished. A more tragic tale of irony is that of the Princess of Cleves. Introduced to a court as Madam Chartres, she wins the affection of the Prince of Cleves, who endeavor to marry her despite the protests of his father; she falls, however for someone else, the Duke Nemours (Lafayette, 15-17). The story then centers around him trying to find the opportunity to confess his love, and she, now married, desperately tries to stave off his affections while suppressing hers. We do not see the irony unfold until the very end: the Princess anguishes over her affection for the Duke throughout her marriage, but following the death of her husband suddenly she has a change of heart and is convinced that her husband was a far better man than the Duke (101-107). It is only after the husband dies and they finally have an opportunity to be together does she decide not to be with the Duke. The irony here attacks the notion that love borne from adulterous intention will eventually bear fruit. It might have been attack towards the growing acceptance of the public towards the notion of infidelity, (almost every character is involved in an affair with someone else) and their giving it idealistic fervor. The Princess of Cleves, despite the best of her intentions, continued to bear her love to someone else, and pined for that other person, and consequently, in her husbands death she realized her folly too late, and chose to suffer the rest of her life in that guilt. Nathan the Wise has such a complicated string of ironies, that one who skims through even the slightest of details would not appreciate the ironies that eventually occur. Originally, the story of the Jewish merchant Nathan centered around the Muslim conqueror Saladin trying to fool him out of his money—and this tale has found itself in the pages of Boccaccios Decameron. Nathan answers so skillfully that ironically it was Saladin who was put to shame by his own question and humbled before the Jew (Lessing, 90-97). This story is, however, expanded by Gotthold Ephraim Lessing, and this encounter between the Egyptian conqueror and the Jew becomes the main theme. The tale then revolves around a Templar, who was pardoned by Saladin for the reason that he resembled the conquerors brother (Lessing, 36); the consequences of his rescue of a Jewish maiden (and subsequent encounter of the grateful surrogate father Nathan), and the intrigues of the Patriarch who would have him either kill Saladin or turn over Nathan, who he found had raised a Christian child to the Jewish faith (the same Jewess he rescued) (37-40). The irony, from an impartial point of view, might have been to some degree absurd. The Templar, in almost the fashion of Oedipus, tries desperately to seek the truth, and unmask what he sees in his prejudice as malice committed by the Jew Nathan (Lessing, 109-127). And, also in the fashion of Oedipus, not only does he discover that the girl he was trying to save (and hope to marry) was his sister, but Saladin who he would have killed had he agreed to the Patriarch, was his uncle after all (165-172). The irony also hits Saladin, as his pardoning the Templar Conrad because he looked like his brother, redounds to the truth that Conrad was his brothers son. While the ironic twist might seem ridiculous to the trained eye, in the sense it fits to the lesson first imparted by Nathan to Saladin: that all men are equal before God, regardless of Faith. This is a happier chide at the Medieval sensibility of hostility between Faiths. Irony is humorous, because we find that the contradiction it creates makes sense. We might have felt our sensibilities offended when we saw that the Princess of Cleves did not end up with the Duke Nemours, but the cosmic twist was to show to us that infidelity was wrong. We would have preferred that the Templar should have instead ended up marrying the Jewess, but the irony was there to impart the lesson that prejudice has, after all, no place in the world. We sometimes do not find ironic circumstances that funny, as if we lived the life of Duke Nemours or became as aghast as the Templar Conrad. But eventually, we will learn that the contradiction was to impart to us that our plans may go completely the other way, because they may not have been right in the first place. And, the wiser we become to this truth, the more we will realize that irony, though it might strike sad for us, has a reason. The better we accept this, the more we will be prepared to just take a step back, take a view of the bigger picture, and laugh. WORKS CITED Lafayette, Madame de. The Princess of Cleves. New York: Project Gutenberg. 27 Sept. 2008 http://www. gutenberg. org/files/467/467. txt. Lessing, Gotthold Ephraim. Nathan the Wise. New York: Page, Curtis. Project Gutenberg. 01 Mar. 2003. http://www. gutenberg. org/dirs/etext03/natws10. txt. Moliere, Jean Baptiste. Tartuffe. New York: Project Gutenberg. 26 Oct. 2008. http://www. gutenberg. org/files/2027/2027. txt.

Saturday, October 26, 2019

Free Essays - Animal Farm :: Animal Farm

Animal Farm By George Orwell The theme of Animal Farm is not difficult to follow with in the book. The allegory of history that was during the time of the books development, Orwell intended to criticize the communist regime he saw sweeping through Russia and spreading to Europe and even the United States.   Though he agreed with many Marxist principles, Orwell was unable to accept the communist interpretation of socialism because he saw many similarities between the communist governments and the previous czarist regimes in old Russia.   Communism, he thought, was inherently hypocritical. In his book, Orwell uses his allegorical farm to symbolize the communist system.   Though the original intention of overthrowing Mr. Jones (who represents the Czars), is not inherently evil in itself, Napoleon’s subsequent adoption of nearly all of Mr. Jones’ principles and harsh mistreatment of the animals proves to the reader that indeed communism is not equality, but just another form of inequality.   The pigs and dogs take most of the power for themselves, thinking that they are the best administrators of government.   Eventually the power corrupts them, and they turn on their fellow animals, eliminating competitors through propaganda and bloodshed.   This is of course a reference to Stalin, who murdered many of his own people in order to maintain his dictatorship of Russia.   Because Animal Farm was written, it opened the eyes of the Western world to finally realize the danger of communism.   Soon a Cold War began between the world’s greatest superpowers— the Soviet Union and the United States.   In the end, America would prove that capitalism and democracy could outlive a system of government-mandated equality. As Orwell’s presentation within in the book, many animals were used to symbolize different public figures in that time frame. Each animal had an outstanding role through out this book from the pigs to the pigeons each with their own mischief characters. Mr. Jones: Mr. Jones is Orwell’s chief villain in Animal Farm. Of course Napoleon is also the major villain, however much more indirectly. Orwell says that at one time Jones was actually a decent master to his animals. At this time the farm was thriving. But in recent years the farm had fallen on harder times (symbol of the world-wide Great Depression of the 30’s) and the opportunity was seen to revolt. The worldwide depression began in the United States when the stock market crashed in October of 1929. Free Essays - Animal Farm :: Animal Farm Animal Farm By George Orwell The theme of Animal Farm is not difficult to follow with in the book. The allegory of history that was during the time of the books development, Orwell intended to criticize the communist regime he saw sweeping through Russia and spreading to Europe and even the United States.   Though he agreed with many Marxist principles, Orwell was unable to accept the communist interpretation of socialism because he saw many similarities between the communist governments and the previous czarist regimes in old Russia.   Communism, he thought, was inherently hypocritical. In his book, Orwell uses his allegorical farm to symbolize the communist system.   Though the original intention of overthrowing Mr. Jones (who represents the Czars), is not inherently evil in itself, Napoleon’s subsequent adoption of nearly all of Mr. Jones’ principles and harsh mistreatment of the animals proves to the reader that indeed communism is not equality, but just another form of inequality.   The pigs and dogs take most of the power for themselves, thinking that they are the best administrators of government.   Eventually the power corrupts them, and they turn on their fellow animals, eliminating competitors through propaganda and bloodshed.   This is of course a reference to Stalin, who murdered many of his own people in order to maintain his dictatorship of Russia.   Because Animal Farm was written, it opened the eyes of the Western world to finally realize the danger of communism.   Soon a Cold War began between the world’s greatest superpowers— the Soviet Union and the United States.   In the end, America would prove that capitalism and democracy could outlive a system of government-mandated equality. As Orwell’s presentation within in the book, many animals were used to symbolize different public figures in that time frame. Each animal had an outstanding role through out this book from the pigs to the pigeons each with their own mischief characters. Mr. Jones: Mr. Jones is Orwell’s chief villain in Animal Farm. Of course Napoleon is also the major villain, however much more indirectly. Orwell says that at one time Jones was actually a decent master to his animals. At this time the farm was thriving. But in recent years the farm had fallen on harder times (symbol of the world-wide Great Depression of the 30’s) and the opportunity was seen to revolt. The worldwide depression began in the United States when the stock market crashed in October of 1929.