<?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/checking</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 19 Jun 2013 22:33:06 GMT</pubDate>
<item>
<title>(VB.NET) Global System Object extensions for easier conditionals (VB.net example) - bryanlyman</title>
<link>http://snipplr.com/view/59759/global-system-object-extensions-for-easier-conditionals-vbnet-example/</link>
<description><![CDATA[ <p>Because there is no way to use object extenders in vb.net here is an example of how you can get similar functionality. See the C# example for further info.</p> ]]></description>
<pubDate>Fri, 14 Oct 2011 16:45:34 GMT</pubDate>
<guid>http://snipplr.com/view/59759/global-system-object-extensions-for-easier-conditionals-vbnet-example/</guid>
</item>
<item>
<title>(C++) Reliably Checking Windows Bitness (32-bit or 64-bit) With C++ - shadevampire</title>
<link>http://snipplr.com/view/57165/reliably-checking-windows-bitness-32bit-or-64bit-with-c/</link>
<description><![CDATA[ <p>See on the source (url)</p> ]]></description>
<pubDate>Wed, 27 Jul 2011 01:55:47 GMT</pubDate>
<guid>http://snipplr.com/view/57165/reliably-checking-windows-bitness-32bit-or-64bit-with-c/</guid>
</item>
<item>
<title>(JavaScript) Dead Simple Javascript Error Checking - ryarwood</title>
<link>http://snipplr.com/view/56952/dead-simple-javascript-error-checking/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 21 Jul 2011 07:05:23 GMT</pubDate>
<guid>http://snipplr.com/view/56952/dead-simple-javascript-error-checking/</guid>
</item>
<item>
<title>(C#) System Object extensions for easier conditionals (Extending Base Object Types) - bryanlyman</title>
<link>http://snipplr.com/view/53894/system-object-extensions-for-easier-conditionals-extending-base-object-types/</link>
<description><![CDATA[ <p>.net 3.0+, To create stability in your code, you must check all inputs into a method to make sure they are valid . Often people overlook this step because of laziness, or because they aren't convinced that exceptions and assertions are actually in place to help you instead of cause you a headache. Here are some extensions which can be used to enhance the System.Object class so that their methods are global to all classes; this makes input checking effortless. This is also somewhat generic in nature because the extensions take no class type in to account before they are called, but we can use type checking to perform different boxing (casting) operations.  Sadly this cannot be done in VB.net because late binding restrictions do not allow the Object class to be extended (See my VB.Net example for further information).</p> ]]></description>
<pubDate>Sat, 21 May 2011 02:48:17 GMT</pubDate>
<guid>http://snipplr.com/view/53894/system-object-extensions-for-easier-conditionals-extending-base-object-types/</guid>
</item>
<item>
<title>(C) checking command line arguments - tandouri</title>
<link>http://snipplr.com/view/18635/checking-command-line-arguments/</link>
<description><![CDATA[ <p>for checking the cmdargs</p> ]]></description>
<pubDate>Fri, 21 Aug 2009 04:33:53 GMT</pubDate>
<guid>http://snipplr.com/view/18635/checking-command-line-arguments/</guid>
</item>
<item>
<title>(PHP) How To Calculate Interest Earned In A Bank Account - shaunchapman</title>
<link>http://snipplr.com/view/13919/how-to-calculate-interest-earned-in-a-bank-account/</link>
<description><![CDATA[ <p>The interest rate banks pay is usually a yearly percentage.  So, if your bank tells you that you're getting *4%* interest and you start with *$20,000* in your account, you would earn an extra *$800* at the end of the year (*$20,000 x 0.04 = $800*).

However, it's not that simple.  The interest you earn is usually compounded daily and paid monthly.  This means the interest you earn on one day will be added to your original balance, which in turn earns interest the next day.

To calculate this, we take the *$800* from above and divide it by *365* to figure out how much interest you would earn the first day (*$800 / 365 = $2.19*).  So, you would earn *$2.19* in interest on the first day.  This *$2.19* is then added to your original balance (*$20,000 + $2.19 = $20,002.19*).  Remember when I said the bank pays you monthly?  This means that this new balance of *$20,002.19* is used in the calculation for tomorrow's interest however you won't actually get the money in your account until the end of the month.  All this means is the bank doesn't have to  put a couple dollars into your account every single day.  You're still getting the same amount of money.

To calculate the interest earned the next day, you would do the same calculation but with the new balance (*$20,0002.19 x 0.04 / 365*).  Can you see how your interest earned will increase each day?  That's the beauty of compound interest.

In this case, the interest you would earn in 1 year is not *$800* like in our original calculation.  The amount of interest you would actually earn is *$816.17*.</p> ]]></description>
<pubDate>Thu, 09 Apr 2009 19:01:17 GMT</pubDate>
<guid>http://snipplr.com/view/13919/how-to-calculate-interest-earned-in-a-bank-account/</guid>
</item>
<item>
<title>(PHP) How to check if a number is odd or even - andyhartleeds</title>
<link>http://snipplr.com/view/3868/how-to-check-if-a-number-is-odd-or-even/</link>
<description><![CDATA[ <p>How to check if a number is odd or even in PHP. Could also use the MOD (%) function, but apparently this method is better performance-wise.</p> ]]></description>
<pubDate>Tue, 09 Oct 2007 09:31:40 GMT</pubDate>
<guid>http://snipplr.com/view/3868/how-to-check-if-a-number-is-odd-or-even/</guid>
</item>
</channel>
</rss>