Monday, January 07, 2008

For some reason Microsoft thought it would be a good idea to only let us control the time tolerance in WSE 2.0 and 3.0 via the app.config file. ie

<configuration>
  <configSections>
    <section name="microsoft.web.services2" type="Microsoft.Web.Services2.Configuration.WebServicesConfiguration, Microsoft.Web.Services2, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
  </configSections>
  <microsoft.web.services2>
    <security>  
      <timeToleranceInSeconds>86400</timeToleranceInSeconds>  
    </security>    
   <diagnostics/>
   </microsoft.web.services2>
</configuration>
 
This isn't always a practical option.  In this case I have a DLL that needs to make a WSE web service call.  Its not realistic for all my clients to add this information to their app.config files.  And I am far to lazy to document it.
So enter reflection, We need to add a few lines of code to our  WSE web service inherited classes constructor.
public class MyWebServicWse : Microsoft.Web.Services2.WebServicesClientProtocol
{
    public  MyWebServicWse()
    {
        Type.GetType( "Microsoft.Web.Services2.Security.Configuration.SecurityConfiguration, Microsoft.Web.Services2, Version=2.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", true, true )
        .GetField( "_timeToleranceInSeconds", System.Reflection.BindingFlags.Static | System.Reflection.BindingFlags.NonPublic )
        .SetValue( null, TimeSpan.FromSeconds((double) 86400) ); //86400 == a 24 hour time span.
    }
}
posted by Aaron Fischer on Monday, January 07, 2008 3:40:43 PM (Pacific Standard Time, UTC-08:00)   #    Comments [0]

If you haven't seen it istartedsomethign posted Bill's Video from CES 2008.  Its hilarious.

posted by Aaron Fischer on Monday, January 07, 2008 9:01:19 AM (Pacific Standard Time, UTC-08:00)   #    Comments [0]

Somasegar Mentions that Microsoft will be providing a Silverlight viewer for NBC's coverage of the 2008 Olympics, but I don't really care about the technology.  What I find more impressive is the new coverage options we will see for this years Olympics.

As a part of this, we will provide users with exclusive access to over 3000 hours of live and on-demand video content via Silverlight streaming.  This means that viewers can access every minute of every event.  Additionally, the amount of meta-data attached to each of the streams will be extensive and include links to player bios, medal counts, shortcuts to particular events (i.e. athlete x’s third long-jump attempt), maps of the Olympic facilities, pop-up overlays with real-time event alerts, headlines, video search capabilities, etc. 

I look forward to coverage I can choose rather than NBC's homologous Male/Female coverage.  Its going to rock just watching the events I care about.

posted by Aaron Fischer on Monday, January 07, 2008 8:59:44 AM (Pacific Standard Time, UTC-08:00)   #    Comments [0]
 Friday, January 04, 2008

It seems that when joining sear's SHC community you are installing a proxy server for ie that redirects all your Internet traffic through Sears servers.  What a brilliant Idea that was.  read more At Spyware sucks and Schneier on Security

posted by Aaron Fischer on Friday, January 04, 2008 11:25:52 AM (Pacific Standard Time, UTC-08:00)   #    Comments [0]
 Wednesday, January 02, 2008

Always upgrade Refactor! first followed by CodeRush, so that CodeRushes install does not uninstall Refactor! and you have to reenter the serial number.

posted by Aaron Fischer on Wednesday, January 02, 2008 8:29:18 AM (Pacific Standard Time, UTC-08:00)   #    Comments [0]

I finished reading Windows® Presentation Foundation Unleashed over Christmas and I must say this has turned out the be the best book compared to

Applications = Code + Markup: A Guide to the Microsoft® Windows® Presentation Foundation, Programming WPF, 2nd Edition, and Essential Windows Presentation Foundation.  It wasn't because the book had color (I read it on Safari Books online which under Firefox doesn't display color( in html mode) ), The layout and flow was just the best.  Kind of  a hit the ground running format.  Thanks Adam for a great book.

posted by Aaron Fischer on Wednesday, January 02, 2008 8:26:20 AM (Pacific Standard Time, UTC-08:00)   #    Comments [0]
 Thursday, December 20, 2007

image

 

Nothing like greeting a loyal customer with a nasty error message.

posted by Aaron Fischer on Thursday, December 20, 2007 2:15:37 PM (Pacific Standard Time, UTC-08:00)   #    Comments [0]
 Wednesday, December 19, 2007

So It took Opera filling an antitrust law suit in the European Union, To drive IE8 into passing the ACID2 test

And it took Microsoft less then a week.

posted by Aaron Fischer on Wednesday, December 19, 2007 3:47:52 PM (Pacific Standard Time, UTC-08:00)   #    Comments [0]
 Sunday, December 16, 2007

I was at Barns & Noble today.  I wanted to buy Windows Presentation Foundation Unleashed.  But I couldn't, I couldn't justify buying a 50 dollar book that is already out of date.  I suppose I am some what spoiled with my whole library access to Safari Tech Books Online.  But there is so much more power in this format, its highly portable, simple to copy a code snippet.  It just like a book except its stuck on the screen.  Which means for ever in the office or listening to the hum of my laptop.  But still a much better cost proposition then buying a printed book.  Its more like a lease and in the Tech book market with the rapid pace of change, a lease is so much more compelling.  So while prose may not be dead printed Tech books will soon become a thing of the past a  relic of college life.  In our future books will be defined as

published work: a published work of literature, science, or reference, or a work intended for publication(encarta.com)

No more paper.

posted by Aaron Fischer on Sunday, December 16, 2007 6:56:56 PM (Pacific Standard Time, UTC-08:00)   #    Comments [0]
 Tuesday, December 11, 2007

In Source Gear Vault if you see a file constantly marked as edited even after getting the latest version.  Right click the file properties in Source Gear Vault set EOL Conversion to None apply and close the File Properties window.  Problem solved.  Why would you adjust EOL on a binary file?

posted by Aaron Fischer on Tuesday, December 11, 2007 3:23:53 PM (Pacific Standard Time, UTC-08:00)   #    Comments [0]