in

Community Blogs

Blogs of different SQL/Developers Community Members

This Blog

Syndication

DamirDobric

veljača 2011 - Posts

  • Windows Phone and Kinect for XBox 360

     

  • IT-Karrierenchancen auch für Frauen

    Diese Woche habe ich gemeinsam mit unserer Kollegin Nadine ein Inteview für Franfurter Rundschau auf das Thema Frauen in IT gegeben. Sie ist definitiv eine tolle und sehr annerkante Kollegin. Egal, was ich meine, hier ist vermutlich einziger Share Point Blog von einer Frau in Deutschland. Überzeugen Sie sich selbst. Falls es doch eine oder andere Frau mit ähnlichen Blog gibt, bitte um Vergebung :).

    image image
    Da diese Branche in der Tat an Frauenmgel, aus teilweise berechtigten aber auch sehr oft unberechtigten Gründen leidet, haben wir uns entschieden offen und ehrlich darüber zu berichten. Hier ist der Artikel (ohne Zensur, versprochen).
    Es ist nicht das übliche technische Thema über das ich berichte, würde mich aber trotzdem über das Feedback sehr freuen.

     

    Damir.

  • Few thins for Web Developers

    Building HTML5 applications

    It is expected that HTML5 will be pretty important mainstream in next technology wave. Because HML5 specification is still not finished most people thing, it is still not time o start building apps for HTML 5. Well, the specification could be finished in this decade, but we can start today to build HTML5 applications.

    The upcoming Visual Studio 2010 SP1 will already provide some interesting things:
    http://blogs.msdn.com/b/webdevtools/archive/2011/01/27/html5-amp-css3-in-visual-studio-2010-sp1.aspx

     

    Building Web Applications for Mobile Devices

    Here is a whitepaper written by Steve Sanderson that covers how to mobile-enable ASP.NET and ASP.NET MVC based applications:
    http://www.asp.net/learn/whitepapers/add-mobile-pages-to-your-aspnet-web-forms-mvc-application

    Posted vlj 06 2011, 12:54 by anonymous
    Filed under:
  • Windows Azure Hands on Lab

    Samples for an internet-scale cloud computing and services platform hosted in Microsoft data centers, which provides an operating system and a set of developer services which can be used individually or together.

    Hands on Labs
    http://msdn.microsoft.com/en-us/gg295249


    Windows Azure AppFabric SDK V1
    http://www.microsoft.com/downloads/en/details.aspx?FamilyID=39856a03-1490-4283-908f-c8bf0bfad8a5&displaylang=en


    Windows Azure AppFabric Samples V2 CTP
    http://www.microsoft.com/downloads/en/details.aspx?FamilyID=D89640FC-C552-446E-AEAD-B1E0D940F31B&displaylang=en

  • How does look one machine on Windows Azure?

    image

                         - Task Manager on Worker Role Machine -    

     

     

    image

                                               - Process List on Worker Role Machine -

     

     

    image  
    image

                                                             - List of services on worker role -

     

    image                 

     

     

     

     

     

     

     

     

     

     

     


                                                                 - Web Role in IIS (instance zero) -

  • How to setup Remote Desktop connection to Windows Azure Machine?

    If you want to connect to Windows Azure machine you will need to do few steps which are described in this post.

    First connect to you Windows Azure portal, go to get activation token and copy it to clipboard.

    image_thumb[7]

    Then right mouse click on your Windows Azure hosted Service in Visual Studio Solution

    image

    and following dialog appears. Paste the token here.

    image

    Now, go to publish and following dialogs will appear:

    image

    In the first one, click on “Configure Remote Desktop” connections and in the second one choose some user name and password. This will be the local account at the Windows Azure machine.
    Assuming that Windows Azure Connect is configured, go back to Windows Azure Portal and peek on of machines you would like to connect.

    image

    For example we can connect now to RD00155D3*.

    image

    And here we are:

    image

    As you see my Windows Azure machine is not geniune (seems to be stolen Smile) and it does not provide the sound Smile

  • How to configure VPN with Windows Azure Connect?

    Windows Azure Connect is used to configure IPsec protected connections between one or more machines (physical or VMs) in your local network, and Web roles, Worker roles, or VM roles.
    Connect can be accessed in new Windows Azure Portal (currently BETA):https://windows.azure.com/

    image

    If you want to use it click on Install. After some clipboard URI copy (just press install and you will see what I mean) the simple installation wizard will start installation of required local bits.

    image      image   image

    After Connect Endpoint is installed, it will automatically be activated after around 10 to 30 seconds. Once a local machine is activated, it will appear in the Virtual Network of the Management Portal when you select the “Activated Endpoints” node or the “Groups and Roles” node.

    After the connection is activated you can experience following:

    image

    Note then when you install the local endpoint software, a firewall rule is created for Internet Control Message Protocol version 6 (ICMPv6) communication. This rule allows ICMPv6 Router Solicitation and Router Advertisement (Type 133 and Type 134) messages, which are essential to the establishment and maintenance of an IPv6 local link. Do not block this communication.

    After successful install of local endpoint the development portal will show it as activated:

    image

    For more information go here.

    Now, we can create a machine group that includes your local machines. You use these machine groups to manage connectivity between resources.

    image

    In the list of endpoints (connect from) you can add any local endpoint. The local endpoint will appear here after you have installed local endpoint as described above. Now, you need to add some role in “Connect To” list.

    To do this, first click on Get Activation Token:

    image

    In the Solution Explorer of project which contains the activating role, navigate to an existing role that you want to activate, right-click the role, and then click Properties. In the Properties sheet, select the Virtual Network tab. Select the Activate Windows Azure Connect check box, and then paste the activation token in the text box:

    image

    After this step SCDEF file will contain:

    <WebRole name="Daenet.TestService">
        <Sites>
          <Site name="Web">
            <Bindings>
              <Binding name="HttpIn" endpointName="HttpIn" />
            </Bindings>
          </Site>
        </Sites>
        <ConfigurationSettings>
        </ConfigurationSettings>
        <Endpoints>
          <InputEndpoint name="HttpIn" protocol="http" port="8080" />
        </Endpoints>
        <Imports>
          <Import moduleName="Diagnostics" />
          <Import moduleName="Connect" />
        </Imports>
      </WebRole>
    </ServiceDefinition>

                                                                                                                                 
    and CSCFG file will contain:

    <ConfigurationSettings>

          <Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" value="UseDevelopmentStorage=true" />

          <Setting name="Microsoft.WindowsAzure.Plugins.Connect.ActivationToken" value="************" />
         
    . . .

    </ConfigurationSettings>


    Now, it is crucial to publish some Windows Azure hosted solution. After you do that every role in that solution will appear under “Connect To” endpoints.

    image

     

     

     

    After the group (VPN) has been setup you need to start you hosted service. Then you will see something like:

    image

    This picture describes one local machine DADC.LAN and three roles Daenet.App(2), Daenet.Service(2) and Daenet.WorkerService(1). Numbers in brackets specify configured number of instances 2, 2 and 1.

    RD00** are machine names in Windows Azure. 
    To see you local endpoint experience open the console and type ipconfig /all. You will notice regular PPP connection with IPSEC support.

    image

     

    Related articles:

    Using Endpoint Groups:
    http://msdn.microsoft.com/en-us/library/gg432959.aspx

    Firewall Settings:
    http://msdn.microsoft.com/en-us/library/gg433061.aspx

    Tutorial: Setting up Windows Azure Connect:
    http://msdn.microsoft.com/en-us/library/gg508836.aspx#Connectivity

  • How to register Button ClickHandler of button in DataGrid in TemplateControl

    Registering of Click event of a button contained in the datatemplate of datagrid which is contained in Silverlight TemplateControl can be triky.
    For this reason I pasted here a peace of XAML which contains that grid and corresponding code which subscribes Click-events.

      <data:DataGridTemplateColumn Header=""  x:Name="m_BtnColumn">

          <data:DataGridTemplateColumn.CellTemplate>
            
    <DataTemplate>      
               
    <Button x:Name="m_Button" Tag="{Binding .}" >
               
    </Button>
           
    </DataTemplate>

                                                           
      </
    data:DataGridTemplateColumn.CellTemplate
    >
                                       

     


    To make all this working in ApplyTemplate of you remplate controll following has to be done

     

    m_DataGrid = GetTemplateChild("m_DataGrid") as DataGrid;

    if (m_DataGrid == null)
         
    throw new Exception("");

    m_
    DataGrid.LoadingRow += new EventHandler<DataGridRowEventArgs>(grid_LoadingRow);

     

    Then implement the code which subscribes events:

     

        void grid_LoadingRow(object sender, DataGridRowEventArgs e)
            {
                var btnCol = 
                m_DataGrid.Columns.FirstOrDefault(

                        c => c.GetValue(FrameworkElement.NameProperty) as string == "m_BtnColumn");

     
                FrameworkElement el = btnCol.GetCellContent(e.Row);

     
                Button btn = el as Button;

     
                if (btn != null)
                {   
                    btn.Click -= new RoutedEventHandler(btn_Click);
                    btn.Click += new RoutedEventHandler(btn_Click);
                }
            }

     
     

            void btn_Click(object sender, RoutedEventArgs e)
            {
               

            }

     

     

    Another interesting DataGrid example related to this post can be found here.

    Posted vlj 03 2011, 11:07 by anonymous
    Filed under:
  • How to change Identity Information on Windows Phone device?

    If you have a registry editor for Windows Phone, you can use it to change identity information.

    Following keys are currently available under hive HKEY_LOCAL_MACHINE:

    Desc, FriendlyName, Name, OrigName and Username

Copyright of SQL/Developers Community
Powered by Community Server (Commercial Edition), by Telligent Systems