<?xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0">
	<channel>
		<title>S2kDesigns Technical Blog</title>
		<link>http://s2kdesigns.org/simblog/index.php</link>
		<description><![CDATA[No Footer]]></description>
		<copyright>Copyright 2010, Sandeep</copyright>
		<managingEditor>Sandeep</managingEditor>
		<language>en-US</language>
		<generator>SPHPBLOG 0.5.1</generator>
		<item>
			<title>Mysql: How to drop a Unique Constraint?</title>
			<link>http://s2kdesigns.org/simblog/index.php?entry=entry100603-033400</link>
			<description><![CDATA[ALTER TABLE `test_table` DROP INDEX `subject`<br />where test_table is the table name and subject is the column name]]></description>
			<category>MySQL</category>
			<guid isPermaLink="true">http://s2kdesigns.org/simblog/index.php?entry=entry100603-033400</guid>
			<author>Sandeep</author>
			<pubDate>Thu, 03 Jun 2010 07:34:00 GMT</pubDate>
			<comments>http://s2kdesigns.org/simblog/comments.php?y=10&amp;m=06&amp;entry=entry100603-033400</comments>
		</item>
		<item>
			<title>How to find world writable directories by &quot;find&quot; command?</title>
			<link>http://s2kdesigns.org/simblog/index.php?entry=entry100515-074027</link>
			<description><![CDATA[ find . -type d -perm -a+w -exec ls -lah {} \; &gt; ww.txt]]></description>
			<category>PERL/Shell Scripting</category>
			<guid isPermaLink="true">http://s2kdesigns.org/simblog/index.php?entry=entry100515-074027</guid>
			<author>Sandeep</author>
			<pubDate>Sat, 15 May 2010 11:40:27 GMT</pubDate>
			<comments>http://s2kdesigns.org/simblog/comments.php?y=10&amp;m=05&amp;entry=entry100515-074027</comments>
		</item>
		<item>
			<title>perl - handling sigint</title>
			<link>http://s2kdesigns.org/simblog/index.php?entry=entry100514-111550</link>
			<description><![CDATA[Write a small Perl program that waits for 30 seconds and exits with printing “Bye”. If interrupted by any key before 30 second then print “Hello” before exiting.<br /><br />perl -e &quot;$SIG{INT}= sub {print &#039;Hello&#039;;exit;};for ($i=0;$i&lt;30;$i++){sleep 1;}; print &#039;bye&#039;;&quot;]]></description>
			<category>PERL/Shell Scripting, Interview</category>
			<guid isPermaLink="true">http://s2kdesigns.org/simblog/index.php?entry=entry100514-111550</guid>
			<author>Sandeep</author>
			<pubDate>Fri, 14 May 2010 15:15:50 GMT</pubDate>
			<comments>http://s2kdesigns.org/simblog/comments.php?y=10&amp;m=05&amp;entry=entry100514-111550</comments>
		</item>
		<item>
			<title>Perl Important links</title>
			<link>http://s2kdesigns.org/simblog/index.php?entry=entry100514-094547</link>
			<description><![CDATA[Remove repeated characters from a string - <a href="http://www.perlmonks.org/?node_id=353072" target="_blank" >http://www.perlmonks.org/?node_id=353072</a><br /><br />How to find and remove duplicate elements from an array? - <a href="http://www.perlmonks.org/?node_id=90493" target="_blank" >http://www.perlmonks.org/?node_id=90493</a><br /><br />perlfaqs - <a href="http://perldoc.perl.org/perlfaq4.html" target="_blank" >http://perldoc.perl.org/perlfaq4.html</a><br /><br />perl references - <a href="http://www.sdsc.edu/~moreland/courses/IntroPerl/docs/manual/pod/perlref.html" target="_blank" >http://www.sdsc.edu/~moreland/courses/I ... rlref.html</a><br /><br />perl tuts - <a href="http://perldoc.perl.org/index-tutorials.html" target="_blank" >http://perldoc.perl.org/index-tutorials.html</a>]]></description>
			<category>PHP, Interview</category>
			<guid isPermaLink="true">http://s2kdesigns.org/simblog/index.php?entry=entry100514-094547</guid>
			<author>Sandeep</author>
			<pubDate>Fri, 14 May 2010 13:45:47 GMT</pubDate>
			<comments>http://s2kdesigns.org/simblog/comments.php?y=10&amp;m=05&amp;entry=entry100514-094547</comments>
		</item>
		<item>
			<title>Perl - Difference Between my local our</title>
			<link>http://s2kdesigns.org/simblog/index.php?entry=entry100514-094321</link>
			<description><![CDATA[The variables declared with my() are visible only within the scope of the block which names them. They are not visible outside of this block, not even in routines or blocks that it calls. <br /><br />local() variables, on the other hand, are visible to routines that are called from the block where they are declared. <br /><br />Neither is visible after the end (the final closing curly brace) of the block at all.<br /><br /><br />Whereas our() has Package scope.]]></description>
			<category>PERL/Shell Scripting, Interview</category>
			<guid isPermaLink="true">http://s2kdesigns.org/simblog/index.php?entry=entry100514-094321</guid>
			<author>Sandeep</author>
			<pubDate>Fri, 14 May 2010 13:43:21 GMT</pubDate>
			<comments>http://s2kdesigns.org/simblog/comments.php?y=10&amp;m=05&amp;entry=entry100514-094321</comments>
		</item>
		<item>
			<title>Windows 7: I want WinXP Style back</title>
			<link>http://s2kdesigns.org/simblog/index.php?entry=entry100413-044428</link>
			<description><![CDATA[<a href="http://www.howtogeek.com/howto/windows-7/make-the-windows-7-taskbar-work-more-like-windows-xp-or-vista/" target="_blank" >http://www.howtogeek.com/howto/windows- ... -or-vista/</a>]]></description>
			<category>Windows 7</category>
			<guid isPermaLink="true">http://s2kdesigns.org/simblog/index.php?entry=entry100413-044428</guid>
			<author>Sandeep</author>
			<pubDate>Tue, 13 Apr 2010 08:44:28 GMT</pubDate>
			<comments>http://s2kdesigns.org/simblog/comments.php?y=10&amp;m=04&amp;entry=entry100413-044428</comments>
		</item>
		<item>
			<title>Windows7 How to add the Quicklaunch Toolbar</title>
			<link>http://s2kdesigns.org/simblog/index.php?entry=entry100413-044250</link>
			<description><![CDATA[Right-click on an open area of the taskbar, and choose Toolbars \ New Toolbar from the menu.<br />You should probably also unlock the taskbar at this point.<br />paste the following path into the location bar:<br /><br />%appdata%\Microsoft\Internet Explorer\Quick Launch<br /><br />The normal Quick Launch that we’re used to doesn’t have text, so right-click on the dotted lines and uncheck “Show Text” as well as “Show Title” from the menu.]]></description>
			<category>Windows 7</category>
			<guid isPermaLink="true">http://s2kdesigns.org/simblog/index.php?entry=entry100413-044250</guid>
			<author>Sandeep</author>
			<pubDate>Tue, 13 Apr 2010 08:42:50 GMT</pubDate>
			<comments>http://s2kdesigns.org/simblog/comments.php?y=10&amp;m=04&amp;entry=entry100413-044250</comments>
		</item>
		<item>
			<title>opensubtitles.org oscar not working - resolved</title>
			<link>http://s2kdesigns.org/simblog/index.php?entry=entry100322-002804</link>
			<description><![CDATA[<a href="http://trac.opensubtitles.org/projects/opensubtitles/wiki/XMLRPC" target="_blank" >http://trac.opensubtitles.org/projects/ ... iki/XMLRPC</a><br /><br />change <a href="http://www.opensubtitles.org" target="_blank" >www.opensubtitles.org</a> to api.subtitles.org in OSCAR&#039;s Preferences tab]]></description>
			<category>HTML</category>
			<guid isPermaLink="true">http://s2kdesigns.org/simblog/index.php?entry=entry100322-002804</guid>
			<author>Sandeep</author>
			<pubDate>Mon, 22 Mar 2010 04:28:04 GMT</pubDate>
			<comments>http://s2kdesigns.org/simblog/comments.php?y=10&amp;m=03&amp;entry=entry100322-002804</comments>
		</item>
		<item>
			<title>Find Joomla Module Positions</title>
			<link>http://s2kdesigns.org/simblog/index.php?entry=entry100320-013924</link>
			<description><![CDATA[In Joomla there is a hidden core function which once activated displays a layer on a Joomla website which shows you exactly the template positions currently used. <br /><br /><br />To activate this function you just need to add ?tp=1 to the end of your current Joomla address. As an example take a look at the following link: <a href="http://www.dart-creations.com?tp=1" target="_blank" >http://www.dart-creations.com?tp=1</a> As you can see, you can know see all the positions which are template makes use of. You can use this on any Joomla version, on any Joomla site and on any Joomla page (though you might need to use &amp;tp=1). The following parameters can be used:  <br />?tp=1 (for horizontal view)<br />?tp=-1 (for no wrapper niew)<br />?tp=0 (for normal view - no view of positions)]]></description>
			<category>Joomla</category>
			<guid isPermaLink="true">http://s2kdesigns.org/simblog/index.php?entry=entry100320-013924</guid>
			<author>Sandeep</author>
			<pubDate>Sat, 20 Mar 2010 05:39:24 GMT</pubDate>
			<comments>http://s2kdesigns.org/simblog/comments.php?y=10&amp;m=03&amp;entry=entry100320-013924</comments>
		</item>
		<item>
			<title>Duplicate a Table using Javascript</title>
			<link>http://s2kdesigns.org/simblog/index.php?entry=entry100206-050337</link>
			<description><![CDATA[function addLocationRow() {<br /><br />      var nonpTbl  = document.getElementById(&#039;tblLoc1&#039;);<br />      var newRow   = nonpTbl.cloneNode(true);  <br />      var tds      = newRow.getElementsByTagName(&#039;td&#039;);<br />      var currLen  = parseInt(document.getElementById(&#039;totalLocs&#039;).value);<br />      currLen++;<br />      alert(&#039;currlen = &#039; + currLen);<br />      for (var i=0; i &lt; tds.length; i++) {<br />        var td = tds<i>;<br />        var input = (td.getElementsByTagName(&#039;input&#039;))[0];<br />        var currName;    <br />        if (input) {<br />             currName = input.name;<br />            var new_name = currName.replace(/AOLF_\d_(.*)/, &quot;AOLF_&quot; + currLen + &quot;_$1&quot;);<br />            input.name = new_name;<br />            input.value = &quot;&quot;;<br />        }<br />        var sel = (td.getElementsByTagName(&#039;select&#039;))[0];<br />        if (sel) {<br />             currName = sel.name;<br />            var new_name = currName.replace(/AOLF_\d_(.*)/, &quot;AOLF_&quot; + currLen + &quot;_$1&quot;);<br />            sel.name = new_name;<br />            sel.options[0].selected = true;<br />        }<br />      <br />      }<br />      var ntr = document.createElement(&#039;tr&#039;);<br />      var ntd = document.createElement(&#039;td&#039;);<br />      ntd.appendChild(newRow);<br />      ntr.appendChild(ntd);<br />      nonpTbl.parentNode.parentNode.appendChild(ntr);<br />      var val = parseInt(document.getElementById(&#039;totalLocs&#039;).value);<br />      val++;<br />      document.getElementById(&#039;totalLocs&#039;).value = val;<br />       //alert(&#039;val = &#039; + val + &#039; - &#039; + document.getElementById(&#039;totalNonPhysician&#039;).value);<br />      return false;<br />}]]></description>
			<category>JavaScript</category>
			<guid isPermaLink="true">http://s2kdesigns.org/simblog/index.php?entry=entry100206-050337</guid>
			<author>Sandeep</author>
			<pubDate>Sat, 06 Feb 2010 10:03:37 GMT</pubDate>
			<comments>http://s2kdesigns.org/simblog/comments.php?y=10&amp;m=02&amp;entry=entry100206-050337</comments>
		</item>
		<item>
			<title>Duplicate a row using javascript</title>
			<link>http://s2kdesigns.org/simblog/index.php?entry=entry100206-050301</link>
			<description><![CDATA[function addNonPhysicianRow() {<br /><br />      var nonpTbl = document.getElementById(&#039;NPTbl&#039;);<br />      var trs = nonpTbl.getElementsByTagName(&#039;tr&#039;);<br />      var len = trs.length - 1;<br />      var lastRow  = trs[len];<br />      var newRow   = lastRow.cloneNode(true);  <br />      var tds = newRow.getElementsByTagName(&#039;td&#039;);<br />      var currLen = len - 3;<br />      currLen++;<br />      for (var i=0; i &lt; tds.length; i++) {<br />        var td = tds<i>;<br />        if (i == 0) {<br />            td.innerHTML = td.innerHTML.replace(/Third /, &quot;&quot;);<br />        }<br />        var input = (td.getElementsByTagName(&#039;input&#039;))[0];<br />        var currName;    <br />        if (input) {<br />             currName = input.name;<br />            var new_name = currName.replace(/NNP_\d_(.*)/, &quot;NNP_&quot; + currLen + &quot;_$1&quot;);<br />            input.name = new_name;<br />        }<br />        var sel = (td.getElementsByTagName(&#039;select&#039;))[0];<br />        if (sel) {<br />             currName = sel.name;<br />            var new_name = currName.replace(/NNP_\d_(.*)/, &quot;NNP_&quot; + currLen + &quot;_$1&quot;);<br />            sel.name = new_name;<br />        }<br />      <br />      }<br />      nonpTbl.appendChild(newRow);<br />      var val = parseInt(document.getElementById(&#039;totalNonPhysician&#039;).value);<br />      val++;<br />      document.getElementById(&#039;totalNonPhysician&#039;).value = val;<br />       //alert(&#039;val = &#039; + val + &#039; - &#039; + document.getElementById(&#039;totalNonPhysician&#039;).value);<br />      return false;<br />}]]></description>
			<category>JavaScript</category>
			<guid isPermaLink="true">http://s2kdesigns.org/simblog/index.php?entry=entry100206-050301</guid>
			<author>Sandeep</author>
			<pubDate>Sat, 06 Feb 2010 10:03:01 GMT</pubDate>
			<comments>http://s2kdesigns.org/simblog/comments.php?y=10&amp;m=02&amp;entry=entry100206-050301</comments>
		</item>
		<item>
			<title>CS1010: Newline in Constant&quot; Error Message - fixed</title>
			<link>http://s2kdesigns.org/simblog/index.php?entry=entry100120-010104</link>
			<description><![CDATA[CS1010: Newline in Constant&quot; Error Message<br /><br />I got this error from asp.net application and here is the solution<br /><br />Modify string as like<br /><br />      string strValue = &quot;Test value&quot;;<br />      string strAll = &quot;&lt;SCRIPT lanquage=&#039;JScript&#039;&gt;window.alert(&#039;&quot; + strValue + &quot;&#039;);&lt;&quot;+&quot;/SCRIPT&gt;&quot;;<br />More..<br /><a href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;827420" target="_blank" >http://support.microsoft.com/default.as ... -US;827420</a><br /><br />&quot;This behavior is by design&quot;<br /><br />Why??<br /><br />because the compiler things that the &lt;/SCRIPT&gt; in strAll is the closing tag for the &lt;script runat=&quot;server&quot;&gt;<br />=========<br />&lt;script runat=&quot;server&quot;&gt;<br />private void Page_Load(object sender, System.EventArgs e)<br />{<br />string strValue = &quot;Test value&quot;;<br />string strAll = &quot;&lt;SCRIPT lanquage=&#039;JScript&#039;&gt;window.alert(&#039;&quot; + strValue + &quot;&#039;);&lt;/SCRIPT&gt;&quot;;<br /><br /><a href="http://weblogs.asp.net/sbehera/archive/2005/10/11/427228.aspx" target="_blank" >http://weblogs.asp.net/sbehera/archive/ ... 27228.aspx</a>]]></description>
			<category>.net</category>
			<guid isPermaLink="true">http://s2kdesigns.org/simblog/index.php?entry=entry100120-010104</guid>
			<author>Sandeep</author>
			<pubDate>Wed, 20 Jan 2010 06:01:04 GMT</pubDate>
			<comments>http://s2kdesigns.org/simblog/comments.php?y=10&amp;m=01&amp;entry=entry100120-010104</comments>
		</item>
		<item>
			<title>iPhone Screen Orientation: Portrait and Landscape</title>
			<link>http://s2kdesigns.org/simblog/index.php?entry=entry091215-005122</link>
			<description><![CDATA[<a href="http://www.evotech.net/blog/2009/09/iphone-screen-orientation-portrait-and-landscape/" target="_blank" >http://www.evotech.net/blog/2009/09/iph ... landscape/</a>]]></description>
			<category>JavaScript, IPhone</category>
			<guid isPermaLink="true">http://s2kdesigns.org/simblog/index.php?entry=entry091215-005122</guid>
			<author>Sandeep</author>
			<pubDate>Tue, 15 Dec 2009 05:51:22 GMT</pubDate>
			<comments>http://s2kdesigns.org/simblog/comments.php?y=09&amp;m=12&amp;entry=entry091215-005122</comments>
		</item>
		<item>
			<title>Private Messaging System </title>
			<link>http://s2kdesigns.org/simblog/index.php?entry=entry091213-043448</link>
			<description><![CDATA[<a href="http://www.pixel2life.com/publish/tutorials/608/simple_private_messaging_system/" target="_blank" >http://www.pixel2life.com/publish/tutor ... ng_system/</a>]]></description>
			<category>PHP</category>
			<guid isPermaLink="true">http://s2kdesigns.org/simblog/index.php?entry=entry091213-043448</guid>
			<author>Sandeep</author>
			<pubDate>Sun, 13 Dec 2009 09:34:48 GMT</pubDate>
			<comments>http://s2kdesigns.org/simblog/comments.php?y=09&amp;m=12&amp;entry=entry091213-043448</comments>
		</item>
		<item>
			<title>Page layout Ideas/JS/Flash</title>
			<link>http://s2kdesigns.org/simblog/index.php?entry=entry091126-000007</link>
			<description><![CDATA[This is a living article and contains urls which I find interesting and Might incorporate one day into something.<br /><br /><br />1. <a href="http://www.marriott.com/default.mi" target="_blank" >http://www.marriott.com/default.mi</a><br />]]></description>
			<category>HTML, JavaScript</category>
			<guid isPermaLink="true">http://s2kdesigns.org/simblog/index.php?entry=entry091126-000007</guid>
			<author>Sandeep</author>
			<pubDate>Thu, 26 Nov 2009 05:00:07 GMT</pubDate>
			<comments>http://s2kdesigns.org/simblog/comments.php?y=09&amp;m=11&amp;entry=entry091126-000007</comments>
		</item>
		<item>
			<title>php quote in mysql like perl</title>
			<link>http://s2kdesigns.org/simblog/index.php?entry=entry091123-015558</link>
			<description><![CDATA[mysql_real_escape_string()<br /><br />&lt;?php<br />// Connect<br />$link = mysql_connect(&#039;mysql_host&#039;, &#039;mysql_user&#039;, &#039;mysql_password&#039;)<br />    OR die(mysql_error());<br /><br />// Query<br />$query = sprintf(&quot;SELECT * FROM users WHERE user=&#039;%s&#039; AND password=&#039;%s&#039;&quot;,<br />            mysql_real_escape_string($user),<br />            mysql_real_escape_string($password));<br />?&gt;]]></description>
			<category>PHP</category>
			<guid isPermaLink="true">http://s2kdesigns.org/simblog/index.php?entry=entry091123-015558</guid>
			<author>Sandeep</author>
			<pubDate>Mon, 23 Nov 2009 06:55:58 GMT</pubDate>
			<comments>http://s2kdesigns.org/simblog/comments.php?y=09&amp;m=11&amp;entry=entry091123-015558</comments>
		</item>
		<item>
			<title>After Registration Email</title>
			<link>http://s2kdesigns.org/simblog/index.php?entry=entry091119-015629</link>
			<description><![CDATA[$content = &quot;<br />&lt;!DOCTYPE HTML PUBLIC &#039;-//W3C//DTD HTML 4.01 Transitional//EN&#039;<br />&#039;http://www.w3.org/TR/html4/loose.dtd&#039;&gt;<br />&lt;html&gt;<br />&lt;head&gt;<br />&lt;title&gt;TotalESL&lt;/title&gt;<br />&lt;meta http-equiv=&#039;Content-Type&#039; content=&#039;text/html; charset=utf-8&#039;&gt;<br />&lt;/head&gt;<br /><br />&lt;body&gt;<br /><br />&lt;table width=&#039;600&#039; border=&#039;0&#039; cellspacing=&#039;2&#039; cellpadding=&#039;2&#039;&gt;<br />  &lt;tr&gt;<br />    &lt;td align=&#039;left&#039; class=&#039;textbig&#039;&gt;&lt;strong&gt;Dear &quot;.$username.&quot;:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;<br />      Thank you for joining TotalESL.com, First Stop for Your Second Language Needs.  &lt;br&gt;Please note your account information &lt;br /&gt;<br />      &lt;br /&gt;<br />      &lt;table width=&#039;100%&#039; border=&#039;0&#039; cellspacing=&#039;2&#039; cellpadding=&#039;2&#039;&gt;<br />    &lt;tr valign=&#039;top&#039;&gt;<br />      &lt;td width=&#039;140&#039; align=&#039;left&#039; class=&#039;text&#039;&gt; &lt;strong&gt;Username:&lt;/strong&gt;&lt;/td&gt;<br />      &lt;td align=&#039;left&#039; class=&#039;text&#039;&gt;&quot;.$username.&quot;&lt;/td&gt;<br />    &lt;/tr&gt;<br />    &lt;tr valign=&#039;top&#039;&gt;<br />      &lt;td align=&#039;left&#039; class=&#039;text&#039;&gt;&lt;strong&gt;Password:&lt;/strong&gt;&lt;/td&gt;<br />      &lt;td align=&#039;left&#039; class=&#039;text&#039;&gt;&quot;.$password.&quot;&lt;/td&gt;<br />    &lt;/tr&gt;<br />    &lt;tr valign=&#039;top&#039;&gt;<br />      &lt;td align=&#039;left&#039; class=&#039;text&#039;&gt;&lt;strong&gt;IM/Chat Username:&lt;/strong&gt;&lt;/td&gt;<br />      &lt;td align=&#039;left&#039; class=&#039;text&#039;&gt;&quot;.$username.&quot;&lt;/td&gt;<br />    &lt;/tr&gt;<br />    &lt;/table&gt;<br />      &lt;br&gt;&lt;/td&gt;<br />  &lt;/tr&gt;<br />  &lt;tr&gt;<br />    &lt;td class=&#039;text&#039;  align=&#039;left&#039;&gt;Congratulations! You may to proceed and use our member features:&lt;br&gt;<br />    &lt;/td&gt;<br />  &lt;/tr&gt;<br />  &lt;tr&gt;<br />    &lt;td class=&#039;text&#039;  align=&#039;left&#039;&gt;&amp;nbsp;&lt;/td&gt;<br />  &lt;/tr&gt;<br />  &lt;tr&gt;<br />    &lt;td class=&#039;text&#039;  align=&#039;left&#039;&gt;Thank   you.<br />      &lt;br /&gt;<br />      &lt;br /&gt;<br />      Admin<br />      &lt;br /&gt;<br />    TotalESL.com      &lt;a href=&#039;http://www.totalesl.com&#039;&gt;&lt;br /&gt;<br />    <a href="http://www.totalesl.com&lt;/a&gt;&lt;/td&gt;" target="_blank" >http://www.totalesl.com&lt;/a&gt;&lt;/td&gt;</a><br />  &lt;/tr&gt;<br />&lt;/table&gt;<br />&lt;br&gt;<br /><br />&lt;/body&gt;<br />&lt;/html&gt;&quot;;]]></description>
			<category>HTML, PHP, PERL/Shell Scripting</category>
			<guid isPermaLink="true">http://s2kdesigns.org/simblog/index.php?entry=entry091119-015629</guid>
			<author>Sandeep</author>
			<pubDate>Thu, 19 Nov 2009 06:56:29 GMT</pubDate>
			<comments>http://s2kdesigns.org/simblog/comments.php?y=09&amp;m=11&amp;entry=entry091119-015629</comments>
		</item>
		<item>
			<title>PHP Sending Mail</title>
			<link>http://s2kdesigns.org/simblog/index.php?entry=entry091119-014652</link>
			<description><![CDATA[Code below works without errors <br />&lt;?php <br /><br />$Name = &quot;Da Duder&quot;; //senders name <br />$email = &quot;email@adress.com&quot;; //senders e-mail adress <br />$recipient = &quot;PersonWhoGetsIt@emailadress.com&quot;; //recipient <br />$mail_body = &quot;The text for the mail...&quot;; //mail body <br />$subject = &quot;Subject for reviever&quot;; //subject <br />$header = &quot;From: &quot;. $Name . &quot; &lt;&quot; . $email . &quot;&gt;\r\n&quot;; //optional headerfields <br /><br />mail($recipient, $subject, $mail_body, $header); //mail command :) <br />?&gt;]]></description>
			<category>PHP</category>
			<guid isPermaLink="true">http://s2kdesigns.org/simblog/index.php?entry=entry091119-014652</guid>
			<author>Sandeep</author>
			<pubDate>Thu, 19 Nov 2009 06:46:52 GMT</pubDate>
			<comments>http://s2kdesigns.org/simblog/comments.php?y=09&amp;m=11&amp;entry=entry091119-014652</comments>
		</item>
		<item>
			<title>PHP random password generator</title>
			<link>http://s2kdesigns.org/simblog/index.php?entry=entry091119-012742</link>
			<description><![CDATA[&lt;?php<br /> <br />function generatePassword($length=9, $strength=0) {<br />	$vowels = &#039;aeuy&#039;;<br />	$consonants = &#039;bdghjmnpqrstvz&#039;;<br />	if ($strength &amp; 1) {<br />		$consonants .= &#039;BDGHJLMNPQRSTVWXZ&#039;;<br />	}<br />	if ($strength &amp; 2) {<br />		$vowels .= &quot;AEUY&quot;;<br />	}<br />	if ($strength &amp; 4) {<br />		$consonants .= &#039;23456789&#039;;<br />	}<br />	if ($strength &amp; 8) {<br />		$consonants .= &#039;@#$%&#039;;<br />	}<br /> <br />	$password = &#039;&#039;;<br />	$alt = time() % 2;<br />	for ($i = 0; $i &lt; $length; $i++) {<br />		if ($alt == 1) {<br />			$password .= $consonants[(rand() % strlen($consonants))];<br />			$alt = 0;<br />		} else {<br />			$password .= $vowels[(rand() % strlen($vowels))];<br />			$alt = 1;<br />		}<br />	}<br />	return $password;<br />}<br /> <br />?&gt;]]></description>
			<category>PHP</category>
			<guid isPermaLink="true">http://s2kdesigns.org/simblog/index.php?entry=entry091119-012742</guid>
			<author>Sandeep</author>
			<pubDate>Thu, 19 Nov 2009 06:27:42 GMT</pubDate>
			<comments>http://s2kdesigns.org/simblog/comments.php?y=09&amp;m=11&amp;entry=entry091119-012742</comments>
		</item>
		<item>
			<title>PERL OOP - Destructors </title>
			<link>http://s2kdesigns.org/simblog/index.php?entry=entry091117-100344</link>
			<description><![CDATA[If constructors can have arbitrary names, then why not destructors? Because while a constructor is explicitly called, a destructor is not. Destruction happens automatically via Perl&#039;s garbage collection (GC) system, which is a quick but somewhat lazy reference-based GC system. To know what to call, Perl insists that the destructor be named DESTROY. Perl&#039;s notion of the right time to call a destructor is not well-defined currently, which is why your destructors should not rely on when they are called.<br /><br />Why is DESTROY in all caps? Perl on occasion uses purely uppercase function names as a convention to indicate that the function will be automatically called by Perl in some way. Others that are called implicitly include BEGIN, END, AUTOLOAD, plus all methods used by tied objects, described in the perltie manpage.]]></description>
			<category>PERL/Shell Scripting, Interview</category>
			<guid isPermaLink="true">http://s2kdesigns.org/simblog/index.php?entry=entry091117-100344</guid>
			<author>Sandeep</author>
			<pubDate>Tue, 17 Nov 2009 15:03:44 GMT</pubDate>
			<comments>http://s2kdesigns.org/simblog/comments.php?y=09&amp;m=11&amp;entry=entry091117-100344</comments>
		</item>
	</channel>
</rss>
