Wednesday, February 12, 2020

Media Ethics and Violence in Media. The Effect of Media on the Public Essay

Media Ethics and Violence in Media. The Effect of Media on the Public - Essay Example The author claims that children who are more influenced by television and media has a general tendency to imitate behaviors seen in media .The article states that this kind of social behavior aggravate the violence among children and lead to chaos in society So I agree with the article and believe that the media should follow ethical standard and should broadcast less violent information in order to avoid imitation of criminal behavior among public especially children. The article states that the tendency to imitate among young children is high, same as in infants. This news with violent content can have a negative impact on the children as they imitate what the criminals are doing which aggravate anti – social behavior in them. The author states that studies have shown the psychological effect of crime on children and their behavior. Today, crime is an important part of the news media. The media certainly has a complex and strong influence on the society and it is their respo nsibility and obligation to follow ethical standards to protect the social security of the public. The Concept of Media Ethics Ethics in the Greek means â€Å"Ethos† and it deals with principles regarding the way in which we need to live with the â€Å"good â€Å"and understanding the distinction between right and wrong. Media ethics is a set standard of principles and laws a media professional should follow during the practice of their profession. This is particularly hard to do, when actions have to be taken quickly, as is often is the case in media. When it comes to the media, however, we don’t always know what is right. Ethical issues are not clearly new. But this issue need to be clearly reviewed and updates on regular basis. The ethical context is ever changing, creating a necessity for careful evaluation of the ethical issues that confront media professionals. The role of media is to educate and enlighten the public and for this it should follow an ethical fra mework in order to realize their full potential. The responsibility of media extends beyond the importance attached to news coverage. Ethical issue arise when the media professionals assumes a position that conflicts with the best interests of the public. Media ethics has been formulated in order to allow journalist to produce news which are fair, accurate and socially acceptable. The main motive of media ethics is to create information which is justifiable and safeguard public interest. Media ethics are formulated with an intention to safeguard the interests of public and regulate immoral action from the media professionals. The Effect of Media on the Public Within the last few decades, the popularity of media has grown exponentially due to the technological advancement and economical development. The society today largely depends on communication and information delivered by the media outlets. The daily lives of people are significantly directed by the media. A common man wakes up with the television and gets himself updated with the help of radio, internet and television regarding the latest news throughout the day. Nowadays, the most of the culture, values and beliefs of a person is molded by the media business. We get the experience of the world and perception of life from the media. We built up our knowledge on worldly facts and events with the help of newspaper and news channels. The trust that people keep on media is high and the lives of people are tied strongly to media world. Especially, the teenagers are more bonded with media as they are constantly in touch with internet and television channels. Nowadays, it is trend to see crime, obscenity and vulgarity on internet and tele

Friday, January 31, 2020

Dubliners is essentially a collection Essay Example for Free

