<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/2008</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Tue, 18 Jun 2013 15:25:50 GMT</pubDate>
<item>
<title>(SQL) Shrink all development databases - scholli</title>
<link>http://snipplr.com/view/48774/shrink-all-development-databases/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 10 Feb 2011 20:53:09 GMT</pubDate>
<guid>http://snipplr.com/view/48774/shrink-all-development-databases/</guid>
</item>
<item>
<title>(Windows Registry) Enable Passive FTP Server 2008 - kidmizere</title>
<link>http://snipplr.com/view/45446/enable-passive-ftp-server-2008/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 08 Dec 2010 12:44:30 GMT</pubDate>
<guid>http://snipplr.com/view/45446/enable-passive-ftp-server-2008/</guid>
</item>
<item>
<title>(SQL) Cached SPs By Total Physical Reads (SQL 2008 only) - tvanzele</title>
<link>http://snipplr.com/view/31363/cached-sps-by-total-physical-reads-sql-2008-only/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 12 Apr 2010 03:50:53 GMT</pubDate>
<guid>http://snipplr.com/view/31363/cached-sps-by-total-physical-reads-sql-2008-only/</guid>
</item>
<item>
<title>(Visual Basic) Tutorial 1 - Advanced Login System Tutorial Codes - Brendan_Chis</title>
<link>http://snipplr.com/view/30500/tutorial-1--advanced-login-system-tutorial-codes/</link>
<description><![CDATA[ <p>These are the codes I used in my tutorial (http://www.youtube.com/watch?v=qaOSHJo52XM)</p> ]]></description>
<pubDate>Tue, 30 Mar 2010 02:54:38 GMT</pubDate>
<guid>http://snipplr.com/view/30500/tutorial-1--advanced-login-system-tutorial-codes/</guid>
</item>
<item>
<title>(Other) Crystal Reports Parameter Date Display - brent-man</title>
<link>http://snipplr.com/view/19226/crystal-reports-parameter-date-display/</link>
<description><![CDATA[ <p>Displays the From and To dates from a parameter (in this case {?Date}) in a formula.</p> ]]></description>
<pubDate>Thu, 03 Sep 2009 09:52:41 GMT</pubDate>
<guid>http://snipplr.com/view/19226/crystal-reports-parameter-date-display/</guid>
</item>
<item>
<title>(Other) Suppress certain page header - Crystal Reports - brent-man</title>
<link>http://snipplr.com/view/16999/suppress-certain-page-header--crystal-reports/</link>
<description><![CDATA[ <p>Where 2 = page to suppress header</p> ]]></description>
<pubDate>Tue, 14 Jul 2009 11:48:24 GMT</pubDate>
<guid>http://snipplr.com/view/16999/suppress-certain-page-header--crystal-reports/</guid>
</item>
<item>
<title>(Other) Get Previous Month Name - Crystal Reports XI - brent-man</title>
<link>http://snipplr.com/view/15475/get-previous-month-name--crystal-reports-xi/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 03 Jun 2009 09:27:06 GMT</pubDate>
<guid>http://snipplr.com/view/15475/get-previous-month-name--crystal-reports-xi/</guid>
</item>
<item>
<title>(JavaScript) Conditionally assign a value to a variable - noah</title>
<link>http://snipplr.com/view/6850/conditionally-assign-a-value-to-a-variable/</link>
<description><![CDATA[ <p>To assign a value to a variable only if some expression evaluates to true, I would usually do this:

    var foo;
      if (condition){
        foo = "success";
    }


This is Douglas Crockford's idiom and it shortens the above from 4 lines to 1.

I have understood for a while that (expr1 &amp;&amp; expr2) evaluates to truth only if both conditions are true.  What I did not get before Crockford pointed it out in his book, was that &amp;&amp; doesn't simply return a boolean value -- it returns the result of the last expression that was evaluated.

So if both expressions evaluate to false, the result of first expression will be returned.  If only one expression evaluates true, the result of the false expression will be returned.  And if both expressions evaluate to truth, the result of the second expression is returned.</p> ]]></description>
<pubDate>Mon, 23 Jun 2008 08:44:59 GMT</pubDate>
<guid>http://snipplr.com/view/6850/conditionally-assign-a-value-to-a-variable/</guid>
</item>
</channel>
</rss>