<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description></description><title>Complicated is bad, Simple is good</title><generator>Tumblr (3.0; @kindasimple)</generator><link>http://kindasimple.com/</link><item><title>Time to Talk (a song)</title><description>&lt;p&gt;Since were not speaking&lt;br/&gt;I will say this&lt;br/&gt;A little effort is as good as none&lt;br/&gt;and now that were strangers&lt;br/&gt;there&amp;#8217;s nothing to miss&lt;br/&gt;the prize I waited for I won&lt;/p&gt;
&lt;p&gt;Going back to school&lt;br/&gt;and I find you sitting&lt;br/&gt;miles in front of me&lt;br/&gt;Driving on the road &lt;br/&gt;the cars streak by me gladly&lt;br/&gt;in time with the melody&lt;br/&gt;&lt;br/&gt;Since were not speaking&lt;br/&gt;I will say this&lt;br/&gt;A little effort is as good as none&lt;br/&gt;and now that were strangers&lt;br/&gt;there&amp;#8217;s nothing to miss&lt;br/&gt;the prize I waited for I won&lt;br/&gt;&lt;br/&gt;Back to my roots&lt;br/&gt;and there your growing&lt;br/&gt;at the highest point of the tree&lt;br/&gt;Rising up, I&amp;#8217;m near, &lt;br/&gt;and now you&amp;#8217;re flying&lt;br/&gt;dressed the color of that sun you seek&lt;/p&gt;
&lt;p&gt;Since were not speaking&lt;br/&gt;I will say this&lt;br/&gt;A little effort is as good as none&lt;br/&gt;and now that were strangers&lt;br/&gt;there&amp;#8217;s nothing to miss&lt;br/&gt;the prize I waited for I won&lt;/p&gt;</description><link>http://kindasimple.com/post/19926550786</link><guid>http://kindasimple.com/post/19926550786</guid><pubDate>Sun, 25 Mar 2012 20:31:25 -0400</pubDate></item><item><title>Cars &amp; Life</title><description>&lt;p&gt;Car projects that I have undertaken, simple ones mostly, are often fraught with difficulty.  The perils of car maintenance parallel the perils of living life:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;You can buy a manual to guide you.&lt;/li&gt;
&lt;li&gt;What looks easy at first ends up complicated and progress can come slowly.&lt;/li&gt;
&lt;li&gt;There are inevitably setbacks&amp;#8230;the stripped screw needs to be drilled out of the cracked fixture to replace. &lt;/li&gt;
&lt;li&gt;The steps in the manual work on a pristine rust free car&amp;#8230;to repair the beater you are going to need to invent a plan B that may or may not involve a sledgehammer.&lt;/li&gt;
&lt;li&gt;Apply force where necessary and have perseverance is required.  Trust the manual&lt;/li&gt;
&lt;li&gt;Carelessness often ends in disaster.&lt;/li&gt;
&lt;/ul&gt;</description><link>http://kindasimple.com/post/19926076088</link><guid>http://kindasimple.com/post/19926076088</guid><pubDate>Sun, 25 Mar 2012 20:23:55 -0400</pubDate></item><item><title>Rijndael (AES) algorithm </title><description>&lt;p&gt;&lt;a href="http://www.obviex.com/samples/Encryption.aspx"&gt;&lt;a href="http://www.obviex.com/samples/Encryption.aspx"&gt;http://www.obviex.com/samples/Encryption.aspx&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://kindasimple.com/post/19634746121</link><guid>http://kindasimple.com/post/19634746121</guid><pubDate>Tue, 20 Mar 2012 14:52:00 -0400</pubDate></item><item><title>Salt</title><description>&lt;a href="http://en.wikipedia.org/wiki/Salt_(cryptography)"&gt;Salt&lt;/a&gt;</description><link>http://kindasimple.com/post/19584248140</link><guid>http://kindasimple.com/post/19584248140</guid><pubDate>Mon, 19 Mar 2012 15:58:58 -0400</pubDate></item><item><title>Nonce</title><description>&lt;a href="http://en.wikipedia.org/wiki/Cryptographic_nonce"&gt;Nonce&lt;/a&gt;</description><link>http://kindasimple.com/post/19584013978</link><guid>http://kindasimple.com/post/19584013978</guid><pubDate>Mon, 19 Mar 2012 15:54:21 -0400</pubDate></item><item><title>Securing REST API</title><description>&lt;a href="http://www.thebuzzmedia.com/designing-a-secure-rest-api-without-oauth-authentication/"&gt;Securing REST API&lt;/a&gt;</description><link>http://kindasimple.com/post/19580343429</link><guid>http://kindasimple.com/post/19580343429</guid><pubDate>Mon, 19 Mar 2012 14:32:13 -0400</pubDate></item><item><title>propnc.snippet</title><description>&lt;p&gt;&amp;lt;?xml version=&amp;#8221;1.0&amp;#8221; encoding=&amp;#8221;utf-8&amp;#8221;&amp;#160;?&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;CodeSnippets xmlns=&amp;#8221;http://schemas.microsoft.com/VisualStudio/CodeSnippet&amp;#8221;&amp;gt;&lt;/p&gt;
&lt;p&gt;  &amp;lt;CodeSnippet Format=&amp;#8221;1.0.0&amp;#8221;&amp;gt;&lt;/p&gt;
&lt;p&gt;    &amp;lt;Header&amp;gt;&lt;/p&gt;
&lt;p&gt;      &amp;lt;Title&amp;gt;NotifyPropertyChanged Code Snippet&amp;lt;/Title&amp;gt;&lt;/p&gt;
&lt;p&gt;      &amp;lt;Shortcut&amp;gt;propnc&amp;lt;/Shortcut&amp;gt;&lt;/p&gt;
&lt;p&gt;      &amp;lt;Author&amp;gt;David Salt&amp;lt;/Author&amp;gt;&lt;/p&gt;
&lt;p&gt;      &amp;lt;SnippetTypes&amp;gt;&lt;/p&gt;
&lt;p&gt;        &amp;lt;SnippetType&amp;gt;Expansion&amp;lt;/SnippetType&amp;gt;&lt;/p&gt;
&lt;p&gt;      &amp;lt;/SnippetTypes&amp;gt;&lt;/p&gt;
&lt;p&gt;    &amp;lt;/Header&amp;gt;&lt;/p&gt;
&lt;p&gt;    &amp;lt;Snippet&amp;gt;&lt;/p&gt;

