<?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>Techstroke - Technology Gadgets  Blogging Softwares &#187; Coding</title>
	<atom:link href="http://www.techstroke.com/coding/feed" rel="self" type="application/rss+xml" />
	<link>http://www.techstroke.com</link>
	<description>Technology News Tips &#38; Tricks Social Media Blogging Wordpress</description>
	<lastBuildDate>Sat, 31 Jul 2010 17:17:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Best and simplest Algorithm to understand Factorial and Triangular value</title>
		<link>http://www.techstroke.com/simplest-algorithm-understand-factorial-triangular.html</link>
		<comments>http://www.techstroke.com/simplest-algorithm-understand-factorial-triangular.html#comments</comments>
		<pubDate>Thu, 22 Jul 2010 17:25:43 +0000</pubDate>
		<dc:creator>Meghraj Dhabale</dc:creator>
				<category><![CDATA[C, C++]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Amazing algorithm]]></category>
		<category><![CDATA[C and C++ algorithms]]></category>
		<category><![CDATA[programing basics]]></category>
		<category><![CDATA[simple algorithms]]></category>
		<category><![CDATA[understanding algorithms]]></category>

		<guid isPermaLink="false">http://www.techstroke.com/?p=2174</guid>
		<description><![CDATA[Now we will work out the algorithm of Factorial value of a given digit Example: &#8211; the factorial value of 5 will be 120 (i.e. &#8211; 5×4×3×2×1) Start. Accept the value for a. Let result = 1. Let b = 0. result = result * (a – b). increment the value of b by 1. [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.techstroke.com%2Fsimplest-algorithm-understand-factorial-triangular.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.techstroke.com%2Fsimplest-algorithm-understand-factorial-triangular.html&amp;source=techstroke&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>Now we will work out the algorithm of Factorial value of a given digit</p>
<p>Example: &#8211; the factorial value of 5 will be 120 (i.e. &#8211; 5×4×3×2×1)</p>
<ol>
<li>Start.</li>
<li>Accept the value for a.</li>
<li>Let result = 1.</li>
<li>Let b = 0.</li>
<li>result = result * (a – b).</li>
<li>increment the value of b by 1.</li>
<li>If b &lt; a then go to step 5.</li>
<li>If b &gt;= a then display value of result as triangular value.</li>
<li>End.<span id="more-2174"></span></li>
</ol>
<p>That’s it, the step 5 follows the rule that the RHS “result * (a – b)” will be assigned to LHS “result”. The total algorithm is bit confusing but carry out each and every step carefully and you will get the answer. Especially focus on the recurrence of step 5 and step 6.</p>
<p>Example for triangular value: -</p>
<p>The triangular value of 5 is 15 (i.e. – 5+4+3+2+1)</p>
<ol>
<li> Start.</li>
<li>Accept the value for a.</li>
<li>Let result = <strong>0</strong>.</li>
<li>Let b = 0.</li>
<li>result = result <strong>+</strong> (a – b).</li>
<li>increment the value of b by 1.</li>
<li>If b &lt; a then go to step 5.</li>
<li>If b &gt;= a then display value of result as triangular value.</li>
<li>End.</li>
</ol>
<p>The only difference between both the algorithm is 1) initial value of result and 2) × is replaced +<span id="_marker"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="font-size: 12pt; line-height: 115%; font-family: &amp;amp;quot; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"> </span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techstroke.com/simplest-algorithm-understand-factorial-triangular.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simplest way to learn C language: Best and simplest Algorithm to understand iterative &amp; nested If condition- Part 2</title>
		<link>http://www.techstroke.com/simplest-learn-language-simplest-algorithm-understand-iterative-nested-condition.html</link>
		<comments>http://www.techstroke.com/simplest-learn-language-simplest-algorithm-understand-iterative-nested-condition.html#comments</comments>
		<pubDate>Tue, 20 Jul 2010 06:51:28 +0000</pubDate>
		<dc:creator>Meghraj Dhabale</dc:creator>
				<category><![CDATA[C simplified]]></category>
		<category><![CDATA[C, C++]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Amazing algorithm]]></category>
		<category><![CDATA[best examples of If condition]]></category>
		<category><![CDATA[c language coding]]></category>

		<guid isPermaLink="false">http://www.techstroke.com/?p=2105</guid>
		<description><![CDATA[My previous post was on C language was about understanding IF condition. Now lets try and understand Algorithm of nested if condition and iterative if condition Nested if else condition for finding the highest among the three numbers a, b and c. Start. Accept the value a, b, c. If a&#62;b and a&#62;c then Display a [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.techstroke.com%2Fsimplest-learn-language-simplest-algorithm-understand-iterative-nested-condition.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.techstroke.com%2Fsimplest-learn-language-simplest-algorithm-understand-iterative-nested-condition.html&amp;source=techstroke&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>My previous post was on C language was about understanding <a href="http://www.techstroke.com/simplest-way-to-learn-c-language-best-and-simplest-algorithm-to-understand-if-condition.html" ><strong>IF condition</strong></a>.</p>
<p>Now lets try and understand Algorithm of nested if condition and iterative if condition</p>
<p><span id="more-2105"></span></p>
<p>Nested if else condition for finding the highest among the three numbers a, b and c.</p>
<ol>
<li>Start.</li>
<li>Accept the value a, b, c.</li>
<li>If a&gt;b and a&gt;c then</li>
<li>Display a as greatest.</li>
<li>Go to step 14.</li>
<li>If a&gt;b and a&lt;c then</li>
<li>Display c as greatest.</li>
<li>Go to step 14.</li>
<li>If a&lt;b and b&gt;c then</li>
<li>Display b as greatest.</li>
<li>Go to step 14.</li>
<li>If a&lt;b and b&lt;c then</li>
<li>Display c as greatest.</li>
<li>End.</li>
</ol>
<p>Now in the above algorithm even if the values of a and b or a and c or either of two values or all values of a,b and c are equal we can get the answer through it.</p>
<p>Through if condition we can work out the algorithm of Tables</p>
<ol>
<li>Start.</li>
<li>Accept the value of a.</li>
<li>Let <strong>b = 1</strong>.</li>
<li>c = a × b.</li>
<li>Express (display or print) c.</li>
<li><strong>Increment</strong> value of <strong>b</strong> by 1.</li>
<li>If <strong>b &lt;= 10</strong> then go to step 4.</li>
<li>If b &gt;= 11 then go to step 9.</li>
<li>End.</li>
</ol>
<p>Focus on the above algorithm and remember that step 4, 5 and 6 are repeated till the value of b &lt; 10 and as b goes beyond 10, step 8 executes and algorithm terminates. As you can observe carefully the recurrence of step 4, 5 and 6 is due to variance in the value of b. <strong>b is initialized in step 3, condition is checked for b in step 7 and value of b is incremented in step 6</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techstroke.com/simplest-learn-language-simplest-algorithm-understand-iterative-nested-condition.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Code for Tracing IP of Email in PHP</title>
		<link>http://www.techstroke.com/code-for-tracing-ip-in-php.html</link>
		<comments>http://www.techstroke.com/code-for-tracing-ip-in-php.html#comments</comments>
		<pubDate>Tue, 13 Jul 2010 20:25:56 +0000</pubDate>
		<dc:creator>ankit</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[hacking tips]]></category>
		<category><![CDATA[php coding]]></category>
		<category><![CDATA[trace email]]></category>
		<category><![CDATA[trace ip address]]></category>
		<category><![CDATA[tracert]]></category>
		<category><![CDATA[web tricks]]></category>

		<guid isPermaLink="false">http://www.techstroke.com/code-for-tracing-ip-in-php.html</guid>
		<description><![CDATA[The Code for Tracing IP in PHP is as follows. &#60;?php $image =imagecreate(1,1); $colorblack=imagecolorallocate($image,0,0,0); $colorwhite=imagecolorallocate($image,255,255,255); imagefill($image,0,0,$colorwhite); imagechar($image,1,0,0,&#8221;.&#8221;,$colorblack); header(&#8220;content-type: image/jpeg&#8221;); imagejpeg($image); $to      = &#8216;me11@mailinator.com&#8217;; $subject = &#8220;Email opened &#8220;; $body = $_SERVER['REMOTE_ADDR'].&#8217; &#8216;.$_SERVER['HTTP_USER_AGENT'].&#8217; &#8216;.date(&#8220;M/d/Y_H:i:s&#8221;); $content = &#8220;IP = &#8220;.$body.&#8221; \n &#8220;.$subject.&#8221;\n\n&#8221;; $headers = &#8216;From: admin@mail.com&#8217; . &#8220;\r\n&#8221; . &#8216;Reply-To: admin@mail.com&#8217; . &#8220;\r\n&#8221; . &#8216;X-Mailer: PHP/&#8217; . [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.techstroke.com%2Fcode-for-tracing-ip-in-php.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.techstroke.com%2Fcode-for-tracing-ip-in-php.html&amp;source=techstroke&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>The Code for Tracing IP in PHP is as follows.</p>
<p><span id="more-1970"></span></p>
<p>&lt;?php</p>
<p>$image =imagecreate(1,1);<br />
$colorblack=imagecolorallocate($image,0,0,0);<br />
$colorwhite=imagecolorallocate($image,255,255,255);<br />
imagefill($image,0,0,$colorwhite);</p>
<p>imagechar($image,1,0,0,&#8221;.&#8221;,$colorblack);<br />
header(&#8220;content-type: image/jpeg&#8221;);<br />
imagejpeg($image);</p>
<p>$to      = &#8216;me11@mailinator.com&#8217;;</p>
<p>$subject = &#8220;Email opened &#8220;;</p>
<p>$body = $_SERVER['REMOTE_ADDR'].&#8217; &#8216;.$_SERVER['HTTP_USER_AGENT'].&#8217; &#8216;.date(&#8220;M/d/Y_H:i:s&#8221;);</p>
<p>$content = &#8220;IP = &#8220;.$body.&#8221; \n &#8220;.$subject.&#8221;\n\n&#8221;;<br />
$headers = &#8216;From: admin@mail.com&#8217; . &#8220;\r\n&#8221; .<br />
&#8216;Reply-To: admin@mail.com&#8217; . &#8220;\r\n&#8221; .<br />
&#8216;X-Mailer: PHP/&#8217; . phpversion();</p>
<p>mail($to, $subject, $content, $headers);</p>
<p>?&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techstroke.com/code-for-tracing-ip-in-php.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fake mail coding in PHP-Send a Fakemail to any person</title>
		<link>http://www.techstroke.com/fake-mail-coding-in-php-send-a-fakemail-to-any-person.html</link>
		<comments>http://www.techstroke.com/fake-mail-coding-in-php-send-a-fakemail-to-any-person.html#comments</comments>
		<pubDate>Thu, 08 Jul 2010 20:48:00 +0000</pubDate>
		<dc:creator>ankit</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Techie Fun]]></category>
		<category><![CDATA[Tips&Tricks]]></category>
		<category><![CDATA[Fake mail coding in PHP]]></category>
		<category><![CDATA[hacking tips]]></category>
		<category><![CDATA[php tricks-php tips]]></category>
		<category><![CDATA[Send a Fakemail to any person]]></category>
		<category><![CDATA[web hacking]]></category>
		<category><![CDATA[windows tip and trick]]></category>
		<category><![CDATA[windows tweaks]]></category>

		<guid isPermaLink="false">http://www.techstroke.com/fake-mail-coding-in-php-send-a-fakemail-to-any-person.html</guid>
		<description><![CDATA[This is the coding for Fake mail in PHP by which you can send a fake mail to any person with any email address. Like as Example: Sender name=Bill Clinton Email = microsoftowner@gmail.com To = yourmail@gmail.com Body = Matter to be Type Subject = Name of the mail like “you win $10000000” &#160; So,you can [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.techstroke.com%2Ffake-mail-coding-in-php-send-a-fakemail-to-any-person.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.techstroke.com%2Ffake-mail-coding-in-php-send-a-fakemail-to-any-person.html&amp;source=techstroke&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>This is the coding for Fake mail in PHP by which you can send a fake mail to any person with any email address.</p>
<p> <span id="more-1888"></span>
<p> Like as Example:</p>
<blockquote><p>Sender name=Bill Clinton</p>
<p>Email = <a href="mailto:microsoftowner@gmail.com">microsoftowner@gmail.com</a></p>
<p>To = <a href="mailto:yourmail@gmail.com">yourmail@gmail.com</a></p>
<p>Body = Matter to be Type</p>
<p>Subject = Name of the mail like “you win $10000000”</p>
</blockquote>
<p>&#160;</p>
<p>So,you can send any fake mail to any person from some other person’s mail.</p>
<p><strong>Coding is:</strong></p>
<p>&lt;?php </p>
<p>$Name = &quot;Fake Sender&quot;; //senders name    <br />$email = &quot;fakesender@anysite.com&quot;; //senders e-mail adress     <br />$recipient = &quot;me11@mailinator.com&quot;; //recipient     <br />$mail_body = &quot;This is a Test mail&#8230;&quot;; //mail body     <br />$subject = &quot;This is the Subject of the Email&quot;; //subject     <br />$header = &quot;From: &quot;. $Name . &quot; &lt;&quot; . $email . &quot;&gt;\r\n&quot;; //optional headerfields     <br />&#160;&#160;&#160; &#8216;Reply-To: webmaster@example.com&#8217; . &quot;\r\n&quot; .     <br />&#160;&#160;&#160; &#8216;X-Mailer: PHP/&#8217; . phpversion(); </p>
<p>mail($recipient, $subject, $mail_body, $header); //mail command <img src='http://www.techstroke.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />     <br />print &quot;The mail has been sent successfully&quot;;     <br />?&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techstroke.com/fake-mail-coding-in-php-send-a-fakemail-to-any-person.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simplest way to learn C language: Best and simplest Algorithm to understand If condition- Part 1</title>
		<link>http://www.techstroke.com/simplest-way-to-learn-c-language-best-and-simplest-algorithm-to-understand-if-condition.html</link>
		<comments>http://www.techstroke.com/simplest-way-to-learn-c-language-best-and-simplest-algorithm-to-understand-if-condition.html#comments</comments>
		<pubDate>Wed, 07 Jul 2010 11:25:03 +0000</pubDate>
		<dc:creator>Meghraj Dhabale</dc:creator>
				<category><![CDATA[C, C++]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Amazing algorithm]]></category>
		<category><![CDATA[best examples of If condition]]></category>

		<guid isPermaLink="false">http://www.techstroke.com/simplest-way-to-learn-c-language-best-and-simplest-algorithm-to-understand-if-condition.html</guid>
		<description><![CDATA[Some remarkable examples for understanding algorithm of if condition This time we will work out some example as we did a simple algorithm about addition of two numbers. In the previous example if we just change the “+” from -,* and / we can get algorithms about subtraction, multiplication and division respectively. General feature of [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.techstroke.com%2Fsimplest-way-to-learn-c-language-best-and-simplest-algorithm-to-understand-if-condition.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.techstroke.com%2Fsimplest-way-to-learn-c-language-best-and-simplest-algorithm-to-understand-if-condition.html&amp;source=techstroke&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>Some remarkable examples for understanding algorithm of if condition</p>
<p><span id="more-1837"></span></p>
<p>This time we will work out some example as we did a simple algorithm about addition of two numbers. In the previous example if we just change the “+” from -,* and / we can get algorithms about subtraction, multiplication and division respectively.</p>
<p>General feature of an algorithm is like: -</p>
<p>1. Start.</p>
<p>2. Variables name assumption or declaration.</p>
<p>3. Calculation block.</p>
<p>4. Expressing (display or print) answer.</p>
<p>5. End.</p>
<p>One more algorithm that we will learn is calculating simple interest: -</p>
<p>1. Start.</p>
<p>2. Principle amount, rate of interest, time.</p>
<p>3. Simple interest = (Principle amount × Rate of interest × Time)/100.</p>
<p>4. Display or Print Simple interest.</p>
<p>5. End.</p>
<p>Today’s lesson will be about algorithm of <strong>if condition: &#8211; </strong></p>
<p>The simplest example of <span style="text-decoration: underline;">if condition</span> will be:</p>
<p>Suppose we have to find a person is vegetarian or Non-vegetarian.</p>
<p>1. Start.</p>
<p>2. Accept a value for age.</p>
<p>3. If age =&gt; 18 then display “You are an adult”.</p>
<p>4. If age &lt; 18 then display “You are not an adult”.</p>
<p>5. End.</p>
<p>Suppose we hire a two wheeler for number of hours and charges are as follows: -</p>
<p>For the first 5 hours: &#8211; Rs. 200/hr</p>
<p>For the next 5 hours: &#8211; Rs. 500/hr</p>
<p>For the next 5 hours: &#8211; Rs. 700/hr</p>
<p>Further any number of hours: &#8211; Rs. 1000/hr</p>
<p>Now suppose number of hours for which vehicle is hired is 7hrs, then the answer will <strong><span style="text-decoration: underline;">not be</span></strong> (7×500) Rs.3500. Surprised, Guess why? Let us work out the algorithm for it and then you will realize what the fact is.</p>
<p>1. Start.</p>
<p>2. Accept the number of hours as A.</p>
<p>3. If A &lt;= 5 then.</p>
<p>4. Answer = A × 200.</p>
<p>5. Express (display or print) Answer.</p>
<p>6. Go to step 18.</p>
<p>7. If A &gt; 5 and A &lt;= 10 then.</p>
<p>8. <strong>Answer = ((A &#8211; 5) × 500) + 1000</strong>.</p>
<p>9. Express (display or print) Answer.</p>
<p>10. Go to step 18.</p>
<p>11. If A &gt; 10 and A &lt;=15 then.</p>
<p>12. <strong>Answer = ((A &#8211; 10) × 700) + 3500</strong>.</p>
<p>13. Express (display or print) Answer.</p>
<p>14. Go to step 18.</p>
<p>15. If A &gt; 15 then.</p>
<p>16. <strong>Answer = ((A – 15) × 1000) + 7000</strong>.</p>
<p>17. Express (display or print) Answer.</p>
<p>18. End.</p>
<p>Focus on the statements that are highlighted in bold and you will realize that.</p>
<p>If the number of hour exceeds the previous slab then <span style="text-decoration: underline;">reduce that many hours (i.e. – (A-5),(A-10) and (A-15))</span> from the actual number of hours and find the value for the current slab by multiplying it by current slab charge, and later add the <span style="text-decoration: underline;">maximum chargeable amount (i.e. – 1000,3500 and 7000)</span> of the previous slab to it.</p>
<p><strong><em>The next session will be about </em></strong><a href="http://www.techstroke.com/simplest-learn-language-simplest-algorithm-understand-iterative-nested-condition.html" ><strong><em>iterative statement</em></strong></a><strong><em> C ya… <img src='http://www.techstroke.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </em></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techstroke.com/simplest-way-to-learn-c-language-best-and-simplest-algorithm-to-understand-if-condition.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Simplest way to learn C Language: Coding in C language made easy</title>
		<link>http://www.techstroke.com/c-language-for-novice-simplest-way-to-learn-c-coding-in-c-language-is-as-simple-as-making-a-recipe-good-news-for-homemakershousewives-to-learn-c-in-its-simplest-form-feared-about-c-forget-it.html</link>
		<comments>http://www.techstroke.com/c-language-for-novice-simplest-way-to-learn-c-coding-in-c-language-is-as-simple-as-making-a-recipe-good-news-for-homemakershousewives-to-learn-c-in-its-simplest-form-feared-about-c-forget-it.html#comments</comments>
		<pubDate>Wed, 30 Jun 2010 02:38:30 +0000</pubDate>
		<dc:creator>Meghraj Dhabale</dc:creator>
				<category><![CDATA[C simplified]]></category>
		<category><![CDATA[C, C++]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[C made simpler easier and better understandable]]></category>
		<category><![CDATA[learning aid for programming in C]]></category>
		<category><![CDATA[non-techinal can also learn programming in c]]></category>
		<category><![CDATA[phobia or fear of C those days are gone]]></category>
		<category><![CDATA[you can learn c if you know how to cook]]></category>

		<guid isPermaLink="false">http://www.techstroke.com/c-language-for-novice-simplest-way-to-learn-c-coding-in-c-language-is-as-simple-as-making-a-recipe-good-news-for-homemakershousewives-to-learn-c-in-its-simplest-form-feared-about-c-forget-it.html</guid>
		<description><![CDATA[Well, learning C is as good as learning how to cook. As per the aspect of an average learning ability of normal person, I&#8217;ve designed a slow but steady learning aid for those who really want to explore the creative paradise of programming. Small but effective doses of learning basics of C will be published [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.techstroke.com%2Fc-language-for-novice-simplest-way-to-learn-c-coding-in-c-language-is-as-simple-as-making-a-recipe-good-news-for-homemakershousewives-to-learn-c-in-its-simplest-form-feared-about-c-forget-it.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.techstroke.com%2Fc-language-for-novice-simplest-way-to-learn-c-coding-in-c-language-is-as-simple-as-making-a-recipe-good-news-for-homemakershousewives-to-learn-c-in-its-simplest-form-feared-about-c-forget-it.html&amp;source=techstroke&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>Well, learning C is as good as learning how to cook. As per the aspect of an <strong>average learning ability</strong> of normal person, I&#8217;ve designed a <span style="text-decoration: underline;">slow but steady learning aid</span> for those who really want to explore the creative paradise of programming. Small but effective doses of learning basics of C will be published after every couple of days but remember practicing the codes once in 24 hours will be most important decisive aspect of your perfection in C. Today i will give you some guidelines about do’s &amp; don’ts about learning C. Right now we will be focusing on conceptual aspects of programming through <strong>algorithm (programming in English)</strong>.</p>
<p>Q. What is a <strong>Program</strong>?<span id="more-1723"></span></p>
<p>Program: – “A program is a <span style="text-decoration: underline;">set of instruction</span> written in a <span style="text-decoration: underline;">logical and sequential order</span> to get a desired result”. Its all about maintaining the sequence of steps and thinking logically. just like using an electronic home appliance, you have to switch it on and then get the work done through it and you can’t do it in the reverse order cause it won’t work.</p>
<p>A <strong>program</strong> as a concept can be imagined as performing a task and “<strong><span style="text-decoration: underline;">asking our self how we do it</span></strong>” and writing it as hard or soft copy. For example: -</p>
<p>How we add two number is our mind.</p>
<p>1. <span style="text-decoration: underline;">We hear or imagine two numeric values</span>.</p>
<p>2. <span style="text-decoration: underline;">We add them in mind</span>.</p>
<p>3. <span style="text-decoration: underline;">Express the result</span>.</p>
<p>More technically</p>
<p>1. <span style="text-decoration: underline;">Start</span>.</p>
<p>2. <span style="text-decoration: underline;">A=10 and B=30</span>.</p>
<p>3. <span style="text-decoration: underline;">C = A + B</span>.</p>
<p>Here note that in the world of programming, A+B=C is not correct because in programming calculation is on right side of =, and calculated value is stored in left side of =.</p>
<p><a href="http://www.techstroke.com/wp-content/uploads/2010/06/image31.png" ><img style="display: inline; border: 0px initial initial;" title="Programing in C Language" src="http://www.techstroke.com/wp-content/uploads/2010/06/image_thumb31.png" border="0" alt="C Language Made Easy" width="85" height="53" /></a></p>
<p>4. <span style="text-decoration: underline;">Display</span> or print the value of C.</p>
<p>5. <span style="text-decoration: underline;">Stop</span>.</p>
<p>session will be continued in within couple of days…</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techstroke.com/c-language-for-novice-simplest-way-to-learn-c-coding-in-c-language-is-as-simple-as-making-a-recipe-good-news-for-homemakershousewives-to-learn-c-in-its-simplest-form-feared-about-c-forget-it.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automatically Empty WordPress Trash In &#8220;X&#8221; Number Of Days &#124; WordPress  Tips &amp; Tricks</title>
		<link>http://www.techstroke.com/automatically-empty-wordpress-trash-in-x-number-of-days-wordpress-tips-tricks.html</link>
		<comments>http://www.techstroke.com/automatically-empty-wordpress-trash-in-x-number-of-days-wordpress-tips-tricks.html#comments</comments>
		<pubDate>Fri, 28 May 2010 12:21:09 +0000</pubDate>
		<dc:creator>alok</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tips&Tricks]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[advanced wordpress]]></category>
		<category><![CDATA[automatically empty wordpress trash]]></category>
		<category><![CDATA[empty your wordpress trash]]></category>
		<category><![CDATA[empty-trash]]></category>
		<category><![CDATA[how to empty trash in wordpress]]></category>
		<category><![CDATA[latest in wordpress]]></category>
		<category><![CDATA[wordpress 2.9]]></category>
		<category><![CDATA[wordpress code]]></category>
		<category><![CDATA[wordpress latest tips]]></category>
		<category><![CDATA[wordpress tips and tricks]]></category>

		<guid isPermaLink="false">http://www.techstroke.com/automatically-empty-wordpress-trash-in-x-number-of-days-wordpress-tips-tricks.html</guid>
		<description><![CDATA[&#160; WordPress is the most popular and most widely used blogging software at present. Trash is a new functionality offered by wordpress from version WordPress 2.9 onwards. When an item (post, article, comment, etc) is deleted, it goes&#160; directly into the Trash instead of being permanently removed. Here is a one line code to tell [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.techstroke.com%2Fautomatically-empty-wordpress-trash-in-x-number-of-days-wordpress-tips-tricks.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.techstroke.com%2Fautomatically-empty-wordpress-trash-in-x-number-of-days-wordpress-tips-tricks.html&amp;source=techstroke&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>&nbsp;</p>
<p><img style="display: inline; margin-left: 0px; margin-right: 0px" align="right" src="http://www.bharatbugss.com/bugssblog/wp-content/uploads/2009/01/wordpress-logo.png" width="179" height="168">WordPress is the most popular and most widely used blogging software at present. </p>
<p>Trash is a new functionality offered by wordpress from version WordPress 2.9 onwards. When an item (post, article, comment, etc) is deleted, it goes&nbsp; directly into the Trash instead of being permanently removed.</p>
<p> Here is a one line code to tell your WordPress blog to automatically empty trash every X number of days. All you have to do is simply open your <em>wp-config.php</em> file (located at the root of your WordPress install) and paste the following code :-</p>
<p>&nbsp;</p>
<blockquote><pre>define('EMPTY_TRASH_DAYS', 15 );</pre>
</blockquote>
<pre>&nbsp;</pre>
<pre>&nbsp;</pre>
<pre>&nbsp;</pre>
<pre>The second parameter (here 15) is when to empty trash, in days. </pre>
]]></content:encoded>
			<wfw:commentRss>http://www.techstroke.com/automatically-empty-wordpress-trash-in-x-number-of-days-wordpress-tips-tricks.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Access MySQL Server through VPN Using Python</title>
		<link>http://www.techstroke.com/how-to-access-mysql-server-through-vpn-using-python.html</link>
		<comments>http://www.techstroke.com/how-to-access-mysql-server-through-vpn-using-python.html#comments</comments>
		<pubDate>Fri, 09 Apr 2010 08:06:14 +0000</pubDate>
		<dc:creator>alok</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[accessing Mysql through VPN]]></category>
		<category><![CDATA[local ip address]]></category>
		<category><![CDATA[MY]]></category>
		<category><![CDATA[MYSQL]]></category>
		<category><![CDATA[mysql access through VPN]]></category>
		<category><![CDATA[mysql server]]></category>
		<category><![CDATA[port 3306]]></category>
		<category><![CDATA[Problem]]></category>
		<category><![CDATA[python application]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://www.techstroke.com/how-to-access-mysql-server-through-vpn-using-python.html</guid>
		<description><![CDATA[&#160; &#160; If you are encountered any problem to access the MYSQLdb server through a VPN with error message: OperationalError: (2003, &#34;Can&#8217;t connect to MySQL server on &#8216;MY_IP&#8217; (10061)&#34;) The simple solution of this problem is: Open a cmd window if you are using Windows replace 192.168.201.1 with the IP or hostname of your mysql [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.techstroke.com%2Fhow-to-access-mysql-server-through-vpn-using-python.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.techstroke.com%2Fhow-to-access-mysql-server-through-vpn-using-python.html&amp;source=techstroke&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>&#160;</p>
<p><a href="http://www.techstroke.com/wp-content/uploads/2010/04/image8.png" ><img style="border-bottom: 0px; border-left: 0px; display: inline; margin-left: 0px; border-top: 0px; margin-right: 0px; border-right: 0px" title="image" border="0" alt="image" align="right" src="http://www.techstroke.com/wp-content/uploads/2010/04/image_thumb8.png" width="201" height="174" /></a>&#160;</p>
<p>If you are encountered any problem to access the MYSQLdb server through a VPN with error message: </p>
<blockquote><p>OperationalError: (2003, &quot;Can&#8217;t connect to MySQL server on &#8216;MY_IP&#8217; (10061)&quot;)</p>
</blockquote>
<p>The simple solution of this problem is:</p>
<p>Open a cmd window if you are using Windows replace 192.168.201.1 with the IP or hostname of your mysql server. If it&#8217;s blocked you will see something</p>
<p>&#160;</p>
<blockquote><pre><code>$ telnet 192.168.201.1 3306Trying 192.168.201.1...</code></pre>
</blockquote>
<pre><code></code></pre>
<p>and eventually a timeout.</p>
<p>&#160;</p>
<p><span id="more-1288"></span></p>
<p>If you can reach the port then you should see something similar to:</p>
<p>&#160;</p>
<blockquote>
<pre><code>$ telnet 192.168.201.1 3306Trying 192.168.201.1...Connected to 192.168.201.1.Escape character is '^]'.?5.1.37-1ubuntu5.1C[&amp;Elne0d])O5ZG4mKmdConnection closed by foreign host.</code></pre>
<p>  <code></code></p></blockquote>
<blockquote>
<p><code></code></p>
<p>  <code></p>
<pre></pre>
<p>  </code></p></blockquote>
<p>MySQL only allows TCP connections from localhost &#8211; assuming your python application is running on the same machine as MySQL, ensure that your MySQL bindings are to the local IP address, and that there is no firewall on the machine preventing connections on port 3306.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techstroke.com/how-to-access-mysql-server-through-vpn-using-python.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Connect With Cloud Database Using sqlcmd</title>
		<link>http://www.techstroke.com/how-to-connect-with-cloud-database-using-sqlcmd.html</link>
		<comments>http://www.techstroke.com/how-to-connect-with-cloud-database-using-sqlcmd.html#comments</comments>
		<pubDate>Fri, 09 Apr 2010 06:32:57 +0000</pubDate>
		<dc:creator>alok</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[cloud computing]]></category>
		<category><![CDATA[cloud connection using sql]]></category>
		<category><![CDATA[cloud database connect to cloud database]]></category>
		<category><![CDATA[command to connect cloud database]]></category>
		<category><![CDATA[login client]]></category>
		<category><![CDATA[mypassword]]></category>
		<category><![CDATA[nbsp]]></category>
		<category><![CDATA[P myPassword -S]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[server servername]]></category>
		<category><![CDATA[servername]]></category>

		<guid isPermaLink="false">http://www.techstroke.com/how-to-connect-with-cloud-database-using-sqlcmd.html</guid>
		<description><![CDATA[&#160; If you are facing the problem while connecting to the cloud database using a command something like this : sqlcmd -U servername@username -P myPassword -S servername.database.windows.net -d MyFirstCloudTestDB &#160; with a error message like this : &#160; 1: Msg 40615, Level 14, State 1, Server servername, Line 1 2: **Cannot open server 'servername' requested [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.techstroke.com%2Fhow-to-connect-with-cloud-database-using-sqlcmd.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.techstroke.com%2Fhow-to-connect-with-cloud-database-using-sqlcmd.html&amp;source=techstroke&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p><img style="display: inline; margin-left: 0px; margin-right: 0px" align="right" src="http://www.saas-attack.com/Portals/0/Graphics/saas_sky2.jpg" width="190" height="114"/></p>
<p>&nbsp;</p>
<p>If you are facing the problem while connecting to the cloud database using a command something like this :</p>
<blockquote><p><code>sqlcmd -U servername@username -P myPassword -S servername.database.windows.net -d MyFirstCloudTestDB </code></p>
<p>&nbsp;</p>
</blockquote>
<p>with a error message like this :</p>
<p>&nbsp;</p>
<p><span id="more-1285"></span>
<div style="border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: 'Courier New', courier, monospace; direction: ltr; max-height: 200px; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px" id="codeSnippetWrapper">
<div style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px" id="codeSnippet">
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum1">   1:</span> Msg 40615, Level 14, State 1, Server servername, Line 1 </pre>
<p><!--CRLF-->
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum2">   2:</span> **Cannot open server <span style="color: #006080">'servername'</span> requested by the login. Client with IP address <span style="color: #006080">' </span></pre>
<p><!--CRLF-->
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum3">   3:</span> 124.40.110.238' <span style="color: #0000ff">is</span> not allowed to access the server.** </pre>
<p><!--CRLF-->
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum4">   4:</span> Msg 18456, Level 14, State 1, Server servername, Line 1 </pre>
<p><!--CRLF-->
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum5">   5:</span> Login failed <span style="color: #0000ff">for</span> user <span style="color: #006080">'username'</span>. </pre>
<p><!--CRLF--></div>
</div>
<p><strong>The</strong>&nbsp; simple solution of this problem is
</p>
<p> Go to the sql.azure.com, log in, and go to your project&#8217;s page. Where you see a list of databases, you should also see a tab which says &#8220;Firewall settings&#8221;. Put a rule in to allow your IP addres range.
<pre>&nbsp;</pre></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techstroke.com/how-to-connect-with-cloud-database-using-sqlcmd.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Automatically Use Resized Images Instead of Originals Using PHP Script in WordPress</title>
		<link>http://www.techstroke.com/how-to-automatically-use-resized-images-instead-of-originals-using-php-script-in-wordpress.html</link>
		<comments>http://www.techstroke.com/how-to-automatically-use-resized-images-instead-of-originals-using-php-script-in-wordpress.html#comments</comments>
		<pubDate>Tue, 09 Feb 2010 06:42:45 +0000</pubDate>
		<dc:creator>binesh</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress Hacks]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[image metadata]]></category>
		<category><![CDATA[image Resize]]></category>
		<category><![CDATA[location]]></category>
		<category><![CDATA[upload]]></category>
		<category><![CDATA[uploaded image]]></category>
		<category><![CDATA[width image]]></category>

		<guid isPermaLink="false">http://www.techstroke.com/how-to-automatically-use-resized-images-instead-of-originals-using-php-script-in-wordpress.html</guid>
		<description><![CDATA[This script will replace the uploaded image (if bigger than the larger size defined in your settings) by the large image generated by WordPress to save space in your server, and save bandwidth if you link a thumbnail to the original image, like when a lightbox plugin is used. &#160; &#160; &#160; &#160; &#160; Simply [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.techstroke.com%2Fhow-to-automatically-use-resized-images-instead-of-originals-using-php-script-in-wordpress.html"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.techstroke.com%2Fhow-to-automatically-use-resized-images-instead-of-originals-using-php-script-in-wordpress.html&amp;source=techstroke&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p><a href="http://www.techstroke.com/wp-content/uploads/2010/02/image11.png" ><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; margin-left: 0px; border-left-width: 0px; margin-right: 0px" title="image" border="0" alt="image" align="left" src="http://www.techstroke.com/wp-content/uploads/2010/02/image_thumb11.png" width="208" height="208" /></a></p>
<p><em>This script will replace the uploaded image (if bigger than the larger size defined in your settings) by the large image generated by WordPress to save space in your server, and save bandwidth if you link a thumbnail to the original image, like when a lightbox plugin is used.</em></p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p> <span id="more-1065"></span>
<p>Simply paste the following code on your <em>functions.php</em> file and save it. No other action is needed!</p>
<pre>function replace_uploaded_image($image_data) {
    // if there is no large image : return
    if (!isset($image_data['sizes']['large'])) return $image_data;

    // paths to the uploaded image and the large image
    $upload_dir = wp_upload_dir();
    $uploaded_image_location = $upload_dir['basedir'] . </pre>
<pre>    '/' .$image_data['file'];
    $large_image_location = $upload_dir['path'] .</pre>
<pre>    '/'.$image_data['sizes']['large']['file'];

    // delete the uploaded image
    unlink($uploaded_image_location);

    // rename the large image
    rename($large_image_location,$uploaded_image_location);

    // update image metadata and return them
    $image_data['width'] = $image_data['sizes']['large']['width'];
    $image_data['height'] = $image_data['sizes']['large']['height'];
    unset($image_data['sizes']['large']);

    return $image_data;
}
add_filter('wp_generate_attachment_metadata','replace_uploaded_image');</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.techstroke.com/how-to-automatically-use-resized-images-instead-of-originals-using-php-script-in-wordpress.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
