<?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>Creativz Lab &#187; Programming</title>
	<atom:link href="http://creativeslab.net/category/programming/feed" rel="self" type="application/rss+xml" />
	<link>http://creativeslab.net</link>
	<description>weblog for Developers &#38; Designers</description>
	<lastBuildDate>Sun, 18 Jul 2010 16:37:15 +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>Get Excerpt with Thumbnail Image &#8211; Wordpress Plug-in</title>
		<link>http://creativeslab.net/get-excerpt-with-thumb</link>
		<comments>http://creativeslab.net/get-excerpt-with-thumb#comments</comments>
		<pubDate>Fri, 17 Jul 2009 10:50:25 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[social networking]]></category>
		<category><![CDATA[social web]]></category>
		<category><![CDATA[webtrends]]></category>
		<category><![CDATA[excerpt]]></category>
		<category><![CDATA[excerpt thugms]]></category>
		<category><![CDATA[thumb images]]></category>

		<guid isPermaLink="false">http://creativeslab.net/?p=303</guid>
		<description><![CDATA[<span style="padding-left: 20px">Get Excerpt with Thumbnail</span> images is a simple wordpress plugin. It gives thumbnail image, excerpt and title of Wordpress post, in the form PHP array. It is upto the developer how he can display these info on his web page.]]></description>
			<content:encoded><![CDATA[<p>
<span style="padding-left: 30px">Get Excerpt with Thumbnail</span> images is a simple wordpress plugin. It gives thumbnail image, excerpt and title of Wordpress post, in the form PHP array. It is upto the developer how he can display these info on his web page.
</p>
<p>
<span style="padding-left: 30px">Simple</span> to use Get Excerpts with Thumbnail plugin uses meta data of wordpress post, to retrieve thumbnail image. It also uses another plug-in named <a href="http://www.webspaceworks.com/resources/wordpress/44/">Content Extract</a> by <a href="http://www.webspaceworks.com">Rob Shumann</a>, to retrieve excerpt from POST. You need install Content Extract plugin before start working with this plugin.
</p>
<p>
<span style="padding-left: 30px">Inspite</span> of having found numerous plugins to get excerpts along with thumbnail images in Wordpress plugin directory. I have written this plugin to reduce number of requests that are made to MySQL database while fetching data.
</p>
<p>
== Installation ==<br />
Install <a href="http://www.webspaceworks.com/resources/wordpress/44/">Content Extract</a> by <a href="http://www.webspaceworks.com">Rob Shumann</a>, before installing this plugin.<br />
The plugin is simple to install:<br />
<br />
1. Download the zip file, from <a href="http://wordpress.org/extend/plugins/get-excerpt-with-thumbnail-images/">wordpress plugin directory</a><br />
2. Unpack the zip.<br />
3. Extract zip file and upload directory present in zip file to the `wp-content/plugins` directory on your WordPress installation.<br />
4. Activate plugin<br />
5. Go to Settings -&gt; Get Excerpt with Thumbnail page, to change configuration for the plug-in.
</p>
<p>
<strong>Configuration of Plug-in:</strong>
</p>
<p>
<span style="padding-left: 30px;">Goto Settings -&gt; Get Excerpt With Thumbnail link in your wordpress admin page.</span><br />
Following four elements need to be configured.<br />
1) Thumbnail CSS Class -&gt; this is .css class name to be used by this plug-in. By default, CSS class name is displayed as &#8216;imgstyle&#8217;, change this to your desired class name and make sure it is defined in .css file of your wordpress theme.<br />
2) More Text -&gt; link that appears next to excerpt to read full post.<br />
3) Post Length -&gt; Inspite of reading entire post to retrieve excerpt, plugin just reads number of characters entered by you in this field.<br />
Note: Once an excerpt is generated by this plugin, it will be stored in excerpt field of your wordpress post.<br />
4) Excerpt Length -&gt; Length of excerpt to be displayed.<br />
Note: Always make suer Post Length is greater than or equal to Excerpt Length.
</p>
<p>Sample usage of this plugin:</p>
<p>
<span style="padding-left: 30px"><br />
while (have_posts()) {<br />
       the_post();<br />
$data = getExcerptsWithThumbnail();<br />
echo  $data['post_thumbnail'] . &#8216;&lt;h5&gt;&#8217; . $data['post_title'] . &#8216;&lt;/h5&gt;&#8217;  .  $data['post_excerpt'] ;<br />
}<br />
</span>
</p>
<p>
<span style="padding-left: 30px;"><br />
In above code snippet,</span> you can see getExcerptsWithThumbnail() function returns an array.<br />
code snippet uses &lt;h5&gt; tag to display title of the post, you can use any of the style you want, for the presentation of thumbnail image along with excerpt.</p>
<p>
Screen shot of the plugin, when Thumbnail Image position is used as &#8216;float:left&#8217;
</p>
<p><img src="http://creativeslab.net/wp-content/uploads/2009/07/scree1-300x160.jpg" alt="scree1" width="300" height="160" class="aligncenter size-medium wp-image-310" /></p>
<p>
Screen shot of plugin, when Thumbnail Image position is used as &#8216;float:right&#8217;
</p>
<p><img src="http://creativeslab.net/wp-content/uploads/2009/07/scree2.jpg" alt="scree2" width="646" height="428" class="aligncenter size-full wp-image-311" /></p>
<p>
Get Excerpt with Thumbnail plugin just gives data, presentation of this data on theme pages is left to theme developer.
</p>
<p>
Reference: see category or tag pages on <a href="http://searchandhra.com">SearchAndhra.com</a> to check how this plugin is used.</p>
<p>
Please place your queries as comments to this post, so that i can reply to you.</p>
]]></content:encoded>
			<wfw:commentRss>http://creativeslab.net/get-excerpt-with-thumb/feed</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
		<item>
		<title>Wordpress Plugin &#8211; List Latest Posts Titles</title>
		<link>http://creativeslab.net/wordpress-plugin-latest-posts-titles</link>
		<comments>http://creativeslab.net/wordpress-plugin-latest-posts-titles#comments</comments>
		<pubDate>Thu, 09 Jul 2009 08:49:49 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software Programming]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[social networking]]></category>
		<category><![CDATA[social web]]></category>
		<category><![CDATA[webtrends]]></category>
		<category><![CDATA[latest posts]]></category>
		<category><![CDATA[Latest Posts title]]></category>
		<category><![CDATA[list latest post titles]]></category>
		<category><![CDATA[plugin wordpress]]></category>
		<category><![CDATA[Wordpress plugin]]></category>

		<guid isPermaLink="false">http://creativeslab.net/?p=292</guid>
		<description><![CDATA[Here is a latest plugin for Wordpress, called <strong><a href="http://wordpress.org/extend/plugins/latest-posts-titles/">Latest Posts Titles</a></strong>, that we have developed to bring all Titles of Latest Posts posted on a Wordpress blog.]]></description>
			<content:encoded><![CDATA[<p>
Here is a latest plugin for Wordpress, called <strong><a href="http://wordpress.org/extend/plugins/latest-posts-titles/">Latest Posts Titles</a></strong>, that we have developed to bring all Titles of Latest Posts posted on a Wordpress blog.
</p>
<p>
The requirement came when we are developing a theme for our site <a href="http://searchandhra.com"><strong>SearchAndhra.com</strong></a>, where in we need to display latest posts belongs to a specific category, in our home page and also in single post page. After checking various plugins available for WordPress we coded this plugin.
</p>
<p>
The main motive behind coding this plugin is to reduce number of queries fired against MySQL database, while listing titles of latest posts.
</p>
<p>
List Latest Posts Titles plugin uses only one query per call, to retrieve titles of latest posts belongs to a particular category.
</p>
<p>
<strong>You can download and install this List Latest Posts Titles plugin from</strong> <a href="http://wordpress.org/extend/plugins/latest-posts-titles/">WordPress Plugin Directory</a>.</p>
<p>
Post your comments if you require any further information regarding this plugin, we are ready to help you out.</p>
]]></content:encoded>
			<wfw:commentRss>http://creativeslab.net/wordpress-plugin-latest-posts-titles/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Split String using Oracle PL/SQL</title>
		<link>http://creativeslab.net/split-string-using-oracle-plsql</link>
		<comments>http://creativeslab.net/split-string-using-oracle-plsql#comments</comments>
		<pubDate>Thu, 25 Jun 2009 20:45:38 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[PL/SQL]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software Programming]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Oracle Strings]]></category>
		<category><![CDATA[pl/sql procedure]]></category>
		<category><![CDATA[PL/SQL SPLIT]]></category>
		<category><![CDATA[split string]]></category>
		<category><![CDATA[string functions]]></category>
		<category><![CDATA[string split]]></category>

		<guid isPermaLink="false">http://creativeslab.net/?p=47</guid>
		<description><![CDATA[Oracle PL/SQL provides various string functions, but there is no direct function to split a string into substrings, we need to write a custom code to do this task.]]></description>
			<content:encoded><![CDATA[<p>Oracle PL/SQL provides various string functions, but there is no direct function to split a string into substrings, where as 4GL languages have direct functions to split strings.</p>
<p>We can split a string into substrings using PL/SQL built in functions SUBSTR(), INSTR() and LENGTH() together.</p>
<p>Follwing code snippets helps you in splitting a string into substrings.</p>
<p>Snippet to split string into pieces:::</p>
<p><strong>CREATE OR REPLACE FUNCTION func_str_split(str_to_split   IN OUT VARCHAR2<br />
                 ,str_delimiter IN     VARCHAR2) RETURN VARCHAR2<br />
IS<br />
  t_pos   NUMBER;<br />
  t_len   NUMBER;<br />
  t_strlen   NUMBER;<br />
  t_strresult VARCHAR2(2000);<br />
BEGIN<br />
  t_strresult := NULL;<br />
  IF str_to_split IS NOT NULL THEN<br />
    t_len := LENGTH(str_delimiter);<br />
    t_strlen := LENGTH(str_to_split);<br />
    t_pos := INSTR(str_to_split,str_delimiter);<br />
    IF t_pos &gt; 0 THEN<br />
      t_strresult := SUBSTR(str_to_split,1,t_pos-1);<br />
      str_to_split := SUBSTR(str_to_split,t_pos+t_len,t_strlen);<br />
    ELSE<br />
      t_strresult := str_to_split;<br />
      str_to_split := NULL;<br />
    END IF;<br />
  END IF;<br />
  RETURN t_strresult;<br />
END func_str_split;</strong></p>
<p>Use following procedure to call above function:::</p>
<p><strong>CREATE OR REPLACE PROCEDURE proc_str_split(str_to_split   IN OUT VARCHAR2<br />
                 ,str_delimiter IN  VARCHAR2)<br />
IS<br />
 declare </p>
<p> RetVal varchar2(150);</p>
<p>BEGIN</p>
<p>WHILE str_to_split IS NOT NULL LOOP<br />
     RetVal := func_str_split ( str_to_split, str_delimiter );<br />
     dbms_output.put_line(RetVal);<br />
END LOOP;</p>
<p>END proc_str_split;</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://creativeslab.net/split-string-using-oracle-plsql/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to know Request Group name of Concurrent Programs in Oracle Applications</title>
		<link>http://creativeslab.net/how-to-know-request-group-name-of-concurrent-programs-oracle-applications</link>
		<comments>http://creativeslab.net/how-to-know-request-group-name-of-concurrent-programs-oracle-applications#comments</comments>
		<pubDate>Wed, 27 May 2009 13:15:20 +0000</pubDate>
		<dc:creator>chetanz</dc:creator>
				<category><![CDATA[Oracle Applications]]></category>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[PL/SQL]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software Programming]]></category>
		<category><![CDATA[concurrent program]]></category>
		<category><![CDATA[Oracle Apps]]></category>
		<category><![CDATA[Oracle EBS]]></category>
		<category><![CDATA[Oracle ERP]]></category>
		<category><![CDATA[request group]]></category>

		<guid isPermaLink="false">http://creativeslab.net/?p=30</guid>
		<description><![CDATA[knowing request group name to which a concurrent program is associated helps in oracle apps.....]]></description>
			<content:encoded><![CDATA[<p>To know request group name, to which a concurrent program is associated and also executable name of the concurrent program, following query will be useful. For seeded concurrent programs it is known to everybody, but for custom concurrent programs it will be very difficult to memorize.</p>
<p>select<br />
fg.request_group_name,e.executable_name,responsibility_key,user_concurrent_program_name<br />
from fnd_responsibility r,<br />
fnd_concurrent_programs_tl p,<br />
fnd_request_group_units u,<br />
fnd_request_groups fg,<br />
fnd_executables e,<br />
fnd_concurrent_programs fcp<br />
where r.request_group_id=u.request_group_id<br />
and u.request_group_id = fg.request_group_id<br />
and u.request_unit_id = p.concurrent_program_id<br />
and fcp.executable_id = e.executable_id<br />
and user_concurrent_program_name like &#8216;%Period close value summary%&#8217;<br />
and fcp.concurrent_program_id = p.concurrent_program_id</p>
]]></content:encoded>
			<wfw:commentRss>http://creativeslab.net/how-to-know-request-group-name-of-concurrent-programs-oracle-applications/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Find concurrent programs associated with responsibility in Oracle Applications</title>
		<link>http://creativeslab.net/how-to-find-concurrent-programs-associated-with-responsibility-in-oracle-applications</link>
		<comments>http://creativeslab.net/how-to-find-concurrent-programs-associated-with-responsibility-in-oracle-applications#comments</comments>
		<pubDate>Wed, 27 May 2009 10:46:03 +0000</pubDate>
		<dc:creator>chetanz</dc:creator>
				<category><![CDATA[Oracle Applications]]></category>
		<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[Oracle Inventory]]></category>
		<category><![CDATA[PL/SQL]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[concurrent program]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Oracle EBS]]></category>
		<category><![CDATA[Oracle ERP]]></category>
		<category><![CDATA[responsibility]]></category>

		<guid isPermaLink="false">http://creativeslab.net/?p=28</guid>
		<description><![CDATA[Know concurrent programs associated with responsibility using responsiblity key]]></description>
			<content:encoded><![CDATA[<p>Oracle ERP system has n number of seeded concurrent programs and while implementation custom concurrent programs may come.</p>
<p>To find out various concurrent programs associated with certain responsibility, following query will be useful.</p>
<p>select user_concurrent_program_name  from fnd_concurrent_programs_tl<br />
where concurrent_program_id in (<br />
select request_unit_id from fnd_request_group_units<br />
where request_group_id in (<br />
select request_group_id from fnd_request_groups where request_group_id in (<br />
select request_group_id from fnd_responsibility where responsibility_key like &#8216;%ORACLE_INVENTORY%&#8217;)<br />
));</p>
]]></content:encoded>
			<wfw:commentRss>http://creativeslab.net/how-to-find-concurrent-programs-associated-with-responsibility-in-oracle-applications/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>gzip file using PHP</title>
		<link>http://creativeslab.net/gzip-file-using-php</link>
		<comments>http://creativeslab.net/gzip-file-using-php#comments</comments>
		<pubDate>Thu, 21 May 2009 23:02:23 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software Programming]]></category>
		<category><![CDATA[compress]]></category>
		<category><![CDATA[file compress]]></category>
		<category><![CDATA[gzencode]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[web programming]]></category>

		<guid isPermaLink="false">http://creativeslab.net/?p=21</guid>
		<description><![CDATA[gzencode() function of PHP helps you create gzip file using php.]]></description>
			<content:encoded><![CDATA[<p>gzencode() function of PHP helps you create gzip file using php.</p>
<p>Open any file as shown in the below snippet, and read data and pass it to gzencode() function.</p>
<p>If the file to be gzip is of larger size, read file in chunks to avoid memory errors, while reading file.</p>
<p>More info on gzip can be found at PHP Manual in <a href="http://php.net">http://php.net</a></p>
<p>Tremendous compressing achieved with following snippet.<br />
function gzipSitemap($fileIndex)<br />
{<br />
 $file_to_gzip = &#8220;readme.txt&#8221;; //any type of file<br />
        $gz_dest_file = &#8220;readme.txt.gz&#8221;;<br />
 $fh = fopen($file_to_gzip, &#8216;r&#8217;) or die(&#8220;Can&#8217;t read file&#8221;);<br />
 $fp = fopen($gz_dest_file, &#8220;w&#8221;) or die(&#8220;Can&#8217;t create .gz file&#8221;);<br />
    while($theData = fread($fh, 5000))<br />
 {<br />
  $gzdata = gzencode($theData, 9);<br />
  fwrite($fp, $gzdata);<br />
 }<br />
    fclose($fp);<br />
    fclose($fh);<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://creativeslab.net/gzip-file-using-php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>java.sql.SQLException: Exhausted Resultset error in Java</title>
		<link>http://creativeslab.net/javasqlsqlexception-exhausted-resultset-error-in-java</link>
		<comments>http://creativeslab.net/javasqlsqlexception-exhausted-resultset-error-in-java#comments</comments>
		<pubDate>Wed, 18 Feb 2009 03:53:04 +0000</pubDate>
		<dc:creator>chetanz</dc:creator>
				<category><![CDATA[Core Java]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software Programming]]></category>
		<category><![CDATA[exhausted resultset]]></category>
		<category><![CDATA[Java Database Connectivity]]></category>
		<category><![CDATA[java exception]]></category>
		<category><![CDATA[java programming]]></category>
		<category><![CDATA[JDBC]]></category>
		<category><![CDATA[Result Set]]></category>

		<guid isPermaLink="false">http://creativeslab.net/2009/02/18/javasqlsqlexception-exhausted-resultset-error-in-java/</guid>
		<description><![CDATA[When referring (trying to open)  closed result set using JDBC, we will get this error.
Error Message:
java.sql.SQLException: Exhausted Resultset
 
Stack Trace:
java.sql.SQLException: Exhausted Resultset at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:174) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:239) at oracle.jdbc.driver.OracleResultSetImpl.getString(OracleResultSetImpl.java:365) at oracle.jdbc.driver.OracleResultSet.getString(OracleResultSet.java:1571) at
]]></description>
			<content:encoded><![CDATA[<p>When referring (trying to open)  closed result set using JDBC, we will get this error.</p>
<p>Error Message:<br />
java.sql.SQLException: Exhausted Resultset<br />
 <br />
Stack Trace:<br />
java.sql.SQLException: Exhausted Resultset at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:174) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:239) at oracle.jdbc.driver.OracleResultSetImpl.getString(OracleResultSetImpl.java:365) at oracle.jdbc.driver.OracleResultSet.getString(OracleResultSet.java:1571) at</p>
]]></content:encoded>
			<wfw:commentRss>http://creativeslab.net/javasqlsqlexception-exhausted-resultset-error-in-java/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
