<?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>Soniccode E-Solutions</title>
	<atom:link href="http://blog.soniccode.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.soniccode.com</link>
	<description>PHP MySQL Actionscript 3 Flash iPhone and other technology</description>
	<lastBuildDate>Thu, 20 May 2010 17:03:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Drupal connected iPhone application using services and authentication.</title>
		<link>http://blog.soniccode.com/php/drupal-connected-iphone-application-using-services-and-authentication/</link>
		<comments>http://blog.soniccode.com/php/drupal-connected-iphone-application-using-services-and-authentication/#comments</comments>
		<pubDate>Thu, 20 May 2010 00:26:44 +0000</pubDate>
		<dc:creator>Chris Callender</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Titanium]]></category>

		<guid isPermaLink="false">http://blog.soniccode.com/?p=34</guid>
		<description><![CDATA[So I&#8217;ve built my first Drupal connected iPhone application. It uses the services module and authentication. I couldn&#8217;t find any code examples of using authentication online anywhere so I am including some code examples in this post in hopes that it will help someone else. Firstly, I followed the tutorial I found in the CivicActions [...]]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;ve built my first Drupal connected iPhone application. It uses the services module and authentication. I couldn&#8217;t find any code examples of using authentication online anywhere so I am including some code examples in this post in hopes that it will help someone else.</p>
<p>Firstly, I followed the tutorial I found in the <a title="iPhone/Drupal app tutorial" href="http://civicactions.com/blog/2010/may/02/drupalcon_developing_apps_iphoneipadandroid_using_drupal_base_system_tutorial_and_code" target="_blank">CivicActions blog</a>, and after I saw how to use the code to connect to a web service, I decided to look for how to use authentication, since the website I am building an app for uses authentication for the web services.</p>
<p>I used the suggested <a title="SHA256 Javascript library" href="http://point-at-infinity.org/jssha256/" target="_blank">JS SHA256</a> library in the CivicActions tutorial, and came up with the method to use it properly while communicating with the services module.</p>
<p>Here is the code you&#8217;ll need, keep in mind this is using Titanium Developer, all code is written in Javascript, and you&#8217;ll need the iPhone emulator in order to see the results.</p>
<pre>var servicesURL = 'http://example.com/services/json';
var domain = 'example.com';
var date = new Date();
var obj = {
  method: service,
  domain_name: domain,
  domain_time_stamp: date.getTime(),
  nonce: rnd(), /* just a random function that returns a random string */
  sessid: sessionid
};

// create the hash using secure hash algorithm using 256bit encryption
obj.hash = HMAC_SHA256_MAC(apikey, obj.domain_time_stamp+";"+obj.domain_name+";"+
                 obj.nonce+";"+obj.method);
// this is your view name, be sure your authentication key allows access to views.get
obj.view_name = 'the_drupal_view';

// create the connection to our services module and send json data via POST
var xhr = Titanium.Network.createHTTPClient();
xhr.open("POST", servicesURL);
xhr.send({data: JSON.stringify(obj)});

// once our data has returned the onload function is used
xhr.onload = function(){
  // perform your code here with the data coming back,
  // data will be the object containing the response.
  var data = JSON.parse(this.responseText);
  // you can use Ti.API.info(JSON.stringify(data)) to output your response to the console
}
</pre>
<p>After I figured out how to put together the proper call out to the services from Javascript, I was able to format some data, here is my result:</p>
<div id="attachment_33" class="wp-caption alignnone" style="width: 172px"><a href="http://blog.soniccode.com/wp-content/uploads/2010/05/iphone-app.jpg"><img class="size-medium wp-image-33" title="iphone-app" src="http://blog.soniccode.com/wp-content/uploads/2010/05/iphone-app-162x300.jpg" alt="iPhone application" width="162" height="300" /></a><p class="wp-caption-text">Drupal connected iPhone application</p></div>
<p>Download the JS SHA265 library: <a href="http://blog.soniccode.com/wp-content/uploads/2010/05/jssha256-0.1.tar.gz">js sha256 version 0.1</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.soniccode.com/php/drupal-connected-iphone-application-using-services-and-authentication/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Building an iPhone app using Titanium</title>
		<link>http://blog.soniccode.com/iphone/building-an-iphone-app-using-titanium/</link>
		<comments>http://blog.soniccode.com/iphone/building-an-iphone-app-using-titanium/#comments</comments>
		<pubDate>Tue, 11 May 2010 05:50:47 +0000</pubDate>
		<dc:creator>Chris Callender</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Titanium]]></category>

		<guid isPermaLink="false">http://blog.soniccode.com/?p=31</guid>
		<description><![CDATA[Today I started development on an iPhone app using Appcelerator Titanium. The app is for an adhoc distribution but may change to a full Apple app store release to the public. The app is using Drupal is the base and the Services module to make the data connection. I&#8217;m using a modified JSON service module [...]]]></description>
			<content:encoded><![CDATA[<p>Today I started development on an iPhone app using Appcelerator Titanium. The app is for an adhoc distribution but may change to a full Apple app store release to the public.</p>
<p>The app is using Drupal is the base and the Services module to make the data connection. I&#8217;m using a modified JSON service module made available by CivicActions. CivicActions had a great drupalCon presentation on using Drupal to connect to a iPhone app using Titanium, which I am using as my inspiration to build this app.</p>
<p>Stay tuned for code examples on using the Services api and Drupal.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.soniccode.com/iphone/building-an-iphone-app-using-titanium/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Take part in our iPhone app discussion</title>
		<link>http://blog.soniccode.com/iphone/take-part-in-our-iphone-app-discussion/</link>
		<comments>http://blog.soniccode.com/iphone/take-part-in-our-iphone-app-discussion/#comments</comments>
		<pubDate>Fri, 07 May 2010 19:36:48 +0000</pubDate>
		<dc:creator>Chris Callender</dc:creator>
				<category><![CDATA[Facebook]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Social]]></category>

		<guid isPermaLink="false">http://blog.soniccode.com/?p=27</guid>
		<description><![CDATA[We&#8217;re looking to open up discussion on iPhone apps. We have some ideas on what apps we want to build, and we would love to hear your ideas too! Any feedback on ideas is greatly appreciated. You can take part in our discussions on our facebook page.]]></description>
			<content:encoded><![CDATA[<p>We&#8217;re looking to open up discussion on iPhone apps. We have some ideas on what apps we want to build, and we would love to hear your ideas too! Any feedback on ideas is greatly appreciated.</p>
<p>You can take part in our discussions on our <a href="http://www.facebook.com/soniccode?v=app_2373072738"> facebook page</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.soniccode.com/iphone/take-part-in-our-iphone-app-discussion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Soniccode Projects updated!</title>
		<link>http://blog.soniccode.com/clients/soniccode-projects-updated/</link>
		<comments>http://blog.soniccode.com/clients/soniccode-projects-updated/#comments</comments>
		<pubDate>Mon, 03 May 2010 23:00:44 +0000</pubDate>
		<dc:creator>Chris Callender</dc:creator>
				<category><![CDATA[Clients]]></category>
		<category><![CDATA[Hangar 18 Creative]]></category>
		<category><![CDATA[Karen Munnis]]></category>
		<category><![CDATA[Magnum Creative Inc.]]></category>
		<category><![CDATA[Vacuum Design]]></category>

		<guid isPermaLink="false">http://blog.soniccode.com/?p=25</guid>
		<description><![CDATA[The projects page has been updated with new portfolio pieces including: Mountain Trek Global Mortgage BCAA Drupal multi-site Karen Munnis All of these websites are Drupal installations, custom themes, and custom programming!]]></description>
			<content:encoded><![CDATA[<p>The projects page has been updated with new portfolio pieces including:</p>
<p><a href="http://soniccode.com/projects/mountaintrek">Mountain Trek</a></p>
<p><a href="http://soniccode.com/projects/globalmortgage">Global Mortgage</a></p>
<p><a href="http://soniccode.com/projects/bcaa">BCAA Drupal multi-site</a></p>
<p><a href="http://soniccode.com/projects/karenmunnis">Karen Munnis</a></p>
<p>All of these websites are Drupal installations, custom themes, and custom programming!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.soniccode.com/clients/soniccode-projects-updated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Services page published</title>
		<link>http://blog.soniccode.com/services/services-page-published/</link>
		<comments>http://blog.soniccode.com/services/services-page-published/#comments</comments>
		<pubDate>Mon, 26 Apr 2010 22:42:46 +0000</pubDate>
		<dc:creator>Chris Callender</dc:creator>
				<category><![CDATA[Services]]></category>

		<guid isPermaLink="false">http://blog.soniccode.com/?p=21</guid>
		<description><![CDATA[Soniccode services page has been published. Following the new services announcement, more information is available by following the services link!]]></description>
			<content:encoded><![CDATA[<p>Soniccode <a href="http://soniccode.com/services">services</a> page has been published. Following the new services announcement, more information is available by following the services link!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.soniccode.com/services/services-page-published/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Announcing weekly and monthly services</title>
		<link>http://blog.soniccode.com/services/announcing-weekly-and-monthly-services/</link>
		<comments>http://blog.soniccode.com/services/announcing-weekly-and-monthly-services/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 20:42:10 +0000</pubDate>
		<dc:creator>Chris Callender</dc:creator>
				<category><![CDATA[Services]]></category>

		<guid isPermaLink="false">http://blog.soniccode.com/?p=16</guid>
		<description><![CDATA[We are please to announce our new weekly and monthly service plans, you can contact us for more details by calling 778.737.6260 or emailing info@soniccode.com with the subject Prepaid Services. Our prepaid weekly and monthly services will help to lower your development costs and provide you with a expertise you may not have had before. [...]]]></description>
			<content:encoded><![CDATA[<p>We are please to announce our new weekly and monthly service plans, you can contact us for more details by calling 778.737.6260 or emailing <a href="mailto:info@soniccode.com?Subject=Prepaid Services">info@soniccode.com</a> with the subject Prepaid Services.</p>
<p>Our prepaid weekly and monthly services will help to lower your development costs and provide you with a expertise you may not have had before.</p>
<p>Soniccode can help you with:</p>
<ul>
<li>PHP, HTML, CSS, jQuery, Flash and Flex</li>
<li>Drupal, WordPress, third party applications and Frameworks</li>
<li>iPhone Applications</li>
<li>Custom database applications</li>
</ul>
<p><a href="http://blog.soniccode.com/wp-content/uploads/2010/04/soniccode-promotion-april23.pdf">Soniccode Weekly and Monthly Service Promotion</a> &#8211; PDF Download</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.soniccode.com/services/announcing-weekly-and-monthly-services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Work in Progress Website Launched!</title>
		<link>http://blog.soniccode.com/clients/work-in-progress-website-launched/</link>
		<comments>http://blog.soniccode.com/clients/work-in-progress-website-launched/#comments</comments>
		<pubDate>Thu, 28 May 2009 21:38:39 +0000</pubDate>
		<dc:creator>Chris Callender</dc:creator>
				<category><![CDATA[Clients]]></category>
		<category><![CDATA[Livingblueprint]]></category>

		<guid isPermaLink="false">http://blog.soniccode.com/?p=11</guid>
		<description><![CDATA[Soniccode E-Solutions created a new WordPress theme for Work in Progress, a Vancouver based company that specializing in career transition. Working closely with Livingblueprint, the marketing strategists behind the new corporate brand, we were able to meet a tight deadline to get this website launched.]]></description>
			<content:encoded><![CDATA[<p>Soniccode E-Solutions created a new WordPress theme for <a title="Work in Progress" href="http://workinprogresscareers.com" target="_blank">Work in Progress</a>, a Vancouver based company that specializing in career transition.</p>
<p>Working closely with <a title="Livingblueprint" href="http://livingblueprint.com" target="_blank">Livingblueprint</a>, the marketing strategists behind the new corporate brand, we were able to meet a tight deadline to get this website launched.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.soniccode.com/clients/work-in-progress-website-launched/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone Enabled Websites</title>
		<link>http://blog.soniccode.com/iphone/iphone-websites/</link>
		<comments>http://blog.soniccode.com/iphone/iphone-websites/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 23:04:22 +0000</pubDate>
		<dc:creator>Chris Callender</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http:/?p=1</guid>
		<description><![CDATA[Enabling a website for the Apple iPhone To help maximize the consumer audience you can enable your website to be viewable by the largest growing mobile device, the Apple iPhone. Strict XHTML code along with cleverly placed elements will allow your site to be viewed with ease by iPhone and iPod Touch browsers. Another method [...]]]></description>
			<content:encoded><![CDATA[<h3 class="text-content-title">Enabling a website for the Apple iPhone</h3>
<p>To help maximize the consumer audience you can enable your website to be viewable  				by the largest growing mobile device, the Apple iPhone. Strict XHTML code along  				with cleverly placed elements will allow your site to be viewed with ease by iPhone and iPod Touch browsers.</p>
<p>Another method is to program your website directly for the iPhone/iPod browser by targeting it through code, and forwarding the address to your custom build website. If you try to view <a title="Soniccode E-Solutions" href="http://soniccode.com">http://soniccode.com</a> with your iPhone or iPod Touch, you will get forwarded to <a title="Soniccode E-Solutions - iPhone website" href="http://iphone.soniccode.com">http://iphone.soniccode.com</a> which is our iPhone capatible website.</p>
<p>Soniccode E-Solutions has services available to provide your website content deliverable to the iPhone/iPod browser, contact us at <a title="Email us a question!" href="mailto:iphone-inquiry@soniccode.com">iphone-inquiry@soniccode.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.soniccode.com/iphone/iphone-websites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

