<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Lateral Code &#187; inspiration</title>
	<atom:link href="http://www.lateralcode.com/tag/inspiration/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lateralcode.com</link>
	<description>A Web Development Blog Focused on Code and Technology</description>
	<lastBuildDate>Thu, 26 Aug 2010 22:29:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Creating Your Own Color Schemer</title>
		<link>http://www.lateralcode.com/creating-your-own-color-schemer/</link>
		<comments>http://www.lateralcode.com/creating-your-own-color-schemer/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 08:09:52 +0000</pubDate>
		<dc:creator>Karthik Viswanathan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[inspiration]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.lateralcode.com/?p=459</guid>
		<description><![CDATA[It is very easy for designers to lose inspiration after they&#8217;ve exhausted many ideas. They want to see something new. Typical layouts become trivial and too common. Many color combinations seem plain and boring. In order to remedy this problem, a color schemer may be created. By a color schemer, we do not mean a [...]]]></description>
			<content:encoded><![CDATA[<p>It is very easy for designers to lose inspiration after they&#8217;ve exhausted many ideas. They want to see something new. Typical layouts become trivial and too common. Many color combinations seem plain and boring. In order to remedy this problem, a color schemer may be created.</p>
<p>By a color schemer, we do not mean a full fledged, scientifically proven generator. There is a very simple way to obtain new and exciting colors: randomness. Using JavaScript and HTML, it is possible to create a random color generator which can be very helpful in finding new inspiration.</p>
<p>Generating random colors? It may not sound too interesting. These were exactly our thoughts. On the contrary, once we experienced such a generator for ourselves, examining new color combinations became easy and fun. Looking at the bad colors that were produced gave us some entertainment.</p>
<p><span id="more-459"></span></p>
<p>You may view a demo of this <a href="http://demo.lateralcode.com/color-schemer/">random schemer</a> before we start.</p>
<p>The first step is to set up some basic HTML:</p>
<pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
&lt;title&gt;Color Schemer&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id="schemer"&gt;
	&lt;p&gt;The quick brown fox jumped over the lazy dog.&lt;/p&gt;
&lt;/div&gt;

&lt;div id="output"&gt;
	&lt;p id="color"&gt;&lt;/p&gt;
	&lt;button type="button" id="change"&gt;Change!&lt;/button&gt;
	&lt;button type="button" id="submit"&gt;Display Colors!&lt;/button&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</code></pre>
<p><code>#schemer</code> is the canvas where we will produce random colors. <code>#output</code> controls user input and displays the outputted colors when necessary.</p>
<p>Because there is a minimal amount of CSS required, it can all be placed in-line:</p>
<pre><code>&lt;style type="text/css"&gt;
body {
	font: 17px/27px 'Trebuchet MS', Helvetica, Sans-Serif;
}

#schemer {
	margin: 100px;
	width: 400px;
	height: 77px;
	padding-top: 23px;
	text-align: center;
	background: #000;
	color: #fff;
}

#output {
	width: 400px;
	height: 50px;
	margin: -75px 0 0 100px;
	text-align: center;
}
&lt;/style&gt;</code></pre>
<p>This positions the text, buttons, and canvas in the right area. It also sets up the dimensions of the canvas.</p>
<p>All that&#8217;s left now is the JavaScript:</p>
<pre><code>var schemer = document.getElementById('schemer');
var color = document.getElementById('color');
var swap = document.getElementById('change');
var submit = document.getElementById('submit');

schemer.style.backgroundColor = 'rgb(0, 0, 0)';
schemer.style.color = 'rgb(255, 255, 255)';

function change() {
	var bgColor = 'rgb( ' + rand() + ', ' + rand() + ', ' + rand() + ' )';
	var textColor = 'rgb( ' + rand() + ', ' + rand() + ', ' + rand() + ' )';

	schemer.style.backgroundColor = bgColor;
	schemer.style.color = textColor;
}</code></pre>
<p><code>change()</code> will be called whenever we want to generate a random color. In this case, every time the user clicks the <code>#change</code> button, this function should be called.</p>
<p>The definition of <code>rand()</code> used in the above snippet is very simple:</p>
<pre><code>function rand() {
	return Math.floor( Math.random() * 256 );
}</code></pre>
<p>It generates a random number between 0 and 255. Three of these numbers are then used to create a random color defined in RGB.</p>
<p>When the <code>#submit</code> button is clicked, the user should be able to view the colors involved in the randomly generated color combination:</p>
<pre><code>function display() {
	var bgColor = schemer.style.backgroundColor;
	var textColor = schemer.style.color;

	color.innerHTML = 'Background Color: ' + bgColor + ', Text Color: ' + textColor;
}

swap.onclick = function() { change(); }
submit.onclick = function() { display(); }</code></pre>
<p><code>display()</code> adds text to the <code>#color</code> paragraph in order to display the generated color.</p>
<p>Here is the final code:</p>
<pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
&lt;title&gt;Color Schemer&lt;/title&gt;
&lt;style type="text/css"&gt;
body {
	font: 17px/27px 'Trebuchet MS', Helvetica, Sans-Serif;
}

#schemer {
	margin: 100px;
	width: 400px;
	height: 77px;
	padding-top: 23px;
	text-align: center;
	background: #000;
	color: #fff;
}

#output {
	width: 400px;
	height: 50px;
	margin: -75px 0 0 100px;
	text-align: center;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id="schemer"&gt;
	&lt;p&gt;The quick brown fox jumped over the lazy dog.&lt;/p&gt;
&lt;/div&gt;

&lt;div id="output"&gt;
	&lt;p id="color"&gt;&lt;/p&gt;
	&lt;button type="button" id="change"&gt;Change!&lt;/button&gt;
	&lt;button type="button" id="submit"&gt;Display Colors!&lt;/button&gt;
&lt;/div&gt;

&lt;script type="text/javascript"&gt;
	window.onload = function()
	{
		var schemer = document.getElementById('schemer');
		var color = document.getElementById('color');
		var swap = document.getElementById('change');
		var submit = document.getElementById('submit');

		schemer.style.backgroundColor = 'rgb(0, 0, 0)';
		schemer.style.color = 'rgb(255, 255, 255)';

		function change() {
			var bgColor = 'rgb( ' + rand() + ', ' + rand() + ', ' + rand() + ' )';
			var textColor = 'rgb( ' + rand() + ', ' + rand() + ', ' + rand() + ' )';

			schemer.style.backgroundColor = bgColor;
			schemer.style.color = textColor;
		}

		function rand() {
			return Math.floor( Math.random() * 256 );
		}

		function display() {
			var bgColor = schemer.style.backgroundColor;
			var textColor = schemer.style.color;

			color.innerHTML = 'Background Color: ' + bgColor + ', Text Color: ' + textColor;
		}

		swap.onclick = function() { change(); }
		submit.onclick = function() { display(); }
	}
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</code></pre>
<p>That&#8217;s all there is to it!</p>
<p>You may <a href="http://demo.lateralcode.com/color-schemer/">view the demo</a> or <a href="/wp-content/uploads/color-schemer.zip">download the files</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lateralcode.com/creating-your-own-color-schemer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Poll: What are your feelings about Lateral Code?</title>
		<link>http://www.lateralcode.com/poll-what-are-your-feelings-about-lateral-code/</link>
		<comments>http://www.lateralcode.com/poll-what-are-your-feelings-about-lateral-code/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 01:42:54 +0000</pubDate>
		<dc:creator>Karthik Viswanathan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ideas]]></category>
		<category><![CDATA[inspiration]]></category>

		<guid isPermaLink="false">http://www.lateralcode.com/?p=447</guid>
		<description><![CDATA[Throughout our history, we have written about many CSS, HTML, JavaScript, and PHP topics. In order to obtain input from you, our visitors, we would like to have a poll. Post a comment to this post to make your ideas known! What topics have you enjoyed reading on our site? We can create similar posts [...]]]></description>
			<content:encoded><![CDATA[<p>Throughout our history, we have written about many CSS, HTML, JavaScript, and PHP topics. In order to obtain input from you, our visitors, we would like to have a poll.</p>
<p><span id="more-447"></span></p>
<p>Post a comment to this post to make your ideas known!</p>
<ol>
<li>What topics have you enjoyed reading on our site? We can create similar posts to satisfy your interests.</li>
<li>Do you have any ideas for future writings? This can spark new ideas in us!</li>
<li>Are any web-related questions baffling you? If so, give us a chance to answer them!</li>
<li>How do you feel about the current site? Is it up to your standards? We don&#8217;t mind making changes!</li>
</ol>
<p>Answering these questions or just expressing feelings will help us better understand what you are looking for. Please drop us a comment with feedback. Thank you!<br />
<!--noadsense--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lateralcode.com/poll-what-are-your-feelings-about-lateral-code/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>15 Amazing NASA Images</title>
		<link>http://www.lateralcode.com/15-amazing-nasa-images/</link>
		<comments>http://www.lateralcode.com/15-amazing-nasa-images/#comments</comments>
		<pubDate>Sat, 10 Jan 2009 22:15:18 +0000</pubDate>
		<dc:creator>Karthik Viswanathan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ideas]]></category>
		<category><![CDATA[inspiration]]></category>

		<guid isPermaLink="false">http://www.lateralcode.com/?p=223</guid>
		<description><![CDATA[Nature. Space. Galaxies. What better to represent our world with than amazing photographs of the universe? Nothing can compare to this true beauty. NASA, or the National Aeronautics and Space Administration, has placed daily images depicting the vast universe from many standpoints. These images may be used for a variety of purposes, as stated in [...]]]></description>
			<content:encoded><![CDATA[<p>Nature. Space. Galaxies. What better to represent our world with than amazing photographs of the universe? Nothing can compare to this true beauty.</p>
<p>NASA, or the National Aeronautics and Space Administration, has placed daily images depicting the vast universe from many standpoints. These images may be used for a variety of purposes,  as stated in the <a href="http://www.nasa.gov/audience/formedia/features/MP_Photo_Guidelines.html" title="NASA Image Usage Guidelines">NASA image guidelines</a>.</p>
<p>Here are 15 images that &#8220;wow&#8221;ed us:</p>
<ol>
<li><a class="list-link" href="/wp-content/uploads/1act.jpg"><img class="list-img" src="/wp-content/uploads/1.jpg" title="Great Orion Nebulae"/></a></li>
<p><span id="more-223"></span></p>
<li><a class="list-link" href="/wp-content/uploads/2act.jpg"><img class="list-img" src="/wp-content/uploads/2.jpg" title="Sharpless 171"/></a></li>
<li><a class="list-link" href="/wp-content/uploads/3act.jpg"><img class="list-img" src="/wp-content/uploads/3.jpg" title="Horsehead Nebula in Orion"/></a></li>
<li><a class="list-link" href="/wp-content/uploads/4act.jpg"><img class="list-img" src="/wp-content/uploads/4.jpg" title="Massive Stars"/></a></li>
<li><a class="list-link" href="/wp-content/uploads/5act.jpg"><img class="list-img" src="/wp-content/uploads/5.jpg" title="Young Stars"/></a></li>
<li><a class="list-link" href="/wp-content/uploads/6act.jpg"><img class="list-img" src="/wp-content/uploads/6.jpg" title="The Thousand Ruby Galaxy"/></a></li>
<li><a class="list-link" href="/wp-content/uploads/7act.jpg"><img class="list-img" src="/wp-content/uploads/7.jpg" title="The Heart and Soul Nebulas"/></a></li>
<li><a class="list-link" href="/wp-content/uploads/8act.jpg"><img class="list-img" src="/wp-content/uploads/8.jpg" title="Satellite of the Andromeda Galaxy"/></a></li>
<li><a class="list-link" href="/wp-content/uploads/9act.jpg"><img class="list-img" src="/wp-content/uploads/9.jpg" title="Spokes in the Helix Nebula"/></a></li>
<li><a class="list-link" href="/wp-content/uploads/10act.jpg"><img class="list-img" src="/wp-content/uploads/10.jpg" title="After Galaxies Collide"/></a></li>
<li><a class="list-link" href="/wp-content/uploads/11act.jpg"><img class="list-img" src="/wp-content/uploads/11.jpg" title="Cocoon Nebula"/></a></li>
<li><a class="list-link" href="/wp-content/uploads/12act.jpg"><img class="list-img" src="/wp-content/uploads/12.jpg" title="Active Galaxy"/></a></li>
<li><a class="list-link" href="/wp-content/uploads/13act.jpg"><img class="list-img" src="/wp-content/uploads/13.jpg" title="Witch's Broom Nebula"/></a></li>
<li><a class="list-link" href="/wp-content/uploads/14act.jpg"><img class="list-img" src="/wp-content/uploads/14.jpg" title="Crescent Nebula"/></a></li>
<li><a class="list-link" href="/wp-content/uploads/15act.jpg"><img class="list-img" src="/wp-content/uploads/15.jpg" title="Eagle Nebula"/></a></li>
</ol>
<p><!--noadsense--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lateralcode.com/15-amazing-nasa-images/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>40 Inspirational Quotes</title>
		<link>http://www.lateralcode.com/40-inspirational-quotes/</link>
		<comments>http://www.lateralcode.com/40-inspirational-quotes/#comments</comments>
		<pubDate>Fri, 09 Jan 2009 06:29:07 +0000</pubDate>
		<dc:creator>Karthik Viswanathan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ideas]]></category>
		<category><![CDATA[inspiration]]></category>

		<guid isPermaLink="false">http://www.lateralcode.com/?p=212</guid>
		<description><![CDATA[Quotes can spark feelings of happiness, fear, jealousy, love, and more. In this article, we will present 50 inspirational quotes that may be that &#8220;spark&#8221; to create/improve your own website. There is no wrong interpretation of a quote. Beauty is in the eye of the beholder. Time is what we want most, but&#8230; what we [...]]]></description>
			<content:encoded><![CDATA[<p>Quotes can spark feelings of happiness, fear, jealousy, love, and more. In this article, we will present 50 inspirational quotes that may be that &#8220;spark&#8221; to create/improve your own website.</p>
<p>There is no wrong interpretation of a quote. Beauty is in the eye of the beholder.</p>
<ol>
<li>Time is what we want most, but&#8230; what we use worst.  - William Penn</li>
<li>When you come to the end of all the light you know, and it&#8217;s time to step into the darkness of the unknown, faith is knowing that one of two things shall happen: Either you will be given something solid to stand on or you will be taught to fly. &#8211; Edward Teller</li>
<li>No bird soars too high if he soars with his own wings. &#8211; William Blake</li>
<li>To accomplish great things, we must not only act, but also dream; not only plan, but also believe. &#8211; Anatole France</li>
<li>The healthy and strong individual is the one who asks for help when he needs it.  Whether he&#8217;s got an abscess on his knee or in his soul.  -Rona Barrett</li>
<p><span id="more-212"></span></p>
<li>When you have to make a choice and don&#8217;t make it, that is in itself a choice.  -William James</li>
<li>A man&#8217;s dreams are an index to his greatness. &#8211; Zadok Rabinwitz</li>
<li>National borders aren&#8217;t even speed bumps on the information superhighway. -Tim May</li>
<li>Eighty percent of success is showing up.  -Woody Allen</li>
<li>Success seems to be largely a matter of hanging on after others have let go.  -William Feather</li>
<li>If passion drives you, let reason hold the reins.  -Benjamin Franklin</li>
<li>Shoot for the moon.  Even if you miss, you&#8217;ll land among the stars.  -Les Brown</li>
<li>The road leading to a goal does not separate you from the destination; it is essentially a part of it.  -Charles DeLint</li>
<li>The impossible is often the untried.  -Jim Goodwin</li>
<li>Fall seven times, stand up eight.  -Japanese Proverb</li>
<li>The road to success is dotted with many tempting parking places.  -Author Unknown</li>
<li>Five minutes of today are worth as much to me as five minutes in the next millennium. &#8211; Ralph Waldo Emerson</li>
<li>Look at a day when you are supremely satisfied at the end. It&#8217;s not a day when you lounge around doing nothing; its when you had everything to do, and you&#8217;ve done it. - Margaret Thatcher</li>
<li>Quality is remembered long after the price is forgotten. &#8211; Gucci Slogan</li>
<li>Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives. &#8211; William A Foster</li>
<li>Plan your work for today and every day, then work your plan. &#8211; Norman Vincent Peale</li>
<li>You always pass failure on the way to success. &#8211; Mickey Rooney</li>
<li>Choose a job you love, and you will never have to work a day in your life. &#8211; Confucius</li>
<li>In three words I can sum up everything I&#8217;ve learned about life: It goes on. &#8211; Robert Frost</li>
<li>Vision without action is merely a dream. Action without vision just passes the time. Vision with action can change the world. &#8211; Joel A Barker</li>
<li>There is no such thing as a long piece of work, except one that you dare not start. &#8211; Charles Baudelaire</li>
<li>It&#8217;s always too soon to quit. &#8211; Norman Vincent Peale</li>
<li>Thinking will not overcome fear but action will. &#8211; W Clement Stone</li>
<li>Success usually comes to those who are too busy to be looking for it. &#8211; Henry David Thoreau</li>
<li>We must always change, renew, rejuvenate ourselves; otherwise we harden. &#8211; Johann Wolfgang Von Goethe</li>
<li>We are made wise not by the recollection of our past, but by the responsibility for our future. &#8211; George Bernard Shaw</li>
<li>Wisdom consists of the anticipation of consequences. &#8211; Norman Cousins</li>
<li>Not everything that counts can be counted, and not everything that can be counted counts. &#8211; Albert Einstein</li>
<li>Every man takes the limits of his own field of vision for the limits of the world. &#8211; Arthur Schopenhauer</li>
<li>If you think you can, you can. And if you think you can&#8217;t, you&#8217;re right. &#8211; Henry Ford and Mary Kay Ash</li>
<li>You have reached the pinnacle of success as soon as you become uninterested in money, compliments, or publicity. &#8211; Thomas Wolfe</li>
<li>Success is not the key to happiness. Happiness is the key to success. If you love what you are doing, you will be successful. &#8211; Albert Schweitzer</li>
<li>One moment of patience may ward off great disaster. One moment of impatience may ruin a whole life. &#8211; Chinese Proverb</li>
<li>It&#8217;s faith in something and enthusiasm for something that makes a life worth living. &#8211; Oliver Wendell Holmes</li>
<li>Courage is going from failure to failure without losing enthusiasm. &#8211; Winston Churchill</li>
</ol>
<p>Sources:</p>
<p><a href="http://www.quotegarden.com/">http://www.quotegarden.com/</a><br />
<a href="http://www.saidwhat.co.uk/">http://www.saidwhat.co.uk/</a><br />
<a href="http://www.quoteland.com/">http://www.quoteland.com/</a><br />
<a href="http://www.wisdomquotes.com/">http://www.wisdomquotes.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lateralcode.com/40-inspirational-quotes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
