Tuesday, December 31, 2019

Using the Perl String Length Function

Perl is a programming language used primarily to develop web applications. Perl is an interpreted, not compiled, language. This means its programs take up more CPU time than a compiled language — a problem that becomes less important as the speed of processors increases.  Writing code in Perl is faster than writing in a compiled language, so the time you save is yours. When you learn Perl, you learn how to work with the languages functions. One of the most basic is the string length function. How to Find Length of a String in Perl Perls length function returns the length of a Perl string in characters. Here is an example showing its basic usage: #!/usr/bin/perl $orig_string This is a Test and ALL CAPS;$string_len   length( $orig_string );print Length of the String is : $string_len\n; When this code is executed, it displays the following:  Length of the String is: 27. The number 27 is the total of the characters, including spaces, in the phrase This is a Test and ALL CAPS. Note that this function does not count the size of the string in bytes — just the length in characters. What About the Length of Arrays? The length function works only on strings, not on arrays. An array stores an ordered list and is preceded by an sign and populated using parentheses. To find out the length of an array, use the scalar function. For example: my many_strings (one, two, three, four, hi, hello world);say scalar many_strings; The response is 6, the number of items in the array. A scalar is a single unit of data. It might be a group of characters, as in the example above, or a single character, string, floating point, or integer number.

Monday, December 23, 2019

Gender Inequality In Society - 1808 Words

