<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Using the DeviceAtlas API with WordPress</title>
	<atom:link href="http://nooshu.com/using-the-deviceatlas-api-with-wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://nooshu.com/using-the-deviceatlas-api-with-wordpress?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=using-the-deviceatlas-api-with-wordpress</link>
	<description>Kneeling on the shoulders of giants</description>
	<lastBuildDate>Wed, 16 May 2012 17:26:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Matt</title>
		<link>http://nooshu.com/using-the-deviceatlas-api-with-wordpress#comment-1007</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Mon, 24 Oct 2011 13:34:55 +0000</pubDate>
		<guid isPermaLink="false">http://nooshu.com/?p=1221#comment-1007</guid>
		<description>Hi Mixdev,

Yes we had the exact same issue on our server. Luckily it was an internal / small project so we were able to modify the settings and not worry to much about server resources. I agree I wouldn&#039;t use it on a production site.

I have to admit I gave up on DA a while ago. It seemed a pain to setup and get working and any support requests both forums and emails were ignored. I&#039;d look into other avenues (maybe PhoneGap for a mobile site - I have no idea what you need but I&#039;ve heard it is very good). I don&#039;t have any other suggestions off the top of my head, sorry!

Hope that helps a little.</description>
		<content:encoded><![CDATA[<p>Hi Mixdev,</p>
<p>Yes we had the exact same issue on our server. Luckily it was an internal / small project so we were able to modify the settings and not worry to much about server resources. I agree I wouldn&#8217;t use it on a production site.</p>
<p>I have to admit I gave up on DA a while ago. It seemed a pain to setup and get working and any support requests both forums and emails were ignored. I&#8217;d look into other avenues (maybe PhoneGap for a mobile site &#8211; I have no idea what you need but I&#8217;ve heard it is very good). I don&#8217;t have any other suggestions off the top of my head, sorry!</p>
<p>Hope that helps a little.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mixdev</title>
		<link>http://nooshu.com/using-the-deviceatlas-api-with-wordpress#comment-1000</link>
		<dc:creator>mixdev</dc:creator>
		<pubDate>Tue, 18 Oct 2011 13:44:36 +0000</pubDate>
		<guid isPermaLink="false">http://nooshu.com/?p=1221#comment-1000</guid>
		<description>DA takes insane amount of RAM to parse the tree and often passes out in the process. I can&#039;t really run this in production. Increasing memory limit to 64Mb is a solution but it will worsen the situation when you have a moderately popular website. 

Have you people figured something to fix this issue?</description>
		<content:encoded><![CDATA[<p>DA takes insane amount of RAM to parse the tree and often passes out in the process. I can&#8217;t really run this in production. Increasing memory limit to 64Mb is a solution but it will worsen the situation when you have a moderately popular website. </p>
<p>Have you people figured something to fix this issue?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://nooshu.com/using-the-deviceatlas-api-with-wordpress#comment-340</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Thu, 01 Jul 2010 17:59:17 +0000</pubDate>
		<guid isPermaLink="false">http://nooshu.com/?p=1221#comment-340</guid>
		<description>Hi Shane,
Yes i had to increase the server memory for the script by adding this to the Api.php file as it was running out.

[cc lang=&#039;php&#039;]
ini_set(&quot;memory_limit&quot;, &quot;64M&quot;);
[/cc]

For the directory you can place it anywhere you like as long as the includes point to it correctly. So mine is in a folder called json in the root directory and my include looks like this:

[cc lang=&#039;php&#039;]
//Include API
require_once &#039;Mobi/Mtld/DA/Api.php&#039;;
$tree = Mobi_Mtld_DA_Api::getTreeFromFile(&#039;json/DeviceAtlas.json&#039;);
[/cc]

I&#039;m still convinced there&#039;s an easier method to include DA with Wordpress Mobile Pack as there are references to it all over the code. It&#039;s a pity the plug-in support is so bad.</description>
		<content:encoded><![CDATA[<p>Hi Shane,<br />
Yes i had to increase the server memory for the script by adding this to the Api.php file as it was running out.</p>
<div class="codecolorer-container php default customCodeColor" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #990000;">ini_set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;memory_limit&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;64M&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>For the directory you can place it anywhere you like as long as the includes point to it correctly. So mine is in a folder called json in the root directory and my include looks like this:</p>
<div class="codecolorer-container php default customCodeColor" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">//Include API</span><br />
<span style="color: #b1b100;">require_once</span> <span style="color: #0000ff;">'Mobi/Mtld/DA/Api.php'</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$tree</span> <span style="color: #339933;">=</span> Mobi_Mtld_DA_Api<span style="color: #339933;">::</span><span style="color: #004000;">getTreeFromFile</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'json/DeviceAtlas.json'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>I&#8217;m still convinced there&#8217;s an easier method to include DA with WordPress Mobile Pack as there are references to it all over the code. It&#8217;s a pity the plug-in support is so bad.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shane</title>
		<link>http://nooshu.com/using-the-deviceatlas-api-with-wordpress#comment-339</link>
		<dc:creator>shane</dc:creator>
		<pubDate>Thu, 01 Jul 2010 11:55:15 +0000</pubDate>
		<guid isPermaLink="false">http://nooshu.com/?p=1221#comment-339</guid>
		<description>Hi I sorted it out... doh.

I then had to increase my memory in php.ini 

now i have another error in the header, but I will work around it. Thanks again.</description>
		<content:encoded><![CDATA[<p>Hi I sorted it out&#8230; doh.</p>
<p>I then had to increase my memory in php.ini </p>
<p>now i have another error in the header, but I will work around it. Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shane</title>
		<link>http://nooshu.com/using-the-deviceatlas-api-with-wordpress#comment-338</link>
		<dc:creator>Shane</dc:creator>
		<pubDate>Thu, 01 Jul 2010 11:08:20 +0000</pubDate>
		<guid isPermaLink="false">http://nooshu.com/?p=1221#comment-338</guid>
		<description>Hi There. Thanks for the info. When you say that we must copy the json into the directory alongside it. What do you mean. Must we create a directory ?  as there is no existing directory. Thanks</description>
		<content:encoded><![CDATA[<p>Hi There. Thanks for the info. When you say that we must copy the json into the directory alongside it. What do you mean. Must we create a directory ?  as there is no existing directory. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://nooshu.com/using-the-deviceatlas-api-with-wordpress#comment-333</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Wed, 30 Jun 2010 08:45:16 +0000</pubDate>
		<guid isPermaLink="false">http://nooshu.com/?p=1221#comment-333</guid>
		<description>Totally agree John. I seemed to be going round in circles for half a day before things started making sense. Think they need to update their docs.</description>
		<content:encoded><![CDATA[<p>Totally agree John. I seemed to be going round in circles for half a day before things started making sense. Think they need to update their docs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Millington</title>
		<link>http://nooshu.com/using-the-deviceatlas-api-with-wordpress#comment-331</link>
		<dc:creator>John Millington</dc:creator>
		<pubDate>Tue, 29 Jun 2010 23:17:02 +0000</pubDate>
		<guid isPermaLink="false">http://nooshu.com/?p=1221#comment-331</guid>
		<description>Really handy! I kept looking around and finding outdated information and things that didn&#039;t make sense.

Thanks for posting</description>
		<content:encoded><![CDATA[<p>Really handy! I kept looking around and finding outdated information and things that didn&#8217;t make sense.</p>
<p>Thanks for posting</p>
]]></content:encoded>
	</item>
</channel>
</rss>

