<?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>ClearChain &#187; google</title>
	<atom:link href="http://www.clearchain.com/blog/tags/google/feed" rel="self" type="application/rss+xml" />
	<link>http://www.clearchain.com/blog</link>
	<description>-= Daily Happenings =-</description>
	<lastBuildDate>Sun, 25 Jul 2010 15:47:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Using Google Adsense to make money</title>
		<link>http://www.clearchain.com/blog/posts/using-google-adsense-to-make-money</link>
		<comments>http://www.clearchain.com/blog/posts/using-google-adsense-to-make-money#comments</comments>
		<pubDate>Sun, 24 May 2009 15:04:46 +0000</pubDate>
		<dc:creator>Benjamin Close</dc:creator>
				<category><![CDATA[Money]]></category>
		<category><![CDATA[adsense]]></category>
		<category><![CDATA[advertising]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://www.clearchain.com/blog/?p=395</guid>
		<description><![CDATA[It&#8217;s been a while since my last blog post on making money online but it doesn&#8217;t mean I&#8217;ve not been thinking about how to do it. Past blog articles have indicated some ways to make money online but never really talked about how effective the various methods are. Well this blog article talks about one [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" title="Adsense Image" src="http://blog.taragana.com/wp-content/uploads/2009/03/google-adsense-logo-350_0.gif" alt="" width="149" height="61" /></p>
<p>It&#8217;s been a while since my last blog post on making money online but it doesn&#8217;t mean I&#8217;ve not been thinking about how to do it.<a href="http://www.clearchain.com/blog/posts/ways-to-make-money-online"> Past blog articles </a>have indicated some ways to make money online but never really talked about how effective the various methods are. Well this blog article talks about one method that apparently most people who try and make money online use initially. That is <a href="http://www.google.com/adsense/">Google Adsense</a>.</p>
<p>Why is it the first method people use? Word of mouth seems to be the main reason &#8211; after all that&#8217;s the reason I decided to try it. So what is Google adsense? It&#8217;s simply a means provided by Google to allow them to advertise on your website. If you look at this website you&#8217;ll see a number of Adverts. At the time of writing most of these are provided by Google Adsense.</p>
<p>Adsense provides a nice friendly interface to being able to setup and configure how and what type of advert you can see on a website. It allows you to chose the size colours and a few other things about the adverts. Once you&#8217;ve selected what you want you get provided with some special html code that must be put on any web page you want adverts to display on. Below is a sample of the code provided by Google:</p>
<pre id="line86">&lt;<span class="start-tag">script</span><span class="attribute-name"> type</span>=<span class="attribute-value">"text/javascript"</span>&gt;&lt;!--
google_ad_client = "pub-8063328086245449";
google_ad_slot = "2786071329";
google_ad_width = 728;
google_ad_height = 90;
//--&gt;</pre>
<p>The result of this code is something like the below image (which is the top advert on <a href="http://www.clearchain.com/blog/">this</a> website)</p>
<p style="text-align: center;"><a href="http://www.clearchain.com/blog/images//2009/05/snapshot.jpg"><img class="size-thumbnail wp-image-396 aligncenter" title="Advert Snapshot" src="http://www.clearchain.com/blog/images//2009/05/snapshot-150x150.jpg" alt="Advert Snapshot" width="150" height="150" /></a></p>
<p style="text-align: left;">Once adverts start appearing on your website, you slowly start to earn money. What adverts get shown I hear you asking. Well Google scans your website and picks adverts which are relevant to your site&#8217;s content. They even target the ads on a per-page setting. Which is really quite good as adverts relevant to a page are more likely to get people to click on them.</p>
<p style="text-align: left;">You see Google pays for two things:</p>
<ul>
<li>PPC &#8211; Pay per Click</li>
<li>PPV &#8211; Pay per view / PPI Pay per impression</li>
</ul>
<p>Pay per view or pay per impression means you get paid to have the advert simply shown on the website. Pay Per Click means you get paid if someone clicks on the advert. Pay per click is by far the more profitable of the two. However depending on your website audience, pay per view is more likely than pay per click.</p>
<p>At this point you might be thinking &#8211; wow I get about 300 visitors a day to my website, if they each view a page that&#8217;s say 300cents. If only that was the case! The reality is PPC and PPV don&#8217;t pay much. You generally only get fractions of a cent for each. Clearchain for instance has been runing these adverts almost since it was setup. The results &#8211; well as you learn more about how things work, you setup more and you also make more web pages hence earn more. Below you can see a snapshot of the income from <a href="http://www.clearchain.com/blog/">Clearchain.com</a> using Adsense.</p>
<table class="paymentreport" border="1" cellspacing="0" cellpadding="5">
<tbody>
<tr class="datarow">
<td style="text-align: center;" rowspan="3" valign="top">December 2008</td>
</tr>
<tr class="datarow">
<td>Dec 31</td>
<td>Earnings (Dec 1 &#8211; Dec 31) &#8211; details</td>
<td>$6.20</td>
<td></td>
<td></td>
</tr>
<tr class="columntitle">
<td colspan="4">Balance at end of  December</td>
<td></td>
</tr>
<tr class="datarow">
<td rowspan="3" valign="top">January 2009</td>
</tr>
<tr class="datarow">
<td>Jan 31</td>
<td>Earnings (Jan 1 &#8211; Jan 31) &#8211; details</td>
<td>$5.72</td>
<td></td>
<td></td>
</tr>
<tr class="columntitle">
<td colspan="4">Balance at end of  January</td>
<td></td>
</tr>
<tr class="datarow">
<td rowspan="3" valign="top">February 2009</td>
</tr>
<tr class="datarow">
<td>Feb 28</td>
<td>Earnings (Feb 1 &#8211; Feb 28) &#8211; details</td>
<td>$3.59</td>
<td></td>
<td></td>
</tr>
<tr class="columntitle">
<td colspan="4">Balance at end of  February</td>
<td></td>
</tr>
<tr class="datarow">
<td rowspan="3" valign="top">March 2009</td>
</tr>
<tr class="datarow">
<td>Mar 31</td>
<td>Earnings (Mar 1 &#8211; Mar 31) &#8211; details</td>
<td>$6.87</td>
<td></td>
<td></td>
</tr>
<tr class="columntitle">
<td colspan="4">Balance at end of  March</td>
<td></td>
</tr>
<tr class="datarow">
<td rowspan="3" valign="top">April 2009</td>
</tr>
<tr class="datarow">
<td>Apr 30</td>
<td>Earnings (Apr 1 &#8211; Apr 30) &#8211; details</td>
<td>$2.59</td>
<td></td>
<td></td>
</tr>
<tr class="columntitle">
<td colspan="4">Balance at end of  April</td>
<td></td>
</tr>
</tbody>
</table>
<p>As you can see the income certainly isn&#8217;t staggering but small amounts all add up. The April figure is based on 3302 impressions and 13 clicks. Clearchain also doesn&#8217;t get a lot of traffic hence if you had a website which got lots of traffic then you could potentially get quit a nice income.</p>
<p>So Adsense is certainly one way to make money on the web. If you have a website with lots of content, and lots of visitors &#8211; try Adsense as it does work, just not as fast as you&#8217;ld expect. It won&#8217;t make you a millionaire over night, well at least not in my experience. Though if you checkout <a href="http://www.bizorigin.com/2007/google-adsense-biggest-moneymakers">some blogs</a> there is certainly some big money earners in <a href="http://www.google.com/adsense/">Adsense.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.clearchain.com/blog/posts/using-google-adsense-to-make-money/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BGmailFS</title>
		<link>http://www.clearchain.com/blog/posts/bgmailfs</link>
		<comments>http://www.clearchain.com/blog/posts/bgmailfs#comments</comments>
		<pubDate>Thu, 13 Nov 2008 13:35:27 +0000</pubDate>
		<dc:creator>Benjamin Close</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[filesystems]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[storage]]></category>

		<guid isPermaLink="false">http://www.clearchain.com/blog/?p=102</guid>
		<description><![CDATA[This page documents a concept that was discussed between a number of members of the Wearable Computer Lab. As such we&#8217;ve not investigated whether the concept is in violation of the gmail usage terms and conditions. Hence please consider below nothing but an idea for now. If you have questions about this or would like [...]]]></description>
			<content:encoded><![CDATA[<p>This page documents a concept that was discussed between a number of members of the <a class="external text" title="http://wearables.unisa.edu.au" rel="nofollow" href="http://wearables.unisa.edu.au/">Wearable Computer Lab</a>. As such we&#8217;ve not investigated whether the concept is in violation of the gmail usage terms and conditions. Hence please consider below nothing but an idea for now. If you have questions about this or would like to implement it, please contact <a class="new broken_link" title="Benjamin" href="http://www.clearchain.com/blog/people/benjamin-close">Me</a>.</p>
<p><span id="more-102"></span></p>
<p><span style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><br />
</span></p>
<h1><span class="mw-headline">Background </span></h1>
<p>With the growing amount of personal data every person is starting to accumulate, one of the biggest problems lies in how to back the data up. The introduction of cheap broadband has made network bandwidth relatively quick, and also affordable. However, despite this, backups require disk space in alternative locations. With Google <sup>[1]</sup> now offering 3GB gmail<sup>[2]</sup> email accounts, one possibility is to backup your data in your email.</p>
<p>However emailing files to yourself in not only cumberson but also very error prone. Also with a maximum size limit <sup>[3]</sup> smaller than a number of files you may want to backup, things become even more complex. As a user you would have to send multiple emails, all containing sections of a file</p>
<h1><span class="mw-headline">Introducing the Backup Gmail FS </span></h1>
<p>Early on after the creation of gmail based filesystem<sup>[4]</sup> using a fuse <sup>[5]</sup>, I got to thinking gmail could be used to backup data via a file system.</p>
<p>The problem with the existing GMail FS is doesn&#8217;t deal with redundancy, has issues with large files, puts all the data content in one place and is limited to the size of 1 gmail account.</p>
<p><em>Backup Gmail FS</em> (BGMailFS for short) is the next step up. The aim of it is to feature:</p>
<ul>
<li> data redundancy</li>
<li> data security</li>
<li> self sizing filesystem</li>
<li> no limit on file size</li>
</ul>
<p>Each of these are detailed below.</p>
<h2><span class="mw-headline">Data Redundancy </span></h2>
<p>Considering this is aimed at storing backups, Data Redundancy is of prime consideration. As such taking some sort of approach where CRC&#8217;s of data is stored is important. Ideally spreading the data across multiple accounts in some time of mirror, or striped set.</p>
<h2><span class="mw-headline">Data Security </span></h2>
<p>The one problem to backup up to Google, is how much do you trust them? Whilst I know there motto is: <em>Don&#8217;t Be Evil</em> <sup>[6]</sup> I can&#8217;t help thinking that a giant company might take a sneak peak at my data. Since the data is backups, it could very well be IP sensitive.</p>
<p>Hence to combat this, using a method like the one describe in the <strong>Information Dispersal Algorithm</strong> (IDA)  <sup>[7]</sup> <sup>[8]</sup> proposed by Micheal Rabin in 1989, would enable us to distribute the data and also keep it secure. Though it does rely on the fact that various bits of data stored in different accounts are never pieced together (though encryption could help out there).</p>
<h2><span class="mw-headline">Self Sizing Filesystem </span></h2>
<p>One thing that would be great is to have the filesystem automatically grow when it&#8217;s size reaches a certain point. This is quite possible using gmail accounts. All you have to do is register another account and add it to the file system.</p>
<h2><span class="mw-headline">No Limit on File Size </span></h2>
<p>The one thing you don&#8217;t want is to only be able to have 20M max files in the file system. Hence the implementation must accommodate files of any size.</p>
<h1><span class="mw-headline">Possible Implementation </span></h1>
<p>With the idea embedded, it now comes down to how would you go about implementing something like this.</p>
<p>With the advent of ZFS<sup>[9]</sup> under FreeBSD things suddenly became much more possible.</p>
<h2><span class="mw-headline">ZFS, FreeBSD &amp; Geom </span></h2>
<p>ZFS is a great filesystem / logical volume manager. It supports resizing of the file system on the fly, software based parity &amp; double parity, read checksums, caching and compression. This makes it perfect for use as the frontend to the BGmailFS.</p>
<p>FreeBSD has had the ZFS fs ported to it by pjd. It&#8217;ll be an experimental feature in FreeBSD 7.0 and hopefully a fully fledged FS in 7.1. ZFS on FreeBSD to make use of the Geom storage system.</p>
<p>Geom is abstraction of the block devices available to the operating system. It consists of consumers and producers. A consumer makes use of a geom device. Ie a filesystem consumes a geom device. A producer provides the infrastructure for a consumer to write blocks.</p>
<p>Now under FreeBSD a zpool (the lvm size of zfs) is both a geom producer and a geom consumer. It consumes disks. It produces a storage pool.</p>
<h2><span class="mw-headline">Putting Things together </span></h2>
<p>So the question becomes how can we make use of zfs to provide the file system front end and somehow provide the backend which talks to gmail. The diagram below gives some insight to how this could fit together.</p>
<p><a href="http://www.clearchain.com/blog/images//2008/11/bgmailfs.jpg"><img class="size-medium wp-image-393 alignnone" title="bgmailfs" src="http://www.clearchain.com/blog/images//2008/11/bgmailfs-300x140.jpg" alt="bgmailfs" width="300" height="140" /></a><br />
The key behind the design is the the use of geom to map a gmail account to a geom producer. This can then be used with a ZFS ZPool to let zfs do most of the work.</p>
<p>The concept is simple. Someone implements</p>
<ul>
<li> The BGFSDeamon</li>
<li> The BGFSDriver</li>
<li> The BGFSCommand</li>
</ul>
<p>These all work together to end up giving the user a redunant file system.</p>
<h3><span class="mw-headline">BGFSDeamon </span></h3>
<p>This Daemon is responsible for mapping low level disk requests in to the relevant gmail account commands. For instance, when a write is done to a &#8216;disk&#8217; the relevant block is considered an email in a gmail account. It can be written either via SMTP or now gmail supports imap <sup>[10]</sup>, via imap. For security of data. This block may be spread between multiple gmail account using the IDA algorithm. Like wise a read obtains all the relevant pieces of the data block from the known accounts and presents the disk block back to the BGFSDriver.</p>
<p>Communication between the driver and the Daemon happen vio ioctls, preferably creating a mmaped region that both can read for efficiency.</p>
<h3><span class="mw-headline">BGFS Driver </span></h3>
<p>The driver is actually fairly simple. It works similar to how the fuse driver works but at a block level rather than a file system level. Ie every block request the driver gets to read/write a block, it passes via the device file back to the BGmailDeamon. The driver is really just a translation layer!</p>
<h3><span class="mw-headline">BGFSCommand </span></h3>
<p>This BGFSCommand is a command line tool that can be used for adding more space (ie more accounts), checking network communications or retiring accounts. It talks to the BGFSDeamon which actually does the work. Consider it like what <em>apachectl</em> is to <em>apache</em>.</p>
<h1><span class="mw-headline">After thoughts / Conclusion </span></h1>
<p>It&#8217;s ironic that after writing this page, there is many other possibilities that exist for BGmailFS. With most of the work done in the daemon, it&#8217;s entirely plausable that this same system could work with hotmail, yahoo or for that matter a separate daemon that listens on another machine somewhere. This may make even more sense as many people now run servers 24&#215;7 behind their broadband connection. Many of them have the same problem of how to backup their data securely.</p>
<p>Perhaps they could run one daemon, one kernel module and then it just works!</p>
<h1><span class="mw-headline">References </span></h1>
<ol class="references">
<li id="_note-0">↑ <a class="external free" title="http://google.com" rel="nofollow" href="http://google.com/">http://google.com</a></li>
<li id="_note-1">↑ <a class="external free" title="http://www.gmail.com" rel="nofollow" href="http://www.gmail.com/">http://www.gmail.com</a></li>
<li id="_note-2">↑ http://mail.google.com/support/bin/answer.py?answer=6589</li>
<li id="_note-3">↑ <a class="external free" title="http://richard.jones.name/google-hacks/gmail-filesystem/gmail-filesystem.html" rel="nofollow" href="http://richard.jones.name/google-hacks/gmail-filesystem/gmail-filesystem.html">http://richard.jones.name/google-hacks/gmail-filesystem/gmail-filesystem.html</a></li>
<li id="_note-4">↑ <a class="external free" title="http://fuse.sourceforge.net/" rel="nofollow" href="http://fuse.sourceforge.net/">http://fuse.sourceforge.net/</a></li>
<li id="_note-5">↑ <a class="external free" title="http://en.wikipedia.org/wiki/Don't_Be_Evil" rel="nofollow" href="http://en.wikipedia.org/wiki/Don't Be Evil">http://en.wikipedia.org/wiki/Don&#8217;t_Be_Evil</a></li>
<li id="_note-6">↑ <a class="external free" title="http://www.answers.com/topic/information-dispersal-algorithm" rel="nofollow" href="http://www.answers.com/topic/information-dispersal-algorithm">http://www.answers.com/topic/information-dispersal-algorithm</a></li>
<li id="_note-7">↑ <a class="external free" title="http://bryanmills.net/archives/2007/09/information-dispersal-algorithms/" rel="nofollow" href="http://bryanmills.net/archives/2007/09/information-dispersal-algorithms/">http://bryanmills.net/archives/2007/09/information-dispersal-algorithms/</a></li>
<li id="_note-8">↑ <a class="external free" title="http://www.opensolaris.org/os/community/zfs/" rel="nofollow" href="http://www.opensolaris.org/os/community/zfs/">http://www.opensolaris.org/os/community/zfs/</a></li>
<li id="_note-9">↑ <a class="external free" title="http://mail.google.com/support/bin/topic.py?topic=12760" rel="nofollow" href="http://mail.google.com/support/bin/answer.py?hl=en&#038;answer=75725">http://mail.google.com/support/bin/topic.py?topic=12760</a></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.clearchain.com/blog/posts/bgmailfs/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
