<?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>Technology Articles and Views</title>
	<atom:link href="http://naveenbalani.com/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://naveenbalani.com</link>
	<description>NaveenBalani.com - Technology Articles and Views</description>
	<lastBuildDate>Thu, 28 Jun 2012 20:12:33 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Configure LDAP with Websphere Lombardi Edition</title>
		<link>http://naveenbalani.com/index.php/2011/09/configure-ldap-with-websphere-lombardi-edition/</link>
		<comments>http://naveenbalani.com/index.php/2011/09/configure-ldap-with-websphere-lombardi-edition/#comments</comments>
		<pubDate>Fri, 09 Sep 2011 06:56:26 +0000</pubDate>
		<dc:creator>Naveen</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[BPM]]></category>

		<guid isPermaLink="false">http://naveenbalani.com/?p=1587</guid>
		<description><![CDATA[Out of the box, WebSphere Lombardi Edition installation comes configured with a single federated internal repository that provides default groups and users for Lombardi environment. You can create new users and groups in the internal repository and use the users and roles as part of the business process definition. Alternately, many organizations uses LDAP for [...]]]></description>
			<content:encoded><![CDATA[<p><strong></strong>Out of the box, WebSphere Lombardi Edition installation comes configured with a single federated internal repository that provides default groups and users for Lombardi environment. You can create new users and groups in the internal repository and use the users and roles as part of the business process definition. Alternately, many organizations uses LDAP for users and group management and you would want to source the users and groups from LDAP and use it as part of your business process. You can use the internal Lombardi repository in conjunction with an external security provider (like LDAP). This blog describes how to configure LDAP with WLE and use it as part of Business processes.</p>
<p>In this blog, you will learn how to:</p>
<ul>
<li> Setup users and groups in LDAP</li>
<li> Configure LDAP with WebSphere Lombardi Edition.</li>
<li> Associate LDAP Roles with WLE Process</li>
</ul>
<p><a href="http://naveenbalani.com/wp-content/uploads/2011/09/LDAP-WLE-Tutorial.pdf">Click here to download the article.</a></p>
<p><a href="http://naveenbalani.com/wp-content/uploads/2011/09/ldap-sample-user-groups.ldif_.txt">Click Here to download the sample ldap-sample-user-groups.ldif file</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://naveenbalani.com/index.php/2011/09/configure-ldap-with-websphere-lombardi-edition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Developing php applications using web matrix</title>
		<link>http://naveenbalani.com/index.php/2011/05/developing-php-applications-using-web-matrix/</link>
		<comments>http://naveenbalani.com/index.php/2011/05/developing-php-applications-using-web-matrix/#comments</comments>
		<pubDate>Sun, 15 May 2011 05:39:28 +0000</pubDate>
		<dc:creator>Naveen</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://naveenbalani.com/?p=1549</guid>
		<description><![CDATA[WebMatrix is a free web development tool from Microsoft that includes everything you need for web site development. WebMatrix provides an integrated environment for building, testing, and deploying web sites. This integrated environment includes an embedded IIS web server, database, and programming template that lets you get started with web site development,  which includes PHP [...]]]></description>
			<content:encoded><![CDATA[<p>WebMatrix is a free web development tool from Microsoft that includes everything you need for web site development. WebMatrix provides an integrated environment for building, testing, and deploying web sites. This integrated environment includes an embedded IIS web server, database, and programming template that lets you get started with web site development,  which includes PHP and .NET applications. If you use any of the widely used blog and content management solutions based on the PHP programming language (such as WordPress, Joomla, or Drupal) or .NET-based solutions (such as DotNetNuke), WebMatrix allows you to configure and download these applications quickly through its Open Gallery feature.</p>
<p>Recently, I published an article on web matrix on dzone on how to get started with developing php applications using web matrix. Checkout the the <a href="http://css.dzone.com/articles/webmatrix-why-php-developers"><strong>article </strong></a>for more details.</p>
]]></content:encoded>
			<wfw:commentRss>http://naveenbalani.com/index.php/2011/05/developing-php-applications-using-web-matrix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spring on Cloud</title>
		<link>http://naveenbalani.com/index.php/2011/04/spring-on-cloud/</link>
		<comments>http://naveenbalani.com/index.php/2011/04/spring-on-cloud/#comments</comments>
		<pubDate>Wed, 20 Apr 2011 15:57:24 +0000</pubDate>
		<dc:creator>Naveen</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Cloud Computing]]></category>

		<guid isPermaLink="false">http://naveenbalani.com/?p=1544</guid>
		<description><![CDATA[Recently heard the news about the launch of VMWare Spring Source Cloud Foundry: an open source “Platform as a Service” (PaaS) which allows easy deployment of applications written using Spring, Rails and other modern frameworks. The open source cloud deployment seems interesting, where you could eventually host spring based applications over cloud. Cloud Foundry is [...]]]></description>
			<content:encoded><![CDATA[<p>Recently heard the news about the launch of VMWare Spring Source <a href="http://www.cloudfoundry.com/">Cloud Foundry</a>:  an open source “Platform as a Service” (PaaS) which allows easy  deployment of applications written using Spring, Rails and other modern  frameworks. The open source cloud deployment seems interesting, where you could eventually host spring based applications over cloud. Cloud Foundry is available under the widely adopted Apache License, version 2.0.</p>
<p>The new Cloud Foundry offers more support for languages, cloud deployment vendors and cloud capabilities and is probably  based on there  initial Cloud Foundry offering which was launched some where in 2009.</p>
<p>I have requested for an environment ,by <a href="http://www.cloudfoundry.org/">signing up for a beta account</a>.  In future blog, I would post my views on <a href="http://www.cloudfoundry.com/">Cloud Foundry</a>. Stay tuned.</p>
]]></content:encoded>
			<wfw:commentRss>http://naveenbalani.com/index.php/2011/04/spring-on-cloud/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Resolving URL file access is disabled in the server configuration</title>
		<link>http://naveenbalani.com/index.php/2011/02/resolving-url-file-access-is-disabled-in-the-server-configuration/</link>
		<comments>http://naveenbalani.com/index.php/2011/02/resolving-url-file-access-is-disabled-in-the-server-configuration/#comments</comments>
		<pubDate>Sat, 12 Feb 2011 05:39:22 +0000</pubDate>
		<dc:creator>Naveen</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[simplexml]]></category>

		<guid isPermaLink="false">http://naveenbalani.com/?p=1538</guid>
		<description><![CDATA[I was trying out the simplexml_load_file function for parsing RSS feeds on my hosting server using the following code- $rss =  simplexml_load_file(&#8216;http://naveenbalani.com/index.php/feed/&#8217;); and got the following exception on my hosting server - &#8220;URL file access is disabled in the server configuration&#8221; After googling through the documentation, I noticed that the simple_xml_load uses furl_open function to [...]]]></description>
			<content:encoded><![CDATA[<p>I was trying out the simplexml_load_file function for parsing RSS feeds on my hosting server using the following code-</p>
<p>$rss =  simplexml_load_file(&#8216;http://naveenbalani.com/index.php/feed/&#8217;);</p>
<p>and got the following exception on my hosting server -</p>
<p>&#8220;URL file access is disabled in the server configuration&#8221;</p>
<p>After googling through the documentation, I noticed that the simple_xml_load uses furl_open function to get files remotely. This function, due to security issues was not supported on my hosting server (and probably most of the hosting providers.)</p>
<p>The option was to use CURL library to parse remote urls , along with simple_xml function. Here is the modified code which should work on most of the hosting servers.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php

function load_file($url) {
$ch = curl_init($url);
#Return http response in string
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$xml = simplexml_load_string(curl_exec($ch));
return $xml;
}

$feedurl = 'http://naveenbalani.com/index.php/feed/';
$rss = load_file($feedurl);

foreach ($rss-&gt;channel-&gt;item as $item) {
echo &quot;&lt;h2&gt;&quot; . $item-&gt;title . &quot;&lt;/h2&gt;&quot;;
echo &quot;&lt;p&gt;&quot; . $item-&gt;description . &quot;&lt;/p&gt;&quot;;
}

?&gt;
</pre>
<p>Check out the script output as -  <a href="../util/php/rss.php">http://naveenbalani.com/util/php/rss.php</a></p>
]]></content:encoded>
			<wfw:commentRss>http://naveenbalani.com/index.php/2011/02/resolving-url-file-access-is-disabled-in-the-server-configuration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Parsing XML data in PHP</title>
		<link>http://naveenbalani.com/index.php/2011/02/parsing-xml-data-in-php/</link>
		<comments>http://naveenbalani.com/index.php/2011/02/parsing-xml-data-in-php/#comments</comments>
		<pubDate>Fri, 04 Feb 2011 17:49:24 +0000</pubDate>
		<dc:creator>Naveen</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php xml]]></category>

		<guid isPermaLink="false">http://naveenbalani.com/?p=1529</guid>
		<description><![CDATA[If you are planning to deal with XML data in PHP , for instance parsing an RSS feed or pattern matching (finding images or elements in an XHTML) , than probably you need an XML library which extracts the data for you. The SimpleXML extension provides a very intuitive API to convert XML to an [...]]]></description>
			<content:encoded><![CDATA[<p>If you are planning to deal with XML data in PHP , for instance parsing an RSS feed or pattern matching (finding images or elements in an XHTML) , than probably you need an XML library which extracts the data for you.</p>
<p>The <a href="http://php.net/manual/en/book.simplexml.php">SimpleXML </a>extension provides a very intuitive API to convert XML to an object and traverse elements easily.The only disadvantage is that it loads entire document in memory, so for very large XML files, performance could be an issue.<span id="more-1529"></span></p>
<p>If performance is a consideration, you can go with <a href="http://www.php.net/manual/en/intro.xmlreader.php">XMLReader</a> , which is an XML pull parser, which doesn&#8217;t load entire document in memory, instead it traverses each node on the way.</p>
<p>There are many special purpose libraries available, like <a href="http://simplepie.org/">simple pie</a> (which is used by wordpress internally for RSS feeds) but I found it too overloaded while dealing with simple fields and didn&#8217;t offer XPATH capability to get required nodes quickly and you end up dealing with pattern matching capability with simple pie.<br />
The following code uses simple xml and fetches the latest RSS feeds from my website. I have used curl library to deal with http connections, as its more secured and supported on my hosting server.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php

function load_file($url) {
$ch = curl_init($url);
#Return http response in string
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$xml = simplexml_load_string(curl_exec($ch));
return $xml;
}

$feedurl = 'http://naveenbalani.com/index.php/feed/';
$rss = load_file($feedurl);

foreach ($rss-&gt;channel-&gt;item as $item) {
echo &quot;&lt;h2&gt;&quot; . $item-&gt;title . &quot;&lt;/h2&gt;&quot;;
echo &quot;&lt;p&gt;&quot; . $item-&gt;description . &quot;&lt;/p&gt;&quot;;
}

?&gt;
</pre>
<p>Check out the script output as -  <a href="http://naveenbalani.com/util/php/rss.php">http://naveenbalani.com/util/php/rss.php</a></p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 538px; width: 1px; height: 1px; overflow: hidden;">The signer may need to be added to local trust store &#8220;C:/W75/java/jre/lib/security/cacerts&#8221;<br />
located in SSL configuration alias &#8220;DefaultSystemProperties</div>
]]></content:encoded>
			<wfw:commentRss>http://naveenbalani.com/index.php/2011/02/parsing-xml-data-in-php/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Travel blog on wordpress</title>
		<link>http://naveenbalani.com/index.php/2011/02/travel-blog-on-wordpress/</link>
		<comments>http://naveenbalani.com/index.php/2011/02/travel-blog-on-wordpress/#comments</comments>
		<pubDate>Wed, 02 Feb 2011 16:46:50 +0000</pubDate>
		<dc:creator>Naveen</dc:creator>
				<category><![CDATA[Travel]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress travel theme]]></category>

		<guid isPermaLink="false">http://naveenbalani.com/?p=1523</guid>
		<description><![CDATA[I have been working on my travel blog for quite some time and finally manged to make it live at &#8211; http://naveenbalani.com/travel/ . With the framework in place, I can easily add more contents to it. The blog -  http://naveenbalani.com/index.php/2011/01/creating-a-travel-blog-using-wordpress/ , provides my experiences on how to use wordpress to create a travel blog.]]></description>
			<content:encoded><![CDATA[<p>I have been working on my travel blog for quite some time and finally manged to make it live at &#8211; <a href="http://naveenbalani.com/travel/">http://naveenbalani.com/travel/</a> . With the framework in place, I can easily add more contents to it.</p>
<p>The blog -  <a href="http://naveenbalani.com/index.php/2011/01/creating-a-travel-blog-using-wordpress/">http://naveenbalani.com/index.php/2011/01/creating-a-travel-blog-using-wordpress/</a> , provides my experiences on how to use wordpress to create a travel blog.</p>
]]></content:encoded>
			<wfw:commentRss>http://naveenbalani.com/index.php/2011/02/travel-blog-on-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</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 (Requested URI is rejected)
Object Caching 517/629 objects using disk: basic

Served from: naveenbalani.com @ 2013-05-22 18:12:24 -->