<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;Ck8DQnY8fyp7ImA9WhRWGEk.&quot;"><id>tag:blogger.com,1999:blog-305595604099232942</id><updated>2012-01-06T01:07:53.877-08:00</updated><category term="hits" /><category term="Motivation" /><category term="html5" /><category term="lucimara" /><category term="babylon" /><category term="death" /><category term="Stay Motivated at work" /><category term="heart of peace" /><category term="4-8-15-16-23-42" /><category term="keep your head up" /><category term="HTML5 canvas animation" /><category term="prototype tutorial" /><category term="endure" /><category term="planning for the future" /><category term="forgiveness" /><category term="freedom" /><category term="Motivational Quotes" /><category term="fate" /><category term="job" /><category term="css" /><category term="super mario brother online" /><category term="environment variables" /><category term="family" /><category term="nintendo" /><category term="Inspiring" /><category term="Motivational Short Stories by Rodrigo Silveira" /><category term="Motivation at Work" /><category term="tom hopkins" /><category term="jquery slideshow" /><category term="rodrigo" /><category term="friend" /><category term="alvin" /><category term="forgive" /><category term="Being Lost Is Good For You" /><category term="story" /><category term="Chinese Proverbs" /><category term="javascript slideshow" /><category term="Quotes" /><category term="choice" /><category term="plot" /><category term="java applets" /><category term="advice" /><category term="good life" /><category term="peace" /><category term="rich" /><category term="Javascript Optimization" /><category term="Dorrian" /><category term="css3" /><category term="twitter phone commands" /><category term="save" /><category term="optimal" /><category term="low profile selling" /><category term="Inspiration" /><category term="JS Tutorial" /><category term="C.S. lewis" /><category term="brick" /><category term="gerge" /><category term="simulations" /><category term="Motivation theory" /><category term="fake" /><category term="the journey of a thousand miles" /><category term="square one" /><category term="php sockets" /><category term="html" /><category term="follow Rodrigo Silveira on Twitter" /><category term="Book of Mormon" /><category term="Success" /><category term="marketing" /><category term="Rodrigo Motivational Short Story" /><category term="Silveira" /><category term="javascript games" /><category term="inspire" /><category term="where the sun goes" /><category term="Saying" /><category term="Secret of Success" /><category term="life is a great school" /><category term="Motivational Short Stories" /><category term="fascination with success" /><category term="most important" /><category term="visits" /><category term="battletoads" /><category term="bounce rate" /><category term="week" /><category term="wise" /><category term="Success Factors" /><category term="treasure" /><category term="savage" /><category term="Motivate yourself" /><category term="websockets" /><category term="youtube" /><category term="about" /><category term="demo" /><category term="BOM" /><category term="leadership" /><category term="think" /><category term="Motivational Lines" /><category term="web 2.0 tutorial" /><category term="ancient chinese proverbs" /><category term="find" /><category term="samuel" /><category term="mystery of life" /><category term="php.ini" /><category term="python" /><category term="Lamanites" /><category term="narnia" /><category term="murder" /><category term="writings" /><category term="questions to think about" /><category term="windows" /><category term="clason" /><category term="romario" /><category term="persevere" /><category term="leadership stories" /><category term="focus" /><category term="windows environment variables" /><category term="thinking" /><category term="journey of life" /><category term="man" /><category term="determination" /><category term="cgi-bin" /><category term="jewels" /><category term="text overflow" /><category term="optimize" /><category term="mike tyson funny interview" /><category term="step forward" /><category term="website" /><category term="Speed Up Code" /><category term="book" /><category term="the happiness factory" /><category term="awkward things" /><category term="apy" /><category term="Rodrigo Silveira" /><category term="Motivates" /><category term="the last step" /><category term="SEO" /><category term="curious" /><category term="george" /><category term="Employee Morale" /><category term="play" /><category term="investment" /><category term="java game programming" /><category term="server" /><category term="apr" /><category term="leadership story" /><category term="Nephites" /><category term="Inspirational" /><category term="optiming" /><category term="wamp" /><category term="writing" /><category term="el salvador" /><category term="money" /><title>HTML5 &amp; Javascript Tutorials - Web Development Articles</title><subtitle type="html">Being a personal blog, much of what is here is not too well structured. I like to post computer programming articles and tutorials, especially about HTML5, Javascript, CSS3, PHP, Python, and other web and offline programming languages.</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://rodrixar.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://rodrixar.blogspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>Rodrigo Silveira</name><uri>http://www.blogger.com/profile/11020780093510564646</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="21" src="http://4.bp.blogspot.com/-aNmCqAeMePw/TlzhbhFrqFI/AAAAAAAAGPA/8lbSrqXxcg0/s220/33694_10150290812975147_864510146_15196120_7251683_n.jpg" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>55</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira" /><feedburner:info uri="rodrigosilveiramotivationalshortstoriesbyrodrigosilveira" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><entry gd:etag="W/&quot;D0MHQ3g6fyp7ImA9WhdQGUU.&quot;"><id>tag:blogger.com,1999:blog-305595604099232942.post-3865777340186685445</id><published>2011-07-16T13:30:00.000-07:00</published><updated>2011-08-21T20:57:12.617-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-21T20:57:12.617-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="simulations" /><category scheme="http://www.blogger.com/atom/ns#" term="server" /><category scheme="http://www.blogger.com/atom/ns#" term="websockets" /><category scheme="http://www.blogger.com/atom/ns#" term="html5" /><category scheme="http://www.blogger.com/atom/ns#" term="php sockets" /><title>HTML5 WebSocket Server in PHP</title><content type="html">&lt;script type="text/javascript" src="https://apis.google.com/js/plusone.js"&gt;&lt;/script&gt;&lt;br /&gt;
&lt;g:plusone size="medium" count="false"&gt;&lt;/g:plusone&gt; This is a video demo of my Javascript stock exchange simulator programmed in HTML5 and PHP. I'm running my websocket server using WAMP (Windows, Apache, MySQL, and PHP). Let me know if you have any questions or comments about any of this.&lt;br /&gt;
&lt;br /&gt;
&lt;iframe width="425" height="349" src="http://www.youtube.com/embed/oJxWhmt5m-o" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://rodrixar.blogspot.com/1985/09/rodrigo-silveira.html" rel="author"&gt;About the author&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;Also, be sure to check out my web portfolio at http://www.rodrigo-silveira.com&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305595604099232942-3865777340186685445?l=rodrixar.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/_XdWhU_BmAXJ72hqbnOY9R5x5SM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_XdWhU_BmAXJ72hqbnOY9R5x5SM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/_XdWhU_BmAXJ72hqbnOY9R5x5SM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_XdWhU_BmAXJ72hqbnOY9R5x5SM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~4/lt8wTr7GA5w" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rodrixar.blogspot.com/feeds/3865777340186685445/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://rodrixar.blogspot.com/2011/07/html5-websocket-server-in-php.html#comment-form" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/3865777340186685445?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/3865777340186685445?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~3/lt8wTr7GA5w/html5-websocket-server-in-php.html" title="HTML5 WebSocket Server in PHP" /><author><name>Rodrigo Silveira</name><uri>http://www.blogger.com/profile/11020780093510564646</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="21" src="http://4.bp.blogspot.com/-aNmCqAeMePw/TlzhbhFrqFI/AAAAAAAAGPA/8lbSrqXxcg0/s220/33694_10150290812975147_864510146_15196120_7251683_n.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://img.youtube.com/vi/oJxWhmt5m-o/default.jpg" height="72" width="72" /><thr:total>2</thr:total><feedburner:origLink>http://rodrixar.blogspot.com/2011/07/html5-websocket-server-in-php.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0IHQ38zfyp7ImA9WhdQGUU.&quot;"><id>tag:blogger.com,1999:blog-305595604099232942.post-1435755454042431284</id><published>2011-07-15T16:34:00.000-07:00</published><updated>2011-08-21T20:58:52.187-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-21T20:58:52.187-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="windows environment variables" /><category scheme="http://www.blogger.com/atom/ns#" term="wamp" /><category scheme="http://www.blogger.com/atom/ns#" term="php.ini" /><category scheme="http://www.blogger.com/atom/ns#" term="php sockets" /><title>How to run PHP sockets in WAMP</title><content type="html">&lt;script type="text/javascript" src="https://apis.google.com/js/plusone.js"&gt;&lt;/script&gt;&lt;br /&gt;
&lt;g:plusone size="medium" count="false"&gt;&lt;/g:plusone&gt; Lately I've been playing around with HTML5 Web Sockets. This has been pretty fun and educational. Especially since I've ran into a few problems, and very little documentation is available on it. After resisting the temptation of pulling my hair out (since I don't have a whole lot of it left, anyways), and focusing on finding answers to these problems, I was rewarded by a generous universe, who revealed me all the answers I needed. This post will cover 3 ways to help you solve the common error you may run into when attempting to create sockets in PHP using WAMP (Windows, Apache, MySQL, and PHP). This error message says &lt;b&gt;Call to undefined function socket_create()&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;h1&gt;How to fix &lt;em&gt;Call to undefined function socket_create()&lt;/em&gt;&lt;/h1&gt;If you're running WAMP, there are two basic ways to fix this. This error is caused by a simple WAMP/PHP configuration that you left out. What you want to do is pretty simple. Simply enable sockets in PHP. To do so, you must:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Click the WAMP icon&lt;/li&gt;
&lt;li&gt;Select PHP&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-tL8DL0fPSb4/TiDJJbg-AQI/AAAAAAAAGFY/mqCtdrK_kMc/s1600/wamp-tutorial01.jpg" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="200" width="166" src="http://2.bp.blogspot.com/-tL8DL0fPSb4/TiDJJbg-AQI/AAAAAAAAGFY/mqCtdrK_kMc/s200/wamp-tutorial01.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;Select PHP Extensions&lt;/li&gt;
&lt;li&gt;Enable the php_sockets extension&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-Aoz219Lh5rY/TiDJJTQM-fI/AAAAAAAAGFg/rlI-VerrOHE/s1600/wamp-tutorial02.jpg" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="200" width="166" src="http://4.bp.blogspot.com/-Aoz219Lh5rY/TiDJJTQM-fI/AAAAAAAAGFg/rlI-VerrOHE/s200/wamp-tutorial02.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
Now try &lt;em&gt;restarting all services&lt;/em&gt; in your WAMP, and see if the sockets work now. This should solve the problem 9/10 times. However, there are some situations when you will do just what I described above, and your PHP sockets will still return that &lt;em&gt;undefined function socket_create()&lt;/em&gt;, which will be frustrating. However, here are some other things that will fix this problem:&lt;br /&gt;
&lt;br /&gt;
&lt;h1&gt;Set up your environment variables to run PHP from the command line&lt;/h1&gt;A few weeks ago I posted a tutorial on &lt;a href="http://rodrixar.blogspot.com/2011/06/how-to-run-python-cgi-in-wamp.html"&gt;how to run Python from the command line&lt;/a&gt;, where I describe how to set up the environment variables in Python. The exact same process is used for PHP and WAMP, so you can use that as a reference. The steps are simple:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Click the WAMP icon&lt;/li&gt;
&lt;li&gt;Select www directory&lt;/li&gt;
&lt;li&gt;This will take you to the directory where WAMP is installed. Go up one directory level from the www folder, and select the bin directory. Inside bin you will see a PHP directory, inside of which there will be a PHP5.3.4 (whatever version of PHP you happen to have installed). Follow this directory path until you find the one that has a file named php.exe&lt;/li&gt;
&lt;li&gt;Copy the complete path to this directory&lt;/li&gt;
&lt;li&gt;In your environment variables window (follow the Python article on the specifics on how to get there), edit the PATH variable, and paste this path to your PHP.exe (the PHP interpreter) file that you copied in the previous step&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
Now you should be able to go do a DOS window and type in a command like:&lt;br /&gt;
&lt;br /&gt;
&lt;p class="iCode"&gt;php file.php&lt;/p&gt;(assuming that you're in a directory that has a file named file.php, of course)&lt;br /&gt;
&lt;br /&gt;
This will execute your script right in the command window. If you're trying to run a PHP socket server so clients can connect to it, you will need to run it from a terminal (command line), and this is how you set it up.&lt;br /&gt;
&lt;br /&gt;
However, there are 2 more ways to solve the socket problem ("undefined function socket_create()"). They're both pretty similar, although the second one is less obvious.&lt;br /&gt;
&lt;br /&gt;
&lt;h1&gt;Method #1: Edit your php.ini file&lt;/h1&gt;This basically accomplishes the exact same thing you did in the fist thing I suggested earlier in this PHP tutorial. What you need to do is:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Click the WAMP icon&lt;/li&gt;
&lt;li&gt;Select PHP&lt;/li&gt;
&lt;li&gt;Select &lt;em&gt;php.ini&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Search your php.ini file for the following line: &lt;p class="iCode"&gt;;extension=php_sockets.dll&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;This line has a semi-column at the beginning, meaning that the sockets extension is disabled. To fix this, simply uncomment the statement, and save the php.ini file. To uncomment this line of code, simply delete the semi-column, changing the line to this:&lt;p class="iCode"&gt;extension=php_sockets.dll&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
Again, after restarting all WAMP services, try running your PHP script with the create_socket() function call, and things should work out just fine now.&lt;br /&gt;
&lt;br /&gt;
&lt;h1&gt;Method #2: Edit the other php.ini file&lt;/h1&gt;Sometimes your WAMP will install weird, and the PHP will point to a different php.ini file than the one you can access through the WAMP icon. I'm not sure how this can happen, but without using the technique I'll show here, the problem with the sockets will never go away. I came across this problem when I installed WAMP in a virtual machine running Ubuntu (the virtual machine had Windows XP installed in it). To find out what php.ini your PHP is looking at, go to a command line and type in the following PHP command:&lt;br /&gt;
&lt;p class="iCode"&gt;php --ini&lt;/p&gt;This will list the information (file paths) about the configuration of your PHP that you need to edit. The second line of the output you get from this step shows where the true php.ini file is located. Go to that path and uncomment the line that points to the sockets.dll file as described in the previous step.&lt;br /&gt;
&lt;br /&gt;
The output from the php --ini command will look something like this:&lt;br /&gt;
&lt;p class="iCode"&gt;C:\Users\Rodrixar&gt;php --ini&lt;br /&gt;
Configuration File (php.ini) Path: C:\Windoows&lt;br /&gt;
Loaded Configuration File: &lt;b style="color:#c00"&gt;C:\wamp\bin\php\php5.3.4\php.ini&lt;/b&gt;&lt;br /&gt;
Scan for additional .ini files in: (none)&lt;br /&gt;
Additional .ini files parsed: (none)&lt;br /&gt;
&lt;/p&gt;&lt;br /&gt;
Notice how in this case the .ini file is located within my WAMP folder, which is why the other steps shown in this tutorial worked. But some times this location will be different from the WAMP install location, and by changing that php.ini file you will be able to truly enable and use those desired PHP sockets.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://rodrixar.blogspot.com/1985/09/rodrigo-silveira.html" rel="author"&gt;About the author&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;Also, be sure to check out my web portfolio at http://www.rodrigo-silveira.com&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305595604099232942-1435755454042431284?l=rodrixar.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/PwtJR_DWx64MuNhUxKKrB4mgdys/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PwtJR_DWx64MuNhUxKKrB4mgdys/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/PwtJR_DWx64MuNhUxKKrB4mgdys/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PwtJR_DWx64MuNhUxKKrB4mgdys/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~4/cJYepqdrHtk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rodrixar.blogspot.com/feeds/1435755454042431284/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://rodrixar.blogspot.com/2011/07/how-to-run-php-sockets-in-wamp.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/1435755454042431284?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/1435755454042431284?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~3/cJYepqdrHtk/how-to-run-php-sockets-in-wamp.html" title="How to run PHP sockets in WAMP" /><author><name>Rodrigo Silveira</name><uri>http://www.blogger.com/profile/11020780093510564646</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="21" src="http://4.bp.blogspot.com/-aNmCqAeMePw/TlzhbhFrqFI/AAAAAAAAGPA/8lbSrqXxcg0/s220/33694_10150290812975147_864510146_15196120_7251683_n.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-tL8DL0fPSb4/TiDJJbg-AQI/AAAAAAAAGFY/mqCtdrK_kMc/s72-c/wamp-tutorial01.jpg" height="72" width="72" /><thr:total>1</thr:total><feedburner:origLink>http://rodrixar.blogspot.com/2011/07/how-to-run-php-sockets-in-wamp.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0AER3o5eyp7ImA9WhdQGUU.&quot;"><id>tag:blogger.com,1999:blog-305595604099232942.post-6337885831621587940</id><published>2011-07-09T22:02:00.000-07:00</published><updated>2011-08-21T21:01:46.423-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-21T21:01:46.423-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="battletoads" /><category scheme="http://www.blogger.com/atom/ns#" term="javascript games" /><category scheme="http://www.blogger.com/atom/ns#" term="nintendo" /><category scheme="http://www.blogger.com/atom/ns#" term="HTML5 canvas animation" /><title>HTML5 Canvas Animation Tutorial with Nintendo Battletoads</title><content type="html">&lt;script type="text/javascript" src="https://apis.google.com/js/plusone.js"&gt;&lt;/script&gt;&lt;br /&gt;
&lt;g:plusone size="medium" count="false"&gt;&lt;/g:plusone&gt;&lt;br /&gt;
Lately I've been playing around with 2D animations in the canvas element. I know that 3D WebGL is the cool thing nowadays, but for now, I'd like to get pretty good with regular, 2 dimensional animations with the boring, old canvas. Below is a demo of what I've come up with so far. Use the right and left arrow on the key board to more Pimple around (actually, I'm not sure if that's Rash or Zits from the original Nintendo game &lt;a href="http://en.wikipedia.org/wiki/Battletoads"&gt;Battletoads&lt;/a&gt;...&lt;br /&gt;
&lt;br /&gt;
&lt;style&gt;
#demo2342canvas { background: #CC9933; border: 12px solid #fff; box-shadow: 0 0 7px #333; display: block; margin: 50px auto; }
&lt;/style&gt;&lt;br /&gt;
&lt;canvas id="demo2342canvas" width="500" height="350"&gt;&lt;/canvas&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;script&gt;
var ctx = document.getElementsByTagName('canvas')[0].getContext('2d');

var toad = { 
  img: 
  {
    src: new Image(),
    sprites: [{x:0,y:0,w:31,h:45},{x:39,y:0,w:31,h:45},{x:78,y:0,w:31,h:47},{x:115,y:2,w:31,h:43},{x:160,y:8,w:31,h:37},{x:192,y:9,w:46,h:33},{x:242,y:3,w:25,h:39},{x:275,y:5,w:33,h:38},{x:311,y:8,w:41,h:36},{x:356,y:6,w:25,h:39},{x:397,y:10,w:41,h:36},{x:442,y:13,w:51,h:28}],
    spriteLoop: 0,
    frame: 0,
    frameRateTime: 0
  },

  x: 30, y: 230, dx: 5, dy: 5, 

  controls: {
    up: 0, down: 0, left: 0, right: 0, space: 0
  } 

};

toad.img.src.src = "http://1.bp.blogspot.com/-iz79MutFHFQ/ThkyniRPy_I/AAAAAAAAGC8/AiZ6B20zRd0/battletoads-sprite-run.gif";
toad.img.src.onload = function(){
  main();
};

var keys = { up: 38, down: 40, left: 37, right: 39, space: 32, j: 74 };







document.body.onkeydown = function(e){
  for( val in keys )
  {
    if( keys[val] == e.which )
      toad.controls[val] = 1;
  }
};

document.body.onkeyup = function(e){
  for( val in keys )
  {
    if( keys[val] == e.which )
    {
      toad.controls[val] = 0;
      toad.img.frame = 0;
    }
  }
};






function move()
{
//  if( toad.controls.up ) toad.y -= toad.dy;
//  if( toad.controls.down ) toad.y += toad.dy;
  if( toad.controls.right )
  {
    toad.x += toad.dx;

    // control animation speed
    if( Date.now() - toad.img.frameRateTime &gt; 50)
    {
      toad.img.frameRateTime = Date.now();

      toad.img.frame = (toad.img.frame + 1) % (toad.img.sprites.length);
      if( toad.img.frame &lt; 3) toad.img.frame = 5;
    }
  }

  if( toad.controls.left ) toad.x -= toad.dx;
  if( toad.x &gt; 500) toad.x = 0;
}

function clear()
{
  ctx.clearRect(toad.x, toad.y, toad.img.src.width, toad.img.src.height);
}

function draw()
{
  var frame = toad.img.frame;

  ctx.drawImage(toad.img.src, toad.img.sprites[frame].x, toad.img.sprites[frame].y, toad.img.sprites[frame].w, toad.img.sprites[frame].h, toad.x, toad.y, toad.img.sprites[frame].w, toad.img.sprites[frame].h);
}


function main()
{
  clear();
  move();
  draw();
  setTimeout(main, 33);
}
&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h1&gt;Sprite animation in the HTML5 canvas&lt;/h1&gt;While this is a tutorial, and you've probably come to this article in an attempt to learn how to animate your own canvas and make cool 2D games in HTML5 and Javascript that can be played on the browser, the main reason I'm posting this is because I'd like to learn more about canvas animation myself. Right now I'm just doing things in a way that makes sense to me, but most likely doesn't follow 2D tile-based sidescroller games best practices. So I guess we'll learn together...&lt;br /&gt;
&lt;br /&gt;
To start out, here's the sprite image I'm animating in this HTML5 demo:&lt;br /&gt;
&lt;br /&gt;
&lt;img src="http://1.bp.blogspot.com/-iz79MutFHFQ/ThkyniRPy_I/AAAAAAAAGC8/AiZ6B20zRd0/battletoads-sprite-run.gif" alt="Battletoads sprite sheet"/&gt;&lt;br /&gt;
&lt;br /&gt;
I just found this online, in case you wonder... But what I do is pretty simple, as described in this pseudo-code:&lt;br /&gt;
&lt;br /&gt;
&lt;div class="iCode"&gt;&lt;ol&gt;&lt;li&gt;Make an *array with the location of each animation frame&lt;/li&gt;
&lt;li&gt;Make a variable that keeps track of the current frame being printed from the sprite sheet&lt;/li&gt;
&lt;li&gt;Load the sprite sheet image&lt;/li&gt;
&lt;li&gt;Draw a portion of the sprite sheet into the canvas. This is where the array created in step 1 comes in&lt;/li&gt;
&lt;li&gt;Increment the frame variable using **modular math&lt;/li&gt;
&lt;li&gt;If before drawing the next frame (this should be step 4, but makes sense to explain it here), clear the part of the canvas context where the current sprite frame is drawn&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;br /&gt;
* This is an array of objects, each with the (x,y) position of where each animation frame is located within the sprite sheet, plus a (w,h) pair representing the frame's width and height:&lt;br /&gt;
&lt;br /&gt;
&lt;div class="iCode"&gt;&lt;pre&gt;var spriteFrames = [
   {x: 0,  y: 0, w: 32, h: 30},
   {x: 33, y: 3, w: 42, h: 27},
   {x: 78, y: 5, w: 30, h: 33}
];&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;
Something like that. Note that each frame can have its own dimensions. The image will still be drawn properly (lined up with the previous and next frames) this way, even if the frame is shorter or wider.&lt;br /&gt;
&lt;br /&gt;
** By modular math I mean that you should increment the variable that keeps track of the current frame using the modulus operator. This way you don't have to worry about going out of bounds in your array, like such:&lt;br /&gt;
&lt;br /&gt;
&lt;div class="iCode"&gt;&lt;pre&gt;// a lot of people do this:
currentFrame++;
if( currentFrame &gt; totalFrames - 1)
  currentFrame = 0;

/*** WHAT A WASTE OF BYTES! ***/

// this is how you should increment your current frame index:
currentFrame = (currentFrame + 1) % totalFrames;

/**********************************
 *
   WHAT? but why do that?
   well... follow the math. If you're not familiar the % (MOD) operator,
   it simply performs division, then returns the remainder, which is never
   greater than the number being divided by, which means you always stay
   within the array bounds.

   var totalFrames = 3;
   var currentFrame = 0;

   currentFrame = (currentFrame + 1) % totalFrames;
   -&gt; currentFrame = (0 + 1) % 3 = 1 % 3 = 1

   currentFrame = (currentFrame + 1) % totalFrames;
   -&gt; currentFrame = (1 + 1) % 3 = 2 % 3 = 2

   currentFrame = (currentFrame + 1) % totalFrames;
&lt;b&gt;   -&gt; currentFrame = (2 + 1) % 3 = 3 % 3 = 0&lt;/b&gt;

   currentFrame = (currentFrame + 1) % totalFrames;
   -&gt; currentFrame = (0 + 1) % 3 = 1 % 3 = 1
 *
 ***********************************/   &lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;
Clearly, incrementing the frame pointer with one operation is better in most cases, but I'm sure there might be cases where something more verbose might be needed, but for the most part, using the MOD operator will save you time and space.&lt;br /&gt;
&lt;br /&gt;
Other than that, I think I need to research this some more and practice what I learn. As you can see in the demo, the animation only works one way. That is because the original image (the sprite sheet) is drawn like that. There is a simple way to flip the image resource being drawn onto the canvas, but that sort of sounds like it takes a more computations than needed. I'm thinking just having a second sprite sheet with the images mirrored should do the trick. It'll take more space in memory, but once loaded, the animation can run without costing CPU power forever.&lt;br /&gt;
&lt;br /&gt;
Also, my animation doesn't quite seem very smooth. This is not because of the strategy used to animate the canvas, but because the sprite sheet is probably not right. One thing I do have in this demo is that every so many milliseconds the timer is fired, the frame pointer is updated, the (x,y) coordinates of the Nintendo character is updated, and the image is redrawn. However, the animation only takes place if at least so many milliseconds have elapsed since the previous animation frame was updated:&lt;br /&gt;
&lt;br /&gt;
&lt;div class="iCode"&gt;&lt;pre&gt;// function drawCharacter() { canvasContext.drawCharacter( frame, x, y ); }

// our main Player object has an attribute &lt;em&gt;frameUpdated&lt;/em&gt;, 
// which is the time it was last updated (in milliseconds)
function updateAnimationFrame()
{
  if( Date.now() - Player.frameUpdated &gt; 70 )
  {
    Player.currentFrame = (Player.currentFrame + 1) % Player.totalFrames;

    // update time frame was animated
    Player.frameUpdated = Date.now();
} &lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;
Anyway, post your questions, comments, and suggestions.&lt;br /&gt;
&lt;br /&gt;
Thanks, and enjoy!&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://rodrixar.blogspot.com/1985/09/rodrigo-silveira.html" rel="author"&gt;About the author&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;Also, be sure to check out my web portfolio at http://www.rodrigo-silveira.com&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305595604099232942-6337885831621587940?l=rodrixar.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/M0hFyDTXS_tuvvjrXIyzXuM4_js/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/M0hFyDTXS_tuvvjrXIyzXuM4_js/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/M0hFyDTXS_tuvvjrXIyzXuM4_js/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/M0hFyDTXS_tuvvjrXIyzXuM4_js/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~4/I450-pozZkA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rodrixar.blogspot.com/feeds/6337885831621587940/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://rodrixar.blogspot.com/2011/07/test.html#comment-form" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/6337885831621587940?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/6337885831621587940?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~3/I450-pozZkA/test.html" title="HTML5 Canvas Animation Tutorial with Nintendo Battletoads" /><author><name>Rodrigo Silveira</name><uri>http://www.blogger.com/profile/11020780093510564646</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="21" src="http://4.bp.blogspot.com/-aNmCqAeMePw/TlzhbhFrqFI/AAAAAAAAGPA/8lbSrqXxcg0/s220/33694_10150290812975147_864510146_15196120_7251683_n.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-iz79MutFHFQ/ThkyniRPy_I/AAAAAAAAGC8/AiZ6B20zRd0/s72-c/battletoads-sprite-run.gif" height="72" width="72" /><thr:total>2</thr:total><feedburner:origLink>http://rodrixar.blogspot.com/2011/07/test.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0AFRnw-cSp7ImA9WhdQGUU.&quot;"><id>tag:blogger.com,1999:blog-305595604099232942.post-3426427078259607784</id><published>2011-07-05T18:04:00.000-07:00</published><updated>2011-08-21T21:01:57.259-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-21T21:01:57.259-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="css3" /><category scheme="http://www.blogger.com/atom/ns#" term="demo" /><category scheme="http://www.blogger.com/atom/ns#" term="html5" /><category scheme="http://www.blogger.com/atom/ns#" term="text overflow" /><title>Cool CSS3 Tip: Text-Overflow = Ellipsis</title><content type="html">&lt;script type="text/javascript" src="https://apis.google.com/js/plusone.js"&gt;&lt;/script&gt;&lt;br /&gt;
&lt;g:plusone size="medium" count="false"&gt;&lt;/g:plusone&gt;&lt;br /&gt;
You don't have to use lots of Javascript or server-side voodoo coding to get overflowing text to look good. With the new CSS3 feature, you can set the text-overflow property of your text to ellipsis, thus letting the browser handle this so-needed task for you.&lt;br /&gt;
&lt;br /&gt;
&lt;h1&gt;CSS3 text-overflow: ellipsis DEMO&lt;/h1&gt;&lt;br /&gt;
&lt;div style="clear: both"&gt;&lt;style&gt;#elip { background: #fff; padding: 3px; border: 1px solid #aaa; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; width:100%; }&lt;/style&gt;&lt;br /&gt;
&lt;div style="width:95%"&gt;&lt;p id="elip"&gt;Dummy text. Move the slider below to change the width of this text and see how this works. &lt;/p&gt;&lt;/div&gt;&lt;input type="range" min="5" max="100" value="100" id="range" step="1"/&gt;  &lt;span id="vals"&gt;Width = 100%&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;script&gt;
    var el = document.getElementById('elip');
    var ran = document.getElementById('range');
    var vals = document.getElementById('vals');

    ran.onchange = function(e){
      var percent = this.value;
      vals.innerText = 'Width = '+this.value+'%';
      elip.style.width = this.value+'%';
    }
  &lt;/script&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;h1&gt;The CSS Code&lt;/h1&gt;While this is a very simple attribute, getting this to work just the way you expect it can be somewhat tricky. All you have to keep in mind is that while the &lt;b&gt;text-overflow&lt;/b&gt; attribute is what controls the ellipsis effect, just setting this one attribute by itself isn't enough.&lt;br /&gt;
&lt;div class="iCode"&gt;&lt;pre&gt;&amp;lt;style&gt;
.elip { 
  &lt;b&gt;text-overflow: ellipsis;&lt;/b&gt;
  overflow: hidden; 
  white-space: nowrap; 
  width: 100%; 
}
&amp;lt;/style&gt;

&amp;lt;p &lt;b&gt;class="elip"&lt;/b&gt;&gt;Some text to be wrapped by the CSS3 ellipsis attribute&amp;lt;p&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;
Notice that along with the text-overflow, you also need to make sure you specify two other properties: white-space (keeping the text from wrapping into multiple lines), and overflow (which keeps the text from bleeding through its container).&lt;br /&gt;
&lt;br /&gt;
Other than that, this is pretty simple. Try out different ways to use this and see how it works for yourself. One thing I did notice is that if you use this property with a big paragraph that takes up multiple lines, instead of only applying the ellipsis to the last word or whatever, every line that has a break (either through a br tag or a new paragraph) will be ellipsed. Lines of text that expand beyond the one line will not wrap (due to the white-space property). So I think this will be for useful in situations where the ellipsis is applied to a header or title type text. Anything beyond a line (such as a summary) might not work so well, or at least I haven't figured out how to make it work right with a block of text. But that's CSS3 for you... enjoy!&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://rodrixar.blogspot.com/1985/09/rodrigo-silveira.html" rel="author"&gt;About the author&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;Also, be sure to check out my web portfolio at http://www.rodrigo-silveira.com&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305595604099232942-3426427078259607784?l=rodrixar.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/GSHHcSXKcXhXFinMCvjgbde32k0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GSHHcSXKcXhXFinMCvjgbde32k0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/GSHHcSXKcXhXFinMCvjgbde32k0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GSHHcSXKcXhXFinMCvjgbde32k0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~4/ADwOwdzdpFs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rodrixar.blogspot.com/feeds/3426427078259607784/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://rodrixar.blogspot.com/2011/07/cool-css3-tip-text-overflow-ellipsis.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/3426427078259607784?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/3426427078259607784?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~3/ADwOwdzdpFs/cool-css3-tip-text-overflow-ellipsis.html" title="Cool CSS3 Tip: Text-Overflow = Ellipsis" /><author><name>Rodrigo Silveira</name><uri>http://www.blogger.com/profile/11020780093510564646</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="21" src="http://4.bp.blogspot.com/-aNmCqAeMePw/TlzhbhFrqFI/AAAAAAAAGPA/8lbSrqXxcg0/s220/33694_10150290812975147_864510146_15196120_7251683_n.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://rodrixar.blogspot.com/2011/07/cool-css3-tip-text-overflow-ellipsis.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0AGSH47fip7ImA9WhdQGUU.&quot;"><id>tag:blogger.com,1999:blog-305595604099232942.post-6259073651767632721</id><published>2011-06-26T22:49:00.000-07:00</published><updated>2011-08-21T21:02:09.006-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-21T21:02:09.006-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="environment variables" /><category scheme="http://www.blogger.com/atom/ns#" term="wamp" /><category scheme="http://www.blogger.com/atom/ns#" term="python" /><category scheme="http://www.blogger.com/atom/ns#" term="windows" /><category scheme="http://www.blogger.com/atom/ns#" term="cgi-bin" /><title>How to run Python CGI in WAMP</title><content type="html">&lt;script type="text/javascript" src="https://apis.google.com/js/plusone.js"&gt;&lt;/script&gt;&lt;br /&gt;
&lt;g:plusone size="medium" count="false"&gt;&lt;/g:plusone&gt;&lt;div&gt;I've had a few people ask me how to install Python in &lt;a href="http://www.wampserver.com/"&gt;WAMP &lt;/a&gt;(Windows Apache MySQL and PHP), so here's a quick tutorial on how to set that up on your WAMP server. What I'll do is assume you already have both WAMP and Python installed, explain how to run your Python .py scripts through WAMP, then I'll have a quick tutorial explaining how to download and install both Python and WAMP individually.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;h1 class="iHeaderSPAN"&gt;Writing your first Python cgi script&lt;/h1&gt;&lt;br /&gt;
&lt;div&gt;Before you can run your Python scripts on the browsers, you'll need to write a .py script. Here's a quick one just to illustrate the point. Type this in Notepad and save the file as &lt;i&gt;hello.py:&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;br /&gt;
&lt;/i&gt;&lt;/div&gt;&lt;p class="iCode"&gt;#!python&lt;/br&gt;&lt;br /&gt;
print "Content-type: text/html"&lt;br /&gt;
print ""&lt;br /&gt;
&lt;br /&gt;
print "Hello, World"&lt;/p&gt;&lt;br /&gt;
&lt;div&gt;Now click the WAMP icon on your system tray, find the Apache option, then select the &lt;i&gt;modules&lt;/i&gt; option. Make sure there's a check mark next to &lt;i&gt;cgi_module&lt;/i&gt;. If there isn't a check mark next to cgi_module, go ahead and click it. This will enable the module and restart your WAMP Apache server. Now, go back to Notepad and save your hello.py file in the right cgi-bin directory. The precise path to this folder is probably different on each system, but is found inside the WAMP directory, then inside the bin directory, inside Apache. On my system, the path to the cgi-bin directory is&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;p class="iCode"&gt;C:\wamp\bin\apache\Apache2.2.17\cgi-bin&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Once your Python script file is saved, go to your browser and access the script by going to &lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;p class="iCode"&gt;http://localhost/cgi-bin/hello.py&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;That's it. No need to install extra modules or a whole different server altogether. Now to a brief tutorial on installing WAMP and Python on Windows.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;h1 class="iHeaderSPAN"&gt;How to install WAMP&lt;/h1&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span class="Apple-style-span"&gt;In this tutorial I'll assume you already have WAMP downloaded and installed. If you don't, click the link above and download the WAMP server. Installing it is really simple (click and follow the prompts), but I'll save the details to another tutorial if the need for it arrises.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;p class="iCode"&gt;How to install Python on Windows&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;Once you have WAMP installed, the next thing you'll need to do is to install &lt;a href="http://www.python.org/getit/"&gt;Python&lt;/a&gt;. Again, this should be pretty straight forward. Click the buttons and follow the few prompts. Once the installation concludes, you should be able to open a terminal (DOS) window and verify that the installation was successful. Try typing the following command in DOS:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;p class="iCode"&gt;python&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;If you see a response that says something like &lt;i&gt;Python 2.7.2&lt;/i&gt; (or whatever version you installed), then the installation was successful. If this is the case, you'll see the three &amp;gt;&amp;gt;&amp;gt; indicating that you can start typing Python code and run it right there. If, on the other hand, you get an error message from Windows, then this means you'll need to set up a system variable with the path to your Python install. This is really simple:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;h1&gt;How to set up Python environment variable Path on Windows&lt;/h1&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;What you'll do is tell Windows to run a program called python.exe located at a certain directory whenever Windows get a request to run &lt;i&gt;python&lt;/i&gt;. To do this, open up your Control Panel and run a search on that window for &lt;i&gt;environment&lt;/i&gt;. Windows XP and up (Vista and Windows 7) will bring up a link that says &lt;i&gt;Edit the System Environment Variables&lt;/i&gt;. Click that, then click the button that's labeled &lt;i&gt;Environment Variables...&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;i&gt;&lt;br /&gt;
&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;Next, open up a Windows Explorer window and go to the location where you have installed Python. As this could be different for different folks, you'll just have to find where you installed your own. On my home system, I installed Python at&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;p class="iCode"&gt;C:\Python&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;Once you have located your main Python folder, copy the folder path and go back to the Environment Variables window. Under &lt;i&gt;System variables&lt;/i&gt;, find the one that's labeled &lt;i&gt;Path&lt;/i&gt;, select it, and click &lt;i&gt;Edit.&lt;/i&gt; Now go to the &lt;i&gt;Variable value&lt;/i&gt; field, and be sure you don't erase anything from this field. Simply go to the end of the field, place a semicolon at the end of the list, and paste the path to your main Python folder. Click OK to save this, and you're done! Now you can open up a DOS window and type in Python, and start coding to your heart's content.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;a href="http://rodrixar.blogspot.com/1985/09/rodrigo-silveira.html" rel="author"&gt;About the author&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;Also, be sure to check out my web portfolio at http://www.rodrigo-silveira.com&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305595604099232942-6259073651767632721?l=rodrixar.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/gs2f1fx-HAhHbvjQ0aje4GeZdsg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/gs2f1fx-HAhHbvjQ0aje4GeZdsg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/gs2f1fx-HAhHbvjQ0aje4GeZdsg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/gs2f1fx-HAhHbvjQ0aje4GeZdsg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~4/bItJj8DnM0o" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rodrixar.blogspot.com/feeds/6259073651767632721/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://rodrixar.blogspot.com/2011/06/how-to-run-python-cgi-in-wamp.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/6259073651767632721?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/6259073651767632721?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~3/bItJj8DnM0o/how-to-run-python-cgi-in-wamp.html" title="How to run Python CGI in WAMP" /><author><name>Rokko</name><uri>http://www.blogger.com/profile/07547307388208034727</uri><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><feedburner:origLink>http://rodrixar.blogspot.com/2011/06/how-to-run-python-cgi-in-wamp.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0AAQn4zfyp7ImA9WhdQGUU.&quot;"><id>tag:blogger.com,1999:blog-305595604099232942.post-3514197853336920534</id><published>2011-03-22T15:33:00.000-07:00</published><updated>2011-08-21T21:02:23.087-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-21T21:02:23.087-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="prototype tutorial" /><category scheme="http://www.blogger.com/atom/ns#" term="javascript slideshow" /><category scheme="http://www.blogger.com/atom/ns#" term="jquery slideshow" /><title>jQuery Slideshow - HTTP Efficient</title><content type="html">&lt;h1 class="iHeaderSPAN"&gt;Why another jQuery Slideshow Tutorial ? &lt;/h1&gt;&lt;br /&gt;
&lt;script type="text/javascript" src="https://apis.google.com/js/plusone.js"&gt;&lt;/script&gt;&lt;br /&gt;
&lt;g:plusone size="medium" count="false"&gt;&lt;/g:plusone&gt; A while ago I posted a tutorial on a &lt;a href="http://rodrixar.blogspot.com/2010/04/javascript-slideshow-prototype-tutorial.html"&gt;Javascript slideshow implemented in Prototype&lt;/a&gt;. That was all nice and well, since there weren't a whole lot of Prototype tutorials out there. But also, the specific implementation I did was especially powerful because it had HTTP requests in mind. So now we have a version of that same slideshow in jQuery.&lt;br /&gt;
&lt;br /&gt;
&lt;h3 class="iHeaderSPAN"&gt;Live Demo:&lt;/h3&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div id="jq_slide"&gt;&lt;br /&gt;
&lt;img id="jq_b" src="http://1.bp.blogspot.com/-dDEYqjSJHsc/TYov7MlAkiI/AAAAAAAAF4c/LmFiZw7OfKA/javascript-slideshow-1.jpg"/&gt;&lt;br /&gt;
&lt;img id="jq_f" src="http://2.bp.blogspot.com/-pTMppO3I4tc/TYov7XDYEEI/AAAAAAAAF4k/ILcJsu5XwoI/javascript-slideshow-2.jpg"/&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3 class="iHeaderSPAN"&gt;Here's the logic behind my slideshow is simple&lt;/h3&gt;&lt;br /&gt;
The usual slideshow requires that you list all of the images you want sliding in some sort of list. Then the images, through CSS, are all stacked on top of each other so only the top-most image is visible. Then, every so often the top image fades out, revealing the next one. My issue with this approach is that, suppose you have 10 images in the slideshow, all 10 images are downloaded (10 HTTP requests, bandwidth, latency, etc). Worse yet, what if the user only stays on the page long enough that only the first two images are shown?! You wasted bandwidth and loading time for the other 8 images. Not to mention if you want 100 images in the slideshow...&lt;br /&gt;
&lt;br /&gt;
&lt;h3 class="iHeaderSPAN"&gt;My approach:&lt;/h3&gt;&lt;br /&gt;
I only list two images at a time. One is the top-most image (the one that's visible), and the one immediately behind it. Then, when the timer fires (the image slides), I fade the top image, reveal the back image, and wait for the next timer event to fire. When the timer gets ready to fire again, I download the next image, place it behind the current top-most image, and repeat the process. Now if the user only views my site long enough that 5 images are rotated through the slideshow, I don't have to download the remaining 95 images I wanted to display.&lt;br /&gt;
&lt;br /&gt;
&lt;h3 class="iHeaderSPAN"&gt;The Code&lt;/h3&gt;&lt;br /&gt;
&lt;br /&gt;
As this slideshow is using jQuery, the first thing we do is import the jQuery library:&lt;br /&gt;
&lt;br /&gt;
&lt;p class="iCode"&gt;&amp;lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"&gt;&amp;lt;/script&gt;&lt;/p&gt;&lt;br /&gt;
&lt;br /&gt;
Now we define the basic CSS so the images are self-contained:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight:bold;"&gt;The CSS&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;p class="iCode"&gt;&amp;lt;style&gt;&lt;br /&gt;
#iSlideShell { position: relative; height: 175px; width: 500px; overflow:hidden; }&lt;br /&gt;
#iSlideShell img { position: absolute; }&lt;br /&gt;
&amp;lt;/style&gt;&lt;br /&gt;
&lt;br /&gt;
* note that the CSS above sets the height and width of the slideshow container, but those can be customized to your own needs.&lt;/p&gt;&lt;br /&gt;
&lt;br /&gt;
Then we set up the HTML where the images will be displayed:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight:bold;"&gt;The HTML&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;p class="iCode"&gt;&amp;lt;div id="iSlideShell"&gt;&lt;br /&gt;
&amp;lt;img id="back-image" src="image1.jpg"/&gt;&lt;br /&gt;
&amp;lt;img id="front-image" src="image2.jpg"/&gt;&lt;br /&gt;
&amp;lt;/div&gt;&lt;/p&gt;&lt;br /&gt;
&lt;br /&gt;
It's very important that you keep the ID attributes of those three HTML tags as they are. If you do decide to change them, change them also in the following Javascript.&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight:bold;"&gt;The Javascript&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;p class="iCode"&gt;&lt;em&gt;// keeps track of what image to display next&lt;/em&gt;&lt;br /&gt;
var i = 0;&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;// the time each image will display before it fades out&lt;/em&gt;&lt;br /&gt;
var delay = 3000;&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;// the time it will take to fade each image&lt;/em&gt;&lt;br /&gt;
var fadeDelay = 150;&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;// the filename for each image. Don't include the .jpg extension&lt;/em&gt;&lt;br /&gt;
var iSlides = new Array("image1", "image2", "image3", "image4", "image5");&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;// This is where the magic happens&lt;/em&gt;&lt;br /&gt;
function rigoSlide()&lt;br /&gt;
{&lt;br /&gt;
&lt;em&gt; // show the top image&lt;/em&gt;&lt;br /&gt;
$('#front-image').show();&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt; // make the bottom image visible&lt;/em&gt;&lt;br /&gt;
$('#back-image').show();&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt; // after the image finishes fading, bring the back image to the front&lt;/em&gt;&lt;br /&gt;
$('#front-image').fadeOut(fadeDelay, function(){&lt;br /&gt;
$('#front-image').attr('src', $('#back-image').attr('src'));&lt;br /&gt;
});&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;// increment the array index, but never go beyond the array boundaries&lt;/em&gt;&lt;br /&gt;
i = (i + 1) % iSlides.length;&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;// now load the next image behind the image currently showing&lt;/em&gt;&lt;br /&gt;
$('#back-image').attr('src', iSlides[i] + ".jpg"); &lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;// start process over again...&lt;/em&gt;&lt;br /&gt;
setTimeout(rigoSlide, delay);&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;// call the slideshow when the page finishes loading&lt;/em&gt;&lt;br /&gt;
$(document).ready(function(){ rigoSlide(); });&lt;/p&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3 class="iHeaderSPAN"&gt;Cut and Paste&lt;/h3&gt;&lt;br /&gt;
&lt;br /&gt;
Now, I realize some of you might not be able to put the above steps together all by yourself... so if that applies to you, just go ahead and paste the following block of code in your website where you want the slideshow to appear. Just make sure to replace the bold text with the names of the actual images you'll be using for your own slideshow:&lt;br /&gt;
&lt;br /&gt;
&lt;p class="iCode"&gt;&amp;lt;div id="jq_rigo_slide" style="width:994px; height: 300px; position: relative; top: 0; left: 0; margin: 0; padding: 0; overflow: hidden;"&gt; &lt;br /&gt;
&amp;lt;img id="jq_b" src="&lt;b style="color:#c00"&gt;img1&lt;/b&gt;" style="position: absolute; display: block;" /&gt; &lt;br /&gt;
&amp;lt;img id="jq_f" src="&lt;b style="color:#c00"&gt;img2&lt;/b&gt;" style="position: absolute; display: block;" /&gt; &lt;br /&gt;
&amp;lt;/div&gt;&lt;br /&gt;
&amp;lt;script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' type='text/javascript'&gt;&amp;lt;/script&gt; &lt;br /&gt;
&amp;lt;script type="text/javascript"&gt; &lt;br /&gt;
var i = 0;&lt;br /&gt;
var delay = 3000;&lt;br /&gt;
var fadeDelay = 150;&lt;br /&gt;
var iSlides = new Array("&lt;b style="color:#c00"&gt;img1&lt;/b&gt;", "&lt;b style="color:#c00"&gt;img2&lt;/b&gt;", "&lt;b style="color:#c00"&gt;img3&lt;/b&gt;", "&lt;b style="color:#c00"&gt;img4&lt;/b&gt;", "&lt;b style="color:#c00"&gt;img5&lt;/b&gt;");&lt;br /&gt;
&lt;br /&gt;
function rigoSlide()&lt;br /&gt;
{&lt;br /&gt;
$('#jq_f').show();&lt;br /&gt;
$('#jq_b').show();&lt;br /&gt;
$('#jq_f').fadeOut(fadeDelay, function(){&lt;br /&gt;
$('#jq_f').attr('src', $('#jq_b').attr('src'));&lt;br /&gt;
});&lt;br /&gt;
i = (i + 1) % iSlides.length;&lt;br /&gt;
$('#jq_b').attr('src', iSlides[i] + ".jpg"); &lt;br /&gt;
setTimeout(rigoSlide, delay);&lt;br /&gt;
}&lt;br /&gt;
rigoSlide();&lt;br /&gt;
&amp;lt;/script&gt; &lt;/p&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3 class="iHeaderSPAN"&gt;Conclusion &lt;/h3&gt;&lt;br /&gt;
So there you have it. I'd recommend you save the Javascript externally and include it the same way you're including the jQuery Library, but that's not required for this to work.&lt;br /&gt;
&lt;br /&gt;
Post your questions, comments, or concerns below.&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://rodrixar.blogspot.com/1985/09/rodrigo-silveira.html" rel="author"&gt;About the author&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;Also, be sure to check out my web portfolio at http://www.rodrigo-silveira.com&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305595604099232942-3514197853336920534?l=rodrixar.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/oEyssg_4gm7TmydIUiJZKr4aCEY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/oEyssg_4gm7TmydIUiJZKr4aCEY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/oEyssg_4gm7TmydIUiJZKr4aCEY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/oEyssg_4gm7TmydIUiJZKr4aCEY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~4/IiobGub0jCw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rodrixar.blogspot.com/feeds/3514197853336920534/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://rodrixar.blogspot.com/2011/03/jquery-slideshow-http-efficient.html#comment-form" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/3514197853336920534?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/3514197853336920534?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~3/IiobGub0jCw/jquery-slideshow-http-efficient.html" title="jQuery Slideshow - HTTP Efficient" /><author><name>Rodrigo Silveira</name><uri>http://www.blogger.com/profile/11020780093510564646</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="21" src="http://4.bp.blogspot.com/-aNmCqAeMePw/TlzhbhFrqFI/AAAAAAAAGPA/8lbSrqXxcg0/s220/33694_10150290812975147_864510146_15196120_7251683_n.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-dDEYqjSJHsc/TYov7MlAkiI/AAAAAAAAF4c/LmFiZw7OfKA/s72-c/javascript-slideshow-1.jpg" height="72" width="72" /><thr:total>3</thr:total><feedburner:origLink>http://rodrixar.blogspot.com/2011/03/jquery-slideshow-http-efficient.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0ABRHczeyp7ImA9WhdQGUU.&quot;"><id>tag:blogger.com,1999:blog-305595604099232942.post-1627957938592031017</id><published>2011-01-02T15:33:00.000-08:00</published><updated>2011-08-21T21:02:35.983-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-21T21:02:35.983-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="css3" /><title>Weird CSS3 Demo &amp; Tutorial</title><content type="html">&lt;p&gt;&lt;script type="text/javascript" src="https://apis.google.com/js/plusone.js"&gt;&lt;/script&gt;&lt;br /&gt;
&lt;g:plusone size="medium" count="false"&gt;&lt;/g:plusone&gt; Below is a form with some weird CSS3 effects that you may not know about. But keep in mind this one principle I've learned earlier in my career, and it has served me very, very well:&lt;/p&gt;&lt;br /&gt;
&lt;h3&gt;Just because you can, doesn't mean you should&lt;/h3&gt;&lt;br /&gt;
&lt;p&gt;Just because something in possible, don't be in a hurry to use it or do it. Keyword here is: HTML Marquee and Blink tags&lt;/p&gt;&lt;br /&gt;
&lt;table class="tut"&gt;&lt;tr&gt;&lt;td colspan="2"&gt;&lt;h3&gt;CSS3 Demo Form&lt;/h3&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Enter your name: &lt;/td&gt;&lt;td&gt;&lt;input type="text" class="tut"/&gt; &lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt;  &lt;td&gt;Enter your e-mail: &lt;/td&gt;&lt;td&gt;&lt;input type="text" class="tut"/&gt; &lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt;  &lt;td&gt;Enter your phone  number: &lt;/td&gt;&lt;td&gt;&lt;input type="text" class="tut"/&gt; &lt;/td&gt; &lt;/tr&gt;
&lt;/table&gt;&lt;br /&gt;
&lt;h3&gt;CSS3 &amp;raquo; Outline&lt;/h3&gt;&lt;br /&gt;
&lt;p&gt;The &lt;em&gt;outline&lt;/em&gt; attribute is like a border, but is drawn outside the actual border of the element. According to the W3Schools, the purpose of this property is to make an element "stand out". You may have noticed this in Chrome. I personally find it annoying because in Chrome, when you enter an input element (in a form), Chrome draws a yellow line around the box (input box). This is the outline property kicking in. &lt;/p&gt;&lt;br /&gt;
&lt;p&gt;You can set the outline just like you do a border:&lt;/p&gt;&lt;br /&gt;
&lt;p class="tutcode"&gt;outline: 1px solid #c00&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;or you can turn it off by either setting it to 0 or none:&lt;/p&gt;&lt;br /&gt;
&lt;p class="tutcode"&gt;outline: 0;&lt;br /&gt;
outline: none;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;If you look at the source code in Google's main page, they use both the number zero and the value 'none' when setting the outline of elements to nothing. &lt;/p&gt;&lt;br /&gt;
&lt;h3&gt;CSS3 &amp;raquo; Zoom&lt;/h3&gt;&lt;br /&gt;
&lt;p&gt;The &lt;em&gt;zoom&lt;/em&gt; attribute is a dangerous property, because some people think it's so cool, and therefore they over use it in horrible ways. Basically this works similar to how your browser would zoom in and out of your page when you use the magnification features in it. If you set an object's zoom to 100% (or 1.0), then it will look 'normal'. However, if you set it to something greater than that, the object will scale like it would when you zoom in it. Pretty self explanatory.&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;Some people used to add hovering effects by changing the text's font-size for the hovered state, but now you can set its zoom to something and affect not only text and the box around it, but also images! This is that terrible two-wedge sword. Could be a great help, or a sure way to flood the web with ugly zooming effects:&lt;/p&gt;&lt;br /&gt;
&lt;p class="tutcode"&gt;&lt;br /&gt;
.link { font-size: 1.25em; }&lt;br /&gt;
.link:hover { zoom: 200%; }&lt;br /&gt;
&lt;/p&gt;&lt;br /&gt;
&lt;h3&gt;CSS3 &amp;raquo; Transformation&lt;/h3&gt;&lt;br /&gt;
&lt;p&gt;The &lt;em&gt;transformation&lt;/em&gt; attribute is part of the webkit library. You can use it in Mozilla Firefox using they -moz counterpart. What a lot of people are doing is setting the same property they set to -webkit (which works fine in Google Chrome and Safari browsers, as well as the iPhone, iPod touch, iPad, and the Android systems) set it to -moz, -o (for Opera), -ie (Internet Explorer), and then just list the property with no prefix for the day it becomes a standard. I don't necessarily recommend this, especially if the library you're specifying doesn't support the property (like -ie-transition), but it doesn't hurt. Besides, if a lot of people are doing it, you might not look like a fool doing it too...&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;To use transformations, you specify the transformation desired, the value, and a unit to go along with it: &lt;/p&gt;&lt;br /&gt;
&lt;p class="tutcode"&gt;-webkit-transformation: rotate(-25deg);&lt;/p&gt;&lt;br /&gt;
&lt;h3&gt;CSS3 &amp;raquo; Transition&lt;/h3&gt;&lt;br /&gt;
&lt;p&gt;Finally, &lt;em&gt;transitions&lt;/em&gt; are awesome things that happen between the beginning and the end of an attribute change. For instance, when you set a font color, then a different font color for that same text when it get hovered, then you only see the first color, then the end color when teh text is hovered. With transitions (also part of -webkit), you can specify what happens during that change. If you've ever worked with Flash, this should be natural. With CSS3 you specify how slow that transition happens. In the form example above, I specified the transition to take half a second:&lt;/p&gt;&lt;br /&gt;
&lt;p class="tutcode"&gt;-webkit-transition: all 0.5s linear;&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;Here I was a bit lazy because I didn't want to specify a transition speed for &lt;em&gt;zoom&lt;/em&gt; and &lt;em&gt;rotate&lt;/em&gt;, so I used the keyword 'all'. the keyword 'linear' specifies how that transition takes place. Other acceptable values include: &lt;br /&gt;
&lt;ul&gt;&lt;li&gt;linear - constant speed&lt;/li&gt;
&lt;li&gt;ease - gradual slowdown&lt;/li&gt;
&lt;li&gt;ease-in - speed up&lt;/li&gt;
&lt;li&gt;ease-out - slow down&lt;/li&gt;
&lt;li&gt;ease-in-out -speed up then slow down&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;p&gt;So there you have it. I hope this helps, but please, use these things for the good of the web =)&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;Feel free to post any questions you may have or email me directly.&lt;/p&gt;&lt;br /&gt;
&lt;a href="http://rodrixar.blogspot.com/1985/09/rodrigo-silveira.html" rel="author"&gt;About the author&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;Also, be sure to check out my web portfolio at http://www.rodrigo-silveira.com&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305595604099232942-1627957938592031017?l=rodrixar.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/FMbUdXUKmTVF6ViJ1v1r-ytz480/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/FMbUdXUKmTVF6ViJ1v1r-ytz480/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/FMbUdXUKmTVF6ViJ1v1r-ytz480/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/FMbUdXUKmTVF6ViJ1v1r-ytz480/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~4/tjU-uhTmqGQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rodrixar.blogspot.com/feeds/1627957938592031017/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://rodrixar.blogspot.com/2011/01/weird-css3-demo-tutorial.html#comment-form" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/1627957938592031017?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/1627957938592031017?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~3/tjU-uhTmqGQ/weird-css3-demo-tutorial.html" title="Weird CSS3 Demo &amp; Tutorial" /><author><name>Rodrigo Silveira</name><uri>http://www.blogger.com/profile/11020780093510564646</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="21" src="http://4.bp.blogspot.com/-aNmCqAeMePw/TlzhbhFrqFI/AAAAAAAAGPA/8lbSrqXxcg0/s220/33694_10150290812975147_864510146_15196120_7251683_n.jpg" /></author><thr:total>2</thr:total><feedburner:origLink>http://rodrixar.blogspot.com/2011/01/weird-css3-demo-tutorial.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0ACR3g4eCp7ImA9WhdQGUU.&quot;"><id>tag:blogger.com,1999:blog-305595604099232942.post-1311584927940358432</id><published>2010-10-11T15:33:00.000-07:00</published><updated>2011-08-21T21:02:46.630-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-21T21:02:46.630-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="java game programming" /><category scheme="http://www.blogger.com/atom/ns#" term="java applets" /><category scheme="http://www.blogger.com/atom/ns#" term="super mario brother online" /><title>Java Applet Tutorial</title><content type="html">&lt;h1&gt;How to create a Java Online Game &lt;/h1&gt;&lt;h3 class="iHeaderSPAN"&gt;Overview&lt;/h3&gt;&lt;script type="text/javascript" src="https://apis.google.com/js/plusone.js"&gt;&lt;/script&gt;&lt;br /&gt;
&lt;g:plusone size="medium" count="false"&gt;&lt;/g:plusone&gt; In this simple introductory Java Applet tutorial, we’ll build a straightforward Super Mario Brother online. We’ll actually just animate Luigi running around the screen and responding to user input. The controls will be very basic: move Luigi using the left and right arrow keys (← to move him to the left, and → to move him to the right), and change the speed at which he moves by pressing the up and down keys. The controls are shown on the screen and are indicated by the "thread break" marker.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;For a quick demo of the final product&lt;/strong&gt;, checkout the box below:&lt;br /&gt;
&lt;br /&gt;
&lt;iframe src="http://lost-guy.zymichost.com/luigi.html" style="border:5px solid #aaa; width:500px; height:200px;padding:5px;"&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;br /&gt;
Also, be sure to grab some sprite images for your game:&lt;table&gt;&lt;tr&gt;&lt;td width="100"&gt;&lt;img src="http://lost-guy.zymichost.com/luigi_img/luigi,0r.gif" alt="Super Luigi Brother Online Frame 0,1" /&gt;&lt;/td&gt;&lt;td width="100"&gt;&lt;img src="http://lost-guy.zymichost.com/luigi_img/luigi,1r.gif" alt="Super Luigi Brother Online Frame 0,2" /&gt;&lt;/td&gt;&lt;td width="100"&gt;&lt;img src="http://lost-guy.zymichost.com/luigi_img/luigi,2r.gif" alt="Super Luigi Brother Online Frame 0,3" /&gt;&lt;/td&gt;&lt;td width="100"&gt;&lt;img src="http://lost-guy.zymichost.com/luigi_img/luigi,3r.gif" alt="Super Luigi Brother Online Frame 0,4" /&gt;&lt;/td&gt;&lt;td width="100"&gt;&lt;img src="http://lost-guy.zymichost.com/luigi_img/luigi,4r.gif" alt="Super Luigi Brother Online" /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;img src="http://lost-guy.zymichost.com/luigi_img/luigi,0l.gif" alt="Super Luigi Brother Online Frame 1,0" /&gt;&lt;/td&gt;&lt;td&gt;&lt;img src="http://lost-guy.zymichost.com/luigi_img/luigi,1l.gif" alt="Super Luigi Brother Online Frame 1,1" /&gt;&lt;/td&gt;&lt;td&gt;&lt;img src="http://lost-guy.zymichost.com/luigi_img/luigi,2l.gif" alt="Super Luigi Brother Online Frame 1,2" /&gt;&lt;/td&gt;&lt;td&gt;&lt;img src="http://lost-guy.zymichost.com/luigi_img/luigi,3l.gif" alt="Super Luigi Brother Online Frame 1,3" /&gt;&lt;/td&gt;&lt;td&gt;&lt;img src="http://lost-guy.zymichost.com/luigi_img/luigi,4l.gif" alt="Super Luigi Brother Online Frame 1,4" /&gt;&lt;/tr&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/table&gt;&lt;p style="clear:both;"&gt;&lt;/p&gt;&lt;br /&gt;
&lt;h3 class="iHeaderSPAN"&gt;The Set Up: Intro to Java Applets&lt;/h3&gt;Probably the first thing you’ll notice about Java Applets is the fact that they don’t have a main() method like all other Java programs do. Instead, Java Applets will have an init() method, which must be a public, void returning method (similar to the standard main).&lt;br /&gt;
Also, Java applets are meant to be viewed through a browser, so be sure to create an HTML file to run your app in. I will show you how to do that when we get to that point.&lt;br /&gt;
Finally, I will show you the libraries we’ll be working with, and therefore will need to import.&lt;br /&gt;
&lt;br /&gt;
&lt;h3 class="iHeaderSPAN"&gt;The Java.Applet Library&lt;/h3&gt;In order to create our demo applet, go ahead and import the following libraries to your Luigi.java file. This will be the file we’ll build for this tutorial.&lt;br /&gt;
&lt;br /&gt;
&lt;p class="iCode"&gt;import java.applet.*;&lt;br /&gt;
import java.awt.*;&lt;br /&gt;
import java.awt.event.*;&lt;br /&gt;
import java.net.*;&lt;/p&gt;&lt;br /&gt;
Those libraries take care of making our applet, loading files from a web server, and listening and responding to user input events.&lt;br /&gt;
&lt;br /&gt;
&lt;h3 class="iHeaderSPAN"&gt;Sprite Animation in Java&lt;/h3&gt;In order to simplify this tutorial, and yet make this code somewhat more portable and expandable, let’s create a class that will handle the individual sprite animations that we’ll use. Actually, let’s create a class to represent Luigi, who will be our hero in this case. This class will basically have the following member variables:&lt;br /&gt;
&lt;br /&gt;
&lt;p class="iCode"&gt;private int x;     // Luigi’s on screen  x-coordinate&lt;br /&gt;
private int y;     // Luigi’s on screen  y-coordinate&lt;br /&gt;
private int dtX;     // The delta-x; the amount of units to move Luigi horizontally each time he moves&lt;br /&gt;
private int pos;     // To keep track of when Luigi moves outside the screen&lt;br /&gt;
private String name;     // Represents the name of our character&lt;br /&gt;
private boolean K_RIGHT;     // Is the user pressing the right key&lt;br /&gt;
private boolean K_LEFT;     // Is the user pressing the left key&lt;br /&gt;
Image[] src;     // An array to keep all the sprite images used in the game&lt;br /&gt;
&lt;/p&gt;&lt;br /&gt;
That’s pretty simple stuff. We can initialize those variables right on our constructor. I’ve found it helpful to offer at least a couple of choices to the programmer using your code, so in this tutorial, we’ll create two constructors for this Sprite class: one with parameters to initialize a Sprite object (a character for your game), and one that takes no parameters. This second constructor will actually just call the first-mentioned constructor with some default values. This way we have two methods doing the same thing, but not duplicating hardly any code at all. So here are the constructors:&lt;br /&gt;
&lt;br /&gt;
&lt;p class="iCode"&gt;public Sprite(String pName, int pX, int pY)&lt;br /&gt;
{&lt;br /&gt;
name = pName;&lt;br /&gt;
x = pX;&lt;br /&gt;
y = pY;&lt;br /&gt;
dtX = 10;&lt;br /&gt;
pos = 0;&lt;br /&gt;
src = new Image[8];&lt;br /&gt;
K_RIGHT = false;&lt;br /&gt;
K_LEFT = false;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
public Sprite()&lt;br /&gt;
{&lt;br /&gt;
this("Tupac", 10, 10);    // The name and starting position of our default character&lt;br /&gt;
}&lt;/p&gt;&lt;br /&gt;
And in order to keep this class simple, yet functional, let’s add a few methods:&lt;br /&gt;
&lt;br /&gt;
&lt;p class="iCode"&gt;public int x()     // returns the x position of your character&lt;br /&gt;
public int y()     // returns the y position of your character&lt;br /&gt;
public void walk(String dir)     // moves your character horizontally&lt;br /&gt;
public void stand(String dir)     // changes the character’s sprite image if he’s not moving&lt;br /&gt;
public int pos()     // returns the x position of the character&lt;br /&gt;
public boolean K_LEFT()     // tell us if the user is pressing the right key&lt;br /&gt;
public boolean K_RIGHT()     // tell us if the user is pressing the right key&lt;br /&gt;
public void setKey(String dir, boolean state)     // respond to the user pressing the right or left key&lt;br /&gt;
&lt;/p&gt;&lt;br /&gt;
You will notice that our Sprite class could have used less methods, had only the member states been more accessible. It is good practice, however, to restrict member states as much as reasonably possible, and create good ol’ getters and setters. Yes, the Java likes programmers that use a getter and setter whenever possible.&lt;br /&gt;
&lt;br /&gt;
&lt;h3 class="iHeaderSPAN"&gt;Sprite Class Code&lt;/h3&gt;Most methods should be pretty self-explanatory and easy to follow… For the most part we just check for the current state of our character, increment his x-position by a uniform amount (determined by delta-X), and make sure he is never displayed outside the screen boundaries.&lt;br /&gt;
&lt;br /&gt;
&lt;p class="iCode"&gt;class Sprite&lt;br /&gt;
{&lt;br /&gt;
private int x;&lt;br /&gt;
private int y;&lt;br /&gt;
private int dtX;&lt;br /&gt;
private int pos;&lt;br /&gt;
private String name;&lt;br /&gt;
private boolean K_RIGHT;&lt;br /&gt;
private boolean K_LEFT;&lt;br /&gt;
Image[] src;&lt;br /&gt;
&lt;br /&gt;
public Sprite(String pName, int pX, int pY)&lt;br /&gt;
{&lt;br /&gt;
name = pName;&lt;br /&gt;
x = pX;&lt;br /&gt;
y = pY;&lt;br /&gt;
dtX = 10;&lt;br /&gt;
pos = 0;&lt;br /&gt;
src = new Image[8];&lt;br /&gt;
K_RIGHT = false;&lt;br /&gt;
K_LEFT = false;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
public Sprite()&lt;br /&gt;
{&lt;br /&gt;
this("Tupac", 10, 10);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
public int x()&lt;br /&gt;
{&lt;br /&gt;
return x;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
public int y()&lt;br /&gt;
{&lt;br /&gt;
return y;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
public void walk(String dir)&lt;br /&gt;
{&lt;br /&gt;
if (dir == "left")&lt;br /&gt;
{&lt;br /&gt;
x -= dtX;&lt;br /&gt;
if (pos &lt; pos =" 5;"&gt; 7)&lt;br /&gt;
pos = 5;&lt;br /&gt;
&lt;br /&gt;
if (x &lt; -50)     x = 450;   }   else if (dir == "right")   {    x += dtX;    if (pos &gt; 3)&lt;br /&gt;
pos = 1;&lt;br /&gt;
if (pos &lt;&gt; 3)&lt;br /&gt;
pos = 1;&lt;br /&gt;
&lt;br /&gt;
if (x &gt; 450)&lt;br /&gt;
x = -50;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
public void stand(String dir)&lt;br /&gt;
{&lt;br /&gt;
if (dir == "left")&lt;br /&gt;
{&lt;br /&gt;
pos = 4;&lt;br /&gt;
}&lt;br /&gt;
else if (dir == "right")&lt;br /&gt;
{&lt;br /&gt;
pos = 0;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
public int pos()&lt;br /&gt;
{&lt;br /&gt;
return pos;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
public boolean K_LEFT()&lt;br /&gt;
{&lt;br /&gt;
return K_LEFT;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
public boolean K_RIGHT()&lt;br /&gt;
{&lt;br /&gt;
return K_RIGHT;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
public void setKey(String dir, boolean state)&lt;br /&gt;
{&lt;br /&gt;
if (dir == "right")&lt;br /&gt;
K_RIGHT = state;&lt;br /&gt;
if (dir == "left")&lt;br /&gt;
K_LEFT = state;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;/p&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: 19px; font-weight: bold; "&gt;Java Applet’s Main()&lt;/span&gt;&lt;br /&gt;
As mentioned earlier, the method main() is not used in applets like in regular java apps. Here we use the method init(). In our case, we’ll be extending the class Applet (all applets will), and we’ll implement the following classes and interfaces: ActionListener (for general event listening), KeyListener (for specific keyboard events), and Runnable (to create threads!).&lt;br /&gt;
Once inside your main game class, just do what you would in any other class, but keep in mind that the program will enter in through init(). In this tutorial, we’ll create the following state variables:&lt;br /&gt;
&lt;br /&gt;
&lt;p class="iCode"&gt;final static int WIDTH = 500;     // the width of our screen area&lt;br /&gt;
final static int HEIGHT = 200;    // the height of our screen area&lt;br /&gt;
private int FPS;     // not really the framerate, just a way to keep the animation constant&lt;br /&gt;
private String TSE; // phrase to display if we get an Interrupted Exception while trying to put our animation thread to sleep for FPS milliseconds&lt;br /&gt;
Thread runner;  // where we’ll keep Luigi&lt;br /&gt;
Image image;     // this is how we’ll add a double buffer to our app&lt;br /&gt;
Graphics graphics;     // this is also part of the double buffer method we’re using.&lt;br /&gt;
Sprite hero;     // the manifestation of our Sprite class&lt;br /&gt;
&lt;/p&gt;&lt;br /&gt;
As far as the methods we’ll use to control our awesome Super Mario Brother Online game, featuring Luigi, we’ll keep it simple. Most methods are defined because we’re implementing interfaces that require us to define them, even if we make them blank. This is a key feature of the Java Language. Be sure to understand Java’s polymorphism, inheritance, interfaces, and abstract classes if this confuses you. In case you don’t know what any of that means, it might sound like a lot of new stuff to learn, but really, it’s just one single concept, which is not really very complicated to understand. But it is very fundamental that you at least have a general idea about those topics if you want to become a decent Java Game Programmer…&lt;br /&gt;
&lt;br /&gt;
&lt;p class="iCode"&gt;public void paint(final Graphics g)&lt;br /&gt;
public void actionPerformed(ActionEvent e)&lt;br /&gt;
public void keyTyped(KeyEvent key) {}&lt;br /&gt;
public void keyReleased(KeyEvent key) {&lt;br /&gt;
public void keyPressed(KeyEvent key)&lt;br /&gt;
public void start()&lt;br /&gt;
public void stop()&lt;br /&gt;
public void run()&lt;br /&gt;
public void update(Graphics g)&lt;br /&gt;
&lt;/p&gt;&lt;br /&gt;
The main meat of the code takes place inside the run method of our runner thread. You can think of this as the Luigi thread. Basically, we check for the current state of the app. If the user is pressing a key, for example, that will be a different state than the app would be in if no keys were being pressed at the time the thread performs this checks. The thread basically checks for those states constantly… If the right or left key is in fact being pressed, he call Luigi’s move method and moving to the right or left based on the app state. We then tell the app to refresh the screen images, and we tell the thread (just Luigi’s thread) to sleep() for a brief amount of time. If we don’t do this crucial step, the thread will run as fast as it can. This would mean the thread would run faster/slower depending on the computer running the app. Adding the call to sleep() makes our app constant across different computers.&lt;br /&gt;
&lt;br /&gt;
In case you don’t know much about threads, what happens is that our app will do various things in different threads, but all at the same time. It would be weird to check first if there are keys being pressed, then if so, tell Luigi to move, then redraw his image on the screen, then make sure he’s not outside the screen, etc… through threads we can check on a key being pressed on the keyboard, while at the same time we can be redrawing the screen, and at the same time we can be performing a calculating to see where Luigi is positioned.&lt;br /&gt;
&lt;br /&gt;
&lt;p class="iCode"&gt;public class Luigi extends Applet implements ActionListener, KeyListener, Runnable&lt;br /&gt;
{&lt;br /&gt;
/**&lt;br /&gt;
*&lt;br /&gt;
*/&lt;br /&gt;
private static final long serialVersionUID = 1L;&lt;br /&gt;
&lt;br /&gt;
final static int WIDTH = 500;&lt;br /&gt;
final static int HEIGHT = 200;&lt;br /&gt;
private int FPS;&lt;br /&gt;
private String TSE;&lt;br /&gt;
Thread runner;&lt;br /&gt;
Image image;&lt;br /&gt;
Graphics graphics;&lt;br /&gt;
Sprite hero;&lt;br /&gt;
&lt;br /&gt;
public void init()&lt;br /&gt;
{&lt;br /&gt;
image = createImage(WIDTH, HEIGHT);&lt;br /&gt;
graphics = image.getGraphics();&lt;br /&gt;
FPS = 100;&lt;br /&gt;
&lt;br /&gt;
resize(WIDTH, HEIGHT);&lt;br /&gt;
hero = new Sprite("Luigi", 20, 50);&lt;br /&gt;
&lt;br /&gt;
addKeyListener(this);&lt;br /&gt;
&lt;br /&gt;
setLayout(new FlowLayout());&lt;br /&gt;
setBackground(Color.white);&lt;br /&gt;
&lt;br /&gt;
/***&lt;br /&gt;
* Here we’re loading the images from a sub-directory called "luigi_img" where the images are stored. Since we’re using the java.net library, we can actually load the images straight from a web server (like "http://www.rodrigo-silveira.com/dharma/cs246/img/luigi.png").&lt;br /&gt;
*&lt;br /&gt;
***/&lt;br /&gt;
hero.src[0] = getImage(getDocumentBase(), "luigi_img/luigi,0r.gif");&lt;br /&gt;
hero.src[1] = getImage(getDocumentBase(), "luigi_img/luigi,1r.gif");&lt;br /&gt;
hero.src[3] = getImage(getDocumentBase(), "luigi_img/luigi,2r.gif");&lt;br /&gt;
hero.src[2] = getImage(getDocumentBase(), "luigi_img/luigi,3r.gif");&lt;br /&gt;
hero.src[4] = getImage(getDocumentBase(), "luigi_img/luigi,0l.gif");&lt;br /&gt;
hero.src[5] = getImage(getDocumentBase(), "luigi_img/luigi,1l.gif");&lt;br /&gt;
hero.src[7] = getImage(getDocumentBase(), "luigi_img/luigi,2l.gif");&lt;br /&gt;
hero.src[6] = getImage(getDocumentBase(), "luigi_img/luigi,3l.gif");&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
public void paint(final Graphics g)&lt;br /&gt;
{&lt;br /&gt;
update(g);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
public void actionPerformed(ActionEvent e)&lt;br /&gt;
{&lt;br /&gt;
repaint();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
public void keyTyped(KeyEvent key) {}&lt;br /&gt;
public void keyReleased(KeyEvent key) {&lt;br /&gt;
if (key.getKeyCode() == KeyEvent.VK_RIGHT)&lt;br /&gt;
{&lt;br /&gt;
hero.setKey("right", false);&lt;br /&gt;
hero.stand("right");&lt;br /&gt;
}&lt;br /&gt;
else if (key.getKeyCode() == KeyEvent.VK_LEFT)&lt;br /&gt;
{&lt;br /&gt;
hero.setKey("left", false);&lt;br /&gt;
hero.stand("left");&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
else if (key.getKeyCode() == KeyEvent.VK_UP)&lt;br /&gt;
{&lt;br /&gt;
FPS++;&lt;br /&gt;
}&lt;br /&gt;
else if (key.getKeyCode() == KeyEvent.VK_DOWN)&lt;br /&gt;
{&lt;br /&gt;
FPS--;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
public void keyPressed(KeyEvent key)&lt;br /&gt;
{&lt;br /&gt;
if (key.getKeyCode() == KeyEvent.VK_RIGHT)&lt;br /&gt;
{&lt;br /&gt;
hero.setKey("left", false);&lt;br /&gt;
hero.setKey("right", true);&lt;br /&gt;
}&lt;br /&gt;
else if (key.getKeyCode() == KeyEvent.VK_LEFT)&lt;br /&gt;
{&lt;br /&gt;
hero.setKey("right", false);&lt;br /&gt;
hero.setKey("left", true);&lt;br /&gt;
}&lt;br /&gt;
repaint();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
public void start()&lt;br /&gt;
{&lt;br /&gt;
if (runner == null)&lt;br /&gt;
{&lt;br /&gt;
runner = new Thread(this);&lt;br /&gt;
runner.start();&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
public void stop(){}&lt;br /&gt;
&lt;br /&gt;
public void run()&lt;br /&gt;
{&lt;br /&gt;
while (runner != null)&lt;br /&gt;
{&lt;br /&gt;
repaint();&lt;br /&gt;
&lt;br /&gt;
try&lt;br /&gt;
{&lt;br /&gt;
Thread.sleep(FPS);&lt;br /&gt;
if (hero.K_LEFT())&lt;br /&gt;
{&lt;br /&gt;
hero.walk("left");&lt;br /&gt;
}&lt;br /&gt;
else if (hero.K_RIGHT())&lt;br /&gt;
{&lt;br /&gt;
hero.walk("right");&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
catch(InterruptedException e)&lt;br /&gt;
{&lt;br /&gt;
TSE = "Exception caught while trying to put thread to sleep...";&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
public void update(Graphics g)&lt;br /&gt;
{&lt;br /&gt;
g.drawImage(image, 0, 0, this);&lt;br /&gt;
g.drawImage(hero.src[hero.pos()],hero.x(),hero.y(),this);&lt;br /&gt;
&lt;br /&gt;
g.setColor(Color.red);&lt;br /&gt;
g.drawString("Luigi (" + hero.x() + ", " + hero.y() + ")", 10, 10);&lt;br /&gt;
g.setColor(Color.black);&lt;br /&gt;
g.drawString("Thread break = " + FPS, 10, 25);&lt;br /&gt;
&lt;br /&gt;
// Display errors&lt;br /&gt;
if (TSE != null)&lt;br /&gt;
g.drawString("Thread Sleep Error: " + TSE, 10, 40);&lt;br /&gt;
}&lt;br /&gt;
}&lt;/p&gt;&lt;h3 class="iHeaderSPAN"&gt;Conclusion&lt;/h3&gt;While this Java Applet tutorial was almost overly simplistic, the concepts we covered are pretty important. In case you don’t quite understand the way threads work, or how we can implement interfaces in Java, this would be a recommended subject to learn next. If you did follow the code without much confusion, then the challenge would be for you to try to improve on it. You will notice that by pressing the up/down arrow keys you can dynamically change the value of FPS, which will tell the thread to do what it does more times per second. Right now the FPS speed controls both the animation speed (how fast we change the image frames), and how fast Luigi moves. Can you think of a better way to do this? What if we want to move Luigi faster, but keep the animation as smooth? Try implementing different things, but be sure to check back soon for my follow up tutorial, where we’ll be adding more physics to Luigi. We’ll make him slide (like if he is running on ice), and jump. We’ll also add some background imagery to make the level prettier to look at.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://rodrixar.blogspot.com/1985/09/rodrigo-silveira.html" rel="author"&gt;About the author&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;Also, be sure to check out my web portfolio at http://www.rodrigo-silveira.com&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305595604099232942-1311584927940358432?l=rodrixar.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/1xPE0aRwmezQ-rKbwv5u39UUOG8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/1xPE0aRwmezQ-rKbwv5u39UUOG8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/1xPE0aRwmezQ-rKbwv5u39UUOG8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/1xPE0aRwmezQ-rKbwv5u39UUOG8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~4/xKYRfY9xkoU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rodrixar.blogspot.com/feeds/1311584927940358432/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://rodrixar.blogspot.com/2010/10/java-applet-tutorial.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/1311584927940358432?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/1311584927940358432?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~3/xKYRfY9xkoU/java-applet-tutorial.html" title="Java Applet Tutorial" /><author><name>Rodrigo Silveira</name><uri>http://www.blogger.com/profile/11020780093510564646</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="21" src="http://4.bp.blogspot.com/-aNmCqAeMePw/TlzhbhFrqFI/AAAAAAAAGPA/8lbSrqXxcg0/s220/33694_10150290812975147_864510146_15196120_7251683_n.jpg" /></author><thr:total>1</thr:total><feedburner:origLink>http://rodrixar.blogspot.com/2010/10/java-applet-tutorial.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0AMQ3g4fyp7ImA9WhdQGUU.&quot;"><id>tag:blogger.com,1999:blog-305595604099232942.post-7760355400553084794</id><published>2010-08-30T23:05:00.000-07:00</published><updated>2011-08-21T21:03:02.637-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-21T21:03:02.637-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="JS Tutorial" /><category scheme="http://www.blogger.com/atom/ns#" term="Speed Up Code" /><category scheme="http://www.blogger.com/atom/ns#" term="Javascript Optimization" /><title>JS Prototype Tutorial</title><content type="html">&lt;h1&gt;5 Ways to Speed up Javascript&lt;/h1&gt;&lt;br /&gt;
&lt;script type="text/javascript" src="https://apis.google.com/js/plusone.js"&gt;&lt;/script&gt;&lt;br /&gt;
&lt;g:plusone size="medium" count="false"&gt;&lt;/g:plusone&gt; One big problem the entire internet suffered from when Macromedia Flash became popular, was that people were overusing this new exciting technology, and the overall performance of their site was far too poor. Sadly, we are starting to see a similar pattern as Javascript libraries like Prototype, JQuery, MooTools, Scriptaculous, etc. Sites are looking great, but the effects, though relatively light-weight, are getting cluttered, which slow down the page load, and the results are at times counter-productive.&lt;br /&gt;
&lt;br /&gt;
In this JS tutorial, we’ll talk about a needed subject, which will benefit both the site owner and users. This subject is Javascript Speed up techniques.&lt;br /&gt;
&lt;br /&gt;
&lt;h3 class="”iHeaderSPAN”"&gt;1. External File Cache&lt;/h3&gt;&lt;br /&gt;
The first thing I have seen many programmers take for granted is the browser’s ability to cache code for them. Caching code has many benefits that some people don’t realize. For one thing, if you store your Javascript on your user’s machine, you don’t have to download it every time the user requests it. If the user doesn’t have to download something, the page load will be faster – obvious. The down side of this could be the fact that if you change the code too often, then the Javascript your user has cached will be different. This is especially bad if the cached js has bugs in it, and the new code you deploy is a patch to it.&lt;br /&gt;
&lt;br /&gt;
Overall, caching your Javascript is a best-practice to be observed. The way you cache your scripts is to store it in an external file and link it in to your main HTML file by using the following syntax:&lt;br /&gt;
&lt;p class="iCode"&gt;&amp;lt;script type="text/javascript" src="&lt;b&gt;file-name.js&lt;/b&gt;"&gt;&amp;lt;/script&gt;&lt;/p&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;Make sure you place this line of code inside the head of your HTML document. If this code is not placed within your &amp;lt;head&gt; and &amp;lt;/head&gt; tags, the document will not validate with the W3C. This takes us to the next tip to help you speed up your javascript.&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;h3 class="iHeaderSPAN"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;2. Code Placement&lt;/span&gt;&lt;/h3&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;
Some people have suggested that a good way to speed up your code is to place it at the end of your HTML document. This makes some sense, and can be confusing since Google specifically instructs webmasters to place the Google Analytics code just before the closing &amp;lt;/body&gt; tag. The reasoning behind adding Javascript to the end of your file is that everything else (images, CSS, text, etc.) can load first, so while the js script is loading, the user can still see everything else on the page (the main reason they visit your site for). However, placing the code at the end of your file won’t allow you to cache the file.&lt;br /&gt;
&lt;br /&gt;
The solution is to add the code to the &amp;lt;head&gt; portion of your file through an external file. If the script loading interrupts the rest of the page load, you may need to change your design structure. Abstracting your code into classes and functions will keep the code from loading unless you tell it to. Any code that you do need loaded automatically can be called on your document’s onload event. This way the code will be loaded only after the rest of the file is loaded, and it will still be cached. In libraries like Prototype or JQuery, you can use the document.ready() function.&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;h3 class="iHeaderSPAN"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;3. Reduce HTTP Requests&lt;/span&gt;&lt;/h3&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;
A simple analysis of a regular page load reveals that most of the loading time of a web page is spent sending and receiving HTTP requests to and from the server. The immediate solution to this, simply enough, is to reduce the number of requests you make to your server. One way to do this with your Javascript is to include all of your js code on a single file (so only one HTTP request is necessary to load it), then cache the file so it doesn’t need to be downloaded again. In CSS, as a side note, a common technique is called Image Spriting, where all of the images referenced in your CSS are combined into one single, larger image file, so only one HTTP request is necessary to pull all those images from the server.&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;h3 class="iHeaderSPAN"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;4. Inline your functions&lt;/span&gt;&lt;/h3&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;
A tedious, yet masterful habit to pick up is to have two versions of your scripts. One version is well commented, well designed and coded, and carefully structured, while the other version – the version you deploy, is highly optimized. This will be covered more in-depth in the next section, but in short, a main way to speed up your js is to avoid the overhead involved in calling functions. The easiest way to accomplish this is to inline each and every function call in your code. Javascript doesn’t have an “inline” function definition like C++, so the way you do this is to physically paste the entire function every time it is called. This will greatly speed up your code execution.&lt;br /&gt;
&lt;/span&gt;&lt;h3 class="iHeaderSPAN"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;5. Compress your Code&lt;/span&gt;&lt;/h3&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;
Finally, after you optimize your code and inline your functions, the final thing to do to get the most out of your script, is to compress your code. Some people prefer to obfuscate their code to discourage people to straight copy their own code. Google offers a great tool known as the &lt;/span&gt;&lt;a href="http://closure-compiler.appspot.com/home" target="_blank"&gt;Closure Compiler&lt;/a&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;, which compiles your Javascript code into very compact, optimized code. This extra step definitely takes extra work, but is an absolute must have for anyone wanting to speed up their javascript libraries.&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;img style="display: none;" src="http://3.bp.blogspot.com/_Nd9gSdAA0og/THycKu4uzLI/AAAAAAAAF1w/L47-IMym60U/images.jpg" /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://rodrixar.blogspot.com/1985/09/rodrigo-silveira.html" rel="author"&gt;About the author&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;Also, be sure to check out my web portfolio at http://www.rodrigo-silveira.com&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305595604099232942-7760355400553084794?l=rodrixar.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ys7PeYaZD1X1AbyMckaUzGgdlSg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ys7PeYaZD1X1AbyMckaUzGgdlSg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ys7PeYaZD1X1AbyMckaUzGgdlSg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ys7PeYaZD1X1AbyMckaUzGgdlSg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~4/WKQal9hQQzU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rodrixar.blogspot.com/feeds/7760355400553084794/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://rodrixar.blogspot.com/2010/08/js-prototype-tutorial.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/7760355400553084794?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/7760355400553084794?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~3/WKQal9hQQzU/js-prototype-tutorial.html" title="JS Prototype Tutorial" /><author><name>Rodrigo Silveira</name><uri>http://www.blogger.com/profile/11020780093510564646</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="21" src="http://4.bp.blogspot.com/-aNmCqAeMePw/TlzhbhFrqFI/AAAAAAAAGPA/8lbSrqXxcg0/s220/33694_10150290812975147_864510146_15196120_7251683_n.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_Nd9gSdAA0og/THycKu4uzLI/AAAAAAAAF1w/L47-IMym60U/s72-c/images.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://rodrixar.blogspot.com/2010/08/js-prototype-tutorial.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEAEQnszeyp7ImA9WhdQGUU.&quot;"><id>tag:blogger.com,1999:blog-305595604099232942.post-9016554283962636104</id><published>2010-08-21T21:08:00.000-07:00</published><updated>2011-08-21T21:18:23.583-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-21T21:18:23.583-07:00</app:edited><title>Home is Where Your Destiny is</title><content type="html">The sun still laid low behind the rising mountains. The thin, cold rain bathed his car as he sat in silence driving southward. The flat road vanished to a far away point straight in front of him, leveled with his eyes. In his mind's eye the memories were vivid and fresh, and the time that had passed since he'd last been home seemed to be less than it really had. After his many travels, the traveler was anxious to be back, and curious to see his dear family again. The stores he'd heard over the years told him of little change, and the traveler wondered what he'd find. Through the many layers of uncertainty, insecurity, and the fear of disappointing his family, deep inside, the traveler was glad to be coming home.&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;As he entered the small town of Kibou, Tabi, as he was known as a child, noticed how much things had remain the same. There were new additions to the town, of course, such as the two-story Walmart that could be seen from the distance, a new IMax theater was built to entertain the mind, high buildings sophisticated the market place, an international airport facilitated transportation, and the few middle schools, high schools, and the community college had been rebuilt in order to accomodate the eager seekers of knowledge. As Tabi looked around him, it was clear that Kibou had merely kept up with times.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;The street where his parents lived had seen busy days before. Weekend gatherings were common place back in the day. Today was no exception. Pound after pound of fresh-cut meat was leveled against the grill, the children ran around the Haytae backyard, the women sat around wearing their sun dress talking about the latest topics that went around town, while the men spoke of recent sporting outcomes, business events, and other such subjects. &lt;/div&gt;&lt;br /&gt;
&lt;a href="http://rodrixar.blogspot.com/1985/09/rodrigo-silveira.html" rel="author"&gt;About the author&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;Also, be sure to check out my web portfolio at http://www.rodrigo-silveira.com&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305595604099232942-9016554283962636104?l=rodrixar.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/XKzYdi9RrjM2ZskyrGGX3-PsrYg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/XKzYdi9RrjM2ZskyrGGX3-PsrYg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/XKzYdi9RrjM2ZskyrGGX3-PsrYg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/XKzYdi9RrjM2ZskyrGGX3-PsrYg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~4/o4PVyPLP0gs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rodrixar.blogspot.com/feeds/9016554283962636104/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://rodrixar.blogspot.com/2011/08/home-is-where-your-destiny-is.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/9016554283962636104?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/9016554283962636104?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~3/o4PVyPLP0gs/home-is-where-your-destiny-is.html" title="Home is Where Your Destiny is" /><author><name>Rodrigo Silveira</name><uri>http://www.blogger.com/profile/11020780093510564646</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="21" src="http://4.bp.blogspot.com/-aNmCqAeMePw/TlzhbhFrqFI/AAAAAAAAGPA/8lbSrqXxcg0/s220/33694_10150290812975147_864510146_15196120_7251683_n.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://rodrixar.blogspot.com/2011/08/home-is-where-your-destiny-is.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0ANRn48eCp7ImA9WhdQGUU.&quot;"><id>tag:blogger.com,1999:blog-305595604099232942.post-3637848627699183190</id><published>2010-04-13T12:30:00.000-07:00</published><updated>2011-08-21T21:03:17.070-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-21T21:03:17.070-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="web 2.0 tutorial" /><category scheme="http://www.blogger.com/atom/ns#" term="prototype tutorial" /><category scheme="http://www.blogger.com/atom/ns#" term="javascript slideshow" /><category scheme="http://www.blogger.com/atom/ns#" term="html" /><category scheme="http://www.blogger.com/atom/ns#" term="css" /><title>How to JavaScript: Prototype Slideshow Tutorial</title><content type="html">&lt;h1&gt;Javascript Slideshow: A Web 2.0 Tutorial &lt;span style="font-size: 14px;"&gt;(a prototype tutorial)&lt;/span&gt;&lt;/h1&gt;&lt;br /&gt;
&lt;a class="DiggThisButton DiggMedium" href="http://digg.com/submit?url=http%3A//rodrixar.blogspot.com/2010/04/javascript-slideshow-prototype-tutorial.html"&gt;&lt;/a&gt;&lt;br /&gt;
&lt;p&gt;&lt;script type="text/javascript" src="https://apis.google.com/js/plusone.js"&gt;&lt;/script&gt;&lt;br /&gt;
&lt;g:plusone size="medium" count="false"&gt;&lt;/g:plusone&gt; Here's a quick Prototype tutorial for those looking for a simple javascript slideshow. This is not intended to be a JQuery discussion or tutorial, but a quick prototype tutorial. The desired result is an efficient, useful javascript slideshow coded in prototype js. &lt;/p&gt;&lt;p&gt;Before we get started, be sure to download the external Prototype files. In this amazing &lt;b&gt;web 2.0 tutorial &lt;/b&gt; we'll use the &lt;a href="http://giggogames.com/labs/effects.js" title="Prototype Effects"&gt;effects.js &lt;/a&gt; and &lt;a href="http://giggogames.com/labs/prototype.js" title="Prototype Library"&gt;prototype.js&lt;/a&gt; files. In addition to this prototype tutorial, visit the official site of &lt;a href="http://www.prototypejs.org/api" target="_blank"&gt; Prototype&lt;/a&gt; or learn more about &lt;a href="http://en.wikipedia.org/wiki/JavaScript" target="_blank"&gt; Javascript &lt;/a&gt;. &lt;/p&gt;&lt;h3 class="iHeaderSPAN"&gt;Demo &lt;/h3&gt;&lt;p&gt;For a quick demo on what the final product of this prototype tutorial is to look like, please refer to the header of this very blog (&lt;a href="http://rodrixar.blogspot.com"&gt;Rodrixar&lt;/a&gt;). Image changes after 3.5 seconds.&lt;/p&gt;&lt;h3 class="iHeaderSPAN"&gt;1. The goal &lt;/h3&gt;&lt;p&gt;Our goal in this prototype tutorial is to come up with a javascript slideshow. The way it will work is that you'll have one image displaying, then after a predetermined amount of time (4 seconds in my example) the image will fade out and a different image will be showing behind it, and after another 4 seconds that image will fade out and a new one will display behind it. Then when the last image fades out, the first image will display.&lt;/p&gt;&lt;p&gt;The code design will be as follows:&lt;ul&gt;&lt;li&gt;An array will hold the filename for each image to be displayed &lt;/li&gt;
&lt;li&gt;There will be 2 image elements on screen at all times, both stacked atop each other&lt;/li&gt;
&lt;li&gt;A timer will call our main function every 4 seconds &lt;/li&gt;
&lt;li&gt;This function perform the following tasks:&lt;ol type="1"&gt;&lt;li&gt;Fade the top image so the image behind it will display&lt;/li&gt;
&lt;li&gt;After the fading effect is done, the front image will be the same as the back image (his step will be invisible to the human eye)&lt;/li&gt;
&lt;li&gt;Then the back image will be assigned a different value (it will display the next image in the array)&lt;/li&gt;
&lt;li&gt;Lastly, we'll check if we've hit the end of the array. If so have, we'll be sure the back image displays the first image of the array so the loop continues forever and ever (or until the person viewing your slideshow clicks away from your page)&lt;/li&gt;
&lt;/ol&gt;&lt;/li&gt;
&lt;li&gt;The function will set the timer to come back in another 4 seconds&lt;/li&gt;
&lt;/ul&gt;&lt;h3 class="iHeaderSPAN"&gt;2. The setup &lt;/h3&gt;&lt;p&gt;First thing we'll do is set up the HTML file. Though this is a prototype tutorial and a web 2.0 tutorial, I'll assume you could use the extra explanation. So open up your favorite text editor and be sure to have the following lines of code:&lt;/p&gt;&lt;p class="iCode"&gt;&lt;br /&gt;
&amp;lt;html&gt;&lt;br /&gt;
&amp;lt;head&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script type="text/javascript" src="&lt;b&gt;prototype.js&lt;/b&gt;"&gt;&amp;lt;/script&gt;&lt;br /&gt;
&amp;lt;script type="text/javascript" src="&lt;b&gt;effects.js&lt;/b&gt;"&gt;&amp;lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script type="text/javascript"&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;style type="text/css"&gt;&lt;br /&gt;
&lt;span style="margin-left: 25px;"&gt;#iSlideShell { width: &lt;strong&gt;250px&lt;/strong&gt;; height: &lt;strong&gt;250px&lt;/strong&gt;; position: relative; }&lt;/span&gt;&lt;br /&gt;
&lt;span style="margin-left: 25px;"&gt;#iSlideShell img { position: absolute; }&lt;/span&gt;&lt;br /&gt;
&amp;lt;/style&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/head&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;body&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id="iSlideShell"&gt;&lt;br /&gt;
&lt;span style="margin-left: 25px;"&gt;&amp;lt;img id="iSlideBack" src="&lt;strong&gt;img1.jpg&lt;/strong&gt;"/&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="margin-left: 25px;"&gt;&amp;lt;img id="iSlideFront" src="&lt;strong&gt;img1.jpg&lt;/strong&gt;"/&gt;&lt;/span&gt;&lt;br /&gt;
&amp;lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/body&gt;&lt;br /&gt;
&amp;lt;/html&gt;&lt;/p&gt;&lt;p&gt;This is our basic HTML setup. Be sure the external javascript files are referenced right (that the link points to the right directory where you have the files saved). Also, be sure the the images in the &amp;lt;img&gt; tags point to first 2 images you'd like displayed. Note that the top image (the one that will show first) is the one in the second &amp;lt;img&gt; tag (since they're stacked through the css position absolute command). Make sure also that the &amp;lt;div&gt; has the same height and width as the images in your slideshow. If the images you use aren't the same dimension we'll need to make a few slight adjustments to the &amp;lt;div&gt; but this won't be covered in this prototype tutorial.&lt;/p&gt;&lt;p&gt;Now we'll set up the images we'll be using in our slideshow.&lt;/p&gt;&lt;h3 class="iHeaderSPAN"&gt;3. The Javascript&lt;/h3&gt;&lt;p&gt;Inside the Javascript tags in the HTML code we'll set up the following variables:&lt;/p&gt;&lt;p class="iCode"&gt;var i = 0;&lt;br /&gt;
var iSlides = new Array("img1", "img2", "img3", "img4", "img5");&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;These will be our variables. The i will keep track of where we are as we loop through the array (iSlides), which is a list of all the images we want to display. Note that you don't include the file extension in the array, but only the filename. For this javascript tutorial you will need to use images of the same file type.&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;Next we'll add our function, which I'll call &lt;b&gt;iAnimate&lt;/b&gt;. I'm not sure why I have the tendency of adding the letter "i" to the front of my variables and function. Maybe it's because iLike it :)&lt;/p&gt;&lt;p class="iCode"&gt;function r$(id) { return document.getElementById(id); }&lt;br /&gt;
&lt;br /&gt;
function iAnimate()&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
&lt;span style="margin-left: 25px;"&gt;  r$('iSlideFront').show();&lt;/span&gt;&lt;br /&gt;
&lt;span style="margin-left: 25px;"&gt;  r$('iSlideBack').show();&lt;/span&gt;&lt;br /&gt;
&lt;span style="margin-left: 25px;"&gt;  r$('iSlideFront').fade();&lt;/span&gt;&lt;br /&gt;
&lt;span style="margin-left: 25px;"&gt; r$("iSlideFront").src = r$("iSlideBack").src;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="margin-left: 25px;"&gt;  i == (iSlides.length - 1) ? i = 0 : i++;&lt;/span&gt;&lt;br /&gt;
&lt;span style="margin-left: 25px;"&gt; r$("iSlideBack").src = "img/" + iSlides[i] + ".jpg";&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="margin-left: 25px;"&gt; setTimeout('iAnimate()', 4000);&lt;/span&gt;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
window.onload = iAnimate;&lt;/p&gt;&lt;p&gt;The function "r$" may look like Prototype and/or JQuery, but all it is is a shortcut function I created so I don't have to type "document.getElementById()" over and over...&lt;/p&gt;&lt;p&gt;The first thing the function does is be sure both images are showing. In Prototype (and in JQuery), when you  "hide" or "fade" (or "fadeOut") and element, that elements changes opacity gradually and finally has its css attribute "display" set to "none". By calling the &lt;b&gt;show()&lt;/b&gt; function, we make sure the display for both images is set to "block". Once that's done, we fade the front image.&lt;/p&gt;&lt;p&gt;Then we make sure the front image is the same as the back image. This may seem pointless the very first time the function is called, since no visible change takes place, but once the first image fades, this is important.&lt;/p&gt;&lt;p&gt;The next step is to find out what the next image is in the array, and assign that to the back image. The conditional statements ? : checks if the variable i is equal to the total amount of images in the array minus 1. The reason it's (length - 1) is because the first image in the array is represented by iSlides[0] (zero is the first element in an array in Javascript). If this statement returns true, that means we've displayed the last image in the array, so now we must display the first one. That's when the assignment i = 0 gets called. If the statement returns false, we increment i by 1.&lt;/p&gt;&lt;p&gt;The back image (iSlideBackthen gets assigned the next image of the array, and the timer is set to explode in 4000 milliseconds, or 4 whole seconds. Once those 4 seconds are counted by the computer's clock, iAnimate() is called again, and the fun starts all over!&lt;/p&gt;&lt;h3 class="iHeaderSPAN"&gt;4. Conclusion &lt;/h3&gt;&lt;p&gt;This is all there is to it. My goal was to make this as simple as possible, but making this javascript slideshow more robust shouldn't be too difficult with some basic understanding of javascript, prototype, html, or css.&lt;/p&gt;&lt;p&gt;One of the main benefits the code provided in this javascript slideshow (other than, but because of its simplicity) is the fact that the only images loaded are the ones currently displayed. Most prototype tutorials and JQuery tutorials I've seen load all images as the page loads (longer loading times), then they do what they must. In this javascript slideshow, if the user leaves the page after only 3 images have loaded, that's all the loading the code will do. This will save you resources and loading time.&lt;/p&gt;&lt;p&gt;Any questions, feel free to post in this prototype tutorial.&lt;/p&gt;&lt;h3 class="iHeaderSPAN"&gt;5. The Code&lt;/h3&gt;&lt;p&gt;Here's the complete code for those of you reading my prototype tutorial that are mindful of the mileage on your mouse and your daily keystroke allowance:&lt;/p&gt;&lt;p class="iCode"&gt;&amp;lt;html&gt;&lt;br /&gt;
&amp;lt;head&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script type="text/javascript" src="prototype.js"&gt;&amp;lt;/script&gt;&lt;br /&gt;
&amp;lt;script type="text/javascript" src="effects.js"&gt;&amp;lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script type="text/javascript"&gt;&lt;br /&gt;
&lt;span style="margin-left: 25px;"&gt; var i = 0;&lt;/span&gt;&lt;br /&gt;
&lt;span style="margin-left: 25px;"&gt; var iSlides = new Array("img1", "img2", "img3", "img4", "img5");&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
function r$(id) { return document.getElementById(id); }&lt;br /&gt;
&lt;br /&gt;
function iAnimate()&lt;br /&gt;
{&lt;br /&gt;
&lt;span style="margin-left: 25px;"&gt; r$('iSlideFront').show();&lt;/span&gt;&lt;br /&gt;
&lt;span style="margin-left: 25px;"&gt; r$('iSlideBack').show();&lt;/span&gt;&lt;br /&gt;
&lt;span style="margin-left: 25px;"&gt; r$('iSlideFront').fade();&lt;/span&gt;&lt;br /&gt;
&lt;span style="margin-left: 25px;"&gt; r$("iSlideFront").src = r$("iSlideBack").src;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="margin-left: 25px;"&gt; i == (iSlides.length - 1) ? i = 0 : i++;&lt;/span&gt;&lt;br /&gt;
&lt;span style="margin-left: 25px;"&gt; r$("iSlideBack").src = "img/" + iSlides[i] + ".jpg"; &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="margin-left: 25px;"&gt; setTimeout('iAnimate()', 4000);&lt;/span&gt;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;span style="margin-left: 25px;"&gt; window.onload = iAnimate;&lt;/span&gt;&lt;br /&gt;
&amp;lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;style type="text/css"&gt;&lt;br /&gt;
#iSlideShell { width: 250px; height: 250px; position: relative; }&lt;br /&gt;
#iSlideShell img { position: absolute; }&lt;br /&gt;
&amp;lt;/style&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/head&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;body&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id="iSlideShell"&gt;&lt;br /&gt;
&amp;lt;img id="iSlideBack" src="img1.jpg"/&gt;&lt;br /&gt;
&amp;lt;img id="iSlideFront" src="img1.jpg"/&gt;&lt;br /&gt;
&amp;lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/body&gt;&lt;br /&gt;
&amp;lt;/html&gt;&lt;/p&gt;&lt;img src="http://2.bp.blogspot.com/_Nd9gSdAA0og/S8TGzrBdyKI/AAAAAAAAFwI/yJK0pIqD6ys/JS_code_formatting.gif" style="display: none;" alt="Prototype Tutorial"/&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://rodrixar.blogspot.com/1985/09/rodrigo-silveira.html" rel="author"&gt;About the author&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;Also, be sure to check out my web portfolio at http://www.rodrigo-silveira.com&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305595604099232942-3637848627699183190?l=rodrixar.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/m2-vKIQtdvEbFHGITSdc0jTCPA0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/m2-vKIQtdvEbFHGITSdc0jTCPA0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/m2-vKIQtdvEbFHGITSdc0jTCPA0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/m2-vKIQtdvEbFHGITSdc0jTCPA0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~4/0BgKBQSRFx8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rodrixar.blogspot.com/feeds/3637848627699183190/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://rodrixar.blogspot.com/2010/04/javascript-slideshow-prototype-tutorial.html#comment-form" title="8 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/3637848627699183190?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/3637848627699183190?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~3/0BgKBQSRFx8/javascript-slideshow-prototype-tutorial.html" title="How to JavaScript: Prototype Slideshow Tutorial" /><author><name>Rodrigo Silveira</name><uri>http://www.blogger.com/profile/11020780093510564646</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="21" src="http://4.bp.blogspot.com/-aNmCqAeMePw/TlzhbhFrqFI/AAAAAAAAGPA/8lbSrqXxcg0/s220/33694_10150290812975147_864510146_15196120_7251683_n.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_Nd9gSdAA0og/S8TGzrBdyKI/AAAAAAAAFwI/yJK0pIqD6ys/s72-c/JS_code_formatting.gif" height="72" width="72" /><thr:total>8</thr:total><feedburner:origLink>http://rodrixar.blogspot.com/2010/04/javascript-slideshow-prototype-tutorial.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D08FQXk_fSp7ImA9WhdQGUU.&quot;"><id>tag:blogger.com,1999:blog-305595604099232942.post-2579086284567018153</id><published>2010-04-09T21:24:00.000-07:00</published><updated>2011-08-21T21:03:30.745-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-21T21:03:30.745-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Quotes" /><category scheme="http://www.blogger.com/atom/ns#" term="Saying" /><category scheme="http://www.blogger.com/atom/ns#" term="ancient chinese proverbs" /><category scheme="http://www.blogger.com/atom/ns#" term="Chinese Proverbs" /><title>Chinese Proverbs &amp; Chinese Sayings</title><content type="html">&lt;h1&gt;Chinese Proverbs&lt;/h1&gt;&lt;br /&gt;
&lt;script type="text/javascript" src="https://apis.google.com/js/plusone.js"&gt;&lt;/script&gt;&lt;br /&gt;
&lt;g:plusone size="medium" count="false"&gt;&lt;/g:plusone&gt; A lot of people have been asking me why I haven't posted ancient Chinese proverbs lately, especailly after posting about &lt;a href="http://rodrixar.blogspot.com/2009/07/journey-of-thousand-miles-must-begin.html"&gt;the journey of a thousand miles &lt;/a&gt;. So here are some of my favorite Chinese proverbs.&lt;br /&gt;
&lt;br /&gt;
&lt;h1&gt;&lt;em&gt;A bird does not sing because it has an answer; but because it has a song&lt;/em&gt;&lt;/h1&gt;&lt;br /&gt;
My thoughts on it can be answered with the not-so-popular,&lt;br /&gt;
&lt;br /&gt;
&lt;h1&gt;&lt;em&gt;Not everything that's doable is worth doing; but whatever is done must be done well&lt;/em&gt;&lt;/h1&gt;&lt;br /&gt;
Actually, I made up this and other nice proverbs from other Chinese proverbs.  Nevertheless, let us not forget that,&lt;br /&gt;
&lt;br /&gt;
&lt;h1&gt;&lt;em&gt;He who cannot but does is better than he who can but won't&lt;/em&gt;&lt;/h1&gt;&lt;br /&gt;
At the beginning of a new phase in my life, I take comfort in knowing that,&lt;br /&gt;
&lt;br /&gt;
&lt;h1&gt;&lt;em&gt;A journey of a thousand miles must begin with a single step&lt;/em&gt;&lt;/h1&gt;&lt;br /&gt;
It was pointed out last week that because a journey of a thousand miles does begin with the first step, we must watch our step! Remember also that&lt;br /&gt;
&lt;br /&gt;
&lt;h1&gt;&lt;em&gt;When ten hours is given you to cut down a tree, spend the first eight sharpening your ax.&lt;/em&gt;&lt;/h1&gt;&lt;br /&gt;
Again, not from real Chinese Proverbs, but a good thought nontheless. On a more realistic note, since this collection of &lt;strong&gt;Chinese Proverbs&lt;/strong&gt; is so popular, let me post a few legit Chinese Proverbs:&lt;ul&gt;&lt;li&gt;&lt;h2&gt;When you drink the water, remember the spring &lt;/h2&gt;&lt;/li&gt;
&lt;li&gt;&lt;h2&gt;Keep your broken arm inside your sleeve&lt;/h2&gt;&lt;/li&gt;
&lt;li&gt;&lt;h2&gt;He who strikes the first blow admits he's lost the argument &lt;/h2&gt;&lt;/li&gt;
&lt;li&gt;&lt;h2&gt;Do not remove a fly from your friend's forehead with a hatchet &lt;/h2&gt;&lt;/li&gt;
&lt;li&gt;&lt;h2&gt;If you don't want anyone to know, don't do it &lt;/h2&gt;&lt;/li&gt;
&lt;li&gt;&lt;h2&gt;An ant may well destroy a whole dam &lt;/h2&gt;&lt;/li&gt;
&lt;li&gt;&lt;h2&gt;Don't use a cannon to kill a mosquito &lt;/h2&gt;&lt;/li&gt;
&lt;li&gt;&lt;h2&gt;Dismantle the bridge shortly after crossing it &lt;/h2&gt;&lt;/li&gt;
&lt;li&gt;&lt;h2&gt;Dream different dreams while on the same bed &lt;/h2&gt;&lt;/li&gt;
&lt;li&gt;&lt;h2&gt;Do not employ handsome servants &lt;/h2&gt;&lt;/li&gt;
&lt;li&gt;&lt;h2&gt;Crows everywhere are equally black &lt;/h2&gt;&lt;/li&gt;
&lt;li&gt;&lt;h2&gt;To believe in one's dreams is to spend all of one's life asleep &lt;/h2&gt;&lt;/li&gt;
&lt;li&gt;&lt;h2&gt;He who treads softly goes far &lt;/h2&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h1&gt;The journey is the reward&lt;/h1&gt;&lt;br /&gt;
In sharing Chinese Proverbs I like the philosophy they help us keep in perspective. A wise student of Chinese proverbs ponders them but remembers them. Here are a few that I've heard around the office this week:&lt;ul&gt;&lt;li&gt;&lt;h2&gt;Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime  &lt;/h2&gt;&lt;/li&gt;
&lt;li&gt;&lt;h2&gt;A wise man makes his own decisions, an ignorant man follows the public opinion  &lt;/h2&gt;&lt;/li&gt;
&lt;li&gt;&lt;h2&gt;Learning is a treasure that will follow its owner everywhere  &lt;/h2&gt;&lt;/li&gt;
&lt;li&gt;&lt;h2&gt;A hundred men may make an encampment, but it takes a woman to make a home  &lt;/h2&gt;&lt;/li&gt;
&lt;li&gt;&lt;h2&gt;A truly great man never puts away the simplicity of a child  &lt;/h2&gt;&lt;/li&gt;
&lt;li&gt;&lt;h2&gt;One step at a time is good walking  &lt;/h2&gt;&lt;/li&gt;
&lt;li&gt;&lt;h2&gt;To be uncertain is to be uncomfortable, but to be certain is to be ridiculous  &lt;/h2&gt;&lt;/li&gt;
&lt;li&gt;&lt;h2&gt;Have a mouth as sharp as a dagger but a heart as soft as tofu  &lt;/h2&gt;&lt;/li&gt;
&lt;li&gt;&lt;h2&gt;Once on a tiger's back, it is hard to alight  &lt;/h2&gt;&lt;/li&gt;
&lt;li&gt;&lt;h2&gt;Shed no tears until seeing the coffin  &lt;/h2&gt;&lt;/li&gt;
&lt;li&gt;&lt;h2&gt;Waiting for a rabbit to hit upon a tree and be killed in order to catch it  &lt;/h2&gt;&lt;/li&gt;
&lt;li&gt;&lt;h2&gt;Only when all contribute their firewood can they build up a strong fire  &lt;/h2&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;img style="display:none" src="http://1.bp.blogspot.com/_Nd9gSdAA0og/S8HmJ-kKOtI/AAAAAAAAFtE/6tWLNWQxxiw/s400/pagoda.jpg" border="0" alt="Chinese Pagoda" title="Chinese Pagoda" /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://rodrixar.blogspot.com/1985/09/rodrigo-silveira.html" rel="author"&gt;About the author&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;Also, be sure to check out my web portfolio at http://www.rodrigo-silveira.com&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305595604099232942-2579086284567018153?l=rodrixar.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ozpzAB3iD6WjwwWuWV3yafvGqNg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ozpzAB3iD6WjwwWuWV3yafvGqNg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ozpzAB3iD6WjwwWuWV3yafvGqNg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ozpzAB3iD6WjwwWuWV3yafvGqNg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~4/1_YCyhvTd_A" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rodrixar.blogspot.com/feeds/2579086284567018153/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://rodrixar.blogspot.com/2010/04/chinese-proverbs.html#comment-form" title="5 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/2579086284567018153?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/2579086284567018153?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~3/1_YCyhvTd_A/chinese-proverbs.html" title="Chinese Proverbs &amp; Chinese Sayings" /><author><name>Rodrigo Silveira</name><uri>http://www.blogger.com/profile/11020780093510564646</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="21" src="http://4.bp.blogspot.com/-aNmCqAeMePw/TlzhbhFrqFI/AAAAAAAAGPA/8lbSrqXxcg0/s220/33694_10150290812975147_864510146_15196120_7251683_n.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_Nd9gSdAA0og/S8HmJ-kKOtI/AAAAAAAAFtE/6tWLNWQxxiw/s72-c/pagoda.jpg" height="72" width="72" /><thr:total>5</thr:total><feedburner:origLink>http://rodrixar.blogspot.com/2010/04/chinese-proverbs.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D08GRHk8eip7ImA9WhdQGUU.&quot;"><id>tag:blogger.com,1999:blog-305595604099232942.post-1499535073330464672</id><published>2010-02-21T02:18:00.000-08:00</published><updated>2011-08-21T21:03:45.772-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-21T21:03:45.772-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Stay Motivated at work" /><category scheme="http://www.blogger.com/atom/ns#" term="Motivate yourself" /><category scheme="http://www.blogger.com/atom/ns#" term="Rodrigo Silveira" /><category scheme="http://www.blogger.com/atom/ns#" term="Motivation at Work" /><category scheme="http://www.blogger.com/atom/ns#" term="Secret of Success" /><category scheme="http://www.blogger.com/atom/ns#" term="Motivates" /><category scheme="http://www.blogger.com/atom/ns#" term="Success Factors" /><category scheme="http://www.blogger.com/atom/ns#" term="Motivation theory" /><category scheme="http://www.blogger.com/atom/ns#" term="Employee Morale" /><title>Motivation at Work | Staying Motivated about your Job | Motivate yourself today!</title><content type="html">&lt;strong style="color: #aaa;"&gt;Secret of Success:&lt;/strong&gt;&lt;br /&gt;
&lt;h1 style="margin: 0;"&gt;Motivation at Work&lt;/h1&gt;&lt;br /&gt;
&lt;span&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="color:#6666CC;"&gt;by Rodrigo Silveira&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;p class="MsoNormal"&gt;This 3 part series will cover ways to find &lt;b&gt;motivation at work&lt;/b&gt;. As I notice my own co-workers get more frustrated each day in the office, I can’t help but notice the one key factor they all share: staying motivated at work.&lt;/p&gt;&lt;p class="MsoNormal"&gt;By definition, the word motivation refers to a state of being, an act or a process. So staying motivated is something that requires work and conscious attention. Much like working to maintain a healthy body, there are things you must understand and do to motivate yourself and sustain the attitude. Below are three tips that to staying motivated at work.&lt;/p&gt;&lt;p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"&gt;&lt;/p&gt;&lt;table&gt;&lt;tr&gt;&lt;td align="left" valign="middle"&gt;&lt;img src="http://1614587074030076667-a-1802744773732722657-s-sites.googlegroups.com/site/rodrixar/home-1/list-1.png" style="border:0;" alt="Motivation at Work | Tip# 1" /&gt;&lt;/td&gt;&lt;td align="left" valign="middle"&gt;&lt;h2 style="font-size:15px;color: #599CFA;margin: 0; letter-spacing: 1px; display: inline;"&gt;Be passionate about your job &lt;/h2&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;p class="MsoNormal"&gt;This is one of the great secrets of success and finding &lt;span&gt;motivation at work&lt;/span&gt;. A common answer that millionaires give as to the key reason to their success is that they make a profession out of their passion. When you are in love with your job it’s much easier to find motivation to work and stay motivated.&lt;/p&gt;&lt;p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"&gt;&lt;/p&gt;&lt;table&gt;&lt;tr&gt;&lt;td align="left" valign="middle"&gt;&lt;img src="http://1614587074030076667-a-1802744773732722657-s-sites.googlegroups.com/site/rodrixar/home-1/list-2.png" style="border:0;" alt="Motivation at Work | Tip# 2" /&gt;&lt;/td&gt;&lt;td align="left" valign="middle"&gt;&lt;h2 style="font-size:15px;color: #599CFA;margin: 0; letter-spacing: 1px; display: inline;"&gt;Set goals to improve your performance&lt;/h2&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;p class="MsoNormal"&gt;Visualize yourself a year from now. What is different about your job? Are you still doing the same thing, the same way? What if you could be earning twice as much as you do today? If you set a goal to achieve something in your career, then find ways to accomplish that, how can you lose your motivation as your work every day?&lt;/p&gt;&lt;p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"&gt;&lt;/p&gt;&lt;table&gt;&lt;tr&gt;&lt;td align="left" valign="middle"&gt;&lt;img src="http://1614587074030076667-a-1802744773732722657-s-sites.googlegroups.com/site/rodrixar/home-1/list-3.png" style="border:0;" alt="Motivation at Work | Tip# 3" /&gt;&lt;/td&gt;&lt;td align="left" valign="middle"&gt;&lt;h2 style="font-size:15px;color: #599CFA;margin: 0; letter-spacing: 1px; display: inline;"&gt;Take some time off&lt;/h2&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;p class="MsoNormal"&gt;When you’re at work be sure to work. When you go play be sure to play. But never work while you play, and under no circumstances play at work. However, one of the fastest ways to motivation at work is to take the time to get away from work. When you do, leave your work in the office. Take your mind completely out of your career and enjoy some quality time with your loved ones doing things together that makes you happy. Then when you get back to the office focus on your important tasks and be your best motivator. Diversifying your activities will keep you motivated and looking forward to your next break with your family.&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="font-size:17px; color:#555;"&gt;&lt;a href="http://rodrixar.blogspot.com/p/about-rodrigo-silveira.html" style="text-decoration: none;"&gt;Rodrigo Silveira&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;center&gt;&lt;br /&gt;
&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 318px;" src="http://3.bp.blogspot.com/_Nd9gSdAA0og/S8HnI0aA0SI/AAAAAAAAFtU/_4Y5TjoGef8/s400/motivation-at-work.jpg" border="0" alt="Motivation at Work" id="BLOGGER_PHOTO_ID_5458898362042470690" /&gt;&lt;br /&gt;
&lt;/center&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h1 style="font-size: 12px; color:#aaa;"&gt;&lt;strong&gt;Motivation at work&lt;/strong&gt;: The key to faster, more frequent promotions is &lt;span&gt;motivation at work&lt;/span&gt;. Don't wait until a co-worker motivates you, be proactive in motivating yourself at  work.&lt;/h1&gt;&lt;br /&gt;
&lt;a href="http://rodrixar.blogspot.com/1985/09/rodrigo-silveira.html" rel="author"&gt;About the author&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;Also, be sure to check out my web portfolio at http://www.rodrigo-silveira.com&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305595604099232942-1499535073330464672?l=rodrixar.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/18L_4wXYF6BiHYef_HnKrcb2JYI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/18L_4wXYF6BiHYef_HnKrcb2JYI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/18L_4wXYF6BiHYef_HnKrcb2JYI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/18L_4wXYF6BiHYef_HnKrcb2JYI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~4/ypd7aRBbrio" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rodrixar.blogspot.com/feeds/1499535073330464672/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://rodrixar.blogspot.com/2010/02/motivation-at-work-staying-motivated.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/1499535073330464672?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/1499535073330464672?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~3/ypd7aRBbrio/motivation-at-work-staying-motivated.html" title="Motivation at Work | Staying Motivated about your Job | Motivate yourself today!" /><author><name>Rodrigo Silveira</name><uri>http://www.blogger.com/profile/11020780093510564646</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="21" src="http://4.bp.blogspot.com/-aNmCqAeMePw/TlzhbhFrqFI/AAAAAAAAGPA/8lbSrqXxcg0/s220/33694_10150290812975147_864510146_15196120_7251683_n.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_Nd9gSdAA0og/S8HnI0aA0SI/AAAAAAAAFtU/_4Y5TjoGef8/s72-c/motivation-at-work.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://rodrixar.blogspot.com/2010/02/motivation-at-work-staying-motivated.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D08HRHc6fCp7ImA9WhdQGUU.&quot;"><id>tag:blogger.com,1999:blog-305595604099232942.post-430170627887591197</id><published>2010-02-14T20:26:00.000-08:00</published><updated>2011-08-21T21:03:55.914-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-21T21:03:55.914-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="forgiveness" /><category scheme="http://www.blogger.com/atom/ns#" term="Motivational Short Stories by Rodrigo Silveira" /><category scheme="http://www.blogger.com/atom/ns#" term="murder" /><category scheme="http://www.blogger.com/atom/ns#" term="rodrigo" /><category scheme="http://www.blogger.com/atom/ns#" term="Inspiration" /><category scheme="http://www.blogger.com/atom/ns#" term="forgive" /><category scheme="http://www.blogger.com/atom/ns#" term="Silveira" /><category scheme="http://www.blogger.com/atom/ns#" term="el salvador" /><category scheme="http://www.blogger.com/atom/ns#" term="alvin" /><category scheme="http://www.blogger.com/atom/ns#" term="family" /><category scheme="http://www.blogger.com/atom/ns#" term="Motivational Short Stories" /><category scheme="http://www.blogger.com/atom/ns#" term="heart of peace" /><category scheme="http://www.blogger.com/atom/ns#" term="Inspirational" /><title>Motivational Stories | A Heart of Peace</title><content type="html">&lt;h1&gt;&lt;img style="display:none;" src="http://2.bp.blogspot.com/_Nd9gSdAA0og/S8HttGgC3OI/AAAAAAAAFtc/xRhq0PBh6DE/s200/heart-of-peace.jpg" border="0" alt="Heart of Peace" /&gt;A Heart of Peace&lt;br /&gt;
&lt;span style="font-size:12px; color: #aaa;"&gt;by Rodrigo Silveira&lt;/span&gt;&lt;/h1&gt;&lt;br /&gt;
&lt;br /&gt;
Today's Motivational Short Story by Rodrigo Silveira is a true story I heard from a good friend of mine. The person that shared this experience with me is a very successful business man from Utah. The subject of this motivational story is his partner, whose name is Alvin Sorano from El Salvador.&lt;br /&gt;
&lt;br /&gt;
Back in the 60s, somewhere in El Salvador, Alvin's father (whose name I do not know, but will refer to from this point on as Richard) was a body guard to the President of El Salvador. One day, however, Mr. Sorano father was involved in some sort of accident and broke his back. Due to the circumstance, the President decided to release Richard of his duties. Sadly, the President also decided that Richard knew too much information. For this reason he demanded that Richard be killed.&lt;br /&gt;
&lt;br /&gt;
As the President's servants made their way to Alvin's home in order to get rid of his father, Richard was tipped off about the situation. He then put Alvin (who was 10 years old at the time) and his little sister (age 11) atop a horse and told them to hide at a certain place and return in two weeks, by which time a plan would be put in place to move the two of them to the United States. Shortly thereafter Richard was captured and shot nine times before he was left for dead.&lt;br /&gt;
&lt;br /&gt;
Miraculously, someone found Richard's body and rushed him to the nearest hospital as he struggled for his live. As the President received news that Richard was still breathing, he sent out his servants to the hospital and ordered them to stay there until Richard was dead. Not long afterwards the line went flat, and Richard departed this world.&lt;br /&gt;
&lt;br /&gt;
Two weeks later, Alvin and his sister returned home, and as arranged, were moved to the States. Their mother had been moved earlier, and soon the three of them were together in Southern California. Alvin and his family was also joined by two of his older brothers.&lt;br /&gt;
&lt;br /&gt;
At the age of 16, on a nice spring day, Alvin decided for the first time to skip class and come home in the middle of the day. As he sat on his living room at 12:00 p.m. that day, a couple of Christian missionaries knocked on his door wanting to share the Good Word with Alvin. He asked that the missionaries come back that evening, so Alvin, his mother, and the rest of the family could hear the message. The missionaries came back as agreed, and soon after Alvin and his mother were converted to this new religion. Alvin says joining this new faith was the day his live turned around for the better.&lt;br /&gt;
&lt;br /&gt;
Seven months after his baptism, as Alvin was now 17 years old, his two older brothers came to him with automatic guns and a message for him. They said that the man living just a few blocks up the street was the man that had coldly murdered their father all those years ago, and they should now to take his life in revenge. A good detail to be added to the plot at this point is that when Alvin was just a little kid and Richard was still working for the government, for whatever reason, Richard gathered the family together one evening and made the announcement that all major decisions were to go through Alvin. His word would be the final saying on any specific matter. So this was the reason the two older brothers came to 17 year old Alvin before shooting the man who'd taken their father about a decade before.&lt;br /&gt;
&lt;br /&gt;
Alvin told his brothers to stay put. He walked to the man's house on his own, no guns in hand. The door received three brief knocks. The man answered and was greeted by Alvin. They shook hands. Alvin introduced himself and let the man know he was the son of the Richard Sorano, the former bodyguard to the President, whom he had killed. Alvin then said the following words:&lt;br /&gt;
&lt;br /&gt;
I forgive you. My family and I hold no bad feelings towards you. I forgive you.&lt;br /&gt;
&lt;br /&gt;
He then turned around and left the house.&lt;br /&gt;
&lt;br /&gt;
Walking up to his brothers (who were 21 and 25 years of age) and say:&lt;br /&gt;
&lt;br /&gt;
It's over. We kill him and this will go on from generation to generation. The hatred must stop here. We must break the cycle.&lt;br /&gt;
&lt;br /&gt;
The brothers were obedient to Alvin's instructions.&lt;br /&gt;
&lt;br /&gt;
Several years went by and one day Alvin discovered a surprising truth. The man whom he had forgiven, the man who had murdered his father, he was also a government agent back in the 1960s. When the President had ordered him to kill Richard, this man actually refused to do so. He told the President he was no murderer and that he could not do this. The President then firmly told this gentleman that if he would not kill Richard, then he would have him killed for not following his orders. Not only that, the President told this man that he would also kill the man's wife, all his sons, all his daughters, and then all his relatives. What a situation! What would you do?&lt;br /&gt;
&lt;br /&gt;
The man, in an attempt to save his family, went through and shot Richard as commanded by the evil President. Since that day, he exiled himself to the United States, living in hell for the thing he had done. His live had been so miserable ever since. Then one day he was visited at home by non other than the teenage son of the very person he'd murdered. This was the day Alvin told him he was forgiven. WOW! How do you think Alvin's words made this man feel?&lt;br /&gt;
&lt;br /&gt;
Alvin had a heart of peace.&lt;br /&gt;
&lt;br /&gt;
&lt;h1 style="font-size: 15px;"&gt;&lt;span style="font-weight:bold;"&gt;&lt;span style="font-style:italic;"&gt;&lt;br /&gt;
Rodrigo Silveira&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;br /&gt;
&lt;h3 style="font-size: 12px; color: #aaa;"&gt;Motivational Short Stories by Rodrigo Silveira is dedicated to motivate, inspire, educate, uplift, and convince people that self-motivation, self-development, and inspiration through stories is the key to success. The motivational short stories found here are written by Rodrigo Silveira unless otherwise indicated. Rodrigo Silveira has been inspiring and motivating people through story telling since 2007. &lt;a href="http://twitter.com/motivationstory" target="_blank"&gt;Follow Rodrigo Silveira on Twitter &lt;/a&gt; and receive motivational short stories updates on your phone.&lt;/h3&gt;&lt;br /&gt;
&lt;a href="http://rodrixar.blogspot.com/1985/09/rodrigo-silveira.html" rel="author"&gt;About the author&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;Also, be sure to check out my web portfolio at http://www.rodrigo-silveira.com&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305595604099232942-430170627887591197?l=rodrixar.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/DZggvc1YUJ_rokle0SqYPUewlRQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/DZggvc1YUJ_rokle0SqYPUewlRQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/DZggvc1YUJ_rokle0SqYPUewlRQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/DZggvc1YUJ_rokle0SqYPUewlRQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~4/1VkTmt6RhLQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rodrixar.blogspot.com/feeds/430170627887591197/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://rodrixar.blogspot.com/2010/02/heart-of-peace.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/430170627887591197?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/430170627887591197?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~3/1VkTmt6RhLQ/heart-of-peace.html" title="Motivational Stories | A Heart of Peace" /><author><name>Rodrigo Silveira</name><uri>http://www.blogger.com/profile/11020780093510564646</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="21" src="http://4.bp.blogspot.com/-aNmCqAeMePw/TlzhbhFrqFI/AAAAAAAAGPA/8lbSrqXxcg0/s220/33694_10150290812975147_864510146_15196120_7251683_n.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_Nd9gSdAA0og/S8HttGgC3OI/AAAAAAAAFtc/xRhq0PBh6DE/s72-c/heart-of-peace.jpg" height="72" width="72" /><thr:total>1</thr:total><feedburner:origLink>http://rodrixar.blogspot.com/2010/02/heart-of-peace.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D08MQH48eip7ImA9WhdQGUU.&quot;"><id>tag:blogger.com,1999:blog-305595604099232942.post-5398884750831834816</id><published>2010-02-11T12:08:00.000-08:00</published><updated>2011-08-21T21:04:41.072-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-21T21:04:41.072-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="inspire" /><category scheme="http://www.blogger.com/atom/ns#" term="Rodrigo Silveira" /><category scheme="http://www.blogger.com/atom/ns#" term="Silveira" /><category scheme="http://www.blogger.com/atom/ns#" term="persevere" /><category scheme="http://www.blogger.com/atom/ns#" term="focus" /><category scheme="http://www.blogger.com/atom/ns#" term="Success" /><category scheme="http://www.blogger.com/atom/ns#" term="the last step" /><category scheme="http://www.blogger.com/atom/ns#" term="rodrigo" /><category scheme="http://www.blogger.com/atom/ns#" term="most important" /><category scheme="http://www.blogger.com/atom/ns#" term="Motivational Short Stories" /><category scheme="http://www.blogger.com/atom/ns#" term="Motivation" /><category scheme="http://www.blogger.com/atom/ns#" term="endure" /><title>Inspiring Stories | The Toughest Step to Take is the Last Step to be Taken</title><content type="html">&lt;h1 style="font-size: 15px; color: #666;"&gt;&lt;em&gt;Motivational Short Stories by Rodrigo Silveira&lt;/em&gt;&lt;/h1&gt;&lt;center style="text-align: left;"&gt;&lt;img style="display: none" src="http://4.bp.blogspot.com/_Nd9gSdAA0og/S8HwA92x8LI/AAAAAAAAFt0/WtOtG48KHs4/s200/dude-falling-off-his-bike.jpg" alt="Inspiring Stories"/&gt;&lt;br /&gt;
&lt;/center&gt;&lt;center&gt;&lt;object width="400" height="305"&gt;&lt;param name="movie" value="http://www.youtube-nocookie.com/v/ntSDzEK-LKw&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;rel=0&amp;amp;color1=0x006699&amp;amp;color2=0x54abd6&amp;amp;border=1"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;embed src="http://www.youtube-nocookie.com/v/ntSDzEK-LKw&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;rel=0&amp;amp;color1=0x006699&amp;amp;color2=0x54abd6&amp;amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="400" height="305"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/center&gt;&lt;br /&gt;
&lt;p&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;I really like the above video. From the title of it you might think it's a "funny" video. It isn't. Well, maybe it is, what can I say. The point is that there is a priceless lesson to learn from this gentleman's distraction. Today's &lt;strong style="font-weight:normal;"&gt;Motivational Short Stories by Rodrigo Silveira&lt;/strong&gt; we'll talk about ways to start and finish strong. I believe of all things in life, this is one of the great secrets of success.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt;It's not over until it's over&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Sometimes we get to a point where we think we're doing pretty good. This sometimes happens at work, at play, at life, at school, or at whatever else matters. This is a good thing. A lot of times we can see great results, too, which only inspires us to stay motivated and do even more of what we're currently doing. The danger lies when we stop seeing people following after us. When we get to the point where we think we're doing so good that nobody can stop us. Then we stop working as hard, we no longer pay attention to the important details that brought us to that point. This is the beginning of our painful downfall.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;When we get to the last stretch of anything worthwhile, the arduous work that took us to that point usually leaves us tired, gasping for air, and looking for the next resting area. When running the race of life and your legs are about to give out, your lungs are in the verge of implosion, and you can hardly think straight, why not keep going for just a little longer? Once the finish line has been crossed and your triumph secured, what else should matter?&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt;Focus on what's most important&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;A great soccer player of the past, who happens to be a great source of inspiration to me, once said that, "you don't have to always be important, only when it's necessary." Not everything we do is important. Different things have different levels of importance. The goal of a champion is to discern what is important and what is not, and what is a greater priority over what needs to be done at the moment. The trick is to take a step back and see the few things that, if done well, would really make a significant difference. Some people call this the 80/20 rule. There are basic things we do that only make up some 20% of the overall process, but those tasks that amount to 20% of the work done contribute to 80% of the results.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Usually the first 5%, the 15% in the middle, and the last 5% of an operation make up the key areas of importance. If you focus on getting started well, then staying motivated and keeping the energy levels high, then giving it your all on the last 5% of a task, that usually makes a very profound difference. &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt;Start with the end in mind&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;A famous motivational speaker once asked the question: &lt;i&gt;When should you start building a house?&lt;/i&gt; His answer: &lt;i&gt;As soon as it's finished&lt;/i&gt;. This is wise counsel. I know people that give up half way through something, while others call it quits before they even get started. There are always reasons, of course - the negative relatives, the up-hill journey that seems too challenging, the obstacles are too much to handle, etc. You've all seen that before.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;If you are able to paint a colorful picture of your desired goal, then you have a decent foundation to get started, and a source of inspiration to remind you of what is important to you.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;In summary, as you start your next project or as you continue an existing one, remember to:&lt;/span&gt;&lt;br /&gt;
&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Start with the end in mind&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Focus on what's most important - and don't get distracted by things not important&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;It's not over until it's over - even when the odds are against you&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h1 id="iSumTItle" onclick="iShowSum()" style="display: inline; padding-left: 25px; cursor: default; margin-top: 0;"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;Rodrigo Silveira&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;div id="iSumShell" class="iSumShellOFF"&gt;&lt;div id="iSumCont" class="iSumContOFF"&gt;&lt;img src="http://4.bp.blogspot.com/_Nd9gSdAA0og/S3WMJxp9mXI/AAAAAAAAEjM/L5lCgVniEc0/S740/up-arrow-clear.png" alt="Motivation Short Stories by Rodrigo Silveira: Who is Rodrigo Silveira?" style="display: block; padding-left: 20px; margin-bottom: -7px; border:0;"/&gt;&lt;div style="border: 2px solid #000; margin-top: 0; padding: 0 10px 10px; background: #eee;"&gt;&lt;p&gt;Rodrigo Silveira started Motivational Short Stories in 2007. His short stories are told with the purpose of providing inspiration, motivation, and uplifting those who can affored to get inspired and motivated. Rodrigo started out on his own, and through the help of some key people, Rodrigo has been able to acheive great success. He now dedicates his time sharing his motivation through short motivational stories so others may find success in their lives as Rodrigo has been successful in his.&lt;/p&gt;&lt;p style="text-align: right;"&gt;&lt;a href="http://rodrixar.blogspot.com/1985/09/rodrigo-silveira.html" rel="author"&gt;About the author&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;Also, be sure to check out my web portfolio at http://www.rodrigo-silveira.com&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305595604099232942-5398884750831834816?l=rodrixar.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Xxu4-OTYdf0lbCNhnggas8n4bWc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Xxu4-OTYdf0lbCNhnggas8n4bWc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Xxu4-OTYdf0lbCNhnggas8n4bWc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Xxu4-OTYdf0lbCNhnggas8n4bWc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~4/D0Sa3uJfyz4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rodrixar.blogspot.com/feeds/5398884750831834816/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://rodrixar.blogspot.com/2010/02/toughest-step-to-take-is-last-step-to.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/5398884750831834816?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/5398884750831834816?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~3/D0Sa3uJfyz4/toughest-step-to-take-is-last-step-to.html" title="Inspiring Stories | The Toughest Step to Take is the Last Step to be Taken" /><author><name>Rodrigo Silveira</name><uri>http://www.blogger.com/profile/11020780093510564646</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="21" src="http://4.bp.blogspot.com/-aNmCqAeMePw/TlzhbhFrqFI/AAAAAAAAGPA/8lbSrqXxcg0/s220/33694_10150290812975147_864510146_15196120_7251683_n.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_Nd9gSdAA0og/S8HwA92x8LI/AAAAAAAAFt0/WtOtG48KHs4/s72-c/dude-falling-off-his-bike.jpg" height="72" width="72" /><thr:total>1</thr:total><feedburner:origLink>http://rodrixar.blogspot.com/2010/02/toughest-step-to-take-is-last-step-to.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D08NRXs9eip7ImA9WhdQGUU.&quot;"><id>tag:blogger.com,1999:blog-305595604099232942.post-4889401942467563413</id><published>2010-02-08T18:27:00.000-08:00</published><updated>2011-08-21T21:04:54.562-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-21T21:04:54.562-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="twitter phone commands" /><category scheme="http://www.blogger.com/atom/ns#" term="Rodrigo Silveira" /><category scheme="http://www.blogger.com/atom/ns#" term="Inspiring" /><category scheme="http://www.blogger.com/atom/ns#" term="Silveira" /><category scheme="http://www.blogger.com/atom/ns#" term="Success" /><category scheme="http://www.blogger.com/atom/ns#" term="rodrigo" /><category scheme="http://www.blogger.com/atom/ns#" term="follow Rodrigo Silveira on Twitter" /><category scheme="http://www.blogger.com/atom/ns#" term="Motivational Short Stories" /><category scheme="http://www.blogger.com/atom/ns#" term="Inspiration" /><category scheme="http://www.blogger.com/atom/ns#" term="Inspirational" /><title>Short Motivational Stories by Rodrigo Silveira : Now on Twitter</title><content type="html">&lt;span style="font-family:lucida grande;font-size:180%;"&gt;Follow Rodrigo Silveira on Twitter&lt;/span&gt;&lt;img style="display:none;" src="http://2.bp.blogspot.com/_Nd9gSdAA0og/S8HvTYnpY2I/AAAAAAAAFts/z8SuhKQJS0c/s200/twitter.png" alt="Twitter" /&gt;&lt;br /&gt;
Here's a true Motivational Short Story for all of you living both in the 21st century and on a budget. I realize that a lot of people are now carrying very nice phones these days, but there are a lot of people confused about who's map is better - Verizon or AT&amp;amp;T. A lot of us don't know what our phone can do, what it should do, and how much we're being charged for holding the phone to our ear a few times a day. With that, I thought it would be nice to offer you fine people a free service that is indeed useful.&lt;br /&gt;
&lt;br /&gt;
Behold, Twitter! Most of you have probably heard of it, but I'm not sure that a lot of us care about it that much. Twitter is the 12th most visited site in the internet today. The main thing about it is that people can post whatever they wish as long as their post has no more than 140 characters. While a lot of people constantly say what they do ("just got done brushing my teeth", "ordering a double quarter pounder at 12th south state street with my friends", etc), and others spam the service with pointless advertising ("visit the best site in the web: www.(...).com"), Twitter can be used for good. It actually can be a great resource for anyone looking for a handy short motivational story. Here's why and how:&lt;br /&gt;
&lt;br /&gt;
1) You can access Twitter from your phone - not having to have a $30+/month for mobile internet service. You can access people's Tweets through your regular unlimited text messaging service.&lt;br /&gt;
&lt;br /&gt;
2) You can post your own Tweets right from your phone.&lt;br /&gt;
&lt;br /&gt;
The text messaging commands for Twitter are as follows (remember, these commands are especially designed for Tweets from Motivational Short Stories by Rodrigo Silveira):&lt;br /&gt;
&lt;br /&gt;
(These commands are entered as the content of your text messages, sent to the phone number &lt;strong&gt;40404&lt;/strong&gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;ON &lt;em&gt;motivationstory&lt;/em&gt;&lt;/strong&gt;&lt;em&gt; &lt;/em&gt;- This command turns on notifications from the user MotivationStory (Rodrigo Silveira).&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;FOLLOW &lt;em&gt;motivationstory &lt;/em&gt;&lt;/strong&gt;&lt;em&gt;- &lt;/em&gt;This command registers you as a follower of Rodrigo Silveira.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;GET &lt;em&gt;motivationstory &lt;/em&gt;&lt;/strong&gt;- Get the latest update from Rodrigo Silveira&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;@motivationstory + &lt;em&gt;message&lt;/em&gt;&lt;/strong&gt; - This sends a message to Rodrigo Silveira and saves it in his replies tab. Remember, the message must be less than 140 characters in length.&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size:180%;"&gt;Motivational Short Stories by Rodrigo Silveira - on your phone, anywhere, any time&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size:180%;"&gt;&lt;/span&gt;&lt;br /&gt;
Now you can register an account with &lt;a href="http://www.twitter.com/" target="_blank"&gt;Twitter&lt;/a&gt; and receive our updates daily, straight on your phone. Get daily tips for success, short motivation stories, inspiration quotes, motivational short stories, and much more.&lt;br /&gt;
&lt;br /&gt;
&lt;h1 id="iSumTItle" onclick="iShowSum0212()" style="display: inline; padding-left: 25px; cursor: default; margin-top: 0;"&gt;&lt;span class="Apple-style-span"  style="font-family:arial;"&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;a href="http://rodrixar.blogspot.com/1985/09/rodrigo-silveira.html" rel="author"&gt;About the author&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;div class="blogger-post-footer"&gt;Also, be sure to check out my web portfolio at http://www.rodrigo-silveira.com&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305595604099232942-4889401942467563413?l=rodrixar.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/83YwE7VdJLX7Z4MCOa-UAXZAnTM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/83YwE7VdJLX7Z4MCOa-UAXZAnTM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/83YwE7VdJLX7Z4MCOa-UAXZAnTM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/83YwE7VdJLX7Z4MCOa-UAXZAnTM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~4/HTZtBYwOXj0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rodrixar.blogspot.com/feeds/4889401942467563413/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://rodrixar.blogspot.com/2010/02/motivational-short-stories-by-rodrigo_08.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/4889401942467563413?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/4889401942467563413?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~3/HTZtBYwOXj0/motivational-short-stories-by-rodrigo_08.html" title="Short Motivational Stories by Rodrigo Silveira : Now on Twitter" /><author><name>Rodrigo Silveira</name><uri>http://www.blogger.com/profile/11020780093510564646</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="21" src="http://4.bp.blogspot.com/-aNmCqAeMePw/TlzhbhFrqFI/AAAAAAAAGPA/8lbSrqXxcg0/s220/33694_10150290812975147_864510146_15196120_7251683_n.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_Nd9gSdAA0og/S8HvTYnpY2I/AAAAAAAAFts/z8SuhKQJS0c/s72-c/twitter.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://rodrixar.blogspot.com/2010/02/motivational-short-stories-by-rodrigo_08.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D04FQHg-fip7ImA9WhdQGUU.&quot;"><id>tag:blogger.com,1999:blog-305595604099232942.post-8092158029635474946</id><published>2010-02-02T00:02:00.000-08:00</published><updated>2011-08-21T21:05:11.656-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-21T21:05:11.656-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Rodrigo Silveira" /><category scheme="http://www.blogger.com/atom/ns#" term="Inspiring" /><category scheme="http://www.blogger.com/atom/ns#" term="Motivational Quotes" /><category scheme="http://www.blogger.com/atom/ns#" term="Rodrigo Motivational Short Story" /><category scheme="http://www.blogger.com/atom/ns#" term="Motivational Short Stories" /><category scheme="http://www.blogger.com/atom/ns#" term="Inspiration" /><category scheme="http://www.blogger.com/atom/ns#" term="the happiness factory" /><category scheme="http://www.blogger.com/atom/ns#" term="Motivational Lines" /><category scheme="http://www.blogger.com/atom/ns#" term="Motivation" /><category scheme="http://www.blogger.com/atom/ns#" term="Inspirational" /><title>Motivation Stories | Daily Inspirational quotes</title><content type="html">&lt;img style="display: none" src="http://3.bp.blogspot.com/_Nd9gSdAA0og/S8Hus5jIyJI/AAAAAAAAFtk/h4-eBoPaJMk/s200/motivation-most-important-step.jpg" alt="Inspiring Stories"/&gt;&lt;h1&gt;Stories to inspire, motivate, and uplift&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size:12px; color: #aaa;"&gt;by Rodrigo Silveira&lt;/span&gt;&lt;/h1&gt;&lt;br /&gt;
Today was a good day to start the week. I'm excited for this week because of what happened today. If you could use some motivation, here's a good &lt;b&gt;motivational short story&lt;/b&gt; told by Rodrigo Silveira...&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span"  style="font-size:large;"&gt;&lt;b&gt;Motivational Short Story - Pain Helps to Heal&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
My good co-worker left the office last Thursday with a big smiling silly. He was going to spend that night by himself playing video games, then the next morning he'd be flying down to San Diego where he was to be married a few hours later. Today I sent him a text message to see how he was doing. He replied positively.&lt;br /&gt;
&lt;br /&gt;
To contrast, I have another good friend that I met through work who is in a similar situation. He, as recently as when the sun last rose, is engaged to a girl he's known for some time, but not quite 300 days, I don't think. I'm not sure what the deal is in that relationship, but they seem to always be walking on thin, slippery ground. Plus the ground they walk on looks cracked and built on a layer of sand or something.&lt;br /&gt;
&lt;br /&gt;
If there's a lesson I can draw from the experience of my second friend, here's the message I'd deliver for this week's &lt;b&gt;motivational short stories&lt;/b&gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class="Apple-style-span"  style="font-size:large;"&gt;Allow yourself to cry&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Before letting all emotions drive you toward the dark, dangerous road of a terrible decision, I would recommend you to take a step back, find a comfortable place and allow yourself to cry. Let all those emotions out. Forget about the chaos around you, and just let it all out. Be loud if you must. Then lay your wet head down and close your eyes. Let the darkness of the night calmly surround you as you embrace the sorrows of the soul.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class="Apple-style-span"  style="font-size:large;"&gt;Awake and Arise&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Next thing you do is get up the next day and bring yourself together. Whether you're the man or the woman, you must be strong. You must be your strongest support system. Nobody should motivate you more than yourself. This is the key to the happy ending of your story. Forget the waters below, and focus on building a bridge on which to cross the raging waters. Now that you're more calm and rested, focus on that day's worries. Take some time to think clearly and decide what you need to do. Seriously and thoroughly analyze the situation, and weight the proposition. It's best rip the bandaid all at once, if that's the conclusion of your studies of your wound. Be strong, be motivated to stay strong, and keep your head up.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class="Apple-style-span"  style="font-size:large;"&gt;Write your Lessons Down&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Now the only two things you will have left are a stronger character, and a lesson to guide you through until next time. The best thing to do is keep this lesson (the abstract concept) alive. Some people find that expressing the lesson through creativity helps them understand it further, express it more clearly, and remember it in the future. This is how a lot of the inspiring music, moving poetry, memorable movies, and the greatest motivational short stories are generated.&lt;br /&gt;
&lt;br /&gt;
Remember, birds do sing after the storm. A broken heart will heal, but a reckless decision to stay in a bad situation will kill. Sometimes it doesn't rain on a lot of people, but the sun does shine on us all. Every problem usually has a pretty simple solution, but sometimes we lack the brains to find it, and the back to go through with it.&lt;br /&gt;
&lt;br /&gt;
Ask not for less problems, but ask for more wisdom. Don't wish it were easier, wish you were better.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt;Rodrigo Silveira&lt;/span&gt;&lt;/i&gt;&lt;div&gt;&lt;i&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;For more Motivational Short Stories, Inspiring Stories, motivational quotes, motivational lines, or my favorite motivational short story, check back often. You can read more motivational short stories on my blog. Check out our archived Motivational Short Stories section. Thanks, Rodrigo Silveira!&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;a href="http://rodrixar.blogspot.com/1985/09/rodrigo-silveira.html" rel="author"&gt;About the author&lt;/a&gt;&lt;br /&gt;
&lt;div class="blogger-post-footer"&gt;Also, be sure to check out my web portfolio at http://www.rodrigo-silveira.com&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305595604099232942-8092158029635474946?l=rodrixar.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/6i--Zbhn0zzrEUnSadAOE0wv8Fw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6i--Zbhn0zzrEUnSadAOE0wv8Fw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/6i--Zbhn0zzrEUnSadAOE0wv8Fw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6i--Zbhn0zzrEUnSadAOE0wv8Fw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~4/q8n_0LW6qx0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rodrixar.blogspot.com/feeds/8092158029635474946/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://rodrixar.blogspot.com/2010/02/motivational-short-stories-by-rodrigo.html#comment-form" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/8092158029635474946?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/8092158029635474946?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~3/q8n_0LW6qx0/motivational-short-stories-by-rodrigo.html" title="Motivation Stories | Daily Inspirational quotes" /><author><name>Rodrigo Silveira</name><uri>http://www.blogger.com/profile/11020780093510564646</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="21" src="http://4.bp.blogspot.com/-aNmCqAeMePw/TlzhbhFrqFI/AAAAAAAAGPA/8lbSrqXxcg0/s220/33694_10150290812975147_864510146_15196120_7251683_n.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_Nd9gSdAA0og/S8Hus5jIyJI/AAAAAAAAFtk/h4-eBoPaJMk/s72-c/motivation-most-important-step.jpg" height="72" width="72" /><thr:total>3</thr:total><feedburner:origLink>http://rodrixar.blogspot.com/2010/02/motivational-short-stories-by-rodrigo.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D04GSHk7fSp7ImA9WhdQGUU.&quot;"><id>tag:blogger.com,1999:blog-305595604099232942.post-1005850763828048227</id><published>2010-01-30T03:33:00.000-08:00</published><updated>2011-08-21T21:05:29.705-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-21T21:05:29.705-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="writings" /><category scheme="http://www.blogger.com/atom/ns#" term="keep your head up" /><category scheme="http://www.blogger.com/atom/ns#" term="Rodrigo Silveira" /><category scheme="http://www.blogger.com/atom/ns#" term="journey of life" /><category scheme="http://www.blogger.com/atom/ns#" term="good life" /><category scheme="http://www.blogger.com/atom/ns#" term="treasure" /><category scheme="http://www.blogger.com/atom/ns#" term="mystery of life" /><category scheme="http://www.blogger.com/atom/ns#" term="life is a great school" /><category scheme="http://www.blogger.com/atom/ns#" term="story" /><category scheme="http://www.blogger.com/atom/ns#" term="where the sun goes" /><category scheme="http://www.blogger.com/atom/ns#" term="writing" /><title>Rodrigo Silveira: The Official Blog</title><content type="html">&lt;img src="http://bp0.blogger.com/_Nd9gSdAA0og/SD15dblQERI/AAAAAAAABWQ/jP5IqX8eQOs/S220/shepherd.jpg" style="display: none;"/&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;It's late. I'm sure I'll be reading this in a few weeks and I'll wonder if I should continue to bring work home and program until 3 in the morning. Maybe playing old NES games in my Wii, playing GTA3, watching 24, or just plain going to bed with my dear wife whenever she got tired and clocked out for the day would have been more productive.&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Lately I've been thinking up of some really clever stuff... A lot of it has to do with turning clever programming into profitable endeavors, but a lot of it also has to do with improving existing projects and making things more efficient. One goal that I've had, though this specific goal's priority level, in my mind, was a low 2 or 3... This goal, as challenged by a fellow business partner, is to rank an uncontested number 1 in Google, Bing, and Yahoo! for my own name. Turns out that your mother wasn't all that creative when she chose your very unique name. If you do a Google Search for your own name, chances are there already are a few people with the same name. Yes, there are other Rodrigo Silveiras out there. I call them "the others." So my goal is to SEO a few pages here and there and outrank the others. I'm the only Rodrigo Silveira that can be on the web!&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Anyhow, as I was working for the last few hours listening to some random music I had saved on an old CD I had burned when I was in High School, this song started playing that made my mind wander... I managed to complete the site I was working on then, but I replayed the song a few times. My mind is still wandering... Here's the song for those of you wondering what it was: &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="  white-space: pre; font-family:Arial, Helvetica, sans-serif;"&gt;&lt;object width="340" height="285"&gt;&lt;param name="movie" value="http://www.youtube.com/v/LKsW9-vLfxo&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;rel=0&amp;amp;color1=0x5d1719&amp;amp;color2=0xcd311b&amp;amp;hd=1&amp;amp;border=1"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/LKsW9-vLfxo&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;rel=0&amp;amp;color1=0x5d1719&amp;amp;color2=0xcd311b&amp;amp;hd=1&amp;amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="340" height="285"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style=" white-space: pre;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&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="font-family:Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span"  style=" white-space: pre;font-size:medium;"&gt;Usually I don't listen to this type of music, but as I hinted earlier, it's really late and I've been programming most of today. I think I've programmed close to 450 hours so far this year (last 30 days). That's actually something like 62% of the month (720 hours) spent programming.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span"  style=" white-space: pre;font-size:medium;"&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:Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span"  style=" white-space: pre;font-size:medium;"&gt;Anyhow, so this song has always made me think of one of my best friends growing up. Usually there were different feelings that this song made me feel... But for some reason today it was different. I miss my friend. As a matter of fact, I miss all my friends from that period of my life. This friend that I always think about when I listen to this song..., he was the smart one in our group. He was probably the most talented of us all. He was good at everything. He always supported me in the things I attempted, and he'd take the time to teach me how to be better. During the first two years that I had moved to a different country, we managed to keep in touch somewhat. I wrote him a few times, but it wasn't until the 10th or 15th month that he responded to my first letter. Then one day there was a second letter from him. He seemed happy. He mentioned how his father, a man whom I had never met (as his parents were divorced since before we met) was about to be a father for the third time. His sister was doing good too, he mentioned, and he concluded saying that he missed me and wished me good luck. Less than two weeks later a different friend of mine emailed me saying this good friend of mine, the one that had written me the letters, had been murdered.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span"  style=" white-space: pre;font-size:medium;"&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:Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span"  style=" white-space: pre;font-size:medium;"&gt;The story is still somewhat of a mystery to me as nobody has given me a lot of details and I haven't had the contacts to ask for any. But from what I've been told, he had been using some hardcore drugs pretty heavily. One day, as he went about to handle a situation with some people at around 2 or 3 in the morning, a car that had been parked (probably waiting for him) drove by and ran him over and drove away. Some lady that was near by saw him and called the ambulance, but the cocaine overdose kicked in, he started to seizure, and from there not even the medics were able to keep him with us. At his funeral all our friends signed a big flag of his favorite soccer team and laid it on top of his coffin, which they carried to his graveside while chanting this soccer team's main song. Apparently this was a sock to a lot more people than just me, as I wasn't the only know aware of his pain. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span"  style=" white-space: pre;font-size:medium;"&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:Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span"  style=" white-space: pre;font-size:medium;"&gt;That is how loneliness can kill a man. At first nobody can really tell how much a man hurts. Each man's face expresses it differently. Each man's eyes see it differently, but when wet, they all feel the same. I think this is what makes the mystery and journey of life so special. Being able to remember something that is good, that once was real, and that now only exists internally. Being able to nourish and cultivate a reality that no longer matters, gaining strength from something  as irrelevant and useless to our future as something that we will never be able to touch again, this, I believe, is the root of a good life.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span"  style=" white-space: pre;font-size:medium;"&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:Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span"  style=" white-space: pre;font-size:medium;"&gt;Life is a great school. And I believe any great lesson is worth writing down. This is the purpose of my blog. And I think just as the universe would be a terrible waste of space if we were the only ones using it, so would these life's little lessons be if nobody knew about them. I know our lives can all be summarized in the same sentence, but as I take the time to relearn from mine as I write it down, why not do my best to expose my stories to as many people as will take the time to read them?! Thank you, SEO for making this possible...&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span"  style=" white-space: pre;font-size:medium;"&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:Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span"  style=" white-space: pre;font-size:medium;"&gt;Thank you for reading, and keep your head up. Because it doesn't matter where the sun goes during the night because when the morning comes, so does the sun. Life experiences are something worth treasuring.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span"  style=" white-space: pre;font-size:medium;"&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:Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span"  style=" white-space: pre;font-size:medium;"&gt;&lt;b&gt;&lt;a href="http://rodrixar.blogspot.com/1985/09/rodrigo-silveira.html" rel="author"&gt;About the author&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;Also, be sure to check out my web portfolio at http://www.rodrigo-silveira.com&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305595604099232942-1005850763828048227?l=rodrixar.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/7jiXBVmg3anCe0ZwIdkdlJ4ifVI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7jiXBVmg3anCe0ZwIdkdlJ4ifVI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/7jiXBVmg3anCe0ZwIdkdlJ4ifVI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7jiXBVmg3anCe0ZwIdkdlJ4ifVI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~4/IgkTcg54YiI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rodrixar.blogspot.com/feeds/1005850763828048227/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://rodrixar.blogspot.com/2010/01/rodrigo-silveira-official-blog.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/1005850763828048227?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/1005850763828048227?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~3/IgkTcg54YiI/rodrigo-silveira-official-blog.html" title="Rodrigo Silveira: The Official Blog" /><author><name>Rodrigo Silveira</name><uri>http://www.blogger.com/profile/11020780093510564646</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="21" src="http://4.bp.blogspot.com/-aNmCqAeMePw/TlzhbhFrqFI/AAAAAAAAGPA/8lbSrqXxcg0/s220/33694_10150290812975147_864510146_15196120_7251683_n.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://bp0.blogger.com/_Nd9gSdAA0og/SD15dblQERI/AAAAAAAABWQ/jP5IqX8eQOs/s72-c/shepherd.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://rodrixar.blogspot.com/2010/01/rodrigo-silveira-official-blog.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C08CQHc-fCp7ImA9WxFXEk8.&quot;"><id>tag:blogger.com,1999:blog-305595604099232942.post-6600684405691559870</id><published>2010-01-18T15:33:00.000-08:00</published><updated>2010-05-18T15:31:01.954-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-05-18T15:31:01.954-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="mike tyson funny interview" /><category scheme="http://www.blogger.com/atom/ns#" term="youtube" /><title>Funny Mike Tyson Interview</title><content type="html">&lt;h1&gt;Interviewing Tyson Post Match&lt;/h1&gt;&lt;br /&gt;&lt;object width="500" height="405"&gt;&lt;param name="movie" value="http://www.youtube-nocookie.com/v/P41XYutvcDU&amp;hl=en_US&amp;fs=1&amp;rel=0&amp;color1=0x5d1719&amp;color2=0xcd311b&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-nocookie.com/v/P41XYutvcDU&amp;hl=en_US&amp;fs=1&amp;rel=0&amp;color1=0x5d1719&amp;color2=0xcd311b&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="500" height="405"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;Showtime interviewer Jim Gray tried to interview the heavy weight champion of the world, but it was hard for him to get 3 coherent words out of Mike Tyson's mouth. The fighter kept saying that Allah is blessing the people and all praise is due to him... But Tyson would also say that he wanted to kill Lenox Lewis and his children... No wonder people think Mike Tyson is an animal - a "brutal, vicious, and ruthless" animal.&lt;br /&gt;&lt;br /&gt;Check out my YouTube channel for more &lt;a href="http://www.youtube.com/user/12ig0#p/u/7/Fe1rU-pUKec"&gt;Funny Videos&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Thanks!&lt;div class="blogger-post-footer"&gt;Also, be sure to check out my web portfolio at http://www.rodrigo-silveira.com&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305595604099232942-6600684405691559870?l=rodrixar.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/5jZ25XTP6hh_iiM3cI6egNFuATI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5jZ25XTP6hh_iiM3cI6egNFuATI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/5jZ25XTP6hh_iiM3cI6egNFuATI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5jZ25XTP6hh_iiM3cI6egNFuATI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~4/fhPH7UI1O7I" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rodrixar.blogspot.com/feeds/6600684405691559870/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://rodrixar.blogspot.com/2010/01/funny-mike-tyson-interview.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/6600684405691559870?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/6600684405691559870?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~3/fhPH7UI1O7I/funny-mike-tyson-interview.html" title="Funny Mike Tyson Interview" /><author><name>Rodrigo Silveira</name><uri>http://www.blogger.com/profile/11020780093510564646</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="21" src="http://4.bp.blogspot.com/-aNmCqAeMePw/TlzhbhFrqFI/AAAAAAAAGPA/8lbSrqXxcg0/s220/33694_10150290812975147_864510146_15196120_7251683_n.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://rodrixar.blogspot.com/2010/01/funny-mike-tyson-interview.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEcDRX89eCp7ImA9WhdQGUU.&quot;"><id>tag:blogger.com,1999:blog-305595604099232942.post-3108297570989307814</id><published>2009-11-25T15:33:00.000-08:00</published><updated>2011-08-21T21:07:54.160-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-21T21:07:54.160-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="hits" /><category scheme="http://www.blogger.com/atom/ns#" term="optimal" /><category scheme="http://www.blogger.com/atom/ns#" term="marketing" /><category scheme="http://www.blogger.com/atom/ns#" term="SEO" /><category scheme="http://www.blogger.com/atom/ns#" term="website" /><category scheme="http://www.blogger.com/atom/ns#" term="optiming" /><category scheme="http://www.blogger.com/atom/ns#" term="optimize" /><category scheme="http://www.blogger.com/atom/ns#" term="bounce rate" /><category scheme="http://www.blogger.com/atom/ns#" term="visits" /><title>Rolled up layers of self</title><content type="html">&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_Nd9gSdAA0og/Sw4oLA3p2FI/AAAAAAAAEeU/EA6vxTk3EC8/s1600/losing-to-win-block.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 310px;" src="http://2.bp.blogspot.com/_Nd9gSdAA0og/Sw4oLA3p2FI/AAAAAAAAEeU/EA6vxTk3EC8/s320/losing-to-win-block.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5408304372195645522" /&gt;&lt;/a&gt;&lt;br /&gt;
It is estimated that 98% of all websites never get visited. That's not bad, seeing that once you find out how to get frequent new visits to your site, you only have 2% of all websites to compete against for all of our clicks. Now, seeing as I've been working for the last several months for one of the top &lt;a href="http://www.crexendo.com/"&gt;Search Engine Optimization&lt;/a&gt; companies in the world, I thought I'd use what I've been learning there and expand my bi-annual fiffy-gee cashflow.&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Lately I've been looking for supplier for different products I'd like to market online and sell lots and lots of through my super SEO skills. While my preparations continue to roll forth, I thought I'd take some time and toss my two coins in the direction of my wife's bucket and help her generate her &lt;a href="http://lucisilveira.blogspot.com/"&gt;visitor flow&lt;/a&gt; so more people can read about her journey toward success.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;One of the most powerful forces that I know of is the way an idea can inspire a person to move to action. Today there was such an idea going through Luci's head and she decided to write a blog to document her latest goal - to get in better physical shape. When something like this happens there's not much you can do to avoid being put in the middle of the floor and dancing.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;As I laid in bed next to her this evening reading the news from her Blackberry, she suddenly pulled by the arm and told me we were going to the gym. Next thing I know I was spotting her as she bench pressed half her body weight. This was the first time she ever touched a barbell, and she was pushing &lt;b&gt;maximum&lt;/b&gt; weight from the beginning... We literally had to cut our run short because the gym was closing and the lights were being turned off on us. We came home, took some before pictures, fried some omelets, and sat down as we toasted our protein shakes to her new endeavor. This is when I noticed myself sitting down toplessly with 50% of my belly folded over itself. I had to double check the picture she had just taken of me to make sure I really was this out of shape. Not bad, though, because at least now I know where my missing money has gone. And there I was thinking Taco Bell had stolen my wallet...&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Now, to summarize today's events, stop searching for the link to the best blog in the internet! I'll tell you where that is and why:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Where - &lt;a href="http://lucisilveira.blogspot.com/"&gt;http://lucisilveira.blogspot.com&lt;/a&gt;&lt;/div&gt;&lt;div&gt;Why - click, read, and learn&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;a href="http://rodrixar.blogspot.com/1985/09/rodrigo-silveira.html" rel="author"&gt;About the author&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;Also, be sure to check out my web portfolio at http://www.rodrigo-silveira.com&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305595604099232942-3108297570989307814?l=rodrixar.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/AhYgFLMHS9bujcz9lr48AigDqP4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/AhYgFLMHS9bujcz9lr48AigDqP4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/AhYgFLMHS9bujcz9lr48AigDqP4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/AhYgFLMHS9bujcz9lr48AigDqP4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~4/d7ftra-bCog" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rodrixar.blogspot.com/feeds/3108297570989307814/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://rodrixar.blogspot.com/2009/11/rolled-up-layers-of-self.html#comment-form" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/3108297570989307814?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/3108297570989307814?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~3/d7ftra-bCog/rolled-up-layers-of-self.html" title="Rolled up layers of self" /><author><name>Rodrigo Silveira</name><uri>http://www.blogger.com/profile/11020780093510564646</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="21" src="http://4.bp.blogspot.com/-aNmCqAeMePw/TlzhbhFrqFI/AAAAAAAAGPA/8lbSrqXxcg0/s220/33694_10150290812975147_864510146_15196120_7251683_n.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_Nd9gSdAA0og/Sw4oLA3p2FI/AAAAAAAAEeU/EA6vxTk3EC8/s72-c/losing-to-win-block.jpg" height="72" width="72" /><thr:total>2</thr:total><feedburner:origLink>http://rodrixar.blogspot.com/2009/11/rolled-up-layers-of-self.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEcNRHY9cSp7ImA9WhdQGUU.&quot;"><id>tag:blogger.com,1999:blog-305595604099232942.post-5837347833738729924</id><published>2009-07-24T15:33:00.000-07:00</published><updated>2011-08-21T21:08:15.869-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-21T21:08:15.869-07:00</app:edited><title>Those who do not read are no better off than those who cannot.</title><content type="html">&lt;h1&gt;Short Stories&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size:12px; color: #aaa;"&gt;by Rodrigo Silveira&lt;/span&gt;&lt;/h1&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_Nd9gSdAA0og/SmtbMuyon4I/AAAAAAAAEbA/utpgaVnAHqc/s1600-h/maroonsnow.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 300px;" src="http://4.bp.blogspot.com/_Nd9gSdAA0og/SmtbMuyon4I/AAAAAAAAEbA/utpgaVnAHqc/s400/maroonsnow.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5362480055591673730" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div&gt;Once upon a time, in a familiar land not very far at all, there used to be a very wise man. In fact, there was a very wise woman, too, and they were both actually married. Come to think of it, this wise couple was really good friends with another highly wise, sophisticated couple, whose inner-circle was composed of other wise people like themselves.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Time went on; the seasons passed by; the grains of sand made their way steadily to the bottom triangle, never to return again. Now this wise people only seemed to have accumulated more and more wisdom. Their friends, now with new faces, new names, and new ideas, appeared as wise as anybody could be. Their evenings were, so the storyteller relates, spent with laughter, clever jokes, and lots and lots of tea.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;One day, however, a certain traveller showed up suddenly, unannounced. He came from a land unknown to the rest of the people. His name was hard to pronounce, and his words hard to understand. This unnoticed traveller quickly noticed how foolish he was. The locals had such a practicle and curious way of seeing things. Everything the traveller did was done in the least effective way possible...&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Information, the traveller noticed, was a valuable tool. One to be handled with care... The less information one shares, the more power he retained; the more information you collected, the more power you consumed. Under a fruitful apple tree sat the traveller, who often thought to himself such mysteries as, "What would one need so much power for?"&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Upon closer examination of his situation, the traveller noticed that his ever-learning, wise critiques had funny feet. Their toes came out of the back of their feet. Their shoes, instead of Nike, was made by companies like Ekin, Onuzim, Amup, Alif, Scisa, and Iccug. How peculiar...&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Under that apple tree he further realized that these people constantly told him how to gain large amounts of gold coins, though they all seemed to always be in need of the money themselves. They taught him the true way of fashion, though they always wore the silliest of clothes. They mocked him because of the way he spoke, though none of them mastered their own language. They persecuted him because of his believes, though they walked contrary to their own faith.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Near the end of his life, many years after his arrival, the traveller took a good look in the glass and realized he had become a wise man. His friends had been a great influence and a good support system for him. They'd educated him in all that he needed to know in order to lead a successful life, which now seemed to be drawing near its end.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;The traveller then closed his eyes tightly, put his head down in shame and shook it from side to side with some degree of vigor, and emptied his lungs at once, in an instant. He then took a good look at his image on the wall, squinted his brown eyes slowly, turned his back against the city that had fathered for so long, and never looked back. Years later, during an occasional celebration at the town where the wise lived, a young girl mentioned the traveller, enquiring if anyone knew of his whereabouts. To her surprise, nobody remembered who he was.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;-The End&lt;/div&gt;&lt;br /&gt;
&lt;a href="http://rodrixar.blogspot.com/1985/09/rodrigo-silveira.html" rel="author"&gt;About the author&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;Also, be sure to check out my web portfolio at http://www.rodrigo-silveira.com&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305595604099232942-5837347833738729924?l=rodrixar.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/U2Fp5rnvo7_NjrJqA3EPXqxjHd4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/U2Fp5rnvo7_NjrJqA3EPXqxjHd4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/U2Fp5rnvo7_NjrJqA3EPXqxjHd4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/U2Fp5rnvo7_NjrJqA3EPXqxjHd4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~4/9jqKcpMteOA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rodrixar.blogspot.com/feeds/5837347833738729924/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://rodrixar.blogspot.com/2009/07/those-who-do-not-read-are-no-better-off.html#comment-form" title="4 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/5837347833738729924?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/5837347833738729924?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~3/9jqKcpMteOA/those-who-do-not-read-are-no-better-off.html" title="Those who do not read are no better off than those who cannot." /><author><name>Rodrigo Silveira</name><uri>http://www.blogger.com/profile/11020780093510564646</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="21" src="http://4.bp.blogspot.com/-aNmCqAeMePw/TlzhbhFrqFI/AAAAAAAAGPA/8lbSrqXxcg0/s220/33694_10150290812975147_864510146_15196120_7251683_n.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_Nd9gSdAA0og/SmtbMuyon4I/AAAAAAAAEbA/utpgaVnAHqc/s72-c/maroonsnow.jpg" height="72" width="72" /><thr:total>4</thr:total><feedburner:origLink>http://rodrixar.blogspot.com/2009/07/those-who-do-not-read-are-no-better-off.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEYESHg4eip7ImA9WhdQGUU.&quot;"><id>tag:blogger.com,1999:blog-305595604099232942.post-8293974162623146250</id><published>2009-07-11T15:33:00.000-07:00</published><updated>2011-08-21T21:08:29.632-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-21T21:08:29.632-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="the journey of a thousand miles" /><category scheme="http://www.blogger.com/atom/ns#" term="ancient chinese proverbs" /><category scheme="http://www.blogger.com/atom/ns#" term="Chinese Proverbs" /><title>Chinese Proverb | The journey of a thousand miles must begin with a single step</title><content type="html">&lt;h1&gt;Ancient Chinese Proverbs&lt;/h1&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size:12px; color: #aaa;"&gt;from my list of &lt;a href="http://rodrixar.blogspot.com/2010/04/chinese-proverbs.html"&gt;Chinese Proverbs&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;Guess who is back?!&lt;div&gt;&lt;br /&gt;
&lt;div&gt;It's been a long time since I last wrote. Since my last post I have experienced a few things that made me appreciate life so much more. I've learned a few lessons about the power of gratitude, and the powerful things that can come out of enduring things.&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;After a large count of years, I have finally been given an opportunity in the fast-paced corporate world of America. I know sit in a cubicle and program a Microsoft Windows machine for some 10 hours a day, five and a half days a week. It's everything I've always wanted! The good news is that I haven't [yet] had a case of the Mondays. My department refers to me as "the coder." I love it!&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Now, while my laundery dries, and while my wife surfs the web looking for apartments and expensive furniture, I thought I'd post something here so the lost children of the world won't go hungry for wisdom from &lt;strong&gt;Chinese Proverbs&lt;/strong&gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;In my daily commutes to work, I've started listening to an audio book by Robert Greene titled, "The 48 laws of power." One of the laws states that one's absense is more valuable than his or her presence. Now that I've been gone from the web, let's try out that law and see if people go crazy when I return as the world did after Michael Jackson died his lonely death last week...&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Anyway, to be hosnest with you, I just wanted to comment on one of my favorite ancient Chinese proverbs. The proverb says that, &lt;h1&gt;The journey of a thousand miles must begin with a single step. &lt;/h1&gt;Well, that sounds fairly nice, however, the conventional wisdom that goes along with that is this:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;img src="http://1.bp.blogspot.com/_Nd9gSdAA0og/SlkmsXYAjrI/AAAAAAAAEZw/tRSKv313Fh0/deno06.jpg" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 335px;" border="0" alt="The Journey of a Thousand Miles" /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: left;"&gt;"Sometimes... &lt;h1 style="display: inline;"&gt;the journey of a thousand miles sometimes ends very, very badly.&lt;/h1&gt;"&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: left;"&gt;Peace!&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;a href="http://rodrixar.blogspot.com/1985/09/rodrigo-silveira.html" rel="author"&gt;About the author&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;Also, be sure to check out my web portfolio at http://www.rodrigo-silveira.com&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305595604099232942-8293974162623146250?l=rodrixar.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/_SKznG4XatTDK_UvC1UC_OOgOMY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_SKznG4XatTDK_UvC1UC_OOgOMY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/_SKznG4XatTDK_UvC1UC_OOgOMY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_SKznG4XatTDK_UvC1UC_OOgOMY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~4/9y2yVXd_ino" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rodrixar.blogspot.com/feeds/8293974162623146250/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://rodrixar.blogspot.com/2009/07/journey-of-thousand-miles-must-begin.html#comment-form" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/8293974162623146250?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/8293974162623146250?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~3/9y2yVXd_ino/journey-of-thousand-miles-must-begin.html" title="Chinese Proverb | The journey of a thousand miles must begin with a single step" /><author><name>Rodrigo Silveira</name><uri>http://www.blogger.com/profile/11020780093510564646</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="21" src="http://4.bp.blogspot.com/-aNmCqAeMePw/TlzhbhFrqFI/AAAAAAAAGPA/8lbSrqXxcg0/s220/33694_10150290812975147_864510146_15196120_7251683_n.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_Nd9gSdAA0og/SlkmsXYAjrI/AAAAAAAAEZw/tRSKv313Fh0/s72-c/deno06.jpg" height="72" width="72" /><thr:total>2</thr:total><feedburner:origLink>http://rodrixar.blogspot.com/2009/07/journey-of-thousand-miles-must-begin.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEYGRX4yeSp7ImA9WhdQGUU.&quot;"><id>tag:blogger.com,1999:blog-305595604099232942.post-6175276372101301846</id><published>2009-05-09T15:33:00.000-07:00</published><updated>2011-08-21T21:08:44.091-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-21T21:08:44.091-07:00</app:edited><title>If you try long enough you can't fail - every last time</title><content type="html">&lt;h1&gt;Daily Inspirational Stories&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size:12px; color: #aaa;"&gt;by Rodrigo Silveira&lt;/span&gt;&lt;/h1&gt;&lt;br /&gt;
&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.imergentinc.com/dsg/t_r2_c2.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 188px; height: 241px;" src="http://www.imergentinc.com/dsg/t_r2_c2.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;
I once heard  a very wise manb talk about what he called the law of averages. He said that once you do something long enough you'll start seeing ratios. Then with that, say for instance, that if you do something ten times you succeed once, then if you want to succeed three times all you'd have to do is try thirty times. Well, this last week I saw two powerful examples of that and that's what I'd like to bloggify about.&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;First, I'm writing this as a result of several requests from my die-hard readers. So lesson number one today is this: if you ask somebody to do something enough times, you'll eventually get it. Nice job, people!&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Lesson two is this: Two weeks ago I determined to get a job. I wasn't particularly planning on it, but my wife, who was working 42 to 108 hours a week, cleaning the house, cooking, and driving me around (she even gave me 4 sponge baths in the course of the month we've been married, but I don't like taking baths or showering either, so she stopped), she eventually got sick of having me walking around on my super-man boxers and sleeping half the time and playing Silent Hill 2 the other half. So yeah, don't let women tell you what to do and boss you around. You should follow your dreams and enjoy your freedom!&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Anyways, with that, I then applied for nearly 23 jobs in two fields I was confident to be successful in. From those applications I was invited to some 8 interviews. Three of them were with huge companies in the financial world, 4 were in other types of sales. The last one I was scheduled to interview with was iMergent Inc. down in Orem. All my interviews up to that one averaged 45 minutes. The first one I had was with Modern Woodmen, which took just under two hours. Anyways, my interview with iMergent was only some half-hour or so, during which time I spoke most of the time. I thought things were going fine. At the very end, after answering some 15 or 16 questions, we had a dialogue that went something like this:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;"Mr. Silveira, you sound like a nice guy. However, most people come here and interview and talk really smooth. Then they get the position and work really hard and professional - for a week or so, then they go back to their normal self and slack off and do nothing...&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;"What can you tell me about yourself to show me you're not like that?"&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;"Well... [eye-ball-to-eye-ball, followed by a brief mysterious silence] Mr. Buttler, I'd like to answer this question with a letter from my last boss. I think her perspective of my work ethics, based on her experience and observation, is more valuable than anything I could tell you."&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;[hand-over-letter]&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;[letter-is-read-in-profound-silence]&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Dome! I got the job my friends! I think I can attribute my success up to now to three things that I believe summarize our opportunities:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;1. If you apply to enough jobs you'll get some interviews, and if you interview enough times you will get some offers.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;2. Though I have yet to take a real class on computer programming, I have dedicated easily over 1000 hours of my life to searching knowledge on the subject. Just last week alone I read 4 books on the subject of CSS programming.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;3. I took advantage of past opportunities I have had so new ones (and even greater ones) have been made manifest before me. Thank you, Louise!&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;So to conclude, everyone should go to my new website: http://www.rodrigo349.info&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;a href="http://rodrixar.blogspot.com/1985/09/rodrigo-silveira.html" rel="author"&gt;About the author&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;Also, be sure to check out my web portfolio at http://www.rodrigo-silveira.com&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305595604099232942-6175276372101301846?l=rodrixar.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/hCGtJs7QT3eYQq7D2nyQBC2Qygs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hCGtJs7QT3eYQq7D2nyQBC2Qygs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/hCGtJs7QT3eYQq7D2nyQBC2Qygs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hCGtJs7QT3eYQq7D2nyQBC2Qygs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~4/NUgmKuo_W_E" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rodrixar.blogspot.com/feeds/6175276372101301846/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://rodrixar.blogspot.com/2009/05/if-you-try-long-enough-you-cant-fail.html#comment-form" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/6175276372101301846?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/6175276372101301846?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~3/NUgmKuo_W_E/if-you-try-long-enough-you-cant-fail.html" title="If you try long enough you can't fail - every last time" /><author><name>Rodrigo Silveira</name><uri>http://www.blogger.com/profile/11020780093510564646</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="21" src="http://4.bp.blogspot.com/-aNmCqAeMePw/TlzhbhFrqFI/AAAAAAAAGPA/8lbSrqXxcg0/s220/33694_10150290812975147_864510146_15196120_7251683_n.jpg" /></author><thr:total>2</thr:total><feedburner:origLink>http://rodrixar.blogspot.com/2009/05/if-you-try-long-enough-you-cant-fail.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEYHSXkyeSp7ImA9WhdQGUU.&quot;"><id>tag:blogger.com,1999:blog-305595604099232942.post-706809120410167015</id><published>2009-03-23T15:33:00.000-07:00</published><updated>2011-08-21T21:08:58.791-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-21T21:08:58.791-07:00</app:edited><title>Business at the BC Movie</title><content type="html">&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_Nd9gSdAA0og/Schw_fPUoDI/AAAAAAAAC9w/eoVq_yRb5mA/s1600-h/bc.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 242px;" src="http://4.bp.blogspot.com/_Nd9gSdAA0og/Schw_fPUoDI/AAAAAAAAC9w/eoVq_yRb5mA/s400/bc.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5316623596130705458" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;Watch Business at the BC, a series of short videos about LDS Business College (Salt Lake City, Utah). The movie gets good beginning on minute 6:01 to about 8:10 or so... Watch now, Business at the BC, part 1 of episode 3.&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.youtube.com/watch?v=2paeCHRyGOI"&gt;http://www.youtube.com/watch?v=2paeCHRyGOI&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;a href="http://rodrixar.blogspot.com/1985/09/rodrigo-silveira.html" rel="author"&gt;About the author&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;Also, be sure to check out my web portfolio at http://www.rodrigo-silveira.com&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305595604099232942-706809120410167015?l=rodrixar.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Kf_fn3yY1ntJFA-iccI_fnU1GqQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Kf_fn3yY1ntJFA-iccI_fnU1GqQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Kf_fn3yY1ntJFA-iccI_fnU1GqQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Kf_fn3yY1ntJFA-iccI_fnU1GqQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~4/tJgWdu3gLKw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rodrixar.blogspot.com/feeds/706809120410167015/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://rodrixar.blogspot.com/2009/03/oh-louco-meu.html#comment-form" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/706809120410167015?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/706809120410167015?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~3/tJgWdu3gLKw/oh-louco-meu.html" title="Business at the BC Movie" /><author><name>Rodrigo Silveira</name><uri>http://www.blogger.com/profile/11020780093510564646</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="21" src="http://4.bp.blogspot.com/-aNmCqAeMePw/TlzhbhFrqFI/AAAAAAAAGPA/8lbSrqXxcg0/s220/33694_10150290812975147_864510146_15196120_7251683_n.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_Nd9gSdAA0og/Schw_fPUoDI/AAAAAAAAC9w/eoVq_yRb5mA/s72-c/bc.jpg" height="72" width="72" /><thr:total>3</thr:total><feedburner:origLink>http://rodrixar.blogspot.com/2009/03/oh-louco-meu.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEYBQX45fip7ImA9WhdQGUU.&quot;"><id>tag:blogger.com,1999:blog-305595604099232942.post-4320425707669040801</id><published>2009-02-27T15:33:00.000-08:00</published><updated>2011-08-21T21:09:10.026-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-21T21:09:10.026-07:00</app:edited><title>The Never Ending Story Movie | It Ends Tonight</title><content type="html">&lt;h1&gt;Everyday Short Stories&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size:12px; color: #aaa;"&gt;by Rodrigo Silveira&lt;/span&gt;&lt;/h1&gt;&lt;br /&gt;
&lt;br /&gt;
Wow, talk about weird...&lt;div&gt;Last December, for Christmas, I got a very thoughtful gift from my brother. Somehow he managed to find a special edition of a DVD from a show I used to watch back in the late 1980s. This movie, to those of you not from that era, is the classic The Never Ending Story.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Anyhow, tonight for the first time since I got the movie, I decided to watch it with my young little princess as we sat on our new couch. I had some good flashbacks from back in the day, Luci thought the movie was cool, and I enjoyed a couple of shots of Jolt.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Here's what's weird about it... a few nights ago, as I was researching something, I came across a completely random Masonic documentary that I didn't care to watch. Except that being so curious (by that I probably mean bored), I clicked the video and clicked the timeline somewhere in the middle because I didn't feel like watching the whole thing. The one part this Masonic video stoped at was where they were talking about the pillars from Salomon's temple that are very meaningful to the Masons (Boaz and Jachin, 1 Kings 7:21). Well, they were showing examples of Masonic influence in the media, and for some reason known only to the Cosmics, they showed a clip from... The Never Ending Story where they symbolically show the two pillars and their meaning. Up until I shaw that 30 second cilp, I had forgotten I own the movie.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;img src="http://3.bp.blogspot.com/_Nd9gSdAA0og/Saj4_kR-DAI/AAAAAAAAC7c/Q19kh7iuLh4/s400/the_never_ending_story_01.jpg" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 218px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5307765931810622466" /&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;So as I watched it tonight with Luci, I remembered the Masonic documentary... But then... after I got home, I decided to check my internet life really quick and make sure everything was still spinning... I responded to some emails and things like that..., then I checked my RSS updates... and here's what I got from my Movies News channel:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.movieweb.com/news/NEjqknjl5SOsmo"&gt;http://www.movieweb.com/news/NEjqknjl5SOsmo&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;As we were watching the movie, Luci told me it'd be really cool if they remade the movie... Then lo-and-behold, they are remaking the doggone movie... Maybe this is another sign derived from the Vanezetti equation, who knows...&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;a href="http://rodrixar.blogspot.com/1985/09/rodrigo-silveira.html" rel="author"&gt;About the author&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;Also, be sure to check out my web portfolio at http://www.rodrigo-silveira.com&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305595604099232942-4320425707669040801?l=rodrixar.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/jj9jYKTYUekMq8YGBx-OaYh8W7Y/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jj9jYKTYUekMq8YGBx-OaYh8W7Y/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/jj9jYKTYUekMq8YGBx-OaYh8W7Y/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jj9jYKTYUekMq8YGBx-OaYh8W7Y/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~4/JdGVRN4E3CY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://rodrixar.blogspot.com/feeds/4320425707669040801/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://rodrixar.blogspot.com/2009/02/it-ends-tonight.html#comment-form" title="4 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/4320425707669040801?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/305595604099232942/posts/default/4320425707669040801?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RodrigoSilveiraMotivationalShortStoriesByRodrigoSilveira/~3/JdGVRN4E3CY/it-ends-tonight.html" title="The Never Ending Story Movie | It Ends Tonight" /><author><name>Rodrigo Silveira</name><uri>http://www.blogger.com/profile/11020780093510564646</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="31" height="21" src="http://4.bp.blogspot.com/-aNmCqAeMePw/TlzhbhFrqFI/AAAAAAAAGPA/8lbSrqXxcg0/s220/33694_10150290812975147_864510146_15196120_7251683_n.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_Nd9gSdAA0og/Saj4_kR-DAI/AAAAAAAAC7c/Q19kh7iuLh4/s72-c/the_never_ending_story_01.jpg" height="72" width="72" /><thr:total>4</thr:total><feedburner:origLink>http://rodrixar.blogspot.com/2009/02/it-ends-tonight.html</feedburner:origLink></entry></feed>

