<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://clicked.msnbc.msn.com/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Women in the cross hairs</title><link>http://clicked.msnbc.msn.com/archive/2009/01/02/1730056.aspx</link><description>Have you watched any of the Target Women series? This gal blasts the way advertisers portray women. I haven't seen one yet&amp;nbsp;that wasn't wicked funny.
DressRegistry.com lets you officially declare the dress you're wearing to a big event in the hopes</description><dc:language>en-US</dc:language><generator>CommunityServer 2.0 (Build: 60608.1)</generator><item><title>Women in the cross hairs</title><link>http://clicked.msnbc.msn.com/archive/2009/01/02/1730056.aspx#1730154</link><pubDate>Fri, 02 Jan 2009 22:04:03 GMT</pubDate><guid isPermaLink="false">8a5d2dbc-a0e4-4c7a-979f-3188051f228e:1730154</guid><dc:creator>Alan, Dallas</dc:creator><description>Actually the Zune issue was not seconds, though they don't handle a day having more than exactly 24 hours. &amp;nbsp;The problem was with them accounting for days. &amp;nbsp;The 31st was the 366th day of the year, and line 265 goes in to an infinite loop... it IS a leap year, but the days are not greater than 366, so it keeps looping without subtracting days to be able to break out of the loop.</description></item><item><title>Women in the cross hairs</title><link>http://clicked.msnbc.msn.com/archive/2009/01/02/1730056.aspx#1730165</link><pubDate>Fri, 02 Jan 2009 22:20:26 GMT</pubDate><guid isPermaLink="false">8a5d2dbc-a0e4-4c7a-979f-3188051f228e:1730165</guid><dc:creator>foo</dc:creator><description>The Zune bug is because of the leap year. It has nothing to do with the leap second. The bug will happen every leap year.</description></item><item><title>Women in the cross hairs</title><link>http://clicked.msnbc.msn.com/archive/2009/01/02/1730056.aspx#1730166</link><pubDate>Fri, 02 Jan 2009 22:22:25 GMT</pubDate><guid isPermaLink="false">8a5d2dbc-a0e4-4c7a-979f-3188051f228e:1730166</guid><dc:creator>M</dc:creator><description>The difference at Nassau Coliseum, though, is that the ice rink doesn't have to be rebuilt -- it's always there. &amp;nbsp;For other events, they put a floor covering over the ice, then put the mud or turf or whatever on top of that.</description></item><item><title>Women in the cross hairs</title><link>http://clicked.msnbc.msn.com/archive/2009/01/02/1730056.aspx#1730237</link><pubDate>Sat, 03 Jan 2009 00:11:07 GMT</pubDate><guid isPermaLink="false">8a5d2dbc-a0e4-4c7a-979f-3188051f228e:1730237</guid><dc:creator>Will Femia</dc:creator><description>Ah, I see. Thanks guys. I saw that there was a consideration of leap year in the code and figured that covered that. So specifically it's line 267 that's the real problem with that incorrect greater than?&lt;br&gt;&lt;br&gt;if (days &amp;gt; 366)</description></item><item><title>Women in the cross hairs</title><link>http://clicked.msnbc.msn.com/archive/2009/01/02/1730056.aspx#1730526</link><pubDate>Sat, 03 Jan 2009 11:53:13 GMT</pubDate><guid isPermaLink="false">8a5d2dbc-a0e4-4c7a-979f-3188051f228e:1730526</guid><dc:creator>Robbi, Boston</dc:creator><description>Great link to Target Women, Will. &amp;nbsp;I don't normally watch commerials thanks to hubby and his TiVo, so these were laugh out loud funny to see from the host's perspective! &amp;nbsp;</description></item><item><title>Women in the cross hairs</title><link>http://clicked.msnbc.msn.com/archive/2009/01/02/1730056.aspx#1731115</link><pubDate>Sun, 04 Jan 2009 16:25:01 GMT</pubDate><guid isPermaLink="false">8a5d2dbc-a0e4-4c7a-979f-3188051f228e:1731115</guid><dc:creator>KRW</dc:creator><description>Will, yes if the days variable is exactly 366 then you will stay in the &amp;quot;while&amp;quot; loop forever since 366 will always be greater than 365 but you will never fall into either of the &amp;quot;if/else&amp;quot; conditions since for that 366 value it will never &amp;quot;not be a leap year&amp;quot; nor will the days value ever exceed 366.&lt;br&gt;&lt;br&gt;The greater question is was this code ever properly reviewed? &amp;nbsp;I see how this could slip by in a casual review but it would be fairly obvious to someone whose job it is to just review code (a position I would expect a large &amp;quot;professional&amp;quot; organization like M$ to have). &amp;nbsp;But really the even greater question is why re-write code to do date functioning when there should be plenty of time-tested code already out there. &amp;nbsp;This problem definitely never should have cropped up in this day and age.</description></item><item><title>Women in the cross hairs</title><link>http://clicked.msnbc.msn.com/archive/2009/01/02/1730056.aspx#1731697</link><pubDate>Mon, 05 Jan 2009 03:25:27 GMT</pubDate><guid isPermaLink="false">8a5d2dbc-a0e4-4c7a-979f-3188051f228e:1731697</guid><dc:creator>Will Femia</dc:creator><description>KRW, that's what I was wondering too. They don't have boilerplate code for clocks and timers? Seems like that's something they more sort of paste in rather than write out.&lt;br&gt;</description></item><item><title>Women in the cross hairs</title><link>http://clicked.msnbc.msn.com/archive/2009/01/02/1730056.aspx#1732049</link><pubDate>Mon, 05 Jan 2009 15:45:55 GMT</pubDate><guid isPermaLink="false">8a5d2dbc-a0e4-4c7a-979f-3188051f228e:1732049</guid><dc:creator>Scott, Raleigh, North Carolina</dc:creator><description>Here's a time lapse of the RBC center in Raleigh, NC going from a NC State Basketball game to a Carolina Hurricanes ice hockey game in less than an hour and a half.&lt;br&gt;&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://www.youtube.com/watch?v=Z-8hubpvhVw"&gt;http://www.youtube.com/watch?v=Z-8hubpvhVw&lt;/a&gt;&lt;br&gt;</description></item><item><title>Women in the cross hairs</title><link>http://clicked.msnbc.msn.com/archive/2009/01/02/1730056.aspx#1732163</link><pubDate>Mon, 05 Jan 2009 17:05:25 GMT</pubDate><guid isPermaLink="false">8a5d2dbc-a0e4-4c7a-979f-3188051f228e:1732163</guid><dc:creator>KRW</dc:creator><description>Will, it's not even a matter of boilerplate code really. &amp;nbsp;I don't know what the underlying platform is for Zune but it being M$ and possibly on a 386-type structure, you could probably even use the same compiled libraries. &amp;nbsp;Even if the platform is different, you could still use the original source code and only need to tweek the variables that are platform specific. &amp;nbsp;The basic logic would not need to change. &amp;nbsp;And there was nothing in this function that would have been affected by that. &amp;nbsp;It's definitely cut-and-paste code at the very least...Assuming one had access to the original source, which may be the real reason it was being re-invented...ah, who knows.&lt;br&gt;&lt;br&gt;The primary coding issue here is the use of literal constants 365 and 366. These should be replaced with a variable named something like daysInThisYear which would be set to 365 or 366 based on IsLeapYear returning true/false. Other code changes would be required of course, but the flaw in the thinking is in the assumption made about the value 365 always meaning &amp;quot;a year&amp;quot; in the while loop logic. &amp;nbsp;&lt;br&gt;&lt;br&gt;Though the simplest solution would be to just break out of the loop if IsLeapYear is true and days &amp;gt; 366 is false. &amp;nbsp;Aren't you glad these guys aren't writing the software to pump drugs into your veins or land your next red-eye airline flight?</description></item></channel></rss>