&lt;p&gt;      &amp;lt;!&amp;#8212; Add additional Snippet information here &amp;#8212;&amp;gt;&lt;/p&gt;

&lt;p&gt;      &amp;lt;Declarations&amp;gt;&lt;/p&gt;
&lt;p&gt;        &amp;lt;Literal&amp;gt;&lt;/p&gt;
&lt;p&gt;          &amp;lt;ID&amp;gt;propertytype&amp;lt;/ID&amp;gt;&lt;/p&gt;
&lt;p&gt;          &amp;lt;ToolTip&amp;gt;Replace the property type&amp;lt;/ToolTip&amp;gt;&lt;/p&gt;
&lt;p&gt;          &amp;lt;Default&amp;gt;string&amp;lt;/Default&amp;gt;&lt;/p&gt;
&lt;p&gt;        &amp;lt;/Literal&amp;gt;&lt;/p&gt;
&lt;p&gt;        &amp;lt;Literal&amp;gt;&lt;/p&gt;
&lt;p&gt;          &amp;lt;ID&amp;gt;propertyname&amp;lt;/ID&amp;gt;&lt;/p&gt;
&lt;p&gt;          &amp;lt;ToolTip&amp;gt;Replace with a name of the property.&amp;lt;/ToolTip&amp;gt;&lt;/p&gt;
&lt;p&gt;          &amp;lt;Default&amp;gt;PropertyName&amp;lt;/Default&amp;gt;&lt;/p&gt;
&lt;p&gt;        &amp;lt;/Literal&amp;gt;&lt;/p&gt;
&lt;p&gt;      &amp;lt;/Declarations&amp;gt;&lt;/p&gt;
&lt;p&gt;      &amp;lt;Code Language=&amp;#8221;CSharp&amp;#8221;&amp;gt;&lt;/p&gt;
&lt;p&gt;        &amp;lt;![CDATA[&lt;/p&gt;
&lt;p&gt;private $propertytype$ _$propertyname$;&lt;/p&gt;
&lt;p&gt;public $propertytype$ $propertyname$&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;get&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;{&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;return _$propertyname$;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;set&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;{&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;if(_$propertyname$&amp;#160;!= value)&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;{&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;_$propertyname$ = value;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;OnNotifyPropertyChanged(&amp;#8220;$propertyname$&amp;#8221;);&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;$end$]]&amp;gt;&lt;/p&gt;
&lt;p&gt;      &amp;lt;/Code&amp;gt;&lt;/p&gt;
&lt;p&gt;    &amp;lt;/Snippet&amp;gt;&lt;/p&gt;
&lt;p&gt;  &amp;lt;/CodeSnippet&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/CodeSnippets&amp;gt;&lt;/p&gt;</description><link>http://kindasimple.com/post/17450748518</link><guid>http://kindasimple.com/post/17450748518</guid><pubDate>Sat, 11 Feb 2012 17:42:01 -0500</pubDate></item><item><title>The nook needs a touchup</title><description>&lt;p&gt;I had a particularly bad user experience with my nook eReader.  Where to begin&amp;#8230;&lt;/p&gt;
&lt;p&gt;I like the idea of having my library digitally available with notes and highlights in a searchable format that is highly available.  eReaders are not there yet, at least not the nook touch.  The technology isn&amp;#8217;t mindblowing, and the most interesting thing about the device is the display technology.  I expect to be able to do a few things well.  &lt;/p&gt;
&lt;ol&gt;&lt;li&gt;Purchase books&lt;/li&gt;
&lt;li&gt;Read books&lt;/li&gt;
&lt;li&gt;Markup text with highlights and notes&lt;/li&gt;
&lt;/ol&gt;&lt;p&gt;I like going to a bookstore and browsing the titles.  The limited space and availability of the physical shelf means the most popular books will be there. There are many books in a small space.  You can pick it up and get a feel for it.  Having browsed some pages and decided to make a purchase, I turn to my eReader for the purchase and to read the book.  And this was my experience yesterday.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Strike 1:&lt;/strong&gt; I was frustrated when searching for the book returned the wrong results.  Similar titles and authors were returned, but not the book I was looking for.  Do I need to type the full title? Did I make a mispelling?  Click click click tap tap tap.  Argh. A search by ISBN yields the book in question.  Terriffic&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;Strike 2&lt;/strong&gt;:&lt;/span&gt; I click the prominently displayed &amp;#8220;Buy It&amp;#8221; button.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span&gt;Unable To Purchase&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;We are unable to process your order.  Please verify your payment information is correct or check out Wi-Fi connectivity and try again later.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;You can&amp;#8217;t tell if the problem is with WIFI or my account information?  You are the device&amp;#8230;could you submit the request?  Did you receive a response that indicated failure?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Strike 3:&lt;/strong&gt; Oh, my credit card must be expired.  Terriffic, I will update it.  Tap tap tap&amp;#8230;um, that isn&amp;#8217;t the expiration date I entered.  Tap tap tap&amp;#8230;.I know I entered it in correctly this time&amp;#8230;.what gives?  Search the internet and learn that you really should use the website to update your billing information.  Great, but why set me up for failure&amp;#8230;don&amp;#8217;t give me the option to screw up my settings.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Strike 4: &lt;/strong&gt;Still getting the same error message.  Huh, time to call tech support, proceed through the basic steps that I already tried (cycling the power, reentering billing information from the website).  Next step&amp;#8230;&amp;#8221;Do you mind resetting your device sir?&amp;#8221;.  Um, of course I do.  Won&amp;#8217;t that reset my bookmarks?  Aren&amp;#8217;t you going to inform me of that instead getting consent from an uninformed person who of course is going to be upset when my settings are all gone and my problem hasn&amp;#8217;t been fixed.  I bought this device to use it.  Its a personal digital library meant to store craploads of books and notes and highlights and bookmarks. Should we reset my device because you don&amp;#8217;t seem to have a handle on the issue and would rather that it go away then figure out what is wrong? Should I lose my data because its a nice shortcut to try for you? What are you thinking?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Strike 5: &lt;/strong&gt;I spend more time on the problem, purchase another book to determine that there is no billing issue, get support to remove the book and the charge, and inquire about how someone with my needs should operate a nook.  How can I tell if the digital copy is available on my device?  I get an answer that doesn&amp;#8217;t fit my needs: &amp;#8220;go to the website&amp;#8221;. My eReader doesn&amp;#8217;t have a web browser.  I don&amp;#8217;t want to have to whip out a 2nd piece of technology to see if I can use the first piece of technology. I figure that if there is no preview button and no download size then theres no eBook available.  A simple message on the screen in place of the purchase button would do.&lt;/p&gt;
&lt;p&gt;There are so many design issues and B&amp;amp;N must be aware of. Why did they let them out the door?  Why havn&amp;#8217;t they addressed them in the first update?  Most of this was rookie design issues and not even bugs.&lt;/p&gt;
&lt;p&gt;Should I invest in a digital library for this device?  Would I do better to switch to a Kindle?  Maybe the best thing is paper for now&amp;#8230;  &lt;/p&gt;</description><link>http://kindasimple.com/post/15199946185</link><guid>http://kindasimple.com/post/15199946185</guid><pubDate>Mon, 02 Jan 2012 16:04:00 -0500</pubDate></item><item><title>Pondering the Economic Vortex</title><description>&lt;p&gt;Unbelievably, I didn&amp;#8217;t realize that today was a day off until I rolled into the office.  With the day free it gave me some time to take a look at the xkcd poster that is newly hanging on the wall.&lt;/p&gt;
&lt;p&gt;At the dollar level it shows the relative cost of goods and services for different kinds of technology, pets, and food.  There is a side-by-side comparison between average worker hourly compensation and average CEO wages.&lt;/p&gt;
&lt;p&gt;The thousands level perspective contains bigger ticket items like cars and vacations as well as the cost of bigger personal projects such as college and raising children. Household income and investments are relevant here.&lt;/p&gt;
&lt;p&gt;The millions turns more political.  It contains campaign fundraising for individuals.   it outlines the Net Worth of famous politicians, artists, and common rich folk.&lt;/p&gt;
&lt;p&gt;The billions gets into the super rich classes of wealthy such as the Waltons and the Tech leaders like Eric Schmidt and Bill Gates, and also investors like Warren Buffet.  This area is the largest and breaks down where the money is&amp;#8230;and is aptly named the economic vortex.  Corporate revenues, federal spending, household income, US GDP, huge projects, wars&amp;#8230;its all here.  Smack in the middle is the breakdown of people as income earners into classes: the bottom 50%, the Upper middle incomes, the Upper incomes, the high incomes, and the 1%.  The amount of tax on each class that feeds into the federal and state budget is set apart.  The effect on each classes &amp;#8220;money pit&amp;#8221; of hypothetical redistributions aimed at raising every family&amp;#8217;s income to various levels of wealth&amp;#8230;showing just how much money the most wealthy have left over.&lt;/p&gt;
&lt;p&gt;The trillions level provides a view of countries on a global level and across time.  It has the US contribution to global GDP over time. The interesting items here are the size of the derivatives market and value of resources that exist on the planet.  &lt;/p&gt;
&lt;p&gt;I do love infographics.  There&amp;#8217;s a lot to explore, plenty of information to overload my brain with.&lt;/p&gt;
&lt;p&gt;The poster image is available here: &lt;a href="http://xkcd.com/980/huge/#x=-5776&amp;amp;y=-2880&amp;amp;z=2"&gt;&lt;a href="http://xkcd.com/980/huge/"&gt;http://xkcd.com/980/huge/&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://kindasimple.com/post/15187145013</link><guid>http://kindasimple.com/post/15187145013</guid><pubDate>Mon, 02 Jan 2012 11:46:00 -0500</pubDate></item><item><title>Stranded on Git without a branch</title><description>&lt;a href="http://blog.kortina.net/post/71935540/fix-git-not-currently-on-any-branch-problem"&gt;Stranded on Git without a branch&lt;/a&gt;: &lt;p&gt;Flying by the seat of your pants on Git, I find myself without a branch for my just-committed changes.  Getting back on was basically this:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;git commit -a -m “commit merge with svn to head”&lt;/span&gt;&lt;br/&gt;&lt;span&gt;git checkout -b merged_with_svn&lt;/span&gt;&lt;br/&gt;&lt;span&gt;git checkout original_branch&lt;/span&gt;&lt;br/&gt;&lt;span&gt;git merge merged_with_svn&lt;/span&gt;&lt;/p&gt;</description><link>http://kindasimple.com/post/14632467227</link><guid>http://kindasimple.com/post/14632467227</guid><pubDate>Thu, 22 Dec 2011 16:16:27 -0500</pubDate></item><item><title>Using ObservableVector (For Now)</title><description>&lt;a href="http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/aec84969-0947-4fe8-bcf6-ab533e7ab894"&gt;Using ObservableVector (For Now)&lt;/a&gt;: &lt;p&gt;Without a reliable collection class that implements INotifyCollectionChanged, using ObservableVector is a a stopgap measure until (hopefully) the Beta bits are released.&lt;/p&gt;</description><link>http://kindasimple.com/post/14632382360</link><guid>http://kindasimple.com/post/14632382360</guid><pubDate>Thu, 22 Dec 2011 16:14:47 -0500</pubDate></item><item><title>Like Learning</title><description>&lt;a href="http://www.reddit.com/r/reddit.com/comments/cktxy/reddit_lets_compile_a_list_of_the_best_online/"&gt;Like Learning&lt;/a&gt;</description><link>http://kindasimple.com/post/14500546272</link><guid>http://kindasimple.com/post/14500546272</guid><pubDate>Tue, 20 Dec 2011 01:58:28 -0500</pubDate></item><item><title>Challenge Accepted</title><description>&lt;p&gt;&lt;pre class="csharpcode"&gt;&lt;span class="rem"&gt;//Given a list of numbers and a target number X, find the pairs of numbers in the list that add to yield X&lt;/span&gt;

&lt;span class="rem"&gt;//FIRST ATTEMPT: "THE LOOP"&lt;/span&gt;

&lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;class&lt;/span&gt; Pair
 {
    &lt;span class="kwrd"&gt;int&lt;/span&gt; First{get;set;}
    &lt;span class="kwrd"&gt;int&lt;/span&gt; Second{get;set;}

    &lt;span class="kwrd"&gt;public&lt;/span&gt; Equals(Pair x, Pair y)
    {
        &lt;span class="kwrd"&gt;if&lt;/span&gt;(x.First == y.First &amp;amp;&amp;amp; x.Second == y.Second || x.Second == y.Second &amp;amp;&amp;amp; x.Second == y.First) &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="kwrd"&gt;true&lt;/span&gt;;
        &lt;span class="kwrd"&gt;else&lt;/span&gt; {&lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="kwrd"&gt;false&lt;/span&gt;;}
    }
 }
 
 &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;class&lt;/span&gt; Calculate
 {
 
     &lt;span class="kwrd"&gt;public&lt;/span&gt; List&amp;lt;Pair&amp;gt; FindPairs(List&amp;lt;&lt;span class="kwrd"&gt;int&lt;/span&gt;&amp;gt; list, &lt;span class="kwrd"&gt;int&lt;/span&gt; target)
     {

         List&amp;lt;Pair&amp;gt; found = &lt;span class="kwrd"&gt;new&lt;/span&gt; List&amp;lt;Pair&amp;gt;();
         
         &lt;span class="kwrd"&gt;for&lt;/span&gt;(&lt;span class="kwrd"&gt;int&lt;/span&gt; i=0;i&amp;lt;list.Count;i++)
         {
             &lt;span class="kwrd"&gt;int&lt;/span&gt; current = list[i];
             &lt;span class="kwrd"&gt;for&lt;/span&gt;(&lt;span class="kwrd"&gt;int&lt;/span&gt; j=i+1;j&amp;lt;list.Count;j++)
             {
                 &lt;span class="kwrd"&gt;if&lt;/span&gt;(list[j] == list[i] - target)
                 {
                    Pair newItem = &lt;span class="kwrd"&gt;new&lt;/span&gt; Pair(){ First = current, Second = list[j] };
                    &lt;span class="kwrd"&gt;bool&lt;/span&gt; exists = &lt;span class="kwrd"&gt;false&lt;/span&gt;;
                    &lt;span class="kwrd"&gt;foreach&lt;/span&gt;(var item &lt;span class="kwrd"&gt;in&lt;/span&gt; found)
                    {

                        &lt;span class="kwrd"&gt;if&lt;/span&gt;(item.Equals(newItem))
                        {
                        exists = &lt;span class="kwrd"&gt;true&lt;/span&gt;;
                        }
                        }
                        &lt;span class="kwrd"&gt;if&lt;/span&gt;(!exists)
                        {
                            found.Add(newItem);
                        }
                    }
                 }
             }
         }
         
         &lt;span class="kwrd"&gt;return&lt;/span&gt; found;
     }
 }

&lt;span class="rem"&gt;//SECOND ATTEMPT: LOOK IN THE DICTIONARY AND TAKE THE HINT&lt;/span&gt;
&lt;span class="rem"&gt;//Inspired by: &lt;a href="http://www.kirupa.com/forum/showthread.php?237560-Find-Two-Numbers-in-an-Array-that-Sum-to-a-Particular-Value"&gt;http://www.kirupa.com/forum/showthread.php?237560-Find-Two-Numbers-in-an-Array-that-Sum-to-a-Particular-Value&lt;/a&gt;&lt;/span&gt;

&lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;class&lt;/span&gt; Pair
{
    &lt;span class="kwrd"&gt;int&lt;/span&gt; First{get;set;}
    &lt;span class="kwrd"&gt;int&lt;/span&gt; Second{get;set;}

    &lt;span class="kwrd"&gt;public&lt;/span&gt; Equals(Pair x, Pair y)
    {
    &lt;span class="kwrd"&gt;if&lt;/span&gt;(x.First == y.First &amp;amp;&amp;amp; x.Second == y.Second || x.Second == y.Second &amp;amp;&amp;amp; x.Second == y.First) &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="kwrd"&gt;true&lt;/span&gt;;
    &lt;span class="kwrd"&gt;else&lt;/span&gt; {&lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="kwrd"&gt;false&lt;/span&gt;;}
    }
}

&lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;class&lt;/span&gt; Calculate
{

    &lt;span class="kwrd"&gt;public&lt;/span&gt; List&amp;lt;Pair&amp;gt; FindPairs(List&amp;lt;&lt;span class="kwrd"&gt;int&lt;/span&gt;&amp;gt; list, &lt;span class="kwrd"&gt;int&lt;/span&gt; target)
    {
        List&amp;lt;Pair&amp;gt; found = &lt;span class="kwrd"&gt;new&lt;/span&gt; List&amp;lt;Pair&amp;gt;();
        Dictionary&amp;lt;&lt;span class="kwrd"&gt;int&lt;/span&gt;,&lt;span class="kwrd"&gt;int&lt;/span&gt;&amp;gt; find = &lt;span class="kwrd"&gt;new&lt;/span&gt; Dictionary&amp;lt;&lt;span class="kwrd"&gt;in&lt;/span&gt;,&lt;span class="kwrd"&gt;int&lt;/span&gt;&amp;gt;();

        &lt;span class="kwrd"&gt;for&lt;/span&gt;(&lt;span class="kwrd"&gt;int&lt;/span&gt; i=0;i&amp;lt;list.Count;i++)
        {
            &lt;span class="kwrd"&gt;if&lt;/span&gt;(find.Key(list[i])
            {
                Pair newItem = &lt;span class="kwrd"&gt;new&lt;/span&gt; Pair(){ 
                    First = list[i], 
                    Second = find.Value(list[i]) 
                };
                &lt;span class="kwrd"&gt;bool&lt;/span&gt; exists = &lt;span class="kwrd"&gt;false&lt;/span&gt;;
                &lt;span class="kwrd"&gt;foreach&lt;/span&gt;(item &lt;span class="kwrd"&gt;in&lt;/span&gt; found)
                {
                    &lt;span class="kwrd"&gt;if&lt;/span&gt;(item.Equals(newItem))
                    {
                        exists = &lt;span class="kwrd"&gt;true&lt;/span&gt;;
                    }
                }
                
                &lt;span class="kwrd"&gt;if&lt;/span&gt;(!exists)
                {
                    found.Add(newItem);
                }
            }
            &lt;span class="kwrd"&gt;else&lt;/span&gt;
            {
                find.Add(target - list[i], list[i]);
            }
        }
        
        &lt;span class="kwrd"&gt;return&lt;/span&gt; found;
    }
}  
     &lt;/pre&gt;&lt;/p&gt;</description><link>http://kindasimple.com/post/14292926121</link><guid>http://kindasimple.com/post/14292926121</guid><pubDate>Thu, 15 Dec 2011 22:11:08 -0500</pubDate></item><item><title>Broccoli Salad</title><description>&lt;div class="ingredients"&gt;
&lt;h3&gt;Ingredients&lt;/h3&gt;
&lt;ul&gt;&lt;li class="plaincharacterwrap ingredient"&gt;2 heads fresh broccoli&lt;/li&gt;
&lt;li class="plaincharacterwrap ingredient"&gt;1 red onion&lt;/li&gt;
&lt;li class="plaincharacterwrap ingredient"&gt;1/2 pound bacon&lt;/li&gt;
&lt;li class="plaincharacterwrap ingredient"&gt;3/4 cup raisins&lt;/li&gt;
&lt;li class="plaincharacterwrap ingredient"&gt;3/4 cup sliced almonds&lt;/li&gt;
&lt;li class="plaincharacterwrap ingredient"&gt;1 cup mayonnaise&lt;/li&gt;
&lt;li class="plaincharacterwrap ingredient"&gt;1/2 cup white sugar&lt;/li&gt;
&lt;li class="plaincharacterwrap ingredient"&gt;2 tablespoons white wine vinegar&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div class="directions"&gt;
&lt;h3&gt;Directions&lt;/h3&gt;
&lt;ol&gt;&lt;li&gt;&lt;span class="plaincharacterwrap break"&gt;Place bacon in a deep skillet and cook over medium high heat until evenly brown. Cool and crumble.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="plaincharacterwrap break"&gt;Cut the broccoli into bite-size pieces and cut the onion into thin bite-size slices. Combine with the bacon, raisins, your favorite nuts and mix well.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="plaincharacterwrap break"&gt;To prepare the dressing, mix the mayonnaise, sugar and vinegar together until smooth. Stir into the salad, let chill and serve.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;p&gt;Source: &lt;a href="http://allrecipes.com/recipe/fresh-broccoli-salad/"&gt;&lt;a href="http://allrecipes.com/recipe/fresh-broccoli-salad/"&gt;http://allrecipes.com/recipe/fresh-broccoli-salad/&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;</description><link>http://kindasimple.com/post/14291975743</link><guid>http://kindasimple.com/post/14291975743</guid><pubDate>Thu, 15 Dec 2011 21:51:56 -0500</pubDate></item><item><title>If looking for pairs, a hash is there</title><description>&lt;a href="http://www.kirupa.com/forum/showthread.php?237560-Find-Two-Numbers-in-an-Array-that-Sum-to-a-Particular-Value"&gt;If looking for pairs, a hash is there&lt;/a&gt;</description><link>http://kindasimple.com/post/14291897730</link><guid>http://kindasimple.com/post/14291897730</guid><pubDate>Thu, 15 Dec 2011 21:50:24 -0500</pubDate></item><item><title>HTML5 Beginners Resources</title><description>&lt;p&gt;Here are a few useful HTML5 resources to get you started:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML5" target="_blank"&gt;&lt;a href="http://en.wikipedia.org/wiki/HTML5"&gt;http://en.wikipedia.org/wiki/HTML5&lt;/a&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.html5rocks.com/" target="_blank"&gt;&lt;a href="http://www.html5rocks.com/"&gt;http://www.html5rocks.com/&lt;/a&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://diveintohtml5.org/" target="_blank"&gt;&lt;a href="http://diveintohtml5.org/"&gt;http://diveintohtml5.org/&lt;/a&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://html5demos.com/" target="_blank"&gt;&lt;a href="http://html5demos.com/"&gt;http://html5demos.com/&lt;/a&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.html5test.com/" target="_blank"&gt;&lt;a href="http://www.html5test.com/"&gt;http://www.html5test.com/&lt;/a&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.w3schools.com/html5/html5_reference.asp" target="_blank"&gt;&lt;a href="http://www.w3schools.com/html5/html5_reference.asp"&gt;http://www.w3schools.com/html5/html5_reference.asp&lt;/a&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://dev.w3.org/html5/html4-differences/" target="_blank"&gt;&lt;a href="http://dev.w3.org/html5/html4-differences/"&gt;http://dev.w3.org/html5/html4-differences/&lt;/a&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;Source: &lt;a href="http://www.adobe.com/devnet/html5/articles/html5-basics.html"&gt;&lt;a href="http://www.adobe.com/devnet/html5/articles/html5-basics.html"&gt;http://www.adobe.com/devnet/html5/articles/html5-basics.html&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://kindasimple.com/post/14207294343</link><guid>http://kindasimple.com/post/14207294343</guid><pubDate>Wed, 14 Dec 2011 02:14:57 -0500</pubDate></item><item><title>Windows 8 Tips &amp; Tricks</title><description>&lt;a href="http://channel9.msdn.com/Events/BUILD/BUILD2011/TOOL-515T"&gt;Windows 8 Tips &amp; Tricks&lt;/a&gt;: &lt;p&gt;Debugging, Settings, OAuth, Async&lt;/p&gt;
&lt;p&gt;Shows how to create a simple settings panel with a user control and settings panel&lt;/p&gt;</description><link>http://kindasimple.com/post/12601661680</link><guid>http://kindasimple.com/post/12601661680</guid><pubDate>Thu, 10 Nov 2011 11:38:30 -0500</pubDate></item><item><title>Spreadable TED Talks</title><description>&lt;p&gt;&lt;a href="http://www.ted.com/talks/matthieu_ricard_on_the_habits_of_happiness.html"&gt;&lt;a href="http://www.ted.com/talks/matthieu_ricard_on_the_habits_of_happiness.html"&gt;http://www.ted.com/talks/matthieu_ricard_on_the_habits_of_happiness.html&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.ted.com/talks/dan_gilbert_researches_happiness.html"&gt;&lt;a href="http://www.ted.com/talks/dan_gilbert_researches_happiness.html"&gt;http://www.ted.com/talks/dan_gilbert_researches_happiness.html&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://kindasimple.com/post/11381973692</link><guid>http://kindasimple.com/post/11381973692</guid><pubDate>Wed, 12 Oct 2011 22:51:00 -0400</pubDate></item><item><title>Calories are a garbage system</title><description>&lt;p&gt;Thats just one bit of wisdom shared at the nutritional clinic I attended at The Fitness Circuit.  They wisely provided notepads which is the reason why I still have something to record here. Most of what I heard was already familiar, but a great reminder of changes that I have yet to implement.  So here were the major points&lt;/p&gt;

&lt;p&gt;Calories: A good ratio for sources of calories to keep is the zone diet&amp;#8217;s 40 carb&amp;#160;: 30 protein&amp;#160;: 30 fat. Bodybuilders preach a 50 protein&amp;#160;: 30 carb&amp;#160;: 20 fat, which is not necessarily bad. &lt;/p&gt;
&lt;p&gt;Composition: Its a good idea to vary food at mealtime to try to eat complete proteins.  Combining an apple with almonds is an example.  Rice and beans is another. &lt;/p&gt;
&lt;p&gt;Timing: Its best to let digestion finish, between meals (3-4 hours).  That way, enzymes are ready to be reused.&lt;/p&gt;
&lt;p&gt;Toxicity: Toxins can be stored in fat as a way of elimination.  The body will fight to keep the fat there until the source of the toxins is eliminated.&lt;/p&gt;
&lt;p&gt;Exercise: Varied exercise is good.  When time is limited, circuit training is ideal.  &lt;/p&gt;
&lt;p&gt;Calories: If planning to lose fat and counting calories, aim for a 500 calorie/day reduction.  500 calories * 7 days = 3500 calories = 1lb fat.  A healthy diet could be about 1800 calories of good food.  Its been offered that if you eat 35 grams of fiber at a sitting, you can eat what you want and maintain your weight because you will be full before eating too much of the bad stuff.  Overall, calories are an imperfect system for assessing the metabolic energy of food, and shouldn&amp;#8217;t be relied on heavily.&lt;/p&gt;
&lt;p&gt;Diet: A caveman diet is a good idea.  Nuts, veggies, fruit, occasionally meat. Cavemen didn&amp;#8217;t bake bread, so stay away.  A foods pyramid would prioritize foods in order of diminishing value Vegetables (fresh, frozen, canned), Fruit, Unprocessed starches (corn, carrot, rice, potato), Healthy grains, Raw Nuts/Seeds, Animal meets&lt;/p&gt;
&lt;p&gt;Cholesterol: Levels are more of a feedback loop than anything else.  They indicate an issue with nutrition.  A secondary symptom.  Acidic blood causes buffering (e.g. calcium leeching for dairy).  Eating alkaline foods makes blood more basic.&lt;/p&gt;
&lt;p&gt;Tips: Make junkfood a destination event.  That way its not in the house, is more of a conscious decision, and is enjoyed more.&lt;/p&gt;
&lt;p&gt;Cook in bulk.  Some ideas are chicken, royal red [beans?] rice, sweet potatoes,&lt;/p&gt;
&lt;p&gt;Have a free day, then go back to diet.&lt;/p&gt;
&lt;p&gt;Mindset: put diet in the context of goals.  When considering the big picture, the path is more clear.  Have goals, write them down in the positive and in the past tense as if achieved (e.g. &amp;#8220;I am glad that I can not do 100 pushups&amp;#8221;). &lt;/p&gt;</description><link>http://kindasimple.com/post/2903700413</link><guid>http://kindasimple.com/post/2903700413</guid><pubDate>Sun, 23 Jan 2011 22:32:03 -0500</pubDate></item><item><title>"Strong opinions, weakly held."</title><description>“Strong opinions, weakly held.”</description><link>http://kindasimple.com/post/2781433489</link><guid>http://kindasimple.com/post/2781433489</guid><pubDate>Sun, 16 Jan 2011 14:48:27 -0500</pubDate></item></channel></rss>

