Tag Archive | web

Windows Phone content at MIX2010 officially announced on the MIX site.

Windows Phone at MIX10!

Yes, at MIX10 you’ll learn about developing applications and games for the next generation of Windows Phone. Yes, we’ll have Phone sessions, and we can’t say more…yet. Stay tuned and check back often or join the MIX mailing list.  

VERY nice! Thank you, Mix!

Hands-on Lab: Silverlight 4 Line of Business Application using WCF RIA Services

After building this lab from the ground up and running it successfully in three classes last week, we are now ready to publish it.

In this 108 page hands-on lab you will learn how to use Beta 2 of Visual Studio 2010 and Beta 1 of Microsoft Silverlight 4 to create a data driven line of business style rich internet application that implements many of the new features that Silverlight 4 introduces. We will base our solution on the Windows Communication Foundation (WCF) RIA Services.

The solution will be an order-management system that shows a list of orders in a data grid and details of a selected order in a details pane. The system will validate user entries and have the capabilities of printing order reports and exporting order lists to Microsoft Excel.

Download the hands-on lab manual in PDF and Word format, the database and the final sample solution.

These features are implemented in the lab:

True multi-tier architecture.

  • Entity framework and service layer definition.
  • Data filtering, paging, sorting and grouping.
  • Data modification and validation.
  • Foreign key management.
  • Projections.
  • Programmatic printing from a Silverlight application.
  • COM interop with Microsoft Excel and running full-trust out-of-browser.

    The following are the system requirements needed to complete the hands-on lab. The links point to the download location of the product or a trial version.

    One of the following operating systems:

    Windows XP (x86) with Service Pack 3 – all editions except Starter Edition

  • Windows XP (x64) with Service Pack 2 – all editions except Starter Edition
  • Windows Vista (x86 & x64) with Service Pack 1 – all editions except Starter Edition
  • Windows 7 (x86 and x64) (download trial)
  • Windows Server 2003 (x86 & x64) with Service Pack 2
  • Windows Server 2003 R2 (x86 and x64)
  • Windows Server 2008 (x86 and x64) with Service Pack 2
  • Windows Server 2008 R2 (x64)
  • Visual Studio 2010 Beta 2 Professional

  • SQL Server 2008 Express Edition

  • Silverlight 4 Beta 1 Tools for Visual Studio 2010

  • Silverlight 4 Beta Toolkit November 2009

    Optional Components

    Microsoft Internet Information Services

  • Microsoft Excel

    The hands-on lab manual has detailed instructions on installing all the prerequisites.

    ZyXEL sells ZyWALL firewall appliances that rely on the “MyZyxel.com” domain, which is never up. Is this the sign of a dying brand?

    I like the hardware a lot and I would recommend it any day. But seeing this crucial site just being offline for days makes me very uneasy.
    What is happening to ZyXEL?

    Testing Memonic.com, a new total recall application.

    Pastedgraphic-1

    More total recall applications. This is good. http://www.memonic.com looks lean, fast and useful at first sight. I will try it for a while and compare it against Evernote, my current benchmark.

    Bing Introduces 3-D Photosynth Maps | TechWatch | Fast Company

    Check out the fully Silverlight enabled maps with crowd-sourced photos to create 3D environments. Now let’s hope for quick, international coverage!

    Test: Have a web server send me critical messages via Twitter.

    Not to forget all my UNIX know-how, I run a little NAS based web server that runs Fever°, subversion and a couple of other web applications for me.

    I set up automated scripts to update and upgrade the IPKG packages automatically once a week and to refresh the Fever° data daily. I care about the result of these actions, so I logged them locally… only to never look at them.

    I have decided to try the following: create a Twitter account and have the server send only the most important status messages to Twitter. Only a select few every day… not to be the one who breaks Twitter…!

    Now I can keep up with my server’s health by simply following it on Twitter. Cloud based logging? Let’s see, how this works out!

    Image001

    I still have to figure out what to do with long messages, for now I just crop them.

    I simply call the following PHP script from my batch file using curl and passing the log file to be posted as a parameter.

    <?php
        $filename = "/share/logs/" . $_GET["file"];
        echo $filename;
        $fd = fopen ($filename, "r");
        $contents = fread ($fd,filesize ($filename));
        echo $contents;
        $tweet =  substr($contents, 0, 140);
        echo $tweet;
        fclose ($fd); 
        sendTweet($tweet);

        function sendTweet($msg){
            $username = 'x';
            $password = 'y';
            $url = 'http://twitter.com/statuses/update.xml';
            $curl_handle = curl_init();
            curl_setopt($curl_handle, CURLOPT_URL, "$url")
            curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2);
            curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);
            curl_setopt($curl_handle, CURLOPT_POST, 1);
            curl_setopt($curl_handle, CURLOPT_POSTFIELDS, "status=$msg");
            curl_setopt($curl_handle, CURLOPT_USERPWD, "$username:$password");
            $buffer = curl_exec($curl_handle);
            curl_close($curl_handle);
        }
    ?>