<?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>Linux and Unix technical recipes</title>
	<atom:link href="http://www.howtonix.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.howtonix.com</link>
	<description>Linux Tutorial and Guide</description>
	<lastBuildDate>Thu, 30 Sep 2010 23:41:09 +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>JCow&#8217;s Events Join Modification</title>
		<link>http://www.howtonix.com/jcows-events-join-modification/</link>
		<comments>http://www.howtonix.com/jcows-events-join-modification/#comments</comments>
		<pubDate>Thu, 30 Sep 2010 23:32:29 +0000</pubDate>
		<dc:creator>emran</dc:creator>
				<category><![CDATA[Elgg]]></category>
		<category><![CDATA[JCow]]></category>
		<category><![CDATA[Events Join Modifcation]]></category>

		<guid isPermaLink="false">http://www.howtonix.com/?p=234</guid>
		<description><![CDATA[google_ad_client = "pub-4492234592142803"; /* 468x60, created 9/1/10 howtonix */ google_ad_slot = "5691725759"; google_ad_width = 468; google_ad_height = 60; I love jcow script.it is very nice and faster. It is very simple to implement in production website though some modification is required. I found that in the Event module,  &#8220;i want to join&#8221; button always keep [...]]]></description>
			<content:encoded><![CDATA[
<!-- Quick Adsense WordPress Plugin: http://techmilieu.com/quick-adsense -->
<div style="float:none;margin:10px 0 10px 0;text-align:center;">
<script type="text/javascript">

google_ad_client = "pub-4492234592142803";
/* 468x60, created 9/1/10 howtonix */
google_ad_slot = "5691725759";
google_ad_width = 468;
google_ad_height = 60;


</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<p>I love jcow script.it is very nice and faster. It is very simple to implement in production website though some modification is required.</p>
<p>I found that in the Event module,  &#8220;i want to join&#8221; button always keep front even user already clicked the join button.it should not show if user already join on the event.</p>
<p>It can be changed easily.Please follow the steps to modify:</p>
<p>1. Go to modues/events/events.php</p>
<p>2. go to line no 70. where u will find hook_viewstory() function.</p>
<p>then you place code as following.</p>
<div id="attachment_233" class="wp-caption aligncenter" style="width: 509px"><a href="http://www.howtonix.com/wp-content/uploads/2010/09/events_join_modification.gif"><img class="size-full wp-image-233" title="Events join modification" src="http://www.howtonix.com/wp-content/uploads/2010/09/events_join_modification.gif" alt="Events join modification" width="499" height="219" /></a><p class="wp-caption-text">Events join modification</p></div>
<p>3. Now refresh the events page and check that it will not show if you already join the event.</p>
<p>That&#8217;s all</p>

<div style="font-size:0px;height:0px;line-height:0px;margin:0;padding:0;clear:both"></div>]]></content:encoded>
			<wfw:commentRss>http://www.howtonix.com/jcows-events-join-modification/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Shoutbox Module for JCow</title>
		<link>http://www.howtonix.com/shoutbox-module-jcow/</link>
		<comments>http://www.howtonix.com/shoutbox-module-jcow/#comments</comments>
		<pubDate>Sat, 25 Sep 2010 16:45:06 +0000</pubDate>
		<dc:creator>emran</dc:creator>
				<category><![CDATA[JCow]]></category>
		<category><![CDATA[Shoutbox Jcow]]></category>

		<guid isPermaLink="false">http://www.howtonix.com/?p=214</guid>
		<description><![CDATA[I have written another module for JCow.It is shoutbox. The Shoutbox module provides a block where visitors can quickly post short messages. Post messages instantly via AJAX Optionally have messages auto-refresh via AJAX A cron option allows the administrator to have old shouts deleted.[not implemented yet] Let me know if you have any issues. How [...]]]></description>
			<content:encoded><![CDATA[<p>I have written another module for JCow.It is shoutbox.</p>
<p>The Shoutbox module provides a block where visitors can quickly post short messages.</p>
<ul>
<li>Post messages instantly via AJAX</li>
<li>Optionally have messages auto-refresh via AJAX</li>
<li>A cron option allows the administrator to have old shouts deleted.[not implemented yet]</li>
</ul>
<p>Let me know if you have any issues.</p>
<div id="attachment_219" class="wp-caption alignleft" style="width: 160px"><a href="http://www.howtonix.com/wp-content/uploads/2010/09/shoutbox.gif"><img class="size-thumbnail wp-image-219" title="shoutbox" src="http://www.howtonix.com/wp-content/uploads/2010/09/shoutbox-150x150.gif" alt="JCow Shoutbox" width="150" height="150" /></a><p class="wp-caption-text">JCow Shoutbox</p></div>
<p><strong>How to setup:</strong></p>
<p>1. Download the Modules <a href="http://www.howtonix.com/wp-content/uploads/2010/09/shoutbox.zip">shoutbox</a>.</p>
<p>2.  Copy and paste the modules to the directory modules/shoutbox</p>
<p>3. Go to Admin CP and Install shoubox module</p>
<p>4. Then edit dashboard script from modules/dashboard.php and put the following code in the index() function</p>
<blockquote><p>//after this code<br />
block(<br />
friends_birthday()<br />
);</p></blockquote>
<blockquote><p>//Add this Code</p>
<p>include_once &#8216;modules/shoutbox/shoutbox.php&#8217;;</p>
<p>$sb=new shoutbox();<br />
block(<br />
$sb-&gt;shout_box()<br />
);</p></blockquote>
<p><a href="http://www.howtonix.com/wp-content/uploads/2010/09/shoutbox_add.gif"><img class="aligncenter size-full wp-image-218" title="shoutbox_add" src="http://www.howtonix.com/wp-content/uploads/2010/09/shoutbox_add.gif" alt="" width="415" height="187" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.howtonix.com/shoutbox-module-jcow/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>SEO friendly URL in PHP</title>
		<link>http://www.howtonix.com/seo-friendly-url-php/</link>
		<comments>http://www.howtonix.com/seo-friendly-url-php/#comments</comments>
		<pubDate>Thu, 09 Sep 2010 21:29:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Elgg]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SEO Friendly URL]]></category>

		<guid isPermaLink="false">http://www.howtonix.com/?p=201</guid>
		<description><![CDATA[You can make SEO Friendly url easily in php. function friendlyURL($string){ $string = preg_replace("`\[.*\]`U","",$string); $string = preg_replace('`&#38;(amp;)?#?[a-z0-9]+;`i','-',$string); $string = htmlentities($string, ENT_COMPAT, 'utf-8'); $string = preg_replace( "`&#38;([a-z])(acute&#124;uml&#124;circ&#124;grave&#124;ring&#124;cedil&#124;slash&#124;tilde&#124;caron&#124;lig&#124;quot&#124;rsquo);`i","\\1", $string ); $string = preg_replace( array("`[^a-z0-9]`i","`[-]+`") , "-", $string); return strtolower(trim($string, '-')); } usage: $myFriendlyURL = friendlyURL("Barca rejects FIFA statement on Olympics row"); echo $myFriendlyURL; // will echo barca-rejects-fifa-statement-on-olympics-row]]></description>
			<content:encoded><![CDATA[<p>You can make SEO Friendly url easily in php.</p>
<blockquote>
<pre>function friendlyURL($string){
	$string = <a href="http://www.php.net/preg_replace">preg_replace</a>("`\[.*\]`U","",$string);
	$string = <a href="http://www.php.net/preg_replace">preg_replace</a>('`&amp;(amp;)?#?[a-z0-9]+;`i','-',$string);
	$string = <a href="http://www.php.net/htmlentities">htmlentities</a>($string, ENT_COMPAT, 'utf-8');
	$string = <a href="http://www.php.net/preg_replace">preg_replace</a>( "`&amp;([a-z])(acute|uml|circ|grave|ring|cedil|slash|tilde|caron|lig|quot|rsquo);`i","\\1", $string );
	$string = <a href="http://www.php.net/preg_replace">preg_replace</a>( <a href="http://www.php.net/array">array</a>("`[^a-z0-9]`i","`[-]+`") , "-", $string);
	return <a href="http://www.php.net/strtolower">strtolower</a>(<a href="http://www.php.net/trim">trim</a>($string, '-'));
}</pre>
</blockquote>
<p>usage:</p>
<blockquote>
<pre>$myFriendlyURL = friendlyURL("Barca rejects FIFA statement on Olympics row");
<a href="http://www.php.net/echo">echo</a> $myFriendlyURL; // will echo barca-rejects-fifa-statement-on-olympics-row</pre>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.howtonix.com/seo-friendly-url-php/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Jcow Social Script Admin Add User</title>
		<link>http://www.howtonix.com/jcow-social-script-admin-add-user/</link>
		<comments>http://www.howtonix.com/jcow-social-script-admin-add-user/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 22:48:42 +0000</pubDate>
		<dc:creator>emran</dc:creator>
				<category><![CDATA[Elgg]]></category>
		<category><![CDATA[JCow]]></category>
		<category><![CDATA[Admin Add user]]></category>

		<guid isPermaLink="false">http://www.howtonix.com/?p=193</guid>
		<description><![CDATA[I saw some request in JCow forum about user add from admin panel. So i gave sometimes and it works. Here is the code: 1. First you have to edit modules/admin/admin.php and put these two function. function useradd(){ nav(t(&#8216;Users/Add User&#8217;)); section_content(&#8216; &#60;fieldset&#62; &#60;form action=&#8221;&#8216;.url(&#8216;admin/useraddpost&#8217;).&#8217;&#8221; method=&#8221;post&#8221;&#62; &#8216;); section_content(&#8216; &#60;p&#62; &#8216;.label(&#8216;Full Name&#8217;).&#8217; &#60;input type=&#8221;text&#8221; name=&#8221;fullname&#8221; size=30 /&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>I saw some request in JCow forum about user add from admin panel.<br />
So i gave sometimes and it works.</p>
<p>Here is the code:</p>
<p>1. First you have to edit modules/admin/admin.php</p>
<p>and put these two function.</p>
<blockquote><p>function useradd(){<br />
nav(t(&#8216;Users/Add User&#8217;));<br />
section_content(&#8216;<br />
&lt;fieldset&gt;<br />
&lt;form action=&#8221;&#8216;.url(&#8216;admin/useraddpost&#8217;).&#8217;&#8221; method=&#8221;post&#8221;&gt;<br />
&#8216;);</p>
<p>section_content(&#8216;<br />
&lt;p&gt;<br />
&#8216;.label(&#8216;Full Name&#8217;).&#8217;<br />
&lt;input type=&#8221;text&#8221; name=&#8221;fullname&#8221; size=30 /&gt;<br />
&lt;/p&gt;</p>
<p>&lt;p&gt;<br />
&#8216;.label(&#8216;Username&#8217;).&#8217;<br />
&lt;input type=&#8221;text&#8221; name=&#8221;username&#8221; size=30 /&gt;<br />
&lt;/p&gt;<br />
&lt;p&gt;<br />
&#8216;.label(&#8216;Password&#8217;).&#8217;<br />
&lt;input type=&#8221;text&#8221; name=&#8221;password&#8221; size=30 /&gt;<br />
&lt;/p&gt;<br />
&lt;p&gt;<br />
&#8216;.label(&#8216;E-mail&#8217;).&#8217;<br />
&lt;input type=&#8221;text&#8221; name=&#8221;email&#8221; size=30 /&gt;<br />
&lt;/p&gt;<br />
&lt;p&gt;<br />
&#8216;.label(t(&#8216;Gender&#8217;)).&#8217;<br />
&lt;input type=&#8221;radio&#8221; name=&#8221;gender&#8221; value=1 checked/&gt; Male<br />
&lt;input type=&#8221;radio&#8221; name=&#8221;gender&#8221; value=0 /&gt; Female<br />
&lt;input type=&#8221;radio&#8221; name=&#8221;gender&#8221; value=2 /&gt; Hide&lt;br /&gt;<br />
&lt;/p&gt;</p>
<p>&lt;p&gt;<br />
&#8216;.label(t(&#8216;Status&#8217;)).&#8217;<br />
&lt;input type=&#8221;radio&#8221; name=&#8221;disabled&#8221; value=0 checked/&gt; Active<br />
&lt;input type=&#8221;radio&#8221; name=&#8221;disabled&#8221; value=1 /&gt; Pending<br />
&lt;input type=&#8221;radio&#8221; name=&#8221;disabled&#8221; value=2 /&gt; Suspended&lt;br /&gt;<br />
&lt;/p&gt;</p>
<p>&lt;p&gt;<br />
&lt;input type=&#8221;submit&#8221; value=&#8221;&#8216;.t(&#8216;Add User&#8217;).&#8217;&#8221; /&gt;<br />
&lt;/p&gt;<br />
&lt;/form&gt;<br />
&lt;/fieldset&gt;&#8217;);<br />
}</p></blockquote>
<p>the above function will show form to add user.</p>
<blockquote><p>function useraddpost(){</p>
<p>$_POST['username'] = strtolower($_POST['username']);</p>
<p>if (strlen($_POST['username']) &lt; 4 || strlen($_POST['username']) &gt; 18 || !ereg(&#8220;^[0-9a-z]+$&#8221;,$_POST['username'])) {<br />
$errors[] = t(&#8216;Username&#8217;).&#8217;: &#8216;.t(&#8216;from 4 to 18 characters, only 0-9,a-z&#8217;);<br />
}</p>
<p>if (!$_POST['email'] || !$_POST['fullname'] || !$_POST['username'] || !$_POST['password']) {<br />
$errors[] = t(&#8216;Please fill in all the required blanks&#8217;);<br />
}</p>
<p>if(!eregi(&#8220;^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$&#8221;, $_POST['email'])) {<br />
$errors[] = t(&#8216;Unavailable email address&#8217;);<br />
}</p>
<p>$password = md5($_POST['password'].&#8217;jcow&#8217;);<br />
$timeline = time();<br />
$res = sql_query(&#8220;select * from `&#8221;.tb().&#8221;accounts` where email=&#8217;{$_POST['email']}&#8217;&#8221;);<br />
if (sql_counts($res)) {<br />
$errors[] = t(&#8216;You have registered with this email address before.&#8217;);<br />
}<br />
$res = sql_query(&#8220;select * from `&#8221;.tb().&#8221;accounts` where username=&#8217;{$_POST['username']}&#8217;&#8221;);<br />
if (sql_counts($res)) {<br />
$errors[] = t(&#8216;The Username has already been used&#8217;);<br />
}</p>
<p>if(!is_array($errors)){</p>
<p>sql_query(&#8220;insert into `&#8221;.tb().&#8221;accounts` (hide_age,gender,disabled,password,email,username,fullname,created) values<br />
(&#8217;1&#8242;,&#8221;.$_POST['gender'].&#8221;,&#8221;.$_POST['disabled'].&#8221;,&#8217;$password&#8217;,'&#8221;.$_POST['email'].&#8221;&#8216;,&#8217;&#8221;.$_POST['username'].&#8221;&#8216;,&#8217;&#8221;.$_POST['fullname'].&#8221;&#8216;,&#8217;&#8221;.$timeline.&#8221;&#8216;)&#8221;);<br />
$uid = insert_id();<br />
sql_query(&#8220;insert into `&#8221;.tb().&#8221;profiles` (id,style_ids) values($uid,&#8217;3|3|3&#8242;)&#8221;);<br />
stream_publish(t(&#8216;Signed Up&#8217;),&#8221;,&#8221;,$uid);<br />
t(&#8216;Congratulations! You have successfully created user.&#8217;);<br />
redirect(&#8220;admin/users&#8221;);<br />
}else {<br />
foreach ($errors as $error) {<br />
$error_msg .= &#8216;&lt;li&gt;&#8217;.$error.&#8217;&lt;/li&gt;&#8217;;<br />
}<br />
sys_notice(t(&#8216;Errors&#8217;).&#8217;:&lt;ul&gt;&#8217;.$error_msg.&#8217;&lt;/ul&gt;&#8217;);<br />
}</p>
<p>}</p></blockquote>
<p>The above function will add user after submitting.</p>
<p>2. Now add this line to users() function of admin.php files.</p>
<blockquote><p>c(&#8220;&lt;p&gt;&lt;a href=&#8221;.url(&#8220;admin/useradd&#8221;).&#8221;&gt;Add User&lt;/a&gt;&lt;/p&gt;&#8221;);</p>
<div id="attachment_209" class="wp-caption alignnone" style="width: 336px"><a href="http://www.howtonix.com/wp-content/uploads/2010/09/admin_adduser_3.gif"><img class="size-medium wp-image-209" title="admin_adduser_3" src="http://www.howtonix.com/wp-content/uploads/2010/09/admin_adduser_3-300x146.gif" alt="Jcow Admin Add user" width="326" height="159" /></a><p class="wp-caption-text">Jcow Admin Add user Link</p></div></blockquote>
<p>3. That&#8217;s all. Go to admin panel-&gt;members-&gt;add user. i hope rest of work you can do:P..</p>
<p>Download the source code.</p>
<p><a href="http://www.howtonix.com/wp-content/uploads/2010/09/adminadduser.txt">Jcow Admin Add user Source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.howtonix.com/jcow-social-script-admin-add-user/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Hide Admin user from recent login in JCow Social script</title>
		<link>http://www.howtonix.com/hide-admin-user-login-jcow-social-script/</link>
		<comments>http://www.howtonix.com/hide-admin-user-login-jcow-social-script/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 21:50:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Elgg]]></category>
		<category><![CDATA[JCow]]></category>

		<guid isPermaLink="false">http://www.howtonix.com/?p=191</guid>
		<description><![CDATA[you can apply a tricks not to show admin on the recent logins or recent members like this. Open theme&#8217;s page.tpl.php and go to line no 170. Change with following query.it will not show admin. $res = sql_query(&#8220;SELECT * from `&#8221;.tb().&#8221;accounts` where roles!=3 order by lastlogin desc limit 20&#8243;);]]></description>
			<content:encoded><![CDATA[<p>you can apply a tricks not to show admin on the recent logins or recent members like this.</p>
<p>Open theme&#8217;s page.tpl.php and go to line no 170.</p>
<p>Change with following query.it will not show admin.</p>
<blockquote>
<p>$res = sql_query(&#8220;SELECT * from `&#8221;.tb().&#8221;accounts` where roles!=3 order by lastlogin desc limit 20&#8243;);
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.howtonix.com/hide-admin-user-login-jcow-social-script/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>SMTP Module at JCow Social Script</title>
		<link>http://www.howtonix.com/smtp-module-jcow-social-script/</link>
		<comments>http://www.howtonix.com/smtp-module-jcow-social-script/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 20:28:19 +0000</pubDate>
		<dc:creator>emran</dc:creator>
				<category><![CDATA[Elgg]]></category>
		<category><![CDATA[JCow]]></category>
		<category><![CDATA[SMTP Jcow Module]]></category>

		<guid isPermaLink="false">http://www.howtonix.com/?p=185</guid>
		<description><![CDATA[This is my first module for JCow Social script. Sometimes we need remote SMTP server to send out email.This script will help you to send out email from remote SMTP server even gmail or yahoo.It supports SSL connection too. First, You need to download class.smtp.php and class.phpgmailer.php scripts and place into  includes/libs/ folder under JCow [...]]]></description>
			<content:encoded><![CDATA[<p>This is my first module for JCow Social script. Sometimes we need remote SMTP server to send out email.This script will help you to send out email from remote SMTP server even gmail or yahoo.It supports SSL connection too.</p>
<p>First, You need to download class.smtp.php and class.phpgmailer.php scripts and place into  includes/libs/ folder under JCow directory.</p>
<p>Now add these files to boot.inc.php from includes/ folder.</p>
<blockquote><p>
//loading SMTP Library<br />
require_once &#8216;./includes/libs/class.phpgmailer.php&#8217;;<br />
require_once &#8216;./includes/libs/class.smtp.php&#8217;;
</p></blockquote>
<p>Now edit my/config.php files and put smtp parameters as like follows:</p>
<blockquote><p>$config['smtp_host']=&#8217;127.0.0.1&#8242;;<br />
$config['smtp_port']=25;<br />
$config['smtp_auth']=true;<br />
$config['smtp_user']=&#8217;YOUR USERNAME&#8217;;<br />
$config['smtp_pass']=&#8217;YOUR PASSWORD&#8217;;<br />
$config['smtp_html']=true;<br />
$config['smtp_from']=&#8217;noreply@YOURDOMAIN&#8217;;
</p></blockquote>
<p>Now the final step. Edit includes/libs/common.inc.php and write mailer function :</p>
<blockquote><p>
function jcow_user_mail($to,$subject,$message,$reply=&#8221;){<br />
		global $config;<br />
		$mail = new PHPGMailer();<br />
		$mail->Username = $config['smtp_user'];<br />
		$mail->Password = $config['smtp_pass'];<br />
		$mail->From = $config['smtp_from'];<br />
		$mail->FromName = get_gvar(&#8216;site_name&#8217;);<br />
		$mail->Host=$config['smtp_host'];<br />
		$mail->Port=$config['smtp_port'];<br />
		$mail->Subject = $subject;<br />
		$mail->AddAddress($to);<br />
		$mail->Body = $message;<br />
		$mail->IsHTML=$config['smtp_html'];;</p>
<p>    		return $mail->Send();</p>
<p>}
</p></blockquote>
<p>Now all email will send out via SMTP server.This is tested script.</p>
<p><a href='http://www.howtonix.com/wp-content/uploads/2010/09/smtp.zip'>Download SMTP Module for JCow</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.howtonix.com/smtp-module-jcow-social-script/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>JCow as Opensource Social Networking script</title>
		<link>http://www.howtonix.com/jcow-opensource-social-networking-script/</link>
		<comments>http://www.howtonix.com/jcow-opensource-social-networking-script/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 20:10:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Elgg]]></category>
		<category><![CDATA[JCow]]></category>
		<category><![CDATA[Jcow Social Network Script]]></category>

		<guid isPermaLink="false">http://www.howtonix.com/?p=182</guid>
		<description><![CDATA[Few days back, I was asking to make a website for a alumni association.They need a function as like facebook.After that I had started searching on google.I found have few scripts.Out of them, I liked three scripts i.e. Elgg,  Dolphin and JCow. I discover that JCow is nicely developed.Although, i was strange to see the [...]]]></description>
			<content:encoded><![CDATA[<p>Few days back, I was asking to make a website for a alumni association.They need a function as like facebook.After that I had started searching on google.I found have few scripts.Out of them, I liked three scripts i.e. Elgg,  Dolphin and JCow.</p>
<p>I discover that JCow is nicely developed.Although, i was strange to see the name &#8220;JCow&#8221; as social networking script.It is very easier to extend.It is very lightweight and faster than others. So i decided to work on JCow.JCow has some lack of features but it can be extended easily.I have written some scripts for my website.I will share it soon.</p>
<p>Happy JCowing&#8230;&#8230;!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.howtonix.com/jcow-opensource-social-networking-script/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Use wget with Squid Proxy Server</title>
		<link>http://www.howtonix.com/wget-squid-proxy-server/</link>
		<comments>http://www.howtonix.com/wget-squid-proxy-server/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 20:01:53 +0000</pubDate>
		<dc:creator>emran</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.howtonix.com/?p=156</guid>
		<description><![CDATA[you can pass the proxy username and password as follows: wget &#8211;proxy-user=YOUR-USERNAME-HERE &#8211;proxy-password=YOUR-PASSWORD-HERE http://nixcraft.com/file.tar.gz]]></description>
			<content:encoded><![CDATA[<p>you can pass the proxy username and password as follows:<br />
wget &#8211;proxy-user=YOUR-USERNAME-HERE &#8211;proxy-password=YOUR-PASSWORD-HERE http://nixcraft.com/file.tar.gz</p>
]]></content:encoded>
			<wfw:commentRss>http://www.howtonix.com/wget-squid-proxy-server/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>IVR Application in Lua for Freeswitch</title>
		<link>http://www.howtonix.com/ivr-application-lua-freeswitch/</link>
		<comments>http://www.howtonix.com/ivr-application-lua-freeswitch/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 00:57:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeSWITCH]]></category>
		<category><![CDATA[Lua]]></category>
		<category><![CDATA[IVR Lua FreeSWITCH]]></category>

		<guid isPermaLink="false">http://www.howtonix.com/?p=173</guid>
		<description><![CDATA[1. Create a New file name 01_Custom.xml and add the following new extension: &#60;extension name=&#8221;Read Back Entered Digits&#8221;&#62; &#60;condition field=&#8221;destination_number&#8221; expression=&#8221;^(9910)$&#8221;&#62; &#60;action application=&#8221;lua&#8221; data=&#8221;test1.lua&#8221;/&#62; &#60;/condition&#62; &#60;/extension&#62; 2. Save the file. Launch fs_cli and issue reload_xml, or press F6. Our Dialplan is now ready to call the Lua script named test1.lua. Create this new script as [...]]]></description>
			<content:encoded><![CDATA[<p>1.   Create a New file name 01_Custom.xml and add the following new extension:</p>
<blockquote><p>&lt;extension name=&#8221;Read Back Entered Digits&#8221;&gt;<br />
&lt;condition field=&#8221;destination_number&#8221; expression=&#8221;^(9910)$&#8221;&gt;<br />
&lt;action application=&#8221;lua&#8221; data=&#8221;test1.lua&#8221;/&gt;<br />
&lt;/condition&gt;<br />
&lt;/extension&gt;</p></blockquote>
<p>2.   Save the file. Launch fs_cli and issue reload_xml,         or press F6.</p>
<p>Our Dialplan is now ready to call the Lua script named test1.lua. Create this new script as follows:</p>
<p>1.   Using your text editor, create test1.lua in the freeswitch/scripts/ directory and add the following lines:</p>
<blockquote><p>&#8211; test1.lua<br />
&#8211; Answer call, play a prompt, hangup</p>
<p>&#8211; Set the path separator<br />
pathsep = &#8216;/&#8217;         &#8212; Windows users do this instead:<br />
&#8211; pathsep = &#8216;\&#8217;</p>
<p>&#8211;Answer the call<br />
session:answer()</p>
<p>&#8211;Create a string with path and filename of a sound file<br />
prompt = &#8220;ivr&#8221; .. pathsep  .. &#8220;ivr-welcome_to_freeswitch.wav&#8221;</p>
<p>&#8211; Print a log message<br />
freeswitch.consoleLog(&#8220;INFO&#8221;,&#8221;Prompt file is &#8216;&#8221; .. prompt .. &#8220;&#8216;\<br />
n&#8221;)</p>
<p>&#8211;Play the prompt<br />
session:streamFile(prompt)</p>
<p>&#8211; Hangup<br />
session:hangup()</p></blockquote>
<p>2.   Save the file.</p>
<p>Now dialer 9910 and you will get IVR.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.howtonix.com/ivr-application-lua-freeswitch/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Lua Tutorial for Freeswitch</title>
		<link>http://www.howtonix.com/lua-tutorial-freeswitch/</link>
		<comments>http://www.howtonix.com/lua-tutorial-freeswitch/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 00:52:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeSWITCH]]></category>
		<category><![CDATA[Lua]]></category>
		<category><![CDATA[Lua Tutorial]]></category>

		<guid isPermaLink="false">http://www.howtonix.com/?p=171</guid>
		<description><![CDATA[Lua is very lightweight programing language.Lua has a simple syntax that is easy both to learn and to read. Following is a simple script: &#8212; This is a sample Lua script &#8212; Single line comments begin with two dashes &#8211;[[ This is a multi-line comment. Everything between the double square brackets is part of the [...]]]></description>
			<content:encoded><![CDATA[<p>Lua is very lightweight programing language.Lua has a simple syntax that is easy both to learn and to read. Following is a<br />
simple script: </p>
<p>    &#8212; This is a sample Lua script<br />
    &#8212; Single line comments begin with two dashes </p>
<p>    &#8211;[[<br />
       This is a multi-line comment.<br />
       Everything between the double square brackets<br />
         is part of the comment block.<br />
    ]] </p>
<p>    &#8212; Lua is loosely typed<br />
    var = 1             &#8212; This is a comment<br />
    var = �alpha�       &#8212; Another comment<br />
    var = �A1�          &#8212; You get the idea&#8230; </p>
<p>    &#8211;[[<br />
       When the Lua script is called from the dialplan<br />
       you have a few magic objects. A handy one is<br />
       the 'freeswitch' object which lets you do things<br />
       like this:<br />
       freeswitch.consoleLog(�INFO�,�This is a log line\n�) </p>
<p>       Another important one is the 'session' object which<br />
       Lets you manipulate the call:<br />
       session:answer()<br />
       session:hangup()<br />
    ]] </p>
<p>    &#8212; Lua makes extensive use of tables<br />
    &#8212; Tables are a hybrid of arrays and associative arrays<br />
    my_table = {<br />
          key1 = val1,<br />
          key2 = val2,<br />
           �index 1�,<br />
           �index 2�<br />
     }<br />
    freeswitch.consoleLog(�my_table key1 is &#8216;� .. my_table[key1] .. �&#8217;\n�)<br />
    freeswitch.consoleLog(�my_table index 1 is &#8216;� .. my_table[1] .. �&#8217;\n�) </p>
<p>    &#8212; Access arguments passed in<br />
    arg1 = argv[1]           &#8212; First argument<br />
    arg2 = argv[2]           &#8212; Second argument </p>
<p>    &#8212; Simple if/then<br />
    if ( var == �A1� ) then<br />
       freeswitch.consoleLog(�INFO�,�var is &#8216;A1&#8242;\n�)<br />
    end </p>
<p>    &#8212; Simple if/then/else<br />
    if ( var == �A1� ) then<br />
       freeswitch.consoleLog(�INFO�,�var is &#8216;A1&#8242;\n�)<br />
    else<br />
       freeswitch.consoleLog(�INFO�,�var is not &#8216;A1&#8242;!\n�)<br />
    end </p>
<p>    &#8212; String concatenation uses ..<br />
    var = �This � .. � and � .. �that�<br />
    freeswitch.consoleLog(�INFO�,�var contains &#8216;� .. var .. �&#8217;\n�) </p>
<p>    &#8212; The end </p>
<p>Every Lua script that is executed from the Dialplan receives the session object,<br />
which represents the call leg that is being processed. The session object is the<br />
primary means of manipulating the call, and is used extensively in Lua scripting. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.howtonix.com/lua-tutorial-freeswitch/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

