<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>All Things Ash</title>
	<atom:link href="http://kadakia.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://kadakia.com</link>
	<description>almost completely not politically correct since 1985.</description>
	<lastBuildDate>Wed, 21 Dec 2011 18:24:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>50 Crazy Economic Facts</title>
		<link>http://kadakia.com/2011/12/50-crazy-economic-facts/</link>
		<comments>http://kadakia.com/2011/12/50-crazy-economic-facts/#comments</comments>
		<pubDate>Wed, 21 Dec 2011 18:22:07 +0000</pubDate>
		<dc:creator>Ashutosh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kadakia.com/?p=1236</guid>
		<description><![CDATA[The following are 50 economic numbers from 2011 that are almost too crazy to believe. (via ZeroHedge) #1 A staggering 48 percent of all Americans are either considered to be “low income” or are living in poverty. #2 Approximately 57 percent of all children in the United States are living in homes that are either considered to be “low income” or [...]]]></description>
			<content:encoded><![CDATA[<p>The following are 50 economic numbers from 2011 that are almost too crazy to believe. (via <a href="http://www.zerohedge.com/news/50-economic-numbers-about-us-are-almost-too-crazy-believe">ZeroHedge</a>)</p>
<p><strong>#1</strong> A staggering <a title="48 percent" href="http://usnews.msnbc.msn.com/_news/2011/12/15/9461848-dismal-prospects-1-in-2-americans-are-now-poor-or-low-income">48 percent</a> of all Americans are either considered to be “low income” or are living in poverty.</p>
<p><strong>#2</strong> Approximately <a title="57 percent" href="http://usnews.msnbc.msn.com/_news/2011/12/15/9461848-dismal-prospects-1-in-2-americans-are-now-poor-or-low-income">57 percent</a> of all children in the United States are living in homes that are either considered to be “low income” or impoverished.</p>
<p><strong>#3</strong> If the number of Americans that “wanted jobs” was the same today as it was back in 2007, the “official” unemployment rate put out by the U.S. government would be up to <a title="11 percent" href="http://www.washingtonpost.com/blogs/ezra-klein/post/wonkbook-the-real-unemployment-rate-is-11-percent/2011/12/12/gIQAuctPpO_blog.html">11 percent</a>.</p>
<p><strong>#4</strong> The average amount of time that a worker stays unemployed in the United States is now <a title="over 40 weeks" href="http://research.stlouisfed.org/fred2/series/UEMPMEAN">over 40 weeks</a>.</p>
<p><strong>#5</strong> One recent survey found that <a title="77 percent" href="http://www.usnews.com/news/blogs/washington-whispers/2011/11/07/7-in-10-blame-economy-for-hiring-freeze">77 percent</a> of all U.S. small businesses do not plan to hire any more workers.</p>
<p><strong>#6</strong> There are fewer payroll jobs in the United States today <a title="than there were back in 2000" href="http://www.usnews.com/opinion/mzuckerman/articles/2011/06/20/why-the-jobs-situation-is-worse-than-it-looks">than there were back in 2000</a> even though we have added 30 million extra people to the population since then.</p>
<p><strong>#7</strong> Since December 2007, median household income in the United States has declined by a total of <a title="6.8%" href="http://www.usatoday.com/news/nation/story/2011-09-13/census-household-income/50383882/1">6.8%</a> once you account for inflation.</p>
<p><strong>#8</strong> According to the Bureau of Labor Statistics, 16.6 million Americans were self-employed back in December 2006.  Today, that number has shrunk <a title="to 14.5 million" href="http://www.usatoday.com/money/smallbusiness/story/2011-09-07/Fewer-people-choose-to-be-self-employed/50305432/1">to 14.5 million</a>.</p>
<p><strong>#9</strong> A Gallup poll from earlier this year found that <a title="approximately one out of every five" href="http://www.foxnews.com/us/2011/07/06/underemployed-new-reality-american-job-market/">approximately one out of every five</a> Americans that do have a job consider themselves to be underemployed.</p>
<p><strong>#10</strong> According to author Paul Osterman, about <a title="20 percent" href="http://money.usnews.com/money/careers/articles/2011/10/19/the-ranks-of-the-underemployed-continue-to-grow">20 percent</a> of all U.S. adults are currently working jobs that pay poverty-level wages.</p>
<p><strong>#11</strong> Back in 1980, <a title="less than 30%" href="http://growth.newamerica.net/sites/newamerica.net/files/policydocs/26-04-11%20Middle%20Class%20Under%20Stress.pdf">less than 30%</a> of all jobs in the United States were low income jobs.  Today, <a title="more than 40%" href="http://growth.newamerica.net/sites/newamerica.net/files/policydocs/26-04-11%20Middle%20Class%20Under%20Stress.pdf">more than 40%</a> of all jobs in the United States are low income jobs.</p>
<p><strong>#12</strong> Back in 1969, 95 percent of all men between the ages of 25 and 54 had a job.  In July, only <a title="81.2 percent" href="http://www.bloomberg.com/news/print/2011-08-25/obama-seeks-jobs-plan-as-u-s-workingman-status-further-erodes.html">81.2 percent</a> of men in that age group had a job.</p>
<p><strong>#13</strong> One recent survey found that <a title="one out of every three Americans" href="http://www.dsnews.com/articles/job-loss-could-put-one-in-three-homeowners-out-of-their-home-2011-09-30">one out of every three Americans</a> would not be able to make a mortgage or rent payment next month if they suddenly lost their current job.</p>
<p><strong>#14</strong> The Federal Reserve recently announced that the total net worth of U.S. households declined by <a title="4.1 percent" href="http://money.cnn.com/2011/12/08/news/economy/household_net_worth/index.htm">4.1 percent</a> in the 3rd quarter of 2011 alone.</p>
<p><strong>#15</strong> According to a recent study conducted by the BlackRock Investment Institute, the ratio of household debt to personal income in the United States is now <a title="154 percent" href="http://www.usatoday.com/money/economy/story/2011-10-02/cnbc-consumers-economy/50619276/1">154 percent</a>.</p>
<p><strong>#16</strong> As the economy has slowed down, so has the number of marriages.  According to a Pew Research Center analysis, only <a title="51 percent" href="http://www.washingtonpost.com/local/married-couples-at-a-record-low/2011/12/13/gIQAnJyYsO_story.html">51 percent</a> of all Americans that are at least 18 years old are currently married.  Back in 1960, <a title="72 percent" href="http://www.washingtonpost.com/local/married-couples-at-a-record-low/2011/12/13/gIQAnJyYsO_story.html">72 percent</a> of all U.S. adults were married.</p>
<p><strong>#17</strong> The U.S. Postal Service has lost more than <a title="5 billion dollars" href="http://news.yahoo.com/post-office-near-default-losses-mount-5-1b-210808129.html">5 billion dollars</a> over the past year.</p>
<p><strong>#18</strong> In Stockton, California home prices have declined <a title="64 percent" href="http://www.businessinsider.com/most-miserable-cities-america-2011-12#6-stockton-california-15">64 percent</a>from where they were at when the housing market peaked.</p>
<p><strong>#19</strong> Nevada has had the highest foreclosure rate in the nation for<a title="59 months" href="http://www.cnbc.com/id/45682960">59 months</a> in a row.</p>
<p><strong>#20</strong> If you can believe it, the median price of a home in Detroit is now <a title="just $6000" href="http://www.businessinsider.com/detroit-is-in-utter-shambles-and-the-state-should-take-it-over-immediately-2011-12">just $6000</a>.</p>
<p><strong>#21</strong> According to the U.S. Census Bureau, <a title="18 percent" href="http://money.cnn.com/2011/03/18/real_estate/florida_vacant_homes/index.htm">18 percent</a> of all homes in the state of Florida are sitting vacant.  That figure is 63 percent larger than it was just ten years ago.</p>
<p><strong>#22</strong> New home construction in the United States is on pace to set <a title="a brand new all-time record low" href="http://www.usatoday.com/money/economy/housing/story/2011-11-03/economy-hits-home-builders/51065938/1?loc=interstitialskip">a brand new all-time record low</a> in 2011.</p>
<p><strong>#23</strong> As I have written about <a title="previously" href="http://endoftheamericandream.com/archives/have-we-raised-an-entire-generation-of-young-men-that-do-not-know-how-to-be-men">previously</a>, 19 percent of all American men between the ages of 25 and 34 are now living with their parents.</p>
<p><strong>#24</strong> Electricity bills in the United States have risen faster than the overall rate of inflation <a title="for five years in a row" href="http://www.usatoday.com/money/industries/energy/story/2011-12-13/electric-bills/51840042/1?loc=interstitialskip">for five years in a row</a>.</p>
<p><strong>#25</strong> According to the Bureau of Economic Analysis, health care costs accounted for just 9.5% of all personal consumption back in 1980.  Today they account for approximately <a title="16.3%" href="http://www.businessinsider.com/america-middle-class-in-decline-2011-4#-10">16.3%</a>.</p>
<p><strong>#26</strong> One study found that <a title="approximately 41 percent" href="http://endoftheamericandream.com/archives/the-royal-wedding-american-idol-dancing-with-the-stars-and-7-other-ways-that-the-american-people-are-being-distracted-from-our-real-problems">approximately 41 percent</a> of all working age Americans either have medical bill problems or are currently paying off medical debt.</p>
<p><strong>#27</strong> If you can believe it, one out of every seven Americans <a title="has at least 10 credit cards" href="http://www.mybudget360.com/endgame-credit-card-nation-40-year-credit-card-bull-market-over/">has at least 10 credit cards</a>.</p>
<p><strong>#28</strong> The United States spends <a title="more than 4 dollars" href="http://www.census.gov/foreign-trade/Press-Release/current_press_release/ft900.pdf">about 4 dollars</a> on goods and services from China for every one dollar that China spends on goods and services from the United States.</p>
<p><strong>#29</strong> It is being projected that the U.S. trade deficit for 2011 will be<a title="558.2 billion dollars" href="http://thehill.com/blogs/on-the-money/1005-trade/192857-trade-deficit-narrows-to-lowest-level-this-year">558.2 billion dollars</a>.</p>
<p><strong>#30</strong> The <a title="retirement crisis" href="http://theeconomiccollapseblog.com/archives/25-bitter-and-painful-facts-about-the-coming-baby-boomer-retirement-crisis-that-will-blow-your-mind">retirement crisis</a> in the United States just continues to get worse.  According to the Employee Benefit Research Institute, <a title="46 percent" href="http://www.ebri.org/pdf/surveys/rcs/2011/FS2_RCS11_Prepare_FINAL1.pdf">46 percent</a> of all American workers have less than $10,000 saved for retirement, and <a title="29 percent" href="http://www.ebri.org/pdf/surveys/rcs/2011/FS2_RCS11_Prepare_FINAL1.pdf">29 percent</a> of all American workers have less than $1,000 saved for retirement.</p>
<p><strong>#31</strong> Today, <a title="One out of every six" href="http://www.ncoa.org/press-room/press-release/one-in-six-seniors-lives-in.html">one out of every six</a> elderly Americans lives below the federal poverty line.</p>
<p><strong>#32</strong> According to a study that was just released, CEO pay at America’s biggest companies rose by <a title="36.5%" href="http://money.cnn.com/2011/12/15/news/companies/ceo_pay/index.htm?iid=HP_LN">36.5%</a> in just one recent 12 month period.</p>
<p><strong>#33</strong> Today, the “<a title="too big to fail" href="http://theeconomiccollapseblog.com/archives/archives/too-big-to-fail-10-banks-own-77-percent-of-all-u-s-banking-assets">too big to fail</a>” banks are larger than ever.  The total assets of the six largest U.S. banks increased by <a title="39 percent" href="http://www.dailymail.co.uk/news/article-2067359/Revealed-The-secret-1-2-TRILLION-bailout-given-banks.html?ito=feeds-newsxml">39 percent</a> between September 30, 2006 and September 30, 2011.</p>
<p><strong>#34</strong> The six heirs of Wal-Mart founder Sam Walton have a net worth that is roughly equal to the <a title="bottom 30 percent" href="http://www.washingtonpost.com/blogs/blogpost/post/wal-mart-heirs-have-same-net-worth-as-the-bottom-30-percent-of-americans/2011/12/09/gIQAkg6FiO_blog.html">bottom 30 percent</a> of all Americans combined.</p>
<p><strong>#35</strong> According to an analysis of Census Bureau data done by the Pew Research Center, the median net worth for households led by someone 65 years of age or older <a title="is 47 times greater" href="http://www.thestreet.com/story/11301457/1/us-wealth-gap-between-young-and-old-is-widest-ever.html">is 47 times greater</a> than the median net worth for households led by someone under the age of 35.</p>
<p><strong>#36</strong> If you can believe it, <a title="37 percent" href="http://www.thestreet.com/story/11301457/2/us-wealth-gap-between-young-and-old-is-widest-ever.html">37 percent</a> of all U.S. households that are led by someone under the age of 35 have a net worth of zero or less than zero.</p>
<p><strong>#37</strong> A higher percentage of Americans is living in <a title="extreme poverty" href="http://theeconomiccollapseblog.com/archives/archives/extreme-poverty-is-now-at-record-levels-19-statistics-about-the-poor-that-will-absolutely-astound-you">extreme poverty</a>(6.7%) than has ever been measured before.</p>
<p><strong>#38</strong> Child homelessness in the United States is now <a title="33 percent" href="http://www.usatoday.com/news/nation/story/2011-12-12/homeless-children-increase/51851146/1">33 percent</a>higher than it was back in 2007.</p>
<p><strong>#39</strong> Since 2007, the number of children living in poverty in the state of California has increased <a title="by 30 percent" href="http://www.nbcbayarea.com/news/local/Millions-More-California-Children-Slip-into-Poverty-134842133.html">by 30 percent</a>.</p>
<p><strong>#40</strong> Sadly, <a title="child poverty" href="http://theeconomiccollapseblog.com/archives/child-poverty-in-america-is-absolutely-exploding-16-shocking-statistics-that-will-break-your-heart">child poverty</a> is absolutely exploding all over America.  According to the National Center for Children in Poverty, <a title="36.4%" href="http://www.nccp.org/media/releases/release_136.html">36.4%</a> of all children that live in Philadelphia are living in poverty, <a title="40.1%" href="http://www.nccp.org/media/releases/release_136.html">40.1%</a> of all children that live in Atlanta are living in poverty, <a title="52.6%" href="http://www.nccp.org/media/releases/release_136.html">52.6%</a> of all children that live in Cleveland are living in poverty and <a title="53.6%" href="http://www.nccp.org/media/releases/release_136.html">53.6%</a> of all children that live in Detroit are living in poverty.</p>
<p><strong>#41</strong> Today, one out of every seven Americans is on food stamps and<a title="one out of every four" href="http://www.nytimes.com/2009/11/29/us/29foodstamps.html">one out of every four</a> American children is on food stamps.</p>
<p><strong>#42</strong> In 1980, government transfer payments accounted for just <a title="11.7%" href="http://www.businessinsider.com/america-middle-class-in-decline-2011-4#-9">11.7%</a> of all income.  Today, government transfer payments account for <a title="more than 18 percent" href="http://www.businessinsider.com/america-middle-class-in-decline-2011-4#-9">more than 18 percent</a> of all income.</p>
<p><strong>#43</strong> A staggering <a title="48.5%" href="http://blogs.wsj.com/economics/2011/10/05/nearly-half-of-households-receive-some-government-benefit/">48.5%</a> of all Americans live in a household that receives some form of government benefits.  Back in 1983, that number was below 30 percent.</p>
<p><strong>#44</strong> Right now, spending by the federal government accounts for about <a title="24 percent" href="http://www.zerohedge.com/news/news/10-essential-fiscal-charts-demonstrating-americas-disastrous-condition">24 percent</a> of GDP.  Back in 2001, it accounted for just 18 percent.</p>
<p><strong>#45</strong> For fiscal year 2011, the U.S. federal government had a budget deficit of <a title="nearly 1.3 trillion dollars" href="http://www.nasdaq.com/aspx/stock-market-news-story.aspx?storyid=201110141417dowjonesdjonline000481&amp;title=us-runs-1299-trillion-budget-deficit-in-fiscal-2011">nearly 1.3 trillion dollars</a>.  That was the third year in a row that our budget deficit has topped one trillion dollars.</p>
<p><strong>#46</strong> If Bill Gates gave every single penny of his fortune to the U.S. government, it would only cover the U.S. budget deficit <a title="for 15 days" href="http://www.dailymail.co.uk/news/article-1390090/One-giant-debt-mankind-U-S-national-deficit-reach-moon-piled-high-5-bills.html">for about 15 days</a>.</p>
<p><strong>#47</strong> Amazingly, the U.S. government has now accumulated a total debt of <a title="15 trillion dollars" href="http://www.savingsbonds.gov/NP/BPDLogin?application=np">15 trillion dollars</a>.  When Barack Obama first took office the national debt was just 10.6 trillion dollars.</p>
<p><strong>#48</strong> If the federal government began right at this moment to repay the U.S. national debt at a rate of one dollar per second, it would take <a title="over 440,000 years" href="http://theeconomiccollapseblog.com/archives/archives/17-national-debt-statistics-which-prove-that-we-have-sold-our-children-and-grandchildren-into-perpetual-debt-slavery">over 440,000 years</a> to pay off the national debt.</p>
<p><strong>#49</strong> The U.S. national debt has been increasing by an average of <a title="more than 4 billion dollars per day" href="http://www.cnsnews.com/news/article/obama-has-now-increased-debt-more-all-presidents-george-washington-through-george-hw">more than 4 billion dollars per day</a> since the beginning of the Obama administration.</p>
<p><strong>#50</strong> During the Obama administration, the U.S. government has accumulated more debt than it did from the time that George Washington took office <a title="to the time that Bill Clinton took office" href="http://www.cnsnews.com/news/article/obama-has-now-increased-debt-more-all-presidents-george-washington-through-george-hw">to the time that Bill Clinton took office</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kadakia.com/2011/12/50-crazy-economic-facts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fair Share</title>
		<link>http://kadakia.com/2011/09/fair-share/</link>
		<comments>http://kadakia.com/2011/09/fair-share/#comments</comments>
		<pubDate>Sat, 24 Sep 2011 00:00:01 +0000</pubDate>
		<dc:creator>Ashutosh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kadakia.com/2011/09/fair-share/</guid>
		<description><![CDATA[I just saw this article in Bloomberg about Obama wanting to tax corporate jets and private planes an additional $100/per flight. Sure it&#8217;s a small amount but that&#8217;s beside the point. It&#8217;s easy to rag on &#8220;corporate jet&#8221; owners, but one thing stuck out from the article. The main rational for charging the $100/flight is [...]]]></description>
			<content:encoded><![CDATA[<p>I just saw <a href="http://www.bloomberg.com/news/2011-09-19/corporate-jets-face-100-per-flight-fee-in-obama-deficit-plan.html">this article</a> in Bloomberg about Obama wanting to tax corporate jets and private planes an additional $100/per flight. Sure it&#8217;s a small amount but that&#8217;s beside the point. It&#8217;s easy to rag on &#8220;corporate jet&#8221; owners, but one thing stuck out from the article.
</p>
<p>The main rational for charging the $100/flight is that &#8220;General aviation users currently pay a fuel tax, but this revenue does not cover their <em>fair-share</em> use of air traffic services.&#8221; Basically commercial airlines pay $1,300 &#8211; $2,000 in taxes to cover the air-traffic controllers, but private jets only pay $60. Okay fair enough – basically it costs the system the same for a jumbo jet as it does corporate jets, so they should pay the same amount. Rational principle.
</p>
<p>But why isn&#8217;t this principle carried over in taxation? Doesn&#8217;t anyone see the hypocrisy in their argument?
</p>
<p>The top 5% pay 60% of federal taxes. Does providing billionaires government services cost more than the ordinary man? Do billionaires really cost the government more? Do roads for them cost more? Does their national defense cost more? Why should they pay taxes at a higher rate?</p>
]]></content:encoded>
			<wfw:commentRss>http://kadakia.com/2011/09/fair-share/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FML</title>
		<link>http://kadakia.com/2010/11/fml/</link>
		<comments>http://kadakia.com/2010/11/fml/#comments</comments>
		<pubDate>Sat, 06 Nov 2010 04:01:39 +0000</pubDate>
		<dc:creator>Ashutosh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Funny]]></category>
		<category><![CDATA[Netflix]]></category>

		<guid isPermaLink="false">http://kadakia.com/?p=1217</guid>
		<description><![CDATA[My Netflix recommends &#8220;Heartfelt Dramas Featuring a Strong Female Lead.&#8221; FML. I should have learned in elementary school. This is why you don&#8217;t share with girls.]]></description>
			<content:encoded><![CDATA[<p><img src="http://kadakia.com/wordpress/wp-content/uploads/2010/11/dramas-875x281.jpg" alt="" title="dramas" width="875" height="281" class="aligncenter size-medium wp-image-1218" /></p>
<p>My Netflix recommends &#8220;Heartfelt Dramas Featuring a Strong Female Lead.&#8221; FML. I should have learned in elementary school. This is why you don&#8217;t share with girls.</p>
]]></content:encoded>
			<wfw:commentRss>http://kadakia.com/2010/11/fml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Verizon 10 GBps</title>
		<link>http://kadakia.com/2010/11/10gps/</link>
		<comments>http://kadakia.com/2010/11/10gps/#comments</comments>
		<pubDate>Fri, 05 Nov 2010 21:14:22 +0000</pubDate>
		<dc:creator>Ashutosh</dc:creator>
				<category><![CDATA[Asides]]></category>

		<guid isPermaLink="false">http://kadakia.com/?p=1206</guid>
		<description><![CDATA[Verizon test a 10 GBps connection in the field. I want, I want.]]></description>
			<content:encoded><![CDATA[<p>Verizon test a <a href="http://www.youtube.com/watch?v=99sRhMdJqqI">10 GBps connection</a> in the field. I want, I want.</p>
]]></content:encoded>
			<wfw:commentRss>http://kadakia.com/2010/11/10gps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Want to Start a Startup?</title>
		<link>http://kadakia.com/2010/11/want-to-start-a-startu/</link>
		<comments>http://kadakia.com/2010/11/want-to-start-a-startu/#comments</comments>
		<pubDate>Fri, 05 Nov 2010 18:44:16 +0000</pubDate>
		<dc:creator>Ashutosh</dc:creator>
				<category><![CDATA[Asides]]></category>
		<category><![CDATA[Funny]]></category>
		<category><![CDATA[startup]]></category>

		<guid isPermaLink="false">http://kadakia.com/?p=1201</guid>
		<description><![CDATA[Want to start a startup? Too funny. (Embedded after the jump.)]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.youtube.com/watch?v=u6gZ4vk_Tw4">Want to start a startup</a>? Too funny. (Embedded after the jump.) <span id="more-1201"></span></p>
<p><object width="890" height="390"><param name="movie" value="http://www.youtube.com/v/u6gZ4vk_Tw4&#038;hl=en_US&#038;feature=player_embedded&#038;version=3"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.youtube.com/v/u6gZ4vk_Tw4&#038;hl=en_US&#038;feature=player_embedded&#038;version=3" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="890" height="390"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://kadakia.com/2010/11/want-to-start-a-startu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BA II Plus Professional Manual</title>
		<link>http://kadakia.com/2010/11/ba-ii-plus-professional-manual/</link>
		<comments>http://kadakia.com/2010/11/ba-ii-plus-professional-manual/#comments</comments>
		<pubDate>Thu, 04 Nov 2010 08:57:48 +0000</pubDate>
		<dc:creator>Ashutosh</dc:creator>
				<category><![CDATA[Asides]]></category>

		<guid isPermaLink="false">http://kadakia.com/?p=1175</guid>
		<description><![CDATA[BA II Plus Professional Manual: Mostly for my reference, but hopefully it helps some Googler in the future. Embedded manual after the jump. Download here.]]></description>
			<content:encoded><![CDATA[<p>BA II Plus Professional Manual: Mostly for my reference, but hopefully it helps some Googler in the future. Embedded manual after the jump. Download <a href="http://kadakia.com/dl/BAII_Plus_Professional_Guidebook.pdf">here</a>. <span id="more-1175"></span><br />
<center><iframe src="http://docs.google.com/viewer?url=kadakia.com%2Fdl%2Fe%2FBAII_Plus_Professional_Guidebook.pdf&#038;embedded=true" width="890" height="600" style="border: 1px solid ccc;"></iframe></center></p>
]]></content:encoded>
			<wfw:commentRss>http://kadakia.com/2010/11/ba-ii-plus-professional-manual/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Empty Space</title>
		<link>http://kadakia.com/2010/11/empty-space/</link>
		<comments>http://kadakia.com/2010/11/empty-space/#comments</comments>
		<pubDate>Wed, 03 Nov 2010 17:36:50 +0000</pubDate>
		<dc:creator>Ashutosh</dc:creator>
				<category><![CDATA[Asides]]></category>
		<category><![CDATA[Architecture]]></category>
		<category><![CDATA[Building]]></category>

		<guid isPermaLink="false">http://kadakia.com/?p=1155</guid>
		<description><![CDATA[One of the neatest architecture techniques is using the power of empty space.]]></description>
			<content:encoded><![CDATA[<p>One of the neatest architecture techniques is using <a href="http://www.architonic.com/ntsht/the-power-of-the-empty-space/7000009">the power of empty space</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kadakia.com/2010/11/empty-space/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>International Space Station</title>
		<link>http://kadakia.com/2010/11/life-aboard-iss/</link>
		<comments>http://kadakia.com/2010/11/life-aboard-iss/#comments</comments>
		<pubDate>Wed, 03 Nov 2010 17:33:15 +0000</pubDate>
		<dc:creator>Ashutosh</dc:creator>
				<category><![CDATA[Asides]]></category>
		<category><![CDATA[International Space Station]]></category>
		<category><![CDATA[ISS]]></category>

		<guid isPermaLink="false">http://kadakia.com/?p=1152</guid>
		<description><![CDATA[Life aboard the International Space Station via the Gaurdian. Neat read.]]></description>
			<content:encoded><![CDATA[<p>Life aboard the <a href="http://www.guardian.co.uk/science/2010/oct/24/international-space-station-nasa-astronauts/print">International Space Station</a> via the Gaurdian. Neat read.</p>
]]></content:encoded>
			<wfw:commentRss>http://kadakia.com/2010/11/life-aboard-iss/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FaceTime</title>
		<link>http://kadakia.com/2010/11/facetime/</link>
		<comments>http://kadakia.com/2010/11/facetime/#comments</comments>
		<pubDate>Wed, 03 Nov 2010 04:44:43 +0000</pubDate>
		<dc:creator>Ashutosh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Blackberry]]></category>
		<category><![CDATA[FaceTime]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://kadakia.com/2010/11/02/facetime/</guid>
		<description><![CDATA[I&#8217;ve drank the Cool-aid, fallen for the hype, and purchased an iPhone. I&#8217;m keeping it this time for one reason: FaceTime. Most of the shortcomings that made me return the 1G, 3G, and 3GS are still there, but the killer application that I can&#8217;t live without is FaceTime. Skype, Yahoo Chat, MSN Messenger, all have [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve drank the Cool-aid, fallen for the hype, and purchased an iPhone. I&#8217;m keeping it this time for one reason: FaceTime.
</p>
<p>Most of the shortcomings that made me return the 1G, 3G, and 3GS are still there, but the killer application that I can&#8217;t live without is FaceTime. Skype, Yahoo Chat, MSN Messenger, all have been around for years – video chatting isn&#8217;t new, but with FaceTime, Apple does it right. The ability to have a handheld device, press a single button, and be able to share lives across the continent is magical.
</p>
<p>From a technical standpoint it&#8217;s an engineering marvel. I clearly remember the days when simple actions like AIM Direct Connect would require port forwarding behind routers and often failed. Today, I&#8217;m able to video chat, in amazing quality, without a single thought to firewall configuration. If you&#8217;re interested in the nitty gritty of how FaceTime really works, check out <a href="http://www.packetstan.com/2010/07/special-look-face-time-part-1.html">Packet Stan&#8217;s blog</a>, but Apple has managed to use technologies that have existed for years and turned them into something truly magical.
</p>
<p>FaceTime technology coupled with the iPhone 4&#8242;s superb hardware and software allow crystal clear audio, and not quite HD, but excellent video quality. In fact, with the shoddy AT&amp;T coverage I have my house, I was having 5-6 dropped calls every hour; with FaceTime, I have virtually none. The hardware is so good it picks up whispers and conversations in the other rooms. The software so good, that there are zero ambient noises – it actually sounds as if the person is in the same room.
</p>
<p>I was a skeptic when FaceTime first came out, thinking I never video chat on my PC, so why would I care to on my phone? Today I&#8217;m a fan – I love it. There is no replacement for seeing someone in person, but for people who have dear ones far away, FaceTime certainly makes the distance seem less.
</p>
<p>PS: I&#8217;m still an ardent BlackBerry user and can&#8217;t live without my BlackBerry. I still believe the BlackBerry experience is unrivaled for work. When compared to an iPhone, for contacts, emails, tasks, and calendars, I firmly believe the Blackberry is a superior device. However, with my new found love of FaceTime, it has been relegated to my daytime phone, and the iPhone is my evening phone. I can&#8217;t wait to upgrade to iPhone 5.</p>
]]></content:encoded>
			<wfw:commentRss>http://kadakia.com/2010/11/facetime/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Voting</title>
		<link>http://kadakia.com/2010/11/voting/</link>
		<comments>http://kadakia.com/2010/11/voting/#comments</comments>
		<pubDate>Tue, 02 Nov 2010 19:33:50 +0000</pubDate>
		<dc:creator>Ashutosh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Politics]]></category>
		<category><![CDATA[Voting]]></category>

		<guid isPermaLink="false">http://kadakia.com/?p=1098</guid>
		<description><![CDATA[It&#8217;s November 2nd, 2010. Election day. This year America celebrates 234 years of democracy. Democracy is a beautiful thing. Funny (and probably true) election day quote: Democracy substitutes election by the incompetent many for appointment by the corrupt few. &#8211; George Bernard Shaw But more seriously: The death of democracy is not likely to be [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s November 2nd, 2010. Election day. This year America celebrates 234 years of democracy. Democracy is a beautiful thing.</p>
<p>Funny (and probably true) election day quote:</p>
<blockquote><p>Democracy substitutes election by the incompetent many for appointment by the corrupt few. &#8211; George Bernard Shaw</p></blockquote>
<p>But more seriously:</p>
<blockquote><p>The death of democracy is not likely to be an assassination from ambush. It will be a slow extinction from apathy, indifference, and undernourishment. -Robert Hutchins
</p></blockquote>
<p>Please take twenty minutes out of your day and go vote!</p>
<p><a href="http://photo.askthefool.com/cache/images/112435835d4ac1a908cf63e6ca206cec.jpg" rel="lightbox[1098]"><img src="http://photo.askthefool.com/cache/images/d4b2a61fe1ace4d52ff3e2c9794bcc5d.jpg" alt="" /></a> <a href="http://photo.askthefool.com/cache/images/b78d68cb95aee2f6fb31059d1e8d70d1.jpg" rel="lightbox[1098]"><img src="http://photo.askthefool.com/cache/images/644529c40a5d52b028fe93aaf549ead5.jpg" alt="" /></a> <a href="http://photo.askthefool.com/cache/images/a2bbbfdc4ee7f4aef7f05f3af012af9a.jpg" rel="lightbox[1098]"><img src="http://photo.askthefool.com/cache/images/9ddd58c9f49a92b137f48d4433f5cf92.jpg" alt="" /></a> <a href="http://photo.askthefool.com/cache/images/7d59b2ac34415d1fa3cb08a47acca9f7.jpg" rel="lightbox[1098]"><img src="http://photo.askthefool.com/cache/images/132048ce4f253c3bf1481ec564ce7680.jpg" alt="" /></a> <a href="http://photo.askthefool.com/cache/images/bdff295b1841b0d7495e3072226e074f.jpg" rel="lightbox[1098]"><img src="http://photo.askthefool.com/cache/images/9542a1939eb0fc6d2ebf93fae482f974.jpg" alt="" /></a> <a href="http://photo.askthefool.com/cache/images/f2b2bd69cd56b17603574b32e93516bf.jpg" rel="lightbox[1098]"><img src="http://photo.askthefool.com/cache/images/1914d9ded7a807490f59799b0bbc7e73.jpg" alt="" /></a> <a href="http://photo.askthefool.com/cache/images/6adbb14a4387a088929b6e888ba2a2a6.jpg" rel="lightbox[1098]"><img src="http://photo.askthefool.com/cache/images/8cd324d724462e593f27ca6b2a02abe8.jpg" alt="" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://kadakia.com/2010/11/voting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rewrite Dropbox URL</title>
		<link>http://kadakia.com/2010/10/rewrite-dropbox-url/</link>
		<comments>http://kadakia.com/2010/10/rewrite-dropbox-url/#comments</comments>
		<pubDate>Mon, 01 Nov 2010 01:04:04 +0000</pubDate>
		<dc:creator>Ashutosh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Dropbox]]></category>

		<guid isPermaLink="false">http://kadakia.com/?p=1013</guid>
		<description><![CDATA[So my new favorite product is Dropbox. Rarely do I get so enthusiastic about a product, but it&#8217;s simply the easiest way I&#8217;ve found to backup files, share large files over the web, share files between my multiple devices (desktop, laptop, blackberry, and iPhone), all without ever leaving the native OS I&#8217;m working with. No file web [...]]]></description>
			<content:encoded><![CDATA[<p>So my new favorite product is <a href="http://www.dropbox.com/referrals/NTk1MDI1OTQ5">Dropbox</a>. Rarely do I get so enthusiastic about a product, but it&#8217;s simply the easiest way I&#8217;ve found to backup files, share large files over the web, share files between my multiple devices (desktop, laptop, blackberry, and iPhone), all without ever leaving the native OS I&#8217;m working with. No file web upload boxes, no proprietary upload clients, just native folders on my computer, and a little background application working the magic.</p>
<p>That said, <a href="http://www.dropbox.com/referrals/NTk1MDI1OTQ5">Dropbox</a> has a very hand feature called Public Folders. Simply create a folder in your root Dropbox called &#8220;Public&#8221; and any content you put in there will be web-accessible to anyone, anywhere, on any device. This is particularly handy for me, as I often have to work with large files (too large to email), and having to turn up my FTP client, upload files to my webserver, and sharing the links is tedious. Simply drag a file to my Public Folder, Dropbox uploads it, and gives me a public URL similar to <a href="http://dl.dropbox.com/u/9502594/test.txt">http://dl.dropbox.com/u/9502594/test.txt</a>. I can share this file with anyone, anytime, and they can access it anywhere.</p>
<p>However, I prefer giving the semblance my data is on my own servers, for a variety of reasons.</p>
<p>Enter mod_rewrite. I have the following .htaccess file in a folder on my web server called &#8220;dl&#8221; (for download) which allows me to mask my Dropbox URL and provide users with a URL such as <a href="http://kadakia.com/dl/test.txt">http://kadakia.com/dl/test.txt</a>.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #adadad; font-style: italic;"># Check to see if mod_rewrite is installed / avaliable</span>
&lt;<span style="color: #000000; font-weight:bold;">IfModule</span> mod_rewrite.c&gt;
<span style="color: #00007f;">RewriteEngine</span> <span style="color: #0000ff;">on</span>
&nbsp;
<span style="color: #adadad; font-style: italic;"># Check to see if file or directory exists</span>
<span style="color: #00007f;">RewriteCond</span> %{REQUEST_FILENAME} !-f
<span style="color: #00007f;">RewriteCond</span> %{REQUEST_FILENAME} !-d
&nbsp;
<span style="color: #adadad; font-style: italic;"># Rewrite to Dropbox URL. Make sure you change the data after &quot;/u/&quot; (9502594) to your own user ID</span>
<span style="color: #00007f;">RewriteRule</span> ^e/(.*)$ http://dl.dropbox.com/u/<span style="color: #ff0000;">9502594</span>/$1 [L,QSA]    <span style="color: #adadad; font-style: italic;"># Embedded File</span>
<span style="color: #00007f;">RewriteRule</span> ^(.*)$ http://dl.dropbox.com/u/<span style="color: #ff0000;">9502594</span>/$1?dl=<span style="color: #ff0000;">1</span> [L,QSA] <span style="color: #adadad; font-style: italic;"># Force Download (Default)</span>
&lt;/<span style="color: #000000; font-weight:bold;">IfModule</span>&gt;</pre></td></tr></table></div>

<p>Some points:</p>
<ul>
<li>Be sure to change the &#8220;9502594&#8243; with your own user ID.</li>
<li>You don&#8217;t necessarily need line 6/7, but they are useful in case you want to host some content on your own servers rather than from your Dropbox. It tells Apache to check to see if the file exists, otherwise, rewrite to Dropbox.</li>
<li>If you send a bad link, (a file that doesn&#8217;t exist on your server or Dropbox), the default 404 page will be Dropbox. This doesn&#8217;t bother me, but it may bother you.</li>
<li>There is no file transfer load on your server, as you are doing an redirect. Your server isn&#8217;t downloading the data, and then transferring to user. The user will be downloading directly from Dropbox, saving you bandwidth.</li>
<li>Many files may be executable by your user&#8217;s web-browser (.mp3, .htm, .html, .txt). However, most of the time, you are trying to share a file and would like people to download the file to their computers. Dropbox has a function that allows you to force download of the content, by appending <code>?dl=1</code> to your URL. On the flip side, sometimes you may be trying to make the content embeddable such a signature or an embedded picture. You can change the URL and add an <code>e</code> before the file name to allow the content to be embedded (if the user&#8217;s browser supports it).
</li>
<li>For me, download as default was more useful, but you can just as easily reverse it. Make the catch all without the <code>?dl=1</code>, and change the <code>^e/</code> to something like <code>^f/</code> (for force download).</li>
</ul>
<p>Embedded: <a href="http://kadakia.com/dl/e/test.txt">http://kadakia.com/dl/e/test.txt</a><br />
Download: <a href="http://kadakia.com/dl/test.txt?dl=1">http://kadakia.com/dl/test.txt</a></p>
<p>That&#8217;s all folks.</p>
]]></content:encoded>
			<wfw:commentRss>http://kadakia.com/2010/10/rewrite-dropbox-url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Investment Needed</title>
		<link>http://kadakia.com/2010/10/investment-needed/</link>
		<comments>http://kadakia.com/2010/10/investment-needed/#comments</comments>
		<pubDate>Sat, 30 Oct 2010 07:35:38 +0000</pubDate>
		<dc:creator>Ashutosh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kadakia.com/?p=1006</guid>
		<description><![CDATA[It&#8217;s scary how little we are investing into our infrastructure. Infrastructure is the foundation for tomorrow&#8217;s commerce. Instead of nearly all tax revenue being spent on transfer payments, it&#8217;s time to make a shift and rebuilding American infrastructure.]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="size-full wp-image-1009  aligncenter" title="1045_14econinfrustructure-875x676" src="http://kadakia.com/wordpress/wp-content/uploads/2010/10/1045_14econinfrustructure-875x6761.jpg" alt="" width="790" height="534" /></p>
<p>It&#8217;s scary how little we are investing into our infrastructure. Infrastructure is the foundation for tomorrow&#8217;s commerce. Instead of nearly all tax revenue being spent on transfer payments, it&#8217;s time to make a shift and rebuilding American infrastructure.</p>
]]></content:encoded>
			<wfw:commentRss>http://kadakia.com/2010/10/investment-needed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dropbox</title>
		<link>http://kadakia.com/2010/10/dropbox/</link>
		<comments>http://kadakia.com/2010/10/dropbox/#comments</comments>
		<pubDate>Thu, 28 Oct 2010 14:09:06 +0000</pubDate>
		<dc:creator>Ashutosh</dc:creator>
				<category><![CDATA[Asides]]></category>
		<category><![CDATA[Dropbox]]></category>

		<guid isPermaLink="false">http://kadakia.com/?p=1000</guid>
		<description><![CDATA[I rarely feel a product is good enough to endorse, but Dropbox is just that good. If you&#8217;ve never heard of it, I suggest you go over and check it out. If you have multiple computers, or just need a simple way to backup data, I highly recommend it. Full functional free accounts are 2GB. [...]]]></description>
			<content:encoded><![CDATA[<p>I rarely feel a product is good enough to endorse, but <a href="http://www.dropbox.com/referrals/NTk1MDI1OTQ5">Dropbox</a> is just that good. If you&#8217;ve never heard of it, I suggest you go over and check it out. If you have multiple computers, or just need a simple way to backup data, I highly recommend it. Full functional free accounts are 2GB. On a side note, I predict Dropbox will be acquired by a larger web services company by the end of 2011.</p>
]]></content:encoded>
			<wfw:commentRss>http://kadakia.com/2010/10/dropbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Please Pass the Salt</title>
		<link>http://kadakia.com/2010/10/please-pass-the-salt/</link>
		<comments>http://kadakia.com/2010/10/please-pass-the-salt/#comments</comments>
		<pubDate>Tue, 19 Oct 2010 05:06:11 +0000</pubDate>
		<dc:creator>Ashutosh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[Crypt]]></category>
		<category><![CDATA[MD5]]></category>
		<category><![CDATA[Password]]></category>
		<category><![CDATA[Passwords]]></category>
		<category><![CDATA[Technology/Internet]]></category>

		<guid isPermaLink="false">http://kadakia.com/?p=973</guid>
		<description><![CDATA[I&#8217;ve historically used MD5 for encrypting passwords in web applications. While MD5 is great in most instances, I&#8217;ve become aware how vulnerable it is to a brute force attack. In past projects, user/password combos were simply used for validating simple harmless data or posting comments &#8211; hardly worth a hackers time. However, I&#8217;ve recently been [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve historically used <a href="http://en.wikipedia.org/wiki/MD5">MD5</a> for encrypting passwords in web applications. While MD5 is great in most instances, I&#8217;ve become aware how vulnerable it is to a brute force attack. In past projects, user/password combos were simply used for validating simple harmless data or posting comments &#8211; hardly worth a hackers time. However, I&#8217;ve recently been working on a project that will entail storing users credit card numbers, among other personal details, so security is of utmost importance.</p>
<p>MD5 or simple hashing will make a hackers job more difficult, and is certainly better than storing passwords as plain text in a database. However, simply using a hash alone isn&#8217;t enough. An attacker can generate hashes for numerous potential passwords (either randomly or from a dictionary). The hashes generated are then compared with those in your user database and any matches will reveal the password. Powerful computers make this all the easier as they are able to generate hashes at thousands per second, and MD5 hash databases are already available for nearly every word.</p>
<p>How to make it harder for hackers? Salt.</p>
<p>Before generating a hash we create a random string of characters of a predetermined length, called salt, and prepend this string to our plain text password. If the string is long enough and randomly generated &#8211; the resulting hash will almost certainly be different each time we generate a password, requiring a hacker to rebuild his entire database of MD5 hashes for every random possible variation. Two users with the same password, will have different hashes, because their passwords are rehashed with a unique random code. When we try and validate a user&#8217;s login credentials we follow the same process, only this time we use the salt from our database instead of generating a new random one. We use the user supplied password, run our hashing algorithm, then compare the result with the hash stored in the database.</p>
<p>Here is my simple code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Hash function</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'SALT_LENGTH'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">function</span> generateHash<span style="color: #009900;">&#40;</span><span style="color: #000088;">$plainText</span><span style="color: #339933;">,</span> <span style="color: #000088;">$salt</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
   <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$salt</span> <span style="color: #339933;">===</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
      <span style="color: #000088;">$salt</span> <span style="color: #339933;">=</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">md5</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">uniqid</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">rand</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> SALT_LENGTH<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
   <span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span>
      <span style="color: #000088;">$salt</span> <span style="color: #339933;">=</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$salt</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> SALT_LENGTH<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
   <span style="color: #b1b100;">return</span> <span style="color: #000088;">$salt</span> <span style="color: #339933;">.</span> <span style="color: #990000;">sha1</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$salt</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$plainText</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Sign Up</span>
<span style="color: #000088;">$newUser</span><span style="color: #009900;">&#91;</span>user_password<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> generateHash<span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span>user_password<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$newUser</span><span style="color: #009900;">&#91;</span>user_email<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span>user_email<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$db</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>insert<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;users&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$db</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>escape<span style="color: #009900;">&#40;</span><span style="color: #000088;">$newUser</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Login Check</span>
<span style="color: #000088;">$storedPass</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$db</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>get_var<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SELECT user_password FROM users WHERE user_email = '<span style="color: #006699; font-weight: bold;">$_POST[user_email]</span>'&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$passwordHash</span> <span style="color: #339933;">=</span> generateHash<span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span>user_password<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #000088;">$storedPass</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$db</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>get_row<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SELECT * FROM users WHERE user_email = '<span style="color: #006699; font-weight: bold;">$_POST[user_email]</span>'
                                       AND user_password = '<span style="color: #006699; font-weight: bold;">$passwordHash</span>'&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
   <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;User is authenticated&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span>
   <span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Bad username/password&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Calling generateHash() with a single argument (the plain text password) will cause a random string to be generated and used for the salt. The resulting string consists of the salt followed by the hashed password which is hashed with your salt appended. We store that in a database. When you&#8217;re checking a user&#8217;s login, the situation is different in that you already know the salt you&#8217;d like to use. The string stored in your database can be passed to generateHash() as the second argument when generating the hash of a user-supplied password for comparison.</p>
<p>While nothing is perfect, and virtually every password is vulnerable at some point to brute force (it&#8217;s just a function of time and computing power) this simple few lines of code will add n^SALT_LENGTH more variations to your user&#8217;s passwords making your application that much more secure.</p>
]]></content:encoded>
			<wfw:commentRss>http://kadakia.com/2010/10/please-pass-the-salt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook</title>
		<link>http://kadakia.com/2010/10/facebook/</link>
		<comments>http://kadakia.com/2010/10/facebook/#comments</comments>
		<pubDate>Mon, 04 Oct 2010 01:10:40 +0000</pubDate>
		<dc:creator>Ashutosh</dc:creator>
				<category><![CDATA[Asides]]></category>

		<guid isPermaLink="false">http://kadakia.com/?p=971</guid>
		<description><![CDATA[I predict by 2020 Facebook will be the world&#8217;s most important technology company &#8212; by revenue, market cap, and profitability. Larger than Google, Microsoft, and Apple.]]></description>
			<content:encoded><![CDATA[<p>I predict by 2020 Facebook will be the world&#8217;s most important technology company &#8212; by revenue, market cap, and profitability. Larger than Google, Microsoft, and Apple.</p>
]]></content:encoded>
			<wfw:commentRss>http://kadakia.com/2010/10/facebook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cost of Debt</title>
		<link>http://kadakia.com/2010/09/cost-of-debt/</link>
		<comments>http://kadakia.com/2010/09/cost-of-debt/#comments</comments>
		<pubDate>Fri, 10 Sep 2010 03:55:43 +0000</pubDate>
		<dc:creator>Ashutosh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://kadakia.com/?p=964</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><img src="http://kadakia.com/wordpress/wp-content/uploads/2010/09/nps34B11-875x679.jpg" alt="" title="nps34B1" width="875" height="679" class="aligncenter size-medium wp-image-967" /></p>
]]></content:encoded>
			<wfw:commentRss>http://kadakia.com/2010/09/cost-of-debt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hipmunk</title>
		<link>http://kadakia.com/2010/08/hipmunk/</link>
		<comments>http://kadakia.com/2010/08/hipmunk/#comments</comments>
		<pubDate>Fri, 20 Aug 2010 15:58:39 +0000</pubDate>
		<dc:creator>Ashutosh</dc:creator>
				<category><![CDATA[Asides]]></category>

		<guid isPermaLink="false">http://kadakia.com/?p=960</guid>
		<description><![CDATA[Hipmunk is a nice way to search for flights. I&#8217;ve been an long time user of Kayak, but this is pretty cool.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.hipmunk.com/">Hipmunk</a> is a nice way to search for flights. I&#8217;ve been an long time user of Kayak, but this is pretty cool.</p>
]]></content:encoded>
			<wfw:commentRss>http://kadakia.com/2010/08/hipmunk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Facebook Economy</title>
		<link>http://kadakia.com/2010/08/the-facebook-economy/</link>
		<comments>http://kadakia.com/2010/08/the-facebook-economy/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 19:13:21 +0000</pubDate>
		<dc:creator>Ashutosh</dc:creator>
				<category><![CDATA[Asides]]></category>

		<guid isPermaLink="false">http://kadakia.com/?p=957</guid>
		<description><![CDATA[What the world would look like if Facebook was a country? The Facebook Economy.]]></description>
			<content:encoded><![CDATA[<p>What the world would look like if Facebook was a country? The <a href="http://www.visualeconomics.com/wp-content/uploads/2010/06/facebook-economy.jpg" rel="lightbox[957]">Facebook Economy</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kadakia.com/2010/08/the-facebook-economy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The 500 Euro Note</title>
		<link>http://kadakia.com/2010/07/the-500-euro-note/</link>
		<comments>http://kadakia.com/2010/07/the-500-euro-note/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 16:37:01 +0000</pubDate>
		<dc:creator>Ashutosh</dc:creator>
				<category><![CDATA[Asides]]></category>

		<guid isPermaLink="false">http://kadakia.com/?p=954</guid>
		<description><![CDATA[The €500 note has become the drug dealer note of choice due to the large denomination. Through seigniorage the ECB is able to further stabilize the financial system in Europe due to the large profits from it&#8217;s printing presses. A fascinating, but slightly funny article from the WSJ. On a similar note, $1 million in [...]]]></description>
			<content:encoded><![CDATA[<p>The €500 note has become the drug dealer note of choice due to the large denomination. Through seigniorage the ECB is able to further stabilize the financial system in Europe due to the large profits from it&#8217;s printing presses. A fascinating, but slightly funny article from <a href="http://online.wsj.com/article/SB10001424052748704532204575397543634034112.html?mod=WSJ_hps_MIDDLETopStories">the WSJ</a>. On a similar note, $1 million in $100 bills weighs 22 pounds; in hypothetical $500 bills, it would weigh just 4.4 pounds.</p>
]]></content:encoded>
			<wfw:commentRss>http://kadakia.com/2010/07/the-500-euro-note/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft Dividends</title>
		<link>http://kadakia.com/2010/07/microsoft-dividends/</link>
		<comments>http://kadakia.com/2010/07/microsoft-dividends/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 05:13:32 +0000</pubDate>
		<dc:creator>Ashutosh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://kadakia.com/2010/07/27/microsoft-dividends/</guid>
		<description><![CDATA[I was reading an article in the WSJ about Steve Balmer and Microsoft, and realized something interesting. Microsoft has given considerable cash back to share holdings – in excess of $100bn when dividends and share buy-backs are added together. This is no small amount of money; had that cash stayed on Microsoft&#8217;s balance sheet, Apple [...]]]></description>
			<content:encoded><![CDATA[<p>I was reading an article in the WSJ about Steve Balmer and Microsoft, and realized something interesting. Microsoft has given considerable cash back to share holdings – in excess of $100bn when dividends and share buy-backs are added together. This is no small amount of money; had that cash stayed on Microsoft&#8217;s balance sheet, Apple would still have a long way to overtake Microsoft&#8217;s current market cap.</p>
]]></content:encoded>
			<wfw:commentRss>http://kadakia.com/2010/07/microsoft-dividends/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

