<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Web Cash</title>
	
	<link>http://www.earn-web-cash.com</link>
	<description>Writing, Designing, and Making Money Online</description>
	<lastBuildDate>Tue, 06 Jan 2009 03:48:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/WebCash" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>Moving Elsewhere. Slowly</title>
		<link>http://feedproxy.google.com/~r/WebCash/~3/LNT8aWybakQ/</link>
		<comments>http://www.earn-web-cash.com/2008/12/07/moving-elsewhere-slowly/#comments</comments>
		<pubDate>Mon, 08 Dec 2008 01:28:38 +0000</pubDate>
		<dc:creator>Walkere</dc:creator>
				<category><![CDATA[Sundry Musings]]></category>

		<guid isPermaLink="false">http://www.earn-web-cash.com/2008/12/07/moving-elsewhere-slowly/</guid>
		<description><![CDATA[If you take a look at the archives, you may notice that this site hasn&#8217;t been updated in quite some time. April, to be specific.
In the late Spring, I got burnt out and kind of lost momentum to continue posting things. Ironically, the site was increasing in traffic and readership. Doh.
I was otherwise occupied throughout [...]]]></description>
			<content:encoded><![CDATA[<p>If you take a look at the archives, you may notice that this site hasn&#8217;t been updated in quite some time. April, to be specific.</p>
<p>In the late Spring, I got burnt out and kind of lost momentum to continue posting things. Ironically, the site was increasing in traffic and readership. Doh.</p>
<p>I was otherwise occupied throughout the summer (Damn you, <a href="http://worldofwarcraft.com">WoW</a>!).  When the school year swung around, and I officially quit WoW, I decided it was time to revive my old web development/publishing pursuits.</p>
<p>However, for a variety of reasons, I chose not to just pick up with this site and continue. For one thing, I wanted to combine a handful of projects into one, manageable project.  One reason I stopped posting here was to work on a blog about World of Warcraft.  My new project &#8211; <a href="http://life-of-brian.com">This Life of Brian</a> &#8211; incorporates a couple of different topics/websites under one umbrella.  It makes it a lot easier to keep things up to date.</p>
<p>Also, I grew tired of this domain name.  It sounded catchy at first, but now I think it&#8217;s a bit spammy.  I had a couple articles do well on Digg, and some commenters pointed out the domain name.  Doh.</p>
<p>I&#8217;m now in the process of slowly migrating the archives of this site to my new project.  They&#8217;ll all be contained in the web development and publishing section of the site &#8211; <a href="http://life-of-brian.com/category/nerds-at-work/">Nerds at Work</a>.  It&#8217;s pretty well segregated from the other topics (online gaming, education, and random blogging pursuits).  It&#8217;s got its own theme and its own RSS feed.</p>
<p>I&#8217;m also hosting all of my new content at that site, and this site will no longer be updated.  I just renewed the domain for another year, so this site will be here until next December.  However, don&#8217;t expect anything new here&#8230; and hopefully all of the old articles will be at Nerds at Work by the spring time.</p>
<p>So what are you waiting for?  Head on over and check out my <a href="http://life-of-brian.com/category/nerds-at-work/">latest work</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.earn-web-cash.com/2008/12/07/moving-elsewhere-slowly/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.earn-web-cash.com/2008/12/07/moving-elsewhere-slowly/</feedburner:origLink></item>
		<item>
		<title>Share Your Reading Habits: Google Reader</title>
		<link>http://feedproxy.google.com/~r/WebCash/~3/kGj-_LmFluA/</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 [...]]]></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"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;div</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;readerpublishermodule0&quot;</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;reader-publisher-module&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ul&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;i&quot;</span> <span style="color: #000066;">title</span>=<span style="color: #ff0000;">&quot;Good for Hunters, Bad for Druids&quot;</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://4thehorde.wordpress.com/2008/04/25/good-for-hunters-bad-for-druids/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Good for Hunters, Bad for Druids<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;div</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;s&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>from <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://4thehorde.wordpress.com&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>For the Horde<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;i&quot;</span> <span style="color: #000066;">title</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: #ff0000;">&quot;http://feeds.feedburner.com/%7Er/Resto4Life/%7E3/279629927/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Bornakk: Druids Not to be &quot;Big Green Blobs&quot;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;div</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;s&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>from <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://www.resto4life.com&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Resto4Life<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;div</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;f&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://www.google.com/reader/shared/user/18391951200330501918/state/com.google/broadcast&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Read more...<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></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>
		<feedburner:origLink>http://www.earn-web-cash.com/2008/04/28/share-articles-google-reader/</feedburner:origLink></item>
		<item>
		<title>Helium: Getting Started and Writing on an Existing Topic</title>
		<link>http://feedproxy.google.com/~r/WebCash/~3/mDsyfJb8CEY/</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>
		<feedburner:origLink>http://www.earn-web-cash.com/2008/04/27/helium-getting-started/</feedburner:origLink></item>
		<item>
		<title>Helium – Writing for Profit and a Community</title>
		<link>http://feedproxy.google.com/~r/WebCash/~3/V9Pbixi9a80/</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>
		<feedburner:origLink>http://www.earn-web-cash.com/2008/04/12/helium-writing-profit-community/</feedburner:origLink></item>
		<item>
		<title>Binary Code and Bitwise Operators (in PHP)</title>
		<link>http://feedproxy.google.com/~r/WebCash/~3/b5pQjJ7gnCc/</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&#8217;s and 1&#8217;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&#8217;s and 1&#8217;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 &#8216;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&#8217;s and 1&#8217;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 &#8216;1&#8242; in every unit in which <strong>both</strong> numbers have a &#8216;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 &#8216;0111&#8242; and &#8216;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"><span style="color: #0000ff;">$x</span> = <span style="color: #cc66cc;">124</span>;
<span style="color: #0000ff;">$y</span> = <span style="color: #cc66cc;">36</span>;
<span style="color: #0000ff;">$bitwise</span> = <span style="color: #0000ff;">$x</span> &amp; <span style="color: #0000ff;">$y</span>;
<span style="color: #0000ff;">$logical</span> = <span style="color: #0000ff;">$x</span> &amp;&amp; <span style="color: #0000ff;">$y</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 &#8216;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"><span style="color: #0000ff;">$flags</span> = FUNCTION_FLAG_ONE | 
    FUNCTION_FLAG_SEVEN | FUNCTION_FLAG_FIFTEEN;</pre></div></div>

<p>The result would be &#8216;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"><span style="color: #0000ff;">$fifteen</span> = <span style="color: #0000ff;">$flags</span> &amp; FUNCTION_FLAG_FIFTEEN;</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>
		<feedburner:origLink>http://www.earn-web-cash.com/2008/04/06/binary-code-and-bitwise-operators-in-php/</feedburner:origLink></item>
		<item>
		<title>Google Analytics: Inserting Into a Wordpress Template</title>
		<link>http://feedproxy.google.com/~r/WebCash/~3/i-V-iSKYdBc/</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 [...]]]></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"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></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;"><span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
var pageTracker = _gat._getTracker(&quot;UA-2894597-3&quot;);
pageTracker._initData();
pageTracker._trackPageview();
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></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"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;</span>?php wp_footer<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; ?<span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/body&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/html&gt;</span></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>
		<feedburner:origLink>http://www.earn-web-cash.com/2008/03/29/google-analytics-wordpress/</feedburner:origLink></item>
		<item>
		<title>Spread the Love: Intersite Linking</title>
		<link>http://feedproxy.google.com/~r/WebCash/~3/E1I9t4e0Cas/</link>
		<comments>http://www.earn-web-cash.com/2008/03/27/intersite-linking-seo/#comments</comments>
		<pubDate>Fri, 28 Mar 2008 00:31:44 +0000</pubDate>
		<dc:creator>Walkere</dc:creator>
				<category><![CDATA[Traffic]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Articles]]></category>
		<category><![CDATA[backlinks]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[search engines]]></category>
		<category><![CDATA[seo]]></category>

		<guid isPermaLink="false">http://www.earn-web-cash.com/2008/03/27/intersite-linking-seo/</guid>
		<description><![CDATA[I recently started working on a new website &#8211; the one I mentioned in the article on creating individual 301 redirects for Wordpress.
I got the site up and running, updated some content, and then submitted my sitemap information to the Google Webmaster Tools.  As usual, the next step is to wait and see how [...]]]></description>
			<content:encoded><![CDATA[<p>I recently started working on a new website &#8211; the one I mentioned in the article on creating <a href="http://www.earn-web-cash.com/2008/03/23/moving-wordpress-individual-301-redirects-with-php/">individual 301 redirects for Wordpress</a>.</p>
<p>I got the site up and running, updated some content, and then submitted my sitemap information to the Google Webmaster Tools.  As usual, the next step is to wait and see how long it takes Google to start regularly indexing the site.<br />
<span id="more-183"></span></p>
<h4>Instant Indexing</h4>
<p>When I checked my site&#8217;s info in Webmaster Tools the next day, I found something strange &#8211; a page in the site was already cached in the index.</p>
<p>I had included a link to the site in the article here.  This site has a decent reputation with Google.  According to <a href="http://www.seometer.com">SEO Meter</a>, this site gets crawled every 1 to 2 days.</p>
<p>Apparently, Google crawled the site, followed the link, and cached that page in the index.  It has yet to sort through the new links and the sitemap, but the home page is accessible through a Google search.</p>
<h4>Get Articles Listed Quickly</h4>
<p>This leads me to a pretty useful bit of information.  If you have a link on a trusted site to an page that is previously unknown to Google, it will quickly get stored in the index.</p>
<p>I&#8217;ve never found this type of quick response with directory listings or forum links.  I suppose the difference here is that it&#8217;s a direct content to content link that carries some real weight.</p>
<p>If you already run a website &#8211; or if you write articles at <a href="http://www.associatedcontent.com">Associated Content</a> or a similar site &#8211; this seems like a pretty good strategy for jump-starting the crawling process.  Choose some of your main landing pages and link to them immediately from other sites that you own and write for.</p>
<p>This will send Google your way, get your pages indexed, and start bringing in a modicum of search engine traffic.  From there, you can wait for the rest of your link building strategy to help improve your SERP and Page Rank.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.earn-web-cash.com/2008/03/27/intersite-linking-seo/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.earn-web-cash.com/2008/03/27/intersite-linking-seo/</feedburner:origLink></item>
		<item>
		<title>Marking Up and Styling an Image Gallery</title>
		<link>http://feedproxy.google.com/~r/WebCash/~3/LCOvMZi8gxs/</link>
		<comments>http://www.earn-web-cash.com/2008/03/25/semantic-markup-image-album/#comments</comments>
		<pubDate>Wed, 26 Mar 2008 00:32:36 +0000</pubDate>
		<dc:creator>Walkere</dc:creator>
				<category><![CDATA[HTML Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[Images]]></category>
		<category><![CDATA[Markup]]></category>
		<category><![CDATA[style]]></category>

		<guid isPermaLink="false">http://www.earn-web-cash.com/2008/03/25/marking-up-and-styling-an-image-gallery/</guid>
		<description><![CDATA[While working on a new site (Rolling Horde), I decided to include a small image gallery.  I randomly display four images from a flickr album in the sidebar.
The pictures are presented in the mark-up that flickr creates, and I used the styling that came with the template I was working from.  It creates [...]]]></description>
			<content:encoded><![CDATA[<p>While working on a new site (<a href="http://rolling-horde.net">Rolling Horde</a>), I decided to include a small image gallery.  I randomly display four images from a flickr album in the sidebar.</p>
<p>The pictures are presented in the mark-up that flickr creates, and I used the styling that came with the template I was working from.  It creates a simple two by two square of photos, with a slight gap in between them.</p>
<p>Although I like the way they are presented, I&#8217;m not sure I like the mark-up that flickr creates.  What would be the simplest, semantic way to mark-up and style images in a small album like this?<br />
<span id="more-181"></span></p>
<h4>Semantic Mark-up: An Unordered List</h4>
<p>Flickr places all of the photos in divs.  These are then styled to float next to each other or appear however you like.</p>
<p>In my opinion, the most semantic way to mark-up photos like this would be to create an unordered list.  A photo album is essentially a list of photos.</p>
<p>This could be an ordered list if the photos were intended to be sequential &#8211; like a photo essay or a comic book &#8211; but the average photo album is just a collection of pictures.</p>
<p>The mark-up would look something like this.</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ul</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;images&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;img</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;http://farm4.static.flickr.com/3047/2362739858_c82b4de7c2_s.jpg&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;img</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;http://farm4.static.flickr.com/3047/2362739858_c82b4de7c2_s.jpg&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;img</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;http://farm4.static.flickr.com/3047/2362739858_c82b4de7c2_s.jpg&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;img</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;http://farm4.static.flickr.com/3047/2362739858_c82b4de7c2_s.jpg&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;img</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;http://farm4.static.flickr.com/3047/2362739858_c82b4de7c2_s.jpg&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;img</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;http://farm4.static.flickr.com/3047/2362739858_c82b4de7c2_s.jpg&quot;</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span></pre></div></div>

<p>The images would then be displayed in a long, vertical list.</p>
<h4>Styling &#8211; Making the List Inline</h4>
<p>In the end, we&#8217;d like to have the images sit side by side.  Ideally, they&#8217;d form a rectangle of either 2 x 3 pictures, or 3 x 2.</p>
<p>The first thing we want to do, then, is remove the list style type, clear the padding/margins of the list, and make the images appear next to each other.  The last bit we can achieve by giving the list items the &#8220;display: inline&#8221; css declaration.</p>

<div class="wp_syntax"><div class="code"><pre class="css"><span style="color: #cc00cc;">#images</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">list-style-type</span>: <span style="color: #993333;">none</span>;
  <span style="color: #000000; font-weight: bold;">padding</span>: <span style="color: #933;">0</span>;
  <span style="color: #000000; font-weight: bold;">margin</span>: <span style="color: #933;">0</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#images</span> li <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">display</span>: <span style="color: #993333;">inline</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>This would create a simple horizontal list, like this&#8230;</p>
<ul id="images_one">
<li><img src="http://farm4.static.flickr.com/3047/2362739858_c82b4de7c2_s.jpg" /></li>
<li><img src="http://farm4.static.flickr.com/3047/2362739858_c82b4de7c2_s.jpg" /></li>
<li><img src="http://farm4.static.flickr.com/3047/2362739858_c82b4de7c2_s.jpg" /></li>
<li><img src="http://farm4.static.flickr.com/3047/2362739858_c82b4de7c2_s.jpg" /></li>
<li><img src="http://farm4.static.flickr.com/3047/2362739858_c82b4de7c2_s.jpg" /></li>
<li><img src="http://farm4.static.flickr.com/3047/2362739858_c82b4de7c2_s.jpg" /></li>
</ul>
<h4>Width: Restricting the Number of Columns</h4>
<p>Notice how the list terminates at the end of its container div and continues on a second line?  </p>
<p>Without a width declaration, the unordered list expands as large as wide as it can.  When that width limit is hit, it starts a second line, and continues until all of the list items have been displayed.</p>
<p>We can use this to our advantage by setting a width declaration.  This allows us to limit the number of images to be displayed in each row.</p>
<p>If our images are 75px square, and we want to display three images across, we can set our width to be about 250px.  The extra space can be used later for paddings and margins &#8211; but the images will appear left justified within the list container.</p>

<div class="wp_syntax"><div class="code"><pre class="css"><span style="color: #cc00cc;">#images</span> <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">list-style-type</span>: <span style="color: #993333;">none</span>;
  <span style="color: #000000; font-weight: bold;">padding</span>: <span style="color: #933;">0</span>;
  <span style="color: #000000; font-weight: bold;">margin</span>: <span style="color: #933;">0</span>;
  <span style="color: #000000; font-weight: bold;">width</span>: <span style="color: #933;">250px</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#images</span> li <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">display</span>: <span style="color: #993333;">inline</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>This would create a list like this&#8230;</p>
<ul id="images_two">
<li><img src="http://farm4.static.flickr.com/3047/2362739858_c82b4de7c2_s.jpg" /></li>
<li><img src="http://farm4.static.flickr.com/3047/2362739858_c82b4de7c2_s.jpg" /></li>
<li><img src="http://farm4.static.flickr.com/3047/2362739858_c82b4de7c2_s.jpg" /></li>
<li><img src="http://farm4.static.flickr.com/3047/2362739858_c82b4de7c2_s.jpg" /></li>
<li><img src="http://farm4.static.flickr.com/3047/2362739858_c82b4de7c2_s.jpg" /></li>
<li><img src="http://farm4.static.flickr.com/3047/2362739858_c82b4de7c2_s.jpg" /></li>
</ul>
<h4>Finishing Touches: Padding and Borders</h4>
<p>With the basic structure complete, we can add a few finishing touches.</p>
<p>First, we might we to add a little padding to the images.  This would space them out a few pixels from each other so that they don&#8217;t appear so cramped.</p>

<div class="wp_syntax"><div class="code"><pre class="css"><span style="color: #cc00cc;">#image</span> img <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">padding</span>: <span style="color: #933;">4px</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>Adding this line to the css file would change the image album to this.</p>
<ul id="images_three">
<li><img src="http://farm4.static.flickr.com/3047/2362739858_c82b4de7c2_s.jpg" /></li>
<li><img src="http://farm4.static.flickr.com/3047/2362739858_c82b4de7c2_s.jpg" /></li>
<li><img src="http://farm4.static.flickr.com/3047/2362739858_c82b4de7c2_s.jpg" /></li>
<li><img src="http://farm4.static.flickr.com/3047/2362739858_c82b4de7c2_s.jpg" /></li>
<li><img src="http://farm4.static.flickr.com/3047/2362739858_c82b4de7c2_s.jpg" /></li>
<li><img src="http://farm4.static.flickr.com/3047/2362739858_c82b4de7c2_s.jpg" /></li>
</ul>
<p>Finally, a cool effect for images is to add a border around the image.  If you include a padding value for the img tag, the border is placed 2-3 pixels away from the edge of the picture.  It gives a nice framing effect.</p>

<div class="wp_syntax"><div class="code"><pre class="css"><span style="color: #cc00cc;">#image</span> img <span style="color: #66cc66;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">padding</span>: <span style="color: #933;">2px</span>;
  <span style="color: #000000; font-weight: bold;">margin</span>: <span style="color: #933;">2px</span>;
  <span style="color: #000000; font-weight: bold;">border</span>: <span style="color: #993333;">thin</span> <span style="color: #993333;">solid</span> <span style="color: #000000; font-weight: bold;">black</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>This final change would look something like this.</p>
<ul id="images_four">
<li><img src="http://farm4.static.flickr.com/3047/2362739858_c82b4de7c2_s.jpg" /></li>
<li><img src="http://farm4.static.flickr.com/3047/2362739858_c82b4de7c2_s.jpg" /></li>
<li><img src="http://farm4.static.flickr.com/3047/2362739858_c82b4de7c2_s.jpg" /></li>
<li><img src="http://farm4.static.flickr.com/3047/2362739858_c82b4de7c2_s.jpg" /></li>
<li><img src="http://farm4.static.flickr.com/3047/2362739858_c82b4de7c2_s.jpg" /></li>
<li><img src="http://farm4.static.flickr.com/3047/2362739858_c82b4de7c2_s.jpg" /></li>
</ul>
<p>By using an unordered list to mark-up your image collection, you end up with semantically correct and simple to style content.  Much better, in my opinion, than a string of divs.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.earn-web-cash.com/2008/03/25/semantic-markup-image-album/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.earn-web-cash.com/2008/03/25/semantic-markup-image-album/</feedburner:origLink></item>
		<item>
		<title>Moving Wordpress: Individual 301 Redirects with PHP</title>
		<link>http://feedproxy.google.com/~r/WebCash/~3/VpUaAfCNA_w/</link>
		<comments>http://www.earn-web-cash.com/2008/03/23/moving-wordpress-individual-301-redirects-with-php/#comments</comments>
		<pubDate>Mon, 24 Mar 2008 01:51:58 +0000</pubDate>
		<dc:creator>Walkere</dc:creator>
				<category><![CDATA[PHP Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[HTTP]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Redirect]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.earn-web-cash.com/2008/03/23/moving-wordpress-individual-301-redirects-with-php/</guid>
		<description><![CDATA[I recently decided to move part of an old blog to an independent site.
In order to maintain the meager search engine and referral traffic that the old pages had, I planned on using 301 Redirects.  I figured that I would re-create each of the old articles (~10 total articles) on the new site and [...]]]></description>
			<content:encoded><![CDATA[<p>I recently decided to move part of an <a href="http://walkere.frih.net/issues">old blog</a> to an <a href="http://rolling-horde.net">independent site</a>.</p>
<p>In order to maintain the meager search engine and referral traffic that the old pages had, I planned on using 301 Redirects.  I figured that I would re-create each of the old articles (~10 total articles) on the new site and set up an individual 301 Redirect to send users and search engine spiders to the new location.</p>
<p>The problem, however, was that the standard .htaccess rewrite that Wordpress uses was conflicting with the 301 Redirects.  For some reason, they just weren&#8217;t working &#8211; so I turned to a PHP-based solution.<br />
<span id="more-180"></span></p>
<h4>301 Redirects In htaccess</h4>
<p>Normally, you can handle a 301 Redirect with a .htaccess file.  You can do this with a single line in your .htaccess file.</p>
<pre>redirect 301 /path/to/old/file.html http://newdomain.com/file.html</pre>
<p>The first part &#8220;redirect 301&#8243; indicates the <strong>type</strong> of redirect.  This tells the browser (or the search engine spider) that the page has <strong>permanently</strong> moved to the new location.  HTTP has several other options.  The 302 Redirect, for example, indicates that the move is <strong>temporary</strong>.</p>
<p>The next two parts indicate the old path to the file and the URL of the new location.</p>
<p>Normally, that&#8217;s all there is to it.  However, Wordpress adds its own layer to the .htaccess file which makes your pretty URLs work.  The URL that you request is really just a bunch of variables that tell Wordpress what article to pull out of the database and display in the template.</p>
<p>Although you should be able to get the two to work together, I couldn&#8217;t.  The server was ignoring my 301 Redirect and going directly to the other rewrite rules.</p>
<h4>Using PHP to 301 Redirect a Wordpress Page</h4>
<p>The solution?  PHP.</p>
<p>Creating a 301 Redirect in PHP is fairly simple.  I&#8217;d read about it before, and just the other day I came across a <a href="http://www.electrictoolbox.com/php-301-redirect/">brief article about it</a> in one of my regular RSS feeds.</p>
<p>You use the header() function to send custom headers to the user&#8217;s browser.  With these, you can tell the browser that you want to initiate a 301 Redirect.  You can then tell the browser where to go to find the article.</p>

<div class="wp_syntax"><div class="code"><pre class="php"><span style="color: #000066;">header</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;HTTP/1.1 301 Moved Permanently&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #000066;">header</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Location: http://newdomain.com/article.html&quot;</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p>Simply replace the URL with the URL you want to redirect to.</p>
<h4>Making It Work With Wordpress</h4>
<p>If you look in your site&#8217;s directory structure, you may realize that the path to your article doesn&#8217;t really exist.</p>
<p>Let&#8217;s say we want to redirect the article located at <a href="http://www.earn-web-cash.com/2008/03/20/useful-wordpress-plugins/">http://www.earn-web-cash.com/2008/03/20/useful-wordpress-plugins/</a>.  To use PHP, we&#8217;d need to create a PHP file to replace the article that is being redirected, and include the snippet of code above.</p>
<p>The problem is that the directory /2008/03/20/useful-wordpress-plugins/ doesn&#8217;t exist.  Those are parameters sent to the Wordpress script to fetch information out of the database.</p>
<p>To make this type of redirect work, we need to <strong>create</strong> this directory structure.  Start at your root, and create the directory &#8220;2008.&#8221;  Create a directory &#8220;03&#8243; inside that.  Create a directory &#8220;20&#8243; inside that.  Finally, create the directory &#8220;useful-wordpress-plugins&#8221; inside that.</p>
<p>You&#8217;ll notice that there is a trailing slash in the URL.  In a normal directory structure, &#8220;useful-wordpress-plugins&#8221; is a directory, even though it would seem to represent the file where your article resides.  To get the browser to access a PHP file at this location, we place an index.php file in that directory.  Then, accessing the URL will automatically pull up index.php.</p>
<p>In short, create /2008/03/20/useful-wordpress-plugins/index.php, add the snippet of code above, and your redirect should work flawlessly.</p>
<p>This is a good way to move a few articles on a site to a new site.  If you&#8217;re moving an entire site, you&#8217;d definitely want to look into using the .htaccess method, or creating a PHP file that dynamically chooses what page to redirect the user to.  I only had to move 10 articles, so I created ten php files to do the work for me.</p>
<p>There is one caveat to keep in mind.  If your installation of Wordpress uses the URL http://www.earn-web-cash.com/2008 to access the yearly archives, you&#8217;ll run into a problem.  /2008 will now be an actual directory &#8211; so the server will try to serve up the directory.  You&#8217;ll need to change your settings so that the archives are located in something like http://www.earn-web-cash.com/archives/2008.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.earn-web-cash.com/2008/03/23/moving-wordpress-individual-301-redirects-with-php/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.earn-web-cash.com/2008/03/23/moving-wordpress-individual-301-redirects-with-php/</feedburner:origLink></item>
		<item>
		<title>Five Useful, Simple Wordpress Plugins</title>
		<link>http://feedproxy.google.com/~r/WebCash/~3/8LL_oOrIX8E/</link>
		<comments>http://www.earn-web-cash.com/2008/03/20/useful-wordpress-plugins/#comments</comments>
		<pubDate>Fri, 21 Mar 2008 00:30:13 +0000</pubDate>
		<dc:creator>Walkere</dc:creator>
				<category><![CDATA[Sundry Musings]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.earn-web-cash.com/2008/03/20/useful-wordpress-plugins/</guid>
		<description><![CDATA[I&#8217;ve been playing around with developing Wordpress sites for a while now.  I love how quick and easy it is to launch a site and update content.
One of the greatest features is the thousands of plug-ins available for Wordpress.  You can find a plug-in for just about anything you want to do &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been playing around with developing Wordpress sites for a while now.  I love how quick and easy it is to launch a site and update content.</p>
<p>One of the greatest features is the thousands of plug-ins available for Wordpress.  You can find a plug-in for just about anything you want to do &#8211; or if you have some PHP know-how, you can develop your own.</p>
<p>Here are five basic Wordpress plug-ins that I&#8217;d recommend using for <strong>any</strong> project you start.<br />
<span id="more-179"></span></p>
<h4>Akismet &#8211; Spam Protection</h4>
<p>This plug-in comes pre-installed with Wordpress &#8211; and there&#8217;s absolutely no reason you shouldn&#8217;t use it.  <a href="http://akismet.com/>Akismet</a> automatically captures most spam comments and places them in a separate &#8220;spam&#8221; category.  You don&#8217;t get bombarded with &#8220;Moderate Now&#8221; e-mails, and you can trust that your comment logs will be pretty clean.</p>
<p>Since I&#8217;ve been using it on this site (about two months), Akismet has caught a little over 900 comments.  Once a week or so, I scan through the comment log and rescue any false positives.  Occasionally a legitimate comment will get swept up, but all you need to do is select it, hit &#8220;De-spam Comment,&#8221; and it will be saved.</p>
<h4>All In One SEO Plug-In</h4>
<p>The <a href="http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/">All In One SEO Plug-In</a> is just what it sounds like.  It adds some extra functionality to tweak the SEO of each of your posts and pages.</p>
<p>For example, All In One will automatically generate a description meta tag based on your excerpt and it will automatically generate keywords based on your tags.  You can also use this to modify the title element of each page.  I&#8217;d say it&#8217;s a must have for optimizing your website.</p>
<h4>Exec-PHP</h4>
<p>Early on, I was looking for a way to execute PHP code inside a post.  Wordpress doesn&#8217;t have built-in support for this, so you need to find a plug in to do it.</p>
<p>There are dozens of plug-ins that attempted to implement this feature.  <a href="http://bluesome.net/post/2005/08/18/50/">Exec PHP</a> is hands down the best that I&#8217;ve found.  You simply add regular PHP tags to your post and the PHP code will be executed properly.  I&#8217;ve never run into any bugs while using the plug-in, unlike some other plug-ins I&#8217;ve tested.</p>
<h4>Per Post CSS and JS</h4>
<p><a href="http://www.flog.co.nz/">Per Post CSS and JS</a> allows you to attach individual stylesheets or javascript files to your posts or pages.  This is great for changing the look of a specific page without creating an entirely new template.  By attaching these files to individual posts, you cut down a lot on redundancy.</p>
<p>For example, let&#8217;s say you wrote a javascript file that you use in 10% of your posts.  Why should it be attached to the other 90% of your posts?</p>
<p>I&#8217;ve also found it <strong>very</strong> useful for creating HTML/CSS/JS tutorials.  I can place my sample code in external .css and .js files and have it attached properly to the page.  This way I don&#8217;t have to write in-line styles to demonstrate functionality.</p>
<h4>WP Unformatted</h4>
<p>This simple plug-in removes all of the auto-formatting that Wordpress adds to your posts.  With <a href="http://alexking.org/projects/wordpress">WP Unformatted</a>, you can add a custom field to your post to tell the plug-in to strip out all of that formatting.</p>
<p>For example, Wordpress likes to wrap text in <code>&lt;p&gt;</code> tags.  Sometimes &#8211; like with forms &#8211; this is entirely undesirable.  It can mess up your carefully formatted (and syntactically correct) HTML.</p>
<p>By using WP Unformatted, you can add sophisticated mark up to your post content without worrying that Wordpress will screw it up with random <code>&lt;p&gt;</code> and <code>&lt;br /&gt;</code> tags.</p>
<h4>And Many More&#8230;</h4>
<p>There are, of course, dozens of other useful plug-ins.  I&#8217;ve used plenty of other plug-ins that I liked.  However, these are the ones that I feel appeal to the widest audience.</p>
<p>No matter what you&#8217;re doing, you&#8217;ll probably find a use for spam filtering, individualized stylesheets, SEO, PHP, and clean formatting.  I would never start another project without these plug-ins.</p>
<p>What else do you find useful?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.earn-web-cash.com/2008/03/20/useful-wordpress-plugins/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.earn-web-cash.com/2008/03/20/useful-wordpress-plugins/</feedburner:origLink></item>
	</channel>
</rss>
