Tuesday, March 17, 2020
Parse a Delimited String Into a String List (Delphi)
Parse a Delimited String Into a String List (Delphi) There are many times when you need to split a string into an array of strings by using a character as a separator. For example, a CSV (comma separated) file might have a line like Zarko;Gajic;;DelphiGuide and you want this line to be parsed into 4 lines (strings) Zarko, Gajic, (empty string) and DelphiGuide using the semi-colon character ; as a delimiter. Delphi provides several methods to parse a string, but you might find that neither one does exactly what you need. For example, the ExtractStrings RTL method always uses quote characters (single or double) for delimiters. Another approach is to use the ââ¬â¹Delimiter and ââ¬â¹DelimitedText properties of the TStrings class- but unfortunately, there is a bug in the implementation (inside Delphi) where the space character is always used as a delimiter. The only solution to parsing a delimited string is to write a method of your own: Delimited String Example ~~~~~~~~~~~~~~~~~~~~~~~~~procedure ParseDelimited(const sl : TStrings; const value : string; const delimiter : string) ;vardx : integer;ns : string;txt : string;delta : integer;begindelta : Length(delimiter) ;txt : value delimiter;sl.BeginUpdate;sl.Clear;trywhile Length(txt) 0 dobegindx : Pos(delimiter, txt) ;ns : Copy(txt,0,dx-1) ;sl.Add(ns) ;txt : Copy(txt,dxdelta,MaxInt) ;end;finallysl.EndUpdate;end;end;~~~~~~~~~~~~~~~~~~~~~~~~~ Usage (fills in Memo1) :ParseDelimited(Memo1.lines,Zarko;Gajic;;DelphiGuide,;)
Sunday, March 1, 2020
Biography of Sonni Ali, Songhai Monarch
Biography of Sonni Ali, Songhai Monarch Sonni Ali (birth date unknown; died 1492) was aà West African monarch who ruled Songhai from 1464 to 1492, expanding a small kingdom along the Niger River into one of medieval Africas greatest empires. Two divergent historical accounts of his life persist: the Muslim scholarly tradition that paints him as an infidel and tyrant and the oral Songhai tradition that remembers him as a great warrior and magician. Fast Facts: Sonni Ali Known For:à West African monarch of Songhai; expanded his empire, superseding the Mali empireAlso Known As:à Sunni Ali and Sonni Ali Ber (The Great)Born:à UnknownParents: Madogo (father); mothers name unknownDied:à 1492Education: Traditional African arts education among the Faru of SokotoChildren: Sunni Baru Two Divergent Versions of Sonni Alis Life There are two main sources of information about Sonni Ali. One is in the Islamic chronicles of the period and the other is through Songhai oral tradition. These sources reflect two very different interpretations of Sonni Alis role in the development of the Songhai Empire. Early Life Little is known about Sonni Alis early life. He was schooled in the traditional African arts of the region and was well versed in the forms and techniques of warfare when he came to power in 1464 in the small kingdom of Songhai, which was centered around its capital city of Gao on the Niger River. He was the 15th consecutive ruler of the Sonni dynasty, which had begun in 1335. One of Alis ancestors, Sonni Sulaiman Mar, is said to have wrested Songhai away from the Mali Empire toward the end of the 14th century. Songhai Empire Takes Over Although Songhai had once paid tribute to the rulers of Mali, the Mali Empire was now crumbling and the time was right for Sonni Ali to lead his kingdom through a series of conquests at the old empires expense. By 1468, Sonni Ali had repulsed attacks by the Mossi to the southà and defeated the Dogon in the hills of Bandiagara. His first major conquest occurred in the following year when the Muslim leaders of Timbuktu, one of the great cities of the Mali Empire, asked for help against the Tuareg, the nomadic desert Berbers who had occupied the city since 1433. Sonni Ali took the opportunity not only to strike decisively against the Tuaregà but also against the city itself. Timbuktu became part of the fledgling Songhai Empire in 1469. Oral Tradition Sonni Ali is remembered in Songhai oral tradition as a magician of great power. Rather than following the Mali Empire system of Islamic city rule over a non-Islamic rural people, Sonni Ali mixed an unorthodox observance of Islam with traditional African religion. He remained attached to the traditional rites of his mothers birthplace, Sokoto. He was a man of the people rather than the elite ruling class of Muslim clerics and scholars. According to the oral tradition, he is regarded as a great military commander who carried out a strategic campaign of conquest along the Niger River. He is said to have retaliated against the Muslim leadership within Timbuktu after they failed to provide promised transport for his troops to cross the river. Islamic Chronicles The Islamic chroniclers have a different viewpoint. They portray Sonni Ali as a capricious and cruel leader. In the 16th century chronicle of Abd ar Rahmen as-Sadi, a historian based in Timbuktu, Sonni Ali is described as an impious and unscrupulous tyrant. Sonni Ali is recorded as having massacred hundreds while plundering the city of Timbuktu. This routing included killing or driving out the Tuareg and Sanhaja clerics who had acted as civil servants, teachers, and as preachers at the Sankore mosque. In later years, according to this historian, he is said to have turned on court favorites, ordering executions during temper tantrums. More Conquest Regardless of the precise interpretation of history, it is certain that Sonni Ali learned his military lessons well. Never again was he left at the mercy of someone elses fleet. He built up a river-based navy of more than 400 boats and used them to good effect in his next conquest, the trading city of Jenne (now Djennà ©). The city was placed under siege, with the fleet blockading the port. Although it took seven years for the siege to work, the city fell to Sonni Ali in 1473. The Songhai Empire now incorporated three of the greatest trading cities on the Niger: Gao, Timbuktu, and Jenne. All three had once been part of the Mali Empire. Trade Rivers formed the major trading routes within West Africa at that time.à The Songhai Empire now had effective control over the lucrative Niger River trade of gold, kola, grain, and slaves.à The cities were also part of the important trans-Saharan trade route system which brought south caravans of salt and copper, as well as goods from the Mediterranean coast. By 1476, Sonni Ali controlled the inland delta region of the Niger to the west of Timbuktu and the lakes region to the south. Regular patrols by his navy kept the trade routes open and tribute-paying kingdoms peaceful. This is an extremely fertile region of West Africa, and it became a major producer of grain under his rule. Slavery A 17th-century chronicle tells the tale of Sonni Alis slave-based farms. When he died, 12 tribes of slaves were bequeathed to his son, at least three of which had been obtained when Sonni Ali initially conquered parts of the old Mali empire. Under the Mali Empire, slaves were individually required to cultivate a measure of land and provide grain for the king. Sonni Ali changed this system and grouped the slaves into villages, each required to fulfill a common quota, with any surplus to be used by the village. Under Sonni Alis rule children born in such villages automatically became slaves. They were expected to work for the village or to be transported to the trans-Saharan markets. Sonni Ali the Warrior and Ruler Sonni Ali was brought up as part of an exclusive ruling class, a warrior horseman. The region was the best for breeding horses in Africa south of the Sahara. As such he commanded an elite cavalry, with which he was able to pacify the nomadic Tuareg to the north. With cavalry andà navy, he repulsed several attacks by the Mossi to the south, including one major attack which reached all the way to the Walata region northwest of Timbuktu. He also defeated the Fulani of the Dendi region, which was then assimilated into the Empire. Under Sonni Ali, the Songhai Empire was divided up into territories, which he placed under the rule of trusted lieutenants from his army. Traditional African cults and the observance of Islam were combined, much to the annoyance of Muslim clerics in the cities. Plots were hatched against his rule. On at least one occasion, a group of clerics and scholars at an important Muslim center were executed for treason. Death Sonni Ali died in 1492 as he returned from a punitive expedition against the Fulani.à Oral tradition claims he was poisoned by Muhammad Ture, one of his commanders. Legacy A year after Alis death, Muhammad Ture staged a coup detat against Sonni Alis son Sonni Baru and founded a new dynasty of Songhai rulers. Askiya Muhammad Ture and his descendants were strict Muslims, who reinstated orthodox observance of Islam and outlawed traditional African religions. As with his life, his legacy has two very different interpretations in the oral and Muslim traditions. In the centuries which followed his death, Muslim historians recorded Sonni Ali as The Celebrated Infidel or The Great Oppressor. Songhai oral tradition records that he was the righteous ruler of a mighty empire that encompassed more than 2,000 miles (3,200 kilometers) along the Niger River. Sources Dobler, Lavinia G, and William Allen Brown. Great Rulers of the African Past. Doubleday, 1965 Gomez, Michael A.,à African Dominion: A New History of Empire in Early and Medieval West Africa. Princeton University Press, 2018Tesfu, Julianna. ââ¬Å"Songhai Empire (Ca. 1375-1591) BlackPast.â⬠à BlackPast.ââ¬Å"The Story of Africa| BBC World Service.â⬠à BBC News, BBC.
Friday, February 14, 2020
Value of Education in Todays Society Research Paper
Value of Education in Todays Society - Research Paper Example Education is Important to the Economy and to Learning Civic Responsibility Participants in higher education are often more responsible financially because they are opened to a variety of higher level thinking skills. Mohan (2012) states that an individual who gains a degree is often able to find better jobs than those who do not. Mohan also states that people are less likely to accept public assistance if they have a good job. Brand (2010) states that education puts people into the position of becoming more civic minded. Brand notes that as people excel in college, they are less likely to be involved in volunteer work. Education opens peopleââ¬â¢s minds and directs them to a better life. This is an important feature of education that is true across cultures. Education is Important to Career Advancement Many people want to advance in their careers. Many times, they only way for advancement is to gain more education. In many corporate settings, as employees gain certain levels of ed ucation, they can move into management other positions. Education helps an individual see other opportunities and put into place goals and objectives that are important to their own career growth. Comunian, Faggian, and Jewell (2011) point out that there are a variety of careers that are successful when people are looking for jobs. When someone has education they can also begin at a better salary than they would if they only have a high school education. A higher salary may mean that a person will spend more money in the economy and this will help society improve. Educated people are able to critically think in many situations. Baum and Payea (2005) state that when people have a college education it provides... This paper approves that Education creates leaders. Leaders are important in any society because they are at the head of most organizations. Chyns, Kiefer, Kerschreiter and Tymon state that education is important to self-awareness and leadership development. The authors studied leadership and found that leaders must be able to understand the environments in which they work. Leaders also have an understanding of how to lead people and get them to do what is needed. This is important because without strong leadership, most organizations fail. This essay comes to a conclusion that education is important to society on many levels. Education drives a society and can help it transition to a stronger community. Education is important to enhance a society and to make it stronger. When someone is gaining education, he or she learns how to help others achieve as they take the role of leadership. Education is important to the economy because educated people spend more and they pay more taxes. They also pay taxes. Both situations bring people together and help the society grow. Most organizations are working with a diverse work group which means that training should be involved with them to understand more about cultures and about what culture looks like. In a global world, it is important is to be culturally sensitive to the needs of all workers and this come with education and training. There is no doubt that education is important to society. There are a variety of ways that educated people help the economy.
Saturday, February 1, 2020
Southwest Airlines Case Anaylsis Essay Example | Topics and Well Written Essays - 10000 words
Southwest Airlines Case Anaylsis - Essay Example They lived up to their dreams since Southwest Airlines now ranks the fourth largest airliner that is operating under the logo LUV on NYSE in the united states of America. Rolling King and Herb Kelleher completed the necessary paperwork to create Air Southwest Co. the name by which the southwest airlines was known. Following the filing of approval by the two pioneers with the FAA, on 20th February, 1968 their plan to fly between the three Texas cities was approved by the Texas Aeronautical Commission. Southwest continued to expand all through the 1980s and 1990s, and by 1993, it was operating between 34 cities in 15 states. This airline progressively expanded across the southwestern states into the northwest, the Midwest, and the state of California. Besides, it ventured into new destination in Florida and on the east coast. Owing to the low prices it offers it quickly conquered the markets share it explored. In fact; some competitors were forced to withdraw after Southwest Airlines entered their markets, allowing the company to expand faster than expected (David 1999). For instance; when the Southwest Airlines ventured into California market (1990) it quickly scooped 20% of the intrastate market, sending a number of its competitors out of Los Angeles-San Francisco route, thus dominating the route. This happened because they were unable to contest the $59 one-way flight charges, with their $186 one way fare (Scholes 1999). In late 1994, United Airlines started to make a come back to the west coast routes. They tried to launch a low-cost, high-frequency shuttle services to no avail, because even a shuttle could not contest with southwest in a direct battle, as a result United Airline had to relocate its shuttle out of Southwest Airlines' routes and to some extent abandon some routes altogether (David 1999). Nowadays a lot of people travel by plane, the airline industry has hence increased in service provision and even in scope specializing cargo and passenger planes. Southwest Airlines Company ventures in this industry in a unique way providing fairly low priced air transport in over 58 cities across the United States of America. Despite the September 11th terrorist attack, that caused a major blow to the airline industry, the Southwest Airlines Company still persisted when other airline corporations sunk into debts. Based on the information on southwest airliners from News Week and Wall Street Journal, the corporation enjoys steady sales (David 1999). The major attribute for their unwavering success is their low-cost model and the knowledge by the competitors that the low prices of southwest are far from being matched. Therefore; by decreasing the prices even lower, the southwest airline corporation can push a company into bankruptcy (Scholes 1999). An outstanding objective of Southwest Airlines involves dedication to top-quality service delivery coupled with a sense of friendliness, person's dignity, hospitality, and company zeal. Among the services the company provides are, short haul, point to point, high frequency, and low fare air transportation between 58 cities in the United States (David 1999). The organization of Southwest Airline Company adopts an upside-down pyramid where the senior management is at the base and
Friday, January 24, 2020
A Comprehensive Study of Jonas Salk Essay -- Biography
A remembrance in La Jolla, California, presents, ââ¬Å"Hope lies in dreams, in imagination, and in the courage of those who dare to make dreams into reality.â⬠The memorial commemorates the great virologist Jonas Salk (Salk.edu). Although many recognize Salk as the man who effectuated the eradication of polio, he also contributed to a vast amount of medical research. A comprehensive study of Jonas Salk includes his young life, early career, work with poliomyelitis, and later career and life. Daniel and Dora Press Salk became the parents of Jonas Salk on October 28, 1914. Daniel, a womenââ¬â¢s garment designer, provided his new family with a small apartment in Manhattan (Bankston 11). As the eldest Salk received his motherââ¬â¢s imperishable attention. When Salk was two, the first great polio infection in the United States commenced; the concentration was most severe in New York City, home of the Salks (Hargrove 8-9). No mother was more cautious than Dora Salk. While both parents were relatively uneducated, they highly valued education. Mrs. Salk kept Jonas inside not only to protect him from feared diseases, but also to satisfy his curiosity and promote learning. She supplied Salk with literature and logical problems throughout his childhood (Barter 16-18). Salk entered free, yet prestigious Townsend Harris High School at the age of Farless 2 twelve and then graduated three years later (Bankston 13-14). He refused his motherââ¬â¢s preference of rabbinical school and decided to major in pre-law at the City College of New York to become a congressman (Kluger 27). After enjoying himself in science classes, he decided to switch to pre-med and become a researcher (Barter 20). He graduated in 1934 and entered the New York University School of Me... ...inoculated with Salk's vaccine. The rate of infection of poliomyelitis was eighty-six percent less than in 1954 (Carter 351). Salk began working on the Salk Institute for Biological Studies in La Jolla, California. The institute would be a haven for scientists, philosophers, and artists. The work there focused on both cancer and AIDS research (Bankston 43). Salk spent most of his life in the laboratory rather than with his wife and three sons. Donna and Jonas Salk split in 1968. He later married Francoise Gilot in 1970. He also wrote four books during the 1970s (Barter 90-91). He continued working diligently until his death by congestive heart failure on June 23, 1995. Salk had the imagination, dreams, and courage to tackle several of the most prominent issues in the United States. His ambitions and successes will live on through the thousands of lives he saved.
Thursday, January 16, 2020
Meaning of life â⬠Existentialism Essay
? Throughout the story, Grendel is trying to find the meaning of life. He is trying to understand the purpose of living, and was looking for something to steer him in the right direction. In Chapter five, when Grendel finally meets the dragon, he finally believes that he has found the meaning of life. Grendel begins his life by being an existentialist. He was basically alone when he was young, and was left to figure out the world around him with no help. It was confusing to him, and that is how he developed the idea of existentialism. He believed that he alone existed. Existentialism stresses freedom of choice, and he had the power to do whatever he wanted to do, so it made sense. He eventually realizes that he does not control the world when he says, ââ¬Å"I think, trying to suck in breath, and all that I do not see is useless, void. (Pg. 29)â⬠After coming to this realization, Grendel looks for a different meaning to life. He then listens to the Shaper, who tells lies to make the Danes feel better about themselves and have a meaning to life. As much as he wants to believe the Shaper and live his life according to what he says, Grendel felt too ashamed believing in lies to do so. He decided that he would rather be an outcast if that was what it took to find the truth. He believed that he had found truth after talking to the dragon. The dragon is a nihilist. He sees no purpose in life. He claims to know everything, ââ¬Å"the beginning, the present, and the end. (Pg. 62)â⬠His basis behind nihilism is that everything eventually comes to an end, even himself. He thinks that there is no point in trying to better mankind because in the end it wonââ¬â¢t matter. In the dragonââ¬â¢s mind, we are all fighting a lost cause, and there so there is no point in trying. He puts down humans, and especially the Shaper. He says that the shaper is just giving the Danes an illusion, and does not know any more than they do. The only important thing for the dragon is finding gold. The dragon tells all of this to Grendel, who is at first skeptical of what he is hearing. He began to take the dragon more seriously when the dragon says that humans needed him in order to think and scheme and that Grendel caused humans to have science and religion. This gave Grendel the identity that he had been looking for: ââ¬Å"I was Grendel, Ruiner of Meadhalls, Wrecker of Kings. (Pg. 80)â⬠Grendel became on board with nihilism. He now became ââ¬Å"enragedâ⬠when he heard the Shaper tell his lies and felt like he was giving the Danes a purpose when he killed them, which only caused him to kill more. Grendel thought that he had found his purpose in life, although it ended up leading to his death. His belief in nihilism made him not stop killing, and also believe that he was important to the Danes. He believed that him killing Beowulf would be good for the Danes, and that is why he tried to kill him. Beowulf ended up killing Grendel. Had Grendel changed his views he would not have gotten killed by Beowulf and everyone would have been better off.
Wednesday, January 8, 2020
Roman And Greek Gods Essay example - 1482 Words
Roman and Greek Gods It has been known that the Romans and the Greeks have had many interactions with each other, whether it would be due to trading or just plain traveling, the stories of their myths have crossed each other in one way or another. This is may be the reason why there are many similarities between Greek and Roman Mythology. Even though a Greek god or goddess may have a different name in Roman Mythology they still performed similar tasks and were worshiped for similar reasons. I will compare and contrast Greek gods with their Roman equivalences to see how similar they truly are to each other. Probably the most famous Greek god, Zeus, was the god of all gods. Born to Cronus and Rhea, he was the ruler of the sky, and hadâ⬠¦show more contentâ⬠¦From the sources I have read about Juno, she seems more like a goddess that always helped the humans. Humans would offer her sacrifices so that she could help them with marriage, birth, protection, or finances. Hera seems too engulfed in her husb andââ¬â¢s affairs rather than helping humans that would praise her. Ares, the child of Zeus and Hera, was the god of war. He was usually seen or portrayed to be fully armed and ready for battle and very eager fight or go to war. Although he was never married, he had many children with several goddesses and mortal women. Almost all of his children by mortal women were of a violent nature. Mars on the other hand, was the Roman god of agriculture and war. He was thought to be the second most important god after Jupiter. He was in charge of military activities and farming. It was believed that the month March was named after Mars, and was also the first month of the Roman calendar. March was considered to be the month when agriculture was high and when most people engaged in war. Ares seems to be a very angry and active god as opposed to Mars that seems to be calmer. Ares is always prepared for battle and is always looking for a reason, like an instigator where Mars looks over the ag riculture and the military to make sure that they are able to defend Rome, like a defender. Even though Mars was also the god of war, it would seem that he would rather prevent warShow MoreRelatedGreek and Roman Gods 1375 Words à |à 6 Pagesheroes, gods and goddesses to explain natural events. (Leonard, ââ¬Å"Mythologyâ⬠). In mythology, most stories are connected and explain another myth, (Stapleton 42). According to the article ââ¬Å"Roman Godsâ⬠, the twelve greatest gods and goddess of Rome were parallel to the twelve Olympian gods in Greek Mythology. Many of the Roman gods were believed to have been involved in founding Rome (ââ¬Å"Roman godsâ⬠). The Greek god, Zeus was King and father of all the gods and the sky (ââ¬Å"Principal Greek and Roman Godsâ⬠). Read MoreThe Similarities Of The Greek Gods And The Roman Gods718 Words à |à 3 Pages Did you know that the Greek gods and the Roman gods are quite similar. The purpose of Mythology was to help explain everyday things like weather, death, love, etc. With Mythology there had to be gods that ruled and controlled those events. The Greeks developed their gods that were said to live on Mt. Olympus. The Romans also developed gods, whose name has have been incorporated into a lot of things, such as the names of the planets. Although the Romans developed gods, they took a significant amountRead MoreRoman And Greek War Gods1292 Words à |à 6 PagesRoman and Greek War Gods It is a common misconception that Roman and Greek mythology is the same thing, but with different names. This starts in the origin of Roman mythology. When the Romans took over the Greeks they allowed them to keep their beliefs and customs. These beliefs spread to the Romans that lived nearby. When the Romans learned about these gods, they became the main gods of Rome with different names and personalities. (Ancient Civilizations through the Renaissance, p.332) However,Read MoreThe Gods Of Greek And Roman Mythology1006 Words à |à 5 PagesMany say that the gods of Greek and Roman mythology find their origin to the days of Noah ââ¬â and I would argue ââ¬â the time of the Canaanites some 3500 plus years ago. In these stories, we find all sorts of beings that are part human and part divine (gods). Is it just one more coincidence that The Bible teaches that The Antichrist will head up a ten-nation kingdom made up from the old Roman Empire? That The Antichrist himself will even tually become part human and part angel when Satan comes into himRead MoreThe Gods Of Greek And Roman Mythology Essay1940 Words à |à 8 Pages However, the involvement of the gods goes much farther than just what is described in Choephori and Eumenides. From the events of the Trojan War, to the system of honor that demands that Orestes avenge his father, the gods were the directors of all of the action. The gods of Greek and Roman mythology are portrayed in very human terms. They are fallible, temperamental, and equally prone to anger or happiness toward their human subjects. In these myths, the gods are constantly interacting with theirRead MoreDifferences and Similarities of Greek and Roman Gods1714 Words à |à 7 Pages Mythological gods are a subject that has fascinated many for centuries. Some of the more popular gods are the Greek gods and t he Roman gods. On many occasions people have confused the gods of these two ancient civilizations. For instance when a person thinks of the goddess of love they may think of Venus or Aphrodite and think that they are one and the same. They are not though, Aphrodite is the Greek goddess of love and Venus her Roman counter part. When thinking of the God of Love, CupidRead MoreSimilarities and Differences between Greek and Roman Gods1010 Words à |à 5 Pageswondered where things in our everyday lives get their names from? Well the an swer could be from Greek or Roman gods. So many things are indeed named after the gods. Like the car company Mercury or the shoe company Nike. There are many gods in both mythologies but this essay will talk about 12 of them, six gods from Greek mythology and six gods from Roman mythology. Each god will have their own corresponding god from the other mythology. Although they might be from different mythologies in essence theyRead MoreComparing Roman And Greek Mythology1354 Words à |à 6 Pages Roman Vs. Greek Mythology Roman and Greek mythology are full of complexities. Much of Greek and Roman everyday life revolved around these myths. Many similarities are obvious between Roman and Greek mythology because the Romans borrowed a significant amount of their myths and gods from the Greeks. Although Roman and Greek mythology have a few components in common, they also have many various aspects that cause differences in their cultures. First of all; values, morals, traditionsRead MoreGreek And Roman Mythology881 Words à |à 4 PagesGreek and Roman Mythology Since the dawn of time, different societies have worshiped gods, believing in their power and being afraid of their fury. People have prayed and made sacrifices in order to achieve the gods mercy and generosity. They believed that, if the gods are in good mood, they will provide people with good weather conditions for growing crops. People needed explanations for different natural phenomena, such as rain, drought, lightning, thunder and earthquake. So, ancient people believedRead MoreGreek and Roman Culture Essay examples1240 Words à |à 5 PagesGreek and Roman culture, although similar, are very different and interesting. Since the Romans adopted culture from the Greeks, many traditions are the same. When the Romans conquered the Hellenistic cities, they became fascinated with the idea of a Greek style of doing things. All things Greek were now considered popular. This is how much of the Greek way of life made its way into the Roman society. The first part of culture that the Romans adopted was the Greek art. Scores of Greek paintings
Subscribe to:
Posts (Atom)