• Wriju's BLOG

    Windows Azure Storage 2.0 Changes

    • 0 Comments

    There are quite a few changes in Storage Library since SDK 1.8. Here are few resources on this

    Namoskar!!!

  • Wriju's BLOG

    Connecting and Managing MySQL of Windows Azure

    • 0 Comments

    Windows Azure provides the MySQL database but unfortunately we do not have any portal feature to work with the MySQL database associated with the Windows Azure WebSite. There is always a way,

    Let’s assume I have created a WebSite which has MySQL. For example I have created the website from gallery and selected the WordPress which comes with MySQL database. So I will have a MySQL database with it and I can read the connection string from the portal.

     

    image

     

    And the connection string would look like something

    Database=wrijuwpA55ISymtc;Data Source=us-cdbr-azure-northcentral-a.cleardb.com;User Id=UserName;Password=*******

    After I have it I can use any MySQL management tool to connect my database to it. I have tested it with MySQL Workbench.

    image

    Then you are ready to work with your MySQL Database and manage through this tool.

    image

    Namoskar!!!

  • Wriju's BLOG

    Windows Azure Tools Error “IISConfigurator.exe has stopped working”

    • 1 Comments

    I started getting this error after I had one Web Platform Installer download issue while updating my Windows Azure SDK 2.0. So I had uninstalled all the Windows Azure component from my control panel and was still getting “IISConfigurator.exe has stopped working”.

    I was trying a many things but some how when I changed the below and selected “IIS Management Console” it worked like a charm.

    image

    Namoskar!!!

  • Wriju's BLOG

    Windows Azure Storage Explorer in Visual Studio 2012

    • 0 Comments

    After installing the new Windows Azure SDK 2.0 I am happy to see this new Server Explorer component which lets me connect and manipulate Windows Azure Storage Component.

    image

    After I click there, I am able to associate the same management certificate which I have used to connect my Visual Studio 2012 for deployment.

    image

    After I select the account it would show the available storages. And I can choose from them.

    image

    Once it is pointed, I will be able to browse individual elements like Blob, Queue and Table.

    image

    I can view the Table and also can add values there.

    image

    image

    image

    This is really handy.

    Namoskar!!!

  • Wriju's BLOG

    Entity Framework CodeFirst Calling Find does Top 2

    • 0 Comments

    While using ADO.NET Entity Framework’s CodeFirst and we call Find() method against the PrimaryKey field we get one record. But surprisingly if we dig deeper we will be able to see that it is calling Top 2 which means actually getting two rows.

    Why is it so? Because just to track if there are more than one record in the field it will throw an error. Now the question is why is it possible to have duplicate record in the Primary Key value? Scenario could be, it may have the model created and later the database column was modified so it is no more primary/unique anymore.

    Below is the generated query for

    private static void SelectSingleEmployee(int id)
    {
        using (var ctx = new HRContext())
        {
            Console.WriteLine(ctx.Emps.Find(id).EmpName);
        }
    }
    exec sp_executesql N'SELECT TOP (2) 
    [Extent1].[EmpId] AS [EmpId], 
    [Extent1].[EmpName] AS [EmpName]
    FROM [dbo].[Emps] AS [Extent1]
    WHERE [Extent1].[EmpId] = @p0',N'@p0 int',@p0=1
    

    Namoskar!!!

  • Wriju's BLOG

    Scott Guthrie Discusses Windows Azure SDK 2.0

    • 0 Comments

    Scott Guthrie Discusses Windows Azure SDK 2.0 http://channel9.msdn.com/Shows/Cloud+Cover/Episode-106-Scott-Guthrie-Discusses-Windows-Azure-SDK-20

    Read this yet another amazing blog post http://weblogs.asp.net/scottgu/archive/2013/04/30/announcing-the-release-of-windows-azure-sdk-2-0-for-net.aspx

    Namoskar!!!

  • Wriju's BLOG

    GIDS 2013 Windows Phone 8 Developer Tips and Tricks Samples and Readings

    • 0 Comments

    Thank you. Thank you. Thank you!!!

    Samples Used for Demo

    Speech Synthesizer, Windows Azure and Chat, Windows Phone 8 Specific Demos

    At SkyDrive http://sdrv.ms/139QFaN (This is active till May 30, 2013)

    Windows Phone Toolkit and Sample http://aka.ms/wp8toolkit

    Azure Chat Service http://gids.cloudapp.net/ (available till May 30, 2013)

    Readings and Past recordings

    Complete end-to-end feature demo done by Jumpstart and few Build sessions available for download at http://aka.ms/wp8jumpstart

    Windows Phone 8 Training Kit http://aka.ms/wp8trainingkit

    What's new in Windows Phone http://aka.ms/wp8new

    Windows Phone 8 Code Samples http://aka.ms/wp8sample

    For any further query please contact us at Twitter @wriju_ghosh and @ujjwalk

    Namoskar!!!

  • Wriju's BLOG

    Windows Store Apps power of WinJS

    • 0 Comments

    Great Indian Developer Summit we showed the power of WinJS by taking pic and setting it in HTML page. Later we have used the image and set it as Profile picture. This was part of our Windows Store apps demo.

    The code is shared here

    (function () {
    
        //intialize Camera and then enable Webcam capability in manifest
    
        var cam = new Windows.Media.Capture.CameraCaptureUI();
    
        //Set the mode to still photo
    
        var mode = Windows.Media.Capture.CameraCaptureUIMode.photo;
    
        //Call the camera object Async
    
        cam.captureFileAsync(mode).then(function (capImage) {
    
            var img = capImage; 
    
            var imgTag = document.createElement("img"); //Create html img tag
    
            imgTag.src = URL.createObjectURL(img); //HTML5 feature to convert image stream to temporary URL
    
            document.getElementById("content").appendChild(imgTag); // Add the img to the HTML to render
    
            //Part 2: Setting the UserProfile image from JS
    
            Windows.System.UserProfile.UserInformation.setAccountPictureAsync(img).then();
    
        });
    
    })();

    Namoskar!!!

  • Wriju's BLOG

    Great Indian Developer Summit 2013 : Windows Store App Development Hands on Lab

    • 0 Comments

    I am very excited for the Hands on Lab Workshop tomorrow at Great Indian Developer Summit.

    Windows Store App Development Hands on Lab

    May 7 2013, 12.15 to 16.00 (Indian Standard Time) at Hall C.

    By Goutham Upadhyaya (@goupadhy) & Wriju Ghosh (twitter @wriju_ghosh), Partner Consultant, Microsoft Corp, India

    Find more at http://www.developermarch.com/developersummit/session.html?insert=gouthamtut1 

    Some prerequisite,

    System Requirement:

    • Supported operating systems: Windows 8
    • Also required: Microsoft Visual Studio 2012
    • Internet Connection (optional but good to have)

    Links for download http://msdn.microsoft.com/en-US/windows/apps/br229516

    image 

  • Page 3 of 25 (617 items) 12345»