<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Conor&#039;s Blog</title>
	<atom:link href="http://iamconor.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://iamconor.wordpress.com</link>
	<description>Gadgets, programming and general techie stuff</description>
	<lastBuildDate>Tue, 16 Mar 2010 08:24:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='iamconor.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Conor&#039;s Blog</title>
		<link>http://iamconor.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://iamconor.wordpress.com/osd.xml" title="Conor&#039;s Blog" />
	<atom:link rel='hub' href='http://iamconor.wordpress.com/?pushpress=hub'/>
		<item>
		<title>cURL and Twitter</title>
		<link>http://iamconor.wordpress.com/2010/01/28/curl-and-twitter/</link>
		<comments>http://iamconor.wordpress.com/2010/01/28/curl-and-twitter/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 21:05:11 +0000</pubDate>
		<dc:creator>Conor</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[cURL]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://iamconor.wordpress.com/?p=13</guid>
		<description><![CDATA[Thanks to the good people over at stackoverflow, I have discovered how to tweet from my linux server command line! &#160;I know there are probably lots of ways to do this by installing utilities etc. but I did it manually so I could understand how it worked, not just so that I could do it! [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iamconor.wordpress.com&amp;blog=6591321&amp;post=13&amp;subd=iamconor&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Thanks to the good people over at <a title="stackoverflow.com" href="http://www.stackoverflow.com" target="_blank">stackoverflow</a>, I have discovered how to tweet from my linux server command line! &nbsp;I know there are probably lots of ways to do this by installing utilities etc. but I did it manually so I could understand how it worked, not just so that I could do it! &nbsp;I already have <a title="TweetDeck" href="http://www.tweetdeck.com/" target="_blank">TweetDeck</a> on my iPhone so I don&#8217;t particularly need another way to tweet, but this is an intermediary step towards getting my server to tweet alerts. &nbsp;I&#8217;ll write another post when I&#8217;ve figured that one out but here&#8217;s the basics of tweeting from the bash prompt. &nbsp;Enjoy!</p>
<p>So, first things first, you need <a title="cURL" href="http://curl.haxx.se/" target="_blank">cURL </a>which formats the http request to the <a title="Twitter API" href="http://apiwiki.twitter.com/" target="_blank">Twitter API</a>. &nbsp;To install on Ubuntu (will probably work for most Debian systems) type the following into the command prompt:</p>
<p><span style="color:#339966;"><code>sudo apt-get install curl</code></span></p>
<p>Once the installation is complete, you need to create a shell function, I won&#8217;t cover the how&#8217;s and whys here but you can <a title="find out" href="http://tldp.org/LDP/abs/html/functions.html" target="_blank">find out</a> for yourself. &nbsp;Below are the contents of a file I named <code>tweet.sh</code> and placed in the directory <code>/home/conor/shell</code> on my linux server.</p>
<p><span style="color:#339966;"><code>#!/bin/bash<br />
function tweet {<br />
  curl -o /dev/null -s -u username:password -d status="$*" http://twitter.com/statuses/update.xml<br />
}</code></span></p>
<p>The twitter URL should be on the same line as the cURL command above, <code>username</code> and <code>password</code> are obviously your twitter username and password.  The switches <code>-o</code> and <code>-s</code> redirect the response and hide the status meter, respectively.  You can leave them out to see their effect if you like.</p>
<p>So, now you need to be able to trigger the function.  Edit your .bashrc file in your home directory and add a line near the end like the one below</p>
<p><span style="color:#339966;"><code>source shell/tweet.sh</code></span></p>
<p>You should already have other &#8216;source&#8217; lines in there so you can add it under these.  This loads the &#8216;tweet&#8217; command at login time, to load it now you can just type source ~shell/tweet.sh and that&#8217;s it, you&#8217;re done!  Now to tweet you can just type the following at the bash command line:</p>
<p><span style="color:#339966;"><code>tweet I'm tweeting from the command line!</code></span></p>
<p>Check your twitter page and your status should be updated, if it isn&#8217;t there immediately, wait a moment.  Sometimes Twitter is slooooow!</p>
<p>Hope you enjoyed this little tutorial, and I&#8217;ll be back when I&#8217;ve figured out how to make my server tweet by itself, till next time&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iamconor.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iamconor.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iamconor.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iamconor.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iamconor.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iamconor.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iamconor.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iamconor.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iamconor.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iamconor.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iamconor.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iamconor.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iamconor.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iamconor.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iamconor.wordpress.com&amp;blog=6591321&amp;post=13&amp;subd=iamconor&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iamconor.wordpress.com/2010/01/28/curl-and-twitter/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c64b3c51ecb7c7fcbe10372e1d73ec9c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Conor</media:title>
		</media:content>
	</item>
		<item>
		<title>Flex and Zend &#8211; For Beginners :)</title>
		<link>http://iamconor.wordpress.com/2009/02/28/flex-and-zend-for-beginners/</link>
		<comments>http://iamconor.wordpress.com/2009/02/28/flex-and-zend-for-beginners/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 01:08:59 +0000</pubDate>
		<dc:creator>Conor</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://iamconor.wordpress.com/?p=4</guid>
		<description><![CDATA[I&#8217;m near the start of my Flex learning path and after watching Lee Brimlows video I decided it would be cool to implement the new Zend Framework version with my Flex app since it is now the recommended way to implement remoting with Flex. It took some effort to actually get it working and now [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iamconor.wordpress.com&amp;blog=6591321&amp;post=4&amp;subd=iamconor&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m near the start of my Flex learning path and after watching Lee Brimlows <a href="http://www.gotoandlearn.com/play?id=90" target="_blank">video</a> I decided it would be cool to implement the new Zend Framework version with my Flex app since it is now the recommended way to implement remoting with Flex. It took some effort to actually get it working and now that it is working, I think it might be good of me to share my learning experiences with other flex newbies so we can all benefit, it is the spirit of open source after all, right?</p>
<p>So, let&#8217;s start with the Zend Framework itself.  <a href="http://framework.zend.com/download/latest" target="_blank">Download</a> the framework zip file, unzip it to your PC and have an FTP client at the ready.  So, assuming you&#8217;re connected to your hosting account for your site, upload the zend folder from the downloaded framework into the a folder called &#8216;frameworks&#8217; in the root folder of your hosting account.  It is important if you are following this example that you place the framework in the correct place.</p>
<p>That&#8217;s it!  Zend is now installed, so now you need to tell your Flex app where to look for the Zend files when it connects.  This is done with the index.php file.  So lets confirm your file structure:</p>
<p>Where &#8216;/&#8217; is your webroot folder you should have the following</p>
<p><span style="color:#339966;"><code>/frameworks/Zend</code></span></p>
<p><span style="color:#339966;"><code>/mySite/amf/index.php</code></span></p>
<p>in the index.php file you need the following contents</p>
<p><span style="color:#339966;"><code>error_reporting(E_ALL|E_STRICT);<br />
ini_set("display_errors", "on");<br />
ini_set("include_path", ini_get("include_path") . ":../../frameworks");</code><br />
<code><br />
require_once 'Zend/Amf/Server.php';<br />
require_once 'MyService.php';</code></span></p>
<p><span style="color:#339966;"><code>$server = new Zend_Amf_Server();<br />
//adding our class to Zend AMF Server<br />
$server-&gt;setClass("MyService");<br />
$server-&gt;setProduction(false);<br />
echo( $server -&gt; handle() );</code></span></p>
<p>This file is what brings the Zend framework into play.  Now, you also need a service file as referenced in your flex app.  Here is a copy of my service file, &#8216;MyService&#8217;.<br />
<code><br />
<span style="color:#339966;">class MyService<br />
{<br />
public function doSomething(){<br />
//do nothing for now<br />
}<br />
}</span></code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iamconor.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iamconor.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iamconor.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iamconor.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iamconor.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iamconor.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iamconor.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iamconor.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iamconor.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iamconor.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iamconor.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iamconor.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iamconor.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iamconor.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iamconor.wordpress.com&amp;blog=6591321&amp;post=4&amp;subd=iamconor&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iamconor.wordpress.com/2009/02/28/flex-and-zend-for-beginners/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c64b3c51ecb7c7fcbe10372e1d73ec9c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Conor</media:title>
		</media:content>
	</item>
		<item>
		<title>The opening ceremony</title>
		<link>http://iamconor.wordpress.com/2009/02/15/the-opening-ceremony/</link>
		<comments>http://iamconor.wordpress.com/2009/02/15/the-opening-ceremony/#comments</comments>
		<pubDate>Sun, 15 Feb 2009 12:22:13 +0000</pubDate>
		<dc:creator>Conor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://iamconor.wordpress.com/2009/02/15/the-opening-ceremony/</guid>
		<description><![CDATA[Well I decided to join the blogosphere&#8230; I&#8217;ll be mostly posting about Flex/Flash/PHP/Cocoa Touch etc and my trials and tribulations with them more to follow&#8230;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iamconor.wordpress.com&amp;blog=6591321&amp;post=3&amp;subd=iamconor&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Well I decided to join the blogosphere&#8230;  I&#8217;ll be mostly posting about Flex/Flash/PHP/Cocoa Touch etc and my trials and tribulations with them</p>
<p>more to follow&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iamconor.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iamconor.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iamconor.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iamconor.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iamconor.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iamconor.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iamconor.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iamconor.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iamconor.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iamconor.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iamconor.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iamconor.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iamconor.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iamconor.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iamconor.wordpress.com&amp;blog=6591321&amp;post=3&amp;subd=iamconor&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iamconor.wordpress.com/2009/02/15/the-opening-ceremony/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c64b3c51ecb7c7fcbe10372e1d73ec9c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Conor</media:title>
		</media:content>
	</item>
	</channel>
</rss>
