<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Bits n Tricks</title>
	<atom:link href="http://www.bitsntricks.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bitsntricks.com</link>
	<description>first step towards building a tech blog.. ;)</description>
	<lastBuildDate>Fri, 16 Mar 2012 07:35:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Creating automatically link from string url</title>
		<link>http://www.bitsntricks.com/142/</link>
		<comments>http://www.bitsntricks.com/142/#comments</comments>
		<pubDate>Fri, 16 Mar 2012 07:33:33 +0000</pubDate>
		<dc:creator>naresh</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.bitsntricks.com/?p=142</guid>
		<description><![CDATA[Here is the function makeLinkActive to create autmoatically hyperlink( &#60;a href=&#8221; &#8220;&#62;&#60;/a&#62; ) in string where it will find url in a string Parameters :   $string  : String to find http (In this example : &#8216;This is good boy . http://www.youtube.com/watch?v=ehuwoGVLyhg&#38;feature=topvideos Hello this is test http://mysql.zapbuild.com/index.php?db=dev_behum&#38;table=admins&#38;token=34a15b853f779f699687d3594799796c my test&#8217;  is string) Here is the source Code: [...]]]></description>
			<content:encoded><![CDATA[<p>Here is the function <strong>makeLinkActive </strong>to create autmoatically hyperlink( &lt;a href=&#8221; &#8220;&gt;&lt;/a&gt; ) in string where it will find url<strong></strong> in a string</p>
<p><strong>Parameters</strong> :   $string  : String to find http (In this  example :  &#8216;This is good boy .  http://www.youtube.com/watch?v=ehuwoGVLyhg&amp;feature=topvideos Hello  this is test  http://mysql.zapbuild.com/index.php?db=dev_behum&amp;table=admins&amp;token=34a15b853f779f699687d3594799796c  my test&#8217;  is  string)</p>
<p>Here is the source Code:</p>
<p>$str = &#8220;This is good boy . http://www.youtube.com/watch?v=ehuwoGVLyhg&amp;feature=topvideos Hello this is test http://mysql.zapbuild.com/index.php?db=dev_behum&amp;table=admins&amp;token=34a15b853f779f699687d3594799796c my test&#8221;;</p>
<p>function makeLinkActive( $string=&#8221; ){<br />
preg_match_all(&#8216;#\bhttps?://[^\s()&lt;&gt;]+(?:\([\w\d]+\)|([^[:punct:]\s]|/))#&#8217;, $string, $match);<br />
$urls = $match[0];<br />
$links= array();<br />
foreach( $urls as $key =&gt; $url ) {<br />
$links[$key] = &#8220;&lt;a target=&#8217;_blank&#8217; href=&#8217;$url&#8217;&gt; $url &lt;/a&gt;&#8221; ;<br />
}<br />
return  str_replace($urls,$links,$string) ;</p>
<p>}</p>
<p>echo makeLinkActive( $str );   //calling function</p>
<p><strong>OUTPUT:</strong></p>
<p>This is good boy . &lt;a target=&#8217;_blank&#8217; href=&#8217;http://www.youtube.com/watch?v=ehuwoGVLyhg&amp;feature=topvideos&#8217;&gt; http://www.youtube.com/watch?v=ehuwoGVLyhg&amp;feature=topvideos &lt;/a&gt; Hello this is test &lt;a target=&#8217;_blank&#8217; href=&#8217;http://mysql.zapbuild.com/index.php?db=dev_behum&amp;table=admins&amp;token=34a15b853f779f699687d3594799796c&#8217;&gt; http://mysql.zapbuild.com/index.php?db=dev_behum&amp;table=admins&amp;token=34a15b853f779f699687d3594799796c &lt;/a&gt; my test</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bitsntricks.com/142/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Insert line break in long string.</title>
		<link>http://www.bitsntricks.com/insert-line-break-in-long-string/</link>
		<comments>http://www.bitsntricks.com/insert-line-break-in-long-string/#comments</comments>
		<pubDate>Thu, 15 Mar 2012 05:47:12 +0000</pubDate>
		<dc:creator>naresh</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.bitsntricks.com/?p=140</guid>
		<description><![CDATA[Here is the function stringWrap to insert &#60;br&#62; in long string as a single word according to the charachters mentioned. Parameters :   $string  : String to insert line breaks(In this example : &#8216;rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr&#8217;  is string) $length : after how many characters line breaks( &#60;br&#62; ) will insert specified(In this example : &#8217;5&#8242;  is length) [...]]]></description>
			<content:encoded><![CDATA[<p>Here is the function <strong>stringWrap </strong>to insert &lt;br&gt; in long string as a single word according to the charachters mentioned.</p>
<p><strong>Parameters</strong> :   $string  : String to insert line breaks(In this example : &#8216;rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr&#8217;  is string)</p>
<p>$length : after how many characters line breaks( &lt;br&gt; ) will insert specified(In this example : &#8217;5&#8242;  is length)</p>
<p>Here is the Code:</p>
<p>function stringWrap( $string, $length){<br />
$subStr = $string ;<br />
$myString = &#8221;;<br />
$lastIndex = 0 ;<br />
while($subStr){<br />
$subStr = substr($string,$lastIndex,$length) ;<br />
$lastIndex += $length;<br />
$myString .= $subStr .&#8217;&lt;br/&gt;&#8217;;</p>
<p>}</p>
<p>return  $myString ;</p>
<p>}</p>
<p>echo stringWrap( &#8216;rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr&#8217;, 5);   //calling function</p>
<p><strong>OUTPUT:</strong></p>
<p>rrrrr&lt;br/&gt;rrrrr&lt;br/&gt;rrrrr&lt;br/&gt;rrrrr&lt;br/&gt;rrrrr&lt;br/&gt;rrrrr&lt;br/&gt;rrrrr&lt;br/&gt;rrrrr&lt;br/&gt;rrrrr&lt;br/&gt;rrrrr&lt;br/&gt;rrrrr&lt;br/&gt;rrrrr&lt;br/&gt;rrrrr&lt;br/&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bitsntricks.com/insert-line-break-in-long-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find number of weekdays (Mon, Tues etc)  between  two dates</title>
		<link>http://www.bitsntricks.com/find-number-of-reoccurning-weekdays-days-between-time-interval-two-dates/</link>
		<comments>http://www.bitsntricks.com/find-number-of-reoccurning-weekdays-days-between-time-interval-two-dates/#comments</comments>
		<pubDate>Thu, 08 Dec 2011 10:19:18 +0000</pubDate>
		<dc:creator>deepak</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.bitsntricks.com/?p=133</guid>
		<description><![CDATA[&#60;?php function workingDays( $fromDate, $interval )  { $date_array = explode(&#8216;-&#8217;, $fromDate ); $day         = $date_array[0]; $month         = $date_array[1]; $year         = $date_array[2]; $working_date = array(); for ( $i = 1;  $i &#60;= $interval; $i++ )               { $working_date[] = date(&#8220;l&#8221;, mktime(0, 0, 0,$month,$day +(int)$i,$year)); } return $working_date; } $getDays = workingDays(&#8217;30-11-2011&#8242;, [...]]]></description>
			<content:encoded><![CDATA[<p>&lt;?php<br />
function workingDays( $fromDate, $interval )  {<br />
$date_array = explode(&#8216;-&#8217;, $fromDate );<br />
$day         = $date_array[0];<br />
$month         = $date_array[1];<br />
$year         = $date_array[2];<br />
$working_date = array();</p>
<p>for ( $i = 1;  $i &lt;= $interval; $i++ )               {<br />
$working_date[] = date(&#8220;l&#8221;, mktime(0, 0, 0,$month,$day +(int)$i,$year));</p>
<p>}</p>
<p>return $working_date;</p>
<p>}</p>
<p>$getDays = workingDays(&#8217;30-11-2011&#8242;, 30 );<br />
str_replace(array(&#8216;Friday&#8217;),array(&#8216;Friday&#8217;) ,$getDays, $dupweekDays); // trick to check the occurrence of  week days<br />
echo $dupweekDays;<br />
?&gt;</p>
<p>Explanation of the above code:</p>
<p>$getWorkingDays = workingDays(&#8217;30-11-2011&#8242;, 30 );</p>
<p>W call the workingDays  function  it accept two prams a) the start date 2) the number of days between to dates</p>
<p>This function will return the name of weekdays i.e Monday, Tuesday,Wednesday , Thursday , Friday  , Saturday , Sunday</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-Below is str_replace(array(&#8216;Friday&#8217;) , array(&#8216;Friday&#8217;) ,$getDays, $dupweekDays); // trick to check the occurrence of  week days<br />
echo $dupweekDays;</p>
<p>the login to find the repeating  days  so we we need to find number of Mondays  then we need to replace the first and second  parameter  of str_replace function  with array(&#8216;Monday&#8217;)</p>
<p>The $dupweekDays  will the variable having the count of repeating Mondays</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bitsntricks.com/find-number-of-reoccurning-weekdays-days-between-time-interval-two-dates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook  Connect (Graph API)  in cake php</title>
		<link>http://www.bitsntricks.com/facebook-connect/</link>
		<comments>http://www.bitsntricks.com/facebook-connect/#comments</comments>
		<pubDate>Thu, 08 Dec 2011 09:55:59 +0000</pubDate>
		<dc:creator>deepak</dc:creator>
				<category><![CDATA[Cakephp]]></category>

		<guid isPermaLink="false">http://www.bitsntricks.com/?p=131</guid>
		<description><![CDATA[To implement Facebook  connect using graph API  you need to follow the steps 1) Extract the  facebook_core_files.zip file and put all of them in vendors folder of cake php 2)  In your apps controller include this code at the top of the file App::import(&#8216;Vendor&#8217;, &#8216;facebook&#8217;, array(&#8216;file&#8217; =&#62; &#8216;facebook.php&#8217;)); 3)  in your apps controller  add this [...]]]></description>
			<content:encoded><![CDATA[<p>To implement Facebook  connect using graph API  you need to follow the steps</p>
<p>1) Extract the  facebook_core_files.zip file and put all of them in vendors folder of cake php</p>
<p>2)  In your apps controller include this code at the top of the file App::import(&#8216;Vendor&#8217;, &#8216;facebook&#8217;, array(&#8216;file&#8217; =&gt; &#8216;facebook.php&#8217;));</p>
<p>3)  in your apps controller  add this function ( before filter )</p>
<p>function beforeFilter()<br />
{<br />
//facebook application<br />
$user            = null; //facebook user uid<br />
$userInfo        = null;</p>
<p>// Create our Application instance.<br />
$facebook = new Facebook(array(<br />
&#8216;appId&#8217;  =&gt; YOURAPPID,<br />
&#8216;secret&#8217; =&gt; YOURSECRET<br />
));</p>
<p>//Facebook Authentication part<br />
$user       = $facebook-&gt;getUser();</p>
<p>if ($user) {<br />
try {<br />
// Proceed knowing you have a logged in user who&#8217;s authenticated.<br />
$fql    =   &#8220;select name,current_location,email,sex,verified,pic_square from user where uid=&#8221; . $user;<br />
$param  =   array(<br />
&#8216;method&#8217;    =&gt; &#8216;fql.query&#8217;,<br />
&#8216;query&#8217;     =&gt; $fql,<br />
&#8216;callback&#8217;  =&gt; &#8221;<br />
);</p>
<p>$userInfo   =   $facebook-&gt;api($param);<br />
} catch (FacebookApiException $e) {<br />
error_log($e);<br />
$user = null;<br />
}<br />
}<br />
}</p>
<p>$userInfo  variable will  contain list of data returned by facebook .</p>
<p>In your BODY of HTML page put the below code</p>
<p>&lt;div id=&#8221;fb-root&#8221;&gt;&lt;/div&gt;<br />
&lt;script&gt;<br />
window.fbAsyncInit = function() {<br />
FB.init({<br />
appId: &#8216;APPID&#8217;,<br />
cookie: true,<br />
xfbml: true,<br />
oauth: true<br />
});<br />
FB.Event.subscribe(&#8216;auth.login&#8217;, function(response) {<br />
window.location.href = &#8216;/users/facebookLogged&#8217;;<br />
});<br />
FB.Event.subscribe(&#8216;auth.logout&#8217;, function(response) {<br />
window.location.reload();<br />
});<br />
};<br />
(function() {<br />
var e = document.createElement(&#8216;script&#8217;); e.async = true;<br />
e.src = document.location.protocol +<br />
&#8216;//connect.facebook.net/en_US/all.js&#8217;;<br />
document.getElementById(&#8216;fb-root&#8217;).appendChild(e);<br />
}());<br />
&lt;/script&gt;<br />
&lt;fb:login-button autologoutlink=&#8221;true&#8221; scope=&#8221;email,user_birthday,status_update,publish_stream,user_location,offline_access&#8221;&gt;&lt;/fb:login-button&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bitsntricks.com/facebook-connect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cakephp not working on Ubuntu &#8211; Error 404 not found</title>
		<link>http://www.bitsntricks.com/cakephp-not-working-on-ubuntu-error-404-not-found/</link>
		<comments>http://www.bitsntricks.com/cakephp-not-working-on-ubuntu-error-404-not-found/#comments</comments>
		<pubDate>Wed, 20 Jul 2011 13:36:00 +0000</pubDate>
		<dc:creator>Sukhwant</dc:creator>
				<category><![CDATA[Cakephp]]></category>
		<category><![CDATA[Ubuntu (Linux)]]></category>

		<guid isPermaLink="false">http://www.bitsntricks.com/?p=127</guid>
		<description><![CDATA[If you are facing problems with Cakephp not working on Ubuntu after all googling and doing all other things, please try this one: Open Places-&#62;Computer-&#62;File System-&#62;etc-&#62;apache2-&#62;sites-available In this folder open file name &#8216;default&#8216; In this file search for &#60;Directory /var/www/&#62; Options Indexes FollowSymLinks MultiViews AllowOverride none Order allow,deny allow from all &#60;/Directory&#62; and replace it [...]]]></description>
			<content:encoded><![CDATA[<p>If you are facing problems with <strong>Cakephp not working on Ubuntu</strong> after all googling and doing all other things, please try this one:</p>
<p>Open <strong>Places-&gt;Computer-&gt;File System-&gt;etc-&gt;apache2-&gt;sites-available</strong></p>
<p>In this folder open file name &#8216;<strong>default</strong>&#8216;</p>
<p>In this file search for</p>
<p>&lt;Directory /var/www/&gt;<br />
Options Indexes FollowSymLinks MultiViews<br />
AllowOverride none<br />
Order allow,deny<br />
allow from all<br />
&lt;/Directory&gt;</p>
<p>and replace it with</p>
<p>&lt;Directory /var/www/&gt;<br />
Options Indexes FollowSymLinks MultiViews<br />
AllowOverride all<br />
Order allow,deny<br />
allow from all<br />
&lt;/Directory&gt;</p>
<p>You will find your cakephp working very fine now.</p>
<p>Hope this will help.</p>
<p>Thanks</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bitsntricks.com/cakephp-not-working-on-ubuntu-error-404-not-found/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Internet data card like Tata photon on Ubuntu</title>
		<link>http://www.bitsntricks.com/using-internet-data-card-like-tata-photon-on-ubuntu/</link>
		<comments>http://www.bitsntricks.com/using-internet-data-card-like-tata-photon-on-ubuntu/#comments</comments>
		<pubDate>Wed, 20 Jul 2011 13:27:16 +0000</pubDate>
		<dc:creator>Sukhwant</dc:creator>
				<category><![CDATA[Ubuntu (Linux)]]></category>

		<guid isPermaLink="false">http://www.bitsntricks.com/?p=125</guid>
		<description><![CDATA[If you are having problems with using any kind of INTERNET data card like Tata photon or else, then please follow as described below: Please install usb-modeswitch on your systems regarding usage of Tata photon when required. Please follow the steps for installation: 1. Open System-&#62;Administration-&#62;Synaptic Package manager. 2. Search for usb-modeswitch and install it. [...]]]></description>
			<content:encoded><![CDATA[<p>If you are having problems with using any kind of INTERNET data card like Tata photon or else, then please follow as described below:</p>
<p>Please install <strong>usb-modeswitch</strong> on your systems regarding usage of Tata photon when required.</p>
<p>Please follow the steps for installation:</p>
<p>1. Open System-&gt;Administration-&gt;Synaptic Package manager.<br />
2. Search for <strong>usb-modeswitch</strong> and install it.<br />
3. Now open Applications-&gt;Accessories-&gt;Terminal. Type <strong>sudo gedit /etc/usb_modeswitch.d/12d1:1446</strong><br />
- In the line <strong>TargetProductList</strong>, add <strong>140b</strong>. Save and Close.</p>
<p>Hope this will help you resolving the problem.</p>
<p>Thanks</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bitsntricks.com/using-internet-data-card-like-tata-photon-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CakePHP not working &#8211; cake.generic.css not found in Ubuntu</title>
		<link>http://www.bitsntricks.com/cakephp-not-working-cake-generic-css-not-found-in-ubuntu/</link>
		<comments>http://www.bitsntricks.com/cakephp-not-working-cake-generic-css-not-found-in-ubuntu/#comments</comments>
		<pubDate>Tue, 03 May 2011 07:21:22 +0000</pubDate>
		<dc:creator>paraselixir</dc:creator>
				<category><![CDATA[Bug Tracker]]></category>
		<category><![CDATA[cakephp installation]]></category>
		<category><![CDATA[css not found]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.bitsntricks.com/?p=122</guid>
		<description><![CDATA[If you have done all the things right in installation of cakephp on Ubuntu system as per specified in various sites and have made changes in apaches settings  but still cakephp is not working on Ubuntu then try uncommenting the Configure::write(&#8216;App.baseUrl&#8217;, env(&#8216;SCRIPT_NAME&#8217;)); line in core.php of cakephp installation.]]></description>
			<content:encoded><![CDATA[<p>If you have done all the things right in installation of cakephp on Ubuntu system as per specified in various sites and have made changes in apaches settings  but still cakephp is not working on Ubuntu then try uncommenting the</p>
<p>Configure::write(&#8216;App.baseUrl&#8217;, env(&#8216;SCRIPT_NAME&#8217;));</p>
<p>line in core.php of cakephp installation.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bitsntricks.com/cakephp-not-working-cake-generic-css-not-found-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Overcome XSS scripting or cross site scripting</title>
		<link>http://www.bitsntricks.com/overcome-xss-scripting-or-cross-site-scripting/</link>
		<comments>http://www.bitsntricks.com/overcome-xss-scripting-or-cross-site-scripting/#comments</comments>
		<pubDate>Thu, 17 Feb 2011 05:10:40 +0000</pubDate>
		<dc:creator>behnish</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.bitsntricks.com/?p=113</guid>
		<description><![CDATA[Just paste this code in a header file which is included in the site. You can exclude the fields like description while filtering the POST And GET. foreach ($_GET as $key => $value) { $_GET[$key] = strip_tags($value); } foreach ($_POST as $key => $value) { $_POST[$key] = strip_tags($value); } foreach ($_SERVER as $key => $value) [...]]]></description>
			<content:encoded><![CDATA[<p>Just paste this code in a header file which is included in the site. You can exclude the fields like description while filtering the POST And GET.</p>
<pre>

foreach ($_GET as $key => $value) {
$_GET[$key] = strip_tags($value);
}

foreach ($_POST as $key => $value) {
$_POST[$key] = strip_tags($value);
}

foreach ($_SERVER as $key => $value) {
$_SERVER[$key] = strip_tags($value);
}
 </pre>
]]></content:encoded>
			<wfw:commentRss>http://www.bitsntricks.com/overcome-xss-scripting-or-cross-site-scripting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TFS 2010 Build Service</title>
		<link>http://www.bitsntricks.com/tfs-2010-build-service/</link>
		<comments>http://www.bitsntricks.com/tfs-2010-build-service/#comments</comments>
		<pubDate>Thu, 20 Jan 2011 07:17:08 +0000</pubDate>
		<dc:creator>Ravneet Arora</dc:creator>
				<category><![CDATA[Version Control]]></category>

		<guid isPermaLink="false">http://www.bitsntricks.com/?p=110</guid>
		<description><![CDATA[TFS2010,"There was no endpoint listening at.." , BuildService]]></description>
			<content:encoded><![CDATA[<p>We often get the following message after configuring the TFS 2010 Build Service.</p>
<p><code>The agent status has been automatically changed by the TFS Server.</code></p>
<p><strong>Reason:</strong> There was no endpoint listening at&#8230;http:///Build/v3.0/services/Controller that could accept the message. This is often caused by an incorrect address or SOAP action.</p>
<p><strong>Cause:</strong> This is caused because of Team Foundation Server’s hostname is not resolved sometimes, or your machine cannot connect to TFS.</p>
<p><strong>Solution:</strong><br />
Follow the below simple steps</p>
<ol>
<li>Delete all agents defined from the machine by going to Team Foundation Server Console.</li>
<li>Delete all Build Controllers from the machine.</li>
<li>Unregister the Build Service.</li>
<li>Restart the machine. This is required; TFS services Port 9191 will be reset.</li>
<li>Register the service again, Add the TFS URL http://abc:port/tfs</li>
<li>Select the Collection and connect to TFS</li>
<li>Create the Build Controller; make sure to enter the IP address of the machine where you want to run the Build.</li>
<li>Now click &#8220;Test Connection&#8221;. This will bring your Controller status to Ready.</li>
<li>Create the Agent and associate with the same Controller created at point 8.</li>
</ol>
<p>This resolves the problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bitsntricks.com/tfs-2010-build-service/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Make your business funtional with &#8220;on page seo&#8221;</title>
		<link>http://www.bitsntricks.com/make-your-business-funtional-with-on-page-seo/</link>
		<comments>http://www.bitsntricks.com/make-your-business-funtional-with-on-page-seo/#comments</comments>
		<pubDate>Fri, 14 Jan 2011 06:14:43 +0000</pubDate>
		<dc:creator>Navneet Kumar</dc:creator>
				<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://www.bitsntricks.com/?p=105</guid>
		<description><![CDATA[What is SEO? Search engine optimization (Seo) a word optimization define the “functional as possible” seo a web marketing strategy help to promote your business products by using different planning policies and make your product functional by achieving high rank in search engine result. On page Seo “On page” seo means the functional information on [...]]]></description>
			<content:encoded><![CDATA[<h2><span style="color: #3366ff;">What is SEO?</span></h2>
<p><span style="color: #800000;">Search engine optimization (Seo) a word optimization define the “functional as possible” seo a web marketing strategy help to promote your business products by using different planning policies and make your product functional by achieving high rank in search engine result.</span> <span style="color: #3366ff;"> </span></p>
<h3><span style="color: #3366ff;">On page Seo</span></h3>
<p><span style="color: #800000;">“On page” seo means the functional information on your site which crawler and user can easily rip up.</span></p>
<p><span style="color: #800000;"> </span></p>
<p><span style="color: #800000;">Foremost for on page.</span></p>
<h3><span style="color: #3366ff;">1. </span> <span style="color: #3366ff;"> Title tag</span></h3>
<p><span style="color: #800000;">As it display in the top bar of browser so it play a vital role for achieving high rank it is cardinal that title must contain HTML tag.</span></p>
<p><span style="color: #800000;">General rules for Title tag:</span></p>
<ul>
<li><span style="color: #800000;">Up to 100 characters and max 3 keywords</span></li>
<li><span style="color: #800000;">Use primary keyword in the beginning of title than secondary</span></li>
<li><span style="color: #800000;">Don’t repeat keywords again n again to avoid spam/caps</span></li>
</ul>
<p><span style="color: #3366ff;">&lt;title&gt;abc company, primary keyword, secondary keyword&lt;/title&gt;</span></p>
<h3><span style="color: #3366ff;">2. Meta description</span></h3>
<p><span style="color: #800000;">Communicate your site content with numerous keywords in description which make your site spider responsive.</span></p>
<ul>
<li><span style="color: #800000;">Up to 255 characters and</span></li>
<li><span style="color: #800000;">Maximum 3-4 keywords</span></li>
<li><span style="color: #800000;">Content must be in logical sentence</span></li>
<li><span style="color: #800000;">Avoid grammatical mistakes</span></li>
</ul>
<h3><span style="color: #3366ff;">3.  Meta keywords</span></h3>
<p><span style="color: #800000;">Meta keyword provides you right to add some serviceable text for spider to do indexing from your site page.</span></p>
<p><span style="color: #3366ff;">&lt;meta “keywords” content = “keywords, relevant to site, separated by, coma ‘,’ pipeline ‘|’ ”&gt;</span></p>
<ul>
<li><span style="color: #800000;">Up to      1000 characters and 45 words</span></li>
<li><span style="color: #800000;">Primary      k1, secondary k2, ……….</span></li>
<li><span style="color: #800000;">Keyword      must be relevant to your site</span></li>
<li><span style="color: #800000;">Use      adwords.google to select keyword</span></li>
</ul>
<h3><span style="color: #3366ff;">4. Body content</span></h3>
<p><span style="color: #800000;">It is a fact that “Content is king” in seo which help your site to get top position in search engines and users also. Content is data which users actually looking for when come to your site</span></p>
<ul>
<li><span style="color: #800000;">Content      must be fresh and confine</span></li>
<li><span style="color: #800000;">Provide      the information which help users</span></li>
<li><span style="color: #800000;">Use      keywords in content which help spider to indexing from your site.</span></li>
<li><span style="color: #800000;">Bold      or Italic the content which is more useful</span></li>
<li><span style="color: #800000;">Avoid      duplicate content it will make your site spam</span></li>
</ul>
<h3><span style="color: #3366ff;">5. Extra visuals</span></h3>
<p><span style="color: #800000;">Search engine not read images, flash, scripting language so to make our image or flash crawler friendly we use html tags which define what the information all about to describe these functions we use “&lt;alt tag&gt;”</span></p>
<p><span style="color: #3366ff;">&lt;img src=“abc.jpg” alt=“A picture of abc define what image rectify/&gt;.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bitsntricks.com/make-your-business-funtional-with-on-page-seo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