Dubliners is essentially a collection Essay James Augustine Aloysius Joyce was a writer and a poet, born on February 2nd 1882. He is widely considered as one of the most influential writers of the 20th century. James lived in Dublin and was the eldest of a family of ten. James father and mother were devoted Irish Catholics. His father, John was known for spending large sums of money and drinking a lot of alcohol. This made it difficult for the Joyce family to retain social standings. James expressed his difficult childhood in his writing. E. g. In the story of Eveline, Eveline has to deal with a drunken father and living on little income. James went to Clongowes School in 1888, which was a Jesuit institution. He then went on to Belvedere College where he decided to enter the priesthood, which pleased his religious parents. After getting in contact with members of the Irish Literary Renaissance, he became bored with the idea. Soon he became critical of Ireland and its religion. In 1902, Joyce decided to leave Ireland and pursue a medical career in France. Joyce did not return to Ireland until the death of his mother. James then took up residence in Paris, where he began to write. In 1905, Joyce produced his first book, Dubliners, but it was not published until 1913. During this time, he met an Irish woman called Nora Barnacle. They did not marry, but had two children. All in all Joyce wrote a total of four books, A portrait of an Artist as a Young Man, Ulysses, Finnegans Wake and of course Dubliners. James Joyce died from a stomach ulcer aged 58 in 1941. After Joyces death, people became interested in his work. Even today, Ulysses stands as the distinctive text of the Anglo-American modernist movement marking Joyces creative genius and premier abilities as a stylist of the English language. I think that the statement Dubliners is essentially a collection of tales depicting trapped characters, thwarted ambitions and wasted opportunities is accurate, but I also think that there is a lot more that contributes to make up Dubliners. There are eight main themes in this novel. The first and foremost theme is the stages of life. Joyce writes the eight tales that make up Dubliners in order of age. He begins with younger characters and continues with tales based on gradually older protagonists. The next theme involves poverty and class difference. The author sees mostly only the negative part of Dublin and its people. A lot of the characters in the tales are lower or middle class. Another theme is alcoholism. Joyce merges alcoholism with thwarted ambitions. Irish politics and colonisation is a recurring topic. Ivy in the Committee Room is a tale in Dubliners that is nearly completely committed to this theme. The fourth theme is longing for escape (or trapped characters). The author was obsessed with the liberating feeling of fleeing Ireland and he applies this obsession to many of the characters in Dubliners. Another subject is defeat, imprisonment and paralysis. Due to Dublins defeated status, Joyce makes it clear that many of the characters feel trapped and are not able to leave Ireland. This theme is closely related to Isolation. Many characters are lonely and a lot of miscommunication occurs. Death or Mortality is the final theme in Dubliners. It is a natural theme of Joyces life structure. All eight of Joyces tales that make up the novel are packed full of these themes. I have chosen to analyse An Encounter, Araby, Eveline and The Dead. An Encounter is about two young boys who long for escape from school life. They play hooky and wonder around some of Dublins poorer areas, finally across a very strange man, who my have some dark intensions. One of the main themes this tale is longing to escape. The boys play cowboys and Indians that is a symbol that they want to leave the tiny world of Dublin. The story starts with talk about the American frontier, which is a symbol for freedom and adventure. The boys walk around the poorer areas of Dublin, which addresses poverty. The main characters in this tale are in their boyhood, which means that they are too young to leave Ireland. They plan to reach the pigeon house as a final destination, but due to their tired legs, they forget the idea. This becomes a thwarted ambition. Isolation and miscommunication is a reoccurring theme in An Encounter. When the boys meet the strange man, they do not recognise the danger of him. Araby is a short story about a boy from a poor family, who hopes to win over a girls affection by buying her a gift from a bazaar. When he goes to the bazaar, he finds nothing but frustration because they are about to close. The main themes that the story explores are defeat, alcoholism, isolation and paralysis. As the boy waits his uncles return from the pub, so that he can go to the bazaar, the reader feels fear of defeat building. There are lots of hurdles the boy has to overcome to get to the bazaar before closing time. His fear of defeat and isolation increases even more when he finds that many of the items are too expensive (this highlights poverty). Paralysis is felt when he has no idea what is going to become of his relationship with the girl. The difficulty at the bazaar is a symbol of the difficulty there is in the adult world, in which the boy cannot navigate. This story is similar to the point in Joyces life when he had just begun to establish his life as an adult, coping with fear of poverty, isolation and longing to escape. Eveline is a story about a nineteen-year-old girl. The main character Eveline, escape is through a sailor called Frank, who offers her a new life in Buenos Aires. At the end of the tale she is too frightened to leave Dublin. Like An Encounter, Eveline focuses on the theme of escape. While the young boys in the previous stories are two young to leave Ireland or escape from their poverty, Eveline is old enough and has been given a chance to leave. Though, in the end she does not take it. Poverty is an important theme in Eveline. Joyce describes in great detail the terrible poverty and the pressure of Evelines situation. Isolation appears: Eveline is a lonely character. She looks after her father who abuses her. She dedicates her whole life to looking after her family yet she has no one to talk to or express her feelings with. This results in her personality being trapped and controlled by others. Paralysis is a main theme in this story. At the end Eveline finds herself unable to move forward. She does not have the strength to leave her oppressive situation and leave Ireland for good. You get the feeling that half of Eveline wants to leave but the other will not leave her family. She will probably have a dismal future that may end in the same fate as her mother (death). This is a wasted opportunity. The Dead is the last story in the novel. It is about a holiday season dance where Aunt Julia and Aunt Kate entertain a wide range of guests. Among them is their nephew Gabriel, who makes a speech honouring his aunts. Later that night, Gabriel finds himself swept away with passion for his wife Gretta. However, when they return to their hotel room, he finds that she is thinking about her first love, Michael Furey who died for her. Many themes are touched on in The Dead. At the dinner party, you see a hint of poverty in the character of Lily, whose family is poor. The reader sees political divisions in Ireland in the conversation between Gabriel and Miss Ivors. There is also criticism of the church Aunt Kate speaks about the discrimination of the pope to exclude woman from church choirs. Difference in class appears when Gabriel thinks that his speech may be too cast for his audience. Irish politics comes up again in the tale. Miss Ivors accuses Gabriel of being disloyal to Ireland. The theme of isolation and miscommunication comes most strongly after the party, when Gabriel spends the whole journey thinking about some of the good times he had with his wife. Gretta is thinking near the exact opposite. She is thinking of the love that she had with Michael Furey in her girlhood. The result, after Gretta telling Gabriel about her first lover, is Gabriel admitting to himself that he had never felt so strong for a woman, that her would die for her, as Michael Furey did. One of the key themes in The Dead is mortality (beginning with the title). The story is set in winter, which is the season of death. The old aunts in their old house symbolises death not being far away. Gabriel thinks that he will be back at the house soon for the aunts funerals. The major part of mortality is the death of Grettas first love. The separation of the dead becomes a separation for the living. Joyce joins the themes of mortality and isolation together. Gabriel feels like he is already dead although he is just living in isolation. I strongly agree that Dubliners is a collection of tales with trapped characters, thwarted ambitions and wasted opportunities. In the stories that I have discussed, I have attempted to highlight these areas. In each of the stories however, I do feel that Eveline reflects these themes most strongly. The main character in Eveline seems trapped because of her familys dependency on her. She harbours ambitions of going to Argentina and wastes the opportunities of love, wealth, happiness and a new beginning. In Araby, the main character appears trapped due to poverty. He is too young to do anything about this. The main characters ambition is to buy a gift for a girl that he is fond of. He wastes an opportunity to build a relationship with the girl. An Encounter has a similar theme with trapped characters with that the characters are trapped by youth. The boys did not reach their ambition to get to the pigeon house. The boys had an opportunity to get away from the strange old man but they wasted it. In The Dead, there is emphasis on wasted opportunities, the main one being Michael Furey dying for Gretta and characters approaching death.

