Saturday, January 25, 2020

Terrorism and the Media

Terrorism and the Media Mass Media has always historically been recognised as newspapers, radio, and television, also dramatic arts, through film and theatre, and books. Since the advent of the Internet, global media has been revolutionised with new ways to broadcast information and the speed at with which that information is conveyed. Terrorism requires media publicity in order that the political message they wish to convey reaches the target audience thus influencing and swaying public opinion. The Media seek to provide information to their audience to meet their need for information and news stories. The more dramatic and spectacular the news coverage then the greater an audience the Media will attract. A greater audience brings intrinsic benefits to the Media. I will discuss the symbiotic relationship between Media and Terrorism and whether it exits and to what degree it is symbiotic. I will also examine how the internet has affected the symbiosis between Terrorism and Media. Introduction I am a passionate believer in freedom of speech. I would not support anything which would impinge on aggressive robust freedom of the British press. Nick Clegg, British Deputy Prime Minster (as cited in Chorley, 2012). Nick Clegg made this comment in the wake of the Leveson enquiry into the Culture, Practices and Ethics of the Press. Freedom of the Press has always been part of the foundation of a democratic society; however it is this democratic society that enables the terrorist to deliver their message through the media. democratic society make the tasks of terrorist propaganda, recruitment, organisation, and the mounting of operations a relatively easy matter (Wilkinson, 2011, p. 22). As Wilkinson rightly argues a democratic society is an enabler for terrorism to exist, especially in regard to delivering their propaganda and political message. In late March 2001, three simultaneous car explosions killed twenty-three and injured more than one hundred civilians in southern Russia. If this had happened in the old Soviet Union, the state-controlled mass media probably would not have reported the incident. (Nacos, 2007, p. 36). In the old USSR state-controlled mass media would simply deny the terrorists the propaganda of their attack. Former British Prime Minister Margaret Thatcher had it right when she proclaimed the publicity is the oxygen of terrorism (Ibid., p. 36). Nacos correctly reminds us of what Mrs Thatcher said, and it is this oxygen that the terrorists seek to obtain when they plan an attack. without the medias coverage the acts impact is arguably wasted, remaining narrowly confined to the immediate victim(s) of the attack, rather than reaching the wider target audience at whom the terrorists violence is actually aimed. (Hoffman, 2006, p. 174). Hoffman reinforces that terrorists require publicity form the media. It is clear from the above that terrorism and the media are in some form of relationship. This essay discusses the interactions of the relationship between terrorists and media, if it is symbiotic, and how does advent of the internet affect the relationship. Definitions Defining terrorism has been difficult since it has first been studied. Laqueur states More than a hundred definitions have been offered (including a few of my own) for the phenomenon. (Laqueur, 1995, p. 5). There are characteristics that can be found in the majority of the definitions and these have been highlighted by Wilkinson: It is premeditated and designed to create a climate of extreme fear. It is directed at a wider target than the immediate victims. It inherently involves attacks on random or symbiotic targets, including civilians. It is considered by the society, in which it occurs as extra normal, that is, in the literal sense it violates the norms regulating disputes, protest and dissent. It is used primarily, though not exclusively, to influence the political behaviour of governments, communities or specific social groups.(Wilkinson, 2011, p. 1) These characteristics will define terrorism for the discussions within this essay and specifically the act being premeditated, designed to create a climate of extreme fear, and being directed at a wider target than the immediate victims. Wilkinson also comments on the meaning of symbiotic In sociology the term symbiosis is taken to mean relations of mutual dependence between different groups within a community when the groups are unlike each other and their relations are complementary (Ibid., p. 145). The relationship between terrorism and media will be examined and discussed to assess whether it is mutually dependent and complementary, and if so, does this remain true in the era of internet media. The mass media are taken to encompass newspapers, radio and television and other important forms of communications, including books, films, music, theatre and the visual arts. (Ibid., p. 144). Wilkinson defines the meaning of mass media, for the purpose of this essay and discussion For the purposes of this essay I will separate mass media from new media technology including the internet. Terrorist interaction with media The Assassin Sect of Shia Islam which attempted to sow terror in the Muslim world and Middle Ages, relied upon word of mouth in mosques and market places to relay news of their attacks (Ibid., p. 144). Wilkinson informs us that terrorists need to spread the news of their attacks is not a modern phenomenon, but as terrorism has increased, their need for publicity has also. Without being noticed, in fact, terrorism would not exist. The sheer act of killing does not create a terrorist act: murders and wilful assaults occur with such frequency in most societies that they are scarcely reported in the news media. What makes an act terrorism is that it terrifies. The acts to which we assign that label are deliberate events, bombings and attacks performed at such places and times that they are calculated to be observed. Terrorism without its horrified witnesses would be as pointless as a play without an audience. (Juergensmeyer, 2003, p. 141). Juergensmeyer states that the terrorists need to horrify witnesses, if the act is not sufficiently terrifying then it will not achieve the publicity any further than the initial audience. Schmid and de Graaf concur, the immediate victim is merely instrumental, the skin of a drum beaten to achieve a calculated impact on a wider audience. As such, an act of terrorism is in reality an act of communication. For the terrorist the message matters, not the victim (Schmid and de Graaf, 1982, p. 14). When transmitting this message what are the terrorists trying to achieve? Nacos argues that there are four media objectives that terrorists seek to achieve when they commit/threaten an act of violence. First, terrorists want the attention and awareness of various audiences inside and outside their target societies and thereby condition their targets for intimidation. Second, terrorists want the recognition of their motives. They want the media and the public to explore the question: Why do they attack us? Third, terrorists want the respect and sympathy of those in whose interest they claim to act. Fourth, terrorists want a quasi-legitimate status and the same or similar media treatment that legitimate political actors receive. (Nacos, 2007, p. 20) Nacos has neatly packaged the objectives, not all these objectives will be achieved in every attack by terrorists, but generally they will be trying to achieve the majority of them. On the 12 April 2010, the Real IRA attacked Palace Barracks in Northern Ireland, the Headquarters for the British Security Service in Northern Ireland. The date of the attack was not chosen at random, it was the day that justice and security powers were devolved from Westminster to the Northern Ireland Assembly. Mark Simpson BBC Northern Ireland Correspondent stated On a day when a new political era is starting at Stormont, dissident republicans wanted to highlight one of the weaknesses of the peace process the threat of further violence. (Simpson, 2010). The Real IRA succeeded in achieving media coverage of the incident and took the headlines rather, than the devolution of justice powers. When we examine Nacos objectives we can see that the Real IRA achieved certainly the first three objectives, and the fourth being open to debate if whether it improved their claims to be legitimate political actors. On 14 June 1985 TWA Flight 847 was hijacked by Lebanese Terrorist enroute from Athens to Rome. The flight contained a considerable number of United States citizens. This incident provides a good example of how terrorists optimise their media exposure and how perhaps unwittingly the media played into their hands. Schmid (as cited in Wilkinson, 2011. p. 155) Schmid observes that National Broadcasting Company (NBC) devoted no less than two thirds of their total news time to the crisis over the fate of the American hostages taken to Beirut throughout the 17 days of the hijacking. The US media brought its considerable might to bare upon the coverage of the drama. The focus of the coverage was on the hostages and their families, which proved detrimental to the Reagan administration A gross imbalance therefore emerged: soft, human-interest feature stories predominated (mostly interviews with the hostages and their families), accounting for slightly more than a third of all reports, with few er than half as many stories addressing real issues (Hoffman, 2006, p. 175). The media coverage achieved what the terrorists desired, in that the concentrated effort was the safe recovery of the hostages at any cost. The domestic demand for the release of the TWA Flight 847 hostages placed such pressure on the US government that it led them to press their Israeli allies to release over 700 prisoners demanded by the hostage-takers, thus conceding an enormous political and psychological victory to the terrorists (Wilkinson 2011, p. 106). The effect that transpired was that terrorism was seen to produce results. As Hoffman states the most pernicious effect of the crisis was its validation of terrorism as a tactic. (Hoffman, 2006, p. 175). The terrorist manipulation of the media was no coincidence. According to John Bullock, a British journalist who covered the story, throughout the crisis the terrorists knew exactly what they were doing. (Ibid, p. 176). It can be seen from the above how additional media pressure influenced US foreign policy and ultimately achiev ed the terrorists goals. Do all terrorists seek publicity? Sendero Luminoso (Shining Path, Peruvian Terrorist Organisation) long remained quite uncommunicative and seemingly uninterested both in the wider media and in creating an underground press through which to broadcast its ideology on a media level (Wieviorka, 2004, p. 43). Wieviorka argues that The Shining Path terrorist group had no expectation of any mediation whatsoever on part of the press (Ibid. p. 43). Wilkinson disagrees with Wieviorka assessment arguing This category is totally unreal because even for the purpose of creating terror in an intended set of victims, the perpetrator relies on some channel or medium of communication to relay the threat. If there is no aim to instil terror, then the violence is not of a terroristic nature. (Wilkinson, 2011, p. 145). Nacos further highlights that it doesnt matter if the terrorists do not directly seek media coverage But whether terrorists claim responsibility for their deeds does not matter at all with respect to media coverage. (Nacos 2007, p. 18). The media, if they become aware of the incident, will provide coverage to the public. Nacos further states that most terrorist groups dont just want their terrorist act publicised They typically want their political causes publicized and their motives discussed. For this to happen the perpetrators do not necessarily have to do the explaining themselves- the media do it for them. (Ibid., p. 21). It can be seen from the above analysis how terrorists use the media to their advantage and to convey their political message. In the vast majority of terrorist incidents the terrorists rely upon media coverage of their attack to ensure that they reach a wider audience. English aptly summarises the role of the media in the eyes of the terrorists media provide a crucial amplifier for the terrorists cause, case and deeds (English, 2009, p. 44). Media interaction with terrorists. I will now discuss why and how the media interact with terrorism. Why the media interacts with terrorism is relatively simple. a cynical aphorism in the newspaper business holds that if it bleeds, it leads.' (Mueller, 2006, p. 40), this holds true as the media require headline news to attract viewers. Media in an open society are in a fiercely competitive market for their audiences, are constantly under pressure to be first with the news and to provide more information (Wilkinson, 2011, p. 147). It is the drive to attract more viewers that places media under pressure to report terrorist incidents. A high drama incident is the ideal news story to attract a greater audience, in the first three weeks of the Tehran Hostage crisis in 1979 all the major television networks achieved an 18 per cent increase in audience rating. (Ibid., p. 150). According to Hamin Mowlana (As cited in Wilkinson 2011, p. 150) the networks were able to secure, in 1979, an annual increase of  £30 million for each percentage point of audience rating increase. From this argument we can see where the advantage for media is in covering such incidents, there is however no suggestion that the media are constantly hoping for a terrorist incident, as outlined by Nacos While I do not suggest that the news media favour this sort of political violence, it is nevertheless true that terrorist strikes provide what the contemporary media crave most drama, shock, and tragedy suited to be packaged as human interest news. (Nacos, 2006, p. 81-82). Laqueur further states It has been said that journalists are terrorists bes t friends, because they are willing to give terrorist operations maximum exposure. This is not to say that journalists as a group are sympathetic to terrorists, although it may appear so. It simply means that violence is news, whereas peace and harmony are not. The terrorists need the media, and the media find in terrorism all the ingredients of an exciting story. (Laqueur, 1995, p. 44). It has been shown why media pay so much attention to terrorist incidents, but is the coverage disproportional to the actual threat that the terrorists pose in comparison to other threats that the public face daily, and thus giving an uneven balance of threat to the public, which in turn may be assisting the terrorists? Jenkins argues it makes no difference that ordinary homicides vastly exceed murders caused by terrorists. The news media do not allocate space or air time proportionally according to the leading causes of death in the world. (Jenkins, 1981, p. 2). Jenkins further states Content analysis of coverage of terrorist incidents in The New York Times and the Times of London shows that the news media provide little context in which the public can judge the events Ibid., p. 2). Iyengar gives additional evidence Between 1981 and 1986, more stories were broadcast on terrorism than on poverty, unemployment racial inequality, and crime combined (Iyengar, 1991, p. 27). The media have the unhealthy habit of being anecdotal rather than factual, skewing reality and the threat. It is my opinion that this only aids the terrorist by inflating the threat that is posed. From the analysis it is evident that terrorism can be overrepresented and overemphasised by the media; this in turn only aids the terroris t in the broadcast of their political message. To additionally aggravate the situation is pressure upon media to get the Scoop before competing media channels. As Nacos states In this competition, terrorists seem to start out with a significant advantage because their violent deeds are a powerful message that commands the mass medias attention and thus that of their target audience(s). (Nacos, 2007, p. 198). Shpiro states Speed plays a critical role in global news coverage. While the newsreels of World War II could be edited and censored for several days or even weeks before being publicly screened, the audience of present-day con ¬Ã¢â‚¬Å¡icts demands media reaction time measured by hours and even minutes. Media outlets that, for technical, political or  ¬Ã‚ nancial reasons, cannot supply the most up-to-date news coverage lose out in a  ¬Ã‚ eld saturated by intense competition. (Shpiro, 2002, p. 77). Shprio points out that unless the media outlet gets the story out quickly they will lose to the competition, but does this then affect the coverage? Nacos argues Given the all-out competition between news organizations, the pressure to present breaking news, the determination to report some new angle although a terrorist situation has not changed, and the tendency to sensationalize even genuinely dramatic situations, the hastily reported and often unverified news is likely to contain inaccuracies, mistakes, and problematic features. (Nacos, 2007, p. 207). We can see from Nacos that there is the possibility of inaccuracies and mistakes to become apparent in the rush to release news, this can potentially influence the true perspective on the incident and ultimately may play into the terrorists hands. I have now discussed how terrorist interact with the media and in turn how the media interact with terrorist, I will now discuss whether this relationship is symbiotic. Is the relationship between media and terrorism symbiotic? If we take Wilkinsons earlier view of what a symbiotic relationship is then in order for it to exist the relationship must have mutual dependence between terrorism and media and the relationship is complementary. Hoffman notes that Clearly, terrorism and the media are bound together in an inherently symbiotic relationship, each feeding off and exploiting the other for its own purposes. (Hoffman, 2006, p.193). Wilkinson also comments that once terrorist violence is under way, the relationship between the terrorists and the mass media tends inevitably to become symbiotic (Wilkinson, 2011, p. 145). There is dependence in both cases, the terrorist dependence on the media to publicise the incident, and the medias desire for spectacular news stories to broadcast and attract viewers. Wieviorka offered a counter argument refuting that terrorism and the media are in a symbiotic relationship, stating that terrorists relate to the media in any of four different ways, from pure indifference to media, through relative indifference, then to a media-oriented strategy, and finally to coercion of the media (Wieviorka 1988, p. 43, as cited by Wilkinson, 2011, p. 145). Paul Wilkinson questioned Wieviorkas four categories of the relationship, saying that channels of communication always are used by any terrorist. The first of Wieviorkas categories is pure indifference to any desire to terrorize a population beyond the immediate victim of violence. Wilkinson states that This category is totally unreal because even for the purpose of creating terror in an intended set of victims, the perpetrator relies on some channel or medium of communication to relay the threat. If there is no aim to instil terror, then the violence is not of a terroristic nature (Wilkinson, 2011, p. 145). In Wieviorkas second category relative indifference Wilkinson dismisses Wieviorkas argument that terrorists are disinterested with regard to communicating through powerful media when they have other channels already existing to communicate and explain their position. Wilkinson argues that The kind of channels he lists that already exist are a legal and relatively free press, radio transmitters and centres for free expression such as universities, churches and mosques. But what are these channels that already exist if not alternative media? (Ibid., 2011, p. 146). The third category media-orientated strategy is the only category the Wieviorka believes that terrorists are actively engaged in a relationship with the media. Wilkinson counter argues that this type of media-orientated strategy in reality it is intrinsic to the very activity of terrorisation that some form of media, however crude, is utilised as an instrument to disseminate the messages of threat and intimidation (Ibid., 2011. p. 146). The final category offered by Wieviorka, total break is described by Wilkinson Wieviorka is referring here to cases where the terrorists come to view the media organisation, editors, journalists and broadcasters as enemies to be punished and destroyed. Those working in the media have often been the targets of terrorist violence (Ibid., 2011, p .146). Wilkinson dismissed the total break category for the same reason as media-orientated strategy. It is clear that there is a relationship between terrorism and media, but is it always complementary? Wilkinson lists a number of incidents where the media irresponsibility aided the terrorists or came very close to aiding them with adverse coverage; Firstly the Iranian Embassy siege in 1980, where a news team defied police instructions and filmed the SAS Assault, if this had been broadcast live in would have severely endangered the hostages and rescue team, Secondly the hijacking of a Kuwait airliner in 1988, whilst on the ground at Larnaca Airport, media coverage was so intense a rescue mission was impossible to launch, and finally the media coverage of an IRA trial in 1997 collapsed after media published material that prejudiced a fair trial. (Ibid., 2011, p. 151). The above examples are not to illustrate that the media consciously aid terrorists, Wilkinson further states There is no evidence to suggest that the Western-dominated mass media organisations share the political aims of the terrorist organisations, but sophisticated media-wise terrorists can certainly exploit and manipulate the power of the mass media for their own malevolent purpose. (Ibid., 2011, p. 151). Media attention also brings with it unpredictability for the terrorist organisation, as Wilkinson rightly states, Western-dominated mass media do not share the political ideals of terrorist organisations, therefore are unlikely to give positive coverage of the terrorist incident, Hoffman further points out While most terrorists certainly crave the attention that the media eagerly provide, the publicity that they receive cuts both ways (Hoffman, 2006, p. 188). Wilkinson notes Terrorists like to present themselves as noble Robin Hoods, champions of the oppressed and downtrodden. By showing the savage cruelty of terrorists violence and the way in which they violate the rights of the innocent, the media can help to shatter this myth. (Wilkinson, 2011, p. 152). If we break the symbiotic relationship down to the fact that terrorists require coverage and the media require an audience to produce revenue, it is my opinion the symbiosis does clearly exist. If believe this relationship can aid the terrorists, as the analysis has shown, unless the media report is more balanced and less anecdotal. I will now discuss how the internet may affect the symbiotic relationship. New media and the symbiotic relationship For the purpose of this discussion I will limit new media to terrorist use of the internet and the publicising of their attacks. Lumbaca and Gray define the internet as The internet is an information tool used in namely all parts of the world. The internet has made life a lot simpler for the average person who is looking to earn a degree, engage in commerce exchanges, make purchases, write friends and look up information. Unfortunately while it wields these benefits, this capability is a double-edged sword; these benefits are also open to terrorists. Whether right-winged or left, terrorists view the internet as a powerful too; it is inexpensive, easy to set up and can be found just about anywhere. (Lumbaca, Gray, 2011, p. 47). Hoffman informs us that Few technological innovations have had the impact of the Internet and the World Wide Web. Beyond any doubt, in a comparatively short span of time, they have revolutionized communications, enabling the rapid (often in real time), pervasive, and-most important-inexpensive exchange of information worldwide. (Hoffman 2006, p. 201). Weimann contends the internet is ideal for terrorists-as-communicators: it is decentralized, it cannot be subjected to control or restriction, it is not censored, and it allows access to anyone who wants it (Weimann, 2006, p. 25). Lumbaca, and Gray, Hoffman, and Weimann point out the distinct advantages the internet and World Wide Web offer to terrorists, namely speed, non-censorship and ready access to anyone who wants it. So does the advent of the internet and World Wide Web affect the symbiotic relationship between terrorism and media? As discussed earlier in the essay, the terrorists wish to garner as much publicity regarding their attack as possible, Hoffman reinforces this The overriding objective for the terrorists is to wring every last drop of exposure, publicity, and coercive power from the incident (Hoffman, 2006, p. 180). With regard to terrorist use of the internet Weimann correctly states that it can be accessed by anyone who wants to, this in my opinion is the key to how the internet affects the symbiotic relationship. In order for the terrorists to maximise the exposure of their incident they are still somewhat reliant upon mass media to pick up information they place on the internet, this practice by mass media is becoming known as information laundering for example, Abu Musab al-Zarqawi was one of the first jihadist terrorists to optimise the use of the internet and World Wide Web Zarqawi went straight to the internet, which enabled him to produce graphic videos that would have never been shown on mainstream media Katz as cited in (Shane, 2006, p. 1). As these videos were breaking news they were picked up by the mainstream media, and reported upon, thus Zarqawi achieved his publicity. The symbiosis between terrorism and mass media is still apparent in the internet era although the balance is shifting in that the relationship is blurring from the traditional symbiosis in that terrorist can now influence and dictate what information they choose to be available and when. Conclusion Terrorists require publicity of their attack or incident in order to reach a wider audience. The wider audience is essential if the terrorist political message is to have any impact. It has been argued that not all terrorist groups seek publicity; however they have no choice if the media decide to provide coverage of it and thus the relationship is still present. Media is about revenue, it has been shown that terrorist incidents have all the human interest factors that attract a wide audience, with this comes additional revenue through advertisements. The detrimental effect of coverage is that it can skew public and governmental approaches to terrorism, disproportionately over emphasising the threat posed and undermining government policy. Media however seldom portray terrorists well, and this can readdress some of the detrimental effect. The symbiotic relationship is evident in that the relationship between media and terrorism is complementary, however with the advent of the interne t there is less of dependence by terrorist upon media to pick up incidents when the terrorist can publicise their own acts.

