<?xml version="1.0" encoding="UTF-8"?><rss version="0.92">
<channel>
	<title>Pete Ware</title>
	<link>http://peteware.com</link>
	<description>Tech, Politics, and NYC</description>
	<lastBuildDate>Fri, 27 Aug 2010 02:14:37 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	<!-- generator="WordPress/3.0.1" -->

	<item>
		<title>C++ test for within</title>
		<description><![CDATA[I found myself having to right a bunch of range checking code like this: if &#40;val &#160;1.0&#41; &#160; &#160; val = 1.0; so I wrote this simple function. #include &#34;algorithm&#34; template const Type &#38;amp; within &#40;const Type &#38;amp;lower, const Type &#38;amp;val, const Type &#38;amp;upper&#41; &#123; &#160; &#160; return std::min &#40;std::max &#40;lower, val&#41;, upper&#41;; &#125; So [...]]]></description>
		<link>http://peteware.com/2010/08/c-test-for-within/</link>
			</item>
	<item>
		<title>Way funny way to quit!</title>
		<description><![CDATA[This woman used a dry erase board and sent email to everyone to quit. I especially like how she reports on her boss. Editted Aug 10. Sadly, it&#8217;s a hoax: Techcrunch: “Girl quits her job on dry erase board, emails entire office (33 Photos)” is indeed a hoax, say its creators John and Leo Resig.]]></description>
		<link>http://peteware.com/2010/08/way-funny-way-to-quit/</link>
			</item>
	<item>
		<title>Federal budget overview</title>
		<description><![CDATA[Here&#8217;s a great overview from Barry Ritholz showing how the Federal budget is proportioned.]]></description>
		<link>http://peteware.com/2010/07/federal-budget-overview/</link>
			</item>
	<item>
		<title>Unemployment won&#8217;t recover for 157 months (2021)</title>
		<description><![CDATA[If we look at employment prior to the Great Recession compared to now there is a difference of 11.3 million jobs (from Bookings institute). Now how long is it going to take to return to that level? If you take the best job growth of the 2000&#8242;s it&#8217;ll be 157 months or 11years. That&#8217;s not [...]]]></description>
		<link>http://peteware.com/2010/07/unemployment-wont-recover-for-157-months-2021/</link>
			</item>
	<item>
		<title>iPhone4 and FaceTime</title>
		<description><![CDATA[I&#8217;d been surprised about Apple emphasizing FaceTime in advertising. I don&#8217;t think it&#8217;s very compelling &#8212; I don&#8217;t know enough people with an iPhone4, I rarely have a Wi-Fi connection when I want to talk to them, and I don&#8217;t find video chats very compelling anyway. After all, how often do you video iChat or [...]]]></description>
		<link>http://peteware.com/2010/07/iphone4-and-facetime/</link>
			</item>
	<item>
		<title>More exonerations for Climategate researchers</title>
		<description><![CDATA[Yet another report says Michael E Mann is cleared of any wrongdoing related to his climate research. An investigative panel at Pennsylvania State University, weighing the question of whether the scientist, Michael E. Mann, had “seriously deviated from accepted practices within the academic community for proposing, conducting or reporting research or other scholarly activities,” declared [...]]]></description>
		<link>http://peteware.com/2010/07/more-exonerations-for-climategate-researchers/</link>
			</item>
	<item>
		<title>Senator Robert Byrd</title>
		<description><![CDATA[From Frank Rich&#8217;s column about Senator Robert Byrd. These senators were in the tradition of Thurmond, not Byrd — indeed, they are Thurmond’s direct heirs. Like Byrd, Thurmond had been an ardent Democratic foe of the Civil Rights Act of 1964. Unlike Byrd, he left his party in disgust that year and endorsed Goldwater, jump-starting [...]]]></description>
		<link>http://peteware.com/2010/07/senator-robert-byrd/</link>
			</item>
	<item>
		<title>Switching keys in values in a map</title>
		<description><![CDATA[A functor that reverses a pair: first becomes second, second becomes first. Useful for switching from a map to another map (or multimap in this example) where the value becomes the key and the key the value. std::map m; std::multimap m2; m["a"] = 0; m["b"] = 1; m["c"] = 0; std::transform (m.begin(), m.end(), std::inserter (m2, [...]]]></description>
		<link>http://peteware.com/2010/07/switching-keys-in-values-in-a-map/</link>
			</item>
	<item>
		<title>The Best Party: Campaign video from Iceland</title>
		<description><![CDATA[&#8220;The Best Party&#8221; has this campaign video where they won city elections in Reykjavik. This is amusing and campy. I especially like the line &#8220;A drug free parliament by 2020!&#8221; www.youtube.com/watch?v=xxBW4mPzv6E]]></description>
		<link>http://peteware.com/2010/07/the-best-party-campaign-video-from-iceland/</link>
			</item>
	<item>
		<title>WordPress 3.0 update</title>
		<description><![CDATA[Update to 3.0 went pretty smoothly. I&#8217;m having some problem with images (added how to fix below) Ran my custom backup script: $ cd ~/Desktop/wp-backup $ ./backup Downloaded wordpress 3.0: $ cd ~/Desktop/src/downloads/pkgs $ curl -O http://wordpress.org/latest.tar.gz $ mv latest.tar.gz wordpress-3.0.tgz Make sure you know the WP administrator user password as WP 3.0 uses a [...]]]></description>
		<link>http://peteware.com/2010/07/wordpress-3-0-update/</link>
			</item>
</channel>
</rss>