Thursday, January 23, 2020

Unique Cultures in Arundhati Roy’s The God of Small Things and Chinua A

Unique Cultures in Arundhati Roy’s The God of Small Things and Chinua Achebe’s Things Fall Apart       There are a variety of cultures in this world and each culture is unique. Usually when one was born and raised in a certain culture, that person may adapt to that culture for a period of time. It is sometimes difficult to look into someone else’s culture, and understand their culture. Sometimes one must keep an open mind, study the culture, or live in another culture to understand the culture. When reading â€Å"The God of Small Things† by Arundhati Roy, and â€Å"Things Fall Apartâ€Å", by Chinua Achebe one must look beyond their culture to understand how others live in a different culture. When I read Roy’s novel, I did not get a great understanding of the novel, because it was difficult to follow. I did not know a lot about the culture before I read novel. Both text discusses a particular cultural group, and as the narrator tells the story the narrator intertwines the cultural elements with the actual story being told. The differences between the text were the way the text was structured, and how the stories were told. Also, both texts contained different religions practiced by the particular cultural group. In â€Å"The God of Small Thingsâ€Å", and â€Å"Things Fall Apart† both consist a particular cultural groups. In â€Å"The God of Small Thingsâ€Å", the people in the story were Pakistan Indian. The way Roy described the setting in the story, and how the people looked gave an idea of where the story took place. Plus she also mentioned some cities that are in India. Roy described the rivers as being unclean, but people would cleanse themselves in the river. The women wore saris. The immediate families and extended families seemed to live together also. I... ...me language in the text also. The African clan and Pakistan Indians had different religions. The African clan believed in spirits, and the Pakistan Indians believed in the Muslim faith. Both novels were great novels to read, if one wants to learn more about a particular culture. â€Å"The God of Small Things† is a little difficult to understand. There were so many different meanings in the novel. I believe that people should get a better understanding of one’s culture before one reads a novel of a different culture. If one does not understand the culture, one can misinterpret the meanings in the story.    Work Cited Achebe, Chinua. â€Å"Things Fall Apart†. The Norton Anthology of English Literature. Ed. M.H. Abrams. 7th ed. vol. 2c. New York: W.W. Norton & Company, Inc., 2000. pp.2617-2703. Roy, Arundhati. The God of Small Things. New York: Random House, Inc., 1997.

Wednesday, January 15, 2020

Robot Operating System

ROS (Robot Operating System) is a framework for robot software development, providing operating system-like functionality on top of a heterogenous computer cluster. ROS was originally developed in 2007 under the name switchyard by the Stanford Artificial Intelligence Laboratory in support of the Stanford AI Robot (STAIR[1]) project. As of 2008, development continues primarily at Willow Garage, a robotics research institute/incubator, with more than twenty institutions collaborating in a federated development model [1][2].ROS provides standard operating system services such as hardware abstraction, low-level device control, implementation of commonly-used functionality, message-passing between processes, and package management. It is based on a graph architecture where processing takes place in nodes that may receive, post and multiplex sensor, control, state, planning, actuator and other messages. The library is geared towards a Unix-like system (Ubuntu Linux is listed as ‘supp orted' while other variants such as Fedora and Mac OS X are considered ‘experimental') but is intended to be cross-platform.At present Windows is listed as having ‘partial functionality' [3]. ROS has two basic â€Å"sides†: The operating system side ros as described above and ros-pkg, a suite of user contributed packages (organized into sets called stacks) that implement functionality such as simultaneous localization and mapping, planning, perception, simulation etc. ROS is released under the terms of the BSD license, and is open source software. It is free for commercial and research use. The ros-pkg contributed packages are licensed under a variety of open source licenses.

