<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>My Weblog</title>
	<atom:link href="http://patelraj.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://patelraj.wordpress.com</link>
	<description>That's Me</description>
	<lastBuildDate>Thu, 05 Feb 2009 03:44:28 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='patelraj.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/627529219cfc8417665fba5f4db5f320?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>My Weblog</title>
		<link>http://patelraj.wordpress.com</link>
	</image>
			<item>
		<title>How to create a new page in the zencart?</title>
		<link>http://patelraj.wordpress.com/2009/02/05/how-to-create-a-new-page-in-the-zencart/</link>
		<comments>http://patelraj.wordpress.com/2009/02/05/how-to-create-a-new-page-in-the-zencart/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 03:40:37 +0000</pubDate>
		<dc:creator>raj</dc:creator>
				<category><![CDATA[zencart]]></category>

		<guid isPermaLink="false">http://patelraj.wordpress.com/?p=51</guid>
		<description><![CDATA[For creating a page in zencart we use this instructions:
1. From admin side goto ezpages and create new page with link .
2. create a page  named this
\includes\templates\template_default\templates\tpl_mypage_default.php
in this page copy the content from other page in same directory.
3.  write define(&#8216;FILENAME_DEFINE_MYPAGE&#8217;, &#8216;define_mypage&#8217;); in the
\includes\filenames.php
4. create a page in this directory
\includes\languages\english\mypage.php
5. create a page in this directory
\includes\languages\english\html_includes\define_mypage.php
6. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&blog=4066247&post=51&subd=patelraj&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>For creating a page in zencart we use this instructions:</p>
<p>1. From admin side goto ezpages and create new page with link .</p>
<p>2. create a page  named this</p>
<p>\includes\templates\template_default\templates\tpl_mypage_default.php</p>
<p>in this page copy the content from other page in same directory.</p>
<p>3.  write define(&#8216;FILENAME_DEFINE_MYPAGE&#8217;, &#8216;define_mypage&#8217;); in the<br />
\includes\filenames.php</p>
<p>4. create a page in this directory</p>
<p>\includes\languages\english\mypage.php</p>
<p>5. create a page in this directory<br />
\includes\languages\english\html_includes\define_mypage.php</p>
<p>6. create a folder and page in this directory</p>
<p>\includes\modules\pages\mypage\header.php</p>
<p>Please copy the content from particular page in same directory.</p>
<p>7. go to define editor section from Tools menu in admin side. then select that page define_mypage and here you can insert description for that page.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/patelraj.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/patelraj.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/patelraj.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/patelraj.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/patelraj.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/patelraj.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/patelraj.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/patelraj.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/patelraj.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/patelraj.wordpress.com/51/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&blog=4066247&post=51&subd=patelraj&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://patelraj.wordpress.com/2009/02/05/how-to-create-a-new-page-in-the-zencart/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b0b913204feb05c5216591432817955f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">raj</media:title>
		</media:content>
	</item>
		<item>
		<title>Overriding layout for 1.5 series</title>
		<link>http://patelraj.wordpress.com/2008/10/02/overriding-layout-for-15-series/</link>
		<comments>http://patelraj.wordpress.com/2008/10/02/overriding-layout-for-15-series/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 06:04:37 +0000</pubDate>
		<dc:creator>raj</dc:creator>
				<category><![CDATA[Joomla]]></category>

		<guid isPermaLink="false">http://patelraj.wordpress.com/?p=48</guid>
		<description><![CDATA[There are html folder in particular template folder
Customise the Component Output for joomla 1.5 series
To override a component layout (for example the default layout in the article view), copy:
/components/com_content/views/article/tmpl/default.php
to:
/templates/rhuk_milkyway/html/com_content/article/default.php
Customise the Module Output
To override a module layout (for example the Latest News module ), copy:
/components/mod_latest_news/default.php
to:
/templates/rhuk_milkyway/html/mod_latest_news/default.php
Add New Module Styles
To add new module styles (chrome), add them to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&blog=4066247&post=48&subd=patelraj&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h4>There are html folder in particular template folder</h4>
<h4>Customise the Component Output for joomla 1.5 series</h4>
<p>To override a component layout (for example the default layout in the article view), copy:</p>
<p><code>/components/com_content/views/article/tmpl/default.php</code></p>
<p>to:</p>
<p><code>/</code><code>templates/rhuk_milkyway/html</code><code>/com_content/article/default.php</code></p>
<h4>Customise the Module Output</h4>
<p>To override a module layout (for example the Latest News module ), copy:</p>
<p><code>/components/mod_latest_news/default.php</code></p>
<p>to:</p>
<p><code>/</code><code>templates/rhuk_milkyway/html</code><code>/mod_latest_news/default.php</code></p>
<h4>Add New Module Styles</h4>
<p>To add new module styles (chrome), add them to the following file:</p>
<p><code>/templates/rhuk_milkyway/html/modules.php</code></p>
<h4>Customise the Pagination Links</h4>
<p>To customise the way the items-per-page selector and pagination links display, edit the 	following file:</p>
<p><code>/templates/rhuk_milkyway/html/pagination.php</code></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/patelraj.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/patelraj.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/patelraj.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/patelraj.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/patelraj.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/patelraj.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/patelraj.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/patelraj.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/patelraj.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/patelraj.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&blog=4066247&post=48&subd=patelraj&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://patelraj.wordpress.com/2008/10/02/overriding-layout-for-15-series/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b0b913204feb05c5216591432817955f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">raj</media:title>
		</media:content>
	</item>
		<item>
		<title>first Rails Aplication</title>
		<link>http://patelraj.wordpress.com/2008/09/09/first-rails-aplication/</link>
		<comments>http://patelraj.wordpress.com/2008/09/09/first-rails-aplication/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 07:08:31 +0000</pubDate>
		<dc:creator>raj</dc:creator>
				<category><![CDATA[ROR]]></category>

		<guid isPermaLink="false">http://patelraj.wordpress.com/?p=44</guid>
		<description><![CDATA[Ror First application on rails 2.0
1. rails &#8211;database mysql hello
or rails -d mysql hello
2. create manually database on mysql
or rake db:create:all
3. ruby script/generate controller say hello
4. ruby script/server
5. type on http://localhost:3000/say/hello
for cearting table
script/generate scaffold Post title:string body:text
rake db:migrate
Steps
- rails -d mysql test
-cd test
&#8212;-manuially set the dtabase usernamr and pwd in database.yml file
-rake db:create:all
-ruby script/server (starting [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&blog=4066247&post=44&subd=patelraj&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Ror First application on rails 2.0<br />
1. rails &#8211;database mysql hello<br />
or rails -d mysql hello<br />
2. create manually database on mysql<br />
or rake db:create:all<br />
3. ruby script/generate controller say hello</p>
<p>4. ruby script/server<br />
5. type on http://localhost:3000/say/hello</p>
<p>for cearting table<br />
script/generate scaffold Post title:string body:text<br />
rake db:migrate</p>
<p>Steps<br />
- rails -d mysql test<br />
-cd test<br />
&#8212;-manuially set the dtabase usernamr and pwd in database.yml file<br />
-rake db:create:all<br />
-ruby script/server (starting the server)<br />
-ruby script/generate scaffold Movie title:string (for table cration)<br />
-rake db:migrate</p>
<p>==for mongrel server<br />
service mongrel_cluster restart<br />
script/server &#8211;help<br />
service nginx start</p>
<p>for including file<br />
rendre:partial &#8220;path&#8221;;<br />
render(:partial =&gt; &#8216;/controls/footer&#8217;)</p>
<p>for mongrel server steps</p>
<p>==start<br />
1. copy mongrel_cluster.yml into config<br />
changes that<br />
2. insert some code in etc/ngix/*.conf<br />
in that<br />
upstream hello.rajesh {<br />
server 127.0.0.1:8005;<br />
}<br />
and<br />
server {<br />
listen       81;<br />
server_name  hello.rajesh;</p>
<p>root /sites/hello/public;</p>
<p>#charset koi8-r;</p>
<p>access_log  /var/log/nginx/hello.access.log  main;</p>
<p>location ~ ^/$ {<br />
if (-f /index.html){<br />
rewrite (.*) /index.html last;<br />
}<br />
proxy_pass  http://hello.rajesh;<br />
}</p>
<p>location / {<br />
if (!-f $request_filename.html) {<br />
proxy_pass  http://hello.rajesh;<br />
}<br />
rewrite (.*) $1.html last;<br />
}</p>
<p>location ~ .html {<br />
root /sites/hello/public;<br />
}</p>
<p>location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js|mov)$ {<br />
root /sites/hello/public;<br />
}</p>
<p>location / {<br />
proxy_pass  http://hello.rajesh;<br />
proxy_redirect     off;<br />
proxy_set_header   Host             $host;<br />
proxy_set_header   X-Real-IP        $remote_addr;<br />
proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;<br />
}</p>
<p>}</p>
<p>3. ln -s /sites/hello/config/mongrel_cluster.yml /etc/mongrel_cluster/hello.yml<br />
4. chown -R mongrel:mongrel /sites/hello<br />
==end<br />
for creating only model and table<br />
ruby script/generate model images_imagecategories image_id:integer imagecategories_id:integer<br />
ruby script/generate model imagecategories_images images_id:integer imagecategories_id:integer</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/patelraj.wordpress.com/44/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/patelraj.wordpress.com/44/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/patelraj.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/patelraj.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/patelraj.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/patelraj.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/patelraj.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/patelraj.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/patelraj.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/patelraj.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/patelraj.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/patelraj.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&blog=4066247&post=44&subd=patelraj&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://patelraj.wordpress.com/2008/09/09/first-rails-aplication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b0b913204feb05c5216591432817955f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">raj</media:title>
		</media:content>
	</item>
		<item>
		<title>Ajax Uploading image, How to get image width and height for uploaded image, how to make validation for image width and height, how to call php function in javascript?</title>
		<link>http://patelraj.wordpress.com/2008/09/09/ajax-uploading-image-how-to-get-image-width-and-height-for-uploaded-image-how-to-make-validation-for-image-width-and-height/</link>
		<comments>http://patelraj.wordpress.com/2008/09/09/ajax-uploading-image-how-to-get-image-width-and-height-for-uploaded-image-how-to-make-validation-for-image-width-and-height/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 06:44:11 +0000</pubDate>
		<dc:creator>raj</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://patelraj.wordpress.com/?p=35</guid>
		<description><![CDATA[For that use following code for uplaoding image, there are 3 files to make this clear.
1.index.php
&#60;!&#8211;
/* This scipt uses webtoolkit.js for Frame and aJAx style upload */
&#8211;&#62;
&#60;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Strict//EN&#8221; &#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&#8221;&#62;
&#60;html xmlns=&#8221;http://www.w3.org/1999/xhtml&#8221; xml:lang=&#8221;en-US&#8221; lang=&#8221;en-US&#8221;&#62;
&#60;head&#62;
&#60;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=UTF-8&#8243; /&#62;
&#60;title&#62;Iframe Ajax for Upload&#60;/title&#62;
&#60;script type=&#8221;text/javascript&#8221; src=&#8221;webtoolkit.js&#8221;&#62;&#60;/script&#62;
&#60;script type=&#8221;text/javascript&#8221;&#62;
function startCallback() {
// make something useful before submit (onStart)
return [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&blog=4066247&post=35&subd=patelraj&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>For that use following code for uplaoding image, there are 3 files to make this clear.</p>
<p>1.index.php</p>
<p>&lt;!&#8211;<br />
/* This scipt uses webtoolkit.js for Frame and aJAx style upload */<br />
&#8211;&gt;<br />
&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Strict//EN&#8221; &#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&#8221;&gt;<br />
&lt;html xmlns=&#8221;http://www.w3.org/1999/xhtml&#8221; xml:lang=&#8221;en-US&#8221; lang=&#8221;en-US&#8221;&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=UTF-8&#8243; /&gt;<br />
&lt;title&gt;Iframe Ajax for Upload&lt;/title&gt;<br />
&lt;script type=&#8221;text/javascript&#8221; src=&#8221;webtoolkit.js&#8221;&gt;&lt;/script&gt;<br />
&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
function startCallback() {<br />
// make something useful before submit (onStart)<br />
return true;<br />
}<br />
function completeCallback(response) {<br />
// make something useful after (onComplete)<br />
var src_path =response;<br />
//alert(response);<br />
var img_obj  =document.getElementById(&#8216;img_div&#8217;);<br />
var newimg=document.createElement(&#8216;img&#8217;);<br />
img_obj.appendChild(newimg);<br />
newimg.src = src_path;<br />
newimg.onload=function()<br />
{ // get an image width and hieght<br />
new_w = img_obj.getElementsByTagName(&#8216;img&#8217;)[0].width;<br />
new_h =img_obj.getElementsByTagName(&#8216;img&#8217;)[0].height;</p>
<p>if(new_w&gt;100) //make neccessary validation depends on width adn hight<br />
{<br />
var ret = &#8220;&lt;?php posting1(&#8216;&#8221;+response+&#8221;&#8216;);?&gt;&#8221;;<br />
alert(ret);<br />
}<br />
//remove the image from disp location here<br />
img_obj.removeChild(newimg);<br />
}<br />
}<br />
&lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;</p>
<p>&lt;form action=&#8221;my_upload.php&#8221; method=&#8221;post&#8221; onsubmit=&#8221;return AIM.submit(this, {&#8216;onStart&#8217; : startCallback, &#8216;onComplete&#8217; : completeCallback})&#8221; enctype=&#8221;multipart/form-data&#8221;&gt;<br />
&lt;div&gt;&lt;label&gt;Name:&lt;/label&gt; &lt;input type=&#8221;text&#8221; name=&#8221;form[name]&#8221; /&gt;&lt;/div&gt;<br />
&lt;div&gt;&lt;label&gt;File:&lt;/label&gt; &lt;input type=&#8221;file&#8221; name=&#8221;form[file]&#8221; /&gt;&lt;/div&gt;<br />
&lt;div&gt;&lt;input type=&#8221;submit&#8221; value=&#8221;SUBMIT&#8221; /&gt;&lt;/div&gt;<br />
&lt;/form&gt;<br />
&lt;hr/&gt;<br />
&lt;div id=&#8221;img_div&#8221;&gt;&lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
&lt;?php<br />
function posting1($ret)<br />
{<br />
echo &#8220;code for update database and remove image for the same&#8221;.$ret;<br />
}</p>
<p>?&gt;</p>
<hr />2.my_upload.php</p>
<p>&lt;!&#8211;<br />
/* In this page we can make upload logic by using php code */<br />
&#8211;&gt;<br />
&lt;?php<br />
$fname =  $_FILES['form']['name']['file'];<br />
$uploaded_path = &#8220;&#8221;.$fname;        ///var/www/html/demo/test/my_upload/<br />
$ftname =  $_FILES['form']['tmp_name']['file'];</p>
<p>if(move_uploaded_file($ftname,$uploaded_path))<br />
$ret = $uploaded_path;<br />
else $ret =  $uploaded_path;<br />
//$ret =&#8221;http://localhost:100/demo/test/&#8221;.$fname;<br />
$disp_path =$fname;<br />
echo $disp_path;<br />
?&gt;</p>
<hr />
3.webtoolkit.js<br />
/**<br />
*<br />
*  AJAX IFRAME METHOD (AIM)<br />
*  http://www.webtoolkit.info/<br />
**/</p>
<p>AIM = {</p>
<p>frame : function(c) {</p>
<p>var n = &#8216;f&#8217; + Math.floor(Math.random() * 99999);<br />
var d = document.createElement(&#8216;DIV&#8217;);<br />
d.innerHTML = &#8216;&lt;iframe style=&#8221;display:none&#8221; src=&#8221;about:blank&#8221; id=&#8221;&#8216;+n+&#8217;&#8221; name=&#8221;&#8216;+n+&#8217;&#8221; onload=&#8221;AIM.loaded(\&#8221;+n+&#8217;\')&#8221;&gt;&lt;/iframe&gt;&#8217;;<br />
document.body.appendChild(d);</p>
<p>var i = document.getElementById(n);<br />
if (c &amp;&amp; typeof(c.onComplete) == &#8216;function&#8217;) {<br />
i.onComplete = c.onComplete;<br />
}</p>
<p>return n;<br />
},</p>
<p>form : function(f, name) {<br />
f.setAttribute(&#8216;target&#8217;, name);<br />
},</p>
<p>submit : function(f, c) {<br />
AIM.form(f, AIM.frame(c));<br />
if (c &amp;&amp; typeof(c.onStart) == &#8216;function&#8217;) {<br />
return c.onStart();<br />
} else {<br />
return true;<br />
}<br />
},</p>
<p>loaded : function(id) {<br />
var i = document.getElementById(id);<br />
if (i.contentDocument) {<br />
var d = i.contentDocument;<br />
} else if (i.contentWindow) {<br />
var d = i.contentWindow.document;<br />
} else {<br />
var d = window.frames[id].document;<br />
}<br />
if (d.location.href == &#8220;about:blank&#8221;) {<br />
return;<br />
}</p>
<p>if (typeof(i.onComplete) == &#8216;function&#8217;) {<br />
i.onComplete(d.body.innerHTML);<br />
}<br />
}</p>
<p>}</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/patelraj.wordpress.com/35/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/patelraj.wordpress.com/35/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/patelraj.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/patelraj.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/patelraj.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/patelraj.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/patelraj.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/patelraj.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/patelraj.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/patelraj.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/patelraj.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/patelraj.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&blog=4066247&post=35&subd=patelraj&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://patelraj.wordpress.com/2008/09/09/ajax-uploading-image-how-to-get-image-width-and-height-for-uploaded-image-how-to-make-validation-for-image-width-and-height/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b0b913204feb05c5216591432817955f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">raj</media:title>
		</media:content>
	</item>
		<item>
		<title>Symfony project creation tips</title>
		<link>http://patelraj.wordpress.com/2008/09/03/symfony-project-creation-tips/</link>
		<comments>http://patelraj.wordpress.com/2008/09/03/symfony-project-creation-tips/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 05:06:42 +0000</pubDate>
		<dc:creator>raj</dc:creator>
				<category><![CDATA[symfony]]></category>

		<guid isPermaLink="false">http://patelraj.wordpress.com/?p=32</guid>
		<description><![CDATA[for creating an project
on command line type and for SVN
1. crate a proejct
[root@local my_symfony]# php /var/www/html/demo/svn_symfony/data/bin/symfony init-project my_symfony
2. create an apllication
[root@local my_symfony]# php symfony init-app myapp
&#8211; if we have a sandox then we will directly write step2.
&#8211; run on wroser
http://localhost:100/demo/my_symfony/web/
&#8211;if you wnat to change the htaccess then do it here.
- create a SVN
svnadmin create my_svn
3. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&blog=4066247&post=32&subd=patelraj&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>for creating an project<br />
on command line type and for SVN<br />
1. crate a proejct<br />
[root@local my_symfony]# php /var/www/html/demo/svn_symfony/data/bin/symfony init-project my_symfony<br />
2. create an apllication<br />
[root@local my_symfony]# php symfony init-app myapp<br />
&#8211; if we have a sandox then we will directly write step2.<br />
&#8211; run on wroser<br />
http://localhost:100/demo/my_symfony/web/<br />
&#8211;if you wnat to change the htaccess then do it here.</p>
<p>- create a SVN<br />
svnadmin create my_svn</p>
<p>3. create a module ( for creating a page we must create module)<br />
php symfony init-module [app_name] [module_name]<br />
eg.php symfony init-module myapp mymodule<br />
&#8211;run<br />
http://localhost:100/demo/my_symfony/web/myapp_dev.php/mymodule/index<br />
-now you can create mnodules/pages and multiple actions and templates</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/patelraj.wordpress.com/32/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/patelraj.wordpress.com/32/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/patelraj.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/patelraj.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/patelraj.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/patelraj.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/patelraj.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/patelraj.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/patelraj.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/patelraj.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/patelraj.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/patelraj.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&blog=4066247&post=32&subd=patelraj&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://patelraj.wordpress.com/2008/09/03/symfony-project-creation-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b0b913204feb05c5216591432817955f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">raj</media:title>
		</media:content>
	</item>
		<item>
		<title>Stored Procedure</title>
		<link>http://patelraj.wordpress.com/2008/09/03/stored-procedure/</link>
		<comments>http://patelraj.wordpress.com/2008/09/03/stored-procedure/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 05:02:24 +0000</pubDate>
		<dc:creator>raj</dc:creator>
				<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://patelraj.wordpress.com/?p=29</guid>
		<description><![CDATA[Stored Procedure
MySQL 5.0 finally introduces functionality for Stored Procedures. So what exactly are stored procedures?
A stored procedure is simply a procedure that is stored on the database server.
It is a some sql statments.
A stored procedure is a set of SQL statements stored on the server that takes in
certain arguments and processes that code with those [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&blog=4066247&post=29&subd=patelraj&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Stored Procedure<br />
MySQL 5.0 finally introduces functionality for Stored Procedures. So what exactly are stored procedures?<br />
A stored procedure is simply a procedure that is stored on the database server.<br />
It is a some sql statments.<br />
A stored procedure is a set of SQL statements stored on the server that takes in<br />
certain arguments and processes that code with those arguments at execution time</p>
<p>A stored procedure is a set of SQL statements stored on the server that takes in certain arguments and<br />
processes that code with those arguments at execution time.<br />
It can be invoked simply by making a call to the procedure with the correct arguments.<br />
The difference between stored procedures and other sets of SQL statements is that stored procedures<br />
reside on the server and are pre-compiled.</p>
<p>Why we use that:<br />
They wil lrun in all enviroments and there is no need to recreate the logics.It makes no<br />
differnce on application environment, it remains consistent.<br />
They can reduce network traffics. there is no need to send result sets and new<br />
queries back and forth from application server to database server.<br />
1. Better performance  Stored procedures are faster because they are pre-compiled SQL code. This reduces the “Compile and Execute” step to just “Execute’ in most cases.  Also, only the call to the stored procedure needs to be sent to the server instead of chunks of information – this reduces the information that needs to be sent to the server and acts like a call to a remote procedure. This is an advantage when it comes to code that is called repeatedly. However, the load on the server is another point to consider since most of the processing will now be done on the server.</p>
<p>2. Easier to maintain  Since all the SQL can now be stored on the server, it is easier to make changes to the stored procedure than to a bunch of SQL statements distributed all over the application.</p>
<p>3. Security  Although the use of stored procedures is not by itself a guarantee of security, it can be used to create an environment where applications and users can only access database tables through the stored procedures, instead of giving them direct access to the tables. The benefit is a layer of abstraction.</p>
<p>4. Optimization  When a SQL statement is parsed by the server, it is optimized internally by the server. If a bunch of SQL statements are sent to the server, repeatedly, they have to be optimized each time. The SQL statements in the stored procedure that is in memory have to only be optimized once and an execution plan is created for the SQL statements in the stored procedure.</p>
<p>Example:<br />
mysql&gt; create stored procedure my_prodc() select &#8220;tets&#8221;<br />
mysql&gt; call my_proc()</p>
<p>Parameters:<br />
there are 3 parameters<br />
IN: The default. This parameter is passed to the procedure, and can change inside the procedure,<br />
but remains unchanged outside.<br />
OUT: No value is supplied to the procedure (it is assumed to be NULL), but it can be modified inside<br />
the procedure, and is available outside the procedure.<br />
INOUT: The characteristics of both IN and OUT parameters. A value can be passed to the procedure,<br />
modified there as well as passed back again.<br />
Mastery of stored procedures does require knowledge of session variables.<br />
Most of you probably know how to use session variables already, but if not, the concept is simple.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/patelraj.wordpress.com/29/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/patelraj.wordpress.com/29/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/patelraj.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/patelraj.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/patelraj.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/patelraj.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/patelraj.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/patelraj.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/patelraj.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/patelraj.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/patelraj.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/patelraj.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&blog=4066247&post=29&subd=patelraj&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://patelraj.wordpress.com/2008/09/03/stored-procedure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b0b913204feb05c5216591432817955f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">raj</media:title>
		</media:content>
	</item>
		<item>
		<title>Paypal integration instruction</title>
		<link>http://patelraj.wordpress.com/2008/09/03/paypal-integration-instruction/</link>
		<comments>http://patelraj.wordpress.com/2008/09/03/paypal-integration-instruction/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 04:34:06 +0000</pubDate>
		<dc:creator>raj</dc:creator>
				<category><![CDATA[web service]]></category>

		<guid isPermaLink="false">http://patelraj.wordpress.com/?p=27</guid>
		<description><![CDATA[For sandbox
-create developer central a/c
-creaet multiple Paypal Test a/c for buyer and merchants
make a form in your site which will hidden
this is the default format for paypal
1. &#60;FORM action=&#8221;https://www.paypal.com/cgi-bin/webscr&#8221; method=&#8221;post&#8221;&#62;
2. &#60;INPUT TYPE=&#8221;hidden&#8221; name=&#8221;variableName&#8221; value=&#8221;allowedValue&#8221;&#62;
Buy Now buttons – &#60;INPUT TYPE=&#8221;hidden&#8221; name=&#8221;cmd&#8221; value=&#8221;_xclick&#8221;&#62;
Donate buttons – &#60;INPUT TYPE=&#8221;hidden&#8221; name=&#8221;cmd&#8221; value=&#8221;_donations&#8221;&#62;
Subscribe buttons – &#60;INPUT TYPE=&#8221;hidden&#8221; name=&#8221;cmd&#8221; value=&#8221;_xclick-
subscriptions&#8221;&#62;
Shopping cart buttons [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&blog=4066247&post=27&subd=patelraj&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>For sandbox<br />
-create developer central a/c<br />
-creaet multiple Paypal Test a/c for buyer and merchants</p>
<p>make a form in your site which will hidden<br />
this is the default format for paypal<br />
1. &lt;FORM action=&#8221;https://www.paypal.com/cgi-bin/webscr&#8221; method=&#8221;post&#8221;&gt;<br />
2. &lt;INPUT TYPE=&#8221;hidden&#8221; name=&#8221;variableName&#8221; value=&#8221;allowedValue&#8221;&gt;</p>
<p>Buy Now buttons – &lt;INPUT TYPE=&#8221;hidden&#8221; name=&#8221;cmd&#8221; value=&#8221;_xclick&#8221;&gt;<br />
Donate buttons – &lt;INPUT TYPE=&#8221;hidden&#8221; name=&#8221;cmd&#8221; value=&#8221;_donations&#8221;&gt;<br />
Subscribe buttons – &lt;INPUT TYPE=&#8221;hidden&#8221; name=&#8221;cmd&#8221; value=&#8221;_xclick-<br />
subscriptions&#8221;&gt;<br />
Shopping cart buttons – &lt;INPUT TYPE=&#8221;hidden&#8221; name=&#8221;cmd&#8221; value=&#8221;_cart&#8221;&gt;</p>
<p>The following are passthrough variables:<br />
custom<br />
item_number or item_number_x<br />
invoice</p>
<p>HTML Code for FORM Prepopulation<br />
&lt;form action=&#8221;https://www.paypal.com/cgi-bin/webscr&#8221; method=&#8221;post&#8221;&gt;<br />
for sandbox<br />
https://www.sandbox.paypal.com/cgi-bin/webscr<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;cmd&#8221; value=&#8221;_xclick&#8221;&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;business&#8221; value=&#8221;seller@designerfotos.com&#8221;&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;item_name&#8221;<br />
value=&#8221;Memorex 256MB Memory Stick&#8221;&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;item_number&#8221; value=&#8221;MEM32507725&#8243;&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;amount&#8221; value=&#8221;3&#8243;&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;tax&#8221; value=&#8221;1&#8243;&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;quantity&#8221; value=&#8221;1&#8243;&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;no_note&#8221; value=&#8221;1&#8243;&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;currency_code&#8221; value=&#8221;USD&#8221;&gt;<br />
&lt;!&#8211; Enable override of payer’s stored PayPal address. &#8211;&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;address_override&#8221; value=&#8221;1&#8243;&gt;<br />
&lt;!&#8211; Set prepopulation variables to override stored address. &#8211;&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;first_name&#8221; value=&#8221;John&#8221;&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;last_name&#8221; value=&#8221;Doe&#8221;&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;address1&#8243; value=&#8221;345 Lark Ave&#8221;&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;city&#8221; value=&#8221;San Jose&#8221;&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;state&#8221; value=&#8221;CA&#8221;&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;zip&#8221; value=&#8221;95121&#8243;&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;country&#8221; value=&#8221;US&#8221;&gt;<br />
&lt;input type=&#8221;image&#8221; name=&#8221;submit&#8221; border=&#8221;0&#8243;<br />
src=&#8221;https://www.paypal.com/en_US/i/btn/btn_buynow_LG.gif&#8221;<br />
alt=&#8221;PayPal &#8211; The safer, easier way to pay online&#8221;&gt;<br />
&lt;/form&gt;</p>
<p>&lt;INPUT TYPE=&#8221;hidden&#8221; name=&#8221;charset&#8221; value=&#8221;utf-8&#8243;&gt;<br />
&lt;INPUT TYPE=&#8221;hidden&#8221; NAME=&#8221;return&#8221; value=&#8221;URLspecificToThisTransaction&#8221;&gt; (default paypal own return )<br />
&lt;INPUT TYPE=&#8221;hidden&#8221; NAME=&#8221;currency_code&#8221; value=&#8221;CurrencyCode&#8221;&gt; ( default USD)<br />
&lt;INPUT TYPE=&#8221;hidden&#8221; name=&#8221;address_override&#8221; value=&#8221;1&#8243;&gt;</p>
<p>===IPN ( instant payment notification)=notify_url======</p>
<p>====Allowable Values for the cmd HTML Variable==<br />
Value of cmd            Description<br />
_xclick          The button that the person clicked was a Buy Now button.<br />
_donations       The button that the person clicked was a Donate button.<br />
_xclick-subscriptions  The button that the person clicked was a Subscribe button.<br />
_oe-gift-certificate   The button that the person clicked was a Buy Gift Certificate button.<br />
_cart             For shopping cart purchases; these additional variables specify the<br />
kind of shopping cart button that the person clicked:<br />
add – Add to Cart buttons for the PayPal Shopping Cart<br />
display – View Cart buttons for the PayPal Shopping Cart<br />
upload – The Cart Upload command for third party carts<br />
_s-xclick          The button that the person clicked was protected from tampering by<br />
using encryption.</p>
<p>============= ==IPN back=============</p>
<p>// read the post from PayPal system and add &#8216;cmd&#8217;<br />
$req = &#8216;cmd=_notify-validate&#8217;;</p>
<p>foreach ($_POST as $key =&gt; $value) {<br />
$value = urlencode(stripslashes($value));<br />
$req .= &#8220;&amp;$key=$value&#8221;;<br />
}</p>
<p>// post back to PayPal system to validate<br />
$header .= &#8220;POST /cgi-bin/webscr HTTP/1.0\r\n&#8221;;<br />
$header .= &#8220;Content-Type: application/x-www-form-urlencoded\r\n&#8221;;<br />
$header .= &#8220;Content-Length: &#8221; . strlen($req) . &#8220;\r\n\r\n&#8221;;<br />
$fp = fsockopen (&#8217;ssl://www.paypal.com&#8217;, 80, $errno, $errstr, 30);</p>
<p>// assign posted variables to local variables<br />
$item_name = $_POST['item_name'];<br />
$item_number = $_POST['item_number'];<br />
$payment_status = $_POST['payment_status'];<br />
$payment_amount = $_POST['mc_gross'];<br />
$payment_currency = $_POST['mc_currency'];<br />
$txn_id = $_POST['txn_id'];<br />
$receiver_email = $_POST['receiver_email'];<br />
$payer_email = $_POST['payer_email'];</p>
<p>if (!$fp) {<br />
// HTTP ERROR<br />
} else {<br />
fputs ($fp, $header . $req);<br />
while (!feof($fp)) {<br />
$res = fgets ($fp, 1024);<br />
if (strcmp ($res, &#8220;VERIFIED&#8221;) == 0) {<br />
// check the payment_status is Completed<br />
// check that txn_id has not been previously processed<br />
// check that receiver_email is your Primary PayPal email<br />
// check that payment_amount/payment_currency are correct<br />
// process payment<br />
}<br />
else if (strcmp ($res, &#8220;INVALID&#8221;) == 0) {<br />
// log for manual investigation<br />
}<br />
}<br />
fclose ($fp);<br />
}</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/patelraj.wordpress.com/27/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/patelraj.wordpress.com/27/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/patelraj.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/patelraj.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/patelraj.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/patelraj.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/patelraj.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/patelraj.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/patelraj.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/patelraj.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/patelraj.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/patelraj.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&blog=4066247&post=27&subd=patelraj&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://patelraj.wordpress.com/2008/09/03/paypal-integration-instruction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b0b913204feb05c5216591432817955f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">raj</media:title>
		</media:content>
	</item>
		<item>
		<title>Web Service</title>
		<link>http://patelraj.wordpress.com/2008/09/03/web-service/</link>
		<comments>http://patelraj.wordpress.com/2008/09/03/web-service/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 04:29:46 +0000</pubDate>
		<dc:creator>raj</dc:creator>
				<category><![CDATA[web service]]></category>

		<guid isPermaLink="false">http://patelraj.wordpress.com/?p=25</guid>
		<description><![CDATA[What is a Web Service?
A &#8220;web service&#8221; is a network accessible interface to application functionality built using XML and usually HTTP.
Standard Setup
* • Clients make requests and servers reply
* • Communication done over the Internet
Four Basic Steps
* 1. Web Services client script builds up the request
* 2. Client sends the request to server using HTTP
* [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&blog=4066247&post=25&subd=patelraj&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>What is a Web Service?<br />
A &#8220;web service&#8221; is a network accessible interface to application functionality built using XML and usually HTTP.<br />
Standard Setup</p>
<p>* • Clients make requests and servers reply<br />
* • Communication done over the Internet</p>
<p>Four Basic Steps</p>
<p>* 1. Web Services client script builds up the request<br />
* 2. Client sends the request to server using HTTP<br />
* 3. Server replies and returns an XML document with results<br />
* 4. Client parses XML<br />
Three forms of Web Services</p>
<p>* • SOAP<br />
* • XML-RPC<br />
* • REST</p>
<p>SOAP</p>
<p>* • Formerly known as Simple Object Access Protocol.<br />
* • Uses XML, but you never need to touch it.<br />
* • Which is good, because SOAP is messy to look at.<br />
* • You just call functions and manipulate arrays. (Unless you want to.)<br />
* • A few PHP implementations: PEAR::SOAP, PHP-SOAP, NuSOAP</p>
<p>Make a Request<br />
Load in the SOAP Client<br />
&lt;?php require &#8216;SOAP/Client.php&#8217;; ?&gt;<br />
Generate Client Proxy (for Amazon.Com)<br />
&lt;?php<br />
// We have human readable explanation of the API.<br />
$wsdl_url = &#8216;http://soap.amazon.com/schemas3/AmazonWebServices.wsdl&#8217;;<br />
$WSDL = new SOAP_WSDL($wsdl_url);<br />
$client = $WSDL-&gt;getProxy();<br />
?&gt;<br />
Web Service Description Language (WSDL)<br />
Machine readable description (XML) of a web service. Used here to define server&#8217;s methods and parameters.<br />
SOAP Server<br />
&lt;?php<br />
require_once &#8216;SOAP/Server.php&#8217;;</p>
<p>class SOAP_Server_rot13 {<br />
function rotate($input) {<br />
return str_rot13($input);<br />
}<br />
}</p>
<p>$server = new SOAP_Server;<br />
$soapclass = new SOAP_Server_rot13();<br />
// Associate PHP class with SOAP message<br />
$server-&gt;addObjectMap($soapclass ,&#8217;urn:SOAP_Server_rot13&#8242;);<br />
$server-&gt;service($HTTP_RAW_POST_DATA);<br />
?&gt;</p>
<p>XML-RPC</p>
<p>* • XML Remote Procedure Call<br />
* • Similar to SOAP, but less complex<br />
* • Which is its biggest advantage<br />
* • And its biggest disadvantage<br />
* • But it is often &#8220;good enough&#8221;<br />
* • But, SOAP has better buzzword compliance</p>
<p>REST</p>
<p>* • REpresentational State Transfer<br />
* • Make URI request using existing HTTP methods: GET / POST / PUT / DELETE.<br />
* • Data returned as XML, and you do need to touch it.<br />
* • Which is good, because it&#8217;s not complicated.<br />
* • Many ways to parse XML: SAX / DOM / XSLT / SimpleXML</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/patelraj.wordpress.com/25/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/patelraj.wordpress.com/25/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/patelraj.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/patelraj.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/patelraj.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/patelraj.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/patelraj.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/patelraj.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/patelraj.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/patelraj.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/patelraj.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/patelraj.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&blog=4066247&post=25&subd=patelraj&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://patelraj.wordpress.com/2008/09/03/web-service/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b0b913204feb05c5216591432817955f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">raj</media:title>
		</media:content>
	</item>
		<item>
		<title>Document uplaoding and downloading instruction</title>
		<link>http://patelraj.wordpress.com/2008/09/03/document-uplaoding-and-downloading-instruction/</link>
		<comments>http://patelraj.wordpress.com/2008/09/03/document-uplaoding-and-downloading-instruction/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 04:27:28 +0000</pubDate>
		<dc:creator>raj</dc:creator>
				<category><![CDATA[ROR]]></category>

		<guid isPermaLink="false">http://patelraj.wordpress.com/?p=23</guid>
		<description><![CDATA[#This is the sample appliocation code ,Please change as per your requirements.
==========For Document uploading============
1. model
-dcument.rb
def upload=(input_data)
if input_data != &#8220;&#8221;
self.filename = input_data.original_filename
self.documenttype = input_data.content_type.chomp
self.content = input_data.read
self.documentsize = input_data.size
end
end
2. controller
#display the doc /dopwnlaod
def showdoc# for download document
doc_id = params[:id]
#@doc = Document.find(doc_id)
#send_data(@doc.content, :type =&#62; @doc.documenttype,
#                 :filename =&#62; @doc.filename,
#                 :disposition =&#62; &#8216;inline&#8217;)
#
if doc_id != 0
begin
@doc = Document.find(doc_id)
if !(@doc.documentsize).blank?
send_data(@doc.content, :type [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&blog=4066247&post=23&subd=patelraj&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>#This is the sample appliocation code ,Please change as per your requirements.</p>
<p>==========For Document uploading============<br />
1. model<br />
-dcument.rb<br />
def upload=(input_data)<br />
if input_data != &#8220;&#8221;<br />
self.filename = input_data.original_filename<br />
self.documenttype = input_data.content_type.chomp<br />
self.content = input_data.read<br />
self.documentsize = input_data.size<br />
end<br />
end<br />
2. controller<br />
#display the doc /dopwnlaod<br />
def showdoc# for download document<br />
doc_id = params[:id]<br />
#@doc = Document.find(doc_id)<br />
#send_data(@doc.content, :type =&gt; @doc.documenttype,<br />
#                 :filename =&gt; @doc.filename,<br />
#                 :disposition =&gt; &#8216;inline&#8217;)<br />
#<br />
if doc_id != 0<br />
begin<br />
@doc = Document.find(doc_id)<br />
if !(@doc.documentsize).blank?<br />
send_data(@doc.content, :type =&gt; @doc.documenttype,<br />
:filename =&gt; @doc.filename,<br />
:disposition =&gt; &#8216;disposition&#8217;)<br />
#increment download count<br />
@count =(@doc.downloadcount)+1<br />
@up = Document.update(doc_id, :downloadcount =&gt; @count)<br />
#end incerement<br />
return<br />
end<br />
rescue<br />
end<br />
end<br />
flash[:notice] = &#8220;Error occured during downlaoding.&#8221;<br />
redirect_to :action =&gt; &#8220;index&#8221;<br />
end<br />
#save document<br />
def savedoc<br />
if params[:doc][:title].blank?<br />
flash[:notice] = &#8220;Title cannot be left blank.&#8221;<br />
elsif  params[:doc][:upload].blank?<br />
flash[:notice] = &#8220;Please select Document.&#8221;<br />
else<br />
@doc = Document.new(params[:doc])<br />
if @doc.save<br />
flash[:notice] = &#8220;Document was successfully created.&#8221;<br />
redirect_to :action =&gt; &#8220;index&#8221;<br />
return<br />
else<br />
flash[:notice] = &#8220;Error occured during Uploading.&#8221;<br />
end<br />
end<br />
redirect_to :action =&gt; &#8220;adddoc&#8221;<br />
end<br />
#update document<br />
def updatedoc<br />
if params[:doc][:title].blank?<br />
flash[:notice] = &#8220;Title cannot be left blank.&#8221;<br />
else<br />
@items = Document.find(params[:id])<br />
if @items.update_attributes(params[:doc])<br />
flash[:notice] = &#8216;Document was successfully updated.&#8217;<br />
redirect_to :action =&gt; &#8220;index&#8221;<br />
return<br />
end<br />
end<br />
redirect_to :action =&gt; &#8220;editdoc&#8221;,:id=&gt;params[:id]<br />
end</p>
<p>3. view<br />
-showdocument.rhtml<br />
&lt;% @items_all = Document.find(:all)<br />
for @items in @items_all %&gt;<br />
&lt;%=  link_to &#8216;Download&#8217;, :id =&gt; @items.id, :action =&gt; &#8220;showdoc&#8221; %&gt;<br />
&lt;% end %&gt;<br />
-adddocument.rhtml<br />
&lt;%= form_tag ({:action =&gt; &#8217;savedoc&#8217;},:multipart =&gt; true) %&gt;<br />
&lt;table&gt;<br />
&lt;tr&gt;&lt;td&gt;Title&lt;/td&gt;<br />
&lt;td&gt;&lt;%= text_field (&#8220;doc&#8221;,&#8221;title&#8221;,:size=&gt;&#8221;30&#8243;) %&gt;&lt;span id=&#8221;red&#8221;&gt;&amp;nbsp;*&lt;/span&gt;<br />
&lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr&gt;&lt;td&gt;Description&lt;/td&gt;<br />
&lt;td&gt;&lt;%= text_area (&#8220;doc&#8221;,&#8221;description&#8221;,:cols=&gt;&#8221;28&#8243;,:rows=&gt;4)%&gt;<br />
&lt;/td&gt;&lt;/tr&gt;</p>
<p>&lt;tr&gt;&lt;td&gt;Upload Document&lt;/td&gt;&lt;td&gt;<br />
&lt;%= file_field &#8216;doc&#8217;, &#8216;upload&#8217;, :size =&gt; &#8220;20&#8243; %&gt;&lt;span id=&#8221;red&#8221;&gt;&amp;nbsp;*&lt;/span&gt;<br />
&lt;/td&gt;&lt;/tr&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;&lt;td colspna=&#8221;2&#8243;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr&gt;&lt;td colspna=&#8221;2&#8243;&gt;&lt;input type=&#8221;submit&#8221; name =&#8221;save&#8221; value=&#8221;Add&#8221;&gt;&lt;/td&gt;&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/form&gt;<br />
4. database table structure<br />
-document table<br />
id=int<br />
title=varchar<br />
description=varchar<br />
filename-varchar<br />
documenttype=varrchar<br />
documentsize-bigint(11)<br />
content &#8211; longblob<br />
downlaodcount-bigint(11)</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/patelraj.wordpress.com/23/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/patelraj.wordpress.com/23/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/patelraj.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/patelraj.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/patelraj.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/patelraj.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/patelraj.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/patelraj.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/patelraj.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/patelraj.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/patelraj.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/patelraj.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&blog=4066247&post=23&subd=patelraj&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://patelraj.wordpress.com/2008/09/03/document-uplaoding-and-downloading-instruction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b0b913204feb05c5216591432817955f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">raj</media:title>
		</media:content>
	</item>
		<item>
		<title>Image uploading Instruction with sample</title>
		<link>http://patelraj.wordpress.com/2008/09/03/image-uploading-instruction-with-sample/</link>
		<comments>http://patelraj.wordpress.com/2008/09/03/image-uploading-instruction-with-sample/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 04:23:09 +0000</pubDate>
		<dc:creator>raj</dc:creator>
				<category><![CDATA[ROR]]></category>

		<guid isPermaLink="false">http://patelraj.wordpress.com/?p=18</guid>
		<description><![CDATA[#This is the sample appliocation code ,Please change as per your requirements.
======Image Uploading instruction=========
1.routes.rb
#this is for image display
map.with_options :controller =&#62; &#8216;images&#8217; do &#124;image&#124;
image.show &#8216;images/show/:size/:id/:default_image&#8217;, :action =&#62; &#8217;show&#8217;, :id =&#62; 0, :default_image =&#62; nil,  :requirements =&#62; {:size =&#62; /(tiny&#124;small&#124;medium&#124;original)/}
end
2. model
-image.rb file
require &#8216;RMagick&#8217;
class Image &#60; ActiveRecord::Base
def thumb=(input_data)
if input_data != &#8220;&#8221;
self.name = input_data.original_filename
self.content_type = input_data.content_type.chomp
self.image_original = input_data.read
img = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&blog=4066247&post=18&subd=patelraj&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>#This is the sample appliocation code ,Please change as per your requirements.</p>
<p>======Image Uploading instruction=========</p>
<p>1.routes.rb<br />
#this is for image display<br />
map.with_options :controller =&gt; &#8216;images&#8217; do |image|<br />
image.show &#8216;images/show/:size/:id/:default_image&#8217;, :action =&gt; &#8217;show&#8217;, :id =&gt; 0, :default_image =&gt; nil,  :requirements =&gt; {:size =&gt; /(tiny|small|medium|original)/}<br />
end<br />
2. model<br />
-image.rb file</p>
<p>require &#8216;RMagick&#8217;<br />
class Image &lt; ActiveRecord::Base<br />
def thumb=(input_data)<br />
if input_data != &#8220;&#8221;<br />
self.name = input_data.original_filename<br />
self.content_type = input_data.content_type.chomp<br />
self.image_original = input_data.read<br />
img = Magick::Image.from_blob(self.image_original)<br />
original_height = img[0].rows<br />
original_width = img[0].columns<br />
self.height = original_height<br />
self.width = original_width<br />
tiny_height = 32<br />
tiny_width = 32<br />
small_height = 85<br />
small_width = 85<br />
medium_height = 180<br />
medium_width = 180<br />
# resize the photo keeping aspect ratio<br />
if original_height &gt; original_width<br />
tiny_width = original_width * tiny_height / original_height<br />
small_width = original_width * small_height / original_height<br />
medium_width = original_width * medium_height / original_height<br />
else<br />
tiny_height = original_height * tiny_width / original_width<br />
small_height = original_height * small_width / original_width<br />
medium_height = original_height * medium_width / original_width<br />
end<br />
self.image_tiny = img[0].thumbnail(tiny_width, tiny_height).to_blob<br />
self.image_small = img[0].thumbnail(small_width, small_height).to_blob<br />
self.image_medium = img[0].thumbnail(medium_width, medium_height).to_blob<br />
end<br />
end<br />
end</p>
<p>3. controller<br />
-images_controller.rb file<br />
#this is for image display<br />
def show<br />
# verify valid size parameter here<br />
valid_display_size = ["tiny", "small", "medium", "original"]<br />
display_size = (valid_display_size.include?params[:size])?params[:size]:&#8221;medium&#8221;<br />
#display_size = params[:size]?params[:size]:&#8221;medium&#8221;<br />
image_id = params[:id]<br />
default_image = params[:default_image]?params[:default_image]:&#8221;no_photo_#{display_size}&#8221;<br />
if image_id != 0<br />
begin<br />
@image = Image.find(image_id)</p>
<p>if !(eval(&#8220;@image.image_#{display_size}&#8221;)).blank?<br />
send_data(eval(&#8220;@image.image_#{display_size}&#8221;), :type =&gt; @image.content_type,<br />
:filename =&gt; @image.name,<br />
:disposition =&gt; &#8216;inline&#8217;)<br />
return<br />
end<br />
rescue<br />
end<br />
#   # show default image here<br />
#   #send_image(&#8220;#{RAILS_ROOT}/public/images/#{default_image}&#8221;)<br />
#   @no_image = File.open(&#8220;#{RAILS_ROOT}/public/images/#{default_image}.png&#8221;,&#8221;r&#8221;)<br />
#   send_data(@no_image.read, :type =&gt; &#8220;image/png&#8221;,<br />
#              :filename =&gt; &#8220;#{default_image}.png&#8221;,<br />
#              :disposition =&gt; &#8216;inline&#8217;)<br />
end<br />
#else<br />
# show default image here<br />
#send_image(&#8220;#{RAILS_ROOT}/public/images/#{default_image}&#8221;)<br />
@no_image = File.open(&#8220;#{RAILS_ROOT}/public/images/#{default_image}.png&#8221;,&#8221;r&#8221;)<br />
send_data(@no_image.read, :type =&gt; &#8220;image/png&#8221;,<br />
:filename =&gt; &#8220;#{default_image}.png&#8221;,<br />
:disposition =&gt; &#8216;inline&#8217;)<br />
#end<br />
end</p>
<p>#save iamge<br />
def saveimage<br />
if params[:image][:title].blank?<br />
flash[:notice] = &#8220;Title cannot be left blank.&#8221;<br />
elsif  params[:image][:thumb].blank?<br />
flash[:notice] = &#8220;Please select Image.&#8221;<br />
else<br />
@picture = Image.new(params[:image])<br />
if @picture.save<br />
flash[:notice] = &#8220;Item was successfully created.&#8221;<br />
redirect_to :action =&gt; &#8220;index&#8221;<br />
return<br />
else<br />
flash[:notice] = &#8220;Error occured during insertion.&#8221;<br />
end<br />
end<br />
redirect_to :action =&gt; &#8220;addimage&#8221;<br />
end</p>
<p>#update iamge<br />
def updateimage<br />
if params[:image][:title].blank?<br />
flash[:notice] = &#8220;Title cannot be left blank.&#8221;<br />
else<br />
@items = Image.find(params[:id])<br />
if @items.update_attributes(params[:image])<br />
flash[:notice] = &#8216;Photo was successfully updated.&#8217;<br />
redirect_to :action =&gt; &#8220;index&#8221;<br />
return<br />
end<br />
end<br />
redirect_to :action =&gt; &#8220;editimage&#8221;,:id=&gt;params[:id]<br />
end<br />
4. view<br />
-add_image.rhtml=<br />
&lt;%= form_tag ({:action =&gt; &#8217;saveimage&#8217;},:multipart =&gt; true) %&gt;</p>
<p>&lt;table&gt;<br />
&lt;tr&gt;&lt;td&gt;Title&lt;/td&gt;<br />
&lt;td&gt;&lt;%= text_field (&#8220;image&#8221;,&#8221;title&#8221;,:size=&gt;&#8221;30&#8243;) %&gt;&lt;span id=&#8221;red&#8221;&gt;&amp;nbsp;*&lt;/span&gt;<br />
&lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr&gt;&lt;td&gt;Description&lt;/td&gt;<br />
&lt;td&gt;&lt;%= text_area (&#8220;image&#8221;,&#8221;description&#8221;,:cols=&gt;&#8221;28&#8243;,:rows=&gt;4)%&gt;<br />
&lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr&gt;&lt;td&gt;Upload Image&lt;/td&gt;&lt;td&gt;<br />
&lt;%= file_field &#8216;image&#8217;, &#8216;thumb&#8217;, :size =&gt; &#8220;20&#8243; %&gt;&lt;span id=&#8221;red&#8221;&gt;&amp;nbsp;*&lt;/span&gt;<br />
&lt;/td&gt;&lt;/tr&gt;<br />
&lt;/table&gt;&lt;/form&gt;<br />
#show image/display<br />
&lt;% @items_all = Image.find(:all)<br />
for @items in @items_all %&gt;<br />
&lt;%= image_tag(&#8220;/images/show/small/#{@items.id ? @items.id : &#8220;0&#8243;}/no_photo_#{&#8220;&#8221;}_small&#8221;, :alt =&gt; &#8220;Image not available&#8221;) %&gt;<br />
&lt;%= image_tag(&#8220;/images/show/medium/#{@items.id ? @items.id : &#8220;0&#8243;}/no_photo_#{&#8220;&#8221;}_medium&#8221;, :alt =&gt; &#8220;Image not available&#8221;) %&gt;<br />
&lt;% end %&gt;<br />
5. database structure<br />
image table===<br />
id=int<br />
title=varchar<br />
name=varchar<br />
content_type=varchar<br />
image_tiny=midiumblob<br />
image_small=midiumblob<br />
image_midium==midiumblob<br />
image_original==midiumblob<br />
height=bigint(11)<br />
width=bigint(11)</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/patelraj.wordpress.com/18/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/patelraj.wordpress.com/18/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/patelraj.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/patelraj.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/patelraj.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/patelraj.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/patelraj.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/patelraj.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/patelraj.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/patelraj.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/patelraj.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/patelraj.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=patelraj.wordpress.com&blog=4066247&post=18&subd=patelraj&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://patelraj.wordpress.com/2008/09/03/image-uploading-instruction-with-sample/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b0b913204feb05c5216591432817955f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">raj</media:title>
		</media:content>
	</item>
	</channel>
</rss>