Gender inequality remains a major barrier between humans. Women have made major strides in promoting equality as a whole, but have a long way to go. Gender roles are a set of societal norms dictating the types of behaviors which are generally considered acceptable, appropriate, or desirable for people based on their actual or perceived sex or sexuality. The concept of gender roles is based on certain male and female stereotypes, which has been constructed through history. In American society, the norm for gender roles distinguishes between masculine and feminine behaviors, attitudes, and activities. In today’s culture people want to promote the concept of egalitarianism, which can value equality but promote and put certain emphasis on†¦show more content†¦In order to understand why gender inequality is present within society, we must first understand how gender became a category for human beings to be classified. Eric Wolf (1923-1999) describes culture as a â€Å"sel f-generating and self-propelling mental apparatus of norms and rules for behavior†. Culture involves habits and symbols, which produce ideas that allow individuals to separate or unite themselves. The 19th century model of unilineal evolution emerges through the theories of various anthropologists. This model seeks to critique societies and cultures through a teleology that moves from primitive to civilized societies. Through this model, we see ideas formulated by James Ferguson (1959-present) and Edward Tylor (1832-1917). Ferguson states there are no higher or lowers societies, however, Tylor views civilization as higher and lower forms through the use of culture. He holds to the idea that civilization and culture are identical. There are not different civilizations, just different amounts of culture within a society. Charles Darwin (1809-1882) enforced the ideology that women are biologically inferior to men. This was thought largely due to the idea that men must prove th emselves physically and intellectually against other men in competition for women. Whereas, women must be superior to a man largely in the case of physical attraction. Franz Boas (1858-1942) challenged unilineal evolution and argued that Darwin’s work wasn’t teleological. In theShow MoreRelatedGender Inequality Throughout Genders Of Society1494 Words   |  6 PagesCOMP100 June 22, 2015 Inequality Throughout Genders Every human being has the right to be treated equal, regardless of their skin color, race, gender, or religious preference. The problem in our world to this day is the fact that people, mostly women, are being classified as weak and because of their gender they are being mistreated. In recent cases women have been deprived from a higher education. Also, when working, their workplace is not equal. Gender inequality is happening all over theRead MoreFactors of Gender Inequality in the Society633 Words   |  3 PagesGender inequality refers to unequal treatment or perceptions of individuals based on their gender. It arises from differences in socially constructed gender roles as well as biologically through chromosomes, brain structure and hormonal differences. The following factors account for issues of gender inequalities in the Ghanaian society. Education inequality Gender differences in enrolment for formal education have narrowed slightly since Independence but continue to persist particularly at higherRead MoreGender Inequality : The Nigerian Society1859 Words   |  8 Pages Gender Inequality In the Nigerian Society By Morakinyo Ladipo-Ajayi Student # 6345172 Submitted to Mahmoud Masaeli DVM 1100 A October 30th, 2014 University of Ottawa Introduction Discussions on gender equality in recent times have focused on steps taken towards putting women in their proper prospects. In the past, each sex had clearly defined roles and the issue of gender conflict never arose. The extent of gender inequality had been hidden for so long that its seriousnessRead MoreBloodchild: Gender Inequality in Society1462 Words   |  6 Pagessimilarities surrounding the social issues of gender inequality arise. The circumstances of the narrator mirror social issues affecting modern women. Bloodchild by Octavia Butler examines the dynamics of power between the sexes; by switching the gender roles in the story, she show how women are marginalized in society. Women are living in a patriarchal society which contributes to gender inequality. It dominates most of the institutions of society like; religion, the family politics, and theRead MoreGender Inequality in Modern Society1573 Words   |  7 PagesThis study deals with gender inequality in the modern society and looks at the difficulties women face when they strive for equal success as their male counterparts. About seventy-five percent of the jobs in well-paid professions are held by men and even if women are able to get equal jobs they are still paid considerably less . The central question posed is, are there any differences in the aspirations and career goals between males and females? However, in order to fully understand stereotypicalRead MoreGender Inequality And The Aristotelian Society860 Words   |  4 PagesGender Inequality in an Aristotelian Polity Aristotle’s philosophies were deeply influenced by his upbringing and interest in biology. He believed that the reason of a thing lies in its function. Everything that exists has a purpose, and that purpose is the reason that thing is the way it is. For example, all the substances that make up a seed are there because the way those particular substances interact with each other causes that seed to grow. When the seed grows, it reaches its full potentialRead MoreGender Inequality : Today s Society Essay1377 Words   |  6 Pages Gender inequality has become an ongrowing issue in today’s society. This issue begun in early history and has grown over time. In early days it simply began as women not being able to vote or not being able to work. This has improved over time and now women have gained those rights, but there are still inequalities in today’s society between genders. When most people think of gender inequality they automatically think of women. Men have also started to become victims of gender inequality. Read MoreGender Inequality Today s Society1406 Words   |  6 PagesGender inequality is the difference in the way someone is treated perceive depending if they are a male or female. Throughout the years, it was common to see a great inequality in the way women were treated. It is not just that males and females are biologically and anatomically different rather that society has created stereotypes as a way to assign roles for both, making a gap between them. There has been a long battle in the women’s community as a way to try to achieve equality. One of the greatestRead MoreDiscuss The Nature Of, And Explanations For, Gender Inequalities In Society.1603 Words   |  7 PagesGender inequality discusses how differences between males and females contribute to, or cause, social and cultural differences. Society has grown to have differences between men and women with greater emphasis of inequality on women. There is evidence to suggest that women generally tend not to work in skilled jobs in the construction and engineering sectors and few men working in secretarial positions (1996 Labour Force Survey) does this mean that men are more skilled than women. Early researchRead MoreGender Inequality in Modern Hong Kong Society9403 Words   |  38 PagesThe Title Gender Inequality In Modern Hong Kong Society. Table of Contents TABLE OF CONTENTS.....................................................................................†¦Ã¢â‚¬ ¦Ã¢â‚¬ ¦.i LIST OF GRAPHS...............................................................................................†¦Ã¢â‚¬ ¦...ii LIST OF TABLES...............................................................................................†¦Ã¢â‚¬ ¦....ii 1 Abstract 1 2 Thesis Statement 2 3 Methodology 3 4.1 Recommendation to Reduce Gender

Sunday, December 15, 2019

Kumbh Mela Free Essays

