<?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>www.collazo.ws &#187; real life</title>
	<atom:link href="http://www.collazo.ws/category/real-life/feed" rel="self" type="application/rss+xml" />
	<link>http://www.collazo.ws</link>
	<description>A little nothing about something</description>
	<lastBuildDate>Tue, 30 Aug 2011 20:52:48 +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>Uploading to Rackspace Cloud Files with PHP</title>
		<link>http://www.collazo.ws/2011/08/30/uploading-to-rackspace-cloud-files-with-php</link>
		<comments>http://www.collazo.ws/2011/08/30/uploading-to-rackspace-cloud-files-with-php#comments</comments>
		<pubDate>Tue, 30 Aug 2011 20:50:25 +0000</pubDate>
		<dc:creator>robert</dc:creator>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Rackspace]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[files]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[rackspace]]></category>

		<guid isPermaLink="false">http://www.collazo.ws/?p=1104</guid>
		<description><![CDATA[<a href="http://www.collazo.ws/2011/08/30/uploading-to-rackspace-cloud-files-with-php" title="Uploading to Rackspace Cloud Files with PHP"></a>Someone recently asked me if I knew of a web based uploader that returned the Akamai CDN URL of the file. I looked around and found this site but it wasn&#8217;t quite what was wanted. I decided to edit the &#8230;<p class="read-more"><a href="http://www.collazo.ws/2011/08/30/uploading-to-rackspace-cloud-files-with-php">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.collazo.ws/2011/08/30/uploading-to-rackspace-cloud-files-with-php" title="Uploading to Rackspace Cloud Files with PHP"></a><p>Someone recently asked me if I knew of a web based uploader that returned the Akamai CDN URL of the file. I looked around and found <a target="_blank" href="http://www.thetutorialblog.com/php/uploading-files-to-rackspace-cloud-mosso-using-php-api/" title="Tutorial on uploading files to Rackspace Cloud using the PHP API" target="_blank">this site</a> but it wasn&#8217;t quite what was wanted. I decided to edit the code in the example from that site and came up with this.<br />
<span id="more-1104"></span><br />
First, you&#8217;ll need the PHP bindings for Rackspace Cloud Files. They can be found <a target="_blank" href="https://github.com/rackspace/php-cloudfiles" title="Github link to PHP bindings for Rackspace Cloud Files API" target="_blank">here</a>. You&#8217;ll need to put the files cloudfiles.php, cloudfiles_http.php, and cloudfiles_exceptions.php in directory on your web server.</p>
<p>Next, save the following code as &#8220;index.html&#8221;:</p>
<div class="geshi html4strict">
<div class="head"><strong>&#8220;index.html&#8221;</strong></div>
<ol>
<li class="li1">
<div class="de1"><span class="sc0">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="sc2"><span class="kw2">&lt;html</span> xmlns<span class="sy0">=</span><span class="st0">&quot;http://www.w3.org/1999/xhtml&quot;</span><span class="kw2">&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1"><span class="sc2"><span class="kw2">&lt;head&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1"><span class="sc2"><span class="kw2">&lt;title&gt;</span></span>Upload to Rackspace Cloud Files<span class="sc2"><span class="kw2">&lt;/title&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1"><span class="sc2"><span class="kw2">&lt;meta</span> <span class="kw3">http-equiv</span><span class="sy0">=</span><span class="st0">&quot;Content-type&quot;</span> <span class="kw3">content</span><span class="sy0">=</span><span class="st0">&quot;text/html;charset=UTF-8&quot;</span> <span class="sy0">/</span><span class="kw2">&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1"><span class="sc2"><span class="kw2">&lt;/head&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1"><span class="sc2"><span class="kw2">&lt;body&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1"><span class="sc2"><span class="kw2">&lt;form</span> <span class="kw3">action</span><span class="sy0">=</span><span class="st0">&quot;upload.php&quot;</span> <span class="kw3">enctype</span><span class="sy0">=</span><span class="st0">&quot;multipart/form-data&quot;</span> <span class="kw3">method</span><span class="sy0">=</span><span class="st0">&quot;POST&quot;</span><span class="kw2">&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; Username: <span class="sc2"><span class="kw2">&lt;input</span> <span class="kw3">name</span><span class="sy0">=</span><span class="st0">&quot;username&quot;</span> <span class="kw3">type</span><span class="sy0">=</span><span class="st0">&quot;text&quot;</span> <span class="sy0">/</span><span class="kw2">&gt;</span></span><span class="sc2"><span class="kw2">&lt;br</span> <span class="sy0">/</span><span class="kw2">&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; Key: <span class="sc2"><span class="kw2">&lt;input</span> <span class="kw3">name</span><span class="sy0">=</span><span class="st0">&quot;key&quot;</span> <span class="kw3">type</span><span class="sy0">=</span><span class="st0">&quot;password&quot;</span> <span class="sy0">/</span><span class="kw2">&gt;</span></span><span class="sc2"><span class="kw2">&lt;br</span> <span class="sy0">/</span><span class="kw2">&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; Container: <span class="sc2"><span class="kw2">&lt;input</span> <span class="kw3">name</span><span class="sy0">=</span><span class="st0">&quot;container&quot;</span> <span class="kw3">type</span><span class="sy0">=</span><span class="st0">&quot;text&quot;</span> <span class="sy0">/</span><span class="kw2">&gt;</span></span> <span class="sc2"><span class="kw2">&lt;br</span> <span class="sy0">/</span><span class="kw2">&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; File: <span class="sc2"><span class="kw2">&lt;input</span> <span class="kw3">name</span><span class="sy0">=</span><span class="st0">&quot;upload&quot;</span> <span class="kw3">type</span><span class="sy0">=</span><span class="st0">&quot;file&quot;</span> <span class="sy0">/</span><span class="kw2">&gt;</span></span><span class="sc2"><span class="kw2">&lt;br</span> <span class="sy0">/</span><span class="kw2">&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; <span class="sc2"><span class="kw2">&lt;input</span> <span class="kw3">name</span><span class="sy0">=</span><span class="st0">&quot;submit&quot;</span> <span class="kw3">type</span><span class="sy0">=</span><span class="st0">&quot;submit&quot;</span> <span class="kw3">value</span><span class="sy0">=</span><span class="st0">&quot;Upload To Rackspace!&quot;</span> <span class="sy0">/</span><span class="kw2">&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1"><span class="sc2"><span class="kw2">&lt;/form&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1"><span class="sc2"><span class="kw2">&lt;/body&gt;</span></span></div>
</li>
<li class="li1">
<div class="de1"><span class="sc2"><span class="kw2">&lt;/html&gt;</span></span></div>
</li>
</ol>
</div>
<p>After that is saved, create a new file called &#8220;upload.php&#8221; and save the following:</p>
<div class="geshi php">
<div class="head"><strong>&#8220;upload.php&#8221;</strong></div>
<ol>
<li class="li1">
<div class="de1"><span class="kw2">&lt;?php</span></div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// Turn on error reporting so we can see if there are any problems</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">error_reporting</span><span class="br0">&#40;</span><span class="kw2">E_ALL</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">ini_set</span><span class="br0">&#40;</span><span class="st0">&#39;display_errors&#39;</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// include the API</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">require</span><span class="br0">&#40;</span><span class="st0">&#39;cloudfiles.php&#39;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// cloud info</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re1">$username</span> <span class="sy0">=</span> <span class="re1">$_POST</span><span class="br0">&#91;</span><span class="st0">&#39;username&#39;</span><span class="br0">&#93;</span><span class="sy0">;</span> <span class="co1">// username</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re1">$key</span> <span class="sy0">=</span> <span class="re1">$_POST</span><span class="br0">&#91;</span><span class="st0">&#39;key&#39;</span><span class="br0">&#93;</span><span class="sy0">;</span> <span class="co1">// api key</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re1">$container</span> <span class="sy0">=</span> <span class="re1">$_POST</span><span class="br0">&#91;</span><span class="st0">&#39;container&#39;</span><span class="br0">&#93;</span><span class="sy0">;</span> <span class="co1">// container name</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">ob_start</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// Print some information regarding who and where</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;Username: $username&lt;br/&gt;&quot;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;Container: $container&lt;br/&gt;&quot;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="re1">$localfile</span> <span class="sy0">=</span> <span class="re1">$_FILES</span><span class="br0">&#91;</span><span class="st0">&#39;upload&#39;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#39;tmp_name&#39;</span><span class="br0">&#93;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re1">$filename</span> <span class="sy0">=</span> <span class="re1">$_FILES</span><span class="br0">&#91;</span><span class="st0">&#39;upload&#39;</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st0">&#39;name&#39;</span><span class="br0">&#93;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// Print some information about the file</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;Local: $localfile&lt;br/&gt;&quot;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;File : $filename&lt;br/&gt;&quot;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">ob_flush</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// Connect to Rackspace</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re1">$auth</span> <span class="sy0">=</span> <span class="kw2">new</span> CF_Authentication<span class="br0">&#40;</span><span class="re1">$username</span><span class="sy0">,</span> <span class="re1">$key</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re1">$auth</span><span class="sy0">-&gt;</span><span class="me1">authenticate</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re1">$conn</span> <span class="sy0">=</span> <span class="kw2">new</span> CF_Connection<span class="br0">&#40;</span><span class="re1">$auth</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// Get the container we want to use</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re1">$container</span> <span class="sy0">=</span> <span class="re1">$conn</span><span class="sy0">-&gt;</span><span class="me1">create_container</span><span class="br0">&#40;</span><span class="re1">$container</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// store file information</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">ob_flush</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="co1">// upload file to Rackspace</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re1">$object</span> <span class="sy0">=</span> <span class="re1">$container</span><span class="sy0">-&gt;</span><span class="me1">create_object</span><span class="br0">&#40;</span><span class="re1">$filename</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re1">$object</span><span class="sy0">-&gt;</span><span class="me1">load_from_filename</span><span class="br0">&#40;</span><span class="re1">$localfile</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="re1">$uri</span> <span class="sy0">=</span> <span class="re1">$container</span><span class="sy0">-&gt;</span><span class="me1">make_public</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">print</span> <span class="st0">&quot;Your URL is: &quot;</span> <span class="sy0">.</span> <span class="re1">$object</span><span class="sy0">-&gt;</span><span class="me1">public_uri</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">ob_end_flush</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">?&gt;</span></div>
</li>
</ol>
</div>
<p>The important part is on line 46 that contains &#8220;$object->public_uri();&#8221;. That is function in the API binding that returns the objects URL.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.collazo.ws/2011/08/30/uploading-to-rackspace-cloud-files-with-php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Rackspace DNSaaS with curl (part 1)</title>
		<link>http://www.collazo.ws/2011/07/08/using-rackspace-dnsaas-with-curl-part-1</link>
		<comments>http://www.collazo.ws/2011/07/08/using-rackspace-dnsaas-with-curl-part-1#comments</comments>
		<pubDate>Fri, 08 Jul 2011 20:35:02 +0000</pubDate>
		<dc:creator>robert</dc:creator>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Rackspace]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[dnsaas]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[rackspace]]></category>

		<guid isPermaLink="false">http://www.collazo.ws/?p=1074</guid>
		<description><![CDATA[<a href="http://www.collazo.ws/2011/07/08/using-rackspace-dnsaas-with-curl-part-1" title="Using Rackspace DNSaaS with curl (part 1)"></a>With the release of Rackspace DNSaaS (blog post here), I thought I would put together some examples of using curl with the service. With this release, you now have programmatic access to DNS via the API where you can set &#8230;<p class="read-more"><a href="http://www.collazo.ws/2011/07/08/using-rackspace-dnsaas-with-curl-part-1">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.collazo.ws/2011/07/08/using-rackspace-dnsaas-with-curl-part-1" title="Using Rackspace DNSaaS with curl (part 1)"></a><p>With the release of <a target="_blank" href="http://www.rackspace.com/cloud/cloud_hosting_products/dns/" title="Rackspace DNSaaS" target="_blank">Rackspace DNSaaS</a> (blog post <a target="_blank" href="http://www.rackspace.com/cloud/blog/2011/07/07/rackspace-cloud-dns-beta-now-available-for-us-uk-cloud-customers/" title="Rackspace Blog Post about DNSaaS" target="_blank">here</a>), I thought I would put together some examples of using curl with the service. With this release, you now have programmatic access to DNS via the <a target="_blank" href="http://docs.rackspace.com/api/" title="Rackspace API documentation" target="_blank">API</a> where you can set TTLs, create and delete various record types, and create and delete domains.<br />
<span id="more-1074"></span></p>
<h3>Authentication</h3>
<p>First, you&#8217;ll have to authenticate. To do this, you will need your API key and username.</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1">$ curl -D &#8211; -H <span class="st0">&quot;X-Auth-Key: yourAPIKey&quot;</span> -H <span class="st0">&quot;X-Auth-User: yourUsername&quot;</span> https:<span class="sy0">//</span>auth.api.rackspacecloud.com<span class="sy0">/</span>v1<span class="nu0">.0</span></div>
</li>
</ol>
</div>
<p>You should receive the following response:</p>
<pre class="qoate-code">
HTTP/1.1 204 No Content
Server: Apache/2.2.3 (Mosso Engineering)
X-Storage-Url: https://storage101.dfw1.clouddrive.com/v1/yourAccountHash
Content-Type: application/octet-stream
Date: Date and Time
X-Auth-Token: yourAuthToken
X-Storage-Token: yourStorageToken
X-Server-Management-Url: https://servers.api.rackspacecloud.com/v1.0/yourAccountNumber
Connection: Keep-Alive
X-CDN-Management-Url: https://cdn1.clouddrive.com/v1/yourAccountHash
Content-Length: 0
</pre>
<h3>Listing Domain Information</h3>
<p>To see a list of your current domains, run the following command. Don&#8217;t forget to replace your auth token and account number.</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1">$ curl -X GET -H <span class="st0">&quot;X-Auth-Token: yourAuthToken&quot;</span> -H <span class="st0">&quot;Accept: application/xml&quot;</span> https:<span class="sy0">//</span>dns.api.rackspacecloud.com<span class="sy0">/</span>v1<span class="nu0">.0</span><span class="sy0">/</span>yourAccountNumber<span class="sy0">/</span>domains</div>
</li>
</ol>
</div>
<p>Your output will be XML formatted and look like:</p>
<pre class="qoate-code">
&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
&lt;domains xmlns="http://docs.rackspacecloud.com/dns/api/v1.0" xmlns:ns2="http://www.w3.org/2005/Atom" xmlns:ns3="http://docs.rackspacecloud.com/dns/api/management/v1.0" totalEntries="2"&gt;
    &lt;domain id="1697941" accountId="yourAccountNumber" name="collazo.ws" updated="2011-06-28T04:18:17Z" created="2009-12-11T01:01:26Z" /&gt;
    &lt;domain id="4062964" accountId="yourAccountNumber" name="deployitron.com" updated="2011-03-19T08:10:31Z" created="2011-01-21T23:24:44Z" /&gt;
&lt;/domains&gt;
</pre>
<p>To see the same thing formatted as JSON output, run the following:</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1">$ curl -X GET -H <span class="st0">&quot;X-Auth-Token: yourAuthToken&quot;</span> -H <span class="st0">&quot;Accept: application/json&quot;</span> https:<span class="sy0">//</span>dns.api.rackspacecloud.com<span class="sy0">/</span>v1<span class="nu0">.0</span><span class="sy0">/</span>yourAccountNumber<span class="sy0">/</span>domains</div>
</li>
</ol>
</div>
<pre class="qoate-code">
{
   "domains":[
      {
         "name":"collazo.ws",
         "id":1697941,
         "accountId":yourAccountNumber,
         "updated":"2011-06-28T04:18:17.000+0000",
         "created":"2009-12-11T01:01:26.000+0000"
      },
      {
         "name":"deployitron.com",
         "id":4062964,
         "accountId":yourAccountNumber,
         "updated":"2011-03-19T08:10:31.000+0000",
         "created":"2011-01-21T23:24:44.000+0000"
      }
   ],
   "totalEntries":2
}
</pre>
<p>To get details about a particular domain, you&#8217;ll enter the following:</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1">$ curl -X GET -H <span class="st0">&quot;X-Auth-Token: yourAuthToken&quot;</span> -H <span class="st0">&quot;Accept: application/xml&quot;</span> https:<span class="sy0">//</span>dns.api.rackspacecloud.com<span class="sy0">/</span>v1<span class="nu0">.0</span><span class="sy0">/</span>yourAccountNumber<span class="sy0">/</span>domains<span class="sy0">/</span><span class="nu0">4062964</span> <span class="co0"># &lt;- make sure you replace this with your domain ID</span></div>
</li>
</ol>
</div>
<p>This will output the following in XML format:</p>
<pre class="qoate-code">
&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
&lt;domain xmlns="http://docs.rackspacecloud.com/dns/api/v1.0" xmlns:ns2="http://www.w3.org/2005/Atom" xmlns:ns3="http://docs.rackspacecloud.com/dns/api/management/v1.0" id="4062964" accountId="yourAccountNumber" name="deployitron.com" ttl="3600" emailAddress="ipadmin@stabletransit.com" updated="2011-03-19T08:10:31Z" created="2011-01-21T23:24:44Z"&gt;
    &lt;nameservers&gt;
        &lt;nameserver name="ns.rackspace.com" /&gt;
        &lt;nameserver name="ns1.rackspace.com" /&gt;
    &lt;/nameservers&gt;
    &lt;recordsList totalEntries="5"&gt;
        &lt;record id="A-1234567" type="A" name="deployitron.com" data="174.143.174.233" ttl="3600" updated="2011-01-22T11:28:10Z" created="2011-01-22T11:28:10Z" /&gt;
        &lt;record id="NS-2345678" type="NS" name="deployitron.com" data="dns1.stabletransit.com" ttl="3600" updated="2011-01-21T23:24:44Z" created="2011-01-21T23:24:44Z" /&gt;
        &lt;record id="NS-2345680" type="NS" name="deployitron.com" data="dns2.stabletransit.com" ttl="3600" updated="2011-01-21T23:24:44Z" created="2011-01-21T23:24:44Z" /&gt;
        &lt;record id="CNAME-4567890" type="CNAME" name="www.deployitron.com" data="deployitron.com" ttl="3600" updated="2011-01-22T11:30:35Z" created="2011-01-22T11:30:35Z" /&gt;
        &lt;record id="CNAME-5678901" type="CNAME" name="www2.deployitron.com" data="deployitron.com" ttl="600" updated="2011-03-19T08:10:31Z" created="2011-03-19T08:10:31Z" /&gt;
    &lt;/recordsList&gt;
&lt;/domain&gt;
</pre>
<p>To get the same thing JSON formatted:</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1">$ curl -X GET -H <span class="st0">&quot;X-Auth-Token: yourAuthToken&quot;</span> -H <span class="st0">&quot;Accept: application/json&quot;</span> https:<span class="sy0">//</span>dns.api.rackspacecloud.com<span class="sy0">/</span>v1<span class="nu0">.0</span><span class="sy0">/</span>yourAccountNumber<span class="sy0">/</span>domains<span class="sy0">/</span><span class="nu0">4062964</span></div>
</li>
</ol>
</div>
<pre class="qoate-code">
{
   "name":"deployitron.com",
   "id":4062964,
   "accountId":yourAccountNumber,
   "nameservers":[
      {
         "name":"ns.rackspace.com"
      },
      {
         "name":"ns1.rackspace.com"
      }
   ],
   "updated":"2011-03-19T08:10:31.000+0000",
   "ttl":3600,
   "recordsList":{
      "records":[
         {
            "name":"deployitron.com",
            "id":"A-1234567",
            "type":"A",
            "data":"174.143.174.233",
            "updated":"2011-01-22T11:28:10.000+0000",
            "ttl":3600,
            "created":"2011-01-22T11:28:10.000+0000"
         },
         {
            "name":"deployitron.com",
            "id":"NS-2345678",
            "type":"NS",
            "data":"dns1.stabletransit.com",
            "updated":"2011-01-21T23:24:44.000+0000",
            "ttl":3600,
            "created":"2011-01-21T23:24:44.000+0000"
         },
         {
            "name":"deployitron.com",
            "id":"NS-2345680",
            "type":"NS",
            "data":"dns2.stabletransit.com",
            "updated":"2011-01-21T23:24:44.000+0000",
            "ttl":3600,
            "created":"2011-01-21T23:24:44.000+0000"
         },
         {
            "name":"www.deployitron.com",
            "id":"CNAME-4567890",
            "type":"CNAME",
            "data":"deployitron.com",
            "updated":"2011-01-22T11:30:35.000+0000",
            "ttl":3600,
            "created":"2011-01-22T11:30:35.000+0000"
         },
         {
            "name":"www2.deployitron.com",
            "id":"CNAME-5678901",
            "type":"CNAME",
            "data":"deployitron.com",
            "updated":"2011-03-19T08:10:31.000+0000",
            "ttl":600,
            "created":"2011-03-19T08:10:31.000+0000"
         }
      ],
      "totalEntries":5
   },
   "emailAddress":"ipadmin@stabletransit.com",
   "created":"2011-01-21T23:24:44.000+0000"
}
</pre>
<h3>Creating Domains</h3>
<p>To create a domain, we issue the following JSON formatted command:</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1">$ curl -D &#8211; -X POST -d <span class="st0">&#39;{ &quot;domains&quot;:[ { &quot;name&quot;:&quot;aeVo8AiHeesh.ws&quot;, &quot;emailAddress&quot;:&quot;robert@aeVo8AiHeesh.ws&quot;, &quot;comment&quot;:&quot;This is the first domain created via API&quot;, &quot;recordsList&quot;: { &quot;records&quot;:[ { &quot;ttl&quot;:600, &quot;data&quot;:&quot;127.0.0.1&quot;, &quot;name&quot;:&quot;aeVo8AiHeesh.ws&quot;, &quot;type&quot;:&quot;A&quot; },{ &quot;priority&quot;: 10, &quot;ttl&quot;:86400, &quot;data&quot;:&quot;mail.aeVo8AiHeesh.ws&quot;, &quot;name&quot;:&quot;aeVo8AiHeesh.ws&quot;, &quot;type&quot;:&quot;MX&quot; },{ &quot;ttl&quot;:300, &quot;data&quot;:&quot;v=spf1 mx -all&quot;, &quot;name&quot;:&quot;aeVo8AiHeesh.ws&quot;, &quot;type&quot;:&quot;TXT&quot; } ] } } ] }&#39;</span> -H <span class="st0">&quot;X-Auth-Token: yourAuthToken&quot;</span> -H <span class="st0">&quot;Content-Type: application/json&quot;</span> https:<span class="sy0">//</span>dns.api.rackspacecloud.com<span class="sy0">/</span>v1<span class="nu0">.0</span><span class="sy0">/</span>yourAccountNumber<span class="sy0">/</span>domains</div>
</li>
</ol>
</div>
<p>And the following is returned:</p>
<pre class="qoate-code">
HTTP/1.1 202 Accepted
X-API-VERSION: 1.0.8
Content-Type: application/json
Date: Fri, 08 Jul 2011 15:18:12 GMT
Content-Length: 155
Server: Jetty(7.3.1.v20110307)

{"jobId":"yourJobID","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/yourAccountNumber/status/yourJobID"}
</pre>
<p>It&#8217;s important to note your job ID so that you can check the status of your job by issuing the following command:</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1">$ curl -X GET -H <span class="st0">&quot;X-Auth-Token: yourAuthToken&quot;</span> -H <span class="st0">&quot;Accept: application/json&quot;</span> https:<span class="sy0">//</span>dns.api.rackspacecloud.com<span class="sy0">/</span>v1<span class="nu0">.0</span><span class="sy0">/</span>yourAccountNumber<span class="sy0">/</span>status<span class="sy0">/</span>yourJobID</div>
</li>
</ol>
</div>
<p>If your job completed successfully, you should see something similar to the following:</p>
<pre class="qoate-code">
{"domains":[{"name":"aevo8aiheesh.ws","id":2841222,"comment":"This is the first domain created via API","accountId":yourAccountNumber,"nameservers":[{"name":"ns.rackspace.com"},{"name":"ns1.rackspace.com"}],"updated":"2011-07-08T15:21:46.000+0000","ttl":3600,"recordsList":{"records":[{"name":"aevo8aiheesh.ws","id":"A-7088731","type":"A","data":"127.0.0.1","updated":"2011-07-08T15:21:47.000+0000","ttl":600,"created":"2011-07-08T15:21:47.000+0000"},{"name":"aevo8aiheesh.ws","id":"MX-3272903","priority":10,"type":"MX","data":"mail.aeVo8AiHeesh.ws","updated":"2011-07-08T15:21:48.000+0000","ttl":86400,"created":"2011-07-08T15:21:48.000+0000"},{"name":"aevo8aiheesh.ws","id":"TXT-243256","type":"TXT","data":"v=spf1 mx -all","updated":"2011-07-08T15:21:49.000+0000","ttl":300,"created":"2011-07-08T15:21:49.000+0000"}]},"emailAddress":"robert@aeVo8AiHeesh.ws","created":"2011-07-08T15:21:45.000+0000"}]}
</pre>
<p>I see that it was created and I can verify via dig by running:</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1">$ dig aevo8aiheesh.ws <span class="sy0">@</span>ns.rackspace.com any</div>
</li>
</ol>
</div>
<p>Which returns:</p>
<pre class="qoate-code">
; &lt;&lt;&gt;&gt; DiG 9.6.0-APPLE-P2 &lt;&lt;&gt;&gt; aevo8aiheesh.ws @ns.rackspace.com any
;; global options: +cmd
;; Got answer:
;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 40475
;; flags: qr aa rd; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 2
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;aevo8aiheesh.ws.               IN      ANY

;; ANSWER SECTION:
aevo8aiheesh.ws.        3600    IN      SOA     ns1.rackspace.com. robert.aevo8aiheesh.ws. 1310138509 3600 3600 3600 3600
aevo8aiheesh.ws.        86400   IN      MX      10 mail.aevo8aiheesh.ws.
aevo8aiheesh.ws.        3600    IN      NS      dns1.stabletransit.com.
aevo8aiheesh.ws.        3600    IN      NS      dns2.stabletransit.com.
aevo8aiheesh.ws.        300     IN      TXT     "v=spf1 mx -all"
aevo8aiheesh.ws.        600     IN      A       127.0.0.1

;; ADDITIONAL SECTION:
dns1.stabletransit.com. 86400   IN      A       69.20.95.4
dns2.stabletransit.com. 86400   IN      A       65.61.188.4

;; Query time: 35 msec
;; SERVER: 69.20.95.4#53(69.20.95.4)
;; WHEN: Fri Jul  8 10:45:38 2011
;; MSG SIZE  rcvd: 241
</pre>
<p>We can accomplish the same thing via XML by running the following:</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1">$ curl -D - -X POST -d <span class="st0">&#39;&lt;domains xmlns=&quot;http://docs.rackspacecloud.com/dns/api/v1.0&quot;&gt;&lt;domain name=&quot;paingeez7uec.com&quot; ttl=&quot;5600&quot; emailAddress=&quot;robert@paingeez7uec.com&quot; comment=&quot;This is the second domain created via API&quot;&gt;&lt;recordsList&gt;&lt;record type=&quot;A&quot; data=&quot;127.0.0.1&quot; name=&quot;paingeez7uec.com&quot;/&gt;&lt;record type=&quot;MX&quot; data=&quot;mail.paingeez7uec.com&quot; priority=&quot;10&quot; ttl=&quot;5000&quot; name=&quot;paingeez7uec.com&quot;/&gt;&lt;record type=&quot;TXT&quot; data=&quot;v=spf1 mx -all&quot; name=&quot;paingeez7uec.com&quot; ttl=&quot;600&quot;/&gt;&lt;/recordsList&gt;&lt;/domain&gt;&lt;/domains&gt;&#39;</span> -H <span class="st0">&quot;X-Auth-Token: yourAuthToken&quot;</span> -H <span class="st0">&quot;Content-Type: application/xml&quot;</span> https:<span class="sy0">//</span>dns.api.rackspacecloud.com<span class="sy0">/</span>v1<span class="nu0">.0</span><span class="sy0">/</span>yourAccountID<span class="sy0">/</span>domains</div>
</li>
</ol>
</div>
<p>Which outputs:</p>
<pre class="qoate-code">
HTTP/1.1 202 Accepted
X-API-VERSION: 1.0.8
Content-Type: application/json
Date: Fri, 08 Jul 2011 19:35:22 GMT
Content-Length: 155
Server: Jetty(7.3.1.v20110307)

{"jobId":"yourJobID","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/yourAccountNumber/status/yourJobID"}
</pre>
<p>Checking the status:</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1">$ curl -X GET -H <span class="st0">&quot;X-Auth-Token: yourAuthToken&quot;</span> -H <span class="st0">&quot;Accept: application/xml&quot;</span> https:<span class="sy0">//</span>dns.api.rackspacecloud.com<span class="sy0">/</span>v1<span class="nu0">.0</span><span class="sy0">/</span>yourAccountID<span class="sy0">/</span>status<span class="sy0">/</span>yourJobID</div>
</li>
</ol>
</div>
<p>Which returns:</p>
<pre class="qoate-code">
&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;&lt;domains xmlns="http://docs.rackspacecloud.com/dns/api/v1.0" xmlns:ns2="http://www.w3.org/2005/Atom" xmlns:ns3="http://docs.rackspacecloud.com/dns/api/management/v1.0"&gt;&lt;domain id="2841642" accountId="yourAccountID" name="paingeez7uec.com" ttl="5600" emailAddress="robert@paingeez7uec.com" updated="2011-07-08T19:35:23Z" created="2011-07-08T19:35:23Z" comment="This is the second domain created via API"&gt;&lt;nameservers&gt;&lt;nameserver name="ns.rackspace.com"/&gt;&lt;nameserver name="ns1.rackspace.com"/&gt;&lt;/nameservers&gt;&lt;recordsList&gt;&lt;record id="A-7089765" type="A" name="paingeez7uec.com" data="127.0.0.1" ttl="5600" updated="2011-07-08T19:35:24Z" created="2011-07-08T19:35:24Z"/&gt;&lt;record id="MX-3274128" type="MX" name="paingeez7uec.com" data="mail.paingeez7uec.com" ttl="5000" priority="10" updated="2011-07-08T19:35:25Z" created="2011-07-08T19:35:25Z"/&gt;&lt;record id="TXT-243385" type="TXT" name="paingeez7uec.com" data="v=spf1 mx -all" ttl="600" updated="2011-07-08T19:35:26Z" created="2011-07-08T19:35:26Z"/&gt;&lt;/recordsList&gt;&lt;/domain&gt;&lt;/domains&gt;
</pre>
<p>To verify the domain exists via dig:</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1">$ dig paingeez7uec.com <span class="sy0">@</span>ns.rackspace.com any</div>
</li>
</ol>
</div>
<p>Which outputs:</p>
<pre class="qoate-code">
; &lt;&lt;&gt;&gt; DiG 9.6.0-APPLE-P2 &lt;&lt;&gt;&gt; paingeez7uec.com @ns.rackspace.com any
;; global options: +cmd
;; Got answer:
;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 45478
;; flags: qr aa rd; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 2
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;paingeez7uec.com.              IN      ANY

;; ANSWER SECTION:
paingeez7uec.com.       5600    IN      SOA     ns1.rackspace.com. robert.paingeez7uec.com. 1310153726 5600 5600 5600 5600
paingeez7uec.com.       5000    IN      MX      10 mail.paingeez7uec.com.
paingeez7uec.com.       5600    IN      NS      dns1.stabletransit.com.
paingeez7uec.com.       5600    IN      NS      dns2.stabletransit.com.
paingeez7uec.com.       600     IN      TXT     "v=spf1 mx -all"
paingeez7uec.com.       5600    IN      A       127.0.0.1

;; ADDITIONAL SECTION:
dns1.stabletransit.com. 86400   IN      A       69.20.95.4
dns2.stabletransit.com. 86400   IN      A       65.61.188.4

;; Query time: 42 msec
;; SERVER: 69.20.95.4#53(69.20.95.4)
;; WHEN: Fri Jul  8 14:49:55 2011
;; MSG SIZE  rcvd: 239
</pre>
<p>Now you can create domains in using both JSON and XML formatted responses.</p>
<h3>Deleting Domains</h3>
<p>To delete a domain using curl follow these simple steps. You will need your account ID (yourAccountID in previous examples) and the domain ID from a domain list.</p>
<p>JSON:</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1">$ curl -X DELETE -H <span class="st0">&quot;X-Auth-Token: yourAuthToken&quot;</span> -H <span class="st0">&quot;Accept: application/json&quot;</span> https:<span class="sy0">//</span>dns.api.rackspacecloud.com<span class="sy0">/</span>v1<span class="nu0">.0</span><span class="sy0">/</span>yourAccountID<span class="sy0">/</span>domains<span class="sy0">/</span><span class="nu0">2841222</span></div>
</li>
</ol>
</div>
<pre class="qoate-code">
{"jobId":"yourJobID","callbackUrl":"https://dns.api.rackspacecloud.com/v1.0/yourAccountID/status/yourJobID"}
</pre>
<p>XML:</p>
<div class="geshi no bash">
<ol>
<li class="li1">
<div class="de1">$ curl -X DELETE -H <span class="st0">&quot;X-Auth-Token: yourAuthToken&quot;</span> -H <span class="st0">&quot;Accept: application/xml&quot;</span> https:<span class="sy0">//</span>dns.api.rackspacecloud.com<span class="sy0">/</span>v1<span class="nu0">.0</span><span class="sy0">/</span>yourAccountID<span class="sy0">/</span>domains<span class="sy0">/</span><span class="nu0">2841642</span></div>
</li>
</ol>
</div>
<pre class="qoate-code">
&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;&lt;asyncResponse xmlns="http://docs.rackspacecloud.com/dns/api/v1.0"&gt;&lt;jobId&gt;yourJobID&lt;/jobId&gt;&lt;callbackUrl&gt;https://dns.api.rackspacecloud.com/v1.0/yourAccountID/status/yourJobID&lt;/callbackUrl&gt;&lt;/asyncResponse&gt;
</pre>
<p>Stay tuned for part 2 where I will show how to modify domains, and add/delete/modify records.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.collazo.ws/2011/07/08/using-rackspace-dnsaas-with-curl-part-1/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Why work for Rackspace?</title>
		<link>http://www.collazo.ws/2011/03/10/why-work-for-rackspace</link>
		<comments>http://www.collazo.ws/2011/03/10/why-work-for-rackspace#comments</comments>
		<pubDate>Thu, 10 Mar 2011 16:42:13 +0000</pubDate>
		<dc:creator>robert</dc:creator>
				<category><![CDATA[real life]]></category>
		<category><![CDATA[rackspace]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.collazo.ws/?p=951</guid>
		<description><![CDATA[<a href="http://www.collazo.ws/2011/03/10/why-work-for-rackspace" title="Why work for Rackspace?"></a>This is a post I originally wrote for my employer, Rackspace Hosting. You can find it here. Lately, I’ve had several friends approach me about working at Rackspace. When I ask them why they want to work here, they seem &#8230;<p class="read-more"><a href="http://www.collazo.ws/2011/03/10/why-work-for-rackspace">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.collazo.ws/2011/03/10/why-work-for-rackspace" title="Why work for Rackspace?"></a><p><strong><em>This is a post I originally wrote for my employer, Rackspace Hosting. You can find it <a target="_blank" href="http://www.rackertalent.com/rackers/why-work-for-rackspace/">here</a></em></strong>.</p>
<p>Lately, I’ve had several friends approach me about working at Rackspace. When I ask them why they want to work here, they seem surprised that I would ask.</p>
<p>“Why wouldn’t I?” is the response I most often hear. When they say that I reply with:</p>
<p><span id="more-951"></span></p>
<p><strong>Long hours:</strong> Rackers work long hours.  They are so dedicated to their jobs that instead of a typical eight-hour day, many Rackers spend ten, twelve or even more hours at their desks.  Why?  Because they have passion for their jobs and for doing what is best for the customer.  When you’re trying to do something right, sometimes you have to put in the extra effort.  We have passion for our work!</p>
<p><strong>Hard work:</strong> My job is hard. The people on my team have hard jobs. Rackers around the organization have hard jobs. Do you know why? It takes more than average effort to achieve extraordinary results – we’re <a http://www.rackertalent.com/core-values/racker-to-the-core/">committed to greatness</a>.</p>
<p><strong>Demanding:</strong> We demand a lot from each other as Rackers. I really dislike the phrase “110%” percent but I know that if I ask for something, I expect the people I work with to give just that.  Go above and beyond on everything.  EVERYTHING. Fanatical Support® goes beyond helping our customers.  We have the same expectations for our fellow Rackers.</p>
<p><strong>Learning and Teaching:</strong> What’s that you say?  Learning isn’t hard?  Neither is teaching?  I know way too many students and many, many teachers that would disagree with you.  Imagine having a full time job, taking care of the people that you love and being a full time student.  That’s what Rackspace is like.  We are expected to keep learning day in and day out. I personally feel that if I don’t learn at least one thing new that day, I failed.  As for teaching, we’re expected to share the knowledge that we have with each other.  Hoarding knowledge is not our style.  Whether it’s a mistake or a new skill; you have to be able to impart what you’ve learned and help those around you grow.</p>
<p>After I tell them that, they often respond with something along the lines of “But, I hear it’s a fun place to work.”  They are absolutely right about that.</p>
<p>Rackspace is a fun place to work.  I get to see and spend time with my friends every day.  That adds a commitment most jobs don’t have and Rackers take care of each other &#8211; even when it’s inconvenient.  <a http://www.rackertalent.com/core-values/my-rackspace-friends-and-family/">Friends and Family means something</a> around here.</p>
<p>I get to work with some of the smartest people on the planet while trying to solve some of the most complex problems in IT.  I get to collaborate with those smart people and LEARN something new every single day.</p>
<p>I feel like I matter.  Does the President of your company know your name?  Mine does.</p>
<p>Do you get to work alongside the VP of your division and help make decisions that affect the future and the potential for the business?  I do.</p>
<p>Do you feel empowered to make decisions in your day-to-day activities that affect positive business results?  I do.</p>
<p>Does your manager know your likes and dislikes, thoughts and motivations, the names of your pets or how many kids you have? Mine does.</p>
<p>I’m <a target="_blank" http://www.rackertalent.com/strengths/training-to-your-strengths/">managed by my strengths</a>, not my weaknesses.  Every Racker takes the <a href="http://www.strengthsfinder.com/113647/Homepage.aspx">Clifton StrengthsFinder</a> when they start so their manager knows exactly where they are strongest.</p>
<p>My top five strengths?</p>
<ol>
<li>Responsibility</li>
<li>Context</li>
<li>Achiever</li>
<li>Arranger</li>
<li>Ideation</li>
</ol>
<p>My manager understands what these strengths are and uses them to keep me interested in my job &#8211; something we call engagement.</p>
<p>There are opportunities to further my development and further my career.  We have something called <a http://www.rackertalent.com/careers/rackspace-university/">Rackspace University</a> where I can take classes to further my knowledge in a more formal setting.</p>
<p>Dress code? I wear a t-shirt and jeans most days.  When it’s occasionally necessary for me to wear a tie, my co-workers laugh and make jokes.</p>
<p>Are these all of the things that are difficult or fun at Rackspace?  Of course not. You can come find out for yourself though.  There’s never a dull moment &#8211; as long you’ve committed to the experience.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.collazo.ws/2011/03/10/why-work-for-rackspace/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Funny Conversation</title>
		<link>http://www.collazo.ws/2008/07/31/funny-conversation</link>
		<comments>http://www.collazo.ws/2008/07/31/funny-conversation#comments</comments>
		<pubDate>Thu, 31 Jul 2008 15:39:12 +0000</pubDate>
		<dc:creator>robert</dc:creator>
				<category><![CDATA[real life]]></category>
		<category><![CDATA[chat]]></category>
		<category><![CDATA[funny]]></category>

		<guid isPermaLink="false">http://www.collazo.ws/?p=111</guid>
		<description><![CDATA[<a href="http://www.collazo.ws/2008/07/31/funny-conversation" title="Funny Conversation "></a>Yesterday someone sent me an email that was written in Spanish and made some references to me being his grandfather. For some reason, I usually get emails meant for other people to my Gmail account. They are usually meant for &#8230;<p class="read-more"><a href="http://www.collazo.ws/2008/07/31/funny-conversation">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.collazo.ws/2008/07/31/funny-conversation" title="Funny Conversation "></a><p>Yesterday someone sent me an email that was written in Spanish and made some references to me being his grandfather. For some reason, I usually get emails meant for other people to my Gmail account. They are usually meant for &#8220;Richard Collazo&#8221; or &#8220;Roger Collazo&#8221; or some other &#8220;Robert Collazo&#8221;. I usually just ignore them and if I keep getting email for that person, I politely respond and say that I&#8217;m not the droid they&#8217;re looking for and they go on their merry way.<br />
<span id="more-111"></span><br />
Yesterday was different. The person who sent me the email about me being his grandfather contacted me via Gtalk. Here&#8217;s the transcript:</p>
<p>11:11:56 PM ernesto diaz: hola abuelo<br />
11:13:17 PM Robert: me llamo roberto collazo.  no soy tu abuelo<br />
11:13:33 PM ernesto diaz: jajaja<br />
11:13:43 PM Robert: lo siento<br />
11:14:53 PM ernesto diaz: oye roberto<br />
11:15:36 PM Robert: que quieres?<br />
11:16:08 PM ernesto diaz: yo me llamo Ernesto Diaz Collazo<br />
11:16:31 PM ernesto diaz: y soy el mas grande de tus nietos<br />
11:17:22 PM Robert: adonde eres? no tengo neitos por que soy 34 anos<br />
11:17:56 PM Robert: er, soy tengo 34 anos.. hablo un poquito espanol<br />
11:37:23 PM ernesto diaz: jajajaja<br />
11:37:35 PM ernesto diaz: apretaste<br />
11:37:53 PM ernesto diaz: <img src='http://www.collazo.ws/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /><br />
11:40:32 PM ernesto diaz: oye viejuco<br />
11:41:00 PM ernesto diaz: no te haga<br />
11:41:23 PM Robert: no se que dices<br />
11:42:07 PM ernesto diaz: que estas de madre<br />
11:42:49 PM ernesto diaz: bobo<br />
11:44:39 PM ernesto diaz: recibiste mi correo?<br />
11:45:45 PM Robert: I think I received something from you and just deleted it because I realized you were not looking for me but for you grandfather.<br />
11:47:23 PM ernesto diaz: Ware are you from?<br />
11:47:55 PM ernesto diaz: You are from Cuba<br />
11:48:12 PM ernesto diaz: I am from Cuba<br />
11:48:45 PM Robert: I am not from Cuba<br />
11:48:49 PM ernesto diaz: Your last name<br />
11:48:49 PM Robert: I am in San Antonio, TX<br />
11:49:14 PM ernesto diaz: is Collazo<br />
11:50:03 PM ernesto diaz: my last names are Diaz Collazo<br />
11:50:34 PM Robert: Ok, but that doesn&#8217;t mean I&#8217;m from Cuba.  My family came from Mexico<br />
11:53:04 PM ernesto diaz: Now  you are sure of you are my granfather<br />
11:53:51 PM Robert: I am positive I am no one&#8217;s grandfather since I&#8217;m only 34 years old.  I don&#8217;t have any children.<br />
11:54:49 PM ernesto diaz: Ahora si apretate<br />
11:55:30 PM Robert: apretate?<br />
11:55:50 PM ernesto diaz: you 34<br />
11:56:03 PM ernesto diaz: YEARS<br />
11:56:14 PM ernesto diaz: OR 34 SIGLO<br />
11:56:19 PM ernesto diaz: S<br />
11:56:37 PM Robert: I am 34..<br />
11:56:38 PM ernesto diaz: JAJAJA<br />
11:57:38 PM ernesto diaz: plus 25<br />
11:57:47 PM ernesto diaz: =<br />
11:58:01 PM ernesto diaz: 59 years<br />
11:58:51 PM ernesto diaz: hey no me respondiste recibiste mi correo<br />
11:58:57 PM ernesto diaz: ?<br />
11:59:17 PM Robert: Why would I respond dude?  I don&#8217;t know who you are<br />
12:00:03 AM ernesto diaz: I am Ernesto Diaz<br />
12:01:15 AM Robert: I realize that is your name but that doesn&#8217;t mean anything to me since I&#8217;m not your grandfather.  Now, if you&#8217;re offering to be my pen pal, that&#8217;s cool but I promise I&#8217;m not your grandfather.<br />
12:02:24 AM ernesto diaz: Whath is pen pal?<br />
12:02:51 AM Robert: someone to write to<br />
12:03:11 AM ernesto diaz: pen is pluma<br />
12:03:15 AM Robert: pal de pluma<br />
1:48:54 AM Robert: convinced I&#8217;m not your grandfather?<br />
1:49:52 AM ernesto diaz: no I&#8217;m not<br />
1:50:48 AM Robert: why not?  why would I lie about not being your grandfather?<br />
1:52:34 AM ernesto diaz: I&#8217;m not sure<br />
1:53:40 AM Robert: ok, well come up with a good reason and we can discuss tomorrow if you&#8217;re interested. I&#8217;m off to bed. hasta<br />
1:54:47 AM ernesto diaz: Hasta?<br />
1:56:16 AM Robert: hasta luego</p>
]]></content:encoded>
			<wfw:commentRss>http://www.collazo.ws/2008/07/31/funny-conversation/feed</wfw:commentRss>
		<slash:comments>2</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 11/33 queries in 0.208 seconds using apc
Object Caching 724/750 objects using disk: basic
Content Delivery Network via Rackspace Cloud Files: cdn.collazo.ws

Served from: www.collazo.ws @ 2012-02-06 02:38:01 -->
