Wednesday, February 9, 2011

Daily News Headline @SilverlightZone - 9 February 2011 - #25

Daily News Headline @SilverlightZone - 9 February 2011 - #25


Daily News Headline @SilverlightZone - 9 February 2011 - #25

Posted: 09 Feb 2011 01:30 AM PST

Today, we have 13 news items posted in Silverlight-Zone . If you are a Silverlight, LightSwitch and/or Windows Phone 7 application developer, follow Silverlight-Zone for daily news update.   In this issue we have 12 Authors. Today's posts are from...( read more )...(read more)

XNA for Silverlight developers: Part 3 - Animation (transforms)

Posted: 08 Feb 2011 04:20 PM PST

Animation is a word of Latin origin and means "make alive/bring to live" ( animare ) or "spirit" ( animus ). It describes the technique of using a series of single images to create the illusion of movement for the beholder. We all know that concept from...( read more )...(read more)

Go Ask printf() To Behave Predictably

Posted: 08 Feb 2011 08:02 PM PST

This is one of those problems whose solution is very evident… or bitterly hard to guess depending on how much you were influenced by what you were told about it.

I'll paste here the case

I must be getting blind, as I can't see what's wrong. This code works on amd64, but crashes on x86.


  1. #include <regex>
  2. using namespace std;
  3.  
  4. int main() {
  5.     char searchMe[] = "Go ask printf() to behave predictably.";
  6.     regex rx("^Go ask ");
  7.     cmatch found;
  8.  
  9.     if (regex_search(searchMe, found, rx))
  10.         printf("Found it: \"%s\".\n", found.str());
  11.     else
  12.         printf("Didn't find it.\n");
  13. }


I debugged a bit and found out that what is failing is actually the first printf, because formatting for %s is not apparently using the address of the string, but it tries to dereference its content.

Can anyone help me see what's wrong?

Thanks

 

You will rapidly solve it… or not! It will actually depend on what it impressed you the most about the symptoms.

C++ Renaissance: a Channel 9 Interview

Posted: 08 Feb 2011 05:50 PM PST

If you don't know Charles Torre, I'll introduce him here: Charles is a BIG fan of C++ and he works for Channel 9 (in that order). Charles is the one to blame about the acclaimed series that Stephan put together about STL (beside Stephan himself). And Charles is encouraged to do more and more and more. So to put a beginning in an expectable increase in C++ material to be seen in Channel 9, he interviewed two Visual C++ top executives -Technical Fellow Mohsen Agsen and Director PM Craig Symonds- about the current perceived trends regarding C++ in the developer industry, that Mohsen synthesized in one concept: Renaissance.

You can watch the interview here, and expect for more stuff to come!

Hanselminutes Podcast 252 - ReactiveUI extensions to the Reactive Framework (Rx) with Paul Betts

Posted: 08 Feb 2011 02:57 PM PST

"Scott sits down with Paul Betts and talks about extending the Reactive Framework. We currently manage our UI events as they are pushed to us. How does programming - and asynchronous programming - change if we change the way UI events are consumed...( read more )...(read more)

Hanselminutes Podcast 252 - ReactiveUI extensions to the Reactive Framework (Rx) with Paul Betts

Posted: 08 Feb 2011 02:57 PM PST

"Scott sits down with Paul Betts and talks about extending the Reactive Framework. We currently manage our UI events as they are pushed to us. How does programming - and asynchronous programming - change if we change the way UI events are consumed Read More......(read more)

No comments:

Post a Comment