<?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>Stefan Crain</title>
	<atom:link href="http://www.stefancrain.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stefancrain.com</link>
	<description>Design &#38; Development</description>
	<lastBuildDate>Sat, 10 Mar 2012 06:44:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>3 Tricks to Increase Your Productivity</title>
		<link>http://www.stefancrain.com/lab/three-tricks-to-increase-your-productivity/</link>
		<comments>http://www.stefancrain.com/lab/three-tricks-to-increase-your-productivity/#comments</comments>
		<pubDate>Fri, 09 Mar 2012 14:38:44 +0000</pubDate>
		<dc:creator>stefancrain12</dc:creator>
		
		<guid isPermaLink="false">http://www.stefancrain.com/?post_type=lab&#038;p=338</guid>
		<description><![CDATA[I wanted to take a moment to share how you can taken back 10+ hours a week of my time from monotonous tasks. 1. Find faster Think about how often you &#8220;search&#8221; through your hard drive to find and open files, applications, or folders? 10, 20, 50 times a dayhttp://www.stefancrain.com/wp-admin/post.php?post=338&#38;action=edit&#38;message=1? Probably takes you a while huh? And then you find the file and cant even remember why you were searching for GuyDoingFacePalm.jpg in the first place.  Lucky for us there is a much faster way to find stuff on the mac. Apple built this fucntionality straight into into OSX in 2006, they call it &#8220;Spotlight&#8221;. TRY IT OUT: Press command + spacebar to open the window in the upper right corner. Type in the first 3-4 letters of what you are looking for, use arrow keys to navigate the list &#8230; <a href="http://www.stefancrain.com/lab/three-tricks-to-increase-your-productivity/">Continued</a>]]></description>
			<content:encoded><![CDATA[<p>I wanted to take a moment to share how you can taken back 10+ hours a week of my time from monotonous tasks.</p>
<h2>1. Find faster</h2>
<p>Think about how often you &#8220;<em>search</em>&#8221; through your hard drive to find and open files, applications, or folders? 10, 20, 50 times a dayhttp://www.stefancrain.com/wp-admin/post.php?post=338&amp;action=edit&amp;message=1? Probably takes you a while huh? And then you find the file and cant even remember why you were searching for GuyDoingFacePalm.jpg in the first place.  Lucky for us there is a much faster way to find stuff on the mac.</p>
<p>Apple built this fucntionality straight into into OSX in 2006, they call it &#8220;Spotlight&#8221;.</p>
<p>TRY IT OUT: Press <strong>command + spacebar</strong> to open the window in the upper right corner. Type in the first 3-4 letters of what you are looking for, use arrow keys to navigate the list and press enter to open the file. Easy, fast, found.</p>
<p><a title="Learn more about spotlight from apple" href="http://support.apple.com/kb/HT2531" target="_blank">More about Spotlight from Apple .</a></p>
<p><strong>Time saved : 20-30 minutes a day.</strong></p>
<hr />
<h2>2. Focus longer</h2>
<p>The time you spend blocking out distractions and to getting focused work done is invaluable.</p>
<p>We can all agree that one of the big drawbacks of the new social web is our level of constant distraction. How much time do you waste checking your two favorite sites? I started keeping track of mine and I&#8217;m sure the results would alarm you.</p>
<p>I started using an application called <em>SelfControl </em>1 month ago and immediately noticed changes in my work habits.</p>
<p><em>SelfControl </em> blocks your access to any sites in its&#8217; blacklist for a preset period of time. After you start a session there&#8217;s no going back.</p>
<p title="read more about the selfcontroll app"><a title="read more about the selfcontroll app" href=" http://visitsteve.com/made/selfcontrol/" target="_blank">Learn more about Selfcontrol</a> &#8211; <a title="browse the soruce on github" href="https://github.com/slambert/selfcontrol" target="_blank">sGit the source on github</a></p>
<p><strong>Time saved : 40-60 minutes a day.</strong></p>
<hr />
<h2>3. Sync more often</h2>
<p><strong></strong>I&#8217;ve made it a practice to use two computers in my weekly workflow. I have a rock solid desktop to really crank out most of my work, and when cabin fever strikes I have an old PowerBook that I take with me to escape. I wanted the computers to keep my projects in sync without being forced to work off of a remote server.</p>
<p>Enter <em>Gitdocs</em>. Gitdocs is awesome for my coding projects because not only does it keep my 2 stations in sync, but it also it keeps track of a files revision history, so if I need to revert to yesterdays file, its right there!</p>
<p title="read more about the selfcontroll app"><a title="learn more about gitdocs on github" href="https://github.com/bazaarlabs/gitdocs" target="_blank">Git the source on github</a></p>
<p><strong>Time saved : 20-30 minutes a day + countless headaches avoided.</strong></p>
<hr />
<h2>What am I missing?</h2>
<p>How have you streamlined your workflow  ?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stefancrain.com/lab/three-tricks-to-increase-your-productivity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mobile website for Bardavon/UPAC Theaters</title>
		<link>http://www.stefancrain.com/portfolio/mobile-website-for-bardavonupac-theaters/</link>
		<comments>http://www.stefancrain.com/portfolio/mobile-website-for-bardavonupac-theaters/#comments</comments>
		<pubDate>Sat, 03 Mar 2012 14:33:56 +0000</pubDate>
		<dc:creator>stefancrain12</dc:creator>
		
		<guid isPermaLink="false">http://dev.stefancrain.com/port/?post_type=portfolio&#038;p=258</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a id="img_image005" href="/port/assets/image005.png"><img class="stefan-image-260 alignleft" title="image005" src="http://www.stefancrain.com/assets/image005.png" alt="" width="396" height="744" /></a><br />
<a id="img_image001" href="/port/assets/image001.png"><img class="stefan-image-261 alignleft" title="image001" src="http://www.stefancrain.com/assets/image001.png" alt="" width="396" height="744" /></a><a id="img_image007" href="/port/assets/image007.png"><img class="size-full stefan-image-259 alignleft" title="image007" src="http://www.stefancrain.com/assets/image007.png" alt="" width="860" height="668" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.stefancrain.com/portfolio/mobile-website-for-bardavonupac-theaters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Countup Timer &#8211; Flipify.js</title>
		<link>http://www.stefancrain.com/lab/jquery-countup-timer/</link>
		<comments>http://www.stefancrain.com/lab/jquery-countup-timer/#comments</comments>
		<pubDate>Fri, 02 Mar 2012 17:32:59 +0000</pubDate>
		<dc:creator>stefancrain12</dc:creator>
		
		<guid isPermaLink="false">http://dev.stefancrain.com/port/?post_type=lab&#038;p=256</guid>
		<description><![CDATA[Flipify.js is a jQuery plugin that turns a boring count-up display into a beautiful airport inspired counter. Count the number of hits to your web-app, track your time, or even monitor your dog (good luck). The possibilities are endless! Key Features Built with the jQuery framework Lightweight at only 1.9KB supports Multiple instances on one page timerEnd handler start, stop, and reset functionality $('#counter').countdown({ stepTime: 60, format: 'hh:mm:ss', startTime: "12:32:55", digitImages: 6, digitWidth: 53, digitHeight: 77, timerEnd: function() { alert('end!!'); }, image: "digits.png" });]]></description>
			<content:encoded><![CDATA[<p>Flipify.js is a jQuery plugin that turns a boring count-up display into a beautiful airport inspired counter. Count the number of hits to your web-app, track your time, or even monitor your dog (good luck). The possibilities are endless!</p>
<h3>Key Features</h3>
<ul>
<li>Built with the <strong>jQuery</strong> framework</li>
<li><strong>Lightweight</strong> at only 1.9KB</li>
<li><strong>supports Multiple</strong> instances on one page</li>
<li><strong>timerEnd</strong> handler</li>
<li><strong>start</strong>, <strong>stop</strong>, and <strong>reset</strong> functionality</li>
</ul>
<pre>$('#counter').countdown({
	stepTime: 60,
	format: 'hh:mm:ss',
	startTime: "12:32:55",
	digitImages: 6,
	digitWidth: 53,
	digitHeight: 77,
	timerEnd: function() { alert('end!!'); },
	image: "digits.png"
});</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.stefancrain.com/lab/jquery-countup-timer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gary McCarthy for mayor</title>
		<link>http://www.stefancrain.com/portfolio/gary-mccarthy-for-mayor/</link>
		<comments>http://www.stefancrain.com/portfolio/gary-mccarthy-for-mayor/#comments</comments>
		<pubDate>Thu, 25 Aug 2011 14:00:21 +0000</pubDate>
		<dc:creator>stefancrain12</dc:creator>
		
		<guid isPermaLink="false">http://www.stefancrain.com/?post_type=portfolio&#038;p=152</guid>
		<description><![CDATA[Custom Even iCal / Google Calendar integration.]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-large stefan-image-157" title="Gary-McCarthy-for-Mayor-homepage" src="http://www.stefancrain.com/assets/Gary-McCarthy-for-Mayor-homepage-940x1083.png" alt="" width="940" height="1083" /></p>
<h2>Custom Even iCal / Google Calendar integration.</h2>
<p><img class="alignleft size-full stefan-image-167" title="half-shot-1" src="http://www.stefancrain.com/assets/half-shot-13.png" alt="" width="470" height="400" /></p>
<p><img title="gary mccarthy Calender with iCal" src="http://www.stefancrain.com/assets/event-calendar-download.png" alt="" width="940"   /></p>
<p><img title="gary-mccarthy-iCal" src="http://www.stefancrain.com/assets/gary-mccarthy-iCal-940x696.png" alt="" width="940" height="696" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.stefancrain.com/portfolio/gary-mccarthy-for-mayor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Logical Backup &#8211; Offsite Data Security</title>
		<link>http://www.stefancrain.com/portfolio/logical-backup/</link>
		<comments>http://www.stefancrain.com/portfolio/logical-backup/#comments</comments>
		<pubDate>Fri, 12 Aug 2011 02:59:01 +0000</pubDate>
		<dc:creator>stefancrain12</dc:creator>
		
		<guid isPermaLink="false">http://www.stefancrain.com/?post_type=portfolio&#038;p=105</guid>
		<description><![CDATA[&#160;]]></description>
			<content:encoded><![CDATA[<p><a id="img_logical-backup-featured-1" href="http://www.stefancrain.com/assets/logical-backup-featured-1.png"><img class="alignleft size-large stefan-image-194" title="logical-backup-featured-1" src="http://www.stefancrain.com/assets/logical-backup-featured-1-940x460.png" alt="" width="940" height="460" /></a></p>
<p><a id="img_logical-backup-featured-4" href="http://www.stefancrain.com/assets/logical-backup-featured-4.png"><img class="alignleft size-large stefan-image-196" title="logical-backup-featured-4" src="http://www.stefancrain.com/assets/logical-backup-featured-4-940x497.png" alt="" width="940" height="497" /></a></p>
<p><a id="img_logical-backup-featured-5" href="http://www.stefancrain.com/assets/logical-backup-featured-5.png"><img class="size-large stefan-image-197 alignleft" title="logical-backup-featured-5" src="http://www.stefancrain.com/assets/logical-backup-featured-5-940x951.png" alt="" width="940" height="951" /></a></p>
<p>&nbsp;</p>
<p><a id="img_logical-backup-featured-3" href="http://www.stefancrain.com/assets/logical-backup-featured-3.png"><img class="alignleft size-large stefan-image-195" title="logical-backup-featured-3" src="http://www.stefancrain.com/assets/logical-backup-featured-3-940x497.png" alt="" width="940" height="497" /></a></p>
<p><a id="img_logical-backup-featured-2" href="http://www.stefancrain.com/assets/logical-backup-featured-2.png"><img class="alignleft size-large stefan-image-193" title="logical-backup-featured-2" src="http://www.stefancrain.com/assets/logical-backup-featured-2-940x310.png" alt="" width="940" height="310" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.stefancrain.com/portfolio/logical-backup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arduino &amp; Titanium communication via PHP</title>
		<link>http://www.stefancrain.com/lab/arduino-titanium-communication-via-php/</link>
		<comments>http://www.stefancrain.com/lab/arduino-titanium-communication-via-php/#comments</comments>
		<pubDate>Tue, 10 May 2011 15:57:01 +0000</pubDate>
		<dc:creator>stefancrain12</dc:creator>
		
		<guid isPermaLink="false">http://dev.stefancrain.com/port/?post_type=lab&#038;p=252</guid>
		<description><![CDATA[As of last week, I was not able to find a method to connect my Arduino to a Titanium desktop project. The Titanium SDK doesn&#8217;t natively support serial communication, but I knew the Arduino would be much more valuable to me if I was able to integrate it natively with a desktop app for several reasons: With an Arduino I can enhance my ability to add layers of interaction &#38; interface design to my projects. The majority of my experience developing comes from web development, Titanium allows me to program in the language of my choice. If I could figure out how to connect it, I wouldn&#8217;t need to re-write my current app in an app like Processing ( Holy shit, processing is hard ). There were people out there that were wondering about this same thing, I followed up &#8230; <a href="http://www.stefancrain.com/lab/arduino-titanium-communication-via-php/">Continued</a>]]></description>
			<content:encoded><![CDATA[<p>As of last week, I was not able to find a method to connect my <a title="Arduino" href="http://www.arduino.cc/" target="_blank">Arduino</a> to a <a title="Titanium Desktop" href="http://www.appcelerator.com/" target="_blank">Titanium desktop</a> project. The Titanium SDK doesn&#8217;t natively support serial communication, but I knew the Arduino would be much more valuable to me if I was able to integrate it natively with a desktop app for several reasons:</p>
<ol>
<li>With an Arduino I can enhance my ability to add layers of interaction &amp; interface design to my projects.</li>
<li>The majority of my experience developing comes from web development, Titanium allows me to program in the language of my choice.</li>
<li>If I could figure out how to connect it, I wouldn&#8217;t need to re-write my current app in an app like Processing ( Holy shit, processing is hard ).</li>
</ol>
<p>There were people out there that were wondering about this same thing, I followed up on the <a title="Titanium desktop &amp; arduino questions" href="http://developer.appcelerator.com/question/88221/can-the-desktop-api-access-serial-ports" target="_blank">leads</a> <a title="Arduino PHP with fopen" href="http://www.arduinoprojects.com/node/10" target="_blank">they</a> <a title="Arduino Forum › Software › Interfacing › php Serial Class" href="http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1208451736" target="_blank">were</a> <a title="Archive for the Arduino ‘php’ Category" href="http://arduino.cc/blog/category/languages/php/" target="_blank">given</a> and stepped away with something that worked.</p>
<p><span id="more-252"></span>For many, The main draw to Titanium is that it will package back-end languages like Pearl, Ruby, or PHP into cross platform applications. With the power of google and these 3 languages we can easily fill whatever &#8220;gaps&#8221; that titanium may have. Luckily for me, Rémy Sanchez released <a title="php serial class" href="http://www.phpclasses.org/package/3679-PHP-Communicate-with-a-serial-port.html" target="_blank">his class</a> in PHP to communicate with the serial ports on mac + pc + *nix. Using Sanchez&#8217;s script as a basis, I started to play with serial communication &amp; PHP the mac.</p>
<h4><strong>This tutorial assumes that you have setup the Arduino IDE to upload sketches and have Titanium desktop installed. Here is the <a title="Arduino gettting started guide" href="http://www.arduino.cc/en/Guide/HomePage" target="_blank">Arduino getting started guide</a>, along with the <a title="Titanium getting started guide" href="http://developer.appcelerator.com/get_started" target="_blank">Titanium getting started guide</a>.</strong></h4>
<p>First things first, your Arduino needs something to report about right?. In our example the Arduino is going read from a photocell at the A0 pin, and output it to the serial port every second.</p>
<p>Here&#8217;s a quick wiring diagram, photocell with a 10kΩ resistor. For more info on using a photocell, please visit <a title="How to used photocell arduino" href="http://www.ladyada.net/learn/sensors/cds.html">this photocell tutorial</a>.</p>
<p><a id="img_photcell_v1" href="http://www.stefancrain.com/lab/arduino-titanium-communication-via-php/photcell_v1/" rel="attachment wp-att-332"><img class="alignnone size-full stefan-image-332" title="photcell_v1" src="http://www.stefancrain.com/assets/photcell_v1.png" alt="" width="940" height="362" /></a></p>
<h5>Here&#8217;s the <a title="arduino sketch hosted on github" href="https://github.com/stefancrain/Arduino-Titanium/blob/master/Part%201/AnalogReadSerial.pde">Arduino sketch</a> for this project. For now it&#8217;s really basic, I will be expanding on this in part II.</h5>
<p>Lets take a look at the sketch. In the setup() function we&#8217;re going to start the serial communications at 9600. Then our main programming goes into the loop() function. In the loop we read the A0 pin, print it to the serial, and wait for 1000ms.</p>
<p>Insert this code in your Arduino IDE, and upload it to your board and open up your serial monitor (there is a button for it, or a menu option, either works). In your serial monitor, make sure you set the baud rate to 9600, or you wont see anything.</p>
<p>If you don&#8217;t have a photocell or other sensor to read from, you can comment out the serial.println(sensorValue); line, and remove the comments on the Serial.println(&#8220;test&#8221;); line. That way you will still be posting some data for the Titanium app to see.</p>
<pre>/* AnalogReadSerial Reads an analog input on pin 0, prints the result to the serial monitor
This example code is in the public domain. */

void setup() {
Serial.begin(9600);
}

void loop() {
int sensorValue = analogRead(A0);
Serial.println(sensorValue);
//Serial.println('test');
delay(1000);
}</pre>
<p>If everything has worked correctly, your serial monitor should look something like this one.<br />
Easy? I was hoping you&#8217;d say so, &#8216;cuz here comes the complicated stuff.</p>
<h5>Please download the <a title="titanium and arduino communication on github" href="https://github.com/stefancrain/Arduino-Titanium/blob/master/Part%201/">Arduino Serial Titanium project,</a> in the comments it has better explanations of the functions that we will talk about later.</h5>
<p>Before we can build anything, we need to need to import this project into titanium. This part shouldn&#8217;t stump you, import has its own button. In the titanium project&#8217;s resources folder you should be able to see the following files:</p>
<h2>json.php</h2>
<p>This is the most important file in the titanium project<strong>. </strong>It&#8217;s the bridge between your app and the Arduino, it contains the settings you need to update for this application to return the contents of the your Arduinos serial output. Currently the json.php file is outputting the A0 value along with the current time in a json encoded array. We later use jQuery to load this array into a table in our titanium project.</p>
<pre>&lt;!--?php&lt;br /--&gt;
&lt;pre&gt;header('Content-type: application/json');
$serial = new phpSerial();

//Specify the serial port to use...
$serial-&gt;deviceSet('/dev/cu.usbserial-A800etjJ');

// leave this alone
$serial-&gt;confBaudRate(9600); //Baud rate: 9600
$serial-&gt;confParity('none');
$serial-&gt;confCharacterLength(8);
$serial-&gt;confStopBits(1);
$serial-&gt;confFlowControl('none');
$serial-&gt;deviceOpen();

sleep(2);
$read = $serial-&gt;readPort();
// trim it down, there was an 'n' at the end of it.
$read = (substr($read, 0, -2));

$serial-&gt;deviceClose();

date_default_timezone_set('America/New_York');

$time = date('D, d M Y H:i:s O');
$json = '{
'serialdata': [
{ 'A0':''.$read.'',
'date':''.$time.''
}
]
}';
echo $json;
?&gt;</pre>
<h4><strong><strong>You will need to know your Arduino&#8217;s serial port to get this to work correctly. This can be done using the Arduino IDE, From the menu selecting &#8220;Tools-&gt;SerialPort&#8221; will show you the serial port you are talking to the Arduino on. On windows it will look more like COM1, COM2, or COM3. In the Json.php file, replace the $serial-&gt;deviceSet(&#8221; &#8220;); value with your Arduino&#8217;s serial connection.</strong></strong></h4>
<p><strong><strong><br />
</strong></strong></p>
<h2>index.html</h2>
<p>In our index, we are using jQuery to call the json.php. It then parses the results from the Arduino&#8217;s response and adds them to our data table. Also note that in Titanium, we have to initialize the php_serial.class.php in a script tag rather then include it in the header of the json.php.</p>
<pre>Serial Monitor

&lt;!-- blueprint css --&gt;

&lt;!-- jQuery Minified --&gt;
&lt;script src="jquery-1.5.min.js" type="text/javascript"&gt;&lt;!--mce:0--&gt;&lt;/script&gt;

&lt;!-- Initialize php serial class --&gt;
&lt;script src="php_serial.class.php" type="text/php"&gt;&lt;!--mce:1--&gt;&lt;/script&gt;

&lt;table id="data" border="0"&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;A 0&lt;/th&gt;
&lt;th&gt;date&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;!-- content will go here --&gt;&lt;/tbody&gt;
&lt;/table&gt;

&lt;script type="text/javascript"&gt;&lt;/script&gt;</pre>
<p>And here is the final bare bones Titanium result:</p>
<p><a id="img_Example of connecting Arduino to Titanium Developer on a mac" href="http://www.stefancrain.com/lab/arduino-titanium-communication-via-php/screen-shot-2011-05-07-at-1-21-46-am-2/" rel="attachment wp-att-330"><img title="Example of connecting Arduino to Titanium Developer on a mac" src="http://www.stefancrain.com/assets/Screen-shot-2011-05-07-at-1.21.46-AM1.png" alt="" width="940" height="315" /></a></p>
<p>Over the next few weeks I plan on releasing 2-3 tutorials as I dive into Arduino &amp; titanium. Hopefully I&#8217;ll be able to get past the basic getting started guide and onto more advanced projects like using <a title="firmata" href="http://arduino.cc/en/Reference/Firmata">firmata</a> to build custom code based on user interaction.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stefancrain.com/lab/arduino-titanium-communication-via-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Columbo Growl Plugin</title>
		<link>http://www.stefancrain.com/portfolio/columbo-growl-plugin/</link>
		<comments>http://www.stefancrain.com/portfolio/columbo-growl-plugin/#comments</comments>
		<pubDate>Tue, 15 Mar 2011 02:24:14 +0000</pubDate>
		<dc:creator>stefancrain12</dc:creator>
		
		<guid isPermaLink="false">http://www.stefancrain.com/?post_type=portfolio&#038;p=101</guid>
		<description><![CDATA[Columbo Growl Plugin]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.stefancrain.com/assets/columbo%20growl.m4v">Columbo Growl Plugin</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.stefancrain.com/portfolio/columbo-growl-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Highrise php api interface</title>
		<link>http://www.stefancrain.com/lab/highrise-php-api-interface/</link>
		<comments>http://www.stefancrain.com/lab/highrise-php-api-interface/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 16:15:06 +0000</pubDate>
		<dc:creator>stefancrain12</dc:creator>
		
		<guid isPermaLink="false">http://dev.stefancrain.com/port/?post_type=lab&#038;p=254</guid>
		<description><![CDATA[With Push2Highrise.php as a building block, I&#8217;ve added functionality I recently needed to the open source Highrise API PHP class. Push2Highrise.php is a simple PHP wrapper which adds form submitted data from your webpage directly to Highrise CRM system. Using the Highrise API, the wrapper supports the creation of contacts, notes, tasks and deals. I&#8217;ve made changes to the following areas: Added The ability to attach new info to existing contacts. Added The ability to attach background info to contacts. Updated the search to look for people by email address, rather then first &#38; last name (how many James Smith&#8217;s do you know?) Corrected problems I was having with the &#8220;add notes&#8221; function. Examples This is my basic example of usage, I know it&#8217;s pretty minimal, but you can see how to add tags, notes, background info, update users, add &#8230; <a href="http://www.stefancrain.com/lab/highrise-php-api-interface/">Continued</a>]]></description>
			<content:encoded><![CDATA[<p>With <a title="Push2Highrise.php " href="http://101tec.com/en/open-source/highrise-api-wrapper" target="_blank">Push2Highrise.php</a> as a building block, I&#8217;ve added functionality I recently needed to the open source Highrise API PHP class.</p>
<blockquote><p>Push2Highrise.php is a simple PHP wrapper which adds form submitted data from your webpage directly to <a href="http://www.highrisehq.com">Highrise CRM system</a>. Using the Highrise API, the wrapper supports the creation of contacts, <span style="text-decoration: line-through;">notes</span>, tasks and deals.</p></blockquote>
<p>I&#8217;ve made changes to the following areas:</p>
<ol>
<li>Added The ability to attach new info to existing contacts.</li>
<li>Added The ability to attach background info to contacts.</li>
<li>Updated the search to look for people by email address, rather then first &amp; last name (how many <a title="Facebook James Smith Search" href="http://www.facebook.com/search.php?q=james%20smith">James Smith&#8217;s</a> do you know?)</li>
<li>Corrected problems I was having with the &#8220;add notes&#8221; function.</li>
</ol>
<p><span id="more-254"></span></p>
<h2><span style="text-decoration: underline;">Examples</span></h2>
<p>This is my basic example of usage, I know it&#8217;s pretty minimal, but you can see how to add tags, notes, background info, update users, add tasks. Im posting this because when I started, I couldn&#8217;t find any examples of how to use this script. I&#8217;m sure if more time was spent with it we could get a bunch more out of it, Highrise is awesome.<br />
<span style="text-decoration: underline;"><br />
</span></p>
<pre>&lt;!--?php include ('StefanCrains_Push2Highrise.php'); $Push = New Push_Highrise(); /// tags for highrise $tag1 = "New Contact on ".date("M Y"); $tag2 = "Added again on ".date("M Y"); // array for the contats info // staff_comment = the background info $INFO = array('sSubject' =--&gt; '', 'sEmail' =&gt; $BillingEmail, 'sFirstName' =&gt; 'first name', 'sLastName' =&gt; 'last name', 'sCompany' =&gt; '', 'sPhone' =&gt; 'phone #', 'sZip' =&gt; 'zip #', 'sCity' =&gt; 'city', 'sStreet' =&gt; 'street 1'.', '.'street 2', 'sState' =&gt; 'state', 'sCountry' =&gt; 'country', 'sNotes' =&gt; 'added via API', 'staff_comment'=&gt; 'added on '.date("M dS, Y @ H:i"));

// the first query to see if person is in highrise
$xml = ($Push-&gt;person_in_highrise($INFO));

if (($xml) &lt; 1){ 	// add new customer to highrise 	$Push-&gt;pushContact($INFO);

 // get the id of the person added
 $subject = ($Push-&gt;person_in_highrise($INFO));

 // add tag1 to the person
 $Push-&gt;pushTag($type, $subject, $tag1);

 // compose the note
 $Note = array('sPre' =&gt; 'first part of message', 'sSubject' =&gt; ' middle part ', 'sNotes' =&gt; ' last part', 'id'=&gt; $subject);

 // add the note to the person
 $Push-&gt;pushNote($Note);

} else { // if id &gt;1 we have returned the id of a person

 // we return a person
 $subject = $xml;

 // existing customer that has been added again to highrise
 $Push-&gt;updateContact($INFO, $subject);

 // add tag1 to the person
 $Push-&gt;pushTag($type, $subject, $tag2);

 // compose the note
 $Note = array('sPre' =&gt; 'first part of message', 'sSubject' =&gt; ' middle part ', 'sNotes' =&gt; ' last part', 'id'=&gt; $subject);

 // add the note to the person
 $Push-&gt;pushNote($Note);
};

?&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.stefancrain.com/lab/highrise-php-api-interface/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>bird &amp; brandy</title>
		<link>http://www.stefancrain.com/portfolio/bird-brandy/</link>
		<comments>http://www.stefancrain.com/portfolio/bird-brandy/#comments</comments>
		<pubDate>Fri, 12 Nov 2010 15:33:47 +0000</pubDate>
		<dc:creator>stefancrain12</dc:creator>
		
		<guid isPermaLink="false">http://www.stefancrain.com/?post_type=portfolio&#038;p=178</guid>
		<description><![CDATA[&#160;]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p><a id="img_birds-&amp;-brandy-main" href="http://www.stefancrain.com/assets/birds-brandy-main.png"><img class="alignleft size-large stefan-image-183" title="birds-&amp;-brandy-main" src="http://www.stefancrain.com/assets/birds-brandy-main-940x465.png" alt="" width="940" height="465" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.stefancrain.com/portfolio/bird-brandy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>00penguin</title>
		<link>http://www.stefancrain.com/portfolio/00penguin/</link>
		<comments>http://www.stefancrain.com/portfolio/00penguin/#comments</comments>
		<pubDate>Wed, 15 Sep 2010 00:05:48 +0000</pubDate>
		<dc:creator>stefancrain12</dc:creator>
		
		<guid isPermaLink="false">http://www.stefancrain.com/?post_type=portfolio&#038;p=81</guid>
		<description><![CDATA[&#160;]]></description>
			<content:encoded><![CDATA[<p><a id="00penguin iPhone Game" href="http://www.stefancrain.com/assets/00penguin.png"><img class="alignnone size-full wp-image-86" title="00Penguin Character concept " src="http://www.stefancrain.com/assets/00penguin.png" alt="" width="940" height="465" /></a></p>
<p><a id="img_00penguin_feature_1" href="http://www.stefancrain.com/assets/00penguin_feature_1.png"><img class="alignnone size-full wp-image-83" title="00Penguin Character concept " src="http://www.stefancrain.com/assets/00penguin_feature_1.png" alt="" width="465" height="300" /></a><a id="img_00penguin_feature_2" href="http://www.stefancrain.com/assets/00penguin_feature_2.png"><img class="alignnone size-full wp-image-85 two" title="00Penguin_feature_2" src="http://www.stefancrain.com/assets/00penguin_feature_2.png" alt="" width="465" height="300" /></a></p>
<p><a id="img_00penguin_hanging" href="http://www.stefancrain.com/assets/00penguin_hanging.png"><img class="alignnone size-full wp-image-87" title="00Penguin_hanging" src="http://www.stefancrain.com/assets/00penguin_hanging.png" alt="" width="940" height="550" /></a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stefancrain.com/portfolio/00penguin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