Tuesday, January 7, 2020

Different Dimensions Of The Concept Of Citizenship

Different dimensions of the concept of citizenship have been addressed in various discourses. For instance citizenship in the context of nationhood or other it has a political connotation to it. Citizenship has different definition and dimension, however, citizenship also connotes the ideals of duties and rights that each member of a political society plays towards their state or nation. Moreover, citizenship also expresses the ideals of patriotism, nationality and or suffrage (Matheson, 22). In Britain, discussion on citizenship has been modelled based on T.H, Marshall, who defined citizenship in terms of three parts or components of rights; political rights, civil or legal rights and social rights. â€Å"Civil or legal rights are institutionalized through the law and include things such as the right to own property; freedom of speech, thought and faith; liberty of the person and the right to justice† (22). On the other hand, political rights as defined by Marshall refers to the institutionalization of the parliamentary political system and the councils of local government and include the right to vote and participate in the exercise of political power† (Matherson, 22). In regards to social rights, citizenship involves the responsibility of the government to provide certain level of economic welfare and social services to a member of a political state. However, in regards to sexuality and citizenship this brings about the rights and status accorded to one as a citizen of aShow MoreRelatedThe Impact Of Organizational Citizenship Behaviour By The Five Dimensions, Antecedents And Their Consequences1648 Words   |  7 Pagesof Organizational Citizenship Behaviour by the five dimensions, antecedents and their consequences. OCB has been explored and researched by scholars and it has been continues to be the area of interest to them. During past thirty years interest in OCB has grown substantially. Keywords: organizational citizenship behaviour, antecedents, dimensions. Introduction This paper reviews the literature on the antecedents and different dimensions of the organizational citizenship behaviour (OCB) andRead MoreThe Cultural Dimensions Of A World Wide Citizenship And Belonging Notion Within Globalization Essay1586 Words   |  7 Pagesand concepts resulting in a growing opportunity for people to explore and appreciate the diversity of world culture. Although globalization has resulted in positive outcomes, it is also important to shed light on the negative consequences as well because it is an essential aspect on the power of Globalization. In this paper, I strive to research the ways in which the conception of a world wide citizenship and belonging notion within Globalization has ardently affected notions of citizenship in aRead MoreOrganisational Citizenship Behaviour : An Organization1478 Words   |  6 PagesOrganisational Citizenship Behaviour: In any organisation, its members could display varied behaviour where minimalists would contribute inadequately just enough to maintain affiliation while others may exhibit overt and discretionary behaviour which is beyond their stipulated job description and likely to benefit the organisation (Turnipseed and Rassuli: 2005). Such latter behaviour where the employee proactively goes the extra mile engaging in extra role activities amounts to Organisational citizenship behaviourRead MorePracticing Decentered Radical Democratic Citizenship in a Decentered State944 Words   |  4 PagesWhat is a citizen and where does she practice her citizenship? These questions cannot be answered unless accompanied by sufficient knowledge of how different types of citizenships are formed and how these citizenships are practiced. There is not one singular type of citizen that permeates the world or even the United States—an intermingled and enmeshed notion of citizenship is acted out through a combination of rights and duties as the citizen attempts to hold onto those values that are most importantRead MoreOrganizational Citizenship Behaviour ( Ocb )1564 Words   |  7 PagesIntroduction Organizational citizenship behaviour (OCB) have long been a field studied by many in order to find out whether there are correlations between different personalities that have a direct effect to OCB. Personality Personality is often characterized as unique behaviors that individual possessed that sets him or her apart form others. On the other hand, Allport (1961: 28) states â€Å"Personality is the dynamic organization within the individual of those psychophysical systems that determineRead MoreEmployee Performance And Achievement Of Organisational Goals1504 Words   |  7 PagesOrganisational Citizenship Behaviour (OCB) by Organ (1988) as cited in Organ (1997), pro-social organisational behaviour (Brief and Motowidlo: 1986), contextual performance (Borman and Motowidlo: 1993) and extra-role behaviour (Van Dyne et al: 1995). OCB has been one of the important and popular research subjects in the recent years. It emphasizes on the most preferred employee-level outcomes at workplace (Bateman and Organ 1983, Smith et al 1983, Anderson and Williams: 1996). Although the concept of OCBRead MoreCultural Values And Social Values1439 Words   |  6 Pagesaffecting how individuals perceive his/her own needs. Different perceptions of needs alter individuals’ goals and how they are achieved. The way we act and interact comes from our culture’s desire to express core cultural values. Looking into cultural values provides context for understanding what might motivate individuals. Hofstede (1980) and Schwartz (1999) have each developed a cultural values framework. Cultural value frameworks Hofstede’s dimensions of culture were postulated from access to an IBMRead MoreCitizenship And International Development Education1920 Words   |  8 PagesUniversity of Waikato Exploring Citizenship, Gobal Citizenship, and Global Citizenship Education Global Citizenship and International Development Education PCSS507 Professor Michael A. Peters 13 August 2015 Exploring citizenship, global citizenship, and global citizenship education Abstract With the progression of globalization, the recognition of how to be a good citizen and how to act as a good citizen in the global age has drawn more and more attention. In addition, the directionRead MoreWhiteness Of A Different Color1363 Words   |  6 PagesMatthew Frye Jacobson’s Whiteness of a Different Color offers innovative insight into the concept of â€Å"race† and the evolution of â€Å"whiteness† throughout American history. Jacobson focuses his analysis on the instability of racial identification over time and how race has been created and perceived throughout different stages of history. He states in his introduction that â€Å"one of the tasks before the historian is to discover which racial categories are useful to whom at a given moment, and why† (pRead More Thinking and Enquiry Skills in Global Education Essay1131 Words   |  5 PagesTo examine and explore what is global citizenship? This essay will look at the importance of becoming a global citizenship, the role we, as educators play in this development and how the curriculum frameworks and associated learning emphases for global education assist in the development of a global citizen. What is global education? â€Å"Global citizenship would seem a recent concept, but its origin can be traced back to at least 4th century Greece when Diogenes declared himself a cosmopolitan –

