<?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>twistedgenes.com - Blogs by Rakesh Gupta &#187; Rocking</title>
	<atom:link href="http://www.twistedgenes.com/category/rocking/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.twistedgenes.com</link>
	<description>Blogs on truth, technology, food, linux, leisure, experiences, adventure, romance, friends etc !</description>
	<lastBuildDate>Sat, 12 Jun 2010 14:24:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ISP related issues. Reliance Communications WiMax problems solved</title>
		<link>http://www.twistedgenes.com/2010/01/isp-related-issues-reliance-communications-wimax-problems-solved/</link>
		<comments>http://www.twistedgenes.com/2010/01/isp-related-issues-reliance-communications-wimax-problems-solved/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 10:51:17 +0000</pubDate>
		<dc:creator>Rakesh</dc:creator>
				<category><![CDATA[Cool]]></category>
		<category><![CDATA[Experiences]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Rocking]]></category>
		<category><![CDATA[all]]></category>
		<category><![CDATA[Bangalore]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.twistedgenes.com/?p=341</guid>
		<description><![CDATA[Recently a lot of issues have turned up with my ISP provider, Reliance Communications in this case. I happen to use multiple laptops and a router. They lock a system based on MAC address or a long duration dhcp lease file. There are various ways to get rid of this situation. A few which I [...]]]></description>
			<content:encoded><![CDATA[<p>Recently a lot of issues have turned up with my ISP provider, Reliance Communications in this case. I happen to use multiple laptops and a router. They lock a system based on MAC address or a long duration dhcp lease file. There are various ways to get rid of this situation. A few which I could figure out and seem to work are</p>
<p><span style="text-decoration: underline;">&#8211; Do neatly logout of their web application, before switching machines. As they keep the records, which would not let you login using a different machine till a session timeout which ranges from 0.5 to 6 hours.</span></p>
<p><span style="text-decoration: underline;">&#8211; Spoof Your MAC Address, if you are using multiple laptops/desktops</span></p>
<p>use<strong> ifconfig</strong> utility:</p>
<p><span style="color: #000000;">MAC address can be changed very easily using <em>ifconfig</em>. Run the following command as root user.</span></p>
<p>#<em><strong>ifconfig eth0 down hw ether address</strong></em></p>
<p><em><strong>eth0</strong></em> is the name of the interface/NIC which address is to be changed.</p>
<p><em><strong>down</strong></em> means the NIC is to be shutdown before changing address.</p>
<p><em><strong>hw ether </strong></em>means hardware address class is ether(which indicates ethernet).</p>
<p><em><strong>address</strong></em> is the address which will used as the new mac.</p>
<p>After the successful execution of the command. start the NIC again using the command:</p>
<p><em><strong># /sbin/ifconfig eth0 up</strong></em></p>
<p><span style="text-decoration: underline;">&#8211; Release your IP after successful log out</span></p>
<p><em><strong># dhclient -r -pf  &lt; path to the current dhclient pid file &gt; </strong></em></p>
<p>The path of current dhclient pid file can be found using</p>
<p><strong><em># ps -eaf  | grep dhclient </em></strong></p>
<p>Path is usually /var/run/dhclient-eth0.pid or /var/run/dhclient-wlan0.pid</p>
<p><em><strong><br />
</strong></em></p>
<p><strong><em><br />
</em></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.twistedgenes.com/2010/01/isp-related-issues-reliance-communications-wimax-problems-solved/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to make Bhelpuri at home in few easy steps !</title>
		<link>http://www.twistedgenes.com/2009/11/how-to-make-bhelpuri-at-home-in-few-easy-steps/</link>
		<comments>http://www.twistedgenes.com/2009/11/how-to-make-bhelpuri-at-home-in-few-easy-steps/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 18:57:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cool]]></category>
		<category><![CDATA[Crazy]]></category>
		<category><![CDATA[Food]]></category>
		<category><![CDATA[Rocking]]></category>
		<category><![CDATA[all]]></category>
		<category><![CDATA[Spicy]]></category>

		<guid isPermaLink="false">http://www.twistedgenes.com/?p=242</guid>
		<description><![CDATA[Bhelpuri, the exotic Indian snacks can be prepared easily at home in the following easy steps.
=&#62; Get a large packet of Haldiram Bhujia Sev 






From Food



=&#62; Get two tomatoes, two onion, 4 lemons, 1-2 green chillies, black pepper powder etc






From Food



=&#62; Cut the tomatoes and onion in small pieces and lemon into 2 halves as [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/Bhelpuri" target="_blank">Bhelpuri</a>, the exotic Indian snacks can be prepared easily at home in the following easy steps.</p>
<p><strong>=&gt; </strong>Get a large packet of <a href="http://www.haldirams.com/" target="_blank">Haldiram</a> Bhujia Sev<strong> </strong></p>
<table style="width: auto;" border="0">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/EA8oUV354aIaPGgc-bjwCg?feat=embedwebsite"><img src="http://lh3.ggpht.com/_1pCudCDCfOY/SwBDvm8UdtI/AAAAAAAAGs0/gslkwyxep3s/s400/dsc01891.jpg" alt="" /></a></td>
</tr>
<tr>
<td style="font-family:arial,sans-serif; font-size:11px; text-align:right">From <a href="http://picasaweb.google.com/rg.rakesh/Food?feat=embedwebsite">Food</a></td>
</tr>
</tbody>
</table>
<p><strong>=&gt; </strong>Get two tomatoes, two onion, 4 lemons, 1-2 green chillies, black pepper powder etc</p>
<table style="width: auto;" border="0">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/k1K43XN4-iuNDCptzX-llQ?feat=embedwebsite"><img src="http://lh5.ggpht.com/_1pCudCDCfOY/SwBDv8IJG1I/AAAAAAAAGs4/XbVAW1hFxYE/s400/dsc01892.jpg" alt="" /></a></td>
</tr>
<tr>
<td style="font-family:arial,sans-serif; font-size:11px; text-align:right">From <a href="http://picasaweb.google.com/rg.rakesh/Food?feat=embedwebsite">Food</a></td>
</tr>
</tbody>
</table>
<p><strong>=&gt;</strong> Cut the tomatoes and onion in small pieces and lemon into 2 halves as shown below</p>
<table style="width: auto;" border="0">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/mu-onOcd814p2VhpwP6x_g?feat=embedwebsite"><img src="http://lh3.ggpht.com/_1pCudCDCfOY/SwBDvz1XIeI/AAAAAAAAGs8/NZiEhDrBIHw/s400/dsc01893.jpg" alt="" /></a></td>
</tr>
<tr>
<td style="font-family:arial,sans-serif; font-size:11px; text-align:right">From <a href="http://picasaweb.google.com/rg.rakesh/Food?feat=embedwebsite">Food</a></td>
</tr>
</tbody>
</table>
<p><strong>=&gt;</strong> Mix onion and tomatoes in a large bowl</p>
<table style="width: auto;" border="0">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/GcSKDliqPzovdai8C3zFOQ?feat=embedwebsite"><img src="http://lh4.ggpht.com/_1pCudCDCfOY/SwBDwK3HDfI/AAAAAAAAGtE/GFi5zZF__PQ/s400/dsc01895.jpg" alt="" /></a></td>
</tr>
<tr>
<td style="font-family:arial,sans-serif; font-size:11px; text-align:right">From <a href="http://picasaweb.google.com/rg.rakesh/Food?feat=embedwebsite">Food</a></td>
</tr>
</tbody>
</table>
<p><strong>=&gt;</strong> Add black pepper ( don&#8217;t add too much of it, as it may upset the stomach)</p>
<table style="width: auto;" border="0">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/t-Sqz86cc9OasRVE4SvbHg?feat=embedwebsite"><img src="http://lh6.ggpht.com/_1pCudCDCfOY/SwBEByBKD0I/AAAAAAAAGtM/h_eVUeW_Zfw/s400/dsc01897.jpg" alt="" /></a></td>
</tr>
<tr>
<td style="font-family:arial,sans-serif; font-size:11px; text-align:right">From <a href="http://picasaweb.google.com/rg.rakesh/Food?feat=embedwebsite">Food</a></td>
</tr>
</tbody>
</table>
<p><strong>=&gt;</strong> Squeeze all the lemon in a different bowl and remove the seeds</p>
<table style="width: auto;" border="0">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/RzpUXvUfjMiltIsIHKDEUw?feat=embedwebsite"><img src="http://lh3.ggpht.com/_1pCudCDCfOY/SwBECFWqO0I/AAAAAAAAGtQ/bFukzK0nY68/s400/dsc01898.jpg" alt="" /></a></td>
</tr>
<tr>
<td style="font-family:arial,sans-serif; font-size:11px; text-align:right">From <a href="http://picasaweb.google.com/rg.rakesh/Food?feat=embedwebsite">Food</a></td>
</tr>
</tbody>
</table>
<p><strong>=&gt;</strong> Empty the haldiram bhujia sev pack in the bowl containing onion and tomatoes</p>
<table style="width: auto;" border="0">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/PzHddddPQbwjRzQpk9oBgw?feat=embedwebsite"><img src="http://lh6.ggpht.com/_1pCudCDCfOY/SwBECFbZyTI/AAAAAAAAGtY/BaHNR57e67I/s400/dsc01900.jpg" alt="" /></a></td>
</tr>
<tr>
<td style="font-family:arial,sans-serif; font-size:11px; text-align:right">From <a href="http://picasaweb.google.com/rg.rakesh/Food?feat=embedwebsite">Food</a></td>
</tr>
</tbody>
</table>
<p><strong>=&gt;</strong> Add the lemon juice in the mixture and mix well.</p>
<table style="width: auto;" border="0">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/A8ws6eRh7n0rv0sidfPwnw?feat=embedwebsite"><img src="http://lh3.ggpht.com/_1pCudCDCfOY/SwBESo0MJ2I/AAAAAAAAGtg/QpgIJZqt6hM/s400/dsc01901.jpg" alt="" /></a></td>
</tr>
<tr>
<td style="font-family:arial,sans-serif; font-size:11px; text-align:right">From <a href="http://picasaweb.google.com/rg.rakesh/Food?feat=embedwebsite">Food</a></td>
</tr>
</tbody>
</table>
<p><strong>=&gt;</strong> Add topping of coriander leaves and nicely cut green chillies, mix well and it is ready to serve</p>
<table style="width: auto;" border="0">
<tbody>
<tr>
<td><a href="http://picasaweb.google.com/lh/photo/5cawh-9h78RTnh54nI-5Bg?feat=embedwebsite"><img src="http://lh4.ggpht.com/_1pCudCDCfOY/SwBESlOxIRI/AAAAAAAAGtk/1mMkWCFitwA/s400/dsc01902.jpg" alt="" /></a></td>
</tr>
<tr>
<td style="font-family:arial,sans-serif; font-size:11px; text-align:right">From <a href="http://picasaweb.google.com/rg.rakesh/Food?feat=embedwebsite">Food</a></td>
</tr>
</tbody>
</table>
<p>The chef can be reached <a href="http://mangalbhaskar.webs.com/" target="_blank">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.twistedgenes.com/2009/11/how-to-make-bhelpuri-at-home-in-few-easy-steps/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Huntplace &#8211; The idea, reason and future</title>
		<link>http://www.twistedgenes.com/2009/11/huntplace-the-idea-reason-and-future/</link>
		<comments>http://www.twistedgenes.com/2009/11/huntplace-the-idea-reason-and-future/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 17:07:30 +0000</pubDate>
		<dc:creator>Rakesh</dc:creator>
				<category><![CDATA[Cool]]></category>
		<category><![CDATA[Experiences]]></category>
		<category><![CDATA[Rocking]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[all]]></category>
		<category><![CDATA[Travel]]></category>

		<guid isPermaLink="false">http://www.twistedgenes.com/?p=238</guid>
		<description><![CDATA[Travelling, excursions, adventures who doesn&#8217;t like them . A vast chunk of population likes to freak out on  small adventurous trips on weekends. The reason for this drive is to get rid of the mundane and mechanical cycle of office-home-offce and destress oneself. But the major question that arises is where to go? why this [...]]]></description>
			<content:encoded><![CDATA[<p>Travelling, excursions, adventures who doesn&#8217;t like them . A vast chunk of population likes to freak out on  small adventurous trips on weekends. The reason for this drive is to get rid of the mundane and mechanical cycle of office-home-offce and destress oneself. But the major question that arises is where to go? why this one and why not that one ? what kind of place is it ( historic, nature, modern etc).   How do we decide on this, googling and talking to colleagues. After all this exercise of mining tonnes of pages and talking to bunch of friends, the decision becomes more difficult. Differences of opinion starts among the group.</p>
<p><a href="http://www.huntplace.in" target="_blank">Huntplace</a> as the name suggests let&#8217;s you hunt for the place where you want to go . It basically aggregates/mines the data from resourceful and rich web applications like Flickr, Youtube, Wiki, etc. and makes your life easier. Instead of stumbling upon those stale and old sites, get the data from the popular and reliable sources. It is a mashup that calls the pulic APIs and let&#8217;s u explore your travel destination based on the content received.</p>
<p>The whole idea is in a very early phase and has been implemented. There are bunch of enhancements and ramifications that can be done.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twistedgenes.com/2009/11/huntplace-the-idea-reason-and-future/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Upgrade Fedora without burning the DVD/CDs</title>
		<link>http://www.twistedgenes.com/2008/11/upgrade-fedora-without-burning-the-dvdcds/</link>
		<comments>http://www.twistedgenes.com/2008/11/upgrade-fedora-without-burning-the-dvdcds/#comments</comments>
		<pubDate>Sun, 30 Nov 2008 17:27:27 +0000</pubDate>
		<dc:creator>Rakesh</dc:creator>
				<category><![CDATA[Cool]]></category>
		<category><![CDATA[Experiences]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Rocking]]></category>
		<category><![CDATA[Truth]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Fedora]]></category>

		<guid isPermaLink="false">http://www.twistedgenes.com/?p=130</guid>
		<description><![CDATA[An upgrade of Fedora Core version normally requires burning the new version&#8217;s image in a DVD or CDs.  An alternate approach to the same is upgrading by copying the same to a hard drive or a pen drive. The approach mentioned below worked very well from me for an upgrade of FC9 to FC10.
Download the [...]]]></description>
			<content:encoded><![CDATA[<p>An upgrade of <a href="http://fedoraproject.org" target="_blank">Fedora Core</a> version normally requires burning the new version&#8217;s image in a DVD or CDs.  An alternate approach to the same is upgrading by copying the same to a hard drive or a pen drive. The approach mentioned below worked very well from me for an upgrade of FC9 to FC10.</p>
<p>Download the new version&#8217;s (say FC 10)  iso(DVD) image and save it to a disk drive partition. I used a pen drive for the same. It works very well for filesystems viz. FAT32,ext2 and not NTFS. Copy the image file to any directory say for example /mnt/FedoraCoreDVD.iso( Assuming, that pen drive is mounted at /mnt) . Mount the iso image in a directory(any) to extract the isolinux folder.</p>
<p><span style="#ff0000;"><span style="#ff0000;">#mount -o loop /mnt/FedoraCoreDVD.iso /home/user/Fedora/</span></span></p>
<p>Copy the isolinux folder and paste it inside the boot folder.</p>
<p><span style="#ff0000;">#cp -r /home/user/Fedora/isolinux /boot</span></p>
<p>Now we need to make an entry in the <a href="http://www.gnu.org/software/grub" target="_blank">grub file</a> to boot the copied isolinux folder&#8217;s install.img</p>
<p><span style="#ff0000;"># cat /etc/grub.conf</span></p>
<p>______________________________</p>
<p><span style="#ff0000;">title Fedora Upgrade<br />
root (hd0,8) </span>&#8212;&#8212;&#8212;&#8211;&gt; should be your  partition containing the current linux installation (0-&gt;First Hard Drive,8-&gt; Partition number on this drive )<br />
<span style="#ff0000;">kernel /isolinux/vmlinuz<br />
initrd /isolinux/initrd.img</span><br />
______________________________</p>
<p>Copy the isolinux folder also to the pen drive(/dev/sdb, mounted at /mnt in this case) and reboot the system. Select the &#8221; Fedora Upgrade&#8221; option in grub and the normal installation/upgrade demon anaconda will start. It will ask for the option of disk partition and folder containing the iso image and iso linux folder, which is /dev/sdb1 in this case. Select the same and the upgradation works like a charm.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twistedgenes.com/2008/11/upgrade-fedora-without-burning-the-dvdcds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SELinux, Apache and Postgres SQL Connectivity</title>
		<link>http://www.twistedgenes.com/2008/09/selinux-apache-and-postgres-sql-connectivity/</link>
		<comments>http://www.twistedgenes.com/2008/09/selinux-apache-and-postgres-sql-connectivity/#comments</comments>
		<pubDate>Thu, 25 Sep 2008 23:31:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Experiences]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Rocking]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://rak19.wordpress.com/2008/09/25/selinux-apache-and-postgres-sql-connectivity/</guid>
		<description><![CDATA[Recently, I decided to migrate the work from Apache windows to the Apache running on my Vmware fedora machine. Everything was supposed to work like a charm. Unfortunately, it did not. The perl  in the cgi-bin directory was throwing internal server error 500. The apache error log indicated &#8216;permission denied to create a socket&#8217;, [...]]]></description>
			<content:encoded><![CDATA[<div style="text-align:justify;font-family:verdana;">Recently, I decided to migrate the work from Apache windows to the Apache running on my Vmware fedora machine. Everything was supposed to work like a charm. Unfortunately, it did not. The perl  in the cgi-bin directory was throwing internal server error 500. The apache error log indicated &#8216;permission denied to create a socket&#8217;, &#8216;premature end of the script headers&#8217;. The stuff was supposed to be retrieved from postgres sql database by the perl thingy. It appeared to me that database server is not allowing my IP address to establish a connection, as recomended by pgadmin as well. After a successful entry of my IP in the conf file of postgres database server, problem still persisted. I tried almost everything, changing the file owner to apache, suexec in apache and hell lots of other possibilities. Then in the trial process I noticed a small pop up in the corner of the window, SELinux denial. SELinux is an enhanced feature in Linux, that can put restrictions on your applications in apache making database connection, nmap, access to network filesystem and lots and lots more. After giving apache persmission to make database connections, the error was resolved and application ran smoothly.</div>
]]></content:encoded>
			<wfw:commentRss>http://www.twistedgenes.com/2008/09/selinux-apache-and-postgres-sql-connectivity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQUID Proxy Server Authenticated Mode</title>
		<link>http://www.twistedgenes.com/2008/09/squid-proxy-server-authenticated-mode/</link>
		<comments>http://www.twistedgenes.com/2008/09/squid-proxy-server-authenticated-mode/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 00:45:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cool]]></category>
		<category><![CDATA[Crazy]]></category>
		<category><![CDATA[Experiences]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Rocking]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://rak19.wordpress.com/2008/09/21/squid-proxy-server-authenticated-mode/</guid>
		<description><![CDATA[We run a squid proxy server at our two system network at home   in unauthenticated mode. I was just going through the squid logs at /var/logs/squid/access.log, and I saw few miscreant IPs eating up my network bandwith by using our proxy server. Then, I decided to tune up the authentication mode for squid proxy [...]]]></description>
			<content:encoded><![CDATA[<div align="justify"><span>We run a squid proxy server at our two system network at home <img src='http://www.twistedgenes.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  in unauthenticated mode. I was just going through the squid logs at /var/logs/squid/access.log, and I saw few miscreant IPs eating up my network bandwith by using our proxy server. Then, I decided to tune up the authentication mode for squid proxy server. Squid doesn&#8217;t have its authentication module and we need to us LDAP,PAM or NCSA. I came accross NCSA based authentication at http://www.cyberciti.biz/tips/linux-unix-squid-proxy-server-authentication.html. Given below. It worked very well in our case. </p>
<p><strong>Configure an NCSA-style username and password authenticatio</strong>n</p>
<p>I am going to assume that squid is installed and working fine.</p>
<p>Tip: Before going further, test basic Squid functionality. Make sure squid is functioning without requiring authorization <img src='http://www.twistedgenes.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <br />Step # 1: Create a username/password</p>
<p>First create a NCSA password file using htpasswd command. htpasswd is used to create and update the flat-files used to store usernames and password for basic authentication of squid users.<br /># htpasswd /etc/squid/passwd user1<br />Output:</p>
<p>New password:<br />Re-type new password:<br />Adding password for user user1</p>
<p>Make sure squid can read passwd file:<br /># chmod o+r /etc/squid/passwd<br />Step # 2: Locate nsca_auth authentication helper</p>
<p>Usually nsca_auth is located at /usr/lib/squid/ncsa_auth. You can find out location using rpm (Redhat,CentOS,Fedora) or dpkg (Debian and Ubuntu) command:<br /># dpkg -L squid | grep ncsa_auth<br />Output:</p>
<p>/usr/lib/squid/ncsa_auth</p>
<p>If you are using RHEL/CentOS/Fedora Core or RPM based distro try:<br /># rpm -ql squid | grep ncsa_auth<br />Output:</p>
<p>/usr/lib/squid/ncsa_auth</p>
<p>Step # 3: Configure nsca_auth for squid proxy authentication</p>
<p>Now open /etc/squid/squid.conf file<br /># vi /etc/squid/squid.conf<br />Append (or modify) following configration directive:<br />auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/passwd<br />auth_param basic children 5<br />auth_param basic realm Squid proxy-caching web server<br />auth_param basic credentialsttl 2 hours<br />auth_param basic casesensitive off</p>
<p>Also find out your ACL section and append/modify<br />acl ncsa_users proxy_auth REQUIRED<br />http_access allow ncsa_users<br />Make sure that you do not have any other http_access statement.  <br />Save and close the file.</p>
<p>Where,</p>
<p>  * auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/passwd : Specify squid password file and helper program location<br />  * auth_param basic children 5 : The number of authenticator processes to spawn.<br />  * auth_param basic realm Squid proxy-caching web server : Part of the text the user will see when prompted their username and password<br />  * auth_param basic credentialsttl 2 hours : Specifies how long squid assumes an externally validated username:password pair is valid for &#8211; in other words how often the helper program is called for that user with password prompt. It is set to 2 hours.<br />  * auth_param basic casesensitive off : Specifies if usernames are case sensitive. It can be on or off only<br />  * acl ncsa_users proxy_auth REQUIRED : The REQURIED term means that any authenticated user will match the ACL named ncsa_users<br />  * http_access allow ncsa_users : Allow proxy access only if user is successfully authenticated.</p>
<p>Restart squid:<br /># /etc/init.d/squid restart</span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.twistedgenes.com/2008/09/squid-proxy-server-authenticated-mode/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Vaccum kills us, space kills javascript</title>
		<link>http://www.twistedgenes.com/2008/09/vaccum-kills-us-space-kills-javascript/</link>
		<comments>http://www.twistedgenes.com/2008/09/vaccum-kills-us-space-kills-javascript/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 09:40:00 +0000</pubDate>
		<dc:creator>Rakesh</dc:creator>
				<category><![CDATA[Cool]]></category>
		<category><![CDATA[Experiences]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Rocking]]></category>
		<category><![CDATA[Truth]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://rak19.wordpress.com/2008/09/16/vaccum-kills-us-space-kills-javascript/</guid>
		<description><![CDATA[I was exporting certain attributes viz roadname, ids, ways etc which were of alphanumeric type by appending them with a &#8216;+&#8217; charachter from my server side perl program to the javascript program at the client. The firebug popped up, unterminated string literal, lets see whats that &#8230;. Googling did not turned out to be of [...]]]></description>
			<content:encoded><![CDATA[<div style="text-align:justify;"><span class="Apple-style-span" style="font-family:'trebuchet ms';">I was exporting certain attributes viz roadname, ids, ways etc which were of alphanumeric type by appending them with a &#8216;+&#8217; charachter from my server side perl program to the javascript program at the client. The firebug popped up, </span><span class="Apple-style-span" style="color:rgb(255,0,0);"><span class="Apple-style-span" style="font-family:'trebuchet ms';">unterminated string literal</span></span><span class="Apple-style-span" style="font-family:'trebuchet ms';">, lets see whats that &#8230;. Googling did not turned out to be of much help. I tried making the string short, taking into an array etc. Sometimes it worked, sometimes it did not. Amazed, I came to a stupid conclusion on the size of the arguments that need to be passed. Perhaps, that was not the cause.On of my appended field was having a space, and string thereafter was considered as a different argument by javascript. Due to mismatch in the number of arguments for that js function, it was breaking. Such a silly mistake !!! <img src='http://www.twistedgenes.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</span></div>
<div style="text-align:justify;"><span class="Apple-style-span" style="font-size:medium;"><span class="Apple-style-span" style="font-family:'trebuchet ms';">Hence,</span></span><span class="Apple-style-span" style="font-size:medium;"><span class="Apple-style-span" style="font-family:'trebuchet ms';"> </span></span><span class="Apple-style-span" style="white-space:pre;"><span class="Apple-style-span" style="font-size:medium;"><span class="Apple-style-span" style="font-family:'trebuchet ms';">Vaccum kills us, space kills javascript or rather any function in any damn<br />language.</span></span><span class="Apple-style-span" style="font-size:medium;"><span class="Apple-style-span" style="font-family:'trebuchet ms';"> </span></span></span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.twistedgenes.com/2008/09/vaccum-kills-us-space-kills-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firebug, turned out to be a real bug</title>
		<link>http://www.twistedgenes.com/2008/09/firebug-turned-out-to-be-a-real-bug/</link>
		<comments>http://www.twistedgenes.com/2008/09/firebug-turned-out-to-be-a-real-bug/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 18:42:00 +0000</pubDate>
		<dc:creator>Rakesh</dc:creator>
				<category><![CDATA[Crazy]]></category>
		<category><![CDATA[Experiences]]></category>
		<category><![CDATA[Rocking]]></category>
		<category><![CDATA[Truth]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://rak19.wordpress.com/2008/09/09/firebug-turned-out-to-be-a-real-bug/</guid>
		<description><![CDATA[Firebug, an  addon for  the popular web browser firefox became a pain in the a** once at work. It helps you to monitor HTTP request &#8211; response, Web Design layout etc.  We were trying to make certain  changes  in our javascript file and review the changes.  Clear the private [...]]]></description>
			<content:encoded><![CDATA[<div style="font-family:&quot;text-align:justify;">Firebug, an  addon for  the popular web browser firefox became a pain in the a** once at work. It helps you to monitor HTTP request &#8211; response, Web Design layout etc.  We were trying to make certain  changes  in our javascript file and review the changes.  Clear the private data ( Ctrl-Shift-Delete), restart the browser,  we tried almost everything . Later on after breaking head for sometime, we found out that firebug maintains its own cache of all the images, js and other component files being loaded that needs to be cleared in the console and the net tabs. <br />
So folks, if you use firebug with firefox , better be watchful else keep scratching your head. <img src='http://www.twistedgenes.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </div>
]]></content:encoded>
			<wfw:commentRss>http://www.twistedgenes.com/2008/09/firebug-turned-out-to-be-a-real-bug/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>My first job, excitement turned otherwise !</title>
		<link>http://www.twistedgenes.com/2008/08/my-first-job-excitement-turned-otherwise/</link>
		<comments>http://www.twistedgenes.com/2008/08/my-first-job-excitement-turned-otherwise/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 16:39:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Crazy]]></category>
		<category><![CDATA[Event]]></category>
		<category><![CDATA[Experiences]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Hilarious]]></category>
		<category><![CDATA[Nostalgic]]></category>
		<category><![CDATA[Obsession]]></category>
		<category><![CDATA[Rocking]]></category>
		<category><![CDATA[Sarcasm]]></category>
		<category><![CDATA[Sensitive]]></category>
		<category><![CDATA[Truth]]></category>
		<category><![CDATA[all]]></category>

		<guid isPermaLink="false">http://rak19.wordpress.com/2008/08/20/my-first-job-excitement-turned-otherwise/</guid>
		<description><![CDATA[17th June 2006 : 
No. 72. Rakesh Gupta
No. 73. &#8230;.. and so on.
Hurray ! I was floating on cloud nine . I had made in to the company . The on campus drive at my college hyped as arduous process had been a cake walk for me. The faculty member read loud the list of [...]]]></description>
			<content:encoded><![CDATA[<div style="text-align:justify;font-family:verdana;"><span style="font-weight:bold;color:#009900;font-size:100%;">17th June 2006 </span><span style="color:#009900;font-size:100%;">: </span><span style="font-size:100%;"><br />
No. 72. Rakesh Gupta<br />
No. 73. &#8230;.. and so on.<br />
Hurray ! I was floating on cloud nine . I had made in to the company . The on campus drive at my college hyped as arduous process had been a cake walk for me. The faculty member read loud the list of the students who had made in. Celebrations were inevitable .</p>
<p></span><span style="font-weight:bold;color:#cc0000;font-size:100%;">24th September 2006</span><span style="color:#cc0000;font-size:100%;"> :</span><span style="font-size:100%;"><br />
Hey, did you collect the offer letter ? No, have they come? Cool. Having an offer letter in your hands of a big shot MNC, with a year more still left to complete your engineering degree, sounds fantastic. I had made my mind, I will join it. Become a fundoo coder shoder !! All things seemed to be so perfect. My future path was decided. But, I failed to realise that heavenly signal. As they say in literature, when you desire something, universe conspires to let you have the best. But, I was blinded by the charm and glamor and was not able to see that I had something better to achieve.</p>
<p></span><span style="font-weight:bold;color:#3333ff;font-size:100%;">10th May 2007 &#8211; 25th June 2007</span><span style="font-size:100%;"><span style="color:#3333ff;">:</span><br />
Desperate wait for the receiving the joining letter at the company. As the history says, it should be something in the middle of June. Perhaps, this was one of the firsts of heavenly signal which I failed to realise. The signal that I am destined for something better and I should seek or continue with some other opportunity.</p>
<p></span><span style="font-weight:bold;font-size:100%;">1st July 2007: </span><span style="font-size:100%;"><br />
For the first time on the college&#8217;s history, a database giant had arrived interviewing our batch. The coll was over and everyone was relaxing at home. But the offering and name of the database giant tempted everyone to rush back to the campus from even their remotest abodes and try their knowledge and luck. The selection process was strenuous and I was pleased to make into top 18 out of the 500 people appeared. But unfortunately, they needed only 12 folks. Hence, had a narrow setback. I was disappointed, but this was another heavenly indicator that destiny has something else in store for me and I should realize my potential.</p>
<p></span><span style="font-weight:bold;color:#993300;font-size:100%;">10th July 2007</span><span style="font-size:100%;"><span style="color:#993300;">:</span><br />
The joining date of the company came(23rd July). As expected, it was in their huge training campus. I had mixed feelings. But, I had made my mind and was careless to hunt for any other opportunities.</p>
<p></span><span style="font-weight:bold;color:#33cc00;font-size:100%;">17th July 2007:</span><span style="font-size:100%;"><br />
The company had altered the joining date and location to 6th August, to a place where I had never been too. Perhaps, this was the biggest heavenly indicator. Again, I could not sense it. What could I do ? I was not seeing things beyond joining this company, which eventually turned out to be a big mistake of my life. I have been avid passionate about Java and Open Source technologies since my college days. With an expectation of getting similar kind of work/training, I joined the company at the new location</p>
<p></span><span style="font-weight:bold;color:#993399;font-size:100%;">6th August 2007</span><span style="font-size:100%;"><span style="color:#993399;">:</span><br />
Lush green campus and huge glassy buildings, good enough to dupe anyone. I was joyous. The training process started and things went on smoothly. Till one fine day, we had the catastrophic event &#8230;. MAINFRAMES, yes your batch has been identified for the mainframes stream. Happy hunting folks, Its gonna be a wonderful time. Man, I was shattered, I never desired to study those outdated legacy systems. The company was not willing to cater to your personal interests.</p>
<p></span><span style="font-weight:bold;color:#993300;font-size:100%;">10th October 2007</span><span style="font-size:100%;"><span style="color:#993300;">:</span><br />
I started pumping my resume like anything. I wanted to get out and do anything but not mainframes. Ill-fated, nothing much happened. Only ray of hope was to complete training and expect to get a different technology project. Chances are meager, but you never now.</p>
<p></span><span style="font-weight:bold;color:#cc9933;font-size:100%;">1st Feb 2008</span><span style="font-size:100%;"><span style="color:#cc9933;">:</span><br />
After successful completion of training, off to production. Seems, a whole new world is going to start. Fortunately, I managed to sneak into a non mainframe project after persuading one of the managers at the company. New energy and enthusiasm started to reverberate again in me.</p>
<p></span><span style="font-weight:bold;color:#999999;font-size:100%;">10th April 2008</span><span style="font-size:100%;"><span style="color:#999999;">:</span><br />
All that glitters is not gold. I could perfectly understand that. This one was the biggest and best heavenly indicators, you need to work hard, you are destined for something else. Now I started feeling it hard. The project, they call it support and maintenance barely requires you to be smart, logically and technically sound. There was nothing much crucial I was playing. It started striking me that I am losing, losing rapidly; everything, my knowledge, my analytical and logical skills. What would my future be ? A dumb box. Oh no ! I won&#8217;t let that happen. Job hunt began with more fierce efforts. I needed to move out. No kidding this time. It&#8217;s a high priority to give justice to my career life.</p>
<p></span><span style="font-weight:bold;color:#999900;font-size:100%;">15th July 2008:</span><span style="font-size:100%;"><br />
Filed the resignation, a sense of relief or moksha.</p>
<p></span><span style="font-weight:bold;font-size:100%;">20th August 2008:</span><span style="font-size:100%;"><br />
I walkout like a free bird. With lesser apprehensions about my next venture.</p>
<p></span></div>
<div style="text-align:justify;font-family:verdana;"><span style="font-weight:bold;color:#330099;font-size:100%;">Summary :</span><span style="color:#330099;font-size:100%;"> Always listen to your heart and understand those heavenly signals, because if you have an intent desire and willingness for something, then universe will definitely conspire and let you get the best.</span><span style="font-size:100%;"> </span><span style="color:#330099;font-size:100%;">And in DJ (</span><span style="font-size:100%;"><a href="http://posters.imdb.com/title/tt0405508/">Rang De Basanti</a></span><span style="color:#330099;font-size:100%;">) style, I would say </span><span style="font-style:italic;color:#330099;font-size:100%;">Zindagi jeene ke do hi tarike hote hain, ek kisi Indian IT company join kar lo, aur jeete raho, appraisal ki cycle chalne do, doosra, jimmedaari uthao ise badalne ki aur startup join karo <img src='http://www.twistedgenes.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </span><span style="font-size:100%;"><br />
</span></div>
<div style="text-align:justify;font-family:verdana;"><span style="font-size:100%;"></p>
<p></span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.twistedgenes.com/2008/08/my-first-job-excitement-turned-otherwise/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Draw a Circle in Java, the fundamental &#8220;pixels&#8221; way !</title>
		<link>http://www.twistedgenes.com/2008/06/draw-a-circle-in-java-the-fundamental-pixels-way/</link>
		<comments>http://www.twistedgenes.com/2008/06/draw-a-circle-in-java-the-fundamental-pixels-way/#comments</comments>
		<pubDate>Sun, 22 Jun 2008 00:16:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cool]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Rocking]]></category>
		<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://rak19.wordpress.com/2008/06/21/draw-a-circle-in-java-the-fundamental-pixels-way/</guid>
		<description><![CDATA[The following code draws a circle of particular diameter by setting the PIXELS falling inside the circle to a different RGB value. It involves simple co-ordinate geometry fundas. There are some approximations being taken.


import java.awt.image.*;import javax.swing.*;import javax.swing.JComponent.*;
public class circles extends JFrame {public static void main(String args[])     {double d=Double.parseDouble(args[0]);   int [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://bp2.blogger.com/_1pCudCDCfOY/SF1U-D7XTjI/AAAAAAAABBk/Lv_jtx_3Z8U/s1600-h/Screenshot-1.png"><img style="float:left;cursor:pointer;margin:0 10px 10px 0;" src="http://bp2.blogger.com/_1pCudCDCfOY/SF1U-D7XTjI/AAAAAAAABBk/Lv_jtx_3Z8U/s320/Screenshot-1.png" alt="" border="0" /></a><span style="font-family:courier new;">The following code draws a circle of particular diameter by setting the PIXELS falling inside the circle to a different RGB value. It involves simple co-ordinate geometry fundas. There are some approximations being taken.</span></p>
<p><span style="font-family:verdana;"><br />
</span></p>
<p><span style="color:rgb(0,0,0);font-family:trebuchet ms;"><span style="font-family:courier new;">import java.awt.image.*;</span><br /><span style="font-family:courier new;">import javax.swing.*;</span><br /><span style="font-family:courier new;">import javax.swing.JComponent.*;</span></p>
<p></span><span style="color:rgb(0,0,0);font-family:trebuchet ms;"><span style="font-family:courier new;">public class circles extends JFrame {</span><br /><span style="font-family:courier new;">public static void main(String args[])     {</span><br /><span style="font-family:courier new;">double d=Double.parseDouble(args[0]);   <br />int diameter= (int)d;</span><br /><span style="font-family:courier new;">circles ca= new circles();      </span><br /><span style="font-family:courier new;">ca.drawCircle(diameter);</span><br /><span style="font-family:courier new;">}</span><br /><span style="font-family:courier new;">public void drawCircle(int diameter) {</span><br /><span style="font-family:courier new;">    int x=0,y=0,radius;  </span><br /><span style="font-family:courier new;">    JFrame frame=new JFrame();</span><br /><span style="font-family:courier new;">JLabel lab;</span><br /><span style="font-family:courier new;">    BufferedImage bi=new BufferedImage (diameter,diameter,BufferedImage.TYPE_BYTE_GRAY );</span><br /><span style="font-family:courier new;">    WritableRaster raster=bi.getRaster();</span><br /><span style="font-family:courier new;">    double [] iPix=new double [diameter*diameter]; <br />if(diameter%2 == 1) {<br />        diameter-=1;<br />        }   <br /></span><span style="font-family:courier new;">    radius=diameter/2;</span><br /><span style="font-family:courier new;">    for(int i=0;i</span></span><span style="color:rgb(0,0,0);font-family:courier new;">(radius)){<br /></span><span style="color:rgb(0,0,0);font-family:courier new;">                y=y%(radius);<br /></span><span style="color:rgb(0,0,0);font-family:courier new;">            }<br /></span><span style="color:rgb(0,0,0);font-family:courier new;">else<br />{<br /></span><span style="color:rgb(0,0,0);font-family:courier new;">y-=radius;</span><br /><span style="color:rgb(0,0,0);font-family:courier new;">                y=-y;</span><br /><span style="color:rgb(0,0,0);font-family:courier new;">                     } </span><br /><span style="color:rgb(0,0,0);font-family:courier new;">            if((x*x+y*y)&lt;=((radius)*(radius)))    {                 iPix[i]=255;             }             else  {             iPix[i]=0;             }  }</span><span style="color:rgb(0,0,0);font-family:courier new;"><br />raster.setPixels(0,0,diameter,diameter,iPix);     lab=new JLabel(new ImageIcon(bi));                frame.add(lab);</span><br /><span style="color:rgb(0,0,0);font-family:courier new;"> frame.setVisible(true);        frame.setSize(600,600);<br /></span><span style="color:rgb(0,0,0);font-family:courier new;">}         </span><br /><span style="color:rgb(0,0,0);font-family:courier new;">}</span><br /><span style="font-family:courier new;"></p>
<p></span><span style="color:rgb(51,0,153);font-family:courier new;">compile the program as javac circles.java</p>
<p></span><span style="color:rgb(51,0,153);font-family:courier new;">run as java circles diameter_value</p>
<p></span><span style="color:rgb(51,0,153);font-family:courier new;">e.g. java circles 500</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.twistedgenes.com/2008/06/draw-a-circle-in-java-the-fundamental-pixels-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-4811008-2");
pageTracker._setDomainName(".twistedgenes.com");
pageTracker._trackPageview();
} catch(err) {}</script>