Friday, January 17, 2020

Creationism. Stanford Encyclopedia of Philosophy Essay

The significant role of schools in teaching the population of students is one way to make sure that the society will have a bright future. However, in the cases wherein inappropriate teaching methods are used, this dream may be compromised. A very clear example is the teaching of creationism. Creationism is a perspective that identifies a certain supreme being to be the main perpetrator of the existence of the universe, including humanity (Ruse, 2007). There is an identifiable group of people who primarily believes in this notion. And because of that sectarian acceptance, there was a time when schools became a subject of intention in propagating this idea. In a much greater sense, creationism should never be taught in schools primarily because of the compromising effects it will bring towards the molding of the students. The topic is very much centered towards the philosophy of a person and do not provide any significant learning attribute. This is in direct contrast to the mission of the school to provide only the type of learning methods based on exact, credible and scientifically formulated aspects of knowledge. Creationism tends to be of religious in nature. It always inhibits the natural flow of scientific process to learn the observable and logical way of nature. As a result, it is very possible that students may get confused about their own perception about the universe and everything about it. They may leave the pre-conditions of scientific knowledge in favor of an easier to understand notion of creationism. Moreover, there may be cases in which some students may feel deprived of their rights to believe what they want to according to their respective philosophies in life. Creationism is a biased form of belief which only bases its ideology to a personal intuition. References Ruse, M. 2007. Creationism. Stanford Encyclopedia of Philosophy. Retrieved January 14, 2008 from http://plato. stanford. edu/entries/creationism/.

