SharePoint, XBOX, .NET, Technology - What I am reading

    [Home] [Recent] [Site Map] [SharePoint] [XBOX]

   

ADO Guy_s Rants and Raves

5/30/2007 Nice Trick for WPF"s ListView Column Sizing from Ian Griffiths
URL: http://www.interact-sw.co.uk/iangblog/2007/05/3...

On Ian Griffiths blog (a must for any WPF developer), he shows a way to bind to the Length of the column in the template of the ListView"s Grid to make the columns look right. Check it out here:

http://www.interact-sw.co.uk/iangblog/2007/05/30/fill-wpf-listview-columns

Add Comment | digg this

5/25/2007 Trip to Washington, DC
URL: http://www.flickr.com/photos/theadoguy/sets/721...

I had a lot of fun in DC.  I headed out to do an INETA talk for the Capitol Area .NET Users" Group.  Trish and I had time to visit some sights but were ready to come home.  Click on the picture to see our pictures on Flickr.

Add Comment | digg this

5/23/2007 Fun at Capital Area .NET User"s Group
URL: http://adoguy.com/talks/default.aspx#Capital_Ar...

I had a great time at the Capital Area .NET User"s Group tonight. Right before my talk we had an exciting thirty minute power outage. I was considering how to explain Silverlight without a projector when the power came back. We had fun talking about where Silverlight fits into the web story and where it might not fit.  Take a look at the presentation at the blog link if you"re interested in what we covered.

Add Comment | digg this

5/17/2007 Breath Powered USB Charger...Nice!
URL: http://www.engadget.com/2007/05/17/breath-power...

I found this interesting article on Engadget and I soooo want one.  I hate that my breathing isn"t reclaiming some energy...I have to get the plans and make one!

Add Comment | digg this

5/16/2007 Music Video Make Entirely of 6-Sided Dice (and some clever algorithms)...

You might want to mute the sound, but the visuals are impressive and inventive...

Add Comment | digg this

5/15/2007 Silverlight and Timers

I was doing a Silverlight video player for some videos I am doing and I was playing with different ways to show the timeline of a playing video. There are a couple of ways to do this, but in Silverlight 1.0 the typical way was with an animation on a hidden Canvas that you restart over and over to mimic the behavior of a Timer:

<!-- The XAML -->
<Canvas ... >
  <Canvas.Resources>
    <Storyboard x:Name="theTimer">
      <DoubleAnimation Storyboard.TargetName="timerCanvas" 
                       Storyboard.TargetProperty="(Canvas.Left)" 
                       From="0" To="1"  
                       Duration="0:0:0.1"
                       Completed="theTimer_Completed" />
    </Storyboard>
  </Canvas.Resources>


  <Canvas x:Name="timerCanvas" Opacity="0" />

</Canvas

This is hacky to me but it works great in Silverlight 1.0.  I wanted a better Silverlight 1.1 solution so I though, "Hey, its .NET...I"ll use a timer":

Timer timer = new Timer(new TimerCallback(timerFired), 
                        null, 
                        500, 
                        500);

And the Handler:

void timerFired(object o)
{
  // Does not work because I can"t update the UI thread from a non UI thread
  progressBar.Width = ((double)videoPlayer.Position.Seconds / 
                       (double)videoPlayer.NaturalDuration.TimeSpan.Seconds) 
                       * progressBack.Width;
}

In Silverlight 1.1 the XAML stack does not support a Dispatcher as such. In fact there is no cross thread messaging at all. Incidently, this has been reported on the Silverlight.net Forums and they"ve said that they are going to add a high-performance timer in the Beta timeframe of Silverlight.

But I wanted an answer now and the only one I could find (without resorting to the fake Animation) was the HtmlTimer class. NOTE: The Silverlight team warn against using the HtmlTimer as it is it not high performance enough, but for prototyping Silverlight 1.1, I think its fine. Here"s the HtmlTimer implementation:

// Use a Timer
HtmlTimer timer = new HtmlTimer();
timer.Interval = 100;
timer.Tick += new EventHandler(timer_Tick);
timer.Start();

And the Handler:

void timer_Tick(object sender, EventArgs e)
{
  // Works because the HtmlTimer does not use a separate thread
  // But may be a bit choppy as the timer not very high resolution
  progressBar.Width = ((double)videoPlayer.Position.Seconds / 
                       (double)videoPlayer.NaturalDuration.TimeSpan.Seconds) 
                       * progressBack.Width;
}

Not perfect, but good enough for now...

Add Comment | digg this

5/13/2007 "How the Lord of the Rings Should Have Ended"
URL: http://www.youtube.com/watch?v=JnUvw1rzziE

1 Comment(s) | digg this

5/12/2007 My Entity Data Model Article is Up!
URL: http://www.theserverside.net/tt/articles/showar...

On TheServerSide.NET, my new article introducing the concepts of the Entity Data Model (i.e. Entity Framework, ADO.NET v.Next, etc.).  Let me know what you think!

 

Add Comment | digg this

5/11/2007 Atlanta Silverlight Workshop
URL: http://www.dunntraining.com/SilverlightTraining...

In partnership with Dunn Training and Consulting, I will be giving a three-day Silverlight workshop in Atlanta on June 11th.-13th. Over the three days you will learn how to create Silverlight assets for your own websites. This inlcudes the Silverlight 1.0, Silverlight 1.1 as well as fundamentals of the Expression toolset"s support for Silverlight.

Please visit the workshop page on Dunn Consulting"s website to register:

http://www.dunntraining.com/SilverlightTraining.htm 

Add Comment | digg this

5/9/2007 Microsoft"s oFone - My Next Phone
URL: http://www.youtube.com/watch?v=WazA77xcf0A

Add Comment | digg this

上一页 1 2 3 4 5 6 7 8 9 10 下一页

   

Site List:
>>Xbox Live_s Major Nelson
>>Xbox 360 & SharePoint 2007 Weblog
>>Carsten Keutmann_s Blog
>>Mohamed Zaki_s Blog [Sharepoint MVP]
>>The Mit_s Blog
>>Mart Muller_s Sharepoint Weblog
>>Microsoft SharePoint Products and Technologies Team Blog
>>SharePoint Solutions Blog
>>4GuysFromRolla.com Headlines
>>ASP.NET Blogs
>>SharePoint Blogs
>>SharePoint Blogs
>>Joel on Software
>>ADO Guy_s Rants and Raves
>>Microsoft Live Labs
>>GadgetNews
>>Windows Vista Team Blog
>>VoIP & Gadgets Blog
>>schrankmonster blog
>>Via Virtual Earth Blog
>>Feed
>>MSDN Blogs
>>Mashable!

Links:
Jack's Readings

Month Archives:
Oct 2007
Sep 2007

Top Tags:
social software social networking .NET mashable Sharepoint ASP.NET Web 2.0 Web2.0 Startups Community News Search Marketplace General Software Development AJAX Windows Vista Visual Studio Microsoft myspace Silverlight People Powered! YouTube Vista MOSS Featured News C# Events MOSS 2007 Google WPF Office 2007 Web Community Security General Personal Xbox 360 facebook Tools development SharePoint 2007 Fun Atlas Architecture ASP.NET AJAX myspace codes TheLongTail IIS SQL Server Developers Revenue Sharing Video Pictures WCF Mobile 2.0 Announcements Orcas MIX07 Arcade Team System JavaScript News



@2007 All rights Reserved