Welcome!

Artificial Intelligence Authors: Elizabeth White, Yeshim Deniz, Pat Romanski, Zakia Bouachraoui, William Schmarzo

RSS Feed Item

AjaxWorld Talk: Building Rich Internet Applications Using Microsoft Silverlight 2

It was another fun day AjaxWorld.  I had a good time during my talk Silverlight 2

 

Silverlight is a cross-browser, cross-platform, cross-device.  Plug-in for building and delivering the next generation of .NET based media experiences and rich interactive applications for the Web.

Silverlight does not require Windows, .NET or IIS on the server. 

image

Silverlight 2 just shipped a few days ago, and already we have some great customers going live.

 

NBC Olympics  - NBC hosted the Olympics live on nbcolympics.com and served up 1.3 billion page views, 70 million video streams, and 600 million minutes of video content - making it the largest ever media event on the web.  Users visiting the site spent an average of 27 minutes on the site when they watched a video - an unprecedented number for online traffic.

Notice the use of immediate seek to anywhere in the stream and adaptive streaming that gives you just the right bit-rate content for your connection.

image

Democratic National Convention - In August, the Democratic National Convention was streamed live using Silverlight, and broadcast a 2Mbit live video feed of the event and speeches - receiving outstanding feedback from audiences watching it.

This video was delivered live to millions of viewers all over the world at higher quality and bit rate than traditional TV.  Now, all the content is available for viewing on demand. 

image

Hard Rock  - The folks at Hard Rock have the world's  largest collection of Rock-and-roll memorial in the world.  They hired the good folks at vertigo to build.  Notice how the gigabytes of images are easy to zoom into and pan around.  All streaming download of images... 

 image image

 

Health Care Demonstrator - This is an example app that shows how to build a great line of business application with Silverlight. 

image

 

Quake Game - Check out this very cool Quake game in Silverlight.  Look at the frame rate... even in full screen!

image

 

Next I showed the latest progress on Moonlight with a Linux openSUSE 11.0 VPC (thanks Miguel!)

image

image

image

 

Next, I built a very simple Silverlight 2 application in Eclipse using the Eclipse Tools for Silverlight

First we create a new Silverlight project in Eclipse.

image

Now, we just drag the button from the toolbox in Eclipse

image

Notice we get autocompletion in the source view in Eclipse

image

Then we can easily handle the click event in Eclipse

image

Then in code view, we get auto completion and error reporting in C# in Eclipse.

image

 

 

 

Next I built a simple Silverlight 2 application from scratch in the free VS2008...

For this demo, I only used freely available tools... In particular everything I show works in Visual Studio 2008 Web Developer Express and the Silverlight Tools for Visual Studio 2008

Download the complete sample.

File, New Project

image

Next you can select what server side project to associated your Silverlight app with.  Notice you can even have one dyamically generated for you.  Also, notice you don't need .NET on the server, in fact you can deploy Silverlight from a Linux server.. all you need is http. 

image

image

Notice the client and web project in the same solution and the Xaml view and the preview view. 

image

Notice the great Xaml intellisense. 

 

image

Now we get to write client side C# code... we can even do breakpoints, etc. 

private void btn1_Click(object sender, RoutedEventArgs e)
{
    btn1.Content = "Oach!";
}

Now, check out the server project, it includes ClientBin with a Silverlight.xap file that includes our clientside code... The cool thing is this is just a zip file... so you can see inside it easily. 

image

 

Run it and check it out!  works perfectly.

image

 

But this is Silverlight, let's see if we can make it a little more sexy.  Let's open it up in Express Blend. 

image

Notice Blend is built for Designers...

image

Let's make the design surface a little bigger then do some gradients

image

and finally a motion path..

image

The great thing is the project just refreshes in VS

image

Now we need to get some real data into this app. 

First we add a datagrid (we put it and the button in a StackPanel)

<StackPanel>
 <Button x:Name="btn1" Width="100" Height="50" Content="Push Me!" Click="btn1_Click" Margin="49,73,0,0" d:LayoutOverrides="Width, Height" VerticalAlignment="Top" HorizontalAlignment="Left" RenderTransformOrigin="0.5,0.5">
     <Button.RenderTransform>
         <TransformGroup>
             <ScaleTransform/>
             <SkewTransform/>
             <RotateTransform Angle="-49.157"/>
             <TranslateTransform/>
         </TransformGroup>
     </Button.RenderTransform>
 </Button>
 
 <data:DataGrid  Name="datagrid1"></data:DataGrid>
<StackPanel>

Then we go to the server project and add some data..  In this case an Entity Framework data model.   This let's us use LINQ to get access to the data rather than doing queries in code rather than in T-SQL. 

image

Select the employees tables we need then, you get this view in the designer.   Notice the Photo filed is too big to pass to the client, so we can just remove it here. 

image

Now let's add a web service to pass this to data to the client.  Let's add a Silverlight-enabled WCF service.

image

