• 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 

  • Wriju's BLOG

    GIDS 2013 Windows Phone 8 New Features and Tips & Tricks for Developers

    • 0 Comments

    I am happy to announce here that I will be delivering another Windows Phone 8 session in this GIDS 2013.

    Session Title: Windows Phone 8 New Features and Tips & Tricks for Developers

    Date and Time: May 9, 2013 14:50 to 15:50 (Indian Standard Time)

    Presenters:

    Ujjwal Kumar (Twitter @ujjwalk), Technical Evangelist, Microsoft Corp, India (blog http://blogs.msdn.com/b/ujjwalk)

    Wriju Ghosh (Twitter @wriju_ghosh), Lead Partner Consultant, Microsoft Corp, India. (blog http://blogs.msdn.com/b/wriju)

    What are we covering?

    As much as possible to give you all an idea of Windows Phone 8 development. Some tips to help you expedite the development process. Some store and test tips to help you make successful.

    All the codes and samples we will show will be posted to this blog, keep an eye. We have made it intentional that there is no slide, we have only one to show our above contact as we believe that you will be needing it for future help. Hope to have an interesting time.

    Details http://www.developermarch.com/developersummit/session.html?insert=ujjwalweb1

    Namoskar!!!

  • Wriju's BLOG

    GIDS Windows Store Apps Workshop

    • 0 Comments

    On May 7th I and Goutham will be delivering 3 hour workshop on Windows Store Apps both in XAML and in HTML at Great Indian Developer Summit. Keep watching this space for more information

    Abstract

    Developing Windows Store App in both XAML/C# and HTML/JS has been so easy. This is a series of eight hands-on lab modules that guide you through development of Contoso Cookbook, a realistic Windows Store app that incorporates many of the key new features available in Windows 8. You’ll learn to work with Windows 8 controls, view states, contracts, tiles and notifications, the Windows Store APIs, and other Windows 8 features. Choose the version of the lab series for the programming language you prefer: JavaScript and HTML, or C# and Extensible Application Markup Language (XAML).

    System Requirement

    ·         Supported operating systems: Windows 8

    ·         Also required: Microsoft Visual Studio 2012

    ·         Internet Connection (optional but good to have)

    Download Links

    Must to have

    Attendee must have the Windows 8 installed with Visual Studio 2012. Internet connection is desired.

  • Wriju's BLOG

    Windows Store App displaying Data in two more columns in ListView

    • 2 Comments

    Windows Store apps comes with some amazing data bound controls. The most favorite among them is ListView and GridView. The ListView shows data in vertical scrolling mode and GridView shows data in horizontal scrolling.

    My pal was building an app where she needs to display data in two columns while having the vertical scrolling enabled. This forced to have two data in two columns within ListView. We tried many things on it, even reached at an extent to have two image control in DataTemplate of ListView's ItemTemplate, but anyways it was obvious that approach was wrong. Because the inside DataTemplate if we click it considers all as one item. Then we found this trick of using WrapGrid this allows the column to be formatted. So we said there will be maximum of 2 columns and the size of the image needs to be defined inside it. The whole magic of displaying data is in MaximumRowsOrColumns

    <ListView x:Name="lstData" Grid.Row="1">
    
        <ListView.ItemTemplate>
    
            <DataTemplate>
    
                <Image Source="{Binding Path=ImagePath}" Stretch="Fill" HorizontalAlignment="Left" 
    
                   Margin="10,10,0,0" VerticalAlignment="Top"/>
    
            </DataTemplate>
    
        </ListView.ItemTemplate>
    
        <ListView.ItemsPanel>
    
            <ItemsPanelTemplate>
    
                <WrapGrid ItemHeight="100" ItemWidth="150" Orientation="Horizontal" MaximumRowsOrColumns="2"/>
    
            </ItemsPanelTemplate>
    
        </ListView.ItemsPanel>
    
    </ListView>

    Namoskar!!!

  • Wriju's BLOG

    Windows Phone Adding Rating Button in Apps

    • 0 Comments

    Often times as a developer we get motivated to see ratings being given to our Windows Phone apps. However, this is possible only when one downloads and installs it in the Phone from Marketplace/Store.

    I was not aware that the app list (not the desktop) has the context menu to rate, earlier to that I used to go to marketplace and rate if I really like the apps. This takes some efforts considering the fact that I am using Windows Phone unlike desktop. But we have context menu in the app list apart from the two “Uninstall” & “Pin this..”. Anyways, I would love to see AppBar button which lets me rate the apps from the app itself without navigating away. This is possible through the SDK API but you need to do what I like to call as “blind coding”. Let me explain the reason behind it. Unless your app is in the store the code you write to invoke the marketplace rating page will not work. So follow the people who has tried this and working well. We need to use the “Task” and the code looks as below

    MarketplaceReviewTask rev = new MarketplaceReviewTask();
    
    rev.Show();

    This would show up the rating page of Marketplace and hence you are.

    Namoskar!!!

  • Wriju's BLOG

    Windows Phone Emulator Orientation is not working

    • 0 Comments

    Another classic problem of Windows Phone emulator is that it does not respond as expected if we have the support for both the orientations (Portrait & Landscape) by mentioning

    image

    it still not changing in Emulator. What could be the reason, think?

    It is because you have removed the On-Screen keyboard by pressing Ctrl+Page Up (I discussed this in my previous post), so you just need to get them back to the default mode by pressing ctrl+Page Down.

    This behavior is not regular, if you are lucky your Emulator should work as is without this trick as well. This is what I found during my tryouts.

    Namoskar!!!

  • Wriju's BLOG

    Windows Phone : How to use PC keyboard in Emulator

    • 1 Comments

    In Windows Phone when we use PC emulator and launch app there we could type using mouse through the onscreen keyboard. However, this is not very convenient and we would like to use our own keyboard while typing.

    So its very simple, to disable the on screen keyboard you need to press Ctrl+Page Up, to revert press Ctrl+Page Down

    But there is a problem and I am going to discuss in my next blog.

    Namoskar!!!

  • Wriju's BLOG

    Is my PC can install Windows Phone 8 SDK and Emulator

    • 4 Comments

    Most PC can run Windows Phone 8 SDK but Emulator will not be installed properly if the below specification is not available

    Download CoreInfo from http://technet.microsoft.com/en-us/sysinternals/cc835722

    Run "coreinfo -v" in command

    If

    * is there after EPT Good
    - is there after EPT Will not work

    Good

    clip_image001

    Is not ready

    clip_image001[5]

    Namoskar!!!

  • Wriju's BLOG

    Windows 8 App Review : Learning Alphabet

    • 0 Comments

    Here is my first review of one Windows 8 App which is created by my love Saswati Sanyal called “Learning Alphabet”. This is a very simple app which lets small little children learn Alphabet with zero interaction. This helps a kid to go through as one go and then sit back and relax. This does not require any click after start.

    So learn and enjoy learning http://bit.ly/Y6aDN3

    image

    Namoskar!!!

  • Page 3 of 25 (609 items) 12345»