<?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>Web Cash &#187; Redirected</title>
	<atom:link href="http://www.earn-web-cash.com/category/redirected/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.earn-web-cash.com</link>
	<description>Writing, Designing, and Making Money Online</description>
	<lastBuildDate>Sun, 04 Dec 2011 22:52:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>Share Your Reading Habits: Google Reader</title>
		<link>http://www.earn-web-cash.com/2008/04/28/share-articles-google-reader/</link>
		<comments>http://www.earn-web-cash.com/2008/04/28/share-articles-google-reader/#comments</comments>
		<pubDate>Tue, 29 Apr 2008 01:53:17 +0000</pubDate>
		<dc:creator>Walkere</dc:creator>
				<category><![CDATA[Online Tools]]></category>
		<category><![CDATA[Redirected]]></category>
		<category><![CDATA[Blogs]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.earn-web-cash.com/2008/04/28/share-articles-google-reader/</guid>
		<description><![CDATA[Part of developing a successful blog and your identity as a blogger is creating a web of blogs that you read and participate in. Imagine the blogosphere as a giant web. You want to connect your website to a bunch of others &#8211; you don&#8217;t want to just be a random thread connected to nothing. [...]]]></description>
			<content:encoded><![CDATA[<p>Part of developing a successful blog and your identity as a blogger is creating a web of blogs that you read and participate in.  Imagine the blogosphere as a giant web.  You want to connect your website to a bunch of others &#8211; you don&#8217;t want to just be a random thread connected to nothing.</p>
<p>Google Reader provides you with a nifty tool to help you do this.  With the &#8220;Share&#8221; feature of Google Reader, you can easily syndicate a list of articles that you recently read and found interesting.<br />
<span id="more-188"></span></p>
<h4>Get a Google Account: Start Reading</h4>
<p>If you don&#8217;t use Google Reader &#8211; or another feed reader &#8211; <strong>start</strong> using one.  Until you use RSS feeds on a daily basis, you&#8217;ll never know how wonderful they are, and you&#8217;ll never know how much your readers may come to rely on them.</p>
<p>Once I decide I like a site, I generally read it through Google Reader.  If an article is interesting, I&#8217;ll click through to the site and comment on it.  Other than that, I rarely go back to the site.  Without the RSS reader, I&#8217;d probably never return to the site at all.</p>
<p>An RSS reader is a great way to collect relevant readings into one location &#8211; so you can sit there with your cup of coffee and read all of the new stuff out in the blogosphere.  You can then decide what is important enough to comment on (on someone else&#8217;s blog) or respond to (on your own blog).</p>
<h4>Share Items &#8211; Creating Your Own Feed</h4>
<p>With Google Reader, there is a cool &#8220;Share&#8221; feature.  At the bottom of the article you are reading, there&#8217;s a list of options &#8211; &#8220;Add Star,&#8221; &#8220;Share,&#8221; &#8220;E-mail,&#8221; and &#8220;Mark as Read.&#8221;</p>
<p>By choosing the &#8220;Share&#8221; option you are adding that article to a publicly viewable list.  That list also generates its own RSS feed &#8211; which makes it easy for you to syndicate the feed on your own site.  By doing so, you provide your readers with a list of articles that you recently read and found interesting.</p>
<p>It&#8217;s a more targeted and stable than a standard RSS feed that just shows every headline from a given website &#8211; which will hopefully make it more useful for your readers.</p>
<h4>Grab the Widget, Style Yourself</h4>
<p>This feed is available in a standard rss xml file.  You could use <a href="http://www.earn-web-cash.com/2008/02/09/simple-xml-rss-feed/">SimpleXML to parse the feed</a> and display the information yourself.  Or, you could use the ready-made widget that Google provides.</p>
<p>The Google widget uses Javascript to access the information while your page is loading.  This potentially stops your page from hanging if the Google server is not responding &#8211; the rest of the page can load while the RSS feed is updated.  You can find this widget by clicking on the &#8220;Your shared items&#8221; link in Google Reader and clicking on the &#8220;put a clip of your shared items&#8221; link.</p>
<p>The only problem is that the pre-designed styles don&#8217;t offer you a lot of options for making the list blend in with your site&#8217;s theme.  My suggestion would be to select &#8220;None,&#8221; for the color scheme.  You may also want to leave the title blank, and add your own title to the feed.</p>
<p>If you do this, the feed will be generated with the following HTML.  Note:  This example uses the &#8220;Show item sources&#8221; option.</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;readerpublishermodule0&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;reader-publisher-module&quot;</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;i&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Good for Hunters, Bad for Druids&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://4thehorde.wordpress.com/2008/04/25/good-for-hunters-bad-for-druids/&quot;</span>&gt;</span>Good for Hunters, Bad for Druids<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s&quot;</span>&gt;</span>from <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://4thehorde.wordpress.com&quot;</span>&gt;</span>For the Horde<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;i&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Bornakk: Druids Not to be &amp;quot;Big Green Blobs&amp;quot;&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://feeds.feedburner.com/%7Er/Resto4Life/%7E3/279629927/&quot;</span>&gt;</span>Bornakk: Druids Not to be &quot;Big Green Blobs&quot;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;s&quot;</span>&gt;</span>from <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.resto4life.com&quot;</span>&gt;</span>Resto4Life<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;f&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.google.com/reader/shared/user/18391951200330501918/state/com.google/broadcast&quot;</span>&gt;</span>Read more...<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

<p>By taking a look at this example HTML, you can easily style the widget yourself.</p>
<p>The entire thing is contained in a div with class &#8220;reader-publisher-module.&#8221;  Each headline is contained within its own &#8220;li.&#8221;  If you use the option to display the source of the article, it&#8217;s in a div with class &#8220;s&#8221; inside the list item.</p>
<p>My one gripe with Google Reader is I can&#8217;t create multiple shared lists.  For example, I&#8217;ve divided blogs I read into ones related to web development and ones related to World of Warcraft.  I&#8217;d love to be able to create a shared article list for each topic, so that I can syndicate each one on a different website.</p>
<p>If you want to see this in action, check out my World of Warcraft blog, <a href="http://rolling-horde.net">Rolling Horde</a>.  It&#8217;s on the right hand side, in the middle column, underneath the recent articles.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.earn-web-cash.com/2008/04/28/share-articles-google-reader/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Helium: Getting Started and Writing on an Existing Topic</title>
		<link>http://www.earn-web-cash.com/2008/04/27/helium-getting-started/</link>
		<comments>http://www.earn-web-cash.com/2008/04/27/helium-getting-started/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 01:33:58 +0000</pubDate>
		<dc:creator>Walkere</dc:creator>
				<category><![CDATA[Redirected]]></category>
		<category><![CDATA[Writing]]></category>
		<category><![CDATA[Helium]]></category>
		<category><![CDATA[Publishing]]></category>

		<guid isPermaLink="false">http://www.earn-web-cash.com/2008/04/27/helium-getting-started/</guid>
		<description><![CDATA[As I mentioned before, Helium is another great place to publish your writing online. It ranks up with Associated Content as one of my favorite writing sites. So how do you get started? Is it hard to publish your first article at Helium? Not at all. Each Topic Has Multiple Articles On a writing site, [...]]]></description>
			<content:encoded><![CDATA[<p>As <a href="http://www.earn-web-cash.com/2008/04/12/helium-writing-profit-community/">I mentioned before</a>, <a href="http://www.helium.com">Helium</a> is another great place to publish your writing online.  It ranks up with <a href="http://www.associatedcontent.com/join.html?refer=40409">Associated Content</a> as one of my favorite writing sites.</p>
<p>So how do you get started?  Is it hard to publish your first article at Helium?  Not at all.<br />
<span id="more-187"></span></p>
<h4>Each Topic Has Multiple Articles</h4>
<p>On a writing site, you would expect to find a collection of articles.  You might expect to find a list of titles &#8211; and each title represents one article.</p>
<p>This is where Helium is a bit unique.  Helium is more like a collection of topics than headlines.  For any give headline, there could be anywhere from a half dozen to a hundred articles.</p>
<p>For example, &#8220;<a href="http://www.helium.com/knowledge/130272-learn-maintain-computer">The best ways to learn how to maintain a computer</a>&#8221; has ten different articles.  &#8220;<a href="http://www.helium.com/debates/66160-should-phone-banned-while">Should cell phone use be banned while driving</a>,&#8221; on the other hand, has 125 articles.</p>
<p>Once an author suggests a topic and submits an article &#8211; or the Helium staff creates a topic and requests an article &#8211; the topic appears on the site.  It&#8217;s categorized by topic so that people can find it through browsing.  Other users can then write their own article on the same topic.</p>
<h4>How Do We Pick an Article to Read?</h4>
<p>If there are 125 articles on the same topic, how does a user (or the computer) decide which article to read?</p>
<p>Another unique feature of Helium is the rating process.  As well as writing articles for the site, users are asked to rate articles that have already been published.</p>
<p>When rating, you are presented with two articles on the same topic.  You read each one and mark which one is better and by how much.  The software uses this data to rank the articles from best to worst.</p>
<p>When someone clicks on a headline, they are taken to the #1 rated article.  They can then browse other articles on the topic &#8211; but chances are they&#8217;ll only read the first couple.  If you&#8217;re rated at the bottom of the heap&#8230; your article won&#8217;t get read much.</p>
<h4>Get Started:  Write On an Existing Topic</h4>
<p>The easiest way to get started is to simply write on an existing topic.</p>
<p>Browse around the site and find something interesting.  There are a number of general categories, and each one has a number of subcategories.  You&#8217;ll find topics on everything from Religion, to Sports, to the Arts.</p>
<p>Once you&#8217;ve found a topic, click on the headline.  You may want to read a few of the articles.  If you don&#8217;t have anything substantially different to say &#8211; or if you don&#8217;t think you can say it better than it has already been said &#8211; then you should keep moving.  After all, we don&#8217;t need a hundred identical articles under one topic.</p>
<p>If you <strong>do</strong> have something to add to the conversation, click on the pencil icon.  This will take you to the writing screen, where you simply fill in the box and submit.</p>
<p>Your article will be instantaneously published.  No review process required!  Don&#8217;t you love instant gratification?</p>
<p>I&#8217;d suggest browsing the site for a while and then writing on some pre-existing topics.  This will give you a chance to feel out what goes over well and what doesn&#8217;t.  If your articles get rated poorly &#8211; then something needs to change!  Otherwise, you must be doing something right.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.earn-web-cash.com/2008/04/27/helium-getting-started/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Helium &#8211; Writing for Profit and a Community</title>
		<link>http://www.earn-web-cash.com/2008/04/12/helium-writing-profit-community/</link>
		<comments>http://www.earn-web-cash.com/2008/04/12/helium-writing-profit-community/#comments</comments>
		<pubDate>Sat, 12 Apr 2008 17:05:13 +0000</pubDate>
		<dc:creator>Walkere</dc:creator>
				<category><![CDATA[Redirected]]></category>
		<category><![CDATA[Writing]]></category>
		<category><![CDATA[Cash]]></category>
		<category><![CDATA[Earning]]></category>
		<category><![CDATA[Freelance]]></category>
		<category><![CDATA[Helium]]></category>

		<guid isPermaLink="false">http://www.earn-web-cash.com/2008/04/12/helium-writing-profit-community/</guid>
		<description><![CDATA[This site has kind of strayed from my original intent &#8211; to explore and report on ways to make money online. For a couple months now, I&#8217;ve focused almost exclusively on the development and design end to working the web for cash. I think it&#8217;s time to take a step back and look at a [...]]]></description>
			<content:encoded><![CDATA[<p>This site has kind of strayed from my original intent &#8211; to explore and report on ways to make money online.  For a couple months now, I&#8217;ve focused almost exclusively on the development and design end to working the web for cash.</p>
<p>I think it&#8217;s time to take a step back and look at a site where you can write for profit &#8211; without requiring any tech, design, or development savvy.  I&#8217;ll be working on a complete section about <a href="http://www.helium.com">Helium</a>, but in the meantime here&#8217;s a quick overview.<br />
<span id="more-186"></span></p>
<h4>Writing for Profit &#8211; Revenue Sharing</h4>
<p><a href="http://www.helium.com">Helium</a> is another online writing site, similar to <a href="http://www.associatedcontent.com/join.html?refer=40409">Associated Content</a>.</p>
<p>The site is a collection of articles &#8211; mostly non-fiction, but fiction and poetry are allowed.  It generates revenue through advertising based on its traffic.  When you post an article on the site, you carve out a portion of that advertising revenue for yourself.</p>
<p>The basic form of profit on the site is revenue sharing.  When you article is read, you get a portion of the advertising revenue that the article&#8217;s topic generates.  Helium hasn&#8217;t released specific details about the monetization formula, but basically more page views leads to more money.</p>
<p>Unfortunately, Helium doesn&#8217;t report the number of page views your article gets.  It&#8217;s difficult to gauge, then, whether Helium pays more per page view than other sites (like Associated Content).</p>
<p>I have a little over 80 articles on the site.  Many of these are highly rated &#8211; which means they appear towards the topic of their category &#8211; but many of them aren&#8217;t on highly monetized topics.  As a result, I earn an average of $5 per month based on these old articles.</p>
<h4>Alternate Forms of Income &#8211; Contests and Marketplace</h4>
<p>One thing that sets Helium apart is the availability of alternate (and more profitable) sources of income.</p>
<p>At any given time, Helium is usually offering a contest or promotion that can net you a lot of cash.  One popular contest format is the &#8220;Channel Champion&#8221; contest.</p>
<p>A list of topics (20-30) is generated for a given category.  Everyone is eligible to write articles in that category for the week, and the most popular author at the end of the week wins a prize.  In the past, first place has been $75 and second place has been $25.  This can be a good way to build up a repertoire of articles for revenue sharing while also possibly earning a nice bonus.  </p>
<p>The most profitable &#8211; and unique &#8211; section of the site is the marketplace.  Publishers come to Heilum and request articles on a given topic.  You submit an article on that topic.  If your article is chosen, you get paid a premium rate for it.  It&#8217;s essentially a marketplace for freelance writing.</p>
<p>Although some publishers pay poorly (less than $20 per article), there are many premium publishers.  I wrote an article that was purchased for $80, and there are offers available for $100+.</p>
<h4>A Final Plus &#8211; Community</h4>
<p>Another reason I prefer Helium to Associated Content is that there is a strong, friendly community.</p>
<p>The Associated Content forums are generally populated by people complaining about problems with the site.  There are some decent discussions if you dig deep enough, but I find little reason to frequent them.</p>
<p>Helium, on the other hand, has worked hard to develop a community within their site.  The forums have sections for peer review of articles, suggestions for new features, critiques of the site, and general discussions about writing.  Helium employees <strong>constantly</strong> frequent the forums and you can be assured that any issues you have will be noticed.</p>
<h4>Check It Out</h4>
<p>The bottom line is that you should check it out.  <a href="http://www.helium.com">Helium</a> is a great place to start building your online writing portfolio, and it can even net you some real freelance gigs.</p>
<p>The revenue sharing isn&#8217;t as strong as Associated Content, from my experience, but you can more than make up for that if you participate in contests and the marketplace.  The forums are also a great place to meet up with other writers and practice your craft.</p>
<p>If you&#8217;re truly interested in developing as a writer on the &#8216;net or in print, this is a great place to start.  Check it out, and check back here later for a more in depth look at writing at Helium.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.earn-web-cash.com/2008/04/12/helium-writing-profit-community/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Binary Code and Bitwise Operators (in PHP)</title>
		<link>http://www.earn-web-cash.com/2008/04/06/binary-code-and-bitwise-operators-in-php/</link>
		<comments>http://www.earn-web-cash.com/2008/04/06/binary-code-and-bitwise-operators-in-php/#comments</comments>
		<pubDate>Mon, 07 Apr 2008 02:30:17 +0000</pubDate>
		<dc:creator>Walkere</dc:creator>
				<category><![CDATA[PHP Tutorials]]></category>
		<category><![CDATA[Redirected]]></category>
		<category><![CDATA[binary]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.earn-web-cash.com/2008/04/06/binary-code-and-bitwise-operators-in-php/</guid>
		<description><![CDATA[At it&#8217;s core, all of the information on your computer is made up of bits &#8211; or 0&#8242;s and 1&#8242;s. There&#8217;s quite a bit of interpretation that goes on between that basic binary code and the information as it is displayed on your screen. However, you may find a time to work with data at [...]]]></description>
			<content:encoded><![CDATA[<p>At it&#8217;s core, all of the information on your computer is made up of bits &#8211; or 0&#8242;s and 1&#8242;s.  There&#8217;s quite a bit of interpretation that goes on between that basic binary code and the information as it is displayed on your screen.</p>
<p>However, you may find a time to work with data at the binary level in PHP (and many other programming languages).  Here&#8217;s a quick guide to understanding binary numbers and the common operators for handling them.<br />
<span id="more-185"></span></p>
<h4>&#8220;Normal&#8221; Numbers &#8211; Base Ten, Decimal System</h4>
<p>When you deal with numbers, you are probably using the &#8220;Base Ten&#8221; or &#8220;Decimal&#8221; number system.  These are numbers made up of a set of ten different digits &#8211; zero through nine.</p>
<p>A given quantity &#8211; like 512 &#8211; is created with a series of digits.  The position of the digit tells us how much the digit actually represents.  The &#8217;2&#8242; here is in the units place, so it simply represents 2.  The 1 is in the tens place, so it actually represents 10.  The 5 is in the hundreds place, so it represents 500.</p>
<p>The number could be re-written as:</p>
<pre>500 + 10 + 2 = 512</pre>
<p>You&#8217;ll notice a pattern here.  Each new place is worth ten times the previous place.  The third digit (the hundreds place) is worth 10 * 10.  If we added a fourth place, it would be worth 10 * 100 (1000).</p>
<p>This gives us a nifty little mathematical formula &#8211; which is why this is called &#8220;base ten&#8221; numbering.  The nth digit (where zero is the right-most digit) is worth 10^n.  Here&#8217;s the number 1024 re-written to illustrate this.</p>
<pre>(1 * 10^3) + (0 * 10^2) + (2 * 10^1) + (4 * 10^0) = 1024</pre>
<p>This is a lot of work to read a number that we intuitively know is worth 1,024.  However, it helps to understand how binary numbers work.</p>
<h4>Binary Numbers &#8211; The Base Two System</h4>
<p>While base ten numbers are simple enough for humans to work with, computers are designed to use a binary or base two numbering system.</p>
<p>The simplest unit of information is a binary bit &#8211; a 0 or a 1.</p>
<p>To create complex numbers, we can string together 0&#8242;s and 1&#8242;s.  For example, a number could be written as 0010 0101.</p>
<p>To understand what this value means, we can apply the same rules as we did above.  However, since this is a base two system instead of a base ten system, each place is multiplied by 2^n.</p>
<p>Let&#8217;s start with a smaller example &#8211; 1111.</p>
<pre>(1 * 2^3) + (1 * 2^2) + (1 * 2^1) + (1 * 2^0)
    = 8 + 4 + 2 + 1
    = 15</pre>
<p>These rules can be expanded to represent byte-sized numbers (8-bits, or 2^8, or 255) or even larger numbers.</p>
<h4>Manipulating Bits and Bytes &#8211; Bitwise Operators</h4>
<p>Most programming languages come with some built in operators to handle bits.  These help make very basic comparisons and manipulations of numbers.</p>
<p>These typically include the &#8216;and&#8217; or intersection operator, the &#8216;or&#8217; or union operator, and the &#8216;xor&#8217; or exclusive-or operator.  We&#8217;ll just take a look at the &#8216;and&#8217; and &#8216;or&#8217; operators right now.  [Note:  I use the terms intersection and union because I think they make it much easier to understand, if you are at all familiar with math sets and statistics.  They aren&#8217;t typical &#8216;coding&#8217; terms).</p>
<p>The &#8216;and&#8217; or intersection operator &#8211; the &#8216;&amp;&#8217; character in PHP &#8211; compares two binary numbers and returns a new binary number with a &#8217;1&#8242; in every unit in which <strong>both</strong> numbers have a &#8217;1&#8242;.  If both numbers have a value in the second place, then the return number will have a value in the second place.  If only one number has a value in the third place, then the return number will have no value in the third place.</p>
<pre>0111 &amp; 0101 = 0101
0101 &amp; 1010 = 0000
1111 &#038; 1111 = 1111</pre>
<p>If you imagine &#8217;0111&#8242; and &#8217;0101&#8242; as sets of numbers ({4, 2, 1} and {4, 1} respectively), then the result of a bitwise &#8216;and&#8217; operation is the simple intersection of the two sets.</p>
<p>The bitwise &#8216;or&#8217; operator &#8211; a | in PHP &#8211; returns a value in each place that <strong>either</strong> number has a value.  So if only one number has a value in the first place, the result will have a value in the first place.  A place will only have no value if <strong>neither</strong> number had a value there.</p>
<pre>0111 | 0101 = 0111
0101 1110 | 1010 0001 = 1111 1111
0000 1111 | 1111 0000 = 1111 1111</pre>
<p>These operators aren&#8217;t used very much, but it is important to recognize them.  If you don&#8217;t know what they are, it is easy to confuse them with the standard <a href="http://www.earn-web-cash.com/2008/02/16/php-logical-operator/">logical operators</a> &#8211; || and &amp;&amp;.</p>
<p>For example, the following two lines of code have <strong>very</strong> different meanings.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$x</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">124</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$y</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">36</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$bitwise</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$x</span> <span style="color: #339933;">&amp;</span> <span style="color: #000088;">$y</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$logical</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$x</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$y</span><span style="color: #339933;">;</span></pre></div></div>

<p>In the first comparison ($x &amp; $y), we&#8217;re finding the bitwise intersection of the two values.  This would be&#8230;</p>
<pre>0111 1100 &amp; 0010 0100 = 0010 0100</pre>
<p>In base ten terms, $bitwise would be equal to 36.  In the second example ($x &amp;&amp; $y), we&#8217;re looking for a simple boolean comparison.  In this case, both $x and $y have a value, so the comparison will return &#8217;1&#8242; or &#8216;true&#8217;.</p>
<h4>Is This Useful&#8230;?  Comparing Constant Flags</h4>
<p>You may be thinking to yourself, &#8220;When will I ever use this?&#8221;</p>
<p>While anyone working with computer code should understand how binary numbers work, there will probably be very few cases in which you manipulate numerical values in a binary format.  The rest of the world works with decimal numbers &#8211; and your programming language is designed to do the same thing.</p>
<p>However, there are some cases where you <strong>will</strong> want to use bitwise numbers and comparisons.  A perfect example is the use of constants and flags.</p>
<p>Let&#8217;s say that a function takes 16 parameters.  Each of these parameters is a simple &#8220;True&#8221; or &#8220;False.&#8221;</p>
<p>You could write the function take sixteen different parameters and use sixteen different variables.  However, this would make function calls quite long &#8211; especially if you usually only make two or three parameters true.</p>
<p>Instead, you can pass one value as a parameter.  This value &#8211; 16 bits long &#8211; includes 16 individual flags to tell the function whether a specific parameter is true or false.</p>
<p>If every parameter is set to true, this value would be &#8220;1111 1111 1111 1111&#8243;.  If only the first parameter should be set to true, this value would be &#8220;0000 0000 0000 0001&#8243;.</p>
<p>Each flag is represented by a specific place in this binary number.  The first flag is &#8220;0001,&#8221; the second flag is &#8220;0010,&#8221; the third flag is &#8220;0100,&#8221; etc.</p>
<p>Your code wouldn&#8217;t be very readable if you referred to each flag by its numerical value.  Instead, you can define constant values.  For example, FUNCTION_FLAG_ONE would represent &#8220;0001,&#8221; &#8220;FUNCTION_FLAG_TWO would represent &#8220;0010,&#8221; etc.  These constants would follow whatever naming convention you usually use.</p>
<p>The value of this is that you can easily set any number of flags with the use of the bitwise &#8216;or&#8217; operator.</p>
<p>For example, let&#8217;s say you want to set flags one, seven, and fifteen to true.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$flags</span> <span style="color: #339933;">=</span> FUNCTION_FLAG_ONE <span style="color: #339933;">|</span> 
    FUNCTION_FLAG_SEVEN <span style="color: #339933;">|</span> FUNCTION_FLAG_FIFTEEN<span style="color: #339933;">;</span></pre></div></div>

<p>The result would be &#8217;0100 0000 0100 0001.&#8217;</p>
<p>Inside the function, you could then use the bitwise &#8216;and&#8217; operator to see which flags were set.  For example, this would let you check to see if the fifteenth flag was set to true.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$fifteen</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$flags</span> <span style="color: #339933;">&amp;</span> FUNCTION_FLAG_FIFTEEN<span style="color: #339933;">;</span></pre></div></div>

<p>Although your function&#8217;s code will have to do some legwork to find out which flags were set and which ones were not, this makes the function call itself <strong>much</strong> more efficient and readable.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.earn-web-cash.com/2008/04/06/binary-code-and-bitwise-operators-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Analytics: Inserting Into a WordPress Template</title>
		<link>http://www.earn-web-cash.com/2008/03/29/google-analytics-wordpress/</link>
		<comments>http://www.earn-web-cash.com/2008/03/29/google-analytics-wordpress/#comments</comments>
		<pubDate>Sat, 29 Mar 2008 17:00:48 +0000</pubDate>
		<dc:creator>Walkere</dc:creator>
				<category><![CDATA[Online Tools]]></category>
		<category><![CDATA[Redirected]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Analytics]]></category>
		<category><![CDATA[Stat Tracking]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.earn-web-cash.com/2008/03/29/google-analytics-wordpress/</guid>
		<description><![CDATA[Google Analytics is a great tool for gathering data about your website. You can track and analyze all kinds of data about your visitors, their navigation paths, and the effectiveness of your content. To use Google Analytics, you need to place some javascript on your website. A commonly asked question in forums is, &#8220;How do [...]]]></description>
			<content:encoded><![CDATA[<p>Google Analytics is a great tool for gathering data about your website.  You can track and analyze all kinds of data about your visitors, their navigation paths, and the effectiveness of your content.</p>
<p>To use Google Analytics, you need to place some javascript on your website.  A commonly asked question in forums is, &#8220;How do I add Google Analytics to my WordPress template?&#8221;<br />
<span id="more-184"></span></p>
<h4>Where the Analytics Code Goes</h4>
<p>When you sign up for Google Analytics, Google provides you with a short piece of javascript to place on your site.  The code should look like this.</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
var gaJsHost = ((&quot;https:&quot; == document.location.protocol) ? &quot;https://ssl.&quot; : &quot;http://www.&quot;);
document.write(unescape(&quot;%3Cscript src='&quot; + gaJsHost + &quot;google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E&quot;));
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
var pageTracker = _gat._getTracker(&quot;UA-2894597-3&quot;);
pageTracker._initData();
pageTracker._trackPageview();
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></pre></div></div>

<p>According to Google&#8217;s instructions, this needs to be placed at the very end of your site &#8211; just before the closing body tag.  To do this, we need to find the closing body tag on the WordPress template.</p>
<h4>Look In Footer.php</h4>
<p>As we previously discovered, a <a href="http://www.earn-web-cash.com/2008/03/10/wordpress-template-basics/">WordPress template</a> is made up of a series of files.  Three basic files &#8211; header.php, sidebar.php, and footer.php &#8211; help build the components of the page.</p>
<p>If your WordPress template follows normal conventions, the closing body tag should be in the footer.php file.</p>
<p>Go to your themes directory of the WordPress installation, navigate to your current theme, and open footer.php.  You should see something like this at the end.</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;?php wp_footer<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; ?&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">html</span>&gt;</span></pre></div></div>

<p>Add a blank line before the closing body tag.  Simply copy and paste the javascript code that Google provides on that blank line, save the file, and you&#8217;re good to go.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.earn-web-cash.com/2008/03/29/google-analytics-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Submit Graphics Tutorials to GimpTutorials.com for Traffic</title>
		<link>http://www.earn-web-cash.com/2008/02/01/gimp-tutorials/</link>
		<comments>http://www.earn-web-cash.com/2008/02/01/gimp-tutorials/#comments</comments>
		<pubDate>Fri, 01 Feb 2008 23:09:10 +0000</pubDate>
		<dc:creator>Walkere</dc:creator>
				<category><![CDATA[Redirected]]></category>
		<category><![CDATA[Traffic]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[Writing]]></category>

		<guid isPermaLink="false">http://www.earn-web-cash.com/2008/02/01/gimp-tutorials/</guid>
		<description><![CDATA[If you write tutorials on your website or blog, then niche tutorial directories are a great source of traffic.  I list most of my php tutorials with good-tutorials and get a nice <a href="http://www.earn-web-cash.com/2008/01/18/good-tutorialscom-niche-article-sites-to-help-increase-traffic/">burst of traffic</a> with each new listing.

Another site I've found useful is <a href="http://www.gimp-tutorials.com" title="Gimp Tutorial Site">Gimp Tutorials</a>.  They're a great place to list any graphics tutorials that you write for the GIMP graphic design program.]]></description>
			<content:encoded><![CDATA[<p>If you write tutorials on your website or blog, then niche tutorial directories are a great source of traffic.  I list most of my php tutorials with good-tutorials and get a nice <a href="http://www.earn-web-cash.com/2008/01/18/good-tutorialscom-niche-article-sites-to-help-increase-traffic/">burst of traffic</a> with each new listing.</p>
<p>Another site I&#8217;ve found useful is <a href="http://www.gimp-tutorials.com" title="Gimp Tutorial Site">Gimp Tutorials</a>.  They&#8217;re a great place to list any graphics tutorials that you write for the GIMP graphic design program.<br />
<span id="more-92"></span><br />
In case you don&#8217;t know what GIMP is, head to the <a href="http://www.gimp.org/" title="Gimp Homepage">Gimp</a> homepage.  It&#8217;s a free, open source graphic editing suite &#8211; similar in many ways to the expensive, proprietary Adobe Photoshop.</p>
<p><a href="http://www.gimp-tutorials.com" title="Gimp Tutorial Site">Gimp Tutorials</a> is another niche directory where you can submit appropriate tutorials for listing.  In this case, appropriate means just about anything related to creating or editing an image in Gimp.</p>
<p><a href='http://www.earn-web-cash.com/wp-content/uploads/2008/02/gimp-tutorials-analytics.png' title='Screenshot of Analytics Data for Referrals from Gimp Tutorials'><img class="alignright" src='http://www.earn-web-cash.com/wp-content/uploads/2008/02/gimp-tutorials-analytics.thumbnail.png' alt='Screenshot of Analytics Data for Referrals from Gimp Tutorials' /></a>I wrote a very basic tutorial to show users <a href="http://www.earn-web-cash.com/2008/01/24/how-to-create-a-gradient-background-image-in-gimp/" title="GIMP Gradient Image Tutorial">how to create a gradient background image in GIMP</a>.  Since I submitted the tutorial to Gimp Tutorials, slightly less than week ago, they&#8217;ve sent me 200 visits.</p>
<p>There was a brief spike on the first day, and I&#8217;ve been getting a steady stream of 20-30 visitors each day after that.</p>
<p>There doesn&#8217;t appear to be a lot of turnover on the site, so my tutorial is still listed third on the front page.  That&#8217;s after five days.  That&#8217;s a pretty lengthy period of exposure &#8211; considering that others sites (like Good Tutorials) turnover in about a day.</p>
<p>So if you write any tutorials for GIMP, don&#8217;t hesitate to submit them here.  It&#8217;s a good way to drive a few extra users to your latest article.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.earn-web-cash.com/2008/02/01/gimp-tutorials/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Website Tip: How to Find More Content to Write</title>
		<link>http://www.earn-web-cash.com/2008/01/27/website-tip-how-to-find-more-content-to-write/</link>
		<comments>http://www.earn-web-cash.com/2008/01/27/website-tip-how-to-find-more-content-to-write/#comments</comments>
		<pubDate>Sun, 27 Jan 2008 14:24:37 +0000</pubDate>
		<dc:creator>Walkere</dc:creator>
				<category><![CDATA[Redirected]]></category>
		<category><![CDATA[Traffic]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Writing]]></category>
		<category><![CDATA[Article]]></category>
		<category><![CDATA[search engines]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://www.earn-web-cash.com/2008/01/27/website-tip-how-to-find-more-content-to-write/</guid>
		<description><![CDATA[An old web design adage is, "Content is king."  All the SEO and fancy design in the world won't help you if you don't have any content.

So how do you keep on writing?  Where do all the new ideas come from?

Everybody's got their own tricks, but here's one that I love to use when I'm short on ideas.  Go through your search engine logs and see what people are searching for - and not finding.]]></description>
			<content:encoded><![CDATA[<p>An old web design adage is, &#8220;Content is king.&#8221;  All the SEO and fancy design in the world won&#8217;t help you if you don&#8217;t have any content.</p>
<p>So how do you keep on writing?  Where do all the new ideas come from?</p>
<p>Everybody&#8217;s got their own tricks, but here&#8217;s one that I love to use when I&#8217;m short on ideas.  Go through your search engine logs and see what people are searching for &#8211; and not finding.<br />
<span id="more-72"></span><br />
Here&#8217;s an example.  Last week I wrote an article on <a href="http://www.earn-web-cash.com/2008/01/21/tooltip-gradient/" title="How to Create Tooltips with CSS and No Javascript">How to Create Style-able CSS Tooltips</a>.  </p>
<p>As usual, I was browsing through the Google Analytics data a day or two later.  While looking through the Search Engine results (the queries that people used to come to my site), I noticed that someone used the query &#8220;gradient background image gimp.&#8221;</p>
<p>The odd thing about this was that the article wasn&#8217;t about creating background images in Gimp &#8211; I just happened to mention at the end that you could use Gimp to create a gradient background image and add it to your tooltip.</p>
<p>This tells me two things.</p>
<p>First, someone is looking for this information.  If I write it&#8230; they will come.</p>
<p>Second, someone else is not serving this information up.  If a user stumbles on one of my articles that just barely mentions the topic, there can&#8217;t be a lot of targeted articles out there.</p>
<p>I decided to take the topic and run with it.  A few days later, I wrote a simple <a href="http://www.earn-web-cash.com/2008/01/24/how-to-create-a-gradient-background-image-in-gimp/" title="How to Create Gradient Background Images in Gimp">tutorial about how to create a gradient background image in Gimp</a>.  I targeted the article at those major keywords &#8211; gradient, background, image, Gimp &#8211; and now it&#8217;s getting some nice search engine traffic.</p>
<p>So if you&#8217;re ever short on ideas, this is a great way to respark that creativity.  Look through your search engine logs for queries that bring people in &#8211; but don&#8217;t bring people to what they&#8217;re looking for.  Then&#8230; give them what they want.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.earn-web-cash.com/2008/01/27/website-tip-how-to-find-more-content-to-write/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Create a Gradient Background Image in GIMP</title>
		<link>http://www.earn-web-cash.com/2008/01/24/how-to-create-a-gradient-background-image-in-gimp/</link>
		<comments>http://www.earn-web-cash.com/2008/01/24/how-to-create-a-gradient-background-image-in-gimp/#comments</comments>
		<pubDate>Thu, 24 Jan 2008 21:59:18 +0000</pubDate>
		<dc:creator>Walkere</dc:creator>
				<category><![CDATA[GIMP Tutorial]]></category>
		<category><![CDATA[HTML Tutorials]]></category>
		<category><![CDATA[Redirected]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[GIMP]]></category>
		<category><![CDATA[gradient]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.earn-web-cash.com/2008/01/24/how-to-create-a-gradient-background-image-in-gimp/</guid>
		<description><![CDATA[The other day I wrote about how to add a gradient background to a css tooltip. So I thought it might be a good idea to walk through how to create the actual gradient image. Since I recently switched to Ubuntu Linux, I don&#8217;t use Photoshop anymore. GIMP all the way. So this tutorial will [...]]]></description>
			<content:encoded><![CDATA[<p><a href='http://www.earn-web-cash.com/wp-content/uploads/2008/01/gradient.png' title='Sample Gradient Background'><img class="alignright" src='http://www.earn-web-cash.com/wp-content/uploads/2008/01/gradient.thumbnail.png' alt='Sample Gradient Background' /></a>The other day I wrote about how to <a href="http://www.earn-web-cash.com/2008/01/21/tooltip-gradient/" title="Add a gradient background to a tooltip">add a gradient background to a css tooltip</a>.  So I thought it might be a good idea to walk through how to create the actual gradient image.</p>
<p>Since I recently switched to Ubuntu Linux, I don&#8217;t use Photoshop anymore.  GIMP all the way.  So this tutorial will show you briefly how to create a gradient image in GIMP and then use it as the background of an html element.<br />
<span id="more-60"></span></p>
<h5>Create a Blank Image (120px x 120px)</h5>
<p><a href='http://www.earn-web-cash.com/wp-content/uploads/2008/01/blank-image.jpg' title='Gradient Background Tutorial - Blank Image (Step 1)'><img class="alignright" src='http://www.earn-web-cash.com/wp-content/uploads/2008/01/blank-image.thumbnail.jpg' alt='Gradient Background Tutorial - Blank Image (Step 1)' /></a>First thing &#8211; fire up GIMP and create a new image.  Usually a gradient background image is 1 pixel wide.  For now we&#8217;ll create a bigger image so it&#8217;s easier to see what we&#8217;re doing &#8211; 120 pixels by 120 pixels.  You can crop the image down to a 1 pixel width later.</p>
<h5>Set the Foreground and Background Colors</h5>
<p><a href='http://www.earn-web-cash.com/wp-content/uploads/2008/01/color-chooser.jpg' title='Gradient Background Tutorial - Color Chooser (Step 2)'><img class="alignright" src='http://www.earn-web-cash.com/wp-content/uploads/2008/01/color-chooser.thumbnail.jpg' alt='Gradient Background Tutorial - Color Chooser (Step 2)' /></a>When you create a gradient, you need to set two colors &#8211; the beginning color (usually the foreground) and the ending color (usually the background color).  To change these colors, click on the square swatch of the foreground color in your toolbar (see the circled area in the screenshot to the right).</p>
<p>This should bring up a box titled, &#8220;Change Foreground Color.&#8221;  Pick a dark color &#8211; I used #981313.  Then, click on the Background Color Swatch (the one right behind the Foreground color).  Change the background color to a lighter version of your foreground color &#8211; I used #f17b7b.</p>
<h5>Select the Gradient Tool</h5>
<p><a href='http://www.earn-web-cash.com/wp-content/uploads/2008/01/gradient-tool.jpg' title='Gradient Background Tutorial - Gradient Tool (Step 3)'><img class="alignright" src='http://www.earn-web-cash.com/wp-content/uploads/2008/01/gradient-tool.thumbnail.jpg' alt='Gradient Background Tutorial - Gradient Tool (Step 3)' /></a>Now that you&#8217;ve chosen the two colors, you&#8217;re ready to create the gradient.  Click on the &#8220;Gradient&#8221; tool &#8211; it&#8217;s the square that fades from black to light gray.  See the screenshot to the right.  There are a bunch of options you could customize, but for a standard gradient background image you&#8217;re better off leaving them alone.</p>
<h5>Draw the Gradient!  Then Crop Away</h5>
<p><a href='http://www.earn-web-cash.com/wp-content/uploads/2008/01/dragging-gradient.jpg' title='Gradient Background Tutorial - Drawing the Gradient (Step 4)'><img class="alignright" src='http://www.earn-web-cash.com/wp-content/uploads/2008/01/dragging-gradient.thumbnail.jpg' alt='Gradient Background Tutorial - Drawing the Gradient (Step 4)' /></a>Now you can actually create the gradient by clicking and dragging on your image canvas.  Position the tool at the top border of your canvas (if you look in the bottom left, it&#8217;ll tell you when you&#8217;re over pixel &#8220;0&#8243;).  Hold down the Control button to force GIMP to draw a straight line, and drag the cursor down to the bottom pixel of your canvas.</p>
<p>Let go.  Voila!  You&#8217;ve got a nice gradient image created.</p>
<p>You could use it as-is in your css stylesheet, but it&#8217;s usually a good idea to trim your picture to 1px wide.  The browser can simply repeat the image across the entire width of the element &#8211; so making it wider than 1 px is simply wasting bandwidth.  Go ahead and crop the image now, and in the future make your gradient images 1 px wide by whatever height you want.</p>
<p>Now, let&#8217;s write the css to use this as a background image for an html element.</p>
<pre><code>.gradient {
  background: #f17b7b url(images/gradient.png)
    repeat-x top; }</code></pre>
<p>There&#8217;s four pieces to this shorthand css declaration.</p>
<ul>
<li><code>#f17b7b</code> sets the background color.  This is the same as the bottom color in our gradient, so that if the container is taller than the gradient image it seems to blend smoothly.</li>
<li><code>url(images/gradient.png)</code> sets our gradient image as the background image.  Make sure you change the path to where-ever you uploaded your gradient image.</li>
<li><code>repeat-x</code> tells the browser to repeat the image left-to-right for the entire width of the container.  This is what makes our 1-pixel background image &#8220;stretch&#8221; across the entire width.</li>
<li><code>top</code> simply tells the background image to align itself to the top edge of the container.  Not always necessary, but your better safe than sorry.</li>
</ul>
<p>And that&#8217;s all there is to it.  Create an html element with class <code>gradient</code> and it should have your lovely gradient background.</p>
<p>So get to it.  Start drawing.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.earn-web-cash.com/2008/01/24/how-to-create-a-gradient-background-image-in-gimp/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Good-Tutorials.com: Niche Article Sites to Help Increase Traffic</title>
		<link>http://www.earn-web-cash.com/2008/01/18/good-tutorialscom-niche-article-sites-to-help-increase-traffic/</link>
		<comments>http://www.earn-web-cash.com/2008/01/18/good-tutorialscom-niche-article-sites-to-help-increase-traffic/#comments</comments>
		<pubDate>Sat, 19 Jan 2008 01:18:00 +0000</pubDate>
		<dc:creator>Walkere</dc:creator>
				<category><![CDATA[Redirected]]></category>
		<category><![CDATA[Traffic]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Article]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[Submit]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[Writing]]></category>

		<guid isPermaLink="false">http://www.earn-web-cash.com/2008/01/18/good-tutorialscom-niche-article-sites-to-help-increase-traffic/</guid>
		<description><![CDATA[This site is fairly new. Ok, it&#8217;s really new. So, naturally, I&#8217;ve been looking for ways to increase backlinks, search engine visibility, and traffic. I&#8217;ve tried out a few methods, with varying success. What has worked really well, so far, is submitting an article to a niche site: Good Tutorials. People often advise you to [...]]]></description>
			<content:encoded><![CDATA[<p>This site is fairly new.  Ok, it&#8217;s really new.  So, naturally, I&#8217;ve been looking for ways to increase backlinks, search engine visibility, and traffic.</p>
<p>I&#8217;ve tried out a few methods, with varying success.  What has worked really well, so far, is submitting an article to a niche site: <a href="http://www.good-tutorials.com">Good Tutorials</a>.<br />
<span id="more-42"></span><br />
People often advise you to submit your articles to social networking and article sites.  Often times this will get you a few backlinks and little to no traffic.</p>
<p>I stumbled on Good Tutorials when I was looking for some information on a different topic.  After browsing around the site, I noticed that they take and review submissions of tutorials for inclusion in the directory.  I thought what the hell, let me try it out.</p>
<p>I submitted the tutorial I wrote about <a href="http://www.earn-web-cash.com/2008/01/08/how-to-write-a-php-script-to-send-a-trackback/">creating a php script to send trackbacks</a>.  After signing up and submitting the tutorial, they told me it would take one to two days to be reviewed.</p>
<p>I never got an e-mail back confirming that my tutorial had been accepted or not.  I forgot about it for a couple of days &#8211; kind of busy at work.  Then, today, I logged in to see what the status was.</p>
<p>My tutorial had been accepted two days ago.  In that time frame, it got 95 clicks.  I logged into Google Analytics, and sure enough there was a big jump in traffic.  Good Tutorials had sent me approximately 90 visits, and some of those people had looked around the site at other entries and articles.</p>
<p>I also noticed a bit of traffic coming from another new site &#8211; <a href="http://www.tutsbuzz.com">Tuts Buzz</a>.  I checked it out and it was another tutorial directory.  A link to my tutorial had shown up there as well, probably from Good Tutorial&#8217;s feed.</p>
<p>Whether or not I&#8217;ll continue to get substantial traffic from these sites, I don&#8217;t know.  It may be that I&#8217;m getting some click throughs because my tutorial is on the &#8220;Newest Tutorials&#8221; list.  Maybe it&#8217;ll drop off to nothingness when it just becomes a filed away tutorial.</p>
<p>However, it definitely seems to be a worthwhile way to get some traffic.  Unlike a lot of article sites &#8211; that send you a few low PR backlinks and no traffic &#8211; I got a real measurable increase in traffic.</p>
<p>So, if you write any tutorials on coding, software, or technology &#8211; head over to <a href="http://www.good-tutorials.com">Good Tutorials</a> and see about getting your own listing.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.earn-web-cash.com/2008/01/18/good-tutorialscom-niche-article-sites-to-help-increase-traffic/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Why Don&#8217;t My Images Appear in My HTML E-mail?</title>
		<link>http://www.earn-web-cash.com/2008/01/16/why-dont-my-images-appear-in-my-html-e-mail/</link>
		<comments>http://www.earn-web-cash.com/2008/01/16/why-dont-my-images-appear-in-my-html-e-mail/#comments</comments>
		<pubDate>Wed, 16 Jan 2008 22:33:55 +0000</pubDate>
		<dc:creator>Walkere</dc:creator>
				<category><![CDATA[HTML Tutorials]]></category>
		<category><![CDATA[Redirected]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[e-mail]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[link]]></category>

		<guid isPermaLink="false">http://www.earn-web-cash.com/2008/01/16/why-dont-my-images-appear-in-my-html-e-mail/</guid>
		<description><![CDATA[I was browsing around the PHP forum on Daniweb and came across this problem in a post. Here&#8217;s the situation. The guy wanted to send out a newsletter, so he grabbed a pre-fabbed newsletter script. The PHP script seemed to work fine &#8211; it read an HTML template and then fired off the e-mail in [...]]]></description>
			<content:encoded><![CDATA[<p>I was browsing around the PHP forum on Daniweb and came across <a href="http://www.daniweb.com/forums/thread104769.html">this problem in a post</a>.</p>
<p>Here&#8217;s the situation.</p>
<p>The guy wanted to send out a newsletter, so he grabbed a pre-fabbed newsletter script.  The PHP script seemed to work fine &#8211; it read an HTML template and then fired off the e-mail in HTML form.</p>
<p>There was just one problem: none of the images were appearing in the HTML e-mail when he tried to view it.<br />
<span id="more-41"></span><br />
What was the culprit?  The PHP script?  Or simply some faulty HTML?</p>
<p>It turns out the PHP script was working just as intended.  If you view his post, you can get a copy of the source code.  I haven&#8217;t tested it, but he claims it worked fine.</p>
<p>The problem was a simple mistake in HTML coding.</p>
<p>When the img tags were declared, the src attribute was set with a <strong>relative url</strong>  instead of an <strong>absolute url</strong>.</p>
<p>What&#8217;s the difference?</p>
<p>A <strong>relative url</strong> tells the browser the path to a file from the current file&#8217;s directory location.  So, for example, let&#8217;s say I have a file &#8220;index.html&#8221; and a file &#8220;guide.html&#8221; inside the directory &#8220;web-design-guides&#8221; on the domain &#8220;http://www.earn-web-cash.com.&#8221;</p>
<p>If I want to create a link from &#8220;index.html&#8221; to &#8220;guide.html&#8221; using a relative url, I simply use this tag&#8230;</p>
<p><code>
<pre>&lt;a href="guide.html"&gt;Guide.html&lt;/a&gt;</pre>
<p></code></p>
<p>That tells the browser to look inside the same directory for the file &#8220;guide.html.&#8221;</p>
<p>A <strong>absolute url</strong> defines the absolute path to a file.  In the same example, we&#8217;d have to include in the href the domain, the directory, and the file name, like so&#8230;</p>
<p><code>
<pre>&lt;a href="http://www.earn-web-cash.com/
  web-design-guides/guide.html"&gt;Guide.html&lt;/a&gt;</pre>
<p></code></p>
<p>The advantage of relative URLs is that they&#8217;re quick to type and they make webpages easily portable.  If all of my links are relative and I move the entire site to a new server, I don&#8217;t have to edit anything.</p>
<p>If I had used absolute urls, I would have had to change the domain name in every anchor tag.  The advantage of absolute urls, though, is that they can be accessed no matter where the page is accessed.</p>
<p>So, for example, if I turn the webpage into an e-mail (or if it&#8217;s read in an rss reader), the absolute url is still valid.  If I use a relative url in an html e-mail, the reader&#8217;s browser won&#8217;t be able to find the file &#8211; it will look in the directory that the e-mail script is running to find the file you&#8217;re linking to.</p>
<p>So what&#8217;s the lesson here?</p>
<p>If you&#8217;re writing HTML that is going to be displayed somewhere <strong>other</strong> than your server &#8211; i.e. in an e-mail, cached on someone&#8217;s hard drive, or on an rss reader &#8211; remember to always use absolute urls.</p>
<p>This is especially important for <code>&lt;img&gt;</code> tags &#8211; because they are almost always declared in regular pages as relative urls.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.earn-web-cash.com/2008/01/16/why-dont-my-images-appear-in-my-html-e-mail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