Thursday, January 9, 2020

All About Serializing in Visual Basic

Serialization is the process of converting an object into a linear sequence of bytes called a byte stream. Deserialization just reverses the process. But why would you want to convert an object into a byte stream? The main reason is so you can move the object around. Consider the possibilities. Since everything is an object in .NET, you can serialize anything and save it to a file. So you could serialize pictures, data files, the current state of a program module (state is like a snapshot of your program at a point in time so you could temporarily suspend execution and start again later) ... whatever you need to do. You can also store these objects on disk in files, send them over the web, pass them to a different program, keep a backup copy for safety or security. The possibilities are quite literally endless. Thats why serialization is such a key process in .NET and Visual Basic. Below is a section on custom serialization by implementing the ISerializable interface and coding a New and a GetObjectData subroutine. As a first example of serialization, lets do one of the easiest programs, but also one of the most useful: serializing data, and then deserializing data in simple class to and from a file. In this example, the data is not only serialized, but the structure of the data is saved too. The structure here is declared in a module to keep things ... well ... structured. Module SerializeParmsSerializable() Public Class ParmExample  Ã‚  Ã‚  Public Parm1Name As String Parm1 Name  Ã‚  Ã‚  Public Parm1Value As Integer 12345  Ã‚  Ã‚  Public Parm2Name As String  Ã‚  Ã‚  Public Parm2Value As DecimalEnd ClassEnd Module Then, individual values can be saved to a file like this: Imports System.Runtime.Serialization.Formatters.BinaryImports System.IOPublic Class Form1  Ã‚  Ã‚  Private Sub mySerialize_Click( _  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  ByVal sender As System.Object, _  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  ByVal e As System.EventArgs) _  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Handles mySerialize.Click  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Dim ParmData As New ParmExample  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  ParmData.Parm2Name Parm2 Name  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  ParmData.Parm2Value 54321.12345  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Dim s As New FileStream(ParmInfo, FileMode.Create)  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Dim f As New BinaryFormatter  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  f.Serialize(s, ParmData)  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  s.Close()  Ã‚  Ã‚  End SubEnd Class And those same values can be retrieved like this: Imports System.Runtime.Serialization.Formatters.BinaryImports System.IOPublic Class Form1  Ã‚  Ã‚  Private Sub myDeserialize_Click( _  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  ByVal sender As System.Object, _  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  ByVal e As System.EventArgs) _  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Handles myDeserialize.Click  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Dim s New FileStream(ParmInfo, FileMode.Open)  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Dim f As New BinaryFormatter  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Dim RestoredParms As New ParmExample  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  RestoredParms f.Deserialize(s)  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  s.Close()  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Console.WriteLine(RestoredParms.Parm1Name)  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Console.WriteLine(RestoredParms.Parm1Value)  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Console.WriteLine(RestoredParms.Parm2Name)  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Console.WriteLine(RestoredParms.Parm2Value)  Ã‚  Ã‚  End SubEnd Class A Structure or a collection (such as an ArrayList) rather than a Class could also be serialized to a file this same way. Now that we have gone over the basic serializing process, lets look at the specific details that are part of the process on the next page. One of the first things you should notice about this example is the Serializable() attribute in the Class. Attributes are just more information that you can provide to VB.NET about an object and theyre used for a lot of different things.  The attribute in this code tells VB.NET to add extra code so that later on, everything in this class can be serialized. If there are specific items in the Class that you dont want to be serialized, you can use the NonSerialized() attribute to exclude them: NonSerialized() Public Parm3Value As String Whatever In the example, notice is that Serialize and Deserialize are methods of the BinaryFormatter object (f in this example). f.Serialize(s, ParmData) This object takes the FileStream object and the object to be serialized as parameters. Well see that VB.NET offers another object that allows the result to be expressed as XML. And one final note, if your object includes other subordinate objects, theyll be serialized too! But since all objects that are serialized must be marked with the Serializable() attribute, all of these child objects must be marked that way too. Just to be completely clear about what is happening in your program, you might want to display the file named ParmData in Notepad to see what serialized data looks like. (If you followed this code, it should be in the bin.Debug folder in your project.) Since this is a binary file, most of the content isnt readable text, but you should be able to see any strings in your serialized file. Well do an XML version next and you might want to compare the two just to be aware of the difference. Serializing to XML instead of a binary file requires very few changes. XML isnt as fast and cant capture some object information, but its far more flexible. XML can be used by just about any other software technology in the world today. If you want to be sure your file structures dont tie you into Microsoft, this is a good option to look into. Microsoft is emphasizing LINQ to XML to create XML data files in their latest technology but many people still prefer this method. The X in XML stands for eXtensible. In our XML example, were going to use one of those extensions of XML, a technology called SOAP. This used to mean Simple Object Access Protocol but now its just a name. (SOAP has been upgraded so much that the original name doesnt fit that well anymore.) The main thing that we have to change in our subroutines is the declation of the serialization formatter. This has to be changed in both the subroutine that serializes the object and the one that deserializes it again. For the default configuration, this involves three changes to your program. First, you have to add a Reference to the project. Right-click the project and select Add Reference .... Make sure ... System.Runtime.Serialization.Formatters.Soap ... has been added to the project. Then change the two statements in the program that references it. Imports System.Runtime.Serialization.Formatters.SoapDim f As New SoapFormatter This time, if you check out the same ParmData file in Notepad, youll see that the whole thing is in readable XML text such as ... Parm1Name idref-3Parm1 Name/Parm1NameParm1Value12345/Parm1ValueParm2Name idref-4Parm2 Name/Parm2NameParm2Value54321.12345/Parm2Value There is also a lot of additional XML there thats necessary for the SOAP standard in the file as well. If you want to verify what the NonSerialized() attribute does, you can add a variable with that attribute and look at the file to verify that its not included. The example we just coded only serialized the data, but suppose you need to control how the data is serialized. VB.NET can do that too! To accomplish this, you need to get a little deeper into the concept of serialization. VB.NET has a new object to help out here: SerializationInfo. Although you have the ability to code custom serialization behavior, it comes with a cost of extra coding. The basic extra code is shown below. Remember, this class is used instead of the ParmExample class shown in the earlier example. This isnt a complete example. The purpose is to show you the new code that is needed for custom serialization. Imports System.Runtime.SerializationSerializable() _Public Class CustomSerialization  Ã‚  Ã‚  Implements ISerializable  Ã‚  Ã‚   data to be serialized here  Ã‚  Ã‚   Public SerializedVariable as Type  Ã‚  Ã‚  Public Sub New()  Ã‚  Ã‚   default constructor when the class  Ã‚  Ã‚   is created - custom code can be  Ã‚  Ã‚   added here too  Ã‚  Ã‚  End Sub  Ã‚  Ã‚  Public Sub New( _  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  ByVal info As SerializationInfo, _  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  ByVal context As StreamingContext)  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚   initialize your program variables from  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚   a serialized data store  Ã‚  Ã‚  End Sub  Ã‚  Ã‚  Public Sub GetObjectData( _  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  ByVal info As SerializationInfo, _  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  ByVal context As StreamingContext) _  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Implements ISerializable.GetObjectData  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚   update the serialized data store  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚   from program variables  Ã‚  Ã‚  End SubEnd Class The idea is that now you can (and, in fact, you must) do all of the updating and reading of data in the serialized data store in the New and GetObjectData subroutines. You must also include a generic New constructor (no parameter list) because youre implementing an interface. The class will normally have formal properties and methods coded as well ... Generic PropertyPrivate newPropertyValue As StringPublic Property NewProperty() As String  Ã‚  Ã‚  Get  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Return newPropertyValue  Ã‚  Ã‚  End Get  Ã‚  Ã‚  Set(ByVal value As String)  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  newPropertyValue value  Ã‚  Ã‚  End SetEnd Property Generic MethodPublic Sub MyMethod()  Ã‚  Ã‚  method codeEnd Sub The resulting serialized class can create unique values in the file based on the code you supply. For example, a real-estate class might update a the value and address of a house but the class would serialize a calculated market classification as well. The New subroutine will look something like this: Public Sub New( _  Ã‚  Ã‚  ByVal info As SerializationInfo, _  Ã‚  Ã‚  ByVal context As StreamingContext)  Ã‚  Ã‚   initialize your program variables from  Ã‚  Ã‚   a serialized data store  Ã‚  Ã‚  Parm1Name info.GetString(a)  Ã‚  Ã‚  Parm1Value info.GetInt32(b)  Ã‚  Ã‚   New sub continues ... When Deserialize is called on a BinaryFormatter object, this sub is executed and a SerializationInfo object is passed to the New subroutine. New can then do whatever is necessary with the serialized data values. For example ... MsgBox(This is Parm1Value Times Pi: _  Ã‚  Ã‚   (Parm1Value * Math.PI).ToString) The reverse happens when Serialize is called, but the BinaryFormatter object calls GetObjectData instead. Public Sub GetObjectData( _  Ã‚  Ã‚  ByVal info As SerializationInfo, _  Ã‚  Ã‚  ByVal context As StreamingContext) _  Ã‚  Ã‚  Implements ISerializable.GetObjectData  Ã‚  Ã‚   update the serialized data store  Ã‚  Ã‚   from program variables  Ã‚  Ã‚  If Parm2Name Test Then  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  info.AddValue(a, This is a test.)  Ã‚  Ã‚  Else  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  info.AddValue(a, No test this time.)  Ã‚  Ã‚  End If  Ã‚  Ã‚  info.AddValue(b, 2) Notice that the data is added to the serialized file as name/value pairs. A lot of the web pages Ive found in writing this article dont seem to have actual working code. One wonders whether the author actually executed any code before writing the article sometimes.

