<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Dileepstanley's Weblog</title>
	<atom:link href="http://dileepstanley.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dileepstanley.wordpress.com</link>
	<description>...........................................</description>
	<lastBuildDate>Thu, 23 Jun 2011 10:51:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='dileepstanley.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/e52e26723729e707c19566c89b496ac5?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Dileepstanley's Weblog</title>
		<link>http://dileepstanley.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dileepstanley.wordpress.com/osd.xml" title="Dileepstanley&#039;s Weblog" />
	<atom:link rel='hub' href='http://dileepstanley.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Quick theming a View with node types-tricks</title>
		<link>http://dileepstanley.wordpress.com/2011/05/29/quick-theming-a-view-with-node-types-tricks/</link>
		<comments>http://dileepstanley.wordpress.com/2011/05/29/quick-theming-a-view-with-node-types-tricks/#comments</comments>
		<pubDate>Sun, 29 May 2011 10:13:36 +0000</pubDate>
		<dc:creator>dileepstanley</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[node]]></category>
		<category><![CDATA[theming]]></category>
		<category><![CDATA[views]]></category>

		<guid isPermaLink="false">http://dileepstanley.wordpress.com/?p=99</guid>
		<description><![CDATA[if your theme folder contains node.tpl.php you don&#8217;t care the rest of the article else if you have problems to find the template page with name node-view-viewname.tpl.php,because  the theme system need base node.tpl.php  template for overriding. heck this link for theming a view with node type:-http://kfalck.net/2008/11/28/drupal-node-view-xtplphp-requires-nodetplphp<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dileepstanley.wordpress.com&amp;blog=4000249&amp;post=99&amp;subd=dileepstanley&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>if your theme folder contains node.tpl.php you don&#8217;t care the rest of the article else</p>
<p>if you have problems to find the template page with name node-view-viewname.tpl.php,because  the theme system need base node.tpl.php  template for overriding.<br />
heck this link for theming a view with node type:-<span style="color:#0000ff;">http://kfalck.net/2008/11/28/drupal-node-view-xtplphp-requires-nodetplphp</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dileepstanley.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dileepstanley.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dileepstanley.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dileepstanley.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dileepstanley.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dileepstanley.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dileepstanley.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dileepstanley.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dileepstanley.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dileepstanley.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dileepstanley.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dileepstanley.wordpress.com/99/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dileepstanley.wordpress.com/99/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dileepstanley.wordpress.com/99/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dileepstanley.wordpress.com&amp;blog=4000249&amp;post=99&amp;subd=dileepstanley&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dileepstanley.wordpress.com/2011/05/29/quick-theming-a-view-with-node-types-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2ae9580f02c597199d860e4d0ba165e4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dileepstanley</media:title>
		</media:content>
	</item>
		<item>
		<title>Strange behaviour of drupal 6 triggers and CCK default values</title>
		<link>http://dileepstanley.wordpress.com/2011/05/28/strange-behaviour-of-drupal-6-triggers-and-cck-default-values/</link>
		<comments>http://dileepstanley.wordpress.com/2011/05/28/strange-behaviour-of-drupal-6-triggers-and-cck-default-values/#comments</comments>
		<pubDate>Sat, 28 May 2011 21:58:39 +0000</pubDate>
		<dc:creator>dileepstanley</dc:creator>
				<category><![CDATA[CCK]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[custom module]]></category>
		<category><![CDATA[System redirect url]]></category>
		<category><![CDATA[trigger]]></category>

		<guid isPermaLink="false">http://dileepstanley.wordpress.com/?p=95</guid>
		<description><![CDATA[One of my drupal experience is to developing an application for a client.So i want to change the default behaviour of drupal after saving the post.I created a trigger which triggers after saving the post to Redirect the admin/content/node Url.But the bad behaviour is starts there.The application dont save default values,but after editing and save <a href="http://dileepstanley.wordpress.com/2011/05/28/strange-behaviour-of-drupal-6-triggers-and-cck-default-values/" class="excerpt-more-link">[&#8230;]</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dileepstanley.wordpress.com&amp;blog=4000249&amp;post=95&amp;subd=dileepstanley&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One of my drupal experience is to developing an application for a client.So i want to change the default behaviour of drupal after saving the post.I created a trigger which triggers after saving the post to Redirect the admin/content/node Url.But the bad behaviour is starts there.The application dont save default values,but after editing and save it saves the values.So i used a hook_nodeapi to get the values from submitted form and try to save it.But &#8216;mymodule_nodeapi&#8217; not fires at all.Before that it redirect to the &#8216;triggered Url&#8217;.After many hours of  research, trial,  i found the redirect nature and Un assign the Trigger .Now it works perfectly.</p>
<p>Buti am not 100% sure if it only related to that trigger or some thing related to configuration of trigger.</p>
<p>i will update my further finding and experience of drupal as application frame work in future</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dileepstanley.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dileepstanley.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dileepstanley.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dileepstanley.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dileepstanley.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dileepstanley.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dileepstanley.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dileepstanley.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dileepstanley.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dileepstanley.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dileepstanley.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dileepstanley.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dileepstanley.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dileepstanley.wordpress.com/95/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dileepstanley.wordpress.com&amp;blog=4000249&amp;post=95&amp;subd=dileepstanley&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dileepstanley.wordpress.com/2011/05/28/strange-behaviour-of-drupal-6-triggers-and-cck-default-values/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2ae9580f02c597199d860e4d0ba165e4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dileepstanley</media:title>
		</media:content>
	</item>
		<item>
		<title>How to call imagecache images using theme functions</title>
		<link>http://dileepstanley.wordpress.com/2010/11/12/how-to-call-imagecache-images-using-theme-functions/</link>
		<comments>http://dileepstanley.wordpress.com/2010/11/12/how-to-call-imagecache-images-using-theme-functions/#comments</comments>
		<pubDate>Fri, 12 Nov 2010 10:55:10 +0000</pubDate>
		<dc:creator>dileepstanley</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[imagecache]]></category>
		<category><![CDATA[theme image]]></category>

		<guid isPermaLink="false">http://dileepstanley.wordpress.com/?p=84</guid>
		<description><![CDATA[You can call your imagecache images like the code below theme(&#8216;imagecache&#8217;, &#8216;blog_Thumb&#8217;, drupal_get_path_alias($node-&#62;field_1_immagini[0]['filepath']), $alt = $altimg, $title = $titleimg, $attributes=null) &#8216;blog_Thumb&#8217; is the preset name drupal_get_path_alias($node-&#62;field_1_immagini[0]['filepath']) is the path of image<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dileepstanley.wordpress.com&amp;blog=4000249&amp;post=84&amp;subd=dileepstanley&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You can call your imagecache images like the code below</p>
<p>theme(&#8216;imagecache&#8217;, &#8216;blog_Thumb&#8217;, drupal_get_path_alias($node-&gt;field_1_immagini[0]['filepath']), $alt = $altimg, $title = $titleimg, $attributes=null)</p>
<p>&#8216;blog_Thumb&#8217; is the preset name<br />
drupal_get_path_alias($node-&gt;field_1_immagini[0]['filepath']) is the path of image</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dileepstanley.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dileepstanley.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dileepstanley.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dileepstanley.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dileepstanley.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dileepstanley.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dileepstanley.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dileepstanley.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dileepstanley.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dileepstanley.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dileepstanley.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dileepstanley.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dileepstanley.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dileepstanley.wordpress.com/84/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dileepstanley.wordpress.com&amp;blog=4000249&amp;post=84&amp;subd=dileepstanley&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dileepstanley.wordpress.com/2010/11/12/how-to-call-imagecache-images-using-theme-functions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2ae9580f02c597199d860e4d0ba165e4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dileepstanley</media:title>
		</media:content>
	</item>
		<item>
		<title>Template suggestions drupal</title>
		<link>http://dileepstanley.wordpress.com/2010/11/09/82/</link>
		<comments>http://dileepstanley.wordpress.com/2010/11/09/82/#comments</comments>
		<pubDate>Tue, 09 Nov 2010 17:01:20 +0000</pubDate>
		<dc:creator>dileepstanley</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Views]]></category>
		<category><![CDATA[Custom modules]]></category>
		<category><![CDATA[drupal blog]]></category>
		<category><![CDATA[modules]]></category>
		<category><![CDATA[views]]></category>

		<guid isPermaLink="false">http://dileepstanley.wordpress.com/?p=82</guid>
		<description><![CDATA[How to change the template when we show a node using view we have placed a view for show details of each node in drupal 6 with a path of the view as &#8216;node/%&#8217;.But web site contains a system of multiple blogs using advanced_blog and custom module for manage some extra functionality for blog pages <a href="http://dileepstanley.wordpress.com/2010/11/09/82/" class="excerpt-more-link">[&#8230;]</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dileepstanley.wordpress.com&amp;blog=4000249&amp;post=82&amp;subd=dileepstanley&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>How to change the template when we show a node using view</p>
<p>we have placed a view for show details of each node in drupal 6 with a path of the view as &#8216;node/%&#8217;.But web site contains a system of multiple blogs using advanced_blog and custom module for manage some extra functionality for blog pages according to the blog html template.i prefer to add a template for blog and named it as page-blog.tpl.php.and all path of the blog is aliased with &#8216;blog/&#8217;.Every thing is working fine until when i click link to view the detials of a blog entry.It fallbacks to default page.tpl.php for showing the details.But i want to remain on the page-blog page.So i used the follwing script with &#8216;path&#8217; module<br />
//put this script in template.php if exist preprocess_page then only //insert contents of function:<br />
function phptemplate_preprocess_page(&amp;$vars) {<br />
if ($vars['is_front'] != 1) {<br />
$vars['template_files'][] = &#8216;page-&#8217; . $vars['node']-&gt;type;<br />
if (module_exists(&#8216;path&#8217;)) {<br />
$alias = drupal_get_path_alias(str_replace(&#8216;/edit&#8217;,&#8221;,$_GET['q']));<br />
if ($alias != $_GET['q']) {<br />
$template_filename = &#8216;page&#8217;;<br />
foreach (explode(&#8216;/&#8217;, $alias) as $path_part) {<br />
$template_filename = $template_filename . &#8216;-&#8217; . $path_part;<br />
$vars['template_files'][] = $template_filename;<br />
}<br />
}<br />
}<br />
}<br />
}</p>
<p>this function creates all possible combinations of templates suggestions to drupal.And in that page i use module_invoke for getting the results</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dileepstanley.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dileepstanley.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dileepstanley.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dileepstanley.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dileepstanley.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dileepstanley.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dileepstanley.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dileepstanley.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dileepstanley.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dileepstanley.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dileepstanley.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dileepstanley.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dileepstanley.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dileepstanley.wordpress.com/82/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dileepstanley.wordpress.com&amp;blog=4000249&amp;post=82&amp;subd=dileepstanley&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dileepstanley.wordpress.com/2010/11/09/82/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2ae9580f02c597199d860e4d0ba165e4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dileepstanley</media:title>
		</media:content>
	</item>
		<item>
		<title>How to pass values to existing drupal filters</title>
		<link>http://dileepstanley.wordpress.com/2010/11/08/how-to-pass-values-to-existing-drupal-filters/</link>
		<comments>http://dileepstanley.wordpress.com/2010/11/08/how-to-pass-values-to-existing-drupal-filters/#comments</comments>
		<pubDate>Mon, 08 Nov 2010 15:17:35 +0000</pubDate>
		<dc:creator>dileepstanley</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[dynamic filter views 2]]></category>
		<category><![CDATA[view filter]]></category>
		<category><![CDATA[views]]></category>

		<guid isPermaLink="false">http://dileepstanley.wordpress.com/?p=73</guid>
		<description><![CDATA[&#8216;nid&#8217; is the field used in my view for filter and following is my code for give a value to filter $BlogSelected contains blog id showed as first blog,the view shows rest of the blog items $view = views_get_view(&#8220;View_Blog_User_Archivio&#8221;); $display_id = &#8216;default&#8217;; $view-&#62;set_display($display_id); $item = $view-&#62;get_item($display_id, &#8216;filter&#8217;, &#8216;nid&#8217;); $item['value'] = $BlogSelected; $view-&#62;set_item($display_id, &#8216;filter&#8217;, &#8216;nid&#8217;, $item); <a href="http://dileepstanley.wordpress.com/2010/11/08/how-to-pass-values-to-existing-drupal-filters/" class="excerpt-more-link">[&#8230;]</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dileepstanley.wordpress.com&amp;blog=4000249&amp;post=73&amp;subd=dileepstanley&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#8216;nid&#8217; is the field used in my view for filter and following is my code for give a value to filter<br />
$BlogSelected  contains blog id showed as first blog,the view shows rest of the blog items</p>
<p>$view = views_get_view(&#8220;View_Blog_User_Archivio&#8221;);<br />
$display_id = &#8216;default&#8217;;<br />
$view-&gt;set_display($display_id);<br />
$item = $view-&gt;get_item($display_id, &#8216;filter&#8217;, &#8216;nid&#8217;);<br />
$item['value'] = $BlogSelected;<br />
$view-&gt;set_item($display_id, &#8216;filter&#8217;, &#8216;nid&#8217;, $item);<br />
$view-&gt;is_cacheable = FALSE;</p>
<p>$view-&gt;execute();</p>
<p>$output = $view-&gt;render();</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dileepstanley.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dileepstanley.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dileepstanley.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dileepstanley.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dileepstanley.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dileepstanley.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dileepstanley.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dileepstanley.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dileepstanley.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dileepstanley.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dileepstanley.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dileepstanley.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dileepstanley.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dileepstanley.wordpress.com/73/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dileepstanley.wordpress.com&amp;blog=4000249&amp;post=73&amp;subd=dileepstanley&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dileepstanley.wordpress.com/2010/11/08/how-to-pass-values-to-existing-drupal-filters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2ae9580f02c597199d860e4d0ba165e4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dileepstanley</media:title>
		</media:content>
	</item>
		<item>
		<title>How to add CCK date field as filters in drupal view with default values</title>
		<link>http://dileepstanley.wordpress.com/2010/10/20/how-to-add-cck-date-field-as-filters-in-drupal-view-with-default-values/</link>
		<comments>http://dileepstanley.wordpress.com/2010/10/20/how-to-add-cck-date-field-as-filters-in-drupal-view-with-default-values/#comments</comments>
		<pubDate>Wed, 20 Oct 2010 13:31:53 +0000</pubDate>
		<dc:creator>dileepstanley</dc:creator>
				<category><![CDATA[CCK]]></category>
		<category><![CDATA[Date]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Filetring Views]]></category>
		<category><![CDATA[View]]></category>

		<guid isPermaLink="false">http://dileepstanley.wordpress.com/?p=65</guid>
		<description><![CDATA[create view and add fields,sort criteria etc step 1 : select group as &#8216;Date&#8217; then Date:node,add it to the filter by clicking the add step 2: set Date form type: as text,granularity as day,from &#8216;Date field(s):&#8217; select the CCK field you want and select method &#8216;AND or OR&#8217;,click update step 3:Here is the trick Operator: <a href="http://dileepstanley.wordpress.com/2010/10/20/how-to-add-cck-date-field-as-filters-in-drupal-view-with-default-values/" class="excerpt-more-link">[&#8230;]</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dileepstanley.wordpress.com&amp;blog=4000249&amp;post=65&amp;subd=dileepstanley&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>create view and add fields,sort criteria etc</p>
<p><strong>step 1</strong> : select group as &#8216;Date&#8217; then Date:node,add it to the filter by clicking the add<br />
<strong>step 2</strong>: set Date form type: as text,granularity as day,from<br />
&#8216;Date field(s):&#8217; select the CCK field you want and select method &#8216;AND or OR&#8217;,click update<br />
<strong>step 3</strong>:Here is the trick<br />
Operator: as you  like (i am selected &#8216;is less than or equal  to(for avoid post dated pubblications)&#8217;.<br />
Attention for default value:<br />
put your default value in &#8216;Date default:&#8217; (i am used &#8216;now&#8217; for current date,other values as &#8216;now +1 day&#8217;).</p>
<p>and update it .Now you have a view filterd by CCK date field</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dileepstanley.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dileepstanley.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dileepstanley.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dileepstanley.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dileepstanley.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dileepstanley.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dileepstanley.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dileepstanley.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dileepstanley.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dileepstanley.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dileepstanley.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dileepstanley.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dileepstanley.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dileepstanley.wordpress.com/65/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dileepstanley.wordpress.com&amp;blog=4000249&amp;post=65&amp;subd=dileepstanley&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dileepstanley.wordpress.com/2010/10/20/how-to-add-cck-date-field-as-filters-in-drupal-view-with-default-values/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2ae9580f02c597199d860e4d0ba165e4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dileepstanley</media:title>
		</media:content>
	</item>
		<item>
		<title>Inner join and subquery in sql server.Which one is more better?</title>
		<link>http://dileepstanley.wordpress.com/2010/09/08/inner-join-and-subquery-in-sql-server-which-one-is-more-better/</link>
		<comments>http://dileepstanley.wordpress.com/2010/09/08/inner-join-and-subquery-in-sql-server-which-one-is-more-better/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 12:26:54 +0000</pubDate>
		<dc:creator>dileepstanley</dc:creator>
		
		<guid isPermaLink="false">http://dileepstanley.wordpress.com/?p=66</guid>
		<description><![CDATA[Today  i have an experince with sql server 2005 on our production server with 6000 records and almost 12000 records in category table.Inner join is goes wrong for me and sub query is run well in our production machine.If some thing wrong please correct me&#8230; May be it gives a good idea to others to <a href="http://dileepstanley.wordpress.com/2010/09/08/inner-join-and-subquery-in-sql-server-which-one-is-more-better/" class="excerpt-more-link">[&#8230;]</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dileepstanley.wordpress.com&amp;blog=4000249&amp;post=66&amp;subd=dileepstanley&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste">
<div id="_mcePaste">Today  i have an experince with sql server 2005 on our production server with 6000 records and almost 12000 records in category table.Inner join is goes wrong for me and sub query is run well in our production machine.If some thing wrong please correct me&#8230;</div>
<div>May be it gives a good idea to others to oraganize their query .</div>
<div>NB:I am using this query for creating text file  for Node import module of drupal.</div>
<div><span style="color:#000000;"><span style="text-decoration:underline;"><strong>query 1 never finished with in 1 minute:-</strong></span></span></div>
<div><span style="color:#000080;">select distinct top 1 A.Idarticolo,Titolo,titoletto,autore,fonte,dbo.getOperatore(A.idoperatore) as IdOperatore,</span></div>
<div id="_mcePaste"><span style="color:#000080;">(cast(day(data) as varchar(2))+&#8217;/'+cast(month(data) as varchar(2))+&#8217;/'+cast(year(data) as varchar(4)) + &#8216; &#8216; +ora)</span></div>
<div id="_mcePaste"><span style="color:#000080;">datatime_,data,dbo.getTags(A.Idarticolo) as Tags from tab_articoli A inner join tab_merc_catearticoli B</span></div>
<div id="_mcePaste"><span style="color:#000080;">on A.Idarticolo=B.Idarticolo where b.codi_cate_arti not in (63,58,61,48,49) order by data asc</span></div>
</div>
<div></div>
<div><strong><span style="text-decoration:underline;"><span style="color:#000000;">query 1 modified with subquery:(finished in 0 seconds)</span></span></strong></div>
<div>
<div><span style="color:#000080;">select distinct top 1 A.Idarticolo,Titolo,titoletto,autore,fonte,dbo.getOperatore(A.idoperatore) as IdOperatore,</span></div>
<div><span style="color:#000080;">(cast(day(data) as varchar(2))+&#8217;/'+cast(month(data) as varchar(2))+&#8217;/'+cast(year(data) as varchar(4)) + &#8216; &#8216; +ora)</span></div>
<div><span style="color:#000080;">datatime_,data,dbo.getTags(A.Idarticolo) as Tags from tab_articoli A where a.idarticolo not in(</span></div>
<div><span style="color:#000080;">select idarticolo from tab_merc_catearticoli  where codi_cate_arti not in (63,58,61,48,49)</span></div>
<div><span style="color:#000080;">)</span></div>
<div><span style="color:#000080;">order by data asc</span></div>
<div></div>
<div><span style="color:#000080;"><span style="text-decoration:underline;"><strong><span style="color:#ff0000;">functions :-</span></strong></span></span></div>
<div><span style="color:#000080;"><span style="text-decoration:underline;"><strong><span style="color:#ff0000;"></p>
<div><span style="color:#000080;"><span style="font-weight:normal;">create FUNCTION getarticoli</span></span></div>
<div><span style="color:#000080;"><span style="font-weight:normal;">(@idarticolo int)</span></span></div>
<div><span style="color:#000080;"><span style="font-weight:normal;">RETURNS varchar(5000)</span></span></div>
<div><span style="color:#000080;"><span style="font-weight:normal;">AS</span></span></div>
<div><span style="color:#000080;"><span style="font-weight:normal;">BEGIN</span></span><span style="white-space:pre;"><span style="color:#000080;"><span style="font-weight:normal;"> </span></span></span></div>
<div><span style="white-space:pre;"><span style="color:#000080;"><span style="font-weight:normal;"> </span></span></span><span style="color:#000080;"><span style="font-weight:normal;">declare @corelati varchar(5000)</span></span></div>
<div><span style="color:#000080;"><span style="font-weight:normal;">SELECT @corelati= coalesce(@corelati + &#8216;$&#8217;, &#8221;) + titolo from tab_articoli A inner join </span></span></div>
<div><span style="color:#000080;"><span style="font-weight:normal;">TAB_MERC_ARTI_CORR B on </span></span></div>
<div><span style="color:#000080;"><span style="font-weight:normal;">A.Idarticolo=B.IdArtCorr where a.Idarticolo=@Idarticolo</span></span></div>
<div><span style="color:#000080;"><span style="font-weight:normal;">return @corelati</span></span></div>
<div><span style="color:#000080;"><span style="font-weight:normal;">end</span></span></div>
<div><span style="color:#000080;"><span style="font-weight:normal;"><br />
</span></span></div>
<div><span style="color:#000080;"><span style="font-weight:normal;"><br />
</span></span></div>
<div><span style="color:#000080;"><span style="font-weight:normal;">create FUNCTION getcategory </span></span></div>
<div><span style="color:#000080;"><span style="font-weight:normal;">(@idarticolo int)</span></span></div>
<div><span style="color:#000080;"><span style="font-weight:normal;">RETURNS varchar(1000)</span></span></div>
<div><span style="color:#000080;"><span style="font-weight:normal;">AS</span></span></div>
<div><span style="color:#000080;"><span style="font-weight:normal;">BEGIN</span></span><span style="white-space:pre;"><span style="color:#000080;"><span style="font-weight:normal;"> </span></span></span></div>
<div><span style="white-space:pre;"><span style="color:#000080;"><span style="font-weight:normal;"> </span></span></span><span style="color:#000080;"><span style="font-weight:normal;">declare @CategoryList varchar(1000)</span></span></div>
<div><span style="color:#000080;"><span style="font-weight:normal;">SELECT @CategoryList= coalesce(@CategoryList + &#8216;$&#8217;,&#8221;) + DESC_CATE_ARTI from TAB_MERC_CATE_ARTI A inner join  TAB_MERC_CATEARTICOLI B</span></span></div>
<div><span style="white-space:pre;"><span style="color:#000080;"><span style="font-weight:normal;"> </span></span></span><span style="color:#000080;"><span style="font-weight:normal;">on A.CODI_CATE_ARTI=B.CODI_CATE_ARTI where B.Idarticolo=@idarticolo</span></span></div>
<div><span style="color:#000080;"><span style="font-weight:normal;">return @CategoryList</span></span></div>
<div><span style="color:#000080;"><span style="font-weight:normal;">end</span></span></div>
<div><span style="color:#000080;"><span style="font-weight:normal;"><br />
</span></span></div>
<div><span style="color:#000080;"><span style="font-weight:normal;">create FUNCTION getOperatore</span></span></div>
<div><span style="color:#000080;"><span style="font-weight:normal;">(@Idoperatore int)</span></span></div>
<div><span style="color:#000080;"><span style="font-weight:normal;">RETURNS int</span></span></div>
<div><span style="color:#000080;"><span style="font-weight:normal;">AS</span></span></div>
<div><span style="color:#000080;"><span style="font-weight:normal;">BEGIN</span></span><span style="white-space:pre;"><span style="color:#000080;"><span style="font-weight:normal;"> </span></span></span></div>
<div><span style="white-space:pre;"><span style="color:#000080;"><span style="font-weight:normal;"> </span></span></span><span style="color:#000080;"><span style="font-weight:normal;">return case @Idoperatore</span></span></div>
<div><span style="white-space:pre;"><span style="color:#000080;"><span style="font-weight:normal;"> </span></span></span><span style="color:#000080;"><span style="font-weight:normal;">when 1 then 1</span></span></div>
<div><span style="white-space:pre;"><span style="color:#000080;"><span style="font-weight:normal;"> </span></span></span><span style="color:#000080;"><span style="font-weight:normal;">when 39 then 3</span></span></div>
<div><span style="white-space:pre;"><span style="color:#000080;"><span style="font-weight:normal;"> </span></span></span><span style="color:#000080;"><span style="font-weight:normal;">when 40 then 4</span></span></div>
<div><span style="white-space:pre;"><span style="color:#000080;"><span style="font-weight:normal;"> </span></span></span><span style="color:#000080;"><span style="font-weight:normal;">when 41 then 5</span></span></div>
<div><span style="white-space:pre;"><span style="color:#000080;"><span style="font-weight:normal;"> </span></span></span><span style="color:#000080;"><span style="font-weight:normal;">when 42 then 6</span></span></div>
<div><span style="white-space:pre;"><span style="color:#000080;"><span style="font-weight:normal;"> </span></span></span><span style="color:#000080;"><span style="font-weight:normal;">when 43 then 7</span></span></div>
<div><span style="white-space:pre;"><span style="color:#000080;"><span style="font-weight:normal;"> </span></span></span><span style="color:#000080;"><span style="font-weight:normal;">else 1</span></span></div>
<div><span style="white-space:pre;"><span style="color:#000080;"><span style="font-weight:normal;"> </span></span></span><span style="color:#000080;"><span style="font-weight:normal;">end </span></span></div>
<div><span style="color:#000080;"><span style="font-weight:normal;">end</span></span></div>
<div><span style="color:#000080;"><span style="font-weight:normal;">Alter FUNCTION getTags</span></span></div>
<div><span style="color:#000080;"><span style="font-weight:normal;">(@idarticolo int)</span></span></div>
<div><span style="color:#000080;"><span style="font-weight:normal;">RETURNS varchar(1000)</span></span></div>
<div><span style="color:#000080;"><span style="font-weight:normal;">AS</span></span></div>
<div><span style="color:#000080;"><span style="font-weight:normal;">BEGIN</span></span><span style="white-space:pre;"><span style="color:#000080;"><span style="font-weight:normal;"> </span></span></span></div>
<div><span style="color:#000080;"><span style="font-weight:normal;">declare @tagList varchar(1000)</span></span></div>
<div><span style="color:#000080;"><span style="font-weight:normal;">SELECT @tagList= coalesce(@tagList + &#8216;$&#8217;,&#8221;) + Tag from Tab_TagCloud where Idarticolo=@idarticolo</span></span></div>
<div><span style="color:#000080;"><span style="font-weight:normal;">return @tagList</span></span></div>
<div><span style="color:#000080;"><span style="font-weight:normal;">end</span></span></div>
<div><span style="color:#000080;"><span style="font-weight:normal;">print dbo.getTags(8817)</span></span></div>
<div></div>
<p></span></strong></span></span></div>
</div>
<div></div>
<div></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dileepstanley.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dileepstanley.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dileepstanley.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dileepstanley.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dileepstanley.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dileepstanley.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dileepstanley.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dileepstanley.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dileepstanley.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dileepstanley.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dileepstanley.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dileepstanley.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dileepstanley.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dileepstanley.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dileepstanley.wordpress.com&amp;blog=4000249&amp;post=66&amp;subd=dileepstanley&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dileepstanley.wordpress.com/2010/09/08/inner-join-and-subquery-in-sql-server-which-one-is-more-better/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2ae9580f02c597199d860e4d0ba165e4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dileepstanley</media:title>
		</media:content>
	</item>
		<item>
		<title>How to create custom tags in drupal(Like wordpress)</title>
		<link>http://dileepstanley.wordpress.com/2010/09/07/how-to-create-custom-tags-in-drupallike-wordpress/</link>
		<comments>http://dileepstanley.wordpress.com/2010/09/07/how-to-create-custom-tags-in-drupallike-wordpress/#comments</comments>
		<pubDate>Tue, 07 Sep 2010 08:42:16 +0000</pubDate>
		<dc:creator>dileepstanley</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Tags]]></category>
		<category><![CDATA[tag cloud drupal]]></category>
		<category><![CDATA[tag drupal]]></category>
		<category><![CDATA[tags using taxonomy]]></category>

		<guid isPermaLink="false">http://dileepstanley.wordpress.com/?p=62</guid>
		<description><![CDATA[Create a vocabulary with &#8216;tags&#8217; checkbox checked(Terms are created by users when submitting posts by typing a comma separated list.). And Follow this link-http://sudosys.be/?q=drupal_tag_cloud<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dileepstanley.wordpress.com&amp;blog=4000249&amp;post=62&amp;subd=dileepstanley&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Create a vocabulary with &#8216;tags&#8217; checkbox checked(Terms are created by users when submitting posts by typing a comma separated list.).</p>
<p>And Follow this link-<a href="http://sudosys.be/?q=drupal_tag_cloud">http://sudosys.be/?q=drupal_tag_cloud</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dileepstanley.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dileepstanley.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dileepstanley.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dileepstanley.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dileepstanley.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dileepstanley.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dileepstanley.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dileepstanley.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dileepstanley.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dileepstanley.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dileepstanley.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dileepstanley.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dileepstanley.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dileepstanley.wordpress.com/62/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dileepstanley.wordpress.com&amp;blog=4000249&amp;post=62&amp;subd=dileepstanley&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dileepstanley.wordpress.com/2010/09/07/how-to-create-custom-tags-in-drupallike-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2ae9580f02c597199d860e4d0ba165e4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dileepstanley</media:title>
		</media:content>
	</item>
		<item>
		<title>Mongodb Querying</title>
		<link>http://dileepstanley.wordpress.com/2010/07/20/mongodb-querying/</link>
		<comments>http://dileepstanley.wordpress.com/2010/07/20/mongodb-querying/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 12:21:55 +0000</pubDate>
		<dc:creator>dileepstanley</dc:creator>
				<category><![CDATA[Mongo DB]]></category>
		<category><![CDATA[Mongo Query]]></category>
		<category><![CDATA[Mongodb]]></category>
		<category><![CDATA[Mongoquery]]></category>
		<category><![CDATA[regExp mongodb]]></category>

		<guid isPermaLink="false">http://dileepstanley.wordpress.com/?p=60</guid>
		<description><![CDATA[With this post i want to explain some of my experiences with Mongodb and php mongo driver. searching a  collection of Mongodb with a word we can use the code like this $search = new MongoRegex(&#8220;/&#8221;.$str.&#8221;/i&#8221;); $cursor = $collection-&#62;find(array(&#8220;Campo&#8221; =&#62; $search)) ($str is the string for search,collection is the reference to db collection,Campo is the field <a href="http://dileepstanley.wordpress.com/2010/07/20/mongodb-querying/" class="excerpt-more-link">[&#8230;]</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dileepstanley.wordpress.com&amp;blog=4000249&amp;post=60&amp;subd=dileepstanley&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>With this post i want to explain some of my experiences with <a href="http://www.mongodb.org" target="_blank">Mongodb</a> and <a href="http://www.php.net/manual/en/book.mongo.php" target="_blank">php mongo driver</a>.</p>
<ul>
<li>searching a  collection of <a href="http://www.mongodb.org" target="_blank">Mongodb</a> with a word we can use the code like this</li>
</ul>
<div id="_mcePaste">$search = new MongoRegex(&#8220;/&#8221;.$str.&#8221;/i&#8221;);</div>
<div id="_mcePaste">$cursor = $collection-&gt;find(array(&#8220;Campo&#8221; =&gt; $search))</div>
<div>($str is the string for search,collection is the reference to db collection,Campo is the field to search)</div>
<h6>(i will add more  later)</h6>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dileepstanley.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dileepstanley.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dileepstanley.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dileepstanley.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dileepstanley.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dileepstanley.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dileepstanley.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dileepstanley.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dileepstanley.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dileepstanley.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dileepstanley.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dileepstanley.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dileepstanley.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dileepstanley.wordpress.com/60/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dileepstanley.wordpress.com&amp;blog=4000249&amp;post=60&amp;subd=dileepstanley&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dileepstanley.wordpress.com/2010/07/20/mongodb-querying/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2ae9580f02c597199d860e4d0ba165e4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dileepstanley</media:title>
		</media:content>
	</item>
		<item>
		<title>Syndication rules</title>
		<link>http://dileepstanley.wordpress.com/2010/07/14/syndication-rules/</link>
		<comments>http://dileepstanley.wordpress.com/2010/07/14/syndication-rules/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 08:09:35 +0000</pubDate>
		<dc:creator>dileepstanley</dc:creator>
				<category><![CDATA[Syndication]]></category>

		<guid isPermaLink="false">http://dileepstanley.wordpress.com/?p=54</guid>
		<description><![CDATA[Posted by Diego Elio “Flameeyes” Pettenò<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dileepstanley.wordpress.com&amp;blog=4000249&amp;post=54&amp;subd=dileepstanley&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>(Courtsy:<a href="http://blog.flameeyes.eu/2010/07/05/syndication-rules">http://blog.flameeyes.eu/2010/07/05/syndication-rules</a>)</p>
<p>I have noticed that, beside <a href="http://planet.gentoo.org/">Planet (and Universe) Gentoo</a> and <a href="http://linux-planet.net/">Linux-Planet</a> — both of which I asked for my blog to be syndacated on, there are a number of other websites that seem to fetch and use my own posts, fetched from the atom feeds.</p>
<p>Some of these are community websites, other are “hubs” that supposedly focus content for users; quite a few though seem to be scams and websites that simply take others’ posts and snap a bunch of AdSense units over them. While I <em>could</em> go as far as pushing for DMCA violation for those – as often CC-BY-NC-ND is not respected – I’d rather not, and especially I’d rather go with technical solutions of some kind.</p>
<p>What I would like to do is to have different feeds depending on who’s requesting them; so have a “pure” feed, with the original unmangled content from Typo for the syndications I allow explicitly (with host-based detection is even better), one Flattr-enabled feed to provide to feed readers and Google, and one, eventually, with AdSense units to shove down the abusive websites.</p>
<p>Now, for the moment I set up the two most-subscribed feeds on Google’s FeedBurner; I’d still ask you to keep using my blog’s host URLs though, as that might not be a definitive solution; if I can find some software to deal with this, or even write a Typo plugin to handle this for me, I’ll drop FeedBurner again; I’m just not happy to have to outsource feeds handling for my own blog. I’ll call this an experiment. If you happen to subscribe to the FeedBurner feeds, don’t worry, I’ll make sure to keep them updated, and hopefully without mangling content if I do handle that on my side.</p>
<p>Now, the important information on this post relates to the “rules” for syndicating my content, so that it is clear whether you’ll get the Ad-encumbered feed or not. Obviously if I asked to be syndicated, as is the case for Planet Gentoo and Linux Planet, then you’ll get the absolutely clear feed: no ads, no flattr buttons, nothing else. If the website has no content, a lot of ads, and even worse no indication of where the content truly comes from, I’m going to consider technical means to hinder the syndication, such as pushing ads on the feed myself, or removing the content, or adding a footer making the author and the terms of the content’s license explicit.</p>
<p>For the rest of the websites, I’m generally not going to bother; if you’re a decent news aggregator, and don’t have advertisement as main content on your site, and you abide to the content’s license giving proper attribution rather than showing off my content as your own, I’ve got no problem. I’ll be happy if you were to <a href="http://flattr.com/thing/13130/Flameeyess-Weblog">flattr me</a> and I <em>might</em> decide to push a Flattr button on the content pushed on.. if you wish to avoid that, you’re free to contact me and we can work out the details.. in general I have no objection to that as long as your aggregation software is decent enough to cache responses using <code>If-None-Match</code> and <code>If-Modified-Since</code>, and to use deflated (compressed) content transfer.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dileepstanley.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dileepstanley.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dileepstanley.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dileepstanley.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dileepstanley.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dileepstanley.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dileepstanley.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dileepstanley.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dileepstanley.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dileepstanley.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dileepstanley.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dileepstanley.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dileepstanley.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dileepstanley.wordpress.com/54/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dileepstanley.wordpress.com&amp;blog=4000249&amp;post=54&amp;subd=dileepstanley&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dileepstanley.wordpress.com/2010/07/14/syndication-rules/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2ae9580f02c597199d860e4d0ba165e4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dileepstanley</media:title>
		</media:content>
	</item>
	</channel>
</rss>