[ServiceContract(Namespace = "")]
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
public class NorthwindService
{
    [OperationContract]
    public IEnumerable<Employee> GetEmployees(string nameContains)
    {
        var db = new NORTHWNDEntities();
        var q = from emp in db.EmployeeSet
                where emp.FirstName.Contains(nameContains)
                orderby emp.LastName ascending
                select emp;
        return q.ToList();
    }

}

image

private void btn1_Click(object sender, RoutedEventArgs e)
{
    var client = new ServiceReference1.NorthwindServiceClient();
    client.GetEmployeesCompleted += 
        new EventHandler<GetEmployeesCompletedEventArgs>(client_GetEmployeesCompleted);
    client.GetEmployeesAsync("b");

    btn1.Content = "Oach!";
    Storyboard1.Begin();

}

void client_GetEmployeesCompleted(object sender, GetEmployeesCompletedEventArgs e)
{
    datagrid1.ItemsSource = e.Result;
}

Notice the column reordering, editable cells, sorting, etc. 

image

 

Hope you enjoyed it!  Here is the completed sample.

Read the original blog entry...

IoT & Smart Cities Stories
Bill Schmarzo, author of "Big Data: Understanding How Data Powers Big Business" and "Big Data MBA: Driving Business Strategies with Data Science," is responsible for setting the strategy and defining the Big Data service offerings and capabilities for EMC Global Services Big Data Practice. As the CTO for the Big Data Practice, he is responsible for working with organizations to help them identify where and how to start their big data journeys. He's written several white papers, is an avid blogge...
Nicolas Fierro is CEO of MIMIR Blockchain Solutions. He is a programmer, technologist, and operations dev who has worked with Ethereum and blockchain since 2014. His knowledge in blockchain dates to when he performed dev ops services to the Ethereum Foundation as one the privileged few developers to work with the original core team in Switzerland.
René Bostic is the Technical VP of the IBM Cloud Unit in North America. Enjoying her career with IBM during the modern millennial technological era, she is an expert in cloud computing, DevOps and emerging cloud technologies such as Blockchain. Her strengths and core competencies include a proven record of accomplishments in consensus building at all levels to assess, plan, and implement enterprise and cloud computing solutions. René is a member of the Society of Women Engineers (SWE) and a m...
Andrew Keys is Co-Founder of ConsenSys Enterprise. He comes to ConsenSys Enterprise with capital markets, technology and entrepreneurial experience. Previously, he worked for UBS investment bank in equities analysis. Later, he was responsible for the creation and distribution of life settlement products to hedge funds and investment banks. After, he co-founded a revenue cycle management company where he learned about Bitcoin and eventually Ethereal. Andrew's role at ConsenSys Enterprise is a mul...
In his general session at 19th Cloud Expo, Manish Dixit, VP of Product and Engineering at Dice, discussed how Dice leverages data insights and tools to help both tech professionals and recruiters better understand how skills relate to each other and which skills are in high demand using interactive visualizations and salary indicator tools to maximize earning potential. Manish Dixit is VP of Product and Engineering at Dice. As the leader of the Product, Engineering and Data Sciences team at D...
Dynatrace is an application performance management software company with products for the information technology departments and digital business owners of medium and large businesses. Building the Future of Monitoring with Artificial Intelligence. Today we can collect lots and lots of performance data. We build beautiful dashboards and even have fancy query languages to access and transform the data. Still performance data is a secret language only a couple of people understand. The more busine...
Whenever a new technology hits the high points of hype, everyone starts talking about it like it will solve all their business problems. Blockchain is one of those technologies. According to Gartner's latest report on the hype cycle of emerging technologies, blockchain has just passed the peak of their hype cycle curve. If you read the news articles about it, one would think it has taken over the technology world. No disruptive technology is without its challenges and potential impediments t...
If a machine can invent, does this mean the end of the patent system as we know it? The patent system, both in the US and Europe, allows companies to protect their inventions and helps foster innovation. However, Artificial Intelligence (AI) could be set to disrupt the patent system as we know it. This talk will examine how AI may change the patent landscape in the years to come. Furthermore, ways in which companies can best protect their AI related inventions will be examined from both a US and...
Bill Schmarzo, Tech Chair of "Big Data | Analytics" of upcoming CloudEXPO | DXWorldEXPO New York (November 12-13, 2018, New York City) today announced the outline and schedule of the track. "The track has been designed in experience/degree order," said Schmarzo. "So, that folks who attend the entire track can leave the conference with some of the skills necessary to get their work done when they get back to their offices. It actually ties back to some work that I'm doing at the University of San...
When talking IoT we often focus on the devices, the sensors, the hardware itself. The new smart appliances, the new smart or self-driving cars (which are amalgamations of many ‘things'). When we are looking at the world of IoT, we should take a step back, look at the big picture. What value are these devices providing. IoT is not about the devices, its about the data consumed and generated. The devices are tools, mechanisms, conduits. This paper discusses the considerations when dealing with the...