<?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"
	>

<channel>
	<title>PatrickDeVivo.com</title>
	<atom:link href="http://patrickdevivo.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://patrickdevivo.com</link>
	<description>Learning by doing</description>
	<pubDate>Wed, 23 Jul 2008 05:57:47 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>My Simplest GPT PHP Script</title>
		<link>http://patrickdevivo.com/2008/04/my-simplest-gpt-php-script/</link>
		<comments>http://patrickdevivo.com/2008/04/my-simplest-gpt-php-script/#comments</comments>
		<pubDate>Tue, 08 Apr 2008 02:15:36 +0000</pubDate>
		<dc:creator>Patrick DeVivo</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[GPT]]></category>

		<category><![CDATA[Learning by Doing]]></category>

		<category><![CDATA[Script]]></category>

		<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://patrickdevivo.com/?p=4</guid>
		<description><![CDATA[This PHP script is probably the first I ever put together, and at the time the most complex (for me). This GPT script, or Get Paid To script is similar in function to the popular websites SWATCash.com, TreasureTrooper.com, and CashCrate.com. People are paid to complete offers. I wanted to create an extremely simple website where [...]]]></description>
			<content:encoded><![CDATA[<p>This PHP script is probably the first I ever put together, and at the time the most complex (for me). This GPT script, or Get Paid To script is similar in function to the popular websites <a href="http://swatcash.com/6683">SWATCash.com</a>, <a href="http://treasuretrooper.com">TreasureTrooper.com</a>, and <a href="http://cashcrate.com">CashCrate.com</a>. People are paid to complete offers. I wanted to create an extremely simple website where people could complete offers without having to register, and still be &#8220;properly&#8221; tracked so that they could still be paid. Here is what I came up with in this small script.</p>
<p>Demo: <a href="http://earnings-easy.com">http://earnings-easy.com</a></p>
<p>Pros:</p>
<ul>
<li>Very simple</li>
<li>No MySQL database required</li>
<li>Very easy to customize</li>
<li>Very little knowledge of PHP/CSS required to customize and work with</li>
</ul>
<p>Cons:</p>
<ul>
<li>Probably buggy</li>
<li>Hard to track offer completion</li>
<li>Boring design</li>
<li>No admin area to add and remove offers - done manually</li>
<li>Very few comments in the script</li>
</ul>
<p><span id="more-4"></span></p>
<h2>ReadMe</h2>
<h3>Style.css</h3>
<p>Stylesheet of the script. Incredibly simple. I know about as much CSS as I know PHP.</p>
<h3>Index.php</h3>
<p>The homepage of the script. This is where the user enters his/her PayPal email address. Not complicated at all, and not too important for customizing.</p>
<h3>Offer.php</h3>
<p>This is where all of the offers are stored. All it is, is a table which is included in index.html after the user enters his/her email. To add a new offer, you must add a new row to the table with this format:</p>
<blockquote><p>&lt;tr&gt;<br />
&lt;td&gt;&lt;div align=&#8221;center&#8221;&gt;Offer Name&lt;/div&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;div align=&#8221;center&#8221;&gt;Instructions/Description&lt;/div&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;div align=&#8221;center&#8221;&gt;Payout&lt;/div&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;div align=&#8221;center&#8221;&gt;&lt;?php echo &#8220;&lt;a href=&#8217;http://offerurl.com/$paypal&#8217;&gt;Click Here&lt;/a&gt;&#8221;; ?&gt;&lt;/div&gt;&lt;/td&gt;<br />
&lt;/tr&gt;</p></blockquote>
<p>$paypal is the user&#8217;s PayPal address - what you use to track offer completion. Be sure to include this where your offer ID is supposed to go. For incentreward.com, the ID goes at the end of the url like: http://offerurl.com/dir/dir/OFFERID</p>
<p>This is very important because it is how you track whether or not a user has completed an offer in the backend of your affiliate network. So here is what one entry might look like:</p>
<blockquote><p>&lt;tr&gt;<br />
&lt;td&gt;&lt;div align=&#8221;center&#8221;&gt;Ebay&lt;/div&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;div align=&#8221;center&#8221;&gt;Sign up. Place a bid&lt;/div&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;div align=&#8221;center&#8221;&gt;10 dollars&lt;/div&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;div align=&#8221;center&#8221;&gt;&lt;?php echo &#8220;&lt;a href=&#8217;http://incentreward.directtrack.com/z/14113/CD502/$paypal&#8217;&gt;Click Here&lt;/a&gt;&#8221;; ?&gt;&lt;/div&gt;&lt;/td&gt;<br />
&lt;/tr&gt;</p></blockquote>
<p>Go ahead and download it <a href="http://patrickdevivo.com/wp-content/uploads/2008/04/gpt.zip">here</a></p>
<p>If you find any bugs or major issues, please contact me via my contact page. If you need any help post a comment.</p>
<p>Notice that I don&#8217;t have any copyright material or disclaimers in this script? It&#8217;s ok: pirate, share, sell as much of it ass you like. It&#8217;s not worth protecting.</p>
]]></content:encoded>
			<wfw:commentRss>http://patrickdevivo.com/2008/04/my-simplest-gpt-php-script/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Strange Red Light Emanating From Headphone Jack of MacBook</title>
		<link>http://patrickdevivo.com/2008/04/strange-red-light-emanating-from-headphone-jack-of-macbook/</link>
		<comments>http://patrickdevivo.com/2008/04/strange-red-light-emanating-from-headphone-jack-of-macbook/#comments</comments>
		<pubDate>Mon, 07 Apr 2008 17:03:59 +0000</pubDate>
		<dc:creator>Patrick DeVivo</dc:creator>
		
		<category><![CDATA[Apple]]></category>

		<category><![CDATA[Headphones]]></category>

		<category><![CDATA[MacBook]]></category>

		<category><![CDATA[Music]]></category>

		<guid isPermaLink="false">http://patrickdevivo.com/?p=13</guid>
		<description><![CDATA[I usually use an external speaker system to listen to music from my Apple MacBook, and when I unplugged the audio cable from my headphone jack, a spooky red light spilled out onto my desk. I looked in and saw a brightly lit LED bulb. I wasn&#8217;t able to adjust the volume, and when I [...]]]></description>
			<content:encoded><![CDATA[<p>I usually use an external speaker system to listen to music from my Apple MacBook, and when I unplugged the audio cable from my headphone jack, a spooky red light spilled out onto my desk. I looked in and saw a brightly lit LED bulb. I wasn&#8217;t able to adjust the volume, and when I went into System Preferences &gt; Sound I couldn&#8217;t choose internal speakers as my audio output source. I did some research and found out that I probably slightly bent the sensor which detects whether or not there is a cable plugged into the headphone jack.</p>
<p>I guess this means that my computer &#8220;thought&#8221; I had a pair of headphones or speakers plugged into it when I actually didn&#8217;t. Apparently, the easiest way to fix this is to take a match stick or like object and jiggle the sensor until it detects that there is nothing plugged in.</p>
<blockquote><p>:rolleyes:<br />
I found a fix for the red light problem. I&#8217;m not sure if I like it, but it works. After reading forum thread after forum thread of users that had this problem, I found a dude who fixed his jack with a rubber ended bobby pin. It seems a sensor gets bent (?) and the system thinks your digital external line is still plugged in. I took the butt end of a matchstick and tickled inside the jack. My red light went out. My internal speakers work again. Whatever.</p>
<p><em>brady.ca (<a href="http://forums.macrumors.com/archive/index.php/t-237405.html">http://forums.macrumors.com/archive/index.php/t-237405.html</a>)</em></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://patrickdevivo.com/2008/04/strange-red-light-emanating-from-headphone-jack-of-macbook/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
