<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3866559126864655908</id><updated>2012-02-16T07:04:47.561-05:00</updated><category term='Levi'/><category term='lossless'/><category term='Wordpress'/><category term='Lagarith'/><category term='1.5'/><category term='Wilson'/><category term='4'/><category term='greek'/><category term='Game'/><category term='Image'/><category term='three'/><category term='free'/><category term='tractor'/><category term='new'/><category term='daisy'/><category term='Output'/><category term='camtasia'/><category term='array'/><category term='1.1.1'/><category term='c#'/><category term='make'/><category term='Techsmith'/><category term='four'/><category term='camstudio'/><category term='comprehensive'/><category term='Unity'/><category term='video'/><category term='fire alarm'/><category term='shut'/><category term='dirty'/><category term='xp'/><category term='generate'/><category term='humor'/><category term='scanner'/><category term='affect'/><category term='of'/><category term='to'/><category term='host'/><category term='authentication'/><category term='Input'/><category term='IO'/><category term='effect'/><category term='recorder'/><category term='save'/><category term='animations'/><category term='Design'/><category term='xna'/><category term='died'/><category term='Platformz'/><category term='Blogger'/><category term='compile'/><category term='record'/><category term='batch'/><category term='cold'/><category term='desktop'/><category term='baby'/><category term='out'/><category term='shutdown'/><category term='Nathan'/><category term='stories'/><category term='chicken'/><category term='project'/><category term='serialize'/><category term='capture'/><category term='account'/><category term='studio'/><category term='Blog'/><category term='compressor'/><category term='vista'/><category term='google'/><category term='Python'/><category term='down'/><category term='conditionals'/><category term='list'/><category term='client'/><category term='complex'/><category term='beach'/><category term='consciousness'/><category term='recursive'/><category term='collisions'/><category term='blender'/><category term='7'/><category term='serialization'/><category term='youtube'/><category term='Tutorial'/><category term='export'/><category term='collision'/><category term='types'/><category term='band'/><category term='string'/><category term='executable'/><category term='grammar'/><category term='File'/><category term='water'/><category term='compilation'/><category term='animation'/><category term='class'/><category term='computer'/><category term='codec'/><category term='windows'/><category term='chick'/><category term='animate'/><category term='programmatically'/><category term='lesson'/><category term='screen'/><category term='polygon'/><category term='Luke'/><category term='variable'/><category term='Worm'/><category term='unserialize'/><category term='author'/><category term='webclient'/><category term='princess'/><category term='loops'/><category term='your'/><category term='execute'/><category term='remote'/><category term='prank'/><category term='music'/><category term='1.1.2'/><category term='exe'/><category term='Java'/><category term='yesterday'/><category term='create'/><category term='pickle'/><category term='Editor'/><category term='C# quick-tip'/><category term='1.1'/><category term='PHP'/><category term='locked'/><category term='Jorj'/><category term='dreams'/><category term='Joomla'/><category term='3D'/><category term='comic relief'/><category term='search'/><category term='server'/><category term='two'/><category term='Update'/><category term='versus'/><category term='Engine'/><category term='Death'/><category term='data'/><title type='text'>Adam's Blog</title><subtitle type='html'>Programmatical Ramblings</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Adam Gaskins</name><uri>http://www.blogger.com/profile/04187211919205650435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-6yrdjv3hXIA/TrtIrCbVgxI/AAAAAAAAAF8/dtrv8MPqqBQ/s220/cyaneyes.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>38</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-6052566076523946988</id><published>2011-11-09T22:46:00.001-05:00</published><updated>2011-11-09T22:46:54.769-05:00</updated><title type='text'>99% of my personal programming projects</title><content type='html'>&lt;a href="http://notch.tumblr.com/post/12551870085/inspiration-motivation-stress-and-abandonment"&gt;http://notch.tumblr.com/post/12551870085/inspiration-motivation-stress-and-abandonment&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;'nuff said.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-6052566076523946988?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/6052566076523946988/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2011/11/99-of-my-personal-programming-projects.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/6052566076523946988'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/6052566076523946988'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2011/11/99-of-my-personal-programming-projects.html' title='99% of my personal programming projects'/><author><name>Adam Gaskins</name><uri>http://www.blogger.com/profile/04187211919205650435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-6yrdjv3hXIA/TrtIrCbVgxI/AAAAAAAAAF8/dtrv8MPqqBQ/s220/cyaneyes.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-6965607804626618562</id><published>2011-06-06T13:35:00.001-04:00</published><updated>2011-06-06T13:35:40.611-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C# quick-tip'/><title type='text'>C# Toggle Button</title><content type='html'>Quick Tip: If you have a Radio Button or a Checkbox...&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;checkBox1.Appearance = System.Windows.Forms.Appearance.Button;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=3866559126864655908&amp;amp;postID=6965607804626618562" id="rate"&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;form action="http://www.osix.net/modules/article/?id=797" id="rateform" method="POST" name="rateform"&gt;&lt;/form&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;And viola, instant Toggle Button!&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-6965607804626618562?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/6965607804626618562/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2011/06/c-toggle-button.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/6965607804626618562'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/6965607804626618562'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2011/06/c-toggle-button.html' title='C# Toggle Button'/><author><name>Adam Gaskins</name><uri>http://www.blogger.com/profile/04187211919205650435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-6yrdjv3hXIA/TrtIrCbVgxI/AAAAAAAAAF8/dtrv8MPqqBQ/s220/cyaneyes.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-493624357445902925</id><published>2010-11-17T08:48:00.004-05:00</published><updated>2010-11-18T08:03:39.350-05:00</updated><title type='text'>Friendly Name of Generic Type</title><content type='html'>There is a C# Class,&amp;nbsp;&lt;a href="http://msdn.microsoft.com/en-us/library/system.type.aspx"&gt;Type&lt;/a&gt;, which can be used to get details about other classes.&lt;br /&gt;&lt;pre&gt;&amp;nbsp;&amp;nbsp;Type t = typeof(string);&lt;br /&gt;&amp;nbsp;&amp;nbsp;Debug.WriteLine(t.Name);&lt;/pre&gt;This prints out "String".&amp;nbsp;When you get the value of the property &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;Name&lt;/span&gt; when &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;t &lt;/span&gt;is assigned to a generic type...&lt;br /&gt;&lt;pre&gt;&amp;nbsp;&amp;nbsp;Type t = typeof(List&amp;lt;string&amp;gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;Debug.WriteLine(t.Name);&lt;/pre&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;This prints out "List`1`".&lt;/div&gt;&lt;br /&gt;&lt;b&gt;Problem:&lt;/b&gt;&amp;nbsp;Type.Name does not return friendly names for generic types.&lt;br /&gt;&lt;br /&gt;So I wrote an extension method, which returns the friendly name for &lt;i&gt;any&lt;/i&gt;&amp;nbsp;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;Type&lt;/span&gt;.&lt;br /&gt;&lt;pre&gt;&amp;nbsp;&amp;nbsp;public static string GetFriendlyName(this Type type)&lt;br /&gt;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if (type.IsGenericType)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;StringBuilder sb = new StringBuilder();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sb.Append(type.Name.Remove(type.Name.IndexOf('`')));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sb.Append("&amp;lt;");&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Type[] arguments = type.GetGenericArguments();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for(int i = 0; i &amp;lt; arguments.Length; i++)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sb.Append(arguments[i].GetFriendlyName());&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (i + 1 &amp;lt; arguments.Length)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sb.Append(", ");&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sb.Append("&amp;gt;");&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return sb.ToString();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return type.Name;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&lt;/pre&gt;&lt;div&gt;It's used like this:&lt;/div&gt;&lt;pre&gt;&amp;nbsp;&amp;nbsp;Type t = typeof(List&amp;lt;String&amp;gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;Debug.WriteLine(t.GetFriendlyName());&lt;br /&gt;&lt;/pre&gt;This prints out "List&amp;lt;String&amp;gt;"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-493624357445902925?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/493624357445902925/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2010/11/friendly-name-of-generic-type.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/493624357445902925'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/493624357445902925'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2010/11/friendly-name-of-generic-type.html' title='Friendly Name of Generic Type'/><author><name>Adam Gaskins</name><uri>http://www.blogger.com/profile/04187211919205650435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-6yrdjv3hXIA/TrtIrCbVgxI/AAAAAAAAAF8/dtrv8MPqqBQ/s220/cyaneyes.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-6949380660982264891</id><published>2010-10-13T17:34:00.001-04:00</published><updated>2010-10-13T17:34:03.180-04:00</updated><title type='text'>This is a test</title><content type='html'>Testing 123&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-6949380660982264891?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/6949380660982264891/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2010/10/this-is-test.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/6949380660982264891'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/6949380660982264891'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2010/10/this-is-test.html' title='This is a test'/><author><name>Adam Gaskins</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-2712518680344211500</id><published>2010-09-17T15:47:00.003-04:00</published><updated>2010-09-17T15:52:42.586-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='3D'/><category scheme='http://www.blogger.com/atom/ns#' term='Unity'/><category scheme='http://www.blogger.com/atom/ns#' term='Game'/><category scheme='http://www.blogger.com/atom/ns#' term='Platformz'/><category scheme='http://www.blogger.com/atom/ns#' term='Engine'/><title type='text'>Unity3D</title><content type='html'>Unity3D is a game development engine, which is easy to use, once you know how, and extremely powerful. Here's my first game I made in it. I may or may not add more levels and/or hazards...&lt;div&gt;&lt;br /&gt;&lt;div&gt;Play Online: &lt;a href="http://www.theadamgaskins.com/Unity/Platformz/Windows.zip"&gt;http://www.theadamgaskins.com/Unity/Platformz/&lt;/a&gt;&lt;/div&gt;&lt;div&gt;Windows Download: &lt;a href="http://www.theadamgaskins.com/Unity/Platformz/Windows.zip"&gt;http://www.theadamgaskins.com/Unity/Platformz/Windows.zip&lt;/a&gt;&lt;/div&gt;&lt;div&gt;Macintosh Download: &lt;a href="http://www.theadamgaskins.com/Unity/Platformz/Windows.zip"&gt;http://www.theadamgaskins.com/Unity/Platformz/Macintosh.zip&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Unity allows me to export into web format, Windows standalone format, and Macintosh standalone format. The &lt;a href="http://unity3d.com/webplayer/"&gt;unity webplayer&lt;/a&gt; is required to be installed to execute the web player; I don't know about the standalone versions.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Anyways, you have three lives. If you lose them all, its gameover. On the Gameover screen, click to go back to the main menu.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-2712518680344211500?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/2712518680344211500/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2010/09/unity3d.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/2712518680344211500'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/2712518680344211500'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2010/09/unity3d.html' title='Unity3D'/><author><name>Adam Gaskins</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-1824315539342089134</id><published>2010-08-12T13:12:00.001-04:00</published><updated>2010-08-12T13:13:23.994-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Wordpress'/><category scheme='http://www.blogger.com/atom/ns#' term='Blogger'/><category scheme='http://www.blogger.com/atom/ns#' term='band'/><category scheme='http://www.blogger.com/atom/ns#' term='Nathan'/><category scheme='http://www.blogger.com/atom/ns#' term='music'/><category scheme='http://www.blogger.com/atom/ns#' term='Wilson'/><category scheme='http://www.blogger.com/atom/ns#' term='Jorj'/><category scheme='http://www.blogger.com/atom/ns#' term='Blog'/><title type='text'>Jorj</title><content type='html'>My and my friend, Nathan Wilson, started a band called "Jorj". Here's the official blog:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.theadamgaskins.com/Jorj/"&gt;http://www.theadamgaskins.com/Jorj/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;WordPress just got an update, but still hasn't fixed the auto-html-reformat feature/bug, so I'm going to stick with Blogger still. But since I'll pretty much only be posting music and words and maybe pictures [no code] then WordPress is better for Jorj's blog.&lt;br /&gt;&lt;br /&gt;In Jorj, I'm referred to as "Brains Rider", and Nathan is referred to as "Sid Williams".&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-1824315539342089134?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/1824315539342089134/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2010/08/jorj.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/1824315539342089134'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/1824315539342089134'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2010/08/jorj.html' title='Jorj'/><author><name>Adam Gaskins</name><uri>http://www.blogger.com/profile/04187211919205650435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-6yrdjv3hXIA/TrtIrCbVgxI/AAAAAAAAAF8/dtrv8MPqqBQ/s220/cyaneyes.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-120086102955975598</id><published>2010-08-03T11:23:00.000-04:00</published><updated>2010-08-03T11:23:17.138-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Game'/><category scheme='http://www.blogger.com/atom/ns#' term='collisions'/><category scheme='http://www.blogger.com/atom/ns#' term='class'/><category scheme='http://www.blogger.com/atom/ns#' term='polygon'/><category scheme='http://www.blogger.com/atom/ns#' term='studio'/><category scheme='http://www.blogger.com/atom/ns#' term='collision'/><category scheme='http://www.blogger.com/atom/ns#' term='complex'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><category scheme='http://www.blogger.com/atom/ns#' term='xna'/><title type='text'>XNA Game Studio: Complex Polygon Collisions</title><content type='html'>I am working on an &lt;a href="http://nhl.com/"&gt;NHL&lt;/a&gt; shootout game in XNA Game Studio. I had the basic prototype down, with player movement, shooting and grabbing the puck, and a goal. The only thing left was to detect when the puck should bounce off the posts of the goal, and when the puck goes into the goal. I could have just used multiple &lt;span style="font-family: Courier New;"&gt;Rectangle&lt;/span&gt; objects, but I decided to figure out how to do &lt;i&gt;Polygon Collision Checking&lt;/i&gt;. It would be good to know how to do it, for future reference.&lt;br /&gt;&lt;br /&gt;Some Google searches revealed &lt;a href="http://social.msdn.microsoft.com/forums/en-US/winforms/thread/95055cdc-60f8-4c22-8270-ab5f9870270a/"&gt;this link&lt;/a&gt;. I copied and pasted the function, and made some tweaks. I put it in a &lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;Polygon&lt;/span&gt; class, which stores a generic &lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;List&amp;lt;&amp;gt;&lt;/span&gt; of &lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;Vector2&lt;/span&gt;s. Then I added a funtion:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;public bool Intersects(Polygon other)&lt;br /&gt;        {&lt;br /&gt;            foreach (Vector2 point in other.points)&lt;br /&gt;            {&lt;br /&gt;                if(PointInPolygon(point))&lt;br /&gt;                    return true;&lt;br /&gt;            }&lt;br /&gt;            return false;&lt;br /&gt;        }&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Then all I had to do was create the polygon collision bounds for all the objects, and say something like:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;if (puckBounds.Intersects(goalBounds))&lt;br /&gt;        {&lt;br /&gt;            // Make puck bounce here&lt;br /&gt;        }&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;I'm glad I learned this, because I'll be able to use my &lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;Polygon&lt;/span&gt; class for lots of things in the future. Maybe later I can upload the source and/or upload a compiled DLL.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-120086102955975598?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/120086102955975598/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2010/08/xna-game-studio-complex-polygon.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/120086102955975598'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/120086102955975598'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2010/08/xna-game-studio-complex-polygon.html' title='XNA Game Studio: Complex Polygon Collisions'/><author><name>Adam Gaskins</name><uri>http://www.blogger.com/profile/04187211919205650435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-6yrdjv3hXIA/TrtIrCbVgxI/AAAAAAAAAF8/dtrv8MPqqBQ/s220/cyaneyes.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-6599960307541860236</id><published>2010-07-20T18:08:00.000-04:00</published><updated>2010-07-20T18:08:27.633-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='programmatically'/><category scheme='http://www.blogger.com/atom/ns#' term='create'/><category scheme='http://www.blogger.com/atom/ns#' term='executable'/><category scheme='http://www.blogger.com/atom/ns#' term='generate'/><category scheme='http://www.blogger.com/atom/ns#' term='Output'/><category scheme='http://www.blogger.com/atom/ns#' term='exe'/><category scheme='http://www.blogger.com/atom/ns#' term='export'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><category scheme='http://www.blogger.com/atom/ns#' term='Design'/><category scheme='http://www.blogger.com/atom/ns#' term='IO'/><category scheme='http://www.blogger.com/atom/ns#' term='execute'/><category scheme='http://www.blogger.com/atom/ns#' term='save'/><category scheme='http://www.blogger.com/atom/ns#' term='make'/><title type='text'>C# Programmatically Compiling .cs files to executables</title><content type='html'>I was thinking of making a program that generates an executable which installs an application, but how to generate the executable?&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;public static void Compile(String Output, String code)&lt;br /&gt;{&lt;br /&gt;    CodeDomProvider codeProvider = CodeDomProvider.CreateProvider("CSharp");&lt;br /&gt;    CompilerParameters parameters = new CompilerParameters();&lt;br /&gt;    //Make sure we generate an EXE, not a DLL&lt;br /&gt;    parameters.GenerateExecutable = true;&lt;br /&gt;    parameters.OutputAssembly = Output;&lt;br /&gt;    CompilerResults results = codeProvider.CompileAssemblyFromSource(parameters, code);&lt;br /&gt;    if (results.Errors.Count &amp;gt; 0)&lt;br /&gt;    {&lt;br /&gt;        foreach (CompilerError CompErr in results.Errors)&lt;br /&gt;        {&lt;br /&gt;            Debug.WriteLine(&lt;br /&gt;                "Line number " + CompErr.Line +&lt;br /&gt;                ", Error Number: " + CompErr.ErrorNumber +&lt;br /&gt;                ", '" + CompErr.ErrorText + ";" +&lt;br /&gt;                Environment.NewLine + Environment.NewLine);&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;    else&lt;br /&gt;    {&lt;br /&gt;        Debug.WriteLine("Success!");&lt;br /&gt;    }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;In order to use this function, you must &lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;using&lt;/span&gt; these two classes:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;using System.CodeDom.Compiler;&lt;br /&gt;using System.Diagnostics;&lt;/pre&gt;&lt;br /&gt;Once you have that done, you're good to go! As a quick example, you can create a textarea named txt_code, a textbox named txt_output, and a button btn_submit. When btn_submit is clicked, then it will say:&lt;br /&gt;&lt;br /&gt;Compile(txt_output.Text, txt_code.Text);&lt;br /&gt;&lt;br /&gt;Which if you put a valid path in txt_output, and valid C# code in txt_code, then you will have your executable!&lt;br /&gt;&lt;br /&gt;&lt;a href="http://support.microsoft.com/kb/304655"&gt;Original Article Here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-6599960307541860236?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/6599960307541860236/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2010/07/c-programmatically-compiling-cs-files.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/6599960307541860236'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/6599960307541860236'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2010/07/c-programmatically-compiling-cs-files.html' title='C# Programmatically Compiling .cs files to executables'/><author><name>Adam Gaskins</name><uri>http://www.blogger.com/profile/04187211919205650435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-6yrdjv3hXIA/TrtIrCbVgxI/AAAAAAAAAF8/dtrv8MPqqBQ/s220/cyaneyes.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-4344708094281653703</id><published>2010-07-16T23:45:00.000-04:00</published><updated>2010-07-16T23:45:38.366-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='author'/><category scheme='http://www.blogger.com/atom/ns#' term='stories'/><category scheme='http://www.blogger.com/atom/ns#' term='search'/><category scheme='http://www.blogger.com/atom/ns#' term='google'/><category scheme='http://www.blogger.com/atom/ns#' term='youtube'/><title type='text'>Google Search Stories</title><content type='html'>Google came out with Google Search Stories, where you can make a video of a series [up to 7] of google searches to tell a short story. I made one to test it out: &lt;br /&gt;&lt;object height="385" width="640"&gt;&lt;param name="movie" value="http://www.youtube.com/v/M3iEnEdU-3A&amp;amp;hl=en_US&amp;amp;fs=1?rel=0"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/M3iEnEdU-3A&amp;amp;hl=en_US&amp;amp;fs=1?rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;You can make your own here:&lt;br /&gt;&lt;a href="http://www.youtube.com/searchstories"&gt;http://www.youtube.com/searchstories&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-4344708094281653703?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/4344708094281653703/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2010/07/google-search-stories.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/4344708094281653703'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/4344708094281653703'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2010/07/google-search-stories.html' title='Google Search Stories'/><author><name>Adam Gaskins</name><uri>http://www.blogger.com/profile/04187211919205650435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-6yrdjv3hXIA/TrtIrCbVgxI/AAAAAAAAAF8/dtrv8MPqqBQ/s220/cyaneyes.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-3517869556645963168</id><published>2010-07-16T12:19:00.004-04:00</published><updated>2010-07-16T12:40:23.360-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='serialize'/><category scheme='http://www.blogger.com/atom/ns#' term='server'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='serialization'/><category scheme='http://www.blogger.com/atom/ns#' term='host'/><category scheme='http://www.blogger.com/atom/ns#' term='remote'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><category scheme='http://www.blogger.com/atom/ns#' term='project'/><category scheme='http://www.blogger.com/atom/ns#' term='client'/><category scheme='http://www.blogger.com/atom/ns#' term='webclient'/><category scheme='http://www.blogger.com/atom/ns#' term='desktop'/><category scheme='http://www.blogger.com/atom/ns#' term='Image'/><category scheme='http://www.blogger.com/atom/ns#' term='pickle'/><title type='text'>C# Remote Desktop Client</title><content type='html'>Recently, I've been trying to find a challenging C# Project to work on. I've tried stuff like a program that tells you your WPM and then submits it to the highscore table. It wasn't really very challenging, although I did learn a thing or two. But the other day, I really hit the nail on the head: A C# Remote Desktop Host/Client.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;Skip this paragraph if you already know what a Remote Desktop Host/Client is&lt;/em&gt;&lt;br /&gt;A remote desktop host/client is a program that lets one person remotely control another person's desktop. So, for example, lets say I had a friend in california, and I live in north carolina. The person in california, using this program, could control my desktop and, say, create and populate a text document. The host is the program that lets you control the desktop that the client program is running on.&lt;br /&gt;&lt;br /&gt;So in order to pull this off, I need to have two connections: One for the server to send information to the host, and one for the client to send information to the host. I was initially going to use Sockets, but that would only work over LAN. So I created some PHP scripts to communicate with the MySQL database to do things such as post a string to the output database [the input for the other side], and check for posts to the input database [the output for the other side]. Once I got all that working, I could use WebClient.DownloadString("Script.php"); to execute the script via C#. Both Get and Post parameters work with this.&lt;br /&gt;&lt;br /&gt;Then I set up threads on the client and the host to check for messages multiple times per second. The main problem at this point was sending an Image, 1440x900px [my screen resolution], to the database quickly. Uploading and Downloading it directly would be far to slow, so I did a google search for "C# Image Serialization". I found a really good method, using base64 encoding, and it uploads fast. So the client would take a screenshot, encode it to base64, and send it to the database via PHP. Then the server would download the encoded image as a string, decode it into an image again, and display it. All this happening multiple times per second.&lt;br /&gt;&lt;br /&gt;So all that is the theory behind it. I still have to implement the sending and receiving, but everything else is working properly.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-3517869556645963168?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/3517869556645963168/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2010/07/c-remote-desktop-client.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/3517869556645963168'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/3517869556645963168'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2010/07/c-remote-desktop-client.html' title='C# Remote Desktop Client'/><author><name>Adam Gaskins</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-5646044890223206109</id><published>2010-06-19T21:36:00.000-04:00</published><updated>2010-06-19T21:36:53.852-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Game'/><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Death'/><category scheme='http://www.blogger.com/atom/ns#' term='1.1.2'/><category scheme='http://www.blogger.com/atom/ns#' term='Update'/><category scheme='http://www.blogger.com/atom/ns#' term='Worm'/><title type='text'>Death Worm: Update 1.1.2</title><content type='html'>&amp;nbsp;I spent a lot of time on this update:&lt;br /&gt;&lt;br /&gt;Updates:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Four different enemies which appear sequentially&lt;/li&gt;&lt;li&gt;Images for the enemies&lt;/li&gt;&lt;li&gt;FPS counter&lt;/li&gt;&lt;li&gt;Minor performance updates to the particle system&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;a href="http://www.theadamgaskins.com/DeathWorm/1.1.2"&gt;Death Worm 1.1.2&lt;/a&gt;&lt;/div&gt;&lt;div&gt;View version history here:&amp;nbsp;&lt;a href="http://www.theadamgaskins.com/DeathWorm/"&gt;http://www.theadamgaskins.com/DeathWorm/&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In the next updates:&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;The white enemies will run faster if they see you [because they get scared]&lt;/li&gt;&lt;li&gt;A health system&lt;/li&gt;&lt;li&gt;Some enemies will shoot bullets, which will make you loose health&lt;/li&gt;&lt;li&gt;You can die if you run out of health&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;All that is a lot, so It'll probably be a update or two before I get it all finished.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-5646044890223206109?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/5646044890223206109/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2010/06/death-worm-update-112.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/5646044890223206109'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/5646044890223206109'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2010/06/death-worm-update-112.html' title='Death Worm: Update 1.1.2'/><author><name>Adam Gaskins</name><uri>http://www.blogger.com/profile/04187211919205650435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-6yrdjv3hXIA/TrtIrCbVgxI/AAAAAAAAAF8/dtrv8MPqqBQ/s220/cyaneyes.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-853562426094404782</id><published>2010-06-18T23:05:00.001-04:00</published><updated>2010-06-18T23:11:47.275-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Death'/><category scheme='http://www.blogger.com/atom/ns#' term='Update'/><category scheme='http://www.blogger.com/atom/ns#' term='1.1.1'/><category scheme='http://www.blogger.com/atom/ns#' term='Worm'/><title type='text'>Death Worm: Update 1.1.1</title><content type='html'>Updates:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;The screen shakes when coming out of the ground&lt;/li&gt;&lt;li&gt;NPCs/Victims added. They are just arrows for now. If you collide with them, they explode in a puff of particles.&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;a href="http://www.theadamgaskins.com/DeathWorm/1.1.1/"&gt;http://www.theadamgaskins.com/DeathWorm/1.1.1/&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;View all versions here:&amp;nbsp;&lt;a href="http://www.theadamgaskins.com/DeathWorm/"&gt;http://www.theadamgaskins.com/DeathWorm/&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-853562426094404782?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/853562426094404782/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2010/06/death-worm-update-111.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/853562426094404782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/853562426094404782'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2010/06/death-worm-update-111.html' title='Death Worm: Update 1.1.1'/><author><name>Adam Gaskins</name><uri>http://www.blogger.com/profile/04187211919205650435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-6yrdjv3hXIA/TrtIrCbVgxI/AAAAAAAAAF8/dtrv8MPqqBQ/s220/cyaneyes.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-5024900189596039887</id><published>2010-06-18T12:30:00.001-04:00</published><updated>2010-06-18T12:30:42.157-04:00</updated><title type='text'>Death Worm Homepage</title><content type='html'>This is becoming a fun project, which I will have motivation to continue for a while yet, so I created a webpage where you can view the updates on Death Worm. I'll still update my blog, but this page has a list of all the updates, and links to them.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.theadamgaskins.com/DeathWorm/"&gt;Death Worm Homepage&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Also, I moved all the links. The links will still work, though. I'll just have the old links redirect to the new links.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-5024900189596039887?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/5024900189596039887/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2010/06/death-worm-homepage.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/5024900189596039887'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/5024900189596039887'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2010/06/death-worm-homepage.html' title='Death Worm Homepage'/><author><name>Adam Gaskins</name><uri>http://www.blogger.com/profile/04187211919205650435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-6yrdjv3hXIA/TrtIrCbVgxI/AAAAAAAAAF8/dtrv8MPqqBQ/s220/cyaneyes.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-381282074742977648</id><published>2010-06-18T12:15:00.001-04:00</published><updated>2010-06-18T12:18:18.652-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='1.1'/><category scheme='http://www.blogger.com/atom/ns#' term='Game'/><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='new'/><category scheme='http://www.blogger.com/atom/ns#' term='Death'/><category scheme='http://www.blogger.com/atom/ns#' term='Update'/><category scheme='http://www.blogger.com/atom/ns#' term='Worm'/><title type='text'>Death Worm: Update 6/18/10</title><content type='html'>&lt;ul&gt;&lt;li&gt;Scrolling Added&lt;/li&gt;&lt;li&gt;Background Color Changed&lt;/li&gt;&lt;li&gt;Scenery Added [to show scrolling]&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.theadamgaskins.com/JavaPrograms/DeathWorm/1.1/"&gt;Death Worm 1.1&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Older Versions:&lt;br /&gt;&lt;br /&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;a href="http://www.theadamgaskins.com/JavaPrograms/DeathWorm/1.0/"&gt;Death Worm 1.0&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-381282074742977648?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/381282074742977648/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2010/06/death-worm-update-61810.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/381282074742977648'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/381282074742977648'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2010/06/death-worm-update-61810.html' title='Death Worm: Update 6/18/10'/><author><name>Adam Gaskins</name><uri>http://www.blogger.com/profile/04187211919205650435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-6yrdjv3hXIA/TrtIrCbVgxI/AAAAAAAAAF8/dtrv8MPqqBQ/s220/cyaneyes.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-1297321084527910270</id><published>2010-06-18T00:01:00.001-04:00</published><updated>2010-06-18T00:02:02.402-04:00</updated><title type='text'>Death Worm: Java Remake</title><content type='html'>I haven't used Java in a while, so my skills were getting a bit rusty. I decided to pull out the WD-40, and do a game.&lt;br /&gt;&lt;br /&gt;I saw this game on yoyogames.com. It was simple, yet extremely addicting. What I have so far is almost complete. I just need to add the NPC's [a.k.a. victims] and the game will be finished.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.theadamgaskins.com/JavaPrograms/DeathWorm/small.php"&gt;Small Size&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.theadamgaskins.com/JavaPrograms/DeathWorm/small.php"&gt;&lt;/a&gt;&lt;a href="http://www.theadamgaskins.com/JavaPrograms/DeathWorm/"&gt;Medium Size&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.theadamgaskins.com/JavaPrograms/DeathWorm/large.php"&gt;Large Size&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-1297321084527910270?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/1297321084527910270/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2010/06/death-worm-java-remake.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/1297321084527910270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/1297321084527910270'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2010/06/death-worm-java-remake.html' title='Death Worm: Java Remake'/><author><name>Adam Gaskins</name><uri>http://www.blogger.com/profile/04187211919205650435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-6yrdjv3hXIA/TrtIrCbVgxI/AAAAAAAAAF8/dtrv8MPqqBQ/s220/cyaneyes.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-8606485459457675159</id><published>2010-06-17T21:04:00.000-04:00</published><updated>2010-06-17T21:04:36.435-04:00</updated><title type='text'>Java Games</title><content type='html'>Java games are surprisingly easy to create. You just need to download the JDK from sun microsystem's website and you're all set! You don't need to download the JMF or anything for audio or images. This tutorial will really help; its how I learned:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.javacooperation.gmxhome.de/TutorialStartEng.html"&gt;http://www.javacooperation.gmxhome.de/TutorialStartEng.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Good luck, and happy programming!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-8606485459457675159?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/8606485459457675159/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2010/06/java-games.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/8606485459457675159'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/8606485459457675159'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2010/06/java-games.html' title='Java Games'/><author><name>Adam Gaskins</name><uri>http://www.blogger.com/profile/04187211919205650435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-6yrdjv3hXIA/TrtIrCbVgxI/AAAAAAAAAF8/dtrv8MPqqBQ/s220/cyaneyes.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-1534792915727444653</id><published>2010-06-10T17:19:00.001-04:00</published><updated>2010-06-12T11:55:40.923-04:00</updated><title type='text'>YouTube Embed Test</title><content type='html'>&lt;span class="Apple-style-span" style="color: #1232a6; font-family: arial; font-size: large;"&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-size: 17px; white-space: nowrap;"&gt;&lt;object height="385" width="640"&gt;&lt;param name="movie" value="http://www.youtube.com/v/85yLt25zjJo&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;rel=0"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/85yLt25zjJo&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #1232a6; font-family: arial; font-size: large;"&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-size: 17px; white-space: nowrap;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #1232a6; font-family: arial; font-size: large;"&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-size: 17px; white-space: nowrap;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #1232a6; font-family: arial; font-size: large;"&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-size: 17px; white-space: nowrap;"&gt;&lt;object height="340" width="560"&gt;&lt;param name="movie" value="http://www.youtube.com/v/85yLt25zjJo&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;rel=0"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/85yLt25zjJo&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-1534792915727444653?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/1534792915727444653/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2010/06/youtube-embed-test.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/1534792915727444653'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/1534792915727444653'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2010/06/youtube-embed-test.html' title='YouTube Embed Test'/><author><name>Adam Gaskins</name><uri>http://www.blogger.com/profile/04187211919205650435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-6yrdjv3hXIA/TrtIrCbVgxI/AAAAAAAAAF8/dtrv8MPqqBQ/s220/cyaneyes.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-2732212420700646895</id><published>2010-06-10T15:31:00.000-04:00</published><updated>2010-06-10T15:31:35.183-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='serialize'/><category scheme='http://www.blogger.com/atom/ns#' term='data'/><category scheme='http://www.blogger.com/atom/ns#' term='unserialize'/><category scheme='http://www.blogger.com/atom/ns#' term='Tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='array'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='serialization'/><category scheme='http://www.blogger.com/atom/ns#' term='to'/><category scheme='http://www.blogger.com/atom/ns#' term='string'/><category scheme='http://www.blogger.com/atom/ns#' term='save'/><category scheme='http://www.blogger.com/atom/ns#' term='File'/><title type='text'>PHP serialization</title><content type='html'>Recently, I was working on a PHP script for my Dad which reads some data, and will make a report on the changes of the data over time. To save the reports, I needed some way to export an array into a file and then read it back from the file in a separate script and have it &lt;i&gt;exactly&lt;/i&gt; the same.&lt;br /&gt;&lt;br /&gt;Thats what the &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;serialize&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&amp;nbsp;function does in PHP. It takes any argument, and converts it to a string. Then you can &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;unserialize&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&amp;nbsp;the string, and get your original object. So I just serialized my array and saved it to a file:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;$string = serialize($array);&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;file_put_contents("saved_data.txt");&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;and saved it to a text document, and when I wanted to access the data:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;unserialize(file_get_contents("saved_data.txt"));&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;If you have more than one object you want to serialize, you can put all of it in an array, and serialize the array.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;$string_1 = "Hello World";&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;$string_2 = "What are you doing?";&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;$string_12 = serialize(array($string_1,$string_2))&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-2732212420700646895?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/2732212420700646895/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2010/06/php-serialization.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/2732212420700646895'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/2732212420700646895'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2010/06/php-serialization.html' title='PHP serialization'/><author><name>Adam Gaskins</name><uri>http://www.blogger.com/profile/04187211919205650435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-6yrdjv3hXIA/TrtIrCbVgxI/AAAAAAAAAF8/dtrv8MPqqBQ/s220/cyaneyes.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-1946528465053162869</id><published>2010-06-05T22:53:00.000-04:00</published><updated>2010-06-05T22:53:53.902-04:00</updated><title type='text'>YouTube HD</title><content type='html'>YouTube is pretty cool for sharing your video tutorials. And its even cooler when your videos are crystal clear quality. Basically, when you record your tutorial, record it in the CamStudio Lossless Codec at 856x480 [or if you have it, the TechSmith Lossless Codec]&lt;br /&gt;&lt;br /&gt;I record my audio separate, and so I load my video into &lt;a href="http://www.virtualdub.org/"&gt;virtualdub&lt;/a&gt;&amp;nbsp;and combine it with my audio. I then add a water mark which says "theadamgaskins" [my YouTube username]. Then I export with the same settings I recorded with. It doesn't loose hardly any quality, even being exported twice. Here's some examples:&lt;br /&gt;&lt;br /&gt;720p:&amp;nbsp;&lt;a href="http://www.youtube.com/watch?v=fSaFU87kL0s"&gt;http://www.tubularlinks.com/watch.aspx?v=fSaFU87kL0s&lt;/a&gt;&lt;br /&gt;480p:&amp;nbsp;&lt;a href="http://www.youtube.com/watch?v=L9Tx7ZMFb4g"&gt;http://www.tubularlinks.com/watch.aspx?v=L9Tx7ZMFb4g&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-1946528465053162869?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/1946528465053162869/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2010/06/youtube-hd.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/1946528465053162869'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/1946528465053162869'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2010/06/youtube-hd.html' title='YouTube HD'/><author><name>Adam Gaskins</name><uri>http://www.blogger.com/profile/04187211919205650435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-6yrdjv3hXIA/TrtIrCbVgxI/AAAAAAAAAF8/dtrv8MPqqBQ/s220/cyaneyes.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-7042251829862633395</id><published>2010-06-05T14:58:00.002-04:00</published><updated>2010-06-05T16:08:05.569-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='video'/><category scheme='http://www.blogger.com/atom/ns#' term='screen'/><category scheme='http://www.blogger.com/atom/ns#' term='Techsmith'/><category scheme='http://www.blogger.com/atom/ns#' term='free'/><category scheme='http://www.blogger.com/atom/ns#' term='capture'/><category scheme='http://www.blogger.com/atom/ns#' term='recorder'/><category scheme='http://www.blogger.com/atom/ns#' term='Lagarith'/><category scheme='http://www.blogger.com/atom/ns#' term='codec'/><category scheme='http://www.blogger.com/atom/ns#' term='lossless'/><category scheme='http://www.blogger.com/atom/ns#' term='record'/><category scheme='http://www.blogger.com/atom/ns#' term='camtasia'/><category scheme='http://www.blogger.com/atom/ns#' term='compressor'/><category scheme='http://www.blogger.com/atom/ns#' term='camstudio'/><title type='text'>Lossless Codec</title><content type='html'>&lt;a href="http://revelationit.net/eStore/images/9100B_big.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="132" src="http://revelationit.net/eStore/images/9100B_big.jpg" width="200" /&gt;&lt;/a&gt;For my video tutorials on youtube [&lt;a href="http://www.youtube.com/user/theadamgaskins"&gt;View my Channel&lt;/a&gt;] I was previously using the Techsmith Lossless codec in CamStudio. The quality was epic, and so was the encoding speed. But just yesterday [or the day before, I don't remember] my Camtasia Studio trial expired. So that means that the Techsmith codec wouldn't work either.&lt;br /&gt;&lt;br /&gt;A quick Google search revealed &lt;a href="http://compression.ru/video/ls-codec/index_en.html"&gt;MSU&lt;/a&gt;, a free open source lossless codec. The download was a DLL, so I just had to put it in the system32 folder on my pc. Then I can use it in CamStudio for very high quality, and an insanely low size, video!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-7042251829862633395?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/7042251829862633395/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2010/06/lossless-codec.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/7042251829862633395'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/7042251829862633395'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2010/06/lossless-codec.html' title='Lossless Codec'/><author><name>Adam Gaskins</name><uri>http://www.blogger.com/profile/04187211919205650435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-6yrdjv3hXIA/TrtIrCbVgxI/AAAAAAAAAF8/dtrv8MPqqBQ/s220/cyaneyes.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-6037385156475345640</id><published>2010-05-31T10:59:00.000-04:00</published><updated>2010-05-31T10:59:38.171-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='3D'/><category scheme='http://www.blogger.com/atom/ns#' term='Tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='comprehensive'/><category scheme='http://www.blogger.com/atom/ns#' term='animation'/><category scheme='http://www.blogger.com/atom/ns#' term='compilation'/><category scheme='http://www.blogger.com/atom/ns#' term='animate'/><category scheme='http://www.blogger.com/atom/ns#' term='list'/><category scheme='http://www.blogger.com/atom/ns#' term='animations'/><category scheme='http://www.blogger.com/atom/ns#' term='compile'/><category scheme='http://www.blogger.com/atom/ns#' term='blender'/><title type='text'>Blender Tutorial Compilation</title><content type='html'>&lt;blockquote&gt;&lt;i&gt;Finally getting tired of searching google and youtube for useful Blender tutorials, Adam Gaskins creates an online Blender Tutorial Compilation. Anybody can access it and suggest/create tutorials for it.&lt;/i&gt;&lt;/blockquote&gt;&lt;a href="http://www.theadamgaskins.com/Blender/"&gt;http://www.theadamgaskins.com/Blender/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Complete with a mailing list for the most popular/best tutorials!&lt;br /&gt;&lt;br /&gt;As of now, I only have like 20 some tutorials. So any suggestions are readily accepted!&lt;br /&gt;&lt;br /&gt;The basic guidelines for tutorials are:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;Audio voiceover:&lt;/b&gt;&amp;nbsp;Unless the tutorial is &lt;i&gt;very&lt;/i&gt;&amp;nbsp;good, it won't be accepted without a useful audio voiceover. This is mainly what makes or breaks a tutorial.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Straightforwardness:&lt;/b&gt;&amp;nbsp;An annoying thing with some tutorials, is they aren't straightforward; they're wobbly backwards. Make your tutorials as easy to understand as possible. Walk yourself through your tutorial before you record it. This also can make or break a tutorial&lt;/li&gt;&lt;li&gt;&lt;b&gt;Good Quality:&lt;/b&gt;&amp;nbsp;This isn't a &lt;i&gt;requirement&lt;/i&gt;, but if you have a 320x480 resolution tutorial, it most likely won't be accepted.&lt;/li&gt;&lt;/ul&gt;If a tutorial meets the first two requirements, and the last one more or less, then it will most likely be added on the site.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-6037385156475345640?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/6037385156475345640/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2010/05/blender-tutorial-compilation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/6037385156475345640'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/6037385156475345640'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2010/05/blender-tutorial-compilation.html' title='Blender Tutorial Compilation'/><author><name>Adam Gaskins</name><uri>http://www.blogger.com/profile/04187211919205650435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-6yrdjv3hXIA/TrtIrCbVgxI/AAAAAAAAAF8/dtrv8MPqqBQ/s220/cyaneyes.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-2148859247069061472</id><published>2010-05-01T00:10:00.000-04:00</published><updated>2010-05-01T00:10:00.539-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='prank'/><category scheme='http://www.blogger.com/atom/ns#' term='down'/><category scheme='http://www.blogger.com/atom/ns#' term='shut'/><category scheme='http://www.blogger.com/atom/ns#' term='batch'/><category scheme='http://www.blogger.com/atom/ns#' term='vista'/><category scheme='http://www.blogger.com/atom/ns#' term='your'/><category scheme='http://www.blogger.com/atom/ns#' term='xp'/><category scheme='http://www.blogger.com/atom/ns#' term='windows'/><category scheme='http://www.blogger.com/atom/ns#' term='shutdown'/><category scheme='http://www.blogger.com/atom/ns#' term='computer'/><category scheme='http://www.blogger.com/atom/ns#' term='7'/><title type='text'>How to shutdown your computer</title><content type='html'>There is a command in the command line in Windows XP, Vista, and 7 that lets you shutdown your computer. Combined with the right arguments, you can create a prank on somebody. First create a batch script with this code:&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; border-collapse: collapse; color: #005900; font-family: monospace; font-size: 13px;"&gt;SHUTDOWN -s -t 05&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: monospace; font-size: small;"&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; border-collapse: collapse; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; border-collapse: collapse;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;That shuts down the computer after a five second delay. Then, create a shortcut to the batch script on the desktop, and name it whatever. For this example, lets say you named it "Google Chrome". Then assign the shortcut the Google Chrome logo, and delete the real Google Chrome icon. So then, when an unsuspecting person opens Google Chrome, their computer shuts down!&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; border-collapse: collapse;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; border-collapse: collapse;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Additionally, you can use the argument -c "text", and it will display "text" during the five second delay.&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-2148859247069061472?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/2148859247069061472/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2010/05/how-to-shutdown-your-computer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/2148859247069061472'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/2148859247069061472'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2010/05/how-to-shutdown-your-computer.html' title='How to shutdown your computer'/><author><name>Adam Gaskins</name><uri>http://www.blogger.com/profile/04187211919205650435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-6yrdjv3hXIA/TrtIrCbVgxI/AAAAAAAAAF8/dtrv8MPqqBQ/s220/cyaneyes.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-5699957512241351957</id><published>2010-04-20T21:05:00.001-04:00</published><updated>2010-04-20T21:05:53.232-04:00</updated><title type='text'>Magnifeye</title><content type='html'>&lt;object height="364" width="445"&gt;&lt;param name="movie" value="http://www.youtube.com/v/Ic2ltjoGsgk&amp;hl=en_US&amp;fs=1&amp;rel=0&amp;color1=0x234900&amp;color2=0x4e9e00&amp;border=1"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/Ic2ltjoGsgk&amp;hl=en_US&amp;fs=1&amp;rel=0&amp;color1=0x234900&amp;color2=0x4e9e00&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="445" height="364"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"&gt;I made this in c# as an exercise. Its free to use. If you use it in your videos, you don't have to give me credit. Well... please do. But you don't have to.&lt;br /&gt;&lt;br /&gt;Supports zooming and resizing, and follows the mouse. If I make another version, then I will probably add more customizable options.&lt;br /&gt;&lt;br /&gt;Download:&amp;nbsp;&lt;a dir="ltr" href="http://www.theadamgaskins.com/Magnifeye/publish.htm" rel="nofollow" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0033cc; font-size: 12px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;" target="_blank" title="http://www.theadamgaskins.com/Magnifeye/publish.htm"&gt;http://www.theadamgaskins.com/Magnife...&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If you find any bugs, or have feature suggestions, lemme know!&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-5699957512241351957?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/5699957512241351957/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2010/04/magnifeye.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/5699957512241351957'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/5699957512241351957'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2010/04/magnifeye.html' title='Magnifeye'/><author><name>Adam Gaskins</name><uri>http://www.blogger.com/profile/04187211919205650435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-6yrdjv3hXIA/TrtIrCbVgxI/AAAAAAAAAF8/dtrv8MPqqBQ/s220/cyaneyes.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-5752933941913312913</id><published>2010-04-17T13:47:00.009-04:00</published><updated>2010-04-17T14:10:55.210-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='out'/><category scheme='http://www.blogger.com/atom/ns#' term='1.5'/><category scheme='http://www.blogger.com/atom/ns#' term='Joomla'/><category scheme='http://www.blogger.com/atom/ns#' term='authentication'/><category scheme='http://www.blogger.com/atom/ns#' term='locked'/><category scheme='http://www.blogger.com/atom/ns#' term='account'/><category scheme='http://www.blogger.com/atom/ns#' term='of'/><title type='text'>Joomla 1.5: Locking Yourself Out</title><content type='html'>&lt;div style="text-align: left;"&gt;Joomla 1.5 is pretty good for making sites. There is one pretty major bug, though, that needs to be fixed.&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;If you go to the plugin manager, at [or near] the top, you'll see something like "Joomla -- Authentication". NEVER change the "published" to false. Otherwise you'll be locked out, because you disabled logging in!&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://4.bp.blogspot.com/_XECyVhUy8fQ/S8n4ZW9XF7I/AAAAAAAAAAk/B0-i2sZAqSk/s1600/joomlaeg1.png"&gt;&lt;img src="http://4.bp.blogspot.com/_XECyVhUy8fQ/S8n4ZW9XF7I/AAAAAAAAAAk/B0-i2sZAqSk/s400/joomlaeg1.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5461169137706801074" style="float: left; margin-top: 0px; margin-right: 10px; margin-bottom: 10px; margin-left: 0px; cursor: pointer; width: 400px; height: 240px; " /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;If you &lt;i&gt;do&lt;/i&gt; happen to have this happen, then don't worry. All you have to do is edit the database. I recommend using phpMyAdmin, but you can do the raw SQL too, if you want.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So start up phpMyAdmin, and find the joomla database. It usually has 'jo' in the name somewhere. Then go to the 'jos_plugins' table, and go into browse mode. Find the "Authentication - Joomla" field, and edit it. Scroll down [if necessary] to the publish field. Change it to 1. Save.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now you can login!&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-5752933941913312913?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/5752933941913312913/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2010/04/joomla-15-locking-yourself-out.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/5752933941913312913'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/5752933941913312913'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2010/04/joomla-15-locking-yourself-out.html' title='Joomla 1.5: Locking Yourself Out'/><author><name>Adam Gaskins</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_XECyVhUy8fQ/S8n4ZW9XF7I/AAAAAAAAAAk/B0-i2sZAqSk/s72-c/joomlaeg1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-3770075841050525174</id><published>2010-04-10T14:10:00.000-04:00</published><updated>2010-04-10T14:10:09.771-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='chick'/><category scheme='http://www.blogger.com/atom/ns#' term='beach'/><category scheme='http://www.blogger.com/atom/ns#' term='cold'/><title type='text'>The Beach</title><content type='html'>Well, I'm at the beach. My Grandparents have a beach house, which they wanted to make a maintenance trip to, and brought us along. Its about 72 or so degrees, and very sunny, so I wear a coat and sunglasses. How ironic [ironically].&lt;br /&gt;&lt;br /&gt;Anyways, we fixed the spring on the door, screwed in some broken railings, fixed the swinging gate at the top of the stairs etc... We're getting ready to go down to the actual beach, which we haven't done since we arrived yesterday. Luke is going to go swimming in the ocean. I'll probably just sit on a towel on the beach and not get dirty.&lt;br /&gt;&lt;br /&gt;They have wireless Internet setup, and Grandpa let me use his laptop, so that's how I'm blogging.&lt;br /&gt;&lt;br /&gt;Two days ago, we got six more chicks..... I don't remember what kind. The girls call them cute.... I'd rather name each one separately though.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-3770075841050525174?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/3770075841050525174/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2010/04/beach.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/3770075841050525174'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/3770075841050525174'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2010/04/beach.html' title='The Beach'/><author><name>Adam Gaskins</name><uri>http://www.blogger.com/profile/04187211919205650435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-6yrdjv3hXIA/TrtIrCbVgxI/AAAAAAAAAF8/dtrv8MPqqBQ/s220/cyaneyes.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-2109978939735708380</id><published>2010-03-31T16:04:00.001-04:00</published><updated>2010-03-31T16:10:21.080-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Game'/><category scheme='http://www.blogger.com/atom/ns#' term='lesson'/><category scheme='http://www.blogger.com/atom/ns#' term='Design'/><title type='text'>A Lesson in Game Design</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_gwhgUiaudKU/S7OsJfOJBNI/AAAAAAAAACo/qXgQoxd7-u0/s1600-h/joystick.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="193" src="http://3.bp.blogspot.com/_gwhgUiaudKU/S7OsJfOJBNI/AAAAAAAAACo/qXgQoxd7-u0/s200/joystick.png" width="200" /&gt;&lt;/a&gt;&lt;/div&gt;You can tell when you are playing a good game. Hours fly by as mere minutes. You become so immersed in the game world you don't want to stop. How do you come up with a game concept so grabbing? Well, for one thing, even if you have a pretty lame idea, it can be made into a fairly cool game if you design it correctly. But to make a game that people will love, you have to love it yourself. The creator of Pokemon, Shigeru Miyamoto, originally created the game because he had an idea that he loved, and so just made it for his own personal use. He sold it, and got tons of money.&lt;br /&gt;&lt;br /&gt;Sid Meier says the easiest way to get a game concept is to dream up the details, then genre [e.g. I want to make a game about cars... I think action would be the best genre for this]. This is pretty good advice. If you try to start with FPS.... what hasn't been done before? But if you start with a car concept and choose the genre FPS then you might come up with a mix between Mario kart and Halo.&lt;br /&gt;&lt;br /&gt;You need LOTS of play testers. Your fellow nerds [assuming you're a nerd], your Mom &amp;amp; Dad, all your friends, just anybody who will play test it. They can give you valuable feedback on what aspects are too hard/easy/annoying etc... Also, with all these people anticipating the game to be released, you are less motivated to just stop developing the game.&lt;br /&gt;&lt;br /&gt;You also need motivation. There have been precious few games I have actually finished. 99% of my games I just stopped developing because I lost motivation. If you lose motivation, just plod your way through unless its obvious that the game idea is lame. Sooner or later [hopefully the former] you will regain motivation when things get more interesting.&lt;br /&gt;&lt;br /&gt;Most game ideas are lame. Totally lame. [Yeah, I know. The cup is half full with me right?] And sometimes, you don't realise it until after you spend hours [even days] working on the game. So DON'T START DEVELOPING until you know that the idea at least isn't FULLY lame. Write down all the details about your game idea on a piece of paper or type them up [I always do the latter]. Then come back after a long period of time. Try not to think about the game idea too much. Come back at the least an hour or so later. For best results [now I sound like pop tart toasting instruct writer] I would leave the idea for a full day. When you come back to the idea, try to think about your game in a rational way. Try to think why the game would be fun to play. If you do this, you could save yourself hours [even days] of work. Once you think you're sure the idea isn't lame, or at least is kind of fun, then start designing!&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_gwhgUiaudKU/S7Or7LBe2WI/AAAAAAAAACk/_7Z0ZQdd0YA/s1600-h/code.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="150" src="http://1.bp.blogspot.com/_gwhgUiaudKU/S7Or7LBe2WI/AAAAAAAAACk/_7Z0ZQdd0YA/s200/code.jpg" width="200" /&gt;&lt;/a&gt;Now for the designing part. If you are totally new to the whole programming thing, then &lt;a href="http://www.yoyogames.com/gamemaker"&gt;Game Maker&lt;/a&gt; is for you. If you feel you are willing to actually type in the code, then you should look at Microsoft's&amp;nbsp;&lt;a href="http://msdn.microsoft.com/en-us/library/bb200104.aspx"&gt;XNA game studio&lt;/a&gt;, Microsoft's &lt;a href="http://gdk.thegamecreators.com/"&gt;Dark GDK&lt;/a&gt;, and &lt;a href="http://java.sun.com/javase/downloads/widget/jdk6.jsp"&gt;Java&lt;/a&gt;. I personally use XNA, but its your choice. Maybe sometime in the future I'll make some XNA or Java tutorials..... but not right now.&lt;br /&gt;&lt;br /&gt;Anyways, that pretty much wraps up this "tutorial". Thanks for reading!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-2109978939735708380?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/2109978939735708380/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2010/03/lesson-in-game-design.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/2109978939735708380'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/2109978939735708380'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2010/03/lesson-in-game-design.html' title='A Lesson in Game Design'/><author><name>Adam Gaskins</name><uri>http://www.blogger.com/profile/04187211919205650435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-6yrdjv3hXIA/TrtIrCbVgxI/AAAAAAAAAF8/dtrv8MPqqBQ/s220/cyaneyes.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_gwhgUiaudKU/S7OsJfOJBNI/AAAAAAAAACo/qXgQoxd7-u0/s72-c/joystick.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-1840610981228623631</id><published>2010-03-28T17:51:00.001-04:00</published><updated>2010-03-31T15:40:45.168-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='chick'/><category scheme='http://www.blogger.com/atom/ns#' term='died'/><category scheme='http://www.blogger.com/atom/ns#' term='dirty'/><category scheme='http://www.blogger.com/atom/ns#' term='water'/><title type='text'>We now have nine chicks</title><content type='html'>We used to have ten. One died. I'm not going to point any fingers, but my Mom says its her fault because she didn't change the water before she went on her retreat. But anyways we don't care. We didn't name it; we're not attached to it:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Sulley, you're not supposed to name it!&amp;nbsp;Once you name it, you start getting attached to it! Now put that thing back where it came from or so help me...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;-- Mike Wazowski&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;Princess Daisy is doing fine. Whenever we put her back in with the other chicks, though, they peck her. So my Mom bought separate water and food feeders for her. Now I thought that being a chick was boring. They just waddle around all day. But being a chick by yourself..... that must be really boring.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-1840610981228623631?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/1840610981228623631/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2010/03/we-now-have-ten-chicks.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/1840610981228623631'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/1840610981228623631'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2010/03/we-now-have-ten-chicks.html' title='We now have nine chicks'/><author><name>Adam Gaskins</name><uri>http://www.blogger.com/profile/04187211919205650435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-6yrdjv3hXIA/TrtIrCbVgxI/AAAAAAAAAF8/dtrv8MPqqBQ/s220/cyaneyes.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-9200560797357537645</id><published>2010-03-27T14:06:00.000-04:00</published><updated>2010-03-27T14:06:33.831-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='chick'/><category scheme='http://www.blogger.com/atom/ns#' term='daisy'/><category scheme='http://www.blogger.com/atom/ns#' term='princess'/><category scheme='http://www.blogger.com/atom/ns#' term='chicken'/><title type='text'>Princess Daisy</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_gwhgUiaudKU/S65F-RbQScI/AAAAAAAAACc/bZ8CRjjoUtM/s1600-h/princessdaisy.PNG" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="320" src="http://2.bp.blogspot.com/_gwhgUiaudKU/S65F-RbQScI/AAAAAAAAACc/bZ8CRjjoUtM/s320/princessdaisy.PNG" width="240" /&gt;&lt;/a&gt;&lt;/div&gt;Most of you have probably heard of the female video game heroine, Princess Daisy. But most of you have probably &lt;i&gt;not&lt;/i&gt;&amp;nbsp;heard of the chicken named Princess Daisy.&lt;br /&gt;&lt;blockquote&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Princess Daisy is the princess of Sarasaland, who first appeared in the game Super Mario Land. &amp;nbsp;Although Daisy is the ruler of Sarasaland, her current place of residence is in the Mushroom Kingdom.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;-- Mario Wiki&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;Our &lt;i&gt;chicken &lt;/i&gt;named Daisy hurt its leg a few days ago. The girls nursed it back to health and named it after the video game character Princess Daisy [don't ask me why]. I think Mike Wazowski said it perfectly:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Sulley, you're not supposed to name it!&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="__gqs-tidbit __gqs-tidbit-0" style="background-color: #ffffdd; display: inline !important;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Once you name it, you start getting attached to it! Now put that thing back where it came from or so help me...&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;-- Mike Wazowski&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;But I admit its not likely that we'll be bringing Daisy back to the store.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-9200560797357537645?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/9200560797357537645/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2010/03/princess-daisy.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/9200560797357537645'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/9200560797357537645'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2010/03/princess-daisy.html' title='Princess Daisy'/><author><name>Adam Gaskins</name><uri>http://www.blogger.com/profile/04187211919205650435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-6yrdjv3hXIA/TrtIrCbVgxI/AAAAAAAAAF8/dtrv8MPqqBQ/s220/cyaneyes.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_gwhgUiaudKU/S65F-RbQScI/AAAAAAAAACc/bZ8CRjjoUtM/s72-c/princessdaisy.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-7556593865758643025</id><published>2010-03-27T13:03:00.000-04:00</published><updated>2010-03-27T13:03:58.598-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='recursive'/><category scheme='http://www.blogger.com/atom/ns#' term='scanner'/><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><category scheme='http://www.blogger.com/atom/ns#' term='project'/><category scheme='http://www.blogger.com/atom/ns#' term='File'/><title type='text'>Python Project: Recursive File Scanner</title><content type='html'>My harddrive was filling up, so I wanted to find the biggest files on my computer. I thought python would be the perfect language to do this, so I wrote a little script. The script starts in drive C:\, and recursively scans through every directory and file on your computer. If any file is larger than one Gigabyte, then it is put in a list. After every file has been scanned, then the program prints out the list of files larger than a Gigabyte. This is very useful for finding big files to clear your hard drive. Here is the code:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;import os&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;def listdir(path):&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;good = []&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;try:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;files = os.listdir(path)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;count = 0&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for i in files:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;filepath = os.path.join(path,files[count])&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte = os.path.getsize(filepath)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;gigabyte = byte / 1073741824&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(gigabyte &amp;gt;= 1):&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;good.append(filepath + " &amp;nbsp;-- &amp;nbsp;" + str(gigabyte) + "GB")&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(os.path.isdir(filepath)):&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bbt = 0&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tempt = listdir(filepath)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for p in tempt:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;good.append(tempt[bbt])&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bbt += 1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;count += 1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;except WindowsError, e:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;print "Windows Error:"+str(e)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;print " -- Continuing..."&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return good&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;lists = listdir("C:\\")&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;count = 0&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;for i in lists:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;print lists[count]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;count += 1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;I am, as we [well actually just me] speak, moving quite a few GB to our MyBook.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-7556593865758643025?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/7556593865758643025/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2010/03/python-project-recursive-file-scanner.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/7556593865758643025'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/7556593865758643025'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2010/03/python-project-recursive-file-scanner.html' title='Python Project: Recursive File Scanner'/><author><name>Adam Gaskins</name><uri>http://www.blogger.com/profile/04187211919205650435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-6yrdjv3hXIA/TrtIrCbVgxI/AAAAAAAAAF8/dtrv8MPqqBQ/s220/cyaneyes.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-7237854095067668322</id><published>2010-03-25T14:49:00.000-04:00</published><updated>2010-03-25T14:49:46.178-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='four'/><category scheme='http://www.blogger.com/atom/ns#' term='types'/><category scheme='http://www.blogger.com/atom/ns#' term='humor'/><category scheme='http://www.blogger.com/atom/ns#' term='comic relief'/><title type='text'>Four Types of Humor</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://www.blogger.com/goog_639502318" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;img border="0" height="199" src="http://1.bp.blogspot.com/_gwhgUiaudKU/S6umbS9OrfI/AAAAAAAAAB0/kfy8Zlt-JUo/s200/comicrelief.jpg" width="200" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;My friend and I are going to make [or at least start making] a movie where I star as the comic relief. So I needed to write up some lines, and then punch them [get it? punchlines?] before we visit next. I came up with a few ways to do that. L&lt;span class="Apple-style-span" style="line-height: normal;"&gt;ets list a few [I say &lt;b&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;"&lt;/span&gt;lets&lt;/b&gt;", but I'm doing all the work]:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Equivocation: You use the same word two times, each time meaning separate things.&lt;br /&gt;&lt;i&gt;If, of all the animals, man is the only rational being, then that means women are irrational&lt;/i&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Sayings that are warped in a way that is applicable.&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Concerning Penguins:&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;i&gt;Birds without feathers flock together&lt;/i&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Mishearing/Misinterpreting One character says something, and the other character responds as if the first character said something that sounds like what he really said.&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Mr. A:&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;i&gt;&amp;nbsp;You are loquacious [lo-kwa-sh&lt;span class="Apple-style-span" style="line-height: 20px;"&gt;u&lt;/span&gt;s]&lt;/i&gt;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Mr. B:&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;i&gt;&amp;nbsp;On the contrary, I'm very cautious!&lt;/i&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Taking Literally: This is probably my favorite; I'm definitely the best at this. When one character says something, the other takes him literally.&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Mr. A:&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;i&gt;&amp;nbsp;Where on earth have you been???&lt;/i&gt;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Mr. B:&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;i&gt;&amp;nbsp;At Latitude 40.68952 and Longitude -74.04444&lt;/i&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="line-height: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;By the way, Latitude 40.68952 and Longitude -74.04444 is the statue of liberty.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="line-height: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="line-height: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;So hopefully, with these in mind, you can write funny one-liners/dialog.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="line-height: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;I don't want to get involved with any copyright infringement or whatever, so I'm going to say that equivocation joke was from &lt;i&gt;The Fallacy Detective.&lt;/i&gt;&amp;nbsp;The rest are made up by me.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-7237854095067668322?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/7237854095067668322/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2010/03/four-types-of-humor.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/7237854095067668322'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/7237854095067668322'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2010/03/four-types-of-humor.html' title='Four Types of Humor'/><author><name>Adam Gaskins</name><uri>http://www.blogger.com/profile/04187211919205650435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-6yrdjv3hXIA/TrtIrCbVgxI/AAAAAAAAAF8/dtrv8MPqqBQ/s220/cyaneyes.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_gwhgUiaudKU/S6umbS9OrfI/AAAAAAAAAB0/kfy8Zlt-JUo/s72-c/comicrelief.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-3327666726056397203</id><published>2010-03-25T13:42:00.001-04:00</published><updated>2010-03-25T14:05:56.756-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='yesterday'/><category scheme='http://www.blogger.com/atom/ns#' term='chick'/><category scheme='http://www.blogger.com/atom/ns#' term='comic relief'/><category scheme='http://www.blogger.com/atom/ns#' term='fire alarm'/><category scheme='http://www.blogger.com/atom/ns#' term='greek'/><title type='text'>Yesterday....</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_gwhgUiaudKU/S6ul7r7jO3I/AAAAAAAAABs/Q4aI5EKov04/s1600/firealarm.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="200" src="http://3.bp.blogspot.com/_gwhgUiaudKU/S6ul7r7jO3I/AAAAAAAAABs/Q4aI5EKov04/s200/firealarm.jpg" width="200" /&gt;&lt;/a&gt;&lt;/div&gt;.... we went to Greek class. As we sat down for our quiz, the fire alarm went off. We grabbed our most important stuff, and piled outdoors. We finished the quiz outside, a good distance from the building. Nathan said he wished he left his geometry book inside in case the building was on fire. By the time we finished the quiz, the alarm had stopped. We all went back in and continued class as normal.&lt;br /&gt;&lt;br /&gt;While the Mom's were talking [instead of leaving =)] me and Nathan talked about some movie concepts. He wanted me to be the Comic Relief, so on the way home I made up some puns and humorous equivocation. I'm thinking about making a tutorial on how to write Comic Relief...&lt;br /&gt;&lt;br /&gt;Around 10:00 last night, we went into our garage to check on our chicks. One of them had a broken leg or something, and it couldn't walk. All the other chicks were pecking at it. We put it in a separate box [lined with newspapers and wood chips] and gave it its own food/water supply. This morning, it was just a tad bit better.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-3327666726056397203?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/3327666726056397203/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2010/03/yesterday.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/3327666726056397203'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/3327666726056397203'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2010/03/yesterday.html' title='Yesterday....'/><author><name>Adam Gaskins</name><uri>http://www.blogger.com/profile/04187211919205650435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-6yrdjv3hXIA/TrtIrCbVgxI/AAAAAAAAAF8/dtrv8MPqqBQ/s220/cyaneyes.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_gwhgUiaudKU/S6ul7r7jO3I/AAAAAAAAABs/Q4aI5EKov04/s72-c/firealarm.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-7052475325025024292</id><published>2010-03-23T16:08:00.008-04:00</published><updated>2010-03-23T16:17:55.451-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='four'/><category scheme='http://www.blogger.com/atom/ns#' term='Input'/><category scheme='http://www.blogger.com/atom/ns#' term='4'/><category scheme='http://www.blogger.com/atom/ns#' term='Output'/><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><category scheme='http://www.blogger.com/atom/ns#' term='IO'/><category scheme='http://www.blogger.com/atom/ns#' term='File'/><title type='text'>Python Tutorial 4: File IO</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_gwhgUiaudKU/S6kg0jvQdZI/AAAAAAAAABc/qLJ09D26pfc/s1600-h/pythonlogo.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="195" src="http://2.bp.blogspot.com/_gwhgUiaudKU/S6kg0jvQdZI/AAAAAAAAABc/qLJ09D26pfc/s200/pythonlogo.png" width="200" /&gt;&lt;/a&gt;&lt;a href="http://4.bp.blogspot.com/_gwhgUiaudKU/S6kg2AcYQEI/AAAAAAAAABk/CRdImL4CP0M/s1600-h/FileIO.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="200" src="http://4.bp.blogspot.com/_gwhgUiaudKU/S6kg2AcYQEI/AAAAAAAAABk/CRdImL4CP0M/s200/FileIO.png" width="200" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://4.bp.blogspot.com/_gwhgUiaudKU/S6kg2AcYQEI/AAAAAAAAABk/CRdImL4CP0M/s1600-h/FileIO.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;/a&gt;If&amp;nbsp;you have worked with PHP or Perl, then file IO should be familiar. To edit/read a file, you need a file object. To get the file object, you have to open the file.&lt;/div&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;fileObject = open("file.ext", "r")&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;print fileObject.read()&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;But what if you wanted to start reading from the middle of the file? In python, this is possible. To set the file read cursor, you must use the seek function:&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;fileObject.seek(offset,where)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;where&lt;/b&gt;&amp;nbsp;is optional, and it tells the compiler where to start from in the file. If &lt;b&gt;where &lt;/b&gt;is 0, then it puts the cursor at&amp;nbsp;&lt;b&gt;offset &lt;/b&gt;characters from the start of the file. If it is 1, the characters are counted form where the cursor is currently. If 2, then they are counted from the end of the file. If &lt;b&gt;where&lt;/b&gt;&amp;nbsp;is not specified, then the compiler uses 0.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;The&amp;nbsp;&lt;b&gt;offset&lt;/b&gt;&amp;nbsp;[as previously explained] tells the compiler how far from &lt;b&gt;where&lt;/b&gt;&amp;nbsp;to set the cursor. Negative numbers are acceptable&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;fileObject.seek(15,0)&lt;/span&gt;&lt;/span&gt; would move the cursor 15 characters from the beginning of the file&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;fileObject.seek(15,1)&lt;/span&gt;&lt;/span&gt; would move the cursor 15 characters to the right from its current position&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;fileObject.seek(-15,2)&lt;/span&gt;&lt;/span&gt; would move the cursor 15 characters away from the end of the file&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Notice the negative sign before the fifteen in the last example.&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;seek, read, and open are the most basic IO functions. Lets look at some more:&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; tell(), readline(), readlines(), write() &lt;span class="Apple-style-span" style="font-family: inherit;"&gt;and &lt;/span&gt;close()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;tell() &lt;/span&gt;&lt;/span&gt;gets the position of the cursor in the file, which [as shown above] can be set with&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; seek()&lt;/span&gt;&lt;/span&gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;cursorPos = fileObject.tell()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;readline()&lt;/span&gt;&lt;/span&gt; function reads from the cursor position to the end of the line. The &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;readlines()&lt;/span&gt;&lt;/span&gt; function reads from the cursor position to the end of the file, and returns an array with each line in a separate index. You will &lt;i&gt;never &lt;/i&gt;guess what the &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;write()&lt;/span&gt;&lt;/span&gt; function does. Ok, you might if you are really smart. Assuming you &lt;i&gt;arn't&lt;/i&gt; really smart, I'll tell you what it does. It writes to the file. It writes at the cursor position, overwriting any characters infront of it, like if you press the Insert button in Microsoft Word and type. The &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;close()&lt;/span&gt;&lt;/span&gt; function closes the file object so you can't read or write to it anymore without reopening the file. You should always remember to do this because if you don't, then the changes you made most likely won't effect the file.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now lets talk about pickles. No I'm not being random; Pickles are a way in python to save objects to files. You can save almost any object to a file with pickles. Inorder to use them, though, you have to import them with the statement: import pickle. Then you use the &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;pickle.dump()&lt;/span&gt;&lt;/span&gt; function to save them to the file:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;import pickle&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;numbers = ["one",2,"three","four",5,"can you count?"]&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;fileObject = open("numbers.txt", "w")&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;pickle.dump(numbers,fileObject)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;fileObject.close()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;To read a pickle back in, you use the &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;pickle.load()&lt;/span&gt;&lt;/span&gt; function:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;import pickle&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;fileObject = open("numbers.txt", "r")&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;numbers = pickle.load(fileObject)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;fileObject.close()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;for item in numbers&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;print item&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The main con with pickles is that you can't save more than one object to a file. A way around this would be to put all the objects into an array, and then save the array to the file.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;That concludes my fourth python tutorial.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-7052475325025024292?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/7052475325025024292/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2010/03/python-tutorial-4-file-io.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/7052475325025024292'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/7052475325025024292'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2010/03/python-tutorial-4-file-io.html' title='Python Tutorial 4: File IO'/><author><name>Adam Gaskins</name><uri>http://www.blogger.com/profile/04187211919205650435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-6yrdjv3hXIA/TrtIrCbVgxI/AAAAAAAAAF8/dtrv8MPqqBQ/s220/cyaneyes.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_gwhgUiaudKU/S6kg0jvQdZI/AAAAAAAAABc/qLJ09D26pfc/s72-c/pythonlogo.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-8092410001164558549</id><published>2010-03-22T15:20:00.001-04:00</published><updated>2010-03-22T15:25:00.194-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='three'/><category scheme='http://www.blogger.com/atom/ns#' term='loops'/><category scheme='http://www.blogger.com/atom/ns#' term='conditionals'/><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>Python Tutorial 3: Loops and Conditionals</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;Like I said in my First Python Tutorial, there are no brackets [ &lt;b&gt;{&lt;/b&gt; and &lt;b&gt;}&lt;/b&gt; ] ; Python uses indentation instead.&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;a = 0&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;while a &amp;lt; 10:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a = a + 1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;print a&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;print "End of loop"&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;  &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;Everything after the&lt;b&gt; while a &amp;lt; 10: &lt;/b&gt;statement that is indented is repeated until&lt;b&gt; a&lt;/b&gt; is no longer smaller than 10. Everytime through the loop, &lt;b&gt;a&lt;/b&gt; is incremented, and then printed. The output of this program:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;  &lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;2&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;3&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;4&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;5&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;6&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;7&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;8&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;9&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;10&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;End of loop&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;  &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Notice that "End of loop" is only printed once. That is because it is not indented, and hence comes after the while loop ends. Here is the basic form for the while loop:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;while {condition that the loop continues}:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{what to do in the loop}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{have it indented, usually for spaces}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;{the code here is not looped}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;{because it isn't indented}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: medium; font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, sans-serif; font-size: 16px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, sans-serif; font-size: 16px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, sans-serif; font-size: 16px;"&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;The if statement is rather similar&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;if(&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;condition&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;statements&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;else&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;statements&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;This can be very useful for many things&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;if(enteredPassword == correctPassword)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;login()&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;else&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;print "Incorrect password";&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-8092410001164558549?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/8092410001164558549/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2010/03/python-tutorial-3-loops-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/8092410001164558549'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/8092410001164558549'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2010/03/python-tutorial-3-loops-and.html' title='Python Tutorial 3: Loops and Conditionals'/><author><name>Adam Gaskins</name><uri>http://www.blogger.com/profile/04187211919205650435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-6yrdjv3hXIA/TrtIrCbVgxI/AAAAAAAAAF8/dtrv8MPqqBQ/s220/cyaneyes.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-5063596616142499111</id><published>2010-03-22T14:32:00.003-04:00</published><updated>2010-03-22T14:34:27.186-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='chick'/><category scheme='http://www.blogger.com/atom/ns#' term='tractor'/><category scheme='http://www.blogger.com/atom/ns#' term='chicken'/><category scheme='http://www.blogger.com/atom/ns#' term='baby'/><title type='text'>Chicks</title><content type='html'>&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; color: #333333; font-family: Helvetica, Arial, sans-serif; font-size: 12px; line-height: 15px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="margin-bottom: 5px; margin-top: 0px;"&gt;We got baby chicks! I knew Mom &amp;amp; Dad were planning to do this eventually, so I was surprised when they walked out of Tractor Supply Co. with them. They had gone in to buy supplies for them, so we'd be ready when we got them.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div style="margin-bottom: 5px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 5px; margin-top: 0px;"&gt;We currently have them in a box in our garage. We had to buy wood shavings and a special heat lamp and water container for them.&amp;nbsp;We lined the cardboard box with newspapers, then covered it with wood shavings.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;click images to view them full size&lt;/i&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_gwhgUiaudKU/S6e088SczwI/AAAAAAAAAAs/w2dCyckSKsA/s1600-h/DSC04740.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_gwhgUiaudKU/S6e088SczwI/AAAAAAAAAAs/w2dCyckSKsA/s320/DSC04740.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_gwhgUiaudKU/S6e1KGG6FkI/AAAAAAAAAA0/wFvMqBKYkBs/s1600-h/DSC04744.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_gwhgUiaudKU/S6e1KGG6FkI/AAAAAAAAAA0/wFvMqBKYkBs/s320/DSC04744.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="margin-bottom: 5px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 5px; margin-top: 0px;"&gt;I must be out of my mind; uploading pictures that don't have me in them.....&lt;/div&gt;&lt;div style="margin-bottom: 5px; margin-top: 0px;"&gt;Now for the chicks:&lt;/div&gt;&lt;div style="margin-bottom: 5px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_gwhgUiaudKU/S6e0ta6eUOI/AAAAAAAAAAk/4qQUauJNxWI/s1600-h/DSC04734.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_gwhgUiaudKU/S6e0ta6eUOI/AAAAAAAAAAk/4qQUauJNxWI/s320/DSC04734.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_gwhgUiaudKU/S6e1oI3pbOI/AAAAAAAAAA8/HvkUrQ9iFYY/s1600-h/DSC04733.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_gwhgUiaudKU/S6e1oI3pbOI/AAAAAAAAAA8/HvkUrQ9iFYY/s320/DSC04733.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_gwhgUiaudKU/S6e199yQdxI/AAAAAAAAABU/1pwnKyQSJKM/s1600-h/DSC04737.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_gwhgUiaudKU/S6e199yQdxI/AAAAAAAAABU/1pwnKyQSJKM/s320/DSC04737.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;My Dad will be building the &lt;a href="javascript:window.alert('A chicken tractor, sometimes called an ark, is a movable chicken coop lacking a floor. Chicken tractors may also be used to house other species of poultry, but the name is most often applied to chicken enclosures.\r\n\r\nhttp://en.wikipedia.org/wiki/Chicken_tractor')"&gt;Chicken Tractor&lt;/a&gt;&amp;nbsp;for them, and then they will stay outside. But for now, we'll keep them in our garage.&lt;/div&gt;&lt;div style="margin-bottom: 5px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-5063596616142499111?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/5063596616142499111/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2010/03/chicks.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/5063596616142499111'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/5063596616142499111'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2010/03/chicks.html' title='Chicks'/><author><name>Adam Gaskins</name><uri>http://www.blogger.com/profile/04187211919205650435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-6yrdjv3hXIA/TrtIrCbVgxI/AAAAAAAAAF8/dtrv8MPqqBQ/s220/cyaneyes.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_gwhgUiaudKU/S6e088SczwI/AAAAAAAAAAs/w2dCyckSKsA/s72-c/DSC04740.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-7131824049802702397</id><published>2010-03-21T18:12:00.002-04:00</published><updated>2010-03-22T13:49:29.056-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='versus'/><category scheme='http://www.blogger.com/atom/ns#' term='grammar'/><category scheme='http://www.blogger.com/atom/ns#' term='lesson'/><category scheme='http://www.blogger.com/atom/ns#' term='effect'/><category scheme='http://www.blogger.com/atom/ns#' term='affect'/><title type='text'>Affect vs. Effect</title><content type='html'>I don't know about you, but I haven't ever heard an easy-to-understand rule about when to use &lt;b&gt;&lt;u&gt;a&lt;/u&gt;&lt;/b&gt;ffect and when to use &lt;b&gt;&lt;u&gt;e&lt;/u&gt;&lt;/b&gt;ffect.&lt;br /&gt;&lt;br /&gt;So I could turn this into a really long definition [like a grammar book would], but I'll keep it short and sweet.&lt;br /&gt;&lt;br /&gt;Affect: verb&lt;br /&gt;Effect: noun&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;I affected the dreams of Luke and Levi&lt;/span&gt;&lt;/span&gt; [&lt;a href="http://theadamgaskins.blogspot.com/2010/03/affecting-dreams.html"&gt;view post&lt;/a&gt;]&lt;br /&gt;&lt;br /&gt;Since, in this case affected is a verb, it has an A.&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;The effect of the WordPress editor is not pretty &lt;/span&gt;&lt;/span&gt;[&lt;a href="http://theadamgaskins.blogspot.com/2010/03/why-i-chose-blogger-over-wordpress.html"&gt;view post&lt;/a&gt;]&lt;br /&gt;&lt;br /&gt;In this case effect is a noun, so it has an E. If you already knew this then...... this is just for a reference for me&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_gwhgUiaudKU/S6abEE4yBqI/AAAAAAAAAAc/tkPthx5PG0s/s1600-h/tounge.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_gwhgUiaudKU/S6abEE4yBqI/AAAAAAAAAAc/tkPthx5PG0s/s320/tounge.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-7131824049802702397?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/7131824049802702397/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2010/03/affect-vs-effect.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/7131824049802702397'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/7131824049802702397'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2010/03/affect-vs-effect.html' title='Affect vs. Effect'/><author><name>Adam Gaskins</name><uri>http://www.blogger.com/profile/04187211919205650435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-6yrdjv3hXIA/TrtIrCbVgxI/AAAAAAAAAF8/dtrv8MPqqBQ/s220/cyaneyes.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_gwhgUiaudKU/S6abEE4yBqI/AAAAAAAAAAc/tkPthx5PG0s/s72-c/tounge.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-1763106304477466483</id><published>2010-03-21T18:04:00.000-04:00</published><updated>2010-03-21T18:04:58.579-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dreams'/><category scheme='http://www.blogger.com/atom/ns#' term='Levi'/><category scheme='http://www.blogger.com/atom/ns#' term='Luke'/><category scheme='http://www.blogger.com/atom/ns#' term='consciousness'/><title type='text'>Affecting Dreams</title><content type='html'>Most of the time, I go to bed later than my other siblings. One night, Luke was asleep on the floor. When I came in he stood up and got in bed. I noticed his eyes were closed, but wondered if he was awake. I decided to do a little experiment. &lt;i&gt;Note that Luke's eyes were closed the whole time.&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Me: Did Bob take the mustard?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;i&gt;&lt;b&gt;Luke sits up in bed&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Luke: Maybe&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Me: Did George take the mayonnaise?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;i&gt;&lt;b&gt;Luke scratches his chin&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Luke: OK, bye.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;b&gt;&lt;i&gt;Luke lies down in bed&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;I tried to pursue further conversation, but he was obviously fully asleep. A few nights later, Levi seemed unusually fidgety. I decided to try it with him. &lt;i&gt;Note that Levi's eyes were closed the whole time.&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Me: Levi? Are you awake?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;b&gt;&lt;i&gt;Levi nods, eyes still closed&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Me: Can you give me a high five?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;b&gt;&lt;i&gt;Levi shakes his head a few times, then nods&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;b&gt;&lt;i&gt;I hold out my hand&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;b&gt;&lt;i&gt;Levi highfives a few various invisible hands&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;b&gt;&lt;i&gt;Levi shakes his head&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;So in both of the above cases [yes they &lt;i&gt;really &lt;/i&gt;happened], I obviously affected their dreams, more or less. With Luke though, I could only affect his dream up to a certain point. So at what level of consciousness do I affect their dreams? At what level of consciousness is it not really a dream for them? Since consciousness can't be measured these questions may never be answered.&lt;br /&gt;&lt;br /&gt;Unless of course in 10 years from now, we discover a way to measure consciousness.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-1763106304477466483?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/1763106304477466483/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2010/03/affecting-dreams.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/1763106304477466483'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/1763106304477466483'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2010/03/affecting-dreams.html' title='Affecting Dreams'/><author><name>Adam Gaskins</name><uri>http://www.blogger.com/profile/04187211919205650435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-6yrdjv3hXIA/TrtIrCbVgxI/AAAAAAAAAF8/dtrv8MPqqBQ/s220/cyaneyes.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-1896049770842105776</id><published>2010-03-21T17:16:00.000-04:00</published><updated>2010-03-21T17:16:04.145-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Wordpress'/><category scheme='http://www.blogger.com/atom/ns#' term='Editor'/><category scheme='http://www.blogger.com/atom/ns#' term='Blogger'/><title type='text'>Why I Chose Blogger over Wordpress</title><content type='html'>WordPress is very feature rich, and the widgets and themes are very appealing. But the editor is awful. It takes out line breaks, and edits the HTML code. All its features can't compensate for the editor's flaws. So I decided I was done with WordPress. I tried out a few different blog engines, but none of them were what I needed. Blogger is the bare minimum of what I need. Its like WordPress, without all the widgets and themes and faulty editor. As you can see, my first post was the same Python tutorial on my old blog.&lt;br /&gt;&lt;br /&gt;I wrestled with the WordPress editor for half an hour before I got it looking the way I wanted it. With blogger, I just type in the text in the WYSIWYG editor. Like WYSIWYG implies, What You See Is What You Get. The WordPress editor, though it is called WYSIWYG, is definitely not.&lt;br /&gt;&lt;br /&gt;If WordPress comes out with an Update that fixes the editor problems, then maybe I will switch back to it. But for now, I will leave the WordPress blog as-is and just post to this blog.&lt;br /&gt;&lt;br /&gt;Here is my &lt;a href="http://www.theadamgaskins.com/Blog/"&gt;old blog&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;--Adam&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-1896049770842105776?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/1896049770842105776/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2010/03/why-i-chose-blogger-over-wordpress.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/1896049770842105776'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/1896049770842105776'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2010/03/why-i-chose-blogger-over-wordpress.html' title='Why I Chose Blogger over Wordpress'/><author><name>Adam Gaskins</name><uri>http://www.blogger.com/profile/04187211919205650435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-6yrdjv3hXIA/TrtIrCbVgxI/AAAAAAAAAF8/dtrv8MPqqBQ/s220/cyaneyes.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3866559126864655908.post-7138537937796016659</id><published>2010-03-21T17:02:00.000-04:00</published><updated>2010-03-21T17:05:28.083-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='two'/><category scheme='http://www.blogger.com/atom/ns#' term='variable'/><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>Python Tutorial 2: Variables</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_gwhgUiaudKU/S6aHxFwUTgI/AAAAAAAAAAM/wILqEo9HdTQ/s1600-h/pythonlogo.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="195" src="http://1.bp.blogspot.com/_gwhgUiaudKU/S6aHxFwUTgI/AAAAAAAAAAM/wILqEo9HdTQ/s200/pythonlogo.png" width="200" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #111111; font-family: 'Lucida Sans Unicode', 'Lucida Sans', 'Trebuchet MS', 'Lucida Grande', 'Bitstream Sans Vera', Verdana, Arial, Tahoma, Helvetica, sans-serif; font-size: 12px; line-height: 19px;"&gt;In this tutorial, we’ll study variables. Python variables are related the closest to PHP and Perl, except they don’t start with any symbols. In Python, both concatenation and addition are done with +. All the others you would expect.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #111111; font-family: 'Lucida Sans Unicode', 'Lucida Sans', 'Trebuchet MS', 'Lucida Grande', 'Bitstream Sans Vera', Verdana, Arial, Tahoma, Helvetica, sans-serif; font-size: 12px; line-height: 19px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;table border="1" cellpadding="5" cellspacing="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;+&lt;/td&gt;&lt;td align="right"&gt;Addition / Concatenation&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;-&lt;/td&gt;&lt;td align="right"&gt;Subtraction&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;*&lt;/td&gt;&lt;td align="right"&gt;Multiplication&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;/&lt;/td&gt;&lt;td align="right"&gt;Division&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;%&lt;/td&gt;&lt;td align="right"&gt;Modulos&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;**&lt;/td&gt;&lt;td align="right"&gt;Powers&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;span class="Apple-style-span" style="color: #111111; font-family: 'Lucida Sans Unicode', 'Lucida Sans', 'Trebuchet MS', 'Lucida Grande', 'Bitstream Sans Vera', Verdana, Arial, Tahoma, Helvetica, sans-serif; font-size: 12px; line-height: 19px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial;"&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; border-collapse: collapse;"&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; border-collapse: separate; color: #111111; font-family: 'Lucida Sans Unicode', 'Lucida Sans', 'Trebuchet MS', 'Lucida Grande', 'Bitstream Sans Vera', Verdana, Arial, Tahoma, Helvetica, sans-serif; font-size: 12px; line-height: 19px;"&gt;Python variables are generic; you don’t have to declare them with a type [int,string,char etc...] or with&amp;nbsp;var, you just simply use them. A variable can hold a number at one point, and later in the program hold a string of characters.&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #111111; font-family: 'Courier New', Courier, monospace; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Sans Unicode', 'Lucida Sans', 'Trebuchet MS', 'Lucida Grande', 'Bitstream Sans Vera', Verdana, Arial, Tahoma, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #111111; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;varone = 5&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #111111; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;vartwo = 6&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #111111; font-family: 'Courier New', Courier, monospace; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Sans Unicode', 'Lucida Sans', 'Trebuchet MS', 'Lucida Grande', 'Bitstream Sans Vera', Verdana, Arial, Tahoma, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; border-collapse: collapse;"&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; border-collapse: separate; color: #111111; font-size: 12px; line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Sans Unicode', 'Lucida Sans', 'Trebuchet MS', 'Lucida Grande', 'Bitstream Sans Vera', Verdana, Arial, Tahoma, Helvetica, sans-serif;"&gt;After assigning the variables, you can add them together and store them in another variable:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; border-collapse: collapse;"&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; border-collapse: separate; color: #111111; font-size: 12px; line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Sans Unicode', 'Lucida Sans', 'Trebuchet MS', 'Lucida Grande', 'Bitstream Sans Vera', Verdana, Arial, Tahoma, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; border-collapse: collapse;"&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; border-collapse: separate; color: #111111; font-size: 12px; line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;varthree = varone + vartwo&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; border-collapse: collapse;"&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; border-collapse: separate; color: #111111; font-size: 12px; line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Sans Unicode', 'Lucida Sans', 'Trebuchet MS', 'Lucida Grande', 'Bitstream Sans Vera', Verdana, Arial, Tahoma, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; border-collapse: collapse;"&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; border-collapse: separate; color: #111111; font-size: 12px; line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Sans Unicode', 'Lucida Sans', 'Trebuchet MS', 'Lucida Grande', 'Bitstream Sans Vera', Verdana, Arial, Tahoma, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; border-collapse: collapse;"&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; border-collapse: separate; color: #111111; font-size: 12px; line-height: 19px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Sans Unicode', 'Lucida Sans', 'Trebuchet MS', 'Lucida Grande', 'Bitstream Sans Vera', Verdana, Arial, Tahoma, Helvetica, sans-serif;"&gt;This assigns varthree to 11. You can subtract, multiply, and divide in the same way. You can divide vartwo in half like this:&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;vartwo /= 2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This takes vartwo, divides it by two, then assigns it back to vartwo. So since we had vartwo set to 6, it would now be set to 3. You can multiply by two with *=, add two with +=, subtract two with -= etc...&lt;br /&gt;&lt;br /&gt;Strings are slightly different.&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;stringone = "Hello"&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;stringtwo = "World"&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;greeting = stringone + " " + stringtwo&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This gives the variable greeting the value "Hello World". Commas do virtually the same thing as + with strings, except commas insert spaces. The above greeting assignment does the same thing as the following:&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;greeting = stringone,stringtwo&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3866559126864655908-7138537937796016659?l=theadamgaskins.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://theadamgaskins.blogspot.com/feeds/7138537937796016659/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://theadamgaskins.blogspot.com/2010/03/python-tutorial-2-variables.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/7138537937796016659'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3866559126864655908/posts/default/7138537937796016659'/><link rel='alternate' type='text/html' href='http://theadamgaskins.blogspot.com/2010/03/python-tutorial-2-variables.html' title='Python Tutorial 2: Variables'/><author><name>Adam Gaskins</name><uri>http://www.blogger.com/profile/04187211919205650435</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/-6yrdjv3hXIA/TrtIrCbVgxI/AAAAAAAAAF8/dtrv8MPqqBQ/s220/cyaneyes.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_gwhgUiaudKU/S6aHxFwUTgI/AAAAAAAAAAM/wILqEo9HdTQ/s72-c/pythonlogo.png' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
