<?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>My Thought Pot &#187; mobile</title>
	<atom:link href="http://www.mythoughtpot.com/tag/mobile/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mythoughtpot.com</link>
	<description>Thoughts of a constantly evolving programmer</description>
	<lastBuildDate>Thu, 11 Feb 2010 05:52:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ruby Mobile Browser Detector (port of JMBD)</title>
		<link>http://www.mythoughtpot.com/2008/05/24/ruby-mobile-browser-detector-port-of-jmbd/</link>
		<comments>http://www.mythoughtpot.com/2008/05/24/ruby-mobile-browser-detector-port-of-jmbd/#comments</comments>
		<pubDate>Sat, 24 May 2008 21:53:37 +0000</pubDate>
		<dc:creator>kiran</dc:creator>
				<category><![CDATA[ruby]]></category>
		<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">http://www.mythoughtpot.com/?p=4</guid>
		<description><![CDATA[I have successfully ported Java Mobile Browser Detector to ruby. I am sure there are other existing utilities to achieve this but I found this to more simpler to understand and use. It works well with my mobile site Fundu.mobi developed on rails. I though it would be useful for someone so here is the [...]]]></description>
			<content:encoded><![CDATA[<p>I have successfully ported <a href="http://www.javabeans.mobi/web/project_jmbd.jsp">Java Mobile Browser Detector</a> to ruby. I am sure there are other existing utilities to achieve this but I found this to more simpler to understand and use. It works well with my mobile site <a href="http://fundu.mobi">Fundu.mobi</a> developed on rails. I though it would be useful for someone so here is the code <a href="http://www.mythoughtpot.com/wp-content/uploads/2008/05/rmbd.zip">rmbd.zip</a>.</p>
<p>Here is how you can use it in any controller</p>
<pre class="brush: ruby;">
class SampleController &lt; ApplicationController
def index
device_config = DeviceConfigDetector.detect_capabilities_for_request(request);
logger.debug(&quot;device config = #{device_config.inspect}&quot;)
end
end
</pre>
<p><strong>UPDATE</strong>: This is now hosted as ruby gem available at <a href="http://github.com/kiranmeduri/rmbd/tree/master">http://github.com/kiranmeduri/rmbd/tree/master</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mythoughtpot.com/2008/05/24/ruby-mobile-browser-detector-port-of-jmbd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
