<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Open Chinstrap</title>
	<atom:link href="http://openchinstrap.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://openchinstrap.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Thu, 04 Aug 2011 04:47:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='openchinstrap.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Open Chinstrap</title>
		<link>http://openchinstrap.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://openchinstrap.wordpress.com/osd.xml" title="Open Chinstrap" />
	<atom:link rel='hub' href='http://openchinstrap.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Setting up Anjuta on Ubuntu</title>
		<link>http://openchinstrap.wordpress.com/2008/05/03/setting-up-anjuta-on-ubuntu/</link>
		<comments>http://openchinstrap.wordpress.com/2008/05/03/setting-up-anjuta-on-ubuntu/#comments</comments>
		<pubDate>Sun, 04 May 2008 03:22:06 +0000</pubDate>
		<dc:creator>t-roy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://openchinstrap.wordpress.com/?p=38</guid>
		<description><![CDATA[A couple of weeks ago I tried a new IDE called Anjuta. I usually use Eclipse which is a great IDE but I wanted a lightweight IDE for writing Perl scripts and learning how to use C++. Using Anjuta for writing perl scripts was straightforward but getting it to work for C++ development was more [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=openchinstrap.wordpress.com&amp;blog=2567344&amp;post=38&amp;subd=openchinstrap&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A couple of weeks ago I tried a new IDE called Anjuta. I usually use Eclipse which is a great IDE but I wanted a lightweight IDE for writing Perl scripts and learning how to use C++. Using Anjuta for writing perl scripts was straightforward but getting it to work for C++ development was more involved.</p>
<p>First of all you need to add in the following plugins that come with Anjuta. Select Settings&gt;Plugins . Now select the following plugins:</p>
<ul>
<li>Terminal</li>
<li>Tools (External Programs)</li>
</ul>
<p>You will probably have to install g++ compiler. The first time I tried to compile a C++ I discovered that it was not installed on my copy of (Gutsy) Ubuntu. To set up the g++ compiler you need to install the <a title="Ubuntu Forums - build-essential package" href="http://ubuntuforums.org/showthread.php?t=615335" target="_blank">build-essential package</a>. Use the following command to this:</p>
<p>$ sudo aptitude install build-essential</p>
<p>I tried using the Synaptic Package Manager and then apt-get to install the build-essential package but the install failed due to some dependency issues. The aptitude program handled the dependency issue. Next I used the Tools plugin to execute an external command to compile my c++ programs. Select Tools&gt;Configure from the menu:</p>
<p><a href="http://openchinstrap.files.wordpress.com/2008/05/user-tools.png"><img class="alignleft size-medium wp-image-39" src="http://openchinstrap.files.wordpress.com/2008/05/user-tools.png?w=300&#038;h=233" alt="Add User Tool" width="300" height="233" /></a></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p>Click Add:</p>
<p><a href="http://openchinstrap.files.wordpress.com/2008/05/tool-editor.png"><img class="alignleft size-medium wp-image-40" src="http://openchinstrap.files.wordpress.com/2008/05/tool-editor.png?w=300&#038;h=111" alt="C++ Compiler Tool" width="300" height="111" /></a></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p>In the above example I create an external tool that calls g++ to compile the current source file that I am working on in Anjuta. It saves the executable as the filename without any extension. In the configuration I also setup a Shortcut key for the tool (Ctrl + 1). Setting up my own external tools was more effective than using the Automake build plugin that comes with Anjuta. You can call a simple program or develop you own scripts for more complicated processes.</p>
<p>Troy</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/openchinstrap.wordpress.com/38/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/openchinstrap.wordpress.com/38/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/openchinstrap.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/openchinstrap.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/openchinstrap.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/openchinstrap.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/openchinstrap.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/openchinstrap.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/openchinstrap.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/openchinstrap.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/openchinstrap.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/openchinstrap.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/openchinstrap.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/openchinstrap.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/openchinstrap.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/openchinstrap.wordpress.com/38/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=openchinstrap.wordpress.com&amp;blog=2567344&amp;post=38&amp;subd=openchinstrap&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://openchinstrap.wordpress.com/2008/05/03/setting-up-anjuta-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8ae1377475399a67f3fa0b772a2c26b0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">t-roy</media:title>
		</media:content>

		<media:content url="http://openchinstrap.files.wordpress.com/2008/05/user-tools.png?w=300" medium="image">
			<media:title type="html">Add User Tool</media:title>
		</media:content>

		<media:content url="http://openchinstrap.files.wordpress.com/2008/05/tool-editor.png?w=300" medium="image">
			<media:title type="html">C++ Compiler Tool</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing Google App Engine SDK on Linux</title>
		<link>http://openchinstrap.wordpress.com/2008/04/12/installing-google-app-engine-sdk-on-linux/</link>
		<comments>http://openchinstrap.wordpress.com/2008/04/12/installing-google-app-engine-sdk-on-linux/#comments</comments>
		<pubDate>Sat, 12 Apr 2008 17:24:50 +0000</pubDate>
		<dc:creator>t-roy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://openchinstrap.wordpress.com/?p=36</guid>
		<description><![CDATA[You will need to have python 2.5 installed on your system but most distros of Linux already have python installed (just verify what version it is) . First download the the SDK from here. Save the zip file to your home directory in my case I saved it to: /home/scottt Now you can unzip the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=openchinstrap.wordpress.com&amp;blog=2567344&amp;post=36&amp;subd=openchinstrap&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You will need to have python 2.5 installed on your system but most distros of Linux already have python installed (just verify what version it is) .  First download the the SDK from <a title="Google App Engine SDK" href="http://code.google.com/appengine/downloads.html" target="_blank">here.</a> Save the zip file to your home directory in my case I saved it to:</p>
<p>/home/scottt</p>
<p>Now you can unzip the file in the home directroy:</p>
<p>$ unzip google_appengine.zip</p>
<p>Go to the google_appengine directory:</p>
<p>$ cd google_appengine</p>
<p>To test out the installation you can start the dev server and run the simple guestbook application that comes with the SDK:</p>
<p>$ ./dev_appserver.py demos/guestbook</p>
<p>By default the app server uses port 8080.  You can access the guestbook application from your browser at:</p>
<p>http://localhost:8080</p>
<p>If you are using a linux server with multiple developers you may need to specify a different port in order to run your application:</p>
<p>$ ./dev_appserver.py -p 8090 demos/guestbook</p>
<p>This time the application will run on port 8090.  I you want to install google_appengine on Windows check out this <a title="Google App Engine Install - Windows" href="http://troyscott.wordpress.com/2008/04/12/installing-google-app-engine-sdk-on-windows/" target="_blank">post</a> on my other <a title="Troy Scott's Web Log" href="http://troyscott.wordpress.com/" target="_blank">blog</a> .</p>
<p>Troy</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/openchinstrap.wordpress.com/36/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/openchinstrap.wordpress.com/36/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/openchinstrap.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/openchinstrap.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/openchinstrap.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/openchinstrap.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/openchinstrap.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/openchinstrap.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/openchinstrap.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/openchinstrap.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/openchinstrap.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/openchinstrap.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/openchinstrap.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/openchinstrap.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/openchinstrap.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/openchinstrap.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=openchinstrap.wordpress.com&amp;blog=2567344&amp;post=36&amp;subd=openchinstrap&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://openchinstrap.wordpress.com/2008/04/12/installing-google-app-engine-sdk-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8ae1377475399a67f3fa0b772a2c26b0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">t-roy</media:title>
		</media:content>
	</item>
		<item>
		<title>Error Installing Perl Tk  on Ubunutu</title>
		<link>http://openchinstrap.wordpress.com/2008/04/11/error-installing-perl-tk-form-cpan/</link>
		<comments>http://openchinstrap.wordpress.com/2008/04/11/error-installing-perl-tk-form-cpan/#comments</comments>
		<pubDate>Sat, 12 Apr 2008 06:26:12 +0000</pubDate>
		<dc:creator>t-roy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://openchinstrap.wordpress.com/?p=33</guid>
		<description><![CDATA[I received the following error installing Tk from CPAN: CPAN reported &#8220;Problem gettimeofday()&#8221; which seems to indicate that I was missing some include files. I found the following post which recommended installing the libx11-dev packages which could include the required development header files: http://www.perlmonks.org/index.pl?node_id=673577 I used the Synaptic Package manager to install libx11-dev. I then [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=openchinstrap.wordpress.com&amp;blog=2567344&amp;post=33&amp;subd=openchinstrap&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I received the following error installing <a title="Tk Module" href="http://search.cpan.org/~srezic/Tk-804.028/pod/overview.pod" target="_blank">Tk</a> from CPAN:</p>
<p><a href="http://openchinstrap.files.wordpress.com/2008/04/problem-installing-tk.png"><img class="alignnone size-thumbnail wp-image-34" src="http://openchinstrap.files.wordpress.com/2008/04/problem-installing-tk.png?w=128&#038;h=89" alt="" width="128" height="89" /></a></p>
<p>CPAN reported &#8220;Problem gettimeofday()&#8221; which seems to indicate that I was missing some include files. I found the following post which recommended installing the libx11-dev packages which could include the required development header files:</p>
<p><a title="Problem Installing Tk" href="http://www.perlmonks.org/index.pl?node_id=673577" target="_blank">http://www.perlmonks.org/index.pl?node_id=673577</a></p>
<p>I used the Synaptic Package manager to install libx11-dev. I then tried installing Tk again using CPAN:</p>
<p>$ sudo cpan -i Tk</p>
<p>The install progressed much further than it did the first time but it still ended up failing with the following error:</p>
<p>make[1]: *** [ClientWin.o] Error 1k &#8230;</p>
<p>I discovered a Ubuntu post related to this error that recommended installing TK using apt-get:</p>
<p>$ sudo apt-get -install TK</p>
<p>But when I went to install the package from the command line there was no package called TK. Finally I did a search for Tk using the Synaptic Package manager. I found a package called perk-tk and installed it.</p>
<p><a href="http://openchinstrap.files.wordpress.com/2008/04/perl-tk.png"><img class="alignleft size-thumbnail wp-image-35" src="http://openchinstrap.files.wordpress.com/2008/04/perl-tk.png?w=128&#038;h=102" alt="" width="128" height="102" /></a></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p>Run the following &#8220;Hello World&#8221; test program from this <a title="Tk User Guide" href="http://search.cpan.org/~srezic/Tk-804.028/pod/UserGuide.pod" target="_blank">TK User Guide</a>:</p>
<p><span style="color:#0000ff;">#!/usr/bin/perl -w </span></p>
<p><span style="color:#0000ff;">use Tk;</span></p>
<p><span style="color:#0000ff;">use strict;</span></p>
<p><span style="color:#0000ff;">my $mw = MainWindow-&gt;new;<br />
$mw-&gt;Label(-text =&gt; &#8216;Hello, world!&#8217;)-&gt;pack;<br />
$mw-&gt;Button(<br />
-text =&gt; &#8216;Quit&#8217;,<br />
-command =&gt; sub { exit },<br />
)-&gt;pack;<br />
MainLoop;</span></p>
<p>Troy</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/openchinstrap.wordpress.com/33/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/openchinstrap.wordpress.com/33/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/openchinstrap.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/openchinstrap.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/openchinstrap.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/openchinstrap.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/openchinstrap.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/openchinstrap.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/openchinstrap.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/openchinstrap.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/openchinstrap.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/openchinstrap.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/openchinstrap.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/openchinstrap.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/openchinstrap.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/openchinstrap.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=openchinstrap.wordpress.com&amp;blog=2567344&amp;post=33&amp;subd=openchinstrap&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://openchinstrap.wordpress.com/2008/04/11/error-installing-perl-tk-form-cpan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8ae1377475399a67f3fa0b772a2c26b0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">t-roy</media:title>
		</media:content>

		<media:content url="http://openchinstrap.files.wordpress.com/2008/04/problem-installing-tk.png?w=128" medium="image" />

		<media:content url="http://openchinstrap.files.wordpress.com/2008/04/perl-tk.png?w=128" medium="image" />
	</item>
		<item>
		<title>How to Reset Video Settings using dpkg-reconfigure</title>
		<link>http://openchinstrap.wordpress.com/2008/04/10/how-to-reset-video-settings-using-dbkg-reconfigure/</link>
		<comments>http://openchinstrap.wordpress.com/2008/04/10/how-to-reset-video-settings-using-dbkg-reconfigure/#comments</comments>
		<pubDate>Fri, 11 Apr 2008 06:23:44 +0000</pubDate>
		<dc:creator>t-roy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://openchinstrap.wordpress.com/?p=32</guid>
		<description><![CDATA[Below is a link to a great HowTo article from the ubuntuforms: http://ubuntuforums.org/showthread.php?t=83973&#38;highlight=resolution The other day I was try to use two monitors on my Dell Latitude D600 with a KVM switch. Athough the mouse and keyboard worked fine it changed my video settings of my laptop (primary monitor) and the secondary monitor didn&#8217;t work [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=openchinstrap.wordpress.com&amp;blog=2567344&amp;post=32&amp;subd=openchinstrap&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Below is a link to a great HowTo article  from the <a title="Ubuntu forums" href="http://ubuntuforums.org/" target="_blank">ubuntuforms:<br />
</a></p>
<p><a title="Resolution/Refresh" href="http://ubuntuforums.org/showthread.php?t=83973&amp;highlight=resolution" target="_blank">http://ubuntuforums.org/showthread.php?t=83973&amp;highlight=resolution</a></p>
<p>The other day I was try to use two monitors on my Dell Latitude D600 with a KVM switch.   Athough the mouse and keyboard worked fine it changed my video settings of my laptop (primary monitor) and the secondary monitor didn&#8217;t work at all.   However the real problem began when I tried to change the resolution back to its original configuration (1440 x 900)  using the Screen and Graphics Application (System&gt;Administration&gt;Screen and Graphics).  I could only get a resolution of 1280 x 1024.</p>
<p>I just walked through the following steps in the HowTo (see the <a title="HowTo change resolution/refresh rate Xorg" href="http://ubuntuforums.org/showthread.php?t=83973&amp;highlight=resolution" target="_blank">HowTo</a> for details):</p>
<ol>
<li>Backup the configuration file (xorg.conf)</li>
<li>Stop the Xorg service for auto detection to work properly</li>
<li>Perform the X Configuration using dbkg-reconfigure</li>
<li>Start Xorg again</li>
</ol>
<p>Troy</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/openchinstrap.wordpress.com/32/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/openchinstrap.wordpress.com/32/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/openchinstrap.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/openchinstrap.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/openchinstrap.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/openchinstrap.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/openchinstrap.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/openchinstrap.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/openchinstrap.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/openchinstrap.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/openchinstrap.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/openchinstrap.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/openchinstrap.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/openchinstrap.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/openchinstrap.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/openchinstrap.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=openchinstrap.wordpress.com&amp;blog=2567344&amp;post=32&amp;subd=openchinstrap&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://openchinstrap.wordpress.com/2008/04/10/how-to-reset-video-settings-using-dbkg-reconfigure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8ae1377475399a67f3fa0b772a2c26b0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">t-roy</media:title>
		</media:content>
	</item>
		<item>
		<title>Configuring Eclipse EPIC on Ubuntu</title>
		<link>http://openchinstrap.wordpress.com/2008/04/07/configuring-eclipse-epic-on-ubuntu/</link>
		<comments>http://openchinstrap.wordpress.com/2008/04/07/configuring-eclipse-epic-on-ubuntu/#comments</comments>
		<pubDate>Tue, 08 Apr 2008 02:14:25 +0000</pubDate>
		<dc:creator>t-roy</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://openchinstrap.wordpress.com/?p=25</guid>
		<description><![CDATA[E-P-I-C is a good Perl plugin for Eclipse (Version: 3.3.2 Build id: M20080221-1800) . You can use EPIC to develop perl scripts and Perl CGI (Common Gateway Interface) scripts. To install the plugin you can use the update site located here: http://e-p-i-c.sf.net/updates Creating a Perl project is very straight forward: File&#62;New&#62;Perl Project       [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=openchinstrap.wordpress.com&amp;blog=2567344&amp;post=25&amp;subd=openchinstrap&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a title="Eclipse EPIC" href="http://e-p-i-c.sourceforge.net/" target="_blank">E-P-I-C</a> is a good Perl plugin for Eclipse (Version: 3.3.2 Build id: M20080221-1800) . You can use EPIC to develop perl scripts and Perl CGI (<a title="Common Gateway Interface" href="http://www.oreilly.com/openbook/cgi/" target="_blank">Common Gateway Interface</a>) scripts. To install the plugin you can use the update site located here:</p>
<p><a title="EPIC Update Site" href="http://e-p-i-c.sf.net/updates" target="_blank">http://e-p-i-c.sf.net/updates</a></p>
<p>Creating a Perl project is very straight forward: File&gt;New&gt;Perl Project</p>
<p><a href="http://openchinstrap.files.wordpress.com/2008/04/eclipse-new-perl-project.png"><img class="alignleft size-thumbnail wp-image-26" src="http://openchinstrap.files.wordpress.com/2008/04/eclipse-new-perl-project.png?w=128&#038;h=94" alt="New Perl Project" width="128" height="94" /></a></p>
<p> </p>
<p> </p>
<p> </p>
<p>I will focus on configuring a CGI script since the regular Perl scripts are fairly straight forward . First we need to create our script by right-clicking on the project folder and selecting New&gt;Perl File:</p>
<p><a href="http://openchinstrap.files.wordpress.com/2008/04/new-perl-filecgi-eclipse-sdk.png"><img class="alignleft size-thumbnail wp-image-28" src="http://openchinstrap.files.wordpress.com/2008/04/new-perl-filecgi-eclipse-sdk.png?w=128&#038;h=94" alt="New Perl File" width="128" height="94" /></a></p>
<p> </p>
<p> </p>
<p> </p>
<p>Name the file test.cgi and copy and paste the following simple CGI script:</p>
<p><span style="color:#0000ff;">#! /usr/bin/perl</span></p>
<p><span style="color:#0000ff;">print &#8220;Content-type: text/plain \n\n&#8221;;<br />
print &#8220;Hello World!\n&#8221;;<br />
print &#8220;Script Name: $ENV{SCRIPT_NAME}&#8221;;</span></p>
<p>Save the file (CTRL-s) and now we are ready to set up the Perl CGI Configuration. But before we do that it is important to record the full path of the Perl Eclipse project and remember the name of the script you want to run. Eclipse usually creates a workspace directory in your home directory unless you specify otherwise. In my case my workspace is located in:</p>
<p>/home/scottt/workspace</p>
<p>Therefore my Perl project is located in:</p>
<p>/home/scottt/workspace/perlwebscripts/</p>
<p>And the path to my CGI script is:</p>
<p>/home/scottt/workspace/perlwebscripts/test.cgi</p>
<p>Now that we have this information we can configure our CGI script. Right-click on the project folder or any file in the project and select Run As&gt;Open Run Dialog&#8230;. :</p>
<p><a href="http://openchinstrap.files.wordpress.com/2008/04/perl-cgi-configuration.png"><img class="alignleft size-thumbnail wp-image-30" src="http://openchinstrap.files.wordpress.com/2008/04/perl-cgi-configuration.png?w=128&#038;h=102" alt="Perl CGI Configuration" width="128" height="102" /></a></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p>In the Main tab you need to select the project folder name in my case it would be perlwebscripts. The Web Server tab (shown above) contains the following information:</p>
<ul>
<li><strong>HTML Root Directory</strong>: /home/scottt/workspace/perlwebscripts</li>
<li><strong>HTML Startup File</strong>: /home/scottt/workspace/perlwebscripts/test.cgi</li>
<li><strong>CGI Root Directory</strong>: /home/scottt/workspace/perlwebscripts</li>
</ul>
<p>All paths are related to your Eclipse CGI project. The final thing to configure is the browser tab which is where the result of the CGI Script is displayed. I used the Firefox adapter. I was not able to get the Internal Perl Browser to work. The Firefox browser works fine but it is a bit of a pain to Alt-Tab between Eclipse and Firefox while you are developing. Hit apply once the configuration is finished and then you can click Run As. Here is a screenshot of the test.cgi script :</p>
<p><a href="http://openchinstrap.files.wordpress.com/2008/04/cgi-test-script.png"><img class="alignleft size-thumbnail wp-image-31" src="http://openchinstrap.files.wordpress.com/2008/04/cgi-test-script.png?w=128&#038;h=91" alt="CGI Test Script" width="128" height="91" /></a></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p>EPIC also provides a good user guide which you can download from <a title="EPIC User Guide" href="http://e-p-i-c.sourceforge.net/downloads/EPIC_User%27s_Guide.pdf" target="_blank">here.</a></p>
<p>Troy</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/openchinstrap.wordpress.com/25/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/openchinstrap.wordpress.com/25/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/openchinstrap.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/openchinstrap.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/openchinstrap.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/openchinstrap.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/openchinstrap.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/openchinstrap.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/openchinstrap.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/openchinstrap.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/openchinstrap.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/openchinstrap.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/openchinstrap.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/openchinstrap.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/openchinstrap.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/openchinstrap.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=openchinstrap.wordpress.com&amp;blog=2567344&amp;post=25&amp;subd=openchinstrap&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://openchinstrap.wordpress.com/2008/04/07/configuring-eclipse-epic-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8ae1377475399a67f3fa0b772a2c26b0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">t-roy</media:title>
		</media:content>

		<media:content url="http://openchinstrap.files.wordpress.com/2008/04/eclipse-new-perl-project.png?w=128" medium="image">
			<media:title type="html">New Perl Project</media:title>
		</media:content>

		<media:content url="http://openchinstrap.files.wordpress.com/2008/04/new-perl-filecgi-eclipse-sdk.png?w=128" medium="image">
			<media:title type="html">New Perl File</media:title>
		</media:content>

		<media:content url="http://openchinstrap.files.wordpress.com/2008/04/perl-cgi-configuration.png?w=128" medium="image">
			<media:title type="html">Perl CGI Configuration</media:title>
		</media:content>

		<media:content url="http://openchinstrap.files.wordpress.com/2008/04/cgi-test-script.png?w=128" medium="image">
			<media:title type="html">CGI Test Script</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing Eclipse IDE on Ubuntu</title>
		<link>http://openchinstrap.wordpress.com/2008/04/05/installing-eclipse-ide-on-ubuntu/</link>
		<comments>http://openchinstrap.wordpress.com/2008/04/05/installing-eclipse-ide-on-ubuntu/#comments</comments>
		<pubDate>Sun, 06 Apr 2008 04:39:22 +0000</pubDate>
		<dc:creator>t-roy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://openchinstrap.wordpress.com/?p=24</guid>
		<description><![CDATA[98% of the time when you try to install something on Ubuntu it works very well either by using the Add/Remove Application (has a similar look and feel to the Windows Add/Remove control) or the Synaptic Package Manager.  But when I tried to install the Ubuntu version of Eclipse it didn&#8217;t go to well. However, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=openchinstrap.wordpress.com&amp;blog=2567344&amp;post=24&amp;subd=openchinstrap&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>98% of the time when you try to install something on Ubuntu it works very well either by using the Add/Remove Application (has a similar look and feel to the Windows Add/Remove control) or the Synaptic Package Manager.  But when I tried to install the Ubuntu version of Eclipse it didn&#8217;t go to well.</p>
<p>However, the Ubuntu documentation provides a good walk through on how to install Eclipse:</p>
<p><a title="Install Eclipse on Unbuntu" href="https://help.ubuntu.com/community/EclipseIDE" target="_blank">https://help.ubuntu.com/community/EclipseIDE</a></p>
<p>I ended up installing Eclipse  manually be referring to section 5 of the documentation (User Installation).</p>
<p>Troy</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/openchinstrap.wordpress.com/24/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/openchinstrap.wordpress.com/24/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/openchinstrap.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/openchinstrap.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/openchinstrap.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/openchinstrap.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/openchinstrap.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/openchinstrap.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/openchinstrap.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/openchinstrap.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/openchinstrap.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/openchinstrap.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/openchinstrap.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/openchinstrap.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/openchinstrap.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/openchinstrap.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=openchinstrap.wordpress.com&amp;blog=2567344&amp;post=24&amp;subd=openchinstrap&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://openchinstrap.wordpress.com/2008/04/05/installing-eclipse-ide-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8ae1377475399a67f3fa0b772a2c26b0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">t-roy</media:title>
		</media:content>
	</item>
		<item>
		<title>Using the split function with a Scalar Variable</title>
		<link>http://openchinstrap.wordpress.com/2008/04/03/using-the-split-function-with-a-scalar-variable/</link>
		<comments>http://openchinstrap.wordpress.com/2008/04/03/using-the-split-function-with-a-scalar-variable/#comments</comments>
		<pubDate>Fri, 04 Apr 2008 06:27:15 +0000</pubDate>
		<dc:creator>t-roy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://openchinstrap.wordpress.com/?p=22</guid>
		<description><![CDATA[The split function is very useful for parsing or &#8220;splitting&#8221; a string into a list of strings based on a regular expression (delimiter). For example you could have a string like this: &#8220;apple, orange, pear&#8221; To parse this list with the split function you would do this: print split /,/ , &#8220;apple, orange, pear&#8221;; This [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=openchinstrap.wordpress.com&amp;blog=2567344&amp;post=22&amp;subd=openchinstrap&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://perldoc.perl.org/functions/split.html" title="Perldoc - split function" target="_blank">split</a> function is very useful for parsing or &#8220;splitting&#8221; a string into a list of strings based on a regular expression (delimiter).  For example you could have a string like this:</p>
<p>&#8220;apple, orange, pear&#8221;</p>
<p>To parse this list with the split function you would do this:</p>
<p><font color="#0000ff">print split /,/ , &#8220;apple, orange, pear&#8221;;</font></p>
<p>This will print a list with 3 elements.  If you assign the result of the split function to a scalar you will simply get the number of elements or the count of items in the list.  Usually you assign the result of the split function to an array:</p>
<p><font color="#0000ff"> @mylist = split /,/,</font> <font color="#0000ff">&#8220;apple, orange, pear&#8221;;</font></p>
<p>Once you do this you could then assign it to a scalar like this:</p>
<p><font color="#0000ff">$fruit = $mylist[0];</font></p>
<p>This would assign the value of apple to the $fruit scalar.  However, I find that I use the split function to parse one value from a string. For example the url from a web page document:</p>
<p>&lt;a href=&#8221;http://mysite.campfirenow.com/&#8221;&gt;redirected&lt;/a&gt;</p>
<p>In this case I want to parse out the http://mysite.camfirenow.com value using the split function and assign it to a scalar all in one line of code.  To accomplish this you can write the code like this:</p>
<p><font color="#0000ff">$address = (split /&#8221;/,  &#8220;&lt;a href=&#8221;http://mysite.campfirenow.com/&#8221;&gt;redirected&lt;/a&gt;&#8221;)[1];</font></p>
<p>In this example it is important to use the second element of the list.  The first element ([0]) is undefined or empty.  The second element ([1]) contains the url value.</p>
<p>Troy</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/openchinstrap.wordpress.com/22/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/openchinstrap.wordpress.com/22/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/openchinstrap.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/openchinstrap.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/openchinstrap.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/openchinstrap.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/openchinstrap.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/openchinstrap.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/openchinstrap.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/openchinstrap.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/openchinstrap.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/openchinstrap.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/openchinstrap.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/openchinstrap.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/openchinstrap.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/openchinstrap.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=openchinstrap.wordpress.com&amp;blog=2567344&amp;post=22&amp;subd=openchinstrap&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://openchinstrap.wordpress.com/2008/04/03/using-the-split-function-with-a-scalar-variable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8ae1377475399a67f3fa0b772a2c26b0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">t-roy</media:title>
		</media:content>
	</item>
		<item>
		<title>Making a POST with HTTP::Lite</title>
		<link>http://openchinstrap.wordpress.com/2008/04/03/making-a-post-with-httplite/</link>
		<comments>http://openchinstrap.wordpress.com/2008/04/03/making-a-post-with-httplite/#comments</comments>
		<pubDate>Thu, 03 Apr 2008 07:45:51 +0000</pubDate>
		<dc:creator>t-roy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://openchinstrap.wordpress.com/?p=21</guid>
		<description><![CDATA[HTTP::Lite is a Perl module that, and as the name implies, it is a lightweight implementation for HTTP support. I wanted to write a program to automate a GET or POST to a website. For example you may want to have a script that runs and logs onto a site with your username and password [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=openchinstrap.wordpress.com&amp;blog=2567344&amp;post=21&amp;subd=openchinstrap&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://search.cpan.org/~rhooper/HTTP-Lite-2.1.6/Lite.pm" title="http::Light Module" target="_blank">HTTP::Lite</a> is a Perl module that, and as the name implies, it is a lightweight implementation for HTTP support.   I wanted to write a program to automate a GET or POST to a website.  For example you may want to have a script that runs and logs onto a site with your username and password and then grabs some information like stock or weather data.  This data could then be used in a report or loaded into a database.</p>
<p>To try this out you can use any website that allows you to fill out a form.  I used my account at  <a href="http://www.campfirenow.com/" title="Campfirenow" target="_blank">www.campfirenow.com</a> .  Campfirenow is a web service which provides online chat.  You can sign up for a free user account if you want to try it out but any website with a form will work for this example.   Make sure that HTTP::Lite is installed on your system:</p>
<p>perl -MHTTP::Lite -e 1</p>
<p>If this does not return an error then the module is installed otherwise you can view this <a href="http://openchinstrap.wordpress.com/2008/04/03/check-for-existing-cpan-modules/" title="Installing a Module" target="_blank">post</a> if you do not know how to install it . Before we dive into the code here is a quick check list for the program</p>
<ul>
<li> Import the HTTP::Lite module</li>
<li> Create a hash for the input values in the form (its a good idea to use a simple form)</li>
<li> POST the form values to the webpage</li>
<li> Display the response from the web site (Display the web page)</li>
</ul>
<p><font color="#339966"># Import the module</font><br />
<font color="#0000ff">use HTTP::Lite;</font></p>
<p><font color="#339966"># Create a hash for the form<br />
# Input: email_address<br />
# Input: password</font></p>
<p><font color="#0000ff">%login = (<br />
&#8220;email_address&#8221; =&gt; &#8220;myemail\@domain.com&#8221;,<br />
&#8220;password&#8221; =&gt; &#8220;mypassword&#8221;<br />
);<br />
</font></p>
<p><font color="#0000ff">$http = new HTTP::Lite;<br />
</font></p>
<p><font color="#0000ff"><font color="#339966"># Create the POST for the form</font> </font></p>
<p><font color="#0000ff">$http-&gt;prepare_post(\%login);</font></p>
<p><font color="#0000ff">$req = $http-&gt;request(&#8220;http://myaccount.campfirenow.com/login&#8221;)<br />
or die &#8220;Error retrieving URL: $!&#8221;;<br />
print &#8220;req: $req\n&#8221;;<br />
</font></p>
<p><font color="#339966"># Display the web page (response)</font></p>
<p><font color="#0000ff">print $http-&gt;body() , &#8220;\n&#8221;;</font></p>
<p>Unfortunatley the output from this example is not too exciting.  Once the user logs in they are redirected to http://myaccount.campfirenow.com. So the HTML that is displayed is for the redirect.   Secondly in order to make additional request to the web site a session_id cookie must be passed for all future requests.  In my next post I will discuss how to get and set a cookie from the header using the HTTP::Lite module.</p>
<p>This process is more involved.  First I will have to login to the site and then retrieve the session cookie from the response header.  When I make another request I will have to set the cookie in the request header or the request will fail (it results in a redirect or a 302 STATUS) .  This will allow me to extract data from other web pages on the campfirenow web site.</p>
<p>Troy</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/openchinstrap.wordpress.com/21/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/openchinstrap.wordpress.com/21/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/openchinstrap.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/openchinstrap.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/openchinstrap.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/openchinstrap.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/openchinstrap.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/openchinstrap.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/openchinstrap.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/openchinstrap.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/openchinstrap.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/openchinstrap.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/openchinstrap.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/openchinstrap.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/openchinstrap.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/openchinstrap.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=openchinstrap.wordpress.com&amp;blog=2567344&amp;post=21&amp;subd=openchinstrap&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://openchinstrap.wordpress.com/2008/04/03/making-a-post-with-httplite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8ae1377475399a67f3fa0b772a2c26b0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">t-roy</media:title>
		</media:content>
	</item>
		<item>
		<title>Check for Existing CPAN Modules</title>
		<link>http://openchinstrap.wordpress.com/2008/04/03/check-for-existing-cpan-modules/</link>
		<comments>http://openchinstrap.wordpress.com/2008/04/03/check-for-existing-cpan-modules/#comments</comments>
		<pubDate>Thu, 03 Apr 2008 01:48:59 +0000</pubDate>
		<dc:creator>t-roy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://openchinstrap.wordpress.com/?p=14</guid>
		<description><![CDATA[Before installing a CPAN Module it is important to check your system to see if it already exists. In my case I wanted to install the Syntax::Highlight::HTML module . First I run the following command to see if it exists on my system: $ perl -MSyntax::Highlight::HTML -e 1 If I do not receive an error [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=openchinstrap.wordpress.com&amp;blog=2567344&amp;post=14&amp;subd=openchinstrap&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Before installing a <a href="http://search.cpan.org/" title="CPAN">CPAN </a>Module it is important to check your system to see if it already exists.  In my case I wanted to install the Syntax::Highlight::HTML module .  First I run the following command to see if it exists on my system:</p>
<p>$ perl -MSyntax::Highlight::HTML -e 1</p>
<p>If I do not receive an error then the module is already installed.  If I receive an error that looks something like this:</p>
<p>Can&#8217;t locate  Syntax/Highlight/HTML.pm in @INC   &#8230;.</p>
<p>This could mean that the module is not installed or the module is not in the @INC path.</p>
<p><a href="http://openchinstrap.files.wordpress.com/2008/04/cpan11.png" title="Direct link to file"><img src="http://openchinstrap.files.wordpress.com/2008/04/cpan11.thumbnail.png?w=171&#038;h=119" alt="Check for Existing CPAN Modules" height="119" width="171" /></a></p>
<p>To install the module type:</p>
<p>$ sudo cpan -i Syntax::Highlight::HTML</p>
<p><a href="http://openchinstrap.files.wordpress.com/2008/04/cpan3.png" title="Direct link to file"><img src="http://openchinstrap.files.wordpress.com/2008/04/cpan3.thumbnail.png?w=171&#038;h=119" alt="Install Module with Using cpan" height="119" width="171" /></a></p>
<p>Now the module is installed and ready to use.  For more information about installing perl modules type:</p>
<p>$ perldoc perlmodinstall</p>
<p>or try this website</p>
<p><a href="http://theoryx5.uwinnipeg.ca/CPAN/perl/pod/perlmodinstall.html" title="perlmodinstall" target="_blank"> http://theoryx5.uwinnipeg.ca/CPAN/perl/pod/perlmodinstall.html</a></p>
<p>Troy</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/openchinstrap.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/openchinstrap.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/openchinstrap.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/openchinstrap.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/openchinstrap.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/openchinstrap.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/openchinstrap.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/openchinstrap.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/openchinstrap.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/openchinstrap.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/openchinstrap.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/openchinstrap.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/openchinstrap.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/openchinstrap.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/openchinstrap.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/openchinstrap.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=openchinstrap.wordpress.com&amp;blog=2567344&amp;post=14&amp;subd=openchinstrap&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://openchinstrap.wordpress.com/2008/04/03/check-for-existing-cpan-modules/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8ae1377475399a67f3fa0b772a2c26b0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">t-roy</media:title>
		</media:content>

		<media:content url="http://openchinstrap.files.wordpress.com/2008/04/cpan11.thumbnail.png" medium="image">
			<media:title type="html">Check for Existing CPAN Modules</media:title>
		</media:content>

		<media:content url="http://openchinstrap.files.wordpress.com/2008/04/cpan3.thumbnail.png" medium="image">
			<media:title type="html">Install Module with Using cpan</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing perldoc on Ubuntu from the Command Line</title>
		<link>http://openchinstrap.wordpress.com/2008/03/26/installing-perldoc-on-ubuntu-from-the-command-line/</link>
		<comments>http://openchinstrap.wordpress.com/2008/03/26/installing-perldoc-on-ubuntu-from-the-command-line/#comments</comments>
		<pubDate>Wed, 26 Mar 2008 22:29:54 +0000</pubDate>
		<dc:creator>t-roy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://openchinstrap.wordpress.com/?p=12</guid>
		<description><![CDATA[perldoc is not installed in Unbuntu 7.10 or at least it is not completely installed.  When I typed: $ perldoc I recieved the following message: You need to install the perl-doc package to run this program. However, when I type whereis perldoc the system does return the path of the perldoc program.  To install the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=openchinstrap.wordpress.com&amp;blog=2567344&amp;post=12&amp;subd=openchinstrap&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>perldoc is not installed in Unbuntu 7.10 or at least it is not completely installed.  When I typed:</p>
<p>$ perldoc</p>
<p>I recieved the following message:</p>
<p>You need to install the perl-doc package to run this program.</p>
<p>However, when I type whereis perldoc the system does return the path of the perldoc program.  To install the perldoc package from the command line type:</p>
<p>$ sudo apt-get install perl-doc</p>
<p><a href="http://openchinstrap.files.wordpress.com/2008/03/perldocinstall.png" title="Direct link to file"><img src="http://openchinstrap.files.wordpress.com/2008/03/perldocinstall.thumbnail.png?w=141&#038;h=128" alt="perldoc install" height="128" width="141" /></a></p>
<p>Now perldoc should work.</p>
<p>Troy</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/openchinstrap.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/openchinstrap.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/openchinstrap.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/openchinstrap.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/openchinstrap.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/openchinstrap.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/openchinstrap.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/openchinstrap.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/openchinstrap.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/openchinstrap.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/openchinstrap.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/openchinstrap.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/openchinstrap.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/openchinstrap.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/openchinstrap.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/openchinstrap.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=openchinstrap.wordpress.com&amp;blog=2567344&amp;post=12&amp;subd=openchinstrap&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://openchinstrap.wordpress.com/2008/03/26/installing-perldoc-on-ubuntu-from-the-command-line/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8ae1377475399a67f3fa0b772a2c26b0?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">t-roy</media:title>
		</media:content>

		<media:content url="http://openchinstrap.files.wordpress.com/2008/03/perldocinstall.thumbnail.png" medium="image">
			<media:title type="html">perldoc install</media:title>
		</media:content>
	</item>
	</channel>
</rss>