Wednesday, January 1, 2020

Gay s On The Military - 1171 Words

Gay’s in the military The argument about gays in the military is a very popular one today with the media and politicians alike. Both sides have valid points in this argument we will look at both points of view and try to make an informed decision based on both points of view. Military Historical Policy The Articles of War of 1916 covered the issue of homosexual behavior for the first time, although exclusion was limited to assault with the intent to commit sodomy. A revision of these regulations in 1920 added the act of consensual sodomy as criminal behavior and made it punishable by imprisonment. Commanders retained considerable discretion over the discipline of soldiers under their command. There is evidence of both the participation of gay military personnel and of discharges for homosexuality as far back as the revolutionary war. After World War I, Military officials tried to develop a psychiatric model to assist in identifying certain personality traits that they believed would assist them in screening out people with certain disorders and hopefully minimize the psychological casualties of war. Military officials issued standards that would disqualified men who displayed a â€Å"stigmata of degeneration† those with a â€Å"degenerate physique† this included those men with female like physical characteristics, which were defined as sloping shoulders, broad hips, an absence of facial or body hair and a lack of secondary sexual characteristics. The military standards alsoShow MoreRelatedDont Ask, Dont Tell1239 Words   |  5 Pagesserve openly in all branches of the US Military Gays should be allowed to openly serve in all areas and levels of the U.S. military because logic and the tide of political correctness dictate that such should be the case. The American armed forces had, since the early revolutionary war, held sodomy (then generally defined as the conduct of performing anal or oral sexual act) as grounds for discharge. It was in 1950, when the Uniform form Code of Military Justice prohibiting homosexual and heterosexualRead More Gays in the Military Essay1362 Words   |  6 Pageshomosexuals from service. In November 1992, President - elect Clinton told Americans that he planned to lift the militarys long - standing ban on gays and lesbians. Homosexual men and women, he said, should not be prevented from serving their country based on their sexual orientation. Soon after taking office in 1993, Clinton faced powerful military and congressional opposition to lifting the ban. General Colin Powell, then - chairman of the Joint Chiefs of Staff, and Senator Sam Nunn, who was chairmanRead MoreGays in the Military1427 Words   |  6 PagesGays in the Military, is it right? For nearly 50 years, it has been the U.S. militarys official policy to exclude homosexuals from service. In November 1992, President - elect Clinton told Americans that he planned to lift the militarys long - standing ban on gays and lesbians. Homosexual men and women, he said, should not be prevented from serving their country based on their sexual orientation. Soon after taking office in 1993, Clinton faced powerful military and congressional oppositionRead MoreAn Age Of Political Correctness Is All The Rage And Conservative Values Are Synonyms With Discrimination Essay1605 Words   |  7 Pagesmasked with intent to bring our country together but generally end up creating even larger division. This is made ever present in the repeal of the military s Don t Ask Don t Tell act. The repel of Don t Ask Don t Tell has more â€Å"Don t Ask Don t Tell† was a law passed by President Bill Clinton in 1993. This widely supported law required gay military personal to refrain from mentioning, discussing, or implying their sexual preferences or orientation in any public forum or platform. The law alsoRead MoreThe Combat Feminine Warrior Paradigm984 Words   |  4 Pagesessence of military culture. This paradigm persists today even with the presence of â€Å"others† (e.g. women and gays) who do not fit the stereotypical image of combatant or masculine warrior.† In a 5-paragraph essay, discuss how the presence of women or gays will cause the military culture to change. Karen O. Donovan s article about military culture explores military tradition, and the impact social changes in society has on the military. These changes included the policy change regarding gays six yearsRead MoreThe Rights Of The Lgbt Community1404 Words   |  6 Pagesever deny someone of risking their lives for the country seems absolutely ridiculous. But this was the very harsh reality of the LGBT community who wanted to serve in the military and be proud of not only their country, but also their identity and orientation. The extremely controversial â€Å"Don’t Ask, Don’t Tell† policy treated the gay and lesbian soldiers unfairly and denied them the freedoms they were essentially fighting for. As of 2011, the law was finally repealed. However, this did not mean theRead MoreThe Battle Of War Of 19161456 Words   |  6 Pagesdocumented service member to be dismissed from the U.S. military for homosexuality. Under an order from General George Washington whic h states abhorrence and detestation of such infamous crimes, Lt. Enslin is drummed out of the Continental Army after being found guilty of sodomy. March 1, 1917 – The Articles of War of 1916 are implemented. A revision of the Articles of War of 1806, the new regulations detail statutes governing U.S. military discipline and justice. Under the category MiscellaneousRead MoreEvolution Of The Brazilian Attitude Towards Homosexuality Essay1168 Words   |  5 PagesBrasileiro: The Evolution of the Brazilian Attitude Towards Homosexuality In the latter half of the twentieth century, the United States witnessed a struggle for gay and sexual liberation that bore the brunt of government persecution, an AIDs epidemic, and overt resistance from the religious right. Brazil dealt with many similar issues, from anti-gay policing and bar raids targeting queer individuals to an AIDs crisis devastating the country to the conservative right gaining more sway. However, these wereRead MoreThe Removal Of The Dadt Policy1297 Words   |  6 Pagesmade America’s military stronger? Studies suggest that the removal of the policy has not made the military stronger. A select number of generals believe that the openness of the recruitment will boost numbers in recruitment and the morale of all soldiers will improve, but the repeal of this act was acted upon during a time of war. Instead of finding ways to aid the troops in combat, Congress was discussing if they should keep or repeal an act involving homosexual rights. Many militar y leaders believeRead MoreDont Ask Dont Tell Outline Essay842 Words   |  4 PagesTurned Away 1.Openly gay 2.Ended careers of over 11,000 service members II.By listening to a brief history of the Don’t Ask Don’t Tell policy you will gain further knowledge of where we have come since the last 60 years Transition: First, lets look at.... Body I.The Beginning A.There are an estimated 63,000 gay and lesbian soldiers currently serving in the armed forces according to a report by the 2004 Urban Institute. 1.1,000,000 veterans who self- identifies as gay or lesbian, brave people