Wednesday, November 27, 2019

Civil Disobedence Essays - Civil Disobedience, Nonviolence

Civil Disobedence Throughout the history of the United States, there have been many times when citizens have felt the need to revolt against their government. Such cases of revolt took place during the times Henry David Thoreau. The reason for his revolution included discrimination against the community and Americans refusing to pay poll taxes to support the Mexican War. Thoreau used civil disobedience to change people's ideas and beliefs to stop the injustice brought against them and their nation. Civil Disobedience is defined as refusal to obey civil laws or decrees, which usually takes the form of direct action (Grolier's Encyclopedia Online). People practicing civil disobedience break a law because they consider the law unjust. They want to call attention to its injustice, hoping to bring about its withdrawal. Thoreau wrote Civil Disobedience in 1849, right after spending a night in the Walden town jail for refusing to pay a poll tax for the Mexican War. He recommended using direct action to create social tension, thus leading to the reform of unjust laws practiced by the government. He voiced civil disobedience as, An expression of the individual's liberty to create change (Thoreau). Thoreau felt that the government had established order that resisted reform and change. Action from principle, the perception and performance of right, changes things and relations; it is essentially revolutionary (Thoreau). Thoreau refused to pay the poll tax because the money was being used to finance the Mexican War. Not only was Thoreau against the war itself, but the war was over Texas, which was to be used as a slave state. His friend, Staples, offered to pay the tax for him, but to Thoreau, it wasn't paying the tax that he was objecting to, it was how the money would be used. Thoreau felt strongly about paying money toward a war he did not support. He would rather end up in jail than go against his will. Your money is your life, why should I haste to give it my money (Thoreau). This illustrates how strongly he felt. It was very important to Thoreau to inform the public about the war. He wanted people to realize why it was wrong to support it. Thoreau never rallied hundreds and thousands of people together, violently or nonviolently, to get reactions. Instead, he went to jail to protest and wrote his essay, Civil Disobedience. Thoreau's philosophy was to get people to think and take their own approach to a situation. Thoreau definitely had many of the ideas of how to deal with unjust laws performed by government. Thoreau inspired reform and also overturned many unjust laws and customs in our country. We, as a society, should look at this man as heroic figures and learn from his teachings. This will help us better our knowledge of how to use non-violent direct action for future national and international problems we may encounter. Civil Disobedence Essays - Civil Disobedience, Nonviolence Civil Disobedence Throughout the history of the United States, there have been many times when citizens have felt the need to revolt against their government. Such cases of revolt took place during the times Henry David Thoreau. The reason for his revolution included discrimination against the community and Americans refusing to pay poll taxes to support the Mexican War. Thoreau used civil disobedience to change people's ideas and beliefs to stop the injustice brought against them and their nation. Civil Disobedience is defined as refusal to obey civil laws or decrees, which usually takes the form of direct action (Grolier's Encyclopedia Online). People practicing civil disobedience break a law because they consider the law unjust. They want to call attention to its injustice, hoping to bring about its withdrawal. Thoreau wrote Civil Disobedience in 1849, right after spending a night in the Walden town jail for refusing to pay a poll tax for the Mexican War. He recommended using direct action to create social tension, thus leading to the reform of unjust laws practiced by the government. He voiced civil disobedience as, An expression of the individual's liberty to create change (Thoreau). Thoreau felt that the government had established order that resisted reform and change. Action from principle, the perception and performance of right, changes things and relations; it is essentially revolutionary (Thoreau). Thoreau refused to pay the poll tax because the money was being used to finance the Mexican War. Not only was Thoreau against the war itself, but the war was over Texas, which was to be used as a slave state. His friend, Staples, offered to pay the tax for him, but to Thoreau, it wasn't paying the tax that he was objecting to, it was how the money would be used. Thoreau felt strongly about paying money toward a war he did not support. He would rather end up in jail than go against his will. Your money is your life, why should I haste to give it my money (Thoreau). This illustrates how strongly he felt. It was very important to Thoreau to inform the public about the war. He wanted people to realize why it was wrong to support it. Thoreau never rallied hundreds and thousands of people together, violently or nonviolently, to get reactions. Instead, he went to jail to protest and wrote his essay, Civil Disobedience. Thoreau's philosophy was to get people to think and take their own approach to a situation. Thoreau definitely had many of the ideas of how to deal with unjust laws performed by government. Thoreau inspired reform and also overturned many unjust laws and customs in our country. We, as a society, should look at this man as heroic figures and learn from his teachings. This will help us better our knowledge of how to use non-violent direct action for future national and international problems we may encounter.

Saturday, November 23, 2019

How to Use Delphi to Build a Custom Windows Explorer

How to Use Delphi to Build a Custom Windows Explorer Windows Explorer is what you use in the Windows operating system to browse for files and folders. You can create a similar structure with Delphi so that the same content is populated within your programs user interface. Common dialog boxes are used in Delphi to open and save a file in an application. If you want to use customized file managers and directory browsing dialogs, you have to deal with file system Delphi components. The Win 3.1 VCL palette group includes several components that allow you to build your own custom File Open or File Save dialog box: TFileListBox, TDirectoryListBox, TDriveComboBox, and TFilterComboBox. Navigating Files The file system components allow us to select a drive, see the hierarchical directory structure of a disk, and see the names of the files in a given directory. All of the file system components are designed to work together. For example, your code checks what the user has done to, say, a DriveComboBox and then passes this information on to a DirectoryListBox. The changes in DirectoryListBox are then passed to a FileListBox in which the user can select the file(s) needed. Designing the Dialog Form Start a new Delphi application and select the Win 3.1 tab of the Component palette. Then do the following: Place one TFileListBox, TDirectoryListBox, TDriveComboBox, and TFilterComboBox component on a form, keeping all of their default namesAdd one TEdit (named FileNameEdit) and one TLabel (call it DirLabel).Include a few labels with captions, like File Name, Directory, List Files of Type, and Drives. To show the currently selected path as a string in a DirLabel components caption, assign the Labels name to the DirectoryListBoxs DirLabel property. If you want to display the selected filename in an EditBox (FileNameEdit), you have to assign the Edit objects Name (FileNameEdit) to the FileListBoxs FileEdit property. More Lines of Code When you have all the file system components on the form, you just have to set the DirectoryListBox.Drive property and the FileListBox.Directory property in order for the components to communicate and show what the user wants to see. For example, when the user selects a new drive, Delphi activates the DriveComboBox OnChange event handler. Make it look like this:   procedure TForm1.DriveComboBox1Change(Sender: TObject) ;beginDirectoryListBox1.Drive : DriveComboBox1.Drive;end; This code changes the display in the DirectoryListBox by activating its OnChange event Handler:   procedure TForm1.DirectoryListBox1Change(Sender: TObject) ;beginFileListBox1.Directory : DirectoryListBox1.Directory;end; In order to see what file the user has selected, you need to use the OnDblClick event of the FileListBox:   procedure TForm1.FileListBox1DblClick(Sender: TObject) ;beginShowmessage(Selected: FileListBox1.FileName) ;end; Remember that the Windows convention is to have a double-click choose the file, not a single click. This is important when you work with a FileListBox because using an arrow key to move through a FileListBox would call any OnClick handler that you have written. Filtering the Display Use a FilterComboBox to control the type of files that are displayed in a FileListBox. After setting the FilterComboBoxs FileList property to the name of a FileListBox, set the Filter property to the file types that you want to display. Heres a sample filter:   FilterComboBox1.Filter : All files (*.*)|*.* | Project files (*.dpr)|*.dpr | Pascal units (*.pas)|*.pas; Hints and Tips Setting the DirectoryListBox.Drive property and the FileListBox.Directory property (in the previously written OnChange event handlers) at runtime  can be also be done at design time. You can accomplish this kind of connection at design time by setting the following properties (from the Object Inspector): DriveComboBox1.DirList : DirectoryListBox1DirectoryListBox1.FileList : FileListBox1 Users can select multiple files in a FileListBox if its MultiSelect property is True. The following code shows how to create a list of multiple selections in a FileListBox and show it in a SimpleListBox (some ordinary ListBox control).   var k: integer;...with FileListBox1 doif SelCount 0 thenfor k:0 to Items.Count-1 doif Selected[k] thenSimpleListBox.Items.Add(Items[k]) ; To display full path names that are not shortened with an ellipsis, do not assign a Label object name to the DirLabel property of a DirectoryListBox. Instead, insert a Label into a form and set its caption property in the DirectoryListBoxs OnChange event to the DirectoryListBox.Directory property.

Thursday, November 21, 2019

Reaction Paper Essay Example | Topics and Well Written Essays - 1000 words - 8

Reaction Paper - Essay Example The more probable clarification, then again, is that against Macedonian assumption was on the ascent in Athens, causing Aristotle to be afraid of being abused for his relationship with King Philips court (Sparknotes.com). Old Greece comprised of various free city-states, of which Athens was the most critical. In spite of the fact that the city-states depended on slave work and the disenfranchisement of ladies, the male residents made one of the most punctual manifestations of majority rules system, and in the compass of under two hundred years they figured out how to create what the Western world still looks to as the premise of its political foundations, mathematics, philosophy, art, architecture and drama. Since slaves and noncitizen specialists performed the main part of the citys work, male nationals delighted in a lot of recreation time. This recreation gave the chance to open investigation into the way of the world, and educators like Aristotle were not exceptional. As a follower and pupil of Plato, his approach was Platonism – which switched to empiricism after Plato’s death. He said that we have information by being influenced by what he called the sensible type of things. For Aristotle this implied that our spirit accepts formal parts of these things itself. Some comprehended this as implying that when you take a gander at a green field, your spirit actually turns green. Others believed that it implies there is simply some correspondence between your spirit and the object, and that your soul does not really come to look like it. Aristotle is observed also as functionalist, pragmatist and a realist. He is referred also to the Vitalism approach. Aristotles fundamental perspective of human nature is gotten from the guideline of "hylomorphism": the body is united with the soul and the spirit is the form of the body