The sea of humanity that the mela resembles is surreal and spiritual. When friends and well-wishers learnt that my wife and I were going to the Mahakumbh mela for Mauni Amavasya, they were aghast. Some shuddered at the prospect of rubbing shoulders with 30 million of the great unwashed. We will write a custom essay sample on Kumbh Mela or any similar topic only for you Order Now Others warned of how polluted and carcinogenic the once-pristine Ganga has become. A few were mortified that we would be staying in tents on the riverbank with no access to room service or a flat-screen TV. Some wondered why I, as a non-Hindu, wanted to visit the Mahakumbh at all. Everyone wished us well but confessed to being glad they weren’t undertaking the expedition to Allahabad. I, too, was initially apprehensive about embarking on this mega pilgrimage, afraid, perhaps, of the unknown. The logistics of getting to Prayag were daunting. The trains were overflowing and the nearest airports were located several hours away. We decided to fly into Lucknow and then drove a harrowing six-and-a-half hours through â€Å"rururban† UP to finally reach the Sangam around midnight. Our tent, with an adjacent toilet, was basic but comfortable. An unseasonal downpour had, however, turned the chalky riverbank into a slushy mess. Mauni Amavasya is considered the most auspicious day during the Mahakumbh to undertake the Shahi Snan. Pilgrims were converging by the tens of thousands and the state administration had locked down vehicular entry into the city. Our neighbours, city slickers like us, had to walk 13 kilometres from the outskirts of Allahabad to reach the tent complex as their car wasn’t allowed to proceed. At night, the temperature plummets and in the absence of heaters, we snuggled in a sleeping bag and used a blanket overlay to keep warm in our flimsy tent. The next morning, we were woken up at 4 am by a cacophony of loudspeakers, competing to be heard. Bhajans and pravachans from rival akhadas blared at full volume. Shouting above this din was a public announcement for family members who had been separated at the Kumbh. A female voice, mimicking a cow, lowed â€Å"Maa† instead of a moo, and exhorted pilgrims to join the campaign to end cow slaughter. A medicine man on a megaphone advertised a book for a hundred rupees that provides a remedy for all ailments known to mankind. Forget about doctors, he shrieked at the top of his voice, simply sit at home and cure yourself of either insomnia or impotence. We groggily stepped out and were stunned by the sight of an entire township of tents that stretched endlessly along both banks of the mighty Ganga. This was the proverbial sea of humanity one had heard about, and it was staggering to witness the sheer scale of this congregation. Walking with millions of believers chanting har har Gange to the Sangam at 4. 30 am was both a surreal and spiritual experience. Naked Naga babas, brandishing swords and trishuls, charged into the river exalting Lord Shiva, who had tamed his wilful daughter by trapping her in his matted locks. Men, women and children were unmindful of stripping before strangers as they undertook the sacred dip in freezing waters. The entire ritual was conducted without any jostling, shoving or disturbance. The faithful converged with reverence and behaved impeccably. Any fear of crowds and claustrophobia melted away and all you felt was oneness with your fellow man. It was, therefore, ironic and all the more tragic that the same evening the stampede at the Allahabad Railway Station left 36 people dead. Today is the last day of the Shahi Snans and we should all perhaps whisper a prayer that it passes without incident. How to cite Kumbh Mela, Papers

Saturday, December 7, 2019

Did German Ambitions for World Power Make War Inevitable in 1914 free essay sample

