<?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>Krio Media</title>
	<atom:link href="http://www.krio.me/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.krio.me</link>
	<description></description>
	<lastBuildDate>Wed, 01 Jun 2011 16:24:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Sort &amp; Remove Duplicates in JavaScript Arrays</title>
		<link>http://www.krio.me/sorting-and-removing-duplicates-in-javascript-arrays/</link>
		<comments>http://www.krio.me/sorting-and-removing-duplicates-in-javascript-arrays/#comments</comments>
		<pubDate>Mon, 28 Feb 2011 06:21:22 +0000</pubDate>
		<dc:creator>Kevin Rio</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.krio.me/?p=1312</guid>
		<description><![CDATA[JavaScript arrays can be somewhat intimidating. They tend to not have all the available functions/methods that other languages like PHP and Ruby have for manipulating arrays.  Making a JS array unique isn&#8217;t a simple one-liner. This short article is for developers trying to make a JavaScript array unique without leaving holes in your array. Sorting [...]]]></description>
			<content:encoded><![CDATA[<p>JavaScript arrays can be somewhat intimidating. They tend to not have all the available functions/methods that other languages like PHP and Ruby have for manipulating arrays. <span id="more-1312"></span></p>
<p>Making a JS array unique isn&#8217;t a simple one-liner. This short article is for developers trying to make a JavaScript array unique without leaving holes in your array. Sorting an array in JavaScript is simple in most cases. Just call the sort() method on the array like so.</p>
<pre class="brush: php; title: ;">
var my_array = [5, 2, 4, 6, 9];
my_array.sort();
</pre>
<p>One caveat to be aware of with this method of sorting is that it performs a non-lexicographical sort, which might be confusing for human users if you display it on screen. Depending on your requirements, you might want to change your sorting algorithm. Check out Brian Huisman&#8217;s <a title="Lexicographical sorting in javascript" href="http://my.opera.com/GreyWyvern/blog/show.dml/1671288" target="_blank">article on the subject</a>. </p>
<p>After sorting the array, the following snippet will remove any duplicate entries</p>
<pre class="brush: php; title: ;">
for ( var i = 1; i &lt; my_array.length; i++ ) {
    if ( my_array[i] === my_array[ i - 1 ] ) {
        my_array.splice( i--, 1 );
    }
}
</pre>
<p>This will iterate over each element in the array, attempting to find elements where the value is equal to the previous value. If they are equal, we have found a duplicate so we remove it using splice.</p>
<p>A complete function for sorting and making an array unique in JavaScript would look like the following</p>
<pre class="brush: php; title: ;">
function sort_and_unique( my_array ) {
	my_array.sort();
	for ( var i = 1; i &lt; my_array.length; i++ ) {
		if ( my_array[i] === my_array[ i - 1 ] ) {
					my_array.splice( i--, 1 );
		}
	}
	return my_array;
};
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.krio.me/sorting-and-removing-duplicates-in-javascript-arrays/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Image Loader Plugin</title>
		<link>http://www.krio.me/jquery-image-loader-plugin/</link>
		<comments>http://www.krio.me/jquery-image-loader-plugin/#comments</comments>
		<pubDate>Mon, 13 Dec 2010 04:20:23 +0000</pubDate>
		<dc:creator>Kevin Rio</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.krio.me/?p=1297</guid>
		<description><![CDATA[This is a JavaScript file released as a jQuery plugin that loads images in a visually appealing way. Instead of the typical block loading that HTML employs while loading images, this plugin waits until the entire image is downloaded then fades it in. This plugin simplifies the process of loading images. It is easily applied [...]]]></description>
			<content:encoded><![CDATA[<p>This is a JavaScript file released as a jQuery plugin that loads images in a visually appealing way. Instead of the typical block loading that HTML employs while loading images, this plugin waits until the entire image is downloaded then fades it in. <span id="more-1297"></span>This plugin simplifies the process of loading images. It is easily applied to wrappers so that it will load all of the images within it. Its main purpose is to assist web developers and designers in improving their user interfaces.</p>
<h3>Image Loading Instructions</h3>
<ul>
<li>Include jQuery</li>
<li>Include jquery.krioImageLoader.js</li>
<li>Instantiate the plugin on the wrapper</li>
<li>$(&#8220;#test&#8221;).krioImageLoader();</li>
<li>Watch it load</li>
</ul>
<p><a href="http://krio.me/scripttest/imgLoader/" target="_blank">View the Demo</a><br />
<a href="http://github.com/krio/jquery-image-loader-plugin" target="_blank">Download or fork on GitHub</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.krio.me/jquery-image-loader-plugin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PayPal Direct Recurring Payments Script</title>
		<link>http://www.krio.me/paypal-recurring-payments-php-script-free/</link>
		<comments>http://www.krio.me/paypal-recurring-payments-php-script-free/#comments</comments>
		<pubDate>Fri, 08 Oct 2010 23:58:12 +0000</pubDate>
		<dc:creator>Kevin Rio</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Scripts]]></category>

		<guid isPermaLink="false">http://www.krio.me/?p=1270</guid>
		<description><![CDATA[This is an open source script for accepting direct recurring credit card payments on your website. Users select a length of subscription for your products and will be billed monthly for that amount. Credit cards are entered on your website, but billed through PayPal. View the demo here. The PayPal script will accept the users [...]]]></description>
			<content:encoded><![CDATA[<p>This is an open source script for accepting direct recurring credit card payments on your website. Users select a length of subscription for your products and will be billed monthly for that amount. Credit cards are entered on your website, but billed through PayPal. <span id="more-1270"></span>View the demo <a title="Direct Recurring PayPal Payments &amp; Subscriptions" href="http://krio.me/scripttest/subs" target="_blank">here</a>.</p>
<p>The PayPal script will accept the users credentials on your website and send a request to PayPal to verify and bill the users information. From the script you can enter the amount to be billed, the timeframe, and any setup fees for the services.</p>
<p>Downloads, specific instructions and requirements for the script can be found on its GitHub page <a title="Direct Recurring Payments" href="http://github.com/krio/paypal-recurring-subscriptions" target="_blank">here</a>.</p>
<p>For testing purposes you should setup a PayPal <a href="https://developer.paypal.com/" target="_blank">sandbox</a> account. This will allow you to test your scripts. PayPal will verify the cards, however it will not attempt to charge them. PayPal will also provide dummy feedback into your PayPal user account page.</p>
<h3>Download the script on <a href="http://github.com/krio/paypal-recurring-subscriptions" target="_blank">GitHub</a>.</h3>
]]></content:encoded>
			<wfw:commentRss>http://www.krio.me/paypal-recurring-payments-php-script-free/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Encrypting / Decrypting Data and Strings in Ruby</title>
		<link>http://www.krio.me/encrypting-decrypting-data-strings-in-ruby/</link>
		<comments>http://www.krio.me/encrypting-decrypting-data-strings-in-ruby/#comments</comments>
		<pubDate>Thu, 09 Sep 2010 06:11:31 +0000</pubDate>
		<dc:creator>Kevin Rio</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Encryption]]></category>
		<category><![CDATA[internet security]]></category>

		<guid isPermaLink="false">http://www.krio.me/?p=1250</guid>
		<description><![CDATA[Encrypting data is often a necessity in any software application, especially those dealing with sensitive data. Continue reading to learn how to easily encrypt sensitive data.  The Crypt library provides classes and methods that help software/web developers to easily and securely encrypt data. The steps involved in encrypting data are detailed below. Choose which library you want [...]]]></description>
			<content:encoded><![CDATA[<p>Encrypting data is often a necessity in any software application, especially those dealing with sensitive data. Continue reading to learn how to easily encrypt sensitive data. <span id="more-1250"></span></p>
<p>The <a href="http://crypt.rubyforge.org/" target="_blank">Crypt</a> library provides classes and methods that help software/web developers to easily and securely encrypt data. The steps involved in encrypting data are detailed below.</p>
<ol>
<li>Choose which library you want to use. The Rijndael is currently considered to be the most secure.</li>
<li>Create a new key that is used to decrypt the data later.</li>
<li>Encrypt the string/data.</li>
<li>Transfer the encrypting data.</li>
<li>Decrypt using the original key.</li>
</ol>
<div style="width: 625px; margin-top: 10px;"><script src="http://gist.github.com/571459.js"></script></div>
]]></content:encoded>
			<wfw:commentRss>http://www.krio.me/encrypting-decrypting-data-strings-in-ruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sending a POST Request / Scrape Page in Ruby</title>
		<link>http://www.krio.me/how-to-send-post-request-return-contents-ruby/</link>
		<comments>http://www.krio.me/how-to-send-post-request-return-contents-ruby/#comments</comments>
		<pubDate>Thu, 09 Sep 2010 05:46:28 +0000</pubDate>
		<dc:creator>Kevin Rio</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Web Scraping]]></category>

		<guid isPermaLink="false">http://www.krio.me/?p=1233</guid>
		<description><![CDATA[Making a POST request in Ruby is simple. You can very easily load the data returned from the web service to parse or do whatever is necessary with it. This tutorial is the cornerstone for users who might be interested in developing their own web scraper in Ruby.  First, make sure to require the appropriate [...]]]></description>
			<content:encoded><![CDATA[<p>Making a POST request in Ruby is simple. You can very easily load the data returned from the web service to parse or do whatever is necessary with it. This tutorial is the cornerstone for users who might be interested in developing their own web scraper in Ruby. <span id="more-1233"></span></p>
<p>First, make sure to require the appropriate Ruby libraries net/http and uri. Next we will utilize the post_form method from HTTP, using the websites URL and a hash comprised of the POST key/value that you want to send in. You can use multiple values in the hash if necessary.</p>
<p>Running the parse method from URI will automatically format the URL you pass to the post_form method for easy manipulation.</p>
<div style="width: 625px;"><script src="http://gist.github.com/571070.js"></script></div>
<p>The value returned and placed into the postData variable is a string representation of the source returned after your post request. This is a simple solution to a question that web developers often have.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.krio.me/how-to-send-post-request-return-contents-ruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to use Tor to make a C# HttpWebRequest</title>
		<link>http://www.krio.me/use-tor-to-make-a-c-sharp-httpwebrequest/</link>
		<comments>http://www.krio.me/use-tor-to-make-a-c-sharp-httpwebrequest/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 06:19:18 +0000</pubDate>
		<dc:creator>Kevin Rio</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.krio.me/?p=1226</guid>
		<description><![CDATA[Want to use Tor so that you can make annoymous and secure web requests while coding in C#? Use this easy technique. Typically when making an HttpWebRequest with C# you would write something to this effect: HttpWebRequest request = (HttpWebRequest)WebRequest.Create(&#34;http://URL.org&#34;); HttpWebResponse response = (HttpWebResponse)request.GetResponse(); This will work fine, however your connection will not be anonymous. Using [...]]]></description>
			<content:encoded><![CDATA[<p>Want to use Tor so that you can make annoymous and secure web requests while coding in C#? Use this easy technique.</p>
<p><span id="more-1226"></span>
<p>Typically when making an HttpWebRequest with C# you would write something to this effect:</p>
<pre class="brush: plain; title: ;">
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(&quot;http://URL.org&quot;);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
</pre>
<p>This will work fine, however your connection will not be anonymous. Using Tor, you can effectively create an anonymous connection. First, make sure to install Tor and run it. The typical Tor Windows install will install Privoxy along with Vidalia. To make your C# web request run through Tor, you need to override the default proxy property to contact Prioxy.</p>
<pre class="brush: plain; title: ;">
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(&quot;http://URL.org&quot;);
request.Proxy = new WebProxy(&quot;127.0.0.1:8118&quot;); // default privoxy port for tor
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
</pre>
<p>127.0.0.1:8118 is the default address for Privoxy. Your HttpWebRequest will now be routed through Tor. Make sure that you do not have any firewalls blocking this default port.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.krio.me/use-tor-to-make-a-c-sharp-httpwebrequest/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Learning C#: .NET Overview</title>
		<link>http://www.krio.me/learning-c-sharp-dot-net-overview/</link>
		<comments>http://www.krio.me/learning-c-sharp-dot-net-overview/#comments</comments>
		<pubDate>Fri, 02 Jul 2010 23:15:25 +0000</pubDate>
		<dc:creator>Kevin Rio</dc:creator>
				<category><![CDATA[C# Applications with .NET 4]]></category>

		<guid isPermaLink="false">http://www.krio.me/?p=1140</guid>
		<description><![CDATA[This section of the Learning C# 2010 along with .NET 4 series will lay the foundation necessary to write C# and .NET applications. You will learn how .NET functions and how it makes your life as a programmer easier. An overview of how the base class library will be provided along with how .NET&#8217;s Common [...]]]></description>
			<content:encoded><![CDATA[<p>This section of the Learning C# 2010 along with .NET 4 series will lay the foundation necessary to write C# and .NET applications. You will learn how .NET functions and how it makes your life as a programmer easier. An overview of how the base class library will be provided along with how .NET&#8217;s Common Intermediate Language, Common Language Runtime, Common Type System, and Common Language Specification work together to make your applications run.<span id="more-1140"></span></p>
<h2>Why use .NET?</h2>
<p>.NET allows us to leverage existing code from other .NET languages and integrate them together into one language unspecific assembly. This allows programming to use many existing code samples into their applications, which can help to improve development time and decrease costs. .NET provides a single runtime engine that all .NET supported languages can use together with typical debugging and inheritance features. .NET&#8217;s extensive base class library can be leveraged to deploy more feature-rich applications in a shorter time frame.</p>
<h2>What makes .NET tick?</h2>
<p>.NET is primarily comprised of a runtime environment combined with a base class library.  There are three main features that make .NET into the powerful solution that is it.</p>
<ul>
<li>CLR &#8211; Common Language Runtime</li>
<li>CTS &#8211; Common Type System</li>
<li>CLS &#8211; Common Language Specification</li>
</ul>
<p>While you do now need to know what is happening under the hood of these three entities you do need to have an understanding of their purposes.</p>
<h3>.NET&#8217;s Common Language Runtime</h3>
<p>This is .NET&#8217;s runtime environment that is used to control aspects of .NET, such as data types. The CLR will keep memory in a stable state, it will provide application management, and thread allocation (multi CPU platforms). Another important feature of the CLR is its duty to manage security on the host machine related to your application.</p>
<h3>.NET&#8217;s Common Type System</h3>
<p>The CTS is utilized to define standard compliant type definitions for .NET applications. If you want your C# application to play nicely with other programming languages, you will want to make sure to use data types that the CTS states are compliant. The CTS also defines how these standard types will integrate with each other. C# allows you to utilize types that are not defined in the CTS and while you are more than welcome to take advantage of them in your scripts, be warned that you will not be able to pass these data types to a language that does not support it. You can however, utilize the type inside of a function, but not return it to another language, which the system does support.</p>
<h3>.NET&#8217;s Common Language Specification</h3>
<p>When envisioning the CLS, picture it as a subset of the Common Type System. It is the part of the CTS that actually makes the definitions of what is compatible and what types can be used together in unison. Through the compiler, you can test for CTS compatibility.</p>
<h3>.NET Libraries</h3>
<p>One of the most important features that .NET brings to programming is its base class library that supports all .NET languages. The .NET base class library provides useful classes related to database interaction, security, input &amp; output file operations, XML integration, and even visual desktop integration. Think of the .NET base class library as a collection of code that you can leverage to develop applications more quickly and efficiently.</p>
<h3>C#&#8217;s role in .NET</h3>
<p>C# is Microsoft&#8217;s programming language developed specifically to provide seamless integration with .NET. While .NET does support other programming languages that have been around from before C#, Microsoft felt that they needed a new language that would be able to rival more advanced languages that their existing languages simply could not. Thus C# was born with the advanced language features that programmers needed. C# inherits from many C-style languages and even functional languages, such as LISP.</p>
<h3>C# Compilation</h3>
<p>When you put your C# source code through the C# compiler it is converted into an intermediate language known as the Common Intermediate Language, or CIL. This intermediate language is in the form of an .exe or dll file. Similarly, if you are using Visual Basic, your source code would be compiled into the intermediate language that would look very similar to your C# code. This is how .NET is able to allow different programming languages to work together. The intermediate language and meta data that accompanies it is setup in such a way by the compiler that it is portable between languages. When your program is run and the CLR (.NET runtime) references a piece of code in the CIL that is then compiled into instructions that can be run on your specific machine. This compiled code will look different depending on your operating system and speed of your computer. For example, mobile applications will most likely have less memory available and the runtime will take this into account before final compilation of the CIL (intermediate language) into machine specific instructions.</p>
<p>The method that is used to take the CIL (intermediate language) and produce the final instructions is known as the just-in-time compiler. The just-in-time compiler (JIT) produces code specific to the target machine. One important feature of the JIT is its ability to cache its output for the future if it is likely that a piece of code will be run again in the future, thus it will not need to compile it again.</p>
<h3>The .NET System namespace in the base class library</h3>
<p>Namespaces are used in .NET to group related libraries and types. Under the System library we have many assemblies, such as System.Collections, which deals with container types, and System.Drawing, which provides user interface tools for creating desktop apps. You cannot expect to build any useful applications in C# without referencing at least the System namespace in your applications. Namespaces can contain any number of nested namespaces. Thus we see System.Xml and System.Security, which are both nested inside of the System namespace.</p>
<p>This seems to be a good time to showcase our first piece of C# code. Below you can see how one would typically include these namespace into code.</p>
<pre class="brush: plain; title: ;">
using System;
using System.Collections;
public class OurArrayList {

   public static void Main()  {

      // create ourList array
      ArrayList ourList = new ArrayList();
      ourList.Add(&amp;quot;Krio&amp;quot;);
      ourList.Add(&amp;quot;is&amp;quot;);
      ourList.Add(&amp;quot;awesome&amp;quot;);
   }
}
</pre>
<p>This example shows how you would reference a namespace at the top of your C# code. Once you utilize the &#8216;using&#8217; keyword and reference a namespace you can call the classes located inside of that namespace. In this example we are instantiating the ArrayList class into the object ourList and utilizing the method Add.</p>
<h2>Section 1 Conclusion</h2>
<p>This first section in the Learning C# 2010 along with .NET 4 series has provided you with a firm foundation related to gaining an understanding of what happens in the background when you create C# applications with .NET. In addition, you have a functional understanding of the base class library and how to integrate a namespace.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.krio.me/learning-c-sharp-dot-net-overview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Loop twice through a PHP / MySQL result set</title>
		<link>http://www.krio.me/loop-twice-through-a-php-mysql-result-set/</link>
		<comments>http://www.krio.me/loop-twice-through-a-php-mysql-result-set/#comments</comments>
		<pubDate>Fri, 02 Jul 2010 22:39:29 +0000</pubDate>
		<dc:creator>Kevin Rio</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP Tutorials]]></category>

		<guid isPermaLink="false">http://www.krio.me/?p=1125</guid>
		<description><![CDATA[I get asked all the time if it is possible to loop multiple times through a MySQL result set in PHP. Here&#8217;s the answer. First, you&#8217;ll need a MySQL result set. To do that you&#8217;ll need to select something from your database and loop through it like so: $result = mysql_query(&#34;SELECT * FROM my_table&#34;); while($row [...]]]></description>
			<content:encoded><![CDATA[<p>I get asked all the time if it is possible to loop multiple times through a MySQL result set in PHP. Here&#8217;s the answer.</p>
<p><span id="more-1125"></span></p>
<p>First, you&#8217;ll need a MySQL result set. To do that you&#8217;ll need to select something from your database and loop through it like so:</p>
<pre class="brush: php; title: ;">

$result = mysql_query(&quot;SELECT * FROM my_table&quot;);

while($row = mysql_fetch_assoc($result)) {

// inside the loop

}
</pre>
<p>The problem is, if you want to loop through the same result set again, you will get an error because the internal pointer is currently at the end of the result. You will need to put the pointer back at the beginning of the result set so that you can loop through it again.</p>
<p>You can do it with a helpful php function named mysql_data_seek.</p>
<pre class="brush: php; title: ;">

mysql_data_seek($result, 0); // set the pointer of the result set back to the beginning.

while($row2 = mysql_fetch_assoc($result)) {

// inside the loop

}
</pre>
<p>This demonstrates how, as a PHP website developer, you can reset the pointer of a MySQL result set, which will allow you to iterate through the result set for a second time.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.krio.me/loop-twice-through-a-php-mysql-result-set/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learning C# 2010 along with .NET 4</title>
		<link>http://www.krio.me/learning-c-sharp-2010-dot-net-4-series-overview/</link>
		<comments>http://www.krio.me/learning-c-sharp-2010-dot-net-4-series-overview/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 22:06:42 +0000</pubDate>
		<dc:creator>Kevin Rio</dc:creator>
				<category><![CDATA[C# Applications with .NET 4]]></category>

		<guid isPermaLink="false">http://www.krio.me/?p=1128</guid>
		<description><![CDATA[This series will take you through all of the necessary steps to becoming a professional C# application developer. The C# 2010 language, combined with .NET 4.0 with be examined step-by-step to provide you with both practical and theoretical explanations to programming in C#. The .NET base class libraries will be examined related to how they [...]]]></description>
			<content:encoded><![CDATA[<p>This series will take you through all of the necessary steps to becoming a professional C# application developer. The C# 2010 language, combined with .NET 4.0 with be examined step-by-step to provide you with both practical and theoretical explanations to programming in C#. The .NET base class libraries will be examined related to how they are utilized to create sophisticated Windows applications with C#.<span id="more-1128"></span></p>
<h2>Who is this C# tutorial series for?</h2>
<p>There will be two ideal targets for this tutorial series on C#. Individuals who has never programed before and professional programmers looking to learn to program in C#. The sections will be clearly outlined so that individuals will know which section is right for them. This means that individuals with experience in coding (any language will do) who have dealt with object oriented techniques in the past will most likely not need to spend much time learning about variables, while new programmers will need to spend more time on these sections. This series will concentrate on providing programmers with instruction, examples, and tutorials that will provide a strong base for coding syntactically clean, scalable, and standards compliant C# applications for the windows platform.</p>
<h2>Learning C# 2010 Series Outcomes</h2>
<h5>For New Programmers</h5>
<ul>
<li>Learn about programming language keywords, such as syntax, comments, datatypes, variables, loops, and functions.</li>
<li>Gain the ability to code complex, scalable, and standards compliant C# applications in a professional environment.</li>
<li>Quickly move on to learning more advanced features that will get you developing useful applications in no-time.</li>
<li>New Programmers will need to read the articles title &#8216;Essentials&#8217;, which are targeted towards individuals with no previous coding experience.</li>
</ul>
<h5 style="margin-top: 10px;">For Experienced Programmers</h5>
<ul>
<li>Quickly learn how the basics are created in C#, such as variables, loops, libraries, and objects.</li>
<li>Move on to more specific areas, such as generics, multi-threaded applications, and so on.</li>
<li>Learn Microsoft&#8217;s flagship platform and programming language.</li>
<li>Transfer your existing programming knowledge to the C# language.</li>
<li>Gain the ability to code complex, scalable, and standards compliant C# applications in a professional environment.</li>
<li>Coders with experience in other programming languages may find it beneficial to skip the articles labeled &#8216;Essentials&#8217;. If you feel lost during a technical discussion, just come back to these articles as they will lay the programming foundations.</li>
</ul>
<h2 style="margin-top: 10px;">Learning C# 2010 along with .NET 4 Sections</h2>
<h3>.NET Overview</h3>
<p><a title="Learning C# - .NET Overview" href="http://www.krio.me/learning-c-sharp-dot-net-overview/" target="_self">Learning C# &#8211; .NET Overview</a><br />
This section will give you the necessary knowledge related to how .NET programming languages work and how the code you write in future chapters is executed. It will cover what happens when you compile your application along with how the various .NET programming languages, such as C#, VB, and F# can work together if you keep your code standards compliant. Base class libraries will be explored along with the .NET runtime environment.</p>
<p>Note: I will be releasing articles and tutorials as I am able to write them. Not necessarily at one time. I will also be released video tutorials that will use these articles are learning outcome references.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.krio.me/learning-c-sharp-2010-dot-net-4-series-overview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ternary Operators in PHP: Shorthand If Else Statements</title>
		<link>http://www.krio.me/ternary-operators-in-php-shorthand-if-else-statements/</link>
		<comments>http://www.krio.me/ternary-operators-in-php-shorthand-if-else-statements/#comments</comments>
		<pubDate>Sat, 17 Apr 2010 19:08:09 +0000</pubDate>
		<dc:creator>Kevin Rio</dc:creator>
				<category><![CDATA[PHP Tutorials]]></category>

		<guid isPermaLink="false">http://www.krio.me/?p=1106</guid>
		<description><![CDATA[If-Else statements are a vital part of programming, however sometimes all the code that goes into writing are not required, especially if only only simple condition is needed. This is what the ternary operator is used for. The ternary operator is a shorthand if/else statement. It allows developers to form conditions quickly and in a [...]]]></description>
			<content:encoded><![CDATA[<p>If-Else statements are a vital part of programming, however sometimes all the code that goes into writing are not required, especially if only only simple condition is needed. This is what the ternary operator is used for.<span id="more-1106"></span></p>
<p>The ternary operator is a shorthand if/else statement. It allows developers to form conditions quickly and in a very readable fashion.</p>
<h3>Here is the ternary syntax</h3>
<pre class="brush: php; title: ;">

(condition) ? true-stuff-here : false-stuff-here;
</pre>
<p>Here is an example of the ternary operator</p>
<pre class="brush: php; title: ;">

$age = 20;

$response = ($age &gt; 29) ? &quot;He's in his thirties&quot; : &quot;He's not&quot;;

echo $response; // He's not
</pre>
<p>I hope you can see the usefulness in the ability for the ternary operator to easily perform conditional comparisons. Please however, refrain from using &#8216;nested ternary comparisons&#8217; as the are very difficult to  so read. It is so frowned upon by web developers that I&#8217;m not even going to post an example.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.krio.me/ternary-operators-in-php-shorthand-if-else-statements/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

