<?xml version="1.0" encoding="iso-8859-1"?><!-- generator="b2evolution/3.3.3" -->
<rss version="0.92">
	<channel>
		<title>Nano Oriented Programming Discussion - Latest comments</title>
		<link>http://poncetechnologies.com/NOP///index.php?blog=1&#38;disp=comments</link>
		<description></description>
		<language>en-US</language>
		<docs>http://backend.userland.com/rss092</docs>
				<item>
			<title>In response to: STL string formatter.</title>
			<description>Here is another usage example:&lt;br /&gt;
&lt;br /&gt;
std::wstring theString = std::format(L&quot;Function Name  %S&quot;, __FUNCTION__ );&lt;br /&gt;
&lt;br /&gt;
theString += std::format(L&quot; Line Number %d&quot;,__LINE__);&lt;br /&gt;
&lt;br /&gt;
There are other more optimal ways to manage the allocation of resources, especially the internal string. however, i really like the syntax of using the format class. </description>
			<link>http://poncetechnologies.com/NOP///index.php/2006/02/14/stl_string_formatter?blog=1#c455</link>
		</item>
				<item>
			<title>In response to: Class Sealer</title>
			<description>w00t!&lt;br /&gt;
&lt;br /&gt;
you're back!</description>
			<link>http://poncetechnologies.com/NOP///index.php/2005/04/08/class_sealer?blog=1#c39</link>
		</item>
				<item>
			<title>In response to: Here is some neat code.</title>
			<description>Here is a useful class to perform atomic boolean operations.


&lt;blockquote&gt;
&lt;pre&gt;
class AtomicBool
{
	volatile long m_lValue;
public:	
	inline AtomicBool(const bool bValue):m_lValue((long)bValue){}
	inline AtomicBool():m_lValue(0){}

	inline const AtomicBool&amp;amp; operator = (bool lValue)
	{
		::InterlockedExchange(&amp;amp;m_lValue, (long)lValue);
		return *this;
	}

	inline operator bool() 
	{
		return (1 ==::InterlockedCompareExchange(&amp;amp;m_lValue,1,1));
	}
};
&lt;/pre&gt;&lt;/blockquote&gt;&lt;br /&gt;</description>
			<link>http://poncetechnologies.com/NOP///index.php/2004/12/09/here_is_some_neat_code?blog=1#c38</link>
		</item>
				<item>
			<title>In response to: Ask away.</title>
			<description>Sorry NOPNoob, there is no award.  There is however, another answer. &lt;br /&gt;
&lt;br /&gt;
Answer:&lt;br /&gt;
&lt;br /&gt;
Assume these guys are pretty smart. &lt;br /&gt;
&lt;br /&gt;
If there were two white hats distributed on the heads of the candidates, then one person could have figured that out and shouted his answer. &lt;br /&gt;
&lt;br /&gt;
We know from the problem that one guy sees two black hats. So there can not be two white hats.&lt;br /&gt;
&lt;br /&gt;
This implies that there can be no more than one white hat if there is at all.  So if there was a white hat, someone would have figured that out an known that he was wearing a black hat.  &lt;br /&gt;
&lt;br /&gt;
Since no one had that answer,  then the hat on the top of the guys head must be black.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
cheers,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
</description>
			<link>http://poncetechnologies.com/NOP///index.php/2004/12/09/ask_away?blog=1#c37</link>
		</item>
				<item>
			<title>In response to: Ask away.</title>
			<description>He knew he was wearing a white hat because he was also facing the cupboard which had glass doors. Am I right? What do I win?</description>
			<link>http://poncetechnologies.com/NOP///index.php/2004/12/09/ask_away?blog=1#c36</link>
		</item>
				<item>
			<title>In response to: Ask away.</title>
			<description>Three prospective CIA agents were interviewing for one open position and all had equally impressed the hiring manager.  He just couldn't decide between them, so he said:  &quot;Well, since you are all bright, quick, sharp, etc, I can't make a choice among you.  Instead, I have a puzzle for you and the one who answers correctly will get the position.&quot;  He sat the candidates in a triangle so each could see the other two and then blindfolded them.  He explained, &quot;I have 3 black hats and 2 white hats.  I will put one hat on each of your heads and return the remaining two to the cupboard.  When I remove the blindfolds, the first one to tell me what color hat is on his head will be the next CIA agent.&quot;  So, one hat was put on each head and the blindfolds were removed.   One of the prospective agents saw that the other two were wearing black hats and began pondering which hat he could have.  After a bit of a pause, the prospective agent said; &quot;I am wearing a ______ hat.&quot;  What color hat was he wearing and how did he know?&lt;br /&gt;
&lt;br /&gt;
</description>
			<link>http://poncetechnologies.com/NOP///index.php/2004/12/09/ask_away?blog=1#c35</link>
		</item>
				<item>
			<title>In response to: MS Word Creates HTML Ass Code.</title>
			<description>Just downloaded OpenOffice.  Pretty cool.  I think I'll finish the tutorial now. &lt;br /&gt;
&lt;br /&gt;
thanks again pb&lt;br /&gt;
&lt;br /&gt;
</description>
			<link>http://poncetechnologies.com/NOP///index.php/2004/12/11/ms_word_creates_html_ass_code?blog=1#c33</link>
		</item>
				<item>
			<title>In response to: MS Word Creates HTML Ass Code.</title>
			<description>OpenOffice seems to do pretty decent HTML. Can't compare to MS Office since I refuse to install it.</description>
			<link>http://poncetechnologies.com/NOP///index.php/2004/12/11/ms_word_creates_html_ass_code?blog=1#c32</link>
		</item>
		  </channel>
</rss>
