<?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>Ashley Ford - Tutorials :: jQuery :: PHP :: CSS :: HTML5 :: Papermashup.com &#187; Social Networks</title>
	<atom:link href="http://papermashup.com/category/social-networks/feed/" rel="self" type="application/rss+xml" />
	<link>http://papermashup.com</link>
	<description>Ashley Ford - Tutorials :: jQuery :: PHP :: CSS :: HTML5 :: Papermashup.com</description>
	<lastBuildDate>Fri, 03 Feb 2012 11:28:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Build a MySpaceID Application</title>
		<link>http://papermashup.com/build-a-myspaceid-application/</link>
		<comments>http://papermashup.com/build-a-myspaceid-application/#comments</comments>
		<pubDate>Tue, 10 Aug 2010 11:43:38 +0000</pubDate>
		<dc:creator>Ashley</dc:creator>
				<category><![CDATA[API's]]></category>
		<category><![CDATA[Downloads]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[Front Page]]></category>
		<category><![CDATA[headline]]></category>
		<category><![CDATA[Learn]]></category>
		<category><![CDATA[MySpace]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Social Media]]></category>
		<category><![CDATA[Social Networks]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[APIs]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://papermashup.com/?p=2004</guid>
		<description><![CDATA[MySpaceID allows MySpace Users to easily come into your site and get going by bringing their identity with them. By allowing Users to link their MySpace account with your site, a Developer can enable social functionality. This guide is designed &#8230; <br/> <a href="http://papermashup.com/build-a-myspaceid-application/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>MySpaceID allows MySpace Users to easily come into your site and get going by bringing their identity with them. By allowing Users to link their MySpace account with your site, a Developer can enable social functionality.</p>
<p>This guide is designed to give you a thorough understanding of the MySpace API as well as demonstrate with step by step instructions on how to setup a MySpaceID powered site in a short amount of time. You can check out the <a href="http://papermashup.com/demos/myspaceapi/samples/myspaceid-oauth/">demo</a> and <a href="http://papermashup.com/demos/myspaceapi/myspaceapi.zip">download</a> the files needed in this tutorial.</p>
<p><img src="http://papermashup.com/wp-content/uploads/2010/08/app.png" width="583" height="610"/></p>
<h3>Setup a developer account on MySpace</h3>
<p>First you’ll need to head over to MySpace.com and signup for a <a href="https://signups.myspace.com/index.cfm?fuseaction=signup">standard user account here</a>:</p>
<p>If you already have a MySpace account login at http://myspace.com. If you don’t have a developer account you’ll need to <a href="http://developer.myspace.com/Modules/Apps/Pages/ApplyDevSandbox.aspx">create one here</a>:</p>
<h3>Setup a new MySpaceID application</h3>
<p>Once you have your developer account and have confirmed everything you can go ahead and click ‘<a href="http://developer.myspace.com/Modules/Apps/Pages/CreateAppAccount.aspx">Build</a>’.</p>
<p>you’re now presented with two options. MySpace Apps or MySpaceID. We’re going to be creating an application that doesn’t sit on MySpace so you’ll need to select ‘Create MySpaceID App’</p>
<p>Once you have completed the first step and given your application a title, accepted the terms and conditions and filled In the CAPTCHA you can click ‘Next’</p>
<p>Step Two may seem a little daunting but don’t be worried there are just three things we need to do on this page. Firstly give you’re application a description (you can come back and edit this later along with the title) the next most important part to edit on this page is the ‘External Site Settings’</p>
<p>The external URL should look like this for the purposes of our demonstration:</p>
<p><strong>http://yourdomain.com/myspaceapi/samples/myspaceid-oauth/</strong></p>
<p>The External Callback Validation box should just contain your site’s domain for example like this:</p>
<p><strong>http://yourdomain.com</strong></p>
<p>We’re not using OpenID in this demonstration so just leave that un-ticked.</p>
<p><strong>Click ‘Save’.</strong></p>
<blockquote><p>TIP: We’ll need the OAuth API Key and Secret so make a note of them. The location of where they can be found is a little further up the page under the header ‘OAuth Settings’. </p>
<p>TIP: If at any stage you need to get back to your OAuth Key and Secret just click ‘My Apps’ then ‘Edit App details’</p></blockquote>
<h3>Configuring the application</h3>
<p>Lets just have a look at the file structure of our application so we can understand from the outset exactly where each component of the app is located and what to look out for when making any changes.</p>
<p><img src="http://papermashup.com/wp-content/uploads/2010/08/structure.png" width="583" height="400"/></p>
<ol>
<li>This is where your MySpace API Key and Secret need to go.</li>
<li>Myspaceid-oauth Folder. This contains all the frontend files for our application. The index.php file is the main application page that we visit initially. If the user isn’t logged in to the app then they are directed to login.php</li>
<li>Views folder. This is where all the HTML layout files are kept this of you familiar with the MVC or Model View Controller principal will understand this better as the structure is loosely based on this</li>
<li>Source Folder. This folder contains the MySpace API files in order to connect to MySpace and make requests for data. The myspace.php file is the file that contains the functions required to get the specific data requested. </li>
</ol>
<p>There are two files you need to edit in order to get the application up and running. </p>
<p>The first file is <strong>config.MySpace.php</strong> which can be seen above in the config folder. You just need to add your API key and Secret as shown below:</p>
<p><img src="http://papermashup.com/wp-content/uploads/2010/08/config.jpg" width="583" height="68"/></p>
<p>You’ll then need to open up the functions.php file and edit the URL in the base_url() function. This is the main function which returns your main application URL its vital that this URL matches the URL that you entered into MySpace when you setup the application.</p>
<p><img src="http://papermashup.com/wp-content/uploads/2010/08/function.jpg" width="583" height="68"/></p>
<h3>Run the application</h3>
<p>If you have followed the tutorial correctly you should now see a login screen when you visit your application URL:</p>
<p><strong>http://yourdomain.com/myspaceapi/samples/myspaceid-oauth/</strong></p>
<p><img src="http://papermashup.com/wp-content/uploads/2010/08/demo.jpg" width="583" height="200"/></p>
<p>Once you click Login with MySpaceID you are taken to the MySpace login page which once you connect will re-direct you back to the application.<br />
 After login you are re-directed back to index.php which now should be displaying a selection of your profile information as shown at the top of the page. </p>
<h3>Looking at the application in a little more detail</h3>
<p>To get a full understanding of what’s going on lets have a look at the index.php file  which is located directly inside the myspaceid-oauth folder.<br />
The first thing you should notice is there’s not a lot of code in this file compared to the sample OAuth code that comes with the default PHP SDK from MySpace. </p>
<p><img src="http://papermashup.com/wp-content/uploads/2010/08/code.jpg" width="583" height="541"/></p>
<p>Starting at the top. The three required files are used to setup the application. The first required file contains the API key and Secret, the second file is the main MySpace API file that is used to get data. And finally we load the functions.php file which contains a few functions that I’ve created in order to abstract code from this file to make it easier to understand and logical when it comes to making API requests.</p>
<p>From Lines 11-35 above we have the main block of code that is required to determine if a request has been made to the MySpace API. Within each if/else statement we’re calling the specified functions. For example. If a user initially visits index.php they wont be logged into the application. Because of this they will be re-directed to login.php which is the not logged in landing page. On login.php there is a link to login to MySpace. When the user clicks this they actually visit index.php?f=start. This sets off the authentication process re-directing the user to MySpace to login, once they login MySpace re-directs them back to index.php?f=callback where the myspace_callback function is called.</p>
<blockquote><p>TIP: all the functions used in this demo can be found In the functions.php file.</p></blockquote>
<p>At the bottom of the index.php file we have three included files. </p>
<ul>
<li>Header.php</li>
<li>Index-content.php</li>
<li>Footer.php</li>
</ul>
<p>The header and footer files container default code that can be used throughout the app. So in the header.php file we have the document Head and opening Body tag along with an opening container div.</p>
<p>In the footer.php file there’s a footer div and the closing container div from the header.php file.</p>
<p><a href="http://papermashup.com/demos/myspaceapi/samples/myspaceid-oauth/"><img src="http://papermashup.com/wp-content/uploads/2009/01/demo.png" alt="" title="demo" class="alignnone size-full wp-image-23" /></a><a href="http://papermashup.com/demos/myspaceapi/myspaceapi.zip"><img src="http://papermashup.com/wp-content/uploads/2009/01/download.png" alt="" title="download" class="alignnone size-full wp-image-24" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://papermashup.com/build-a-myspaceid-application/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>easypoll a side project</title>
		<link>http://papermashup.com/easypoll-a-side-project/</link>
		<comments>http://papermashup.com/easypoll-a-side-project/#comments</comments>
		<pubDate>Wed, 26 May 2010 16:45:51 +0000</pubDate>
		<dc:creator>Ashley</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Social Media]]></category>
		<category><![CDATA[Social Networks]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://papermashup.com/?p=1881</guid>
		<description><![CDATA[I was sat in the sun at the weekend and sporadically decided to do a little project like wedeliver you can read about the adventure I had building the 24hr project here. This project on the other hand probably took &#8230; <br/> <a href="http://papermashup.com/easypoll-a-side-project/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>I was sat in the sun at the weekend and sporadically decided to do a little project like <a href="http://wedeliver.papermashup.com">wedeliver</a> you can read about the adventure I had building the 24hr project <a href="http://papermashup.com/we-deliver-a-24hr-project/">here</a>.  This project on the other hand probably took about 24hrs to complete but I built it over a few days. It&#8217;s basically a site where you can create a simple 2 answer poll, you then take the link to the poll and share it on your networks allowing other users to participate <a href="http://easypoll.papermashup.com">check it out here</a>. I wanted to make the whole experience as simple as possible with a basic interface so users can quickly create polls to share with friends. Naturally there are parts of the site i will improve in time small pieces of functionality. Each time a user creates a new poll it sends it to a custom twitter page here @easypoll which shows all the latest polls created.</p>
<p>Each poll has its own page, for example here&#8217;s a poll i created: <a href="http://easypoll.papermashup.com/poll/1">Visit Poll</a> the bar graph is generated using basic CSS and PHP to determine the percentages for the number of votes. <a href="http://papermashup.com/using-php-and-css-to-make-a-simple-graph/">Here&#8217;s a tutorial</a> I wrote a while back on how to implement a similar graph</p>
<h3>The Design</h3>
<p>Much like <a href="http://wedeliver.papermashup.com">wedeliver</a> I wanted to create an appealing interface that&#8217;s easy on the eye, simple to navigate as well as containing all the functionality needed.</p>
<p><img class="alignnone size-full wp-image-1886" title="easy1" src="http://papermashup.com/wp-content/uploads/2010/05/easy1.jpg" alt="" width="583" height="300" /></p>
<p><img class="alignnone size-full wp-image-1890" title="easy4" src="http://papermashup.com/wp-content/uploads/2010/05/easy4.jpg" alt="" width="583" height="300" /></p>
<p><img class="alignnone size-full wp-image-1888" title="easy2" src="http://papermashup.com/wp-content/uploads/2010/05/easy2.jpg" alt="" width="583" height="300" /></p>
<h3>Visit the site</h3>
<p>You can <a href="http://easypoll.papermashup.com">visit the site here</a> and create a poll yourself. As I said in my post about <a href="http://wedeliver.papermashup.com">wedeliver</a> as a designer and developer it&#8217;s really important to do personal projects as well as freelance work you learn so much more building small applications in your own time. </p>
]]></content:encoded>
			<wfw:commentRss>http://papermashup.com/easypoll-a-side-project/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>20 Complete scripts to download</title>
		<link>http://papermashup.com/20-complete-scripts-to-download/</link>
		<comments>http://papermashup.com/20-complete-scripts-to-download/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 22:01:20 +0000</pubDate>
		<dc:creator>Ashley</dc:creator>
				<category><![CDATA[Analytics]]></category>
		<category><![CDATA[API's]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Downloads]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[Gallery]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[Learn]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[popular]]></category>
		<category><![CDATA[Social Networks]]></category>
		<category><![CDATA[Trends]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Web Tools]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Javascript Vimeo Tutorials API Downloads]]></category>

		<guid isPermaLink="false">http://papermashup.com/?p=1812</guid>
		<description><![CDATA[I&#8217;ve put together a nice little collection of scripts over the past year or so, and have decided as it&#8217;s approaching summer in the UK (sorry winter in Australia!) to do a download bundle of 20 assorted scripts where you &#8230; <br/> <a href="http://papermashup.com/20-complete-scripts-to-download/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve put together a nice little collection of scripts over the past year or so, and have decided as it&#8217;s approaching summer in the UK (sorry winter in Australia!) to do a download bundle of 20 assorted scripts where you can get the lot in one click for free! Although <a class="thickbox" title="Download And Donate" onclick="return false;" href="http://papermashup.com/wp-content/themes/arthemia/donate.php?download=http://papermashup.com/demos/bundle/bundle.zip&amp;keepThis=true&amp;TB_iframe=true&amp;height=220&amp;width=620">donations</a> are also much appreciated. Check out the list below for all the details of the package. This collection is based on a variety of different techniques, from CSS, PHP jQuery to MySQL.</p>
<p><img class="alignnone size-full wp-image-1834" title="boxes" src="http://papermashup.com/wp-content/uploads/2010/04/boxes.png" alt="" width="583" height="180" /></p>
<h3>What&#8217;s in the bundle?</h3>
<ol>
<li>
<h4>jQuery Drag &amp; Drop</h4>
<p>Using jQuery PHP and MySQL a complete drag and drop script that updates the database. <a href="http://papermashup.com/demos/jquery-drag-drop/">demo</a></li>
<li>
<h4>jQuery Delete</h4>
<p>Delete items using PHP jQuery using an AJAX request <a href="http://papermashup.com/demos/jquery-delete/">demo</a></li>
<li>
<h4>PHP jQuery and MySQL Autosuggest</h4>
<p>A powerful autosuggest script that searches a MySQL database to return you result <a href="http://papermashup.com/demos/autosuggest/">demo</a></li>
<li>
<h4>jQuery &amp; PHP username checker</h4>
<p>Checks the database to see if a chosen username exists in the database and returns true or false <a href="http://papermashup.com/demos/check-username/">demo</a></li>
<li>
<h4>CSS3 Buttons</h4>
<p>Styling elegant buttons using CSS3 <a href="http://papermashup.com/demos/css-buttons/">demo</a></li>
<li>
<h4>Feedburner Stats</h4>
<p>Using PHP and CURL to get your feedburner subscriber count <a href="http://papermashup.com/demos/feedburner-stats/">demo</a></li>
<li>
<h4>jQuery &amp; PHP username checker</h4>
<p>Checks the database to see if a chosen username exists in the database and returns true or false <a href="http://papermashup.com/demos/check-username/">demo</a></li>
<li>
<h4>jQuery image Zoom</h4>
<p>create a simple gallery with a hover image effect <a href="http://papermashup.com/demos/image-jquery/">demo</a></li>
<li>
<h4>jQuery PHP &amp; MySQL inline editing</h4>
<p>Edit page content directly in the browser inline using jQuery AJAX requests <a href="http://papermashup.com/demos/inline-editing/">demo</a></li>
<li>
<h4>jQuery Gallery</h4>
<p>Animated jQuery gallery with title and description <a href="http://papermashup.com/demos/jquery-gallery/index-title.html">demo</a></li>
<li>
<h4>Highlighting form inputs</h4>
<p>Highlight any input field using JavaScript <a href="http://papermashup.com/demos/jquery-highlighting-form-inputs/">demo</a></li>
<li>
<h4>jQuery JSON &amp; PHP</h4>
<p>Create a simple product gallery using JSONP PHP and MySQL <a href="http://papermashup.com/demos/jquery-json-php/">demo</a></li>
<li>
<h4>jQuery Tabs</h4>
<p>Simple tabs rendered using jQuery <a href="http://papermashup.com/demos/jquery-tabs/">demo</a></li>
<li>
<h4>jQuery XML</h4>
<p>build a product gallery parsing XML using jQuery <a href="http://papermashup.com/demos/jquery-xml/">demo</a></li>
<li>
<h4>jTruncate</h4>
<p>Using the jTruncate plugin to truncate text with a &#8216;more&#8217; link <a href="http://papermashup.com/demos/jtruncate/">demo</a></li>
<li>
<h4>PHP Page scrape</h4>
<p>Scrape page contents using PHP and CURL <a href="http://papermashup.com/demos/page-scrape/">demo</a></li>
<li>
<h4>AJAX Check</h4>
<p>Check to see if a normal GET or POST request was made or if an AJAX request was made <a href="http://papermashup.com/demos/ajax-check/">demo</a></li>
<li>
<h4>PHP Pagination</h4>
<p>A useful and raw PHP pagination script that could be adapted in to a class <a href="http://papermashup.com/demos/php-pagination/">demo</a></li>
<li>
<h4>jQuery Sliding Menu</h4>
<p>jQuery drop down slide in / out menu inspired by 9rules.com <a href="http://papermashup.com/demos/jquery-menu/">demo</a></li>
<li>
<h4>jQuery Tooltips</h4>
<p>An experimentation into building jQuery tooltips with AJAX requests, images etc <a href="http://papermashup.com/demos/tooltip/">demo</a></li>
</ol>
<p><a href="http://papermashup.com/demos/bundle/bundle.zip"><img class="alignnone size-full wp-image-24" title="download" src="http://papermashup.com/wp-content/uploads/2009/01/download.png" alt="" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://papermashup.com/20-complete-scripts-to-download/feed/</wfw:commentRss>
		<slash:comments>27</slash:comments>
		</item>
		<item>
		<title>Social M***a.. What?</title>
		<link>http://papermashup.com/social-ma-what/</link>
		<comments>http://papermashup.com/social-ma-what/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 22:04:55 +0000</pubDate>
		<dc:creator>Ashley</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[headline]]></category>
		<category><![CDATA[MySpace]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Social Media]]></category>
		<category><![CDATA[Social Networks]]></category>
		<category><![CDATA[Trends]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Web Tools]]></category>

		<guid isPermaLink="false">http://papermashup.com/?p=1715</guid>
		<description><![CDATA[A quick search on Google for the term &#8216;Social Media&#8217; currently retrieves over 203,000,000 results. Just before Facebook started to make a name for itself and emerged on the scene back in late 2006 the buzz word on the internet &#8230; <br/> <a href="http://papermashup.com/social-ma-what/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>A quick search on Google for the term &#8216;Social Media&#8217; currently retrieves over 203,000,000 results. Just before Facebook started to make a name for itself and emerged on the scene back in late 2006 the buzz word on the internet was &#8216;Web 2.0,&#8217; even then people were quick to chime in with there 10 pence worth and were happy to give you their opinion on the next best thing on the internet. This unfortunate movement also bought with it a hell of a lot of  &#8216;Marketing Bullshit&#8217;.</p>
<p>Its got to the stage where I can no longer read Mashable or Techcrunch because of the saturation and influence that these so called &#8216;social media&#8217; experts and journalists seem to be having on the industry. This so called next movement has unfortunately made everyone (even my Mum and Dad!) an expert in social media (whatever social media really is?) so it seems. I used to be an avid reader of Mashable and Techcrunch however i started to notice articles that were just plain crap observations, for example recently i found this post on Mashable, &#8216;<a href="http://mashable.com/2010/02/07/the-top-10-twitter-trends/">The top ten Twitter trends this week</a>.&#8217; I mean WHAT THE HELL! This made it into an article! This is a classic example of so called social media biting itself in the ass. Im a savvy internet user if i want to know what&#8217;s trending on Twitter i&#8217;ll check the Twitter homepage. Social media really just stands for, &#8216;We&#8217;re going to make your browsing experience twice as complicated by bombarding you with pointless facts an figures and plain obvious tips on how to promote your business using Twitter, Facebook and social networking.&#8217; I mean HELLO! bands and teenagers have been doing this stuff for years on MySpace, Hi5, and Bebo its nothing new.</p>
<p>It&#8217;s just plain marketing bullshit, and it just purports to makes anyone an expert if you have a Twitter or Facebook account, so in effect it just bastardises people who actually are knowledgeable in this area. I don&#8217;t class myself as an expert in anything. If your an expert you have nothing more to learn and we all have something to learn even more so on the internet.</p>
<p>Social Media = Way too much noise! </p>
]]></content:encoded>
			<wfw:commentRss>http://papermashup.com/social-ma-what/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Using Memcache With PHP</title>
		<link>http://papermashup.com/using-memcache-with-php/</link>
		<comments>http://papermashup.com/using-memcache-with-php/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 21:18:14 +0000</pubDate>
		<dc:creator>Ashley</dc:creator>
				<category><![CDATA[API's]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[headline]]></category>
		<category><![CDATA[Memcache]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Social Networks]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Tools]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://papermashup.com/?p=1231</guid>
		<description><![CDATA[I want to just start this little post with that fact that I don&#8217;t know all the ins and outs of using Memcache but I have enough knowledge to just about get it working. I have access to a Mediatemple &#8230; <br/> <a href="http://papermashup.com/using-memcache-with-php/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>I want to just start this little post with that fact that I don&#8217;t know all the ins and outs of using Memcache but I have enough knowledge to just about get it working. I have access to a Mediatemple Dedicated Virtual Extreme server and managed to install it on the server using SSH, with the help of this little guide from Mediatemple which runs you through the installation process step by step.</p>
<h3>Who uses Memcache?</h3>
<p>Memcache was developed by Danga Interactive to enhance the speed of LiveJournal.com, Memcache dropped the database load to almost nothing, yielding faster page load times for users, better resource utilization, and faster access to the databases on a Memcache miss. Currently FaceBook are the biggest users of Memcache. Infact FaceBook are using it so aggressively that they are chartering new territory, and helping to develop the open source project.</p>
<p><img class="alignnone sizefull wpimage1221" title="fb" src="http://papermashup.com/wp-content/uploads/2009/11/fb.png" alt="fb" width="582" height="200" /></p>
<h3>What&#8217;s Memcached?</h3>
<p>So your reading this wondering what I&#8217;m talking about. Memcache is basically is a generalpurpose distributed memory caching system, put that in English, it allows you to store any form of data in a &#8216;temporary cache&#8217; so wherever you go to do a database query, instead of just connecting to the database and getting the data we want we first check the memcache to see if our data is already stored. If the memcache returns nothing, then go to the database, get what you&#8217;re looking for, then store it in the memcache for later:</p>
<p>There are five main functions that we use with Memcache and they are as follows:</p>
<ul>
<li>get() &#8211; gets the value for a specified key</li>
<li>set() &#8211; sets a given key with a given value</li>
<li>add() &#8211; adds to the cache, only if it doesn&#8217;t already exist</li>
<li>replace() &#8211; sets in the cache only if the key already exists</li>
<li>flush() &#8211; removes all keys and cached data</li>
</ul>
<p><img class="alignnone sizefull wpimage1215" title="mem1" src="http://papermashup.com/wp-content/uploads/2009/11/mem1.png" alt="mem1" width="582" height="87" /></p>
<h3>The Code</h3>
<p>So once you have Memcache installed on your server you can connect to it and start caching stuff. It&#8217;s worth pointing out that you shouldn&#8217;t go out and cache everything, it&#8217;s really only useful when you have large amounts of data that are going to be requested regularly.</p>
<ol>
<li>So the first two lines setup the connection to Memcache.</li>
<li>The include is just my database connection script.</li>
<li>Next we set the key. When we store data using Memcache there are 3 parts to storing the data, those three parts are the key, the value, and the expiry time of the cached item. The key is used to reference the stored data. in this example you can see that the key is an MD5 hash of the database query.</li>
<li>we then check if the key exists in the cache. this will return true or false. if the data is found in the cache then we can access it.</li>
<li>If the data isn&#8217;t found in the cache we connect to the database to get it. we store the data in the cache by using the follow line: $memcache-&gt;set($key, $row, TRUE, 20); $row refers to the array that we get from the database, notice the 20 at the end. This refers to the how long this item will expire in the cache. It is measured in seconds.</li>
</ol>
<pre class="brush: php; title: ;">

$memcache = new Memcached();
$memcache&gt;connect('127.0.0.1', 11211) or die (&quot;Could not connect&quot;);

include('includes/connect.php');

//set the key then check the cache
$key = md5(&quot;SELECT * FROM memcached_test where name='ashley'&quot;);
$get_result = $memcache&gt;get($key);
if ($get_result) {
echo $get_result['name'];
echo $get_result['username'];
echo &quot;Data Pulled From Cache&quot;;
}
else {
 // Run the query and get the data from the database then cache it
 $query=&quot;SELECT * FROM memcached_test where name='ashley';&quot;;
 $result = mysql_query($query);
 $row = mysql_fetch_array($result);
 print_r($row);
 $memcache&gt;set($key, $row, TRUE, 20); // Store the result of the query for 20 seconds
 echo &quot;Data Pulled from the Database&quot;;
}
</pre>
<p>This is a very simple example of how to use memcache, but I hope it has been an insight into how caching works.</p>
]]></content:encoded>
			<wfw:commentRss>http://papermashup.com/using-memcache-with-php/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>Key web development skills</title>
		<link>http://papermashup.com/key-web-development-skills/</link>
		<comments>http://papermashup.com/key-web-development-skills/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 10:53:11 +0000</pubDate>
		<dc:creator>Ashley</dc:creator>
				<category><![CDATA[API's]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[headline]]></category>
		<category><![CDATA[Iphone]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[MooTools]]></category>
		<category><![CDATA[MySpace]]></category>
		<category><![CDATA[OAuth]]></category>
		<category><![CDATA[OpenID]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Social Media]]></category>
		<category><![CDATA[Social Networks]]></category>
		<category><![CDATA[Trends]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[Web Tools]]></category>
		<category><![CDATA[Widgets]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[2009]]></category>
		<category><![CDATA[Advertising]]></category>
		<category><![CDATA[APIs]]></category>
		<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Data Portability]]></category>
		<category><![CDATA[Del.icio.us]]></category>
		<category><![CDATA[Digg]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://papermashup.com/?p=1198</guid>
		<description><![CDATA[API Knowledge A key tool for any budding web developer is API knowledge. It&#8217;s good to familiarise yourself with a variety of application interfaces. I started out using the Twitter REST API with PHP and CURL when twitter first launched &#8230; <br/> <a href="http://papermashup.com/key-web-development-skills/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<h3>API Knowledge</h3>
<p>A key tool for any budding web developer is API knowledge. It&#8217;s good to familiarise yourself with a variety of application interfaces. I started out using the Twitter REST API with PHP and CURL when twitter first launched the API to basically get a users tweets, pretty simple now I look back, but at the time it was the first time i&#8217;d done such a thing. As the development of social media continues this will increasingly open up opportunities to develop more and more applications that interact with one another and and make our daily chores more eventful.</p>
<p><img src="http://papermashup.com/wp-content/uploads/2009/11/api.jpg" alt="api" title="api" width="582" height="200" /></p>
<h3>Frameworks</h3>
<p>There&#8217;s generally a framework for just about every programming language out there. Whether you decide to learn the jQuery framework for JavaScript or Cake for PHP each one will help you succeed as a freelancer and further your career as a web developer. Frameworks in many respects take out the arduous repetitive tasks we face daily and give us more time to focus on developing cutting edge products or applications. </p>
<p><img src="http://papermashup.com/wp-content/uploads/2009/11/ruby.jpg" alt="ruby" title="ruby" width="582" height="200" /></p>
<h3>iPhone Applications</h3>
<p>Companies are Increasingly seeing the massive potential that there is in the mobile platform. Applications that are approved and make it into the Apple app store have the opportunity to be downloaded thousands of times and can potentially make a lot of money. Having a specific skill to be able to develop for this market can be very lucrative, especially in the current economic climate when companies are turning to social media to plug holes where they&#8217;re not seeing return on investment from other advertising sectors.</p>
<p><img src="http://papermashup.com/wp-content/uploads/2009/11/iphone.jpg" alt="iphone" title="iphone" width="582" height="200" /></p>
<h3>CMS Customisation</h3>
<p>A handy skill to have is a general knowledge of how to use content management systems. For example building themes and plugins for WordPress, or modules and components for Joomla and Mambo.  As a developer its important to have an idea of the structure of a variety of CMS&#8217;s. If you have a wordpress blog/site, that&#8217;s an easy way to familiarise yourself with the platform. Remember it&#8217;s always easier to learn something by immersing yourself in the technology.</p>
<p><img src="http://papermashup.com/wp-content/uploads/2009/11/wordpress.jpg" alt="wordpress" title="wordpress" width="582" height="200" /></p>
<h3>Online Payments</h3>
<p>Businesses are always going to need payment solutions online. Having the skills to take a site and integrate  paypal or google checkout will allow you to go far. We&#8217;re starting to see many 3rd party software companies setting up and selling software at more affordable prices, take <a href="http://www.panic.com/">Panic</a> for example. They are a relatively small company that develop a selection of web development software for the mac. Many new startups are settling for a product based revenue stream rather than making money purely through ads, revenue share, or partnership deals. This opens up the demand for skilled developers to be able to build payment solutions.</p>
<p><img src="http://papermashup.com/wp-content/uploads/2009/11/google-checkout.png" alt="google-checkout" title="google-checkout" width="582" height="200"/></p>
]]></content:encoded>
			<wfw:commentRss>http://papermashup.com/key-web-development-skills/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Why widgets are important for your business</title>
		<link>http://papermashup.com/why-widgets-are-important-for-your-business/</link>
		<comments>http://papermashup.com/why-widgets-are-important-for-your-business/#comments</comments>
		<pubDate>Sat, 17 Jan 2009 21:09:10 +0000</pubDate>
		<dc:creator>Ashley</dc:creator>
				<category><![CDATA[Social Networks]]></category>
		<category><![CDATA[Widgets]]></category>
		<category><![CDATA[APIs]]></category>
		<category><![CDATA[Make]]></category>
		<category><![CDATA[Money]]></category>

		<guid isPermaLink="false">http://papermashup.com/?p=140</guid>
		<description><![CDATA[Widgets fit perfectly into a world where information makes it&#8217;s self available where ever the end user wants it. Widgets offer the great ability to be placed where the community will use it the most thus maximising a marketers message &#8230; <br/> <a href="http://papermashup.com/why-widgets-are-important-for-your-business/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-152" title="widgets" src="http://papermashup.com/wp-content/uploads/2009/01/widgets.jpg" alt="widgets" width="529" height="188" /></p>
<p>Widgets fit perfectly into a world where information makes it&#8217;s self available where ever the end user wants it. Widgets offer the great ability to be placed where the community will use it the most thus maximising a marketers message within the product.</p>
<p>Tracking widgets is easy with tools such as clearsprings and Gigya. These services allow users to virally spread your message throughout the net easily integrating your product in social networks and blogs. A site that&#8217;s bringing widget making to the masses is <a href="http://www.sproutbuilder.com">Sproutbuilder.com</a>. Just out of Beta Sprout gives you the ability to create rich media widgets like the one below. Sprout offers a really great user interface built completely in Flex it&#8217;s a great example of an online application. Allowing you to embed RSS feeds, Twitter feeds, Yahoo maps, Google Forms, and much more. Design and style are completely up to you which is great as most sites only offer drag and drop interfaces with pre-set placeholders for content. templates are available for the less adventurous. Check out the video below on how to create your sprout.</p>
<p><object width="529" height="373" data="http://farm.sproutbuilder.com/33833/load/wABXwB3zAT7HGCYK.swf" type="application/x-shockwave-flash"><param name="id" value="playerLoader" /><param name="quality" value="best" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /><param name="wmode" value="transparent" /><param name="src" value="http://farm.sproutbuilder.com/33833/load/wABXwB3zAT7HGCYK.swf" /><param name="name" value="playerLoader" /><param name="align" value="middle" /><param name="allowfullscreen" value="true" /></object><img style="visibility: hidden; width: 0px; height: 0px;" src="http://counters.gigya.com/wildfire/IMP/CXNID=2000002.0NXC/bT*xJmx*PTEyMzIyMTkxMTQ3NTUmcHQ9MTIzMjIxOTE*MjEwNiZwPTEyMDc*MSZkPTcyOTg*Jmc9MiZ*PSZvPTI5M2Y4YWJjNmFhYzQ1ZDk4Njg4MzRlYzc*Yzg1Zjcz.gif" border="0" alt="" width="0" height="0" /></p>
<h2>Making money from widgets</h2>
<p>Widgets are a great environment for brand advertising as they offer a real media experience and in time brands can leverage that experience to find ways to engage users with their product. We are seeing more and more brands sponsoring already popular widgets to get their message across.</p>
<p>Sites like Amazon and Ebay offer users affiliate programs encouraging them distribute their widgets with products. This is a great marketing initiative by these companies to take their products off the site and onto the users sites and networks, and the incentive to embed the widget is cash to the site owner of a visitor buys a product. So everyone wins. This has been a brief look at widgets and how your business can use this emerging form of media to target your audience. </p>
]]></content:encoded>
			<wfw:commentRss>http://papermashup.com/why-widgets-are-important-for-your-business/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Looking At RSS Feeds</title>
		<link>http://papermashup.com/looking-at-rss-feeds/</link>
		<comments>http://papermashup.com/looking-at-rss-feeds/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 17:34:07 +0000</pubDate>
		<dc:creator>Ashley</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Social Networks]]></category>
		<category><![CDATA[blogs]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[rss]]></category>

		<guid isPermaLink="false">http://papermashup.com/?p=67</guid>
		<description><![CDATA[RSS feeds or â€˜Rich Site Summaryâ€™ are standards when it comes to transporting data and using it on other sites, RSS feeds can be read in a web browser or subscribed to. Feeds are commonly refered to as â€˜pullingâ€™ rather &#8230; <br/> <a href="http://papermashup.com/looking-at-rss-feeds/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p>RSS feeds or â€˜Rich Site Summaryâ€™ are standards when it comes to transporting data and using it on other sites, RSS feeds can be read in a web browser or subscribed to. Feeds are commonly refered to as â€˜pullingâ€™ rather than â€˜pushingâ€™ technology. â€˜Pushingâ€™ technology is publishing content and hoping that someone will pop by your site and read, listen or watch your content. RSS feeds are a pulling technology because visitors subscribe to your message and can retrieve it at any time. â€˜Pullingâ€™ technologies allow users to engage in people, resources and content when they like. These feeds are structures for content that is being updated on a regular basis, the content can be anything from blogs, photos, PDF documents, audio / video files, and other applications. RSS feeds contain the content and allow it to be transferred and shared within social networks, the number of applications that use RSS feeds are growing on a daily basis. </p>
]]></content:encoded>
			<wfw:commentRss>http://papermashup.com/looking-at-rss-feeds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenID</title>
		<link>http://papermashup.com/openid/</link>
		<comments>http://papermashup.com/openid/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 17:22:58 +0000</pubDate>
		<dc:creator>Ashley</dc:creator>
				<category><![CDATA[OpenID]]></category>
		<category><![CDATA[Social Networks]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Social Networking]]></category>

		<guid isPermaLink="false">http://papermashup.com/?p=61</guid>
		<description><![CDATA[The web is evolving all the time and with this the risk of your data falling into the wrong hands and identity theft, is greatly increased. Also with so many sites asking us to sign-up and choose a username and &#8230; <br/> <a href="http://papermashup.com/openid/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><img class="alignnone size-full wp-image-176" title="openid" src="http://papermashup.com/wp-content/uploads/2009/01/openid.gif" alt="openid" width="526" height="183" /></p>
<p style="text-align: justify;">The web is evolving all the time and with this the risk of your data falling into the wrong hands and identity theft, is greatly increased. Also with so many sites asking us to sign-up and choose a username and password the amount of login details that users have to remember are growing, this prompted a group of influential people from various web organizations to start the OpenID foundation. Openid.net (2008) explains further the service on offer:</p>
<p style="text-align: justify;">
OpenID eliminates the need for multiple usernames and login details across different sites, simplifying the users online experience. You get to choose the OpenID Provider that best meets your needs and most importantly that you trust. At the same time, your OpenID can stay with you, no matter which Provider you move to. And best of all, the OpenID technology is not proprietary and is completely free. For businesses, this means a lower cost of password, while bringing new web traffic. OpenID lowers user frustration by letting users have control of their login. OpenID is still fairly new but is becoming more and more popular, as large organizations like AOL, Microsoft, Sun, Novell, etc. begin to accept and provide OpenIDs for users. It is believed that there are over 160-million OpenID enabled URLs with almost ten-thousand sites using OpenID logins. OpenID has arisen from the open source community to solve the problems that could not be easily solved by other existing technologies. OpenID is a lightweight method of pinpointing individuals that uses the same technology framework that is used to identify websites. Because of this, OpenID is not owned by anyone, nor should it be. Today, anyone can choose to be an OpenID user or an OpenID Provider for free without having to register or be approved by any business or organization.</p>
<p style="text-align: justify;">Brad Fitzpatrick Openid.net (2008) said, â€œNobody should own this. Nobodyâ€™s planning on making any money from this. The goal is to release every part of this under the most liberal licenses possible, so thereâ€™s no money or licensing or registering required to play. It benefits the community as a whole if something like this exists, and weâ€™re all a part of the community.â€</p>
]]></content:encoded>
			<wfw:commentRss>http://papermashup.com/openid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Social Bookmarking</title>
		<link>http://papermashup.com/social-bookmarking/</link>
		<comments>http://papermashup.com/social-bookmarking/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 14:43:38 +0000</pubDate>
		<dc:creator>Ashley</dc:creator>
				<category><![CDATA[Social Bookmarking]]></category>
		<category><![CDATA[Social Networks]]></category>
		<category><![CDATA[bookmarking]]></category>
		<category><![CDATA[Del.icio.us]]></category>
		<category><![CDATA[Digg]]></category>
		<category><![CDATA[Fark]]></category>

		<guid isPermaLink="false">http://papermashup.com/?p=49</guid>
		<description><![CDATA[Search engines like Google and Yahoo have made it easier to find what you want but the internet is still an un ordered jumble of pages that makes finding anything useful a problem. Tagging content can help organize it into &#8230; <br/> <a href="http://papermashup.com/social-bookmarking/">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><img class="alignnone size-full wp-image-123" title="trends" src="http://papermashup.com/wp-content/uploads/2009/01/trends.jpg" alt="trends" width="529" height="188" /></p>
<p style="text-align: justify;">Search engines like Google and Yahoo have made it easier to find what you want but the internet is still an un ordered jumble of pages that makes finding anything useful a problem. Tagging content can help organize it into sections. Social Bookmarks use tagging as their primary way of organizing content, if every page or piece of content was tagged with words relevant to that information users would be able to find the information that they want quicker. Every piece of content can be tagged on the internet, Flickr make it easy to tag photos adding more information to photo and even tagging yourself or friends in an overlay that is only visible when you hover over the image. The value of tagging is only made apparent within a community of likeminded people who help to sort and clarify information. Information taken from Wikipedia (2008) states that many bookmarking services provide RSS web feeds for listings, and as these web services have matured and grown in popularity they have added more social features allowing users to rate and comment on bookmarks leading to users really deciding on whatâ€™s â€˜hotâ€™ and whatâ€™s not. This way of aggregating and organizing data isnâ€™t new, the concept of sharing online bookmarks dates back to April 1996 in the middle of the â€˜Dot Com Boomâ€™ with the launch of â€˜itlistâ€™ within the following three years, bookmarking services became very competitive. StumbleUpon appeared on the market in about 2001 allowing users to discover, review and rate web pages. StumbleUpon is on the outset a web browser plug-in allowing you to rate pages as you browse the internet. Information taken from Wikipedia (2008) states that eBay purchased StumbleUpon, which at the time had an estimated 4 million members, in May 2007 for an estimated $75,000,000. Other social bookmarking sites include Digg, Slashdot, Reddit, Fark and del.icio.us.</p>
]]></content:encoded>
			<wfw:commentRss>http://papermashup.com/social-bookmarking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching 1/52 queries in 0.143 seconds using disk: basic
Object Caching 925/1101 objects using disk: basic

Served from: papermashup.com @ 2012-02-04 04:04:04 -->