The First World War was the biggest and bloodiest war to have been fought with modern technology and caused wide spread chaos and tragedy that until that date was unparalleled in Europe. Of the 65,038,810 people mobilized to fight from all the countries involved 8,556,315 died, 21,219,452 soldiers were injured, and 7,750,945 were reported missing/P. O. W. Because the war was fought on such a massive scale, and caused such wide spread tragedy, all within living memory, it makes it both an interesting and controversial subject, and because of this there are many different theories about what the cause of WWI was. The most blamed party for the outbreak is Germany. There were many different factors involved in the events leading to war, and Germany found herself at the root of the majority of them in one way or another. Even German historian F. Fischer was quoted saying â€Å"Germany had a will to war† in his book Griff nach der Weltmacht (Germany’s aims in the First World War) [1] Fischer’s theory on the origins of WWI was that Weltpolitik was instigated because Germany wanted a war. We will write a custom essay sample on Did German Ambitions for World Power Make War Inevitable in 1914? or any similar topic specifically for you Do Not WasteYour Time HIRE WRITER Only 13.90 / page However the impact of the events surrounding assassination of Franz Ferdinand must be taken into account, as well as the other power’s actions/responses. In 1890 after the dismissal of Bismarck for Caprivi, Germany’s Weltpolitik began with three main aims; colonial annexations, creation of economic spheres of influence, and expansion of the navy. It can be argued that Germany knew that each of these policies would cause conflict with the other powers, and that they were introduced not only for the purpose of making Germany a great power but also to instigate a war. In his first years in power Caprivi attempted to untangle the complex system of alliances and commitments Bismarck had created during his long stay in office, and it can be said that his most important decision in accordance with Weltpolitik was his decision not to renew the Reinsurance Treaty between Russia and Germany[2], however this was mainly due to Holstein- a senior official in the foreign ministry- who managed to use Caprivi’s lack of experience of foreign affairs to exert great influence over German policy. By planning to expand their navy as part of Weltpolitik Germany began a naval ace with Britain. In 1898 came the first German Fleet Act, two years later a second doubled the number of ships to be built, to nineteen battleships and twenty–three cruisers in the next twenty years By aiming to have a bigger navy than the other powers Germany hoped to become a great power, and to have influence over the Balkans, and to be able to gain a colonial empire[3]. It can be argued that, because as part of the naval expansion policy was to keep Britain in the dark about it, Germany knew naval expansion would provoke the British and that it could lead to a struggle between the powers. With their secretive naval race and the creation of the Dreadnought, Britain became severely provoked and soon Germany and Britain were turned into enemies. Germany and England had previously been friendly due to France being their mutual enemy, but with the secretive start of a naval race with Britain Germany pushed them away and towards a new Britain, Russia and France alliance. This was most certainly a large contributing factor to the events leading to WWI, and ensured that Britain would not take Germany’s side- a factor that they were ill prepared for and would eventually lead to their loss of the war. Germany’s ambition for worldwide expansion, though, is arguably the single most prominent event whose ripples caused World War One. By 1890 almost all of the colonial territories that were rich in export goods and had a good climate, such as Africa, were already divided up and part of the major power’s empires so by the time Germany decided that she wanted to expand her empire worldwide there was little land to be gained, and the land that was available to be claimed was inhospitable or poor and so Germany was faced with the options of taking land that no one wanted or to try to take the land from another country. Britain had wished to have good relations with Germany, but did not want its hands tied by continental commitments, or, as Prime Minister Lord Salisbury put it:   Britain wished to avoid the â€Å"encumbering engagements of an alliance†. Relations with Britain did improve, thanks to the gestures by Germany, such as the Helgoland-Zanzibar Treaty of 1890[4], which neutralized colonial tensions in East Africa and provided Germany with a naval base in the North Sea. Russia aided by the fear of an Anglo-German alliance, allied itself with France in 1892, putting an end to decades of French isolation, which had been one of the aims and greatest achievements of the Bismarck system. Germany made minimal gains, while an embittered France had now gained a powerful ally on Germany’s eastern flank, something which Bismarck had sought to avoid for his entire time as chancellor. Had Germany not wanted to cause conflict that could end in war then they would have tried to gain lands by political means, purchase or just settling for land that was yet unclaimed. However Germany decided to try to take French and British lands in Africa, not only alienating them from Germany but also driving them together and forming their political friendship and support that would later lead to the triple alliance. [5] During the Boer war Germany started to support the Boers and providing them with the latest rifles to fight the British with in a hope that they would instead gain the lands and the gold and diamonds to be found there by â€Å"diplomatic† means after the British had been beaten. Their bid for the Boer lands was unsuccessful, and they led the condemnation of the Boer war, and the British’s use of concentration camps and the killing of prisoners without trial- ironically some 40-50 years later they would themselves use this tactic on a larger scale and are still condemned to this day for it. This drove Britain and France into cementing an alliance in 1904, and the Moroccan crises of 1905 and 1911 only served to drive them closer together for safety against Germany’s aggression. Germany’s actions also made the other powers extremely hostile towards her, creating mass conflict. It was this aggressive attitude coupled with other countries fear and concern that created mass tension throughout Europe. As a result of their aggressive foreign policy and expansionism plans, by 1912 Germany found herself surrounded by hostile countries. The Kaiser and leading military leaders held a war cabinet meeting to discuss â€Å"how to get out of this mess†. It was decided that as they were surrounded by hostile countries that they would need an ally to help fight their way out. The decision to ally with Austria rather than Russia is what led to the signing of the â€Å"Blank Cheque† of support for Austria[6]. It was also decided that if a war happened that it would most likely be in the Balkans, and that the sooner it happened the better because if Russia had more time they could become too strong to defeat, and as their ally Britain would be dragged into it on the side of Russia- something that Germany did not want as they sought Britain as allies. Although it can be said that Germany set the wheels of WWI in motion, it can be argued that it was not at Kaiser Wilhelm’s direction alone, it was also due to Bismarck. Bismarck’s alliance systems had created rivalry and suspicion between the powers, causing worldwide tension. The first of the major alliances to be formed was Germany with Austria-Hungary forming the Duel Alliance to combat Russian influence in the Balkans, and in 1882 expanded to include Italy and became the Triple Alliance. Bismarck’s Franco-Prussian war of 1871 ended in France being defeated by the Germans, and the construction of an alliance system to isolate France, and then Germany forced France to pay Germany reparations. This alliance system, although short lived, allowed Germany to become stronger and allowed her to think that she could get away with a more aggressive foreign policy in the coming decades as there had been little/no intervention with their war with France[7]. In 1892 the Triple Entente, an alliance between France, Russia and Britain was formed to counteract the force of the Triple Alliance and led to heightened tensions as Germany found herself encircled by hostile powers. A lot of emphasis is put on Germany’s involvement in and actions leading up to WWI however there are many other prominent contributing factors that can be said to have caused the war. One of these is the instability in the Balkans. After the decline of the Turkish Empire there was a â€Å"power vacuum† in the Balkans[8]. Both Russia and Austria wanted to control the Balkans and so were not reliable in an alliance together, and so Germany chose to renew an alliance with the Austro-Hungarian Empire rather than Russia. Serbia an ambitious Slavic state won its independence from the Turkish Empire allied itself with Russia, and the Austrians took control of Bosnia in 1908 causing them to almost come to blows with Russia who had hoped that the â€Å"Black Hand† from Serbia would assimilate Bosnia into Serbia. Austria looked back to the Duel alliance between themselves and Germany, who promised to support them if they fought with Russia. [9] After the assassination of the Arch-Duke Franz Ferdinand from Austria by a member of the Black Hand the Balkans found themselves split in two, with Serbia and Russia on one side, and Germany, Austria and Bosnia on the other side. Although the â€Å"Blank cheque† of support promised by the Germans contributed to the outbreak of war, it can also be argued that had Austria reacted to the incident with diplomacy rather than the demand of war then WWI may not have happened, or if it had then it would have been at a different time and perhaps with other powers against each other. However, Germany, Austria, and Russia are not the only powers who can be said to be responsible for the outbreak of WWI; there was also the contribution of the French. The French never got over their defeat by the Germans in 1871, and remained hostile towards them. France had an expansive colonial empire and had refused to give any to the Germans[10]. Perhaps had they done so then Germany may not have adopted the aggressive foreign policy tactics that they did, and so would not have surrounded themselves with hostile powers. Another factor of France’s contribution to the beginnings of WWI was their alliance with Russia. The alliance with Russia meant that Germany was further surrounded by hostile powers and would have felt trapped and there would perhaps have been no need for her to act so belligerently towards her neighbors. Also, Britain can be partly blamed for the outbreak of war. As the strongest power Britain could have used her influence to prevent events from escalating to a full out world war, however at the turn of the century Britain had been preoccupied with solving the Irish question,[11] and by the time that she turned her full attentions to the worldwide stage, events and tensions had escalated beyond the point of return and WWI was firmly on its way. In conclusion, although Germany’s grand expansionism plans and uncontrolled ambition are certainly a main contributing factor to WWI, it would be impossible for them to have a war alone, which would suggest that they cannot be soley blamed for it and that it was a mixture of everyone’s actions that culminated in war. By 1914 tensions between the major powers were high, further driven by shifting alliance systems. At this time any of the countries involved could have sparked of the final steps towards war, it ould be argued that it was just serendipity or chance that it was the Germans, however had their Schleiffan plan taken into account that the British would become involved in the war then it perhaps would have been a different power that took the final steps to war. Although it can be argued that everyone was at least partly to blame for the outbreak of WWI, it was in fact mostly the result of Germany’s unchecked ambition and expansionism attempts. This is because, although all the powers had a hand in the outbreak of war most of the events that caused the tensions and rivalries had German actions behind them; France were unwilling to share colonial territories after being defeated by Germany in the Franco-Prussian war 1871 and allied with Russia, causing Germany to feel surrounded. Russia, threatened by an Anglo-German alliance allied with France, and backed Serbia against Bosnia and her Austro-German alliance. England was hostile towards Germany after the Boer war and Moroccan crises, and became close allies with France, who of course were hostile to Germany. In short it was Germany’s own actions that caused the war, and also her downfall in it, as had she acted differently she may not have driven her allies away and into each others arms.