Warning: include_once(/home/naveefjs/public_html/wp-content/plugins/wp-postratings/wp-postratings.php) [function.include-once]: failed to open stream: Permission denied in /home/naveefjs/public_html/wp-settings.php on line 197

Warning: include_once() [function.include]: Failed opening '/home/naveefjs/public_html/wp-content/plugins/wp-postratings/wp-postratings.php' for inclusion (include_path='.:/usr/local/altphp/lib/php') in /home/naveefjs/public_html/wp-settings.php on line 197

Warning: Cannot modify header information - headers already sent by (output started at /home/naveefjs/public_html/wp-settings.php:197) in /home/naveefjs/public_html/wp-includes/feed-rss2.php on line 8
Technology Articles and Views http://naveenbalani.com NaveenBalani.com - Technology Articles and Views Thu, 28 Jun 2012 20:12:33 +0000 en-US hourly 1 http://wordpress.org/?v= Configure LDAP with Websphere Lombardi Edition http://naveenbalani.com/index.php/2011/09/configure-ldap-with-websphere-lombardi-edition/ http://naveenbalani.com/index.php/2011/09/configure-ldap-with-websphere-lombardi-edition/#comments Fri, 09 Sep 2011 06:56:26 +0000 Naveen http://naveenbalani.com/?p=1587 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.

In this blog, you will learn how to:

  • Setup users and groups in LDAP
  • Configure LDAP with WebSphere Lombardi Edition.
  • Associate LDAP Roles with WLE Process

Click here to download the article.

Click Here to download the sample ldap-sample-user-groups.ldif file.

]]>
http://naveenbalani.com/index.php/2011/09/configure-ldap-with-websphere-lombardi-edition/feed/ 0
Developing php applications using web matrix http://naveenbalani.com/index.php/2011/05/developing-php-applications-using-web-matrix/ http://naveenbalani.com/index.php/2011/05/developing-php-applications-using-web-matrix/#comments Sun, 15 May 2011 05:39:28 +0000 Naveen http://naveenbalani.com/?p=1549 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.

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 article for more details.

]]>
http://naveenbalani.com/index.php/2011/05/developing-php-applications-using-web-matrix/feed/ 0
Spring on Cloud http://naveenbalani.com/index.php/2011/04/spring-on-cloud/ http://naveenbalani.com/index.php/2011/04/spring-on-cloud/#comments Wed, 20 Apr 2011 15:57:24 +0000 Naveen http://naveenbalani.com/?p=1544 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 available under the widely adopted Apache License, version 2.0.

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.

I have requested for an environment ,by signing up for a beta account.  In future blog, I would post my views on Cloud Foundry. Stay tuned.

]]>
http://naveenbalani.com/index.php/2011/04/spring-on-cloud/feed/ 12
Resolving URL file access is disabled in the server configuration http://naveenbalani.com/index.php/2011/02/resolving-url-file-access-is-disabled-in-the-server-configuration/ http://naveenbalani.com/index.php/2011/02/resolving-url-file-access-is-disabled-in-the-server-configuration/#comments Sat, 12 Feb 2011 05:39:22 +0000 Naveen http://naveenbalani.com/?p=1538 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(‘http://naveenbalani.com/index.php/feed/’);

and got the following exception on my hosting server -

“URL file access is disabled in the server configuration”

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.)

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.

<?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->channel->item as $item) {
echo "<h2>" . $item->title . "</h2>";
echo "<p>" . $item->description . "</p>";
}

?>

Check out the script output as -  http://naveenbalani.com/util/php/rss.php

]]>
http://naveenbalani.com/index.php/2011/02/resolving-url-file-access-is-disabled-in-the-server-configuration/feed/ 0
Parsing XML data in PHP http://naveenbalani.com/index.php/2011/02/parsing-xml-data-in-php/ http://naveenbalani.com/index.php/2011/02/parsing-xml-data-in-php/#comments Fri, 04 Feb 2011 17:49:24 +0000 Naveen http://naveenbalani.com/?p=1529 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 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.

If performance is a consideration, you can go with XMLReader , which is an XML pull parser, which doesn’t load entire document in memory, instead it traverses each node on the way.

There are many special purpose libraries available, like simple pie (which is used by wordpress internally for RSS feeds) but I found it too overloaded while dealing with simple fields and didn’t offer XPATH capability to get required nodes quickly and you end up dealing with pattern matching capability with simple pie.
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.

<?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->channel->item as $item) {
echo "<h2>" . $item->title . "</h2>";
echo "<p>" . $item->description . "</p>";
}

?>

Check out the script output as -  http://naveenbalani.com/util/php/rss.php

The signer may need to be added to local trust store “C:/W75/java/jre/lib/security/cacerts”
located in SSL configuration alias “DefaultSystemProperties
]]>
http://naveenbalani.com/index.php/2011/02/parsing-xml-data-in-php/feed/ 4
Travel blog on wordpress http://naveenbalani.com/index.php/2011/02/travel-blog-on-wordpress/ http://naveenbalani.com/index.php/2011/02/travel-blog-on-wordpress/#comments Wed, 02 Feb 2011 16:46:50 +0000 Naveen http://naveenbalani.com/?p=1523 I have been working on my travel blog for quite some time and finally manged to make it live at – 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.

]]>
http://naveenbalani.com/index.php/2011/02/travel-blog-on-wordpress/feed/ 0