<?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>The Last Engine &#187; API</title>
	<atom:link href="http://www.lastengine.com/category/api/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lastengine.com</link>
	<description>Making Voice 2.0 Work</description>
	<lastBuildDate>Sun, 21 Feb 2010 18:00:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Backing up a large Subversion repository to S3</title>
		<link>http://www.lastengine.com/77/backing-up-a-large-subversion-repository-to-s3/</link>
		<comments>http://www.lastengine.com/77/backing-up-a-large-subversion-repository-to-s3/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 21:52:23 +0000</pubDate>
		<dc:creator>Vijesh</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[Developers]]></category>

		<guid isPermaLink="false">http://www.lastengine.com/77/backing-up-a-large-subversion-repository-to-s3/</guid>
		<description><![CDATA[Overview:

Do an SVN hotcopy so you get all your stuff
tar up the entire directory
split and bzip the files using p7zip so they can fit on hosted drives ( 2 Gb files )
copy them to S3 or any online service

Commands:

/usr/bin/svnadmin hotcopy /path/to/svn/repository /path/to/destination

tar cvf /path/to/backup/svnbackup-`date +%Y-%m-%d`.tar /path/to/destination/*

/usr/local/bin/7z a -tbzip2 -v2g svnbackup-`date +%Y-%m-%d`.tar.bz2 /path/to/backup/svnbackup-`date +%Y-%m-%d`.tar

Copy them over [...]]]></description>
			<content:encoded><![CDATA[<p>Overview:</p>
<ol>
<li>Do an SVN hotcopy so you get all your stuff</li>
<li>tar up the entire directory</li>
<li>split and bzip the files using <a href="http://sourceforge.net/projects/p7zip/">p7zip</a> so they can fit on hosted drives ( 2 Gb files )</li>
<li>copy them to <a href="http://aws.amazon.com/s3/">S3</a> or any online service</li>
</ol>
<p>Commands:</p>
<pre class="brush:bash">
/usr/bin/svnadmin hotcopy /path/to/svn/repository /path/to/destination

tar cvf /path/to/backup/svnbackup-`date +%Y-%m-%d`.tar /path/to/destination/*

/usr/local/bin/7z a -tbzip2 -v2g svnbackup-`date +%Y-%m-%d`.tar.bz2 /path/to/backup/svnbackup-`date +%Y-%m-%d`.tar
</pre>
<p>Copy them over using any scripts you have. I personally use jstream on a linux server to move stuff to <a href="http://aws.amazon.com/s3/">Amazon S3</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lastengine.com/77/backing-up-a-large-subversion-repository-to-s3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding Contact to SugarCRM 5.1 through the SOAP API</title>
		<link>http://www.lastengine.com/27/example-adding-contact-to-sugarcrm-51-through-the-soap-api/</link>
		<comments>http://www.lastengine.com/27/example-adding-contact-to-sugarcrm-51-through-the-soap-api/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 22:19:25 +0000</pubDate>
		<dc:creator>Vijesh</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[Developers]]></category>

		<guid isPermaLink="false">http://www.ipshift.com/?p=27</guid>
		<description><![CDATA[SugarCRM 5.1 has some pretty ridiculous documentation. So for those of you interested in adding a contact via the soap api, look at the code sample.
Prerequisites
1) NuSoap Libraries: http://sourceforge.net/projects/nusoap/
&#160;
Sample Code
&#60;?php
    // add nusoap library
    require_once('lib/nusoap.php');

    // create a soap client
    $client = new [...]]]></description>
			<content:encoded><![CDATA[<p>SugarCRM 5.1 has some pretty ridiculous documentation. So for those of you interested in adding a contact via the soap api, look at the code sample.</p>
<h2>Prerequisites</h2>
<p>1) NuSoap Libraries: <a title="http://sourceforge.net/projects/nusoap/" href="http://sourceforge.net/projects/nusoap/">http://sourceforge.net/projects/nusoap/</a></p>
<p>&#160;</p>
<h2>Sample Code</h2>
<pre class="brush:php">&lt;?php
    // add nusoap library
    require_once('lib/nusoap.php');

    // create a soap client
    $client = new nusoap_client('http://localhost/sugar/soap.php?wsdl','wsdl','','','','');

    // Login
    $user_auth = array(
                'user_auth' =&gt; array(
                    'user_name' =&gt; 'ipshift-user',
                    'password' =&gt; md5('ipshift-password'),
                    'version' =&gt; '0.1'),
                 'application_name' =&gt; 'ipshift-crm'
        );

    $result = $client-&gt;call('login',$user_auth);

    // output the session id
    echo '&lt;h2&gt;Session Id:&lt;/h2&gt;';
    print($result['id']);

    // Now Prepare a Contact
    $set_entry_params = array(
              'session' =&gt; $result['id'],
              'module_name' =&gt; 'Contacts',
              'name_value_list'=&gt;array(
                            array('name'=&gt;'first_name','value'=&gt;'FirstName'),
                            array('name'=&gt;'last_name','value'=&gt;'LastName'),
                            array('name'=&gt;'email1','value'=&gt;'vmehta@ipshift.com'),
                            array('name'=&gt;'lead_source','value'=&gt;'Web Site'),
                            array('name'=&gt;'phone_work', 'value'=&gt;'1231231234'),
                            array('name'=&gt;'account_name','value'=&gt;'IP Shift')
                            )
                        );

    // Now Add the Contact
    $result2 = $client-&gt;call('set_entry',$set_entry_params); 

    // Show the result
    echo '&lt;h2&gt;Add Dump:&lt;/h2&gt;';
    print_r($result2);
?&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.lastengine.com/27/example-adding-contact-to-sugarcrm-51-through-the-soap-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