Monday, December 30, 2019

Bitwise Operations in VB.NET

VB.NET doesnt support bit level operations directly. Framework 1.1 (VB.NET 2003) introduced bit shift operators ( and ), but no general purpose way to manipulate individual bits is available. Bit operations can be very useful. For example, your program might have to interface with another system that requires bit manipulation. But in addition, there are a lot of tricks that can be done using individual bits. This article surveys what can be done with bit manipulation using VB.NET. You need to understand bitwise operators before anything else. In VB.NET, these are: And Or Xor Not Bitwise simply means that the operations can be performed on two binary numbers bit by bit. Microsoft uses truth tables to document bitwise operations. The truth table for And is: 1st Bit  Ã‚  Ã‚  2nd Bit  Ã‚  Ã‚  Result  Ã‚  Ã‚  Ã‚  1  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  1  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  1  Ã‚  Ã‚  Ã‚  1  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  0  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  0  Ã‚  Ã‚  Ã‚  0  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  1  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  0  Ã‚  Ã‚  Ã‚  0  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  0  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  0 In my school, they taught Karnaugh maps instead. The Karnaugh map for all four operations are shown in the illustration below. --------Click Here to display the illustrationClick the Back button on your browser to return-------- Heres a simple example using the And operation with two, four bit binary numbers: The result of 1100 And 1010 is 1000. Thats because 1 And 1 is 1 (the first bit) and the rest are 0. To begin with, lets take a look at the bit operations that are directly supported in VB.NET: bit shifting. Although both left shift and right shift are available, they work the same way so only left shift will be discussed. Bit shifting is most often used in cryptography, image processing and communications. VB.NETs bit shifting operations ... Only work with the four types of integers: Byte, Short, Integer, and Long Are arithmetic shifting operations. That means that bits shifted past the end of the result are thrown away, and the bit positions opened up on the other end are set to zero. The alternative is called circular bit shifting and the bits shifted past one end are simply added to the other. VB.NET doesnt support circular bit shifting directly. If you need it, youll have to code it the old fashioned way: multiplying or dividing by 2. Never generate an overflow exception. VB.NET takes care of any possible problems and Ill show you what that means. As noted, you can code your own bit shifting by multiplying or dividing by 2, but if you use the code your own approach, you have to test for overflow exceptions that can cause your program to crash. A standard bit shifting operation would look something like this: Dim StartingValue As Integer 14913080Dim ValueAfterShifting As IntegerValueAfterShifting StartingValue 50 In words, this operation takes the binary value 0000 0000 1110 0011 1000 1110 0011 1000 (14913080 is the equivalent decimal value - notice that its just a series of 3 0s and 3 1s repeated a few times) and shifts it 50 places left. But since an Integer is only 32 bits long, shifting it 50 places is meaningless. VB.NET solves this problem by masking the shift count with a standard value that matches the data type being used. In this case, ValueAfterShifting is an Integer so the maximum that can be shifted is 32 bits. The standard mask value that works is 31 decimal or 11111. Masking means that the value, in this case 50, is Anded with the mask. This gives the maximum number of bits that can actually be shifted for that data type. In decimal: 50 And 31 is 18 - The maximum number of bits that can be shifted It actually makes more sense in binary. The high order bits that cant be used for the shifting operation are simply stripped away. 110010 And 11111 is 10010 When the code snippet is executed, the result is 954204160 or, in binary, 0011 1000 1110 0000 0000 0000 0000 0000. The 18 bits on the left side of the first binary number are shifted off and the 14 bits on the right side are shifted left. The other big problem with shifting bits is what happens when the number of places to shift is a negative number. Lets use -50 as the number of bits to shift and see what happens. ValueAfterShifting StartingValue -50 When this code snippet is executed, we get -477233152 or 1110 0011 1000 1110 0000 0000 0000 0000 in binary. The number has been shifted 14 places left. Why 14? VB.NET assumes that the number of places is an unsigned integer and does an And operation with the same mask (31 for Integers). 1111 1111 1111 1111 1111 1111 1100 11100000 0000 0000 0000 0000 0000 0001 1111(And)----------------------------------0000 0000 0000 0000 0000 0000 0000 1110 1110 in binary is 14 decimal. Notice that this is the reverse of shifting a positive 50 places. On the next page, we move on to some other bit operations, starting with Xor Encryption! I mentioned that one use of bit operations is encryption. Xor encryption is a popular and simple way to encrypt a file. In my article, Very Simple Encryption using VB.NET, I show you a better way using string manipulation instead. But Xor encryption is so common that it deserves to at least be explained. Encrypting a text string means translating it into another text string that doesnt have an obvious relationship to the first one. You also need a way to decrypt it again. Xor encryption translates the binary ASCII code for each character in the string into another character using the Xor operation. In order to do this translation, you need another number to use in the Xor. This second number is called the key. Xor encryption is called a symmetric algorithm. This means that we can use the encryption key as the decryption key too. Lets use A as the key and encrypt the word Basic. The ASCII code for A is: 0100 0001 (decimal 65) The ASCII code for Basic is: B - 0100 0010a - 0110 0001s - 0111 0011i - 0110 1001c - 0110 0011 The Xor of each of these is: 0000 0011 - decimal 30010 0000 - decimal 320011 0010 - decimal 500010 1000 - decimal 400010 0010 - decimal 34 This little routine does the trick: -- Xor Encryption --Dim i As ShortResultString.Text Dim KeyChar As IntegerKeyChar Asc(EncryptionKey.Text)For i 1 To Len(InputString.Text)  Ã‚  Ã‚  ResultString.Text _  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Chr(KeyChar Xor _  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Asc(Mid(InputString.Text, i, 1)))Next The result can be seen in this illustration: --------Click Here to display the illustrationClick the Back button on your browser to return-------- To reverse the encryption, just copy and paste the string from the Result TextBox back into the String TextBox and click the button again. Another example of something you can do with bitwise operators is to swap two Integers without declaring a third variable for temporary storage. This is the kind of thing they used to do in assembly language programs years ago. Its not too useful now, but you might win a bet someday if you can find someone who doesnt believe you can do it. In any case, if you still have questions about how Xor works, working through this should put them to rest. Heres the code: Dim FirstInt As IntegerDim SecondInt As IntegerFirstInt CInt(FirstIntBox.Text)SecondInt CInt(SecondIntBox.Text)FirstInt FirstInt Xor SecondIntSecondInt FirstInt Xor SecondIntFirstInt FirstInt Xor SecondIntResultBox.Text First Integer: _  Ã‚  Ã‚  FirstInt.ToString - _  Ã‚  Ã‚  Second Integer: _  Ã‚  Ã‚  SecondInt.ToString And heres the code in action: --------Click Here to display the illustrationClick the Back button on your browser to return-------- Figuring out exactly why this works will be left as as an exercise for the student. On the next page, we reach the goal: General Bit Manipulation Although these tricks are fun and educational, theyre still no substitute for general bit manipulation. If you really get down to the level of bits, what you want is a way to examine individual bits, set them, or change them. Thats the real code that is missing from .NET. Perhaps the reason its missing is that its not that hard to write subroutines that accomplish the same thing. A typical reason you might want to do this is to maintain what is sometimes called a flag byte. Some applications, especially those written in low level languages like assembler, will maintain eight boolean flags in a single byte. For example, a 6502 processor chips status register holds this information in a single 8 bit byte: Bit 7. Negative flagBit 6. Overflow flagBit 5. UnusedBit 4. Break flagBit 3. Decimal flagBit 2. Interrupt-disable flagBit 1. Zero flagBit 0. Carry flag (from Wikipedia) If your code has to work with this kind of data, you need general purpose bit manipulation code. This code will do the job! The ClearBit Sub clears the 1 based, nth bit (MyBit) of an integer (MyByte).Sub ClearBit(ByRef MyByte, ByVal MyBit)  Ã‚  Ã‚  Dim BitMask As Int16  Ã‚  Ã‚   Create a bitmask with the 2 to the nth power bit set:  Ã‚  Ã‚  BitMask 2 ^ (MyBit - 1)  Ã‚  Ã‚   Clear the nth Bit:  Ã‚  Ã‚  MyByte MyByte And Not BitMaskEnd Sub The ExamineBit function will return True or False depending on the value of the 1 based, nth bit (MyBit) of an integer (MyByte).Function ExamineBit(ByVal MyByte, ByVal MyBit) As Boolean  Ã‚  Ã‚  Dim BitMask As Int16  Ã‚  Ã‚  BitMask 2 ^ (MyBit - 1)  Ã‚  Ã‚  ExamineBit ((MyByte And BitMask) 0)End Function The SetBit Sub will set the 1 based, nth bit (MyBit) of an integer (MyByte).Sub SetBit(ByRef MyByte, ByVal MyBit)  Ã‚  Ã‚  Dim BitMask As Int16  Ã‚  Ã‚  BitMask 2 ^ (MyBit - 1)  Ã‚  Ã‚  MyByte MyByte Or BitMaskEnd Sub The ToggleBit Sub will change the state of the 1 based, nth bit (MyBit) of an integer (MyByte).Sub ToggleBit(ByRef MyByte, ByV al MyBit)  Ã‚  Ã‚  Dim BitMask As Int16  Ã‚  Ã‚  BitMask 2 ^ (MyBit - 1)  Ã‚  Ã‚  MyByte MyByte Xor BitMaskEnd Sub To demonstrate the code, this routine calls it (parameters not coded on Click Sub): Private Sub ExBitCode_Click( ...  Ã‚  Ã‚  Dim Byte1, Byte2 As Byte  Ã‚  Ã‚  Dim MyByte, MyBit  Ã‚  Ã‚  Dim StatusOfBit As Boolean  Ã‚  Ã‚  Dim SelectedRB As String  Ã‚  Ã‚  StatusLine.Text   Ã‚  Ã‚  SelectedRB GetCheckedRadioButton(Me).Name  Ã‚  Ã‚  Byte1 ByteNum.Text Number to be converted into Bit Flags  Ã‚  Ã‚  Byte2 BitNum.Text Bit to be toggled  Ã‚  Ã‚   The following clears the high-order byte returns only the  Ã‚  Ã‚   low order byte:  Ã‚  Ã‚  MyByte Byte1 And HFF  Ã‚  Ã‚  MyBit Byte2  Ã‚  Ã‚  Select Case SelectedRB  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Case ClearBitButton  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  ClearBit(MyByte, MyBit)  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  StatusLine.Text New Byte: MyByte  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Case ExamineBitButton  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  StatusOfBit ExamineBit(MyByte, MyBit)  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  StatusLine.Text Bit MyBit _  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚   is StatusOfBit  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Case SetBitButton  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  SetBit(MyByte, MyBit)  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  StatusLine.Text New Byte: MyByte  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Case ToggleBitButton  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  ToggleBit(MyByte, MyBit)  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  StatusLine.Text New Byte: MyByte  Ã‚  Ã‚  End SelectEnd SubPrivate Function GetCheckedRadioButton( _  Ã‚  Ã‚  ByVal Parent As Control) _  Ã‚  Ã‚  As RadioButton  Ã‚  Ã‚  Dim FormControl As Control  Ã‚  Ã‚  Dim RB As RadioButton  Ã‚  Ã‚  For Each FormControl In Parent.Controls  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  If FormControl.GetType() Is GetType(RadioButton) Then  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  RB DirectCast(FormControl, RadioButton)  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  If RB.Checked Then Return RB  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  End If  Ã‚  Ã‚  Next  Ã‚  Ã‚  Return NothingEnd Function The code in action looks like this: --------Click Here to display the illustrationClick the Back button on your browser to return--------

Saturday, December 21, 2019

Role of Design in Newspaper Design - 3844 Words

Introduction Newspaper is a publication which it main function is to report news. Most newspapers contain information for readers such as a weather report, television schedules, and also listing of stock prices. They also provide commentary on current politics, economics, and art and culture. In most cases newspaper depends on commercial advertising for their income at various degrees. By the time readers see or read a newspaper, most of them have already learned of the breaking news through television or radio. However, they rely on newspaper to provide details on information and analysis which was rarely offered by the television or radio. Newspaper does not only inform readers but also help readers to understand what led up to the†¦show more content†¦Berliner of midi: 470mm by 315mm commonly used by the European paper such as Le Monde in France, La Stampa in Italy and The Guardian in United Kingdom. Brief History of New Straits Times Known as Malaysias oldest newspaper, the weekly to newspaper eight-page newspaper (initially founded by the Armenian Catchick Moses with assistance from Robert Carr Woods) first published July 15, 1845 as ‘The Straits Times. A weekly circulation (Every Tuesday) priced at 10 sen of less than 200 copies were printed. The name was changed to Daily Times in 1858 went it was published daily as an afternoon paper. In 1883, Daily Times reverted to its original name The Straits Times reestablished as the New Straits Times in 1965. It served as the only broadsheet format English language newspaper in Malaysia until September 2004 when a tabloid version was published concurrently with the traditional broadsheet. In April 2005, the newspaper ended its 160-year-old tradition of broadsheet publication by solely publishing the tabloid size. How has newspaper design changed over time? In 1450, Johann Gutenberg invented a screw printing press adopting the idea from the wine press used since the Roman Empire. This invention has enable information and knowledge to be widely spread which wasShow MoreRelatedEssay on The Strength and Weakness of The Press1285 Words   |  6 PagesNewspaper, being one of the earliest mass media communication platforms, might be decreasing in popularity among the public. But even so, it keeps surviving by refining and improving itself in order to keep up with all the other medias. The current newspaper that we hold and read today has come a long way in developing itself. There is time when newspapers don’t make news like the way they do today, and there is also time when newspapers that are overly stuffed with too many advertisements don’tRead MoreEssay on Footwear International1020 Words   |  5 PagesDirector John Carlson, after he was shown the pro-Libyan newspaper article. It had read that his company had offended the potential of millions of Muslims. A design of an insole from a women’s style sandal was the target. This article was started by a student group at a local university. John Carlson was very perplexed by the article and its timing as the management team of Footwear Bangladesh was attempted to be contacted by the newspaper the night before the publication of the article. At thisRead MoreLanguage As A Medium Of Communication957 Words   |  4 PagesLanguage plays a very important role as a medium of communication between two individuals and it has two forms that are oral and written. The written language is best known as ‘LIPI’ (script). Every language has its own character set, representation structure and rules, but aim was same and that is ‘Communication’. Communication by means of the printed word to a mass audience of in a form of Newspapers built bridge for progress and upliftment of a country. The rapid expansion of the Internet wasRead MoreTitle of the project report Effectiveness of Advertisement in Telecom Industry on consumers with1400 Words   |  6 Pageseffectiveness of advertisements i.e. on sales, profitability. III. To study the perception of consumers towards the product due to advertisement. IV. To find the ways to make it more effective. Reaserch Methodology Research Design The research design is Descriptive studies. Descriptive studies are well structured, they tend to be rigid and its approach cannot be changed every now and then. Descriptive studies are undertaken in many circumstances: 1. When the researcher is interestedRead MorePurpose Of The Event For All Blind Children And Their Families1299 Words   |  6 Pageswould be anyone who is interested in participating that could range from adults, children, and even seniors. 3. Discuss any options of web environments (e.g. traditional website, blog, and forum) with the client to determine the most suitable design for the event. There is to be a Members only area. Sponsors are to be featured heavily in the website. There is a section on the webpage to be provided with photos and stories of the families they are raising funds for, we will need consent fromRead MoreGraphic Design And Visual Arts873 Words   |  4 Pages Graphic design and Visual arts are two different artistic fields. The field of Graphic design, which is responsible for creating solutions that, has a high visual impact. The role involves listening to clients and understanding their needs before making design decisions. Designs by graphic designers are required for huge variety of products and activities, such as websites, advertising, books, magazines, posters, computer games/video games, product packaging, exhibitions and displays. VisualRead MoreJob Analysis and Recruitment Techniques Essay1706 Words   |  7 Pagesany emergency. J0B DESIGN Different job types are involve in different job activities .through job design organisations wants to produce our productivity and profit from a sense of personal achievement in meeting the increased challenge and responsibility of one work. Job enlargement, job enrichment, job rotation and job simplification are the various techniques used in a job design exercise Read MoreDesigning A Possible Future Career Path1369 Words   |  6 PagesAm I? Through this research study will contain an overview of why interior design has been my intended choice to study and how it could be a possible future career path. Also included will be a summary of both my skills and how these will help within the future career alternative, and the skills needed to achieve this. Along with this will be a review of the design discipline currently and what is intended for interior design in the next five years, this will also cover designer’s philosophy and aRead More Marketing Essay1145 Words   |  5 Pagesthe product situation I will be dealing with the design, what the average size should be, should the shower gel be safe for little kids whilst playing around with the container if found, how it will be sellable and what the expectation will be whilst buying the product. These would be the main criteria’s I will be looking at whilst dealing with my products situation and will have to show all the needs of the buyer’s point of view.  · The design: This should be very simple and casual for whichRead MoreEssay On Graphic Design1133 Words   |  5 PagesGraphic design, also known as communication design, is the practice of planning and displaying ideas and experiences with visual and textual content. Graphic design can be physical in nature, like designing posters, flyers, billboards, postage stamps, or any other physical visual form of design. Graphic design can also be digital like creating a virtual design for blogs, websites, online advertisements, and so on. Digital design also has a multitude of purposes such as commercial, professional, education