發表文章

目前顯示的是 1月 8, 2019的文章

Balaiada

圖片
This article includes a list of references, related reading or external links, but its sources remain unclear because it lacks inline citations . Please help to improve this article by introducing more precise citations. ( November 2014 ) (Learn how and when to remove this template message) Balaiada Revolt - Brasil Troops departing from Rio de Janeiro to Maranhão. Date 1838-1841 Location Province of Maranhão, Brazil Result Legalist victory Belligerents Empire of Brazil National Guard Imperial Navy Rebels Balaios African slaves Commanders and leaders Colonel Luís Alves de Lima e Silva Cosme Bento  † Raimundo Gomes Strength 10,000-12,000 8,000 Casualties and losses 30,000 dead The Balaiada was a social revolt between 1838 and 1841 in the interior of the Province of Maranhão, Brazil. Contents 1 Background 2 Revolt 3 Repression 4 Legacy 5 References Background During the imperial period, the Maranhão region, which exported cotton, suffered a severe economic crisis because of c

Malê revolt

圖片
Malê revolt Date January 1835 Location Salvador, Bahia Result Legalist victory, repelled rebellion. Belligerents   Brazil National Guard Yoruba slaves Strength unknown, at least 3 battalion of guards +600 insurgents Casualties and losses ~7 dead soldiers +80 dead 300 captured The Malê revolt (Portuguese: Revolta dos Malês , pronounced  [ʁɛˈvɔwtɐ duz maˈle(j)s] , [ʁeˈvɔwtɐ duz mɐˈle(j)s] , also known as The Great Revolt ) is perhaps the most significant slave rebellion in Brazil. On a Sunday during Ramadan in January 1835, in the city of Salvador da Bahia, a small group of black slaves and freedmen, inspired by Muslim teachers, rose up against the government. Muslims were called malê in Bahia at this time, from Yoruba imale that designated a Yoruba Muslim. The uprising took place on the feast day of Our Lady of Guidance, a celebration in the Bonfim’s church’s cycle of religious holidays. As a result, many worshipers traveled to Bonfim for the weekend to pray or celebrate. Authorities

Extract resources to current directory?

圖片
0 I want to extract the resources "cygz.dll" to the current directory where the program started right after the form is loaded. Here is my code. private static void extract(string nameSpace, string outDirectory, string internalFilePath, string resourceName) Assembly assembly = Assembly.GetCallingAssembly(); using (Stream s = assembly.GetManifestResourceStream(nameSpace + "." + (internalFilePath == "" ? "" : internalFilePath + ".") + resourceName)) using (BinaryReader r = new BinaryReader(s)) using (FileStream fs = new FileStream(outDirectory + "\" + resourceName, FileMode.OpenOrCreate)) using (BinaryWriter w = new BinaryWriter(fs)) w.Write(r.ReadBytes((int)s.Length)); private void Form1_Load(object sender, EventArgs e) extract("myNamespace", "\TEMP", "resources", "cygz.dll"); Instead of "\TEMP", I want to extract "cygz.dll" to the current direc