Category Archives: .NET

TechDay 2014: Azure Workshop – Demos and Slide Decks


After Microsoft TechDay finished yesterday I got several emails and questions about my demos and slides from the Azure Workshop.

So here is a link from which you can download all slides and demos you saw yesterday on my Workshop:

Slides about Microsoft Azure Training are general available at Git site: https://github.com/Azure-Readiness/DevCamp.

Once more thank you all for attending the workshop and see you next time. I am very glad I can see lot of people interested in Microsoft Azure and other cool technologies from Microsoft.

Remove items from a List while enumerating


Here is a simple way to remove items from currently enumerated list.
Put the list in while loop and make a manual index counter (var ind=0). Within while loop, every time items is removed decrease the index counter, otherwise increase the index.

private static void RemoveDirty(List<Element> lst)
{
    var ind = 0;
    while(ind<lst.Count)
    {
        var el= lst[ind];
        if (el.IsDirty)
        {
            lst.RemoveAt(ind);
            // in case item is removed decrease the index
            ind--;
        }
        // increase the index when nothing is happen
        ind++;
    }
}

TechDay 2014: Azure Workshop – Banjaluka 8. dec. 2014


ms-event

Lokalni ured Microsofta u BiH ove godine u sklopu TechDay 2014 organizira 4 radionice koje će ponuditio cjelodnevnu edukaciju zainteresiranih iz 4 popularne teme. Jedna od nezaobilaznih tema svakog Microsoft događaja je svakako Azure, odnosno Microsoftova Cloud Computing platforma, a  koja je od ove godine dostupna i u Bosni i Hercegovini. Sve 4 radionice su potpuno besplatne, a zainteresirani se mogu registrovati putem slijedećih linkova. Klikom na zeljenu radionicu otvorit će se link sa registracijom.

1. Razvoj Universal Windows Apps (Spaso Lazarević)

2. Microsoft Azure radionica (Bahrudin Hrnjica)

3. Business Intelligence na Microsoft platformi (Petra Korica-Pehserl)

4. Microsoft Business Productivity Workshop + Enterprise Mobility Suite (Domagoj Pernar & Mirad Maglić)

Ove godine pripala mi je čast da budem jedan od 4 voditelja radionica, i to upravo Azure radionice.

U sklopu Azure radionice održat će se 6 predavanja, koja će obraditi sve značajne dijelove ove platforme.

Radionica je namjenjena kako početnicima i zaljubljenicima u Cloud Computing platformu, tako i developerima, IT profesionalcima i managerima.

Microsoft Azure platforma danas predstavlja najkompletniju, najkvalitetniju i najbrže rastuću Cloud Computing platformu, koju 80% Fortune 500 kompanija koriste.

Detaljnije informacije o Microsoft Azure radionici:

Azure Workshop Agenda

  1. Keynote Microsoft Azure Wokrshop, Bahrudin Hrnjica, Microsoft MVP
  2. Cloud Rješenja (PAAS) (Cloud Servisi na Microsoft Azure)
  3. Web (Microsoft Azure Web Hosting platforma)
  4. Podaci na Cloudu (SQL i NoSQL Data u Cloudu )
  5. IAAS (Azure Virtualne Mašine)
  6. Azure i Mobilne tehnologije

Vidimo se na Azure radionici.

Get resource string from .NET application regardless of the current culture


It is common practice that for the multilingual .NET application language specific strings are placed on the Resource of the .NET application. Each supported language has itc own resource file which holds the translated strings. Many year ago I wrote article about it, and you can find it on this location (on Bosnian language).

But what if you want to get the resource string regardless of you current culture. In fact when you call App.Properties.Resources.SomeString you always  the localized string based on the current culture. If you want to get string from other language than current culture, you need to call something else.

For example: Suppose your current culture is English, and you want to get string from the German resources. The picture below shows the resource string in both language specific resources (the first one is German, the second is English resource):

resources
First you need to create Culture info object for german language, and call the GetString method from ResourceManages class by passing the cultureInfor object. The code below show the procedure of getting the string in other that current application language.


System.Globalization.CultureInfo germanInfo = new CultureInfo("de-DE");
string germanWord= Properties.Resources.ResourceManager.GetString("CompatibleMode", germanInfo);

Happy programming

Follow

Get every new post delivered to your Inbox.

Join 570 other followers