<?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>John Roach &#187; john roach</title>
	<atom:link href="http://johnroach.info/tag/john-roach/feed/" rel="self" type="application/rss+xml" />
	<link>http://johnroach.info</link>
	<description>Coding for life</description>
	<lastBuildDate>Wed, 25 Apr 2012 07:48:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Blinking lights MSP430 FG461x</title>
		<link>http://johnroach.info/2011/05/14/blinking-lights-msp430-fg461x/</link>
		<comments>http://johnroach.info/2011/05/14/blinking-lights-msp430-fg461x/#comments</comments>
		<pubDate>Sat, 14 May 2011 15:16:23 +0000</pubDate>
		<dc:creator>John Roach</dc:creator>
				<category><![CDATA[Coding for fun]]></category>
		<category><![CDATA[embedded device]]></category>
		<category><![CDATA[homework]]></category>
		<category><![CDATA[john roach]]></category>
		<category><![CDATA[lab]]></category>
		<category><![CDATA[msp430]]></category>
		<category><![CDATA[texas instruments]]></category>

		<guid isPermaLink="false">http://johnroach.info/?p=576</guid>
		<description><![CDATA[I have been working on MSP430 for sometime now. It is an TI (Texas Instruments ) chip. Very fun to play with. We are using a MSP430FG461x series experimental board. This little experimental board has all the bells and whistles &#8230; <a href="http://johnroach.info/2011/05/14/blinking-lights-msp430-fg461x/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="zemanta-img" style="margin: 1em; display: block;">
<div class="wp-caption alignright" style="width: 310px"><a href="http://commons.wikipedia.org/wiki/File:MSP430-experimenter_boards.jpg"><img title="Photo of two experimenter boards for the MSP43..." src="http://upload.wikimedia.org/wikipedia/commons/thumb/7/71/MSP430-experimenter_boards.jpg/300px-MSP430-experimenter_boards.jpg" alt="Photo of two experimenter boards for the MSP43..." width="300" height="377" /></a><p class="wp-caption-text">Image via Wikipedia</p></div>
</div>
<p>I have been working on <a class="zem_slink" title="TI MSP430" rel="wikipedia" href="http://en.wikipedia.org/wiki/TI_MSP430">MSP430</a> for sometime now. It is an TI (<a class="zem_slink" title="Texas Instruments" rel="geolocation" href="http://maps.google.com/maps?ll=32.909256,-96.751054&amp;spn=0.01,0.01&amp;q=32.909256,-96.751054 (Texas%20Instruments)&amp;t=h">Texas Instruments</a> ) chip. Very fun to play with. We are using a MSP430FG461x series experimental board. This little experimental board has all the bells and whistles one may need to create any application from a <a class="zem_slink" title="Home automation" rel="wikipedia" href="http://en.wikipedia.org/wiki/Home_automation">home automation</a> controller to a simple step-motor driver. TI provides very good documentation for this grown up toy.</p>
<p>Our first lab homework for this baby was :</p>
<blockquote><p>By using the MSP430 FG4618 Microcontroller, write a program that controls the LED #1, #2,#4.When we perpetually push the two buttons at the right bottom corner of the board, all ofthe LEDs turn on.When we push perpetually one of the buttons, only the LED #4 blinks, the others turn off.When we push no buttons, the LED #1 and #2 blinks complementarily and the LED#4 turnsoff.</p></blockquote>
<p>My biggest problem with this exercise was to find what led was connected to what port. However in the end I figured it all out.</p>
<p>Below you will find the program :</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<pre name="code" class="c++">#include &lt;msp430xG46x.h&gt;

void initPortPins(void);

void main(void)
{
	 WDTCTL=WDTPW + WDTHOLD;
	 initPortPins();
	 while(1) {
	 	if (P1IN == (0x00))
	 	{
			P2OUT |= 0x06;
			P5OUT |= 0x02;
		}
		else if (P1IN == 0x03)
		{
			P2OUT &amp;= 0x00;
			P5OUT &amp;= 0x00;
			P2OUT |= 0x02;
			__delay_cycles (40000);
			P2OUT &amp;= 0x00;
			P2OUT |= 0x04;
			__delay_cycles (40000);
		}
		else
		{
			P2OUT &amp;= 0x00;
			P5OUT &amp;= 0x00;
			__delay_cycles (40000);
			P5OUT |= 0x02;
			__delay_cycles (40000);
		}
	 }
};

void initPortPins(void)
{
  P1DIR = 0x00;	// Set P2.2,1 as outputs
  P5DIR = 0x02; // Set P5.1 as output
  P2DIR = 0x06; // Set P2.1 to 1
};</pre>
]]></content:encoded>
			<wfw:commentRss>http://johnroach.info/2011/05/14/blinking-lights-msp430-fg461x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>From the beginning please</title>
		<link>http://johnroach.info/2010/10/11/from-the-beginning-please/</link>
		<comments>http://johnroach.info/2010/10/11/from-the-beginning-please/#comments</comments>
		<pubDate>Mon, 11 Oct 2010 15:24:10 +0000</pubDate>
		<dc:creator>John Roach</dc:creator>
				<category><![CDATA[just fun]]></category>
		<category><![CDATA[grandpa]]></category>
		<category><![CDATA[IBM]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[john roach]]></category>
		<category><![CDATA[Jython]]></category>
		<category><![CDATA[languages]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[renko]]></category>

		<guid isPermaLink="false">http://johnroach.info/?p=382</guid>
		<description><![CDATA[Hi there. Summer over and so is my work with the company RENKO ITH.  IHR. LTD. STI.. Worked for peanuts doing lots. Proud of it. Paid my school tuition with the peanuts. I think this makes my school a three &#8230; <a href="http://johnroach.info/2010/10/11/from-the-beginning-please/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Hi there. Summer over and so is my work with the company RENKO ITH.  IHR. LTD. STI.. Worked for peanuts doing lots. Proud of it. Paid my school tuition with the peanuts. I think this makes my school a <a class="zem_slink" title="Circus" rel="wikipedia" href="http://en.wikipedia.org/wiki/Circus">three ring circus</a> <img src='http://johnroach.info/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> .</p>
<p>Work was good and honest in RENKO. I wore three hats at all times ;</p>
<p><span id="more-382"></span></p>
<p style="padding-left: 60px;"><strong>Hat#1. </strong>Software Engineer/Programmer : Basically I wrote one main program and couple of dozen other programs. The main program used the following languages; <a class="zem_slink" title="Python (programming language)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Python_%28programming_language%29">Python</a>, <a class="zem_slink" title="PHP" rel="wikipedia" href="http://en.wikipedia.org/wiki/PHP">PHP</a>, C, <a class="zem_slink" title="JavaScript" rel="wikipedia" href="http://en.wikipedia.org/wiki/JavaScript">JavaScript</a>. The small scripts I wrote used <a class="zem_slink" title="Jython" rel="wikipedia" href="http://en.wikipedia.org/wiki/Jython">Jython</a>. And as for what these programs did; <a class="zem_slink" title="Picasa" rel="homepage" href="http://picasa.google.com/">Picassa</a> and/or <a class="zem_slink" title="Flickr" rel="homepage" href="http://flickr.com">Flickr</a> like internet site. Processed image.</p>
<p style="padding-left: 60px;"><strong>Hat#2. </strong><a class="zem_slink" title="Network engineer" rel="wikipedia" href="http://en.wikipedia.org/wiki/Network_engineer">Network Engineer</a> : As you may have read from <a href="http://johnroach.info/2010/06/being-the-master-of-a-ibm-x3200/" target="_blank">the previous post</a> I set up an <a class="zem_slink" title="IBM" rel="wikipedia" href="http://en.wikipedia.org/wiki/IBM">IBM</a> server and changed the whole <a class="zem_slink" title="Network topology" rel="wikipedia" href="http://en.wikipedia.org/wiki/Network_topology">network topology</a>. (Argh! moment here) Lots of manual labor. However now the company has a faster and secured network. My biggest problem was parts. Network parts are really expensive. And trying to do it cheap is really hard.</p>
<p style="padding-left: 60px;"><strong>Hat#3. </strong>Floor manager in a photo shop : Yeah you heard it here, John Roach worked as a mean guy trying to sell wedding photos to young couples. This hat I must admit I didn&#8217;t really like. Not because it was hard or it was all about selling. But because the person before me was just so&#8230; how can I put it politically correct&#8230; basically he was messy. Can&#8217;t tell everything on the internet can we?</p>
<p>Just because I worked hard doesn&#8217;t mean I didn&#8217;t have fun. I had lots of it. And learned a lot! The one thing I am proud to say I have learned is Jython! What a quick fix language! And the other thing is Image processing. A hands out to <a class="zem_slink" title="OpenCV" rel="wikipedia" href="http://en.wikipedia.org/wiki/OpenCV">Open-CV</a> and Python Image Library (PIL).</p>
<p>And talking of a good summer. My grandpa came all the way from a far land called USA. This his first visit to Turkey! So we are very happy to have him. We are trying to con him in to staying here in Turkey.  Me and my brother already has plans to hide his tickets and shoes. Don&#8217;t know if it will work or not. Mom will probably catch up to us. Meh&#8230; My love met my grandfather. They seemed to like each other which is also good <img src='http://johnroach.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Below you will see images from my work place and my love with grandpa. Enjoy!</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="600" height="400" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="flashvars" value="host=picasaweb.google.com&amp;hl=en_GB&amp;feat=flashalbum&amp;RGB=0x000000&amp;feed=http%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2Fjohnroach1985%2Falbumid%2F5526800870689483185%3Falt%3Drss%26kind%3Dphoto%26hl%3Den_GB" /><param name="src" value="http://picasaweb.google.com/s/c/bin/slideshow.swf" /><embed type="application/x-shockwave-flash" width="600" height="400" src="http://picasaweb.google.com/s/c/bin/slideshow.swf" flashvars="host=picasaweb.google.com&amp;hl=en_GB&amp;feat=flashalbum&amp;RGB=0x000000&amp;feed=http%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2Fjohnroach1985%2Falbumid%2F5526800870689483185%3Falt%3Drss%26kind%3Dphoto%26hl%3Den_GB"></embed></object></p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Enhanced by Zemanta" href="http://www.zemanta.com/"><img class="zemanta-pixie-img" style="border: none; float: right;" src="http://img.zemanta.com/zemified_e.png?x-id=c4453c81-b8a4-4d0d-836d-fc96365ac4aa" alt="Enhanced by Zemanta" /></a><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://johnroach.info/2010/10/11/from-the-beginning-please/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A pretty picture</title>
		<link>http://johnroach.info/2010/05/13/a-pretty-picture/</link>
		<comments>http://johnroach.info/2010/05/13/a-pretty-picture/#comments</comments>
		<pubDate>Thu, 13 May 2010 19:27:05 +0000</pubDate>
		<dc:creator>John Roach</dc:creator>
				<category><![CDATA[just fun]]></category>
		<category><![CDATA[flower]]></category>
		<category><![CDATA[john roach]]></category>
		<category><![CDATA[picture]]></category>

		<guid isPermaLink="false">http://johnroach.info/?p=275</guid>
		<description><![CDATA[Hi. Got to take a photo that I actually am proud of. I hope you like it. If you are viewing this in a link in a other than my own site you may not able to see the bigger &#8230; <a href="http://johnroach.info/2010/05/13/a-pretty-picture/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Hi. Got to take a photo that I actually am proud of. I hope you like it.</p>
<p style="text-align: center;"><a rel="lightbox[2010-4-4-22-24-11]" href="http://lh5.ggpht.com/_ays0jYAPwio/S-xQwnd6VXI/AAAAAAAAAy0/scthzM92tF8/IMG_0257.JPG?imgmax=800"><img class="pie-img" style="margin: 10px 10px 10px 10px;" src="http://lh5.ggpht.com/_ays0jYAPwio/S-xQwnd6VXI/AAAAAAAAAy0/scthzM92tF8/IMG_0257.JPG?imgmax=160" alt="IMG_0257.JPG" width="160" height="120" /></a></p>
<p style="text-align: left;"><a rel="lightbox[2010-4-4-22-23-23]" href="http://lh5.ggpht.com/_ays0jYAPwio/S-xQwnd6VXI/AAAAAAAAAy0/scthzM92tF8/IMG_0257.JPG?imgmax=800"><img class="pie-img" style="margin: 10px 10px 10px 10px;" src="http://lh5.ggpht.com/_ays0jYAPwio/S-xQwnd6VXI/AAAAAAAAAy0/scthzM92tF8/IMG_0257.JPG?imgmax=null" alt="IMG_0257.JPG" width="0" height="0" /></a>If you are viewing this in a link in a other than my own site you may not able to see the bigger picture. Please view this in my own site. (<a href="http://johnroach.info/2010/05/a-pretty-picture/">http://johnroach.info/2010/05/a-pretty-picture/</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://johnroach.info/2010/05/13/a-pretty-picture/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blogger Is Closing Down FTP service&#8230; So what&#8230; I&#8217;ve got WP</title>
		<link>http://johnroach.info/2010/02/02/blogger-is-closing-down-ftp-service-so-what-ive-got-wp/</link>
		<comments>http://johnroach.info/2010/02/02/blogger-is-closing-down-ftp-service-so-what-ive-got-wp/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 21:01:15 +0000</pubDate>
		<dc:creator>John Roach</dc:creator>
				<category><![CDATA[just fun]]></category>
		<category><![CDATA[tech news]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Blogger]]></category>
		<category><![CDATA[blogger.com]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[HP Labs]]></category>
		<category><![CDATA[john roach]]></category>
		<category><![CDATA[LiveJournal]]></category>
		<category><![CDATA[New media]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Wordpresss]]></category>

		<guid isPermaLink="false">http://johnroach.info/?p=194</guid>
		<description><![CDATA[Image by whiteafrican via Flickr It seems blogger.com is closing down it&#8217;s FTP service. Good thing I already transferred my site to WordPress before hand. My blogging life has been quite the roamer. It seems I like my individuality. My road &#8230; <a href="http://johnroach.info/2010/02/02/blogger-is-closing-down-ftp-service-so-what-ive-got-wp/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="zemanta-img" style="display: block; width: 250px; margin: 1em;">
<div>
<dl class="wp-caption alignleft" style="width: 270px;">
<dt class="wp-caption-dt"><img title="A Brief Timeline of Blogging Engines" src="http://farm3.static.flickr.com/2079/2473388923_91caa28db2_m.jpg" alt="A Brief Timeline of Blogging Engines" width="240" height="187" /></dt>
<dd class="wp-caption-dd zemanta-img-attribution" style="font-size: 0.8em;">Image by <a href="http://www.flickr.com/photos/18288598@N00/2473388923">whiteafrican</a> via Flickr</dd>
</dl>
</div>
</div>
<p>It seems <a class="zem_slink" title="Blogger" rel="homepage" href="http://blogger.com">blogger.com</a> is closing down it&#8217;s <a class="zem_slink" title="File Transfer Protocol" rel="wikipedia" href="http://en.wikipedia.org/wiki/File_Transfer_Protocol">FTP</a> service. Good thing I already transferred my site to <a class="zem_slink" title="WordPress" rel="homepage" href="http://wordpress.org">WordPress</a> before hand.</p>
<p>My blogging life has been quite the roamer. It seems I like my individuality. My road started with <a class="zem_slink" title="LiveJournal" rel="homepage" href="http://www.livejournal.com/">LiveJournal</a>.com. One day I opened my LiveJournal account to find it blocked by the firewall of our school. Some people used to put their nude pictures on their LiveJournal so it was banned.  I got angry at this. Thus I transferred everything to Blogger.com. But guess what! <a class="zem_slink" title="Turkey" rel="wikipedia" href="http://en.wikipedia.org/wiki/Turkey">Turkey</a> blocked Blogger for about four to five months this got me mad. So what I did was make Blogger.com send the info to my FTP host. I even bought a domain for this host. A little coding and voila! My was site was back up and running. However this got me thinking. What if Blogger was totally banned? What would I do than? Hence I started looking for blogging scripts and that is how I met WordPress. I must say I&#8217;m very happy with it. I even integrated <a class="zem_slink" title="Zemanta" rel="homepage" href="http://www.zemanta.com">Zemanta</a> with my browser to bring in even better content. In fact the picture here was found thanks to Zemanta. Anyhow&#8230;</p>
<p>So Blogger is closing down it&#8217;s FTP service. So what. It seems Blogger is thinking the same way. The mail they sent me states :</p>
<blockquote><p>FTP remains a significant drain on our ability to improve Blogger: <strong>only .5% of active blogs are published via FTP </strong>— yet the percentage of our engineering resources devoted to supporting FTP vastly exceeds that.</p></blockquote>
<p>It seems Blogger started cutting out the rotting flesh. The hoards of zombies that try to live on old tech. And this also shows <a class="zem_slink" title="Google" rel="homepage" href="http://google.com">Google</a>&#8216;s business management. If it doesn&#8217;t work, cut it out. Which I believe is one of the best ways to do management. Look at <a class="zem_slink" title="HP Labs" rel="homepage" href="http://www.hpl.hp.com/">HP Labs</a> present condition. Actually look at any big corporation. The only way you can go big is use this kind of thinking. I know&#8230; I know&#8230; It probably meant that the current FTP &#8220;engineering resources&#8221; our out of a job. But still&#8230; The show must go on.</p>
<p>Oh and for the people asking, the snow effect will still be here for a while. It is still snowing in <a class="zem_slink" title="Ankara" rel="geolocation" href="http://maps.google.com/maps?ll=39.8666666667,32.8666666667&amp;spn=0.1,0.1&amp;q=39.8666666667,32.8666666667 (Ankara)&amp;t=h">Ankara, Turkey</a>.</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><img class="zemanta-pixie-img" style="border: none; float: right;" src="http://img.zemanta.com/pixy.gif?x-id=c99e188c-9fcf-45e7-8b29-106108bf4377" alt="" /><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://johnroach.info/2010/02/02/blogger-is-closing-down-ftp-service-so-what-ive-got-wp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up a CVS server for the BlackBox project</title>
		<link>http://johnroach.info/2009/12/13/setting-up-a-cvs-server-for-the-blackbox-project/</link>
		<comments>http://johnroach.info/2009/12/13/setting-up-a-cvs-server-for-the-blackbox-project/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 09:05:28 +0000</pubDate>
		<dc:creator>John Roach</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[ip home automation project]]></category>
		<category><![CDATA[cvs]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[fedora 11]]></category>
		<category><![CDATA[fedora 12]]></category>
		<category><![CDATA[john roach]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://johnroach.info/?p=172</guid>
		<description><![CDATA[Following the previous posts in this category you will notice that I was using Sourceforge.net as the code hosting. We had to change that because we really didn&#8217;t want to share every bit of code. ( A big sorry to &#8230; <a href="http://johnroach.info/2009/12/13/setting-up-a-cvs-server-for-the-blackbox-project/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Following the previous posts in this category you will notice that I was using Sourceforge.net as the code hosting. We had to change that because we really didn&#8217;t want to share every bit of code. ( A big sorry to open source developers. I am truly a sell out. ) So had to set up CVS server. Never done that before. Should probably add it to my CV. Anyways to business.</p>
<p><strong>How to set up a CVS server using SSH :</strong></p>
<p><span id="more-172"></span><strong>Step 1 : </strong>Install CVS to Fedora. My Fedora distro came with CVS since I chose developer properties during installation. However you may not have it to install simply say;</p>
<p><code>sudo yum install cvs</code></p>
<p><strong>Step 2 : </strong>Create a cvs user and group! Just follow the code below;<br />
<code>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 129px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">useradd cvs</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 129px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">groupadd cvs</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 129px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">mkdir /home/cvs</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 129px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">cvs -d /home/cvs init</div>
<p>useradd cvs</p>
<p>groupadd cvs</p>
<p>mkdir /home/cvs<br />
</code><br />
<strong>Step 3 : </strong>Set permissions and add /home/cvs directory to cvs by using the following;</p>
<p><code>cvs -d /home/cvs init</p>
<p>chown -R cvs:cvs /home/cvs</p>
<p>chmod -R 770 /home/cvs</p>
<p>chmod 700   /home/cvs/CVSROOT</code></p>
<p><strong>Step 4 : </strong>Now you have to add your project to the CVS server. I assume you have a ~/project<strong> </strong>directory on the server. Just follow the following commands;</p>
<p><code>cd ~/project</p>
<p>cvs -d /home/cvs import -m "Initial Import" project myname release</p>
<p>cvs -d /home/cvs checkout project</code></p>
<p><strong>Step 5 :</strong> Add an account to the CVS server (preferably with the same username and password of the user acount you have created for the CVS server that will connect through SSH.) Use the following by replacing &lt;username&gt; and &lt;password&gt;</p>
<p><code>echo "&lt;username&gt;:&lt;password&gt;" &gt;&gt; /home/cvs/CVSROOT/passwd</code></p>
<p><strong>Step 6 :</strong> Make sure you have created a user to connect through SSH give him CVS group permission.</p>
<p>And that is that. It should work. Though you may need to do some changes in <strong>Step 3.</strong> To connect you can simply use the following code or just use Eclipse&#8217;s IDE ( that is what we are using. )</p>
<p><code>export CVS_RSH=ssh</p>
<p>cvs -d :ext:username@repository.host.name:/home/cvs login</p>
<p>cvs -d :ext:username@repository.host.name:/home/cvs co moduleName</code></p>
<p>I hope it will be helpful. Peace! </p>
]]></content:encoded>
			<wfw:commentRss>http://johnroach.info/2009/12/13/setting-up-a-cvs-server-for-the-blackbox-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AM and DSB-SC Modulation and Demodulation of a Periodic Square Wave (Matlab)</title>
		<link>http://johnroach.info/2009/11/15/am-and-dsb-sc-modulation-and-demodulation-of-a-periodic-square-wave-matlab/</link>
		<comments>http://johnroach.info/2009/11/15/am-and-dsb-sc-modulation-and-demodulation-of-a-periodic-square-wave-matlab/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 15:49:00 +0000</pubDate>
		<dc:creator>John Roach</dc:creator>
				<category><![CDATA[Coding for fun]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[demodulation]]></category>
		<category><![CDATA[john roach]]></category>
		<category><![CDATA[matlab]]></category>
		<category><![CDATA[modulation]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://johnroach.info/?p=127</guid>
		<description><![CDATA[We once had a homework way back when decided to share it. I edited this script which is in Matlab. I hope you like it. It simply is an analysis of AM and DSB-SC Modulation and Demodulation of a Periodic &#8230; <a href="http://johnroach.info/2009/11/15/am-and-dsb-sc-modulation-and-demodulation-of-a-periodic-square-wave-matlab/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>We once had a homework way back when decided to share it. I edited this script which is in Matlab. I hope you like it. It simply is an analysis of AM and DSB-SC Modulation and Demodulation of a Periodic Square Wave.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
</pre></td><td class="code"><pre class="matlab" style="font-family:monospace;"><span style="color: #228B22;">%Amplitude Modulation with a periodic sqare wave and its spectrum analysis</span>
<span style="color: #228B22;">%Show the time domain and frquency domain representation of DSB-AM and</span>
<span style="color: #228B22;">%DSB-SC modulations</span>
<span style="color: #228B22;">%By : John Roach – 6 March 2009</span>
<span style="color: #228B22;">%visit my site at http://johnroach.info</span>
N = <span style="color: #33f;">1024</span>; <span style="color: #228B22;">%N point FFT N&gt;fc to avoid freq domain aliasing</span>
fs = <span style="color: #33f;">4096</span>; <span style="color: #228B22;">% Sample frequency</span>
t = <span style="color: #080;">&#40;</span><span style="color: #33f;">0</span>:N-<span style="color: #33f;">1</span><span style="color: #080;">&#41;</span>/fs;
fc = <span style="color: #33f;">600</span>; <span style="color: #228B22;">%Carrier Frequency</span>
fm2 = <span style="color: #33f;">80</span>; <span style="color: #228B22;">%Message Frequency</span>
Ec = <span style="color: #33f;">20</span>; <span style="color: #228B22;">%Carrier Amplitude</span>
Em2 = <span style="color: #33f;">5</span>; <span style="color: #228B22;">%Messagae Amplitude</span>
<span style="color: #228B22;">% Try changing the message and carrier amplitudes to see the effect in</span>
<span style="color: #228B22;">% DSB-AM modulation</span>
<span style="color: #228B22;">%———Double SideBand Full Carrier Modulation (DSB-FC(AM))</span>
A = Ec + Em2*square<span style="color: #080;">&#40;</span><span style="color: #33f;">2</span>*<span style="color: #0000FF;">pi</span>*fm2*t<span style="color: #080;">&#41;</span>;<span style="color: #228B22;">%Envelope/eliminate the carrier amplitude</span>
m = A.*<span style="color: #0000FF;">sin</span><span style="color: #080;">&#40;</span><span style="color: #33f;">2</span>*<span style="color: #0000FF;">pi</span>*fc*t<span style="color: #080;">&#41;</span>; <span style="color: #228B22;">%to convert DSB-AM to DSB-SC</span>
Mf = <span style="color: #33f;">2</span>/N*<span style="color: #0000FF;">abs</span><span style="color: #080;">&#40;</span><span style="color: #0000FF;">fft</span><span style="color: #080;">&#40;</span>m,N<span style="color: #080;">&#41;</span><span style="color: #080;">&#41;</span>;
f = fs * <span style="color: #080;">&#40;</span><span style="color: #33f;">0</span> : N/<span style="color: #33f;">2</span><span style="color: #080;">&#41;</span> / N;<span style="color: #228B22;">%Since the fft result is symmetrical, only the</span>
<span style="color: #228B22;">%positive half is sufficient for spectral representation</span>
<span style="color: #0000FF;">close</span> <span style="color: #0000FF;">all</span>;
<span style="color: #0000FF;">figure</span><span style="color: #080;">&#40;</span>’Name’,'Time/Fequency domain representations of DSB-AM signals’<span style="color: #080;">&#41;</span>;
<span style="color: #0000FF;">subplot</span><span style="color: #080;">&#40;</span><span style="color: #33f;">2</span>,<span style="color: #33f;">1</span>,<span style="color: #33f;">1</span><span style="color: #080;">&#41;</span>; <span style="color: #228B22;">%Time domain plot</span>
<span style="color: #0000FF;">plot</span><span style="color: #080;">&#40;</span>t<span style="color: #080;">&#40;</span><span style="color: #33f;">1</span>:N/<span style="color: #33f;">2</span><span style="color: #080;">&#41;</span>,m<span style="color: #080;">&#40;</span><span style="color: #33f;">1</span>:N/<span style="color: #33f;">2</span><span style="color: #080;">&#41;</span>,t<span style="color: #080;">&#40;</span><span style="color: #33f;">1</span>:N/<span style="color: #33f;">2</span><span style="color: #080;">&#41;</span>,A<span style="color: #080;">&#40;</span><span style="color: #33f;">1</span>:N/<span style="color: #33f;">2</span><span style="color: #080;">&#41;</span>,’r',t<span style="color: #080;">&#40;</span><span style="color: #33f;">1</span>:N/<span style="color: #33f;">2</span><span style="color: #080;">&#41;</span>,-A<span style="color: #080;">&#40;</span><span style="color: #33f;">1</span>:N/<span style="color: #33f;">2</span><span style="color: #080;">&#41;</span>,’r'<span style="color: #080;">&#41;</span>;
<span style="color: #0000FF;">title</span><span style="color: #080;">&#40;</span>’Time Domain Representation’<span style="color: #080;">&#41;</span>;
<span style="color: #0000FF;">xlabel</span><span style="color: #080;">&#40;</span>’Time’<span style="color: #080;">&#41;</span>; <span style="color: #0000FF;">ylabel</span><span style="color: #080;">&#40;</span>’Modulated signal’<span style="color: #080;">&#41;</span>;
<span style="color: #0000FF;">subplot</span><span style="color: #080;">&#40;</span><span style="color: #33f;">2</span>,<span style="color: #33f;">1</span>,<span style="color: #33f;">2</span><span style="color: #080;">&#41;</span>; <span style="color: #228B22;">%Frequency Domain Plot</span>
<span style="color: #0000FF;">plot</span><span style="color: #080;">&#40;</span>f<span style="color: #080;">&#40;</span><span style="color: #33f;">1</span>:<span style="color: #33f;">256</span><span style="color: #080;">&#41;</span>,Mf<span style="color: #080;">&#40;</span><span style="color: #33f;">1</span>:<span style="color: #33f;">256</span><span style="color: #080;">&#41;</span><span style="color: #080;">&#41;</span>;
<span style="color: #0000FF;">title</span><span style="color: #080;">&#40;</span>’Frequency Domain Representation’<span style="color: #080;">&#41;</span>;
<span style="color: #0000FF;">xlabel</span><span style="color: #080;">&#40;</span>’Frequency <span style="color: #080;">&#40;</span>Hz<span style="color: #080;">&#41;</span>’<span style="color: #080;">&#41;</span>; <span style="color: #0000FF;">ylabel</span><span style="color: #080;">&#40;</span>’Spectral Magnitude’<span style="color: #080;">&#41;</span>;
<span style="color: #228B22;">%———-Double SideBand Suppressed Carrier DSB-SC———-</span>
A = Em2*square<span style="color: #080;">&#40;</span><span style="color: #33f;">2</span>*<span style="color: #0000FF;">pi</span>*fm2*t<span style="color: #080;">&#41;</span> ; <span style="color: #228B22;">%Envelope/eliminate the carrier amplitude</span>
m = A.*<span style="color: #0000FF;">sin</span><span style="color: #080;">&#40;</span><span style="color: #33f;">2</span>*<span style="color: #0000FF;">pi</span>*fc*t<span style="color: #080;">&#41;</span>; <span style="color: #228B22;">%to convert DSB-AM to DSB-SC</span>
Mf = <span style="color: #33f;">2</span>/N*<span style="color: #0000FF;">abs</span><span style="color: #080;">&#40;</span><span style="color: #0000FF;">fft</span><span style="color: #080;">&#40;</span>m,N<span style="color: #080;">&#41;</span><span style="color: #080;">&#41;</span>;
<span style="color: #0000FF;">figure</span><span style="color: #080;">&#40;</span>’Name’,'Time/Fequency domain representations of DSB-SC signals’<span style="color: #080;">&#41;</span>;
<span style="color: #0000FF;">subplot</span><span style="color: #080;">&#40;</span><span style="color: #33f;">2</span>,<span style="color: #33f;">1</span>,<span style="color: #33f;">1</span><span style="color: #080;">&#41;</span>; <span style="color: #228B22;">%Time domain plot</span>
<span style="color: #0000FF;">plot</span><span style="color: #080;">&#40;</span>t<span style="color: #080;">&#40;</span><span style="color: #33f;">1</span>:N/<span style="color: #33f;">2</span><span style="color: #080;">&#41;</span>,m<span style="color: #080;">&#40;</span><span style="color: #33f;">1</span>:N/<span style="color: #33f;">2</span><span style="color: #080;">&#41;</span>,t<span style="color: #080;">&#40;</span><span style="color: #33f;">1</span>:N/<span style="color: #33f;">2</span><span style="color: #080;">&#41;</span>,A<span style="color: #080;">&#40;</span><span style="color: #33f;">1</span>:N/<span style="color: #33f;">2</span><span style="color: #080;">&#41;</span>,’r',t<span style="color: #080;">&#40;</span><span style="color: #33f;">1</span>:N/<span style="color: #33f;">2</span><span style="color: #080;">&#41;</span>,-A<span style="color: #080;">&#40;</span><span style="color: #33f;">1</span>:N/<span style="color: #33f;">2</span><span style="color: #080;">&#41;</span>,’r'<span style="color: #080;">&#41;</span>;
<span style="color: #0000FF;">title</span><span style="color: #080;">&#40;</span>’Time Domain Representation’<span style="color: #080;">&#41;</span>;
<span style="color: #0000FF;">xlabel</span><span style="color: #080;">&#40;</span>’Time’<span style="color: #080;">&#41;</span>; <span style="color: #0000FF;">ylabel</span><span style="color: #080;">&#40;</span>’Modulated signal’<span style="color: #080;">&#41;</span>;
<span style="color: #0000FF;">subplot</span><span style="color: #080;">&#40;</span><span style="color: #33f;">2</span>,<span style="color: #33f;">1</span>,<span style="color: #33f;">2</span><span style="color: #080;">&#41;</span>; <span style="color: #228B22;">%Frequency Domain Plot</span>
<span style="color: #0000FF;">plot</span><span style="color: #080;">&#40;</span>f<span style="color: #080;">&#40;</span><span style="color: #33f;">1</span>:<span style="color: #33f;">256</span><span style="color: #080;">&#41;</span>,Mf<span style="color: #080;">&#40;</span><span style="color: #33f;">1</span>:<span style="color: #33f;">256</span><span style="color: #080;">&#41;</span><span style="color: #080;">&#41;</span>;
<span style="color: #0000FF;">title</span><span style="color: #080;">&#40;</span>’Frequency Domain Representation’<span style="color: #080;">&#41;</span>;
<span style="color: #0000FF;">xlabel</span><span style="color: #080;">&#40;</span>’Frequency <span style="color: #080;">&#40;</span>Hz<span style="color: #080;">&#41;</span>’<span style="color: #080;">&#41;</span>; <span style="color: #0000FF;">ylabel</span><span style="color: #080;">&#40;</span>’Spectral Magnitude’<span style="color: #080;">&#41;</span>;
text<span style="color: #080;">&#40;</span><span style="color: #33f;">15</span>,<span style="color: #33f;">60</span>,’Carrier’<span style="color: #080;">&#41;</span>;
<span style="color: #228B22;">%——————————————————————–</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://johnroach.info/2009/11/15/am-and-dsb-sc-modulation-and-demodulation-of-a-periodic-square-wave-matlab/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>The site has been updated</title>
		<link>http://johnroach.info/2009/10/20/the-site-has-been-updated/</link>
		<comments>http://johnroach.info/2009/10/20/the-site-has-been-updated/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 08:52:56 +0000</pubDate>
		<dc:creator>John Roach</dc:creator>
				<category><![CDATA[Old posts]]></category>
		<category><![CDATA[CNN]]></category>
		<category><![CDATA[john roach]]></category>
		<category><![CDATA[New media]]></category>
		<category><![CDATA[Wordpresss]]></category>

		<guid isPermaLink="false">http://johnroach.info/?p=55</guid>
		<description><![CDATA[Yes, at last. Free of Blogger/Google. I won&#8217;t be blocked!! Thanks to Turkish blocking sites I have decided to carry EVERYTHING to my OWN host. And voila! What you see is what has happened. I am using WordPress for people &#8230; <a href="http://johnroach.info/2009/10/20/the-site-has-been-updated/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Yes, at last. Free of Blogger/Google. I won&#8217;t be blocked!! Thanks to Turkish blocking sites I have decided to carry EVERYTHING to my OWN host. And voila! What you see is what has happened.</p>
<p>I am using WordPress for people who are wondering and I know the theme is a little dark. But it is simple and I like simple.</p>
<p>And just to wet your appetites I shall post a tech related video.</p>
<p><center><script src="http://i.cdn.turner.com/cnn/.element/js/2.0/video/evp/module.js?loc=int&#038;vid=/video/tech/2009/10/14/dcl.neill.twitter.uk.media.cnn" type="text/javascript"></script><noscript>Embedded video from <a href="http://www.cnn.com/video">CNN Video</a></noscript></center></p>
]]></content:encoded>
			<wfw:commentRss>http://johnroach.info/2009/10/20/the-site-has-been-updated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

