<?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>B166ER - Made in Cyberspace &#187; Programming</title>
	<atom:link href="http://www.b166er.com/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.b166er.com</link>
	<description>Technology, Science and Money</description>
	<lastBuildDate>Sun, 11 Dec 2011 22:15:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Back To Personal Blogging</title>
		<link>http://www.b166er.com/2010/05/back-to-personal-blogging/</link>
		<comments>http://www.b166er.com/2010/05/back-to-personal-blogging/#comments</comments>
		<pubDate>Tue, 25 May 2010 21:47:26 +0000</pubDate>
		<dc:creator>Shohat</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://www.b166er.com/?p=32</guid>
		<description><![CDATA[It has been over two years since my last personal blog post. Like many bloggers, I have take a break from my blog&#8230; to do some serious blogging. The past two years have been hectic, web projects have come and gone, some crashed into oblivion while others grew to attract thousands of daily users.The largest proper blog [...]]]></description>
			<content:encoded><![CDATA[<p>It has been over two years since my last personal blog post. Like many bloggers, I have take a break from my blog&#8230; to do some serious blogging. The past two years have been hectic, web projects have come and gone, some crashed into oblivion while others grew to attract thousands of daily users.The largest <em><strong>proper</strong></em> blog I own turned out to be <a title="StarCraft 2" href="http://www.sc2blog.com">SC2Blog.com</a>, which attracts over a hundred thousand monthly readers and established good relationships as well as a few signed contracts with quite a few gaming, hardware, advertising and media companies.</p>
<p><a href="http://www.b166er.com/wp-content/uploads/2010/05/blogstats1.jpg"><img class="alignnone size-full wp-image-37" title="Sc2Blog is Growing" src="http://www.b166er.com/wp-content/uploads/2010/05/blogstats1.jpg" alt="Sc2Blog is Growing" width="765" height="99" /></a></p>
<p>Real Time programming career has all but ended, and while I assist others with hardware programming, Web and Enterprise Application programming are my new flavors of choice. Hopefully my experience with Intranet Programming as well as leading large multi-tier Data/Web/Hardware projects and site development will come in handy.</p>
<p>.NET, here I come.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em>Bookmark to:</em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://buzz.yahoo.com/submit?submitUrl=http%3A%2F%2Fwww.b166er.com%2F2010%2F05%2Fback-to-personal-blogging%2F&amp;submitHeadline=Back+To+Personal+Blogging&amp;submitSummary=" rel="nofollow" title="Add to&nbsp;Buzz"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/buzz.png" title="Add to&nbsp;Buzz" alt="Add to&nbsp;Buzz" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http%3A%2F%2Fwww.b166er.com%2F2010%2F05%2Fback-to-personal-blogging%2F&amp;title=Back+To+Personal+Blogging" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.b166er.com%2F2010%2F05%2Fback-to-personal-blogging%2F&amp;title=Back+To+Personal+Blogging" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.dotnetkicks.com/kick/?url=http%3A%2F%2Fwww.b166er.com%2F2010%2F05%2Fback-to-personal-blogging%2F&amp;title=Back+To+Personal+Blogging" rel="nofollow" title="Add to&nbsp;DotNetKicks"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/dotnetkicks.png" title="Add to&nbsp;DotNetKicks" alt="Add to&nbsp;DotNetKicks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.b166er.com%2F2010%2F05%2Fback-to-personal-blogging%2F" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.b166er.com%2F2010%2F05%2Fback-to-personal-blogging%2F&amp;title=Back+To+Personal+Blogging" rel="nofollow" title="Add to&nbsp;LinkedIn"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/linkedin.png" title="Add to&nbsp;LinkedIn" alt="Add to&nbsp;LinkedIn" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.b166er.com%2F2010%2F05%2Fback-to-personal-blogging%2F&amp;title=Back+To+Personal+Blogging" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.b166er.com%2F2010%2F05%2Fback-to-personal-blogging%2F&amp;title=Back+To+Personal+Blogging" rel="nofollow" title="Add to&nbsp;Slashdot"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/slashdot.png" title="Add to&nbsp;Slashdot" alt="Add to&nbsp;Slashdot" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.sphere.com/sphereit/http%3A%2F%2Fwww.b166er.com%2F2010%2F05%2Fback-to-personal-blogging%2F" rel="nofollow" title="Add to&nbsp;SphereIt"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/sphereit.png" title="Add to&nbsp;SphereIt" alt="Add to&nbsp;SphereIt" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Back+To+Personal+Blogging+@+http%3A%2F%2Fwww.b166er.com%2F2010%2F05%2Fback-to-personal-blogging%2F" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.b166er.com/2010/05/back-to-personal-blogging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Starcraft 2</title>
		<link>http://www.b166er.com/2007/06/starcraft-2/</link>
		<comments>http://www.b166er.com/2007/06/starcraft-2/#comments</comments>
		<pubDate>Mon, 18 Jun 2007 18:49:19 +0000</pubDate>
		<dc:creator>Shohat</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://www.b166er.com/2007/06/starcraft-2/</guid>
		<description><![CDATA[I&#8217;ve been following Blizzard from the very beginning, and now it&#8217;s time to contribute something of my own to the community. I am helping with the TerranoZergus Project, and you can see the first parts of it here, right on the Starcraft 2 Blog.  The Starcraft 2 forums are to be launched soon also, with [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been following Blizzard from the very beginning, and now it&#8217;s time to contribute something of my own to the community. I am helping with the TerranoZergus Project, and you can see the first parts of it here, right on the <a href="http://www.sc2blog.com" title="Starcraft 2">Starcraft 2</a> Blog.  The <a href="http://www.sc2forums.com" title="Starcraft 2 Forums">Starcraft 2 forums</a> are to be launched soon also, with a few more related sites.</p>
<p>Good luck to everyone in the TerranoZergus Project.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em>Bookmark to:</em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://buzz.yahoo.com/submit?submitUrl=http%3A%2F%2Fwww.b166er.com%2F2007%2F06%2Fstarcraft-2%2F&amp;submitHeadline=Starcraft+2&amp;submitSummary=" rel="nofollow" title="Add to&nbsp;Buzz"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/buzz.png" title="Add to&nbsp;Buzz" alt="Add to&nbsp;Buzz" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http%3A%2F%2Fwww.b166er.com%2F2007%2F06%2Fstarcraft-2%2F&amp;title=Starcraft+2" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.b166er.com%2F2007%2F06%2Fstarcraft-2%2F&amp;title=Starcraft+2" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.dotnetkicks.com/kick/?url=http%3A%2F%2Fwww.b166er.com%2F2007%2F06%2Fstarcraft-2%2F&amp;title=Starcraft+2" rel="nofollow" title="Add to&nbsp;DotNetKicks"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/dotnetkicks.png" title="Add to&nbsp;DotNetKicks" alt="Add to&nbsp;DotNetKicks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.b166er.com%2F2007%2F06%2Fstarcraft-2%2F" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.b166er.com%2F2007%2F06%2Fstarcraft-2%2F&amp;title=Starcraft+2" rel="nofollow" title="Add to&nbsp;LinkedIn"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/linkedin.png" title="Add to&nbsp;LinkedIn" alt="Add to&nbsp;LinkedIn" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.b166er.com%2F2007%2F06%2Fstarcraft-2%2F&amp;title=Starcraft+2" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.b166er.com%2F2007%2F06%2Fstarcraft-2%2F&amp;title=Starcraft+2" rel="nofollow" title="Add to&nbsp;Slashdot"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/slashdot.png" title="Add to&nbsp;Slashdot" alt="Add to&nbsp;Slashdot" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.sphere.com/sphereit/http%3A%2F%2Fwww.b166er.com%2F2007%2F06%2Fstarcraft-2%2F" rel="nofollow" title="Add to&nbsp;SphereIt"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/sphereit.png" title="Add to&nbsp;SphereIt" alt="Add to&nbsp;SphereIt" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Starcraft+2+@+http%3A%2F%2Fwww.b166er.com%2F2007%2F06%2Fstarcraft-2%2F" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.b166er.com/2007/06/starcraft-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nobody Cares About Software Engineering On a PC</title>
		<link>http://www.b166er.com/2007/05/nobody-cares-about-software-engineering-on-a-pc/</link>
		<comments>http://www.b166er.com/2007/05/nobody-cares-about-software-engineering-on-a-pc/#comments</comments>
		<pubDate>Thu, 17 May 2007 08:29:31 +0000</pubDate>
		<dc:creator>Shohat</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Engineering]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.b166er.com/2007/05/nobody-cares-about-software-engineering-on-a-pc/</guid>
		<description><![CDATA[I have recently purchased an amazing piece of hardware: Logitech&#8217;s MX1000 Laser mouse. Quite frankly, it&#8217;s the best mouse I&#8217;ve ever owned &#8211; for plenty reasons; it&#8217;s somewhat heavy and comfortable, is rechargeable, has perfectly engineered sliding pads, and most notably &#8211; it measures its own movement using a laser. I happen to program real-time [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.b166er.com/wp-content/uploads/2007/07/191-img-main.jpg" alt="MX1000" align="left" height="250" width="250" />I have recently purchased an amazing piece of hardware: Logitech&#8217;s MX1000 Laser mouse. Quite frankly, it&#8217;s the best mouse I&#8217;ve ever owned &#8211; for plenty reasons; it&#8217;s somewhat heavy and comfortable, is rechargeable, has perfectly engineered sliding pads, and most notably &#8211; it measures its own movement using a laser. I happen to program real-time thermal and chemical controllers for a living, and I can really appreciate this fine piece of hardware . It&#8217;s controller chip program was probably very well written , hundreds of engineering hours put into it&#8217;s hardware and software design, and it was optimized for minimum power consumption by some of the brightest electrical engineers in the field. These are merely my assumptions, based on the mouse&#8217;s performance, but who knows, maybe there is a team of 100,000,000 monkeys that just happened to put it all together.</p>
<p>Just like the one that wrote the drivers for this amazing piece of hardware. It really seems that nobody takes time to optimize software these days, everything is built upon some API of API of a wrapper of some Library of an API . This is the only explanation I can find for having a <span style="font-weight: bold">10 Megabyte resident mouse driver</span>.<br />
Now maybe it looks normal for kids that never saw software that had to FIT INTO A CERTAIN AMOUNT OF MEMORY or not be able to run at all. And regarding hard-disk space requirements&#8230;.  Great games like Transport Tycoon fit into 11 Megabytes. If any so-called software engineer would re-write this game nowadays, it would take 550MB on the CD and 250MB memory for the world to run in .<br />
I am not writing now about the &#8220;Good ol&#8217; days&#8221; when men were engineers and women were secretaries. I am talking about less than 10 years ago, when software had to be efficient and compact , or at least avoid being overbloated beyond any proportion. Ten Megabytes for a mouse driver is ridiculous. If hardware engineers would be given the same treatment and level of compromise for their hardware design, my mouse would probably come with a 10 kilogram battery, a massive heatsink and would work on only surfaces within a certain reflective range.Oh, And would probably blind me permanently in case I&#8217;d flip it over to see the Laser thingy.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em>Bookmark to:</em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://buzz.yahoo.com/submit?submitUrl=http%3A%2F%2Fwww.b166er.com%2F2007%2F05%2Fnobody-cares-about-software-engineering-on-a-pc%2F&amp;submitHeadline=Nobody+Cares+About+Software+Engineering+On+a+PC&amp;submitSummary=" rel="nofollow" title="Add to&nbsp;Buzz"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/buzz.png" title="Add to&nbsp;Buzz" alt="Add to&nbsp;Buzz" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http%3A%2F%2Fwww.b166er.com%2F2007%2F05%2Fnobody-cares-about-software-engineering-on-a-pc%2F&amp;title=Nobody+Cares+About+Software+Engineering+On+a+PC" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.b166er.com%2F2007%2F05%2Fnobody-cares-about-software-engineering-on-a-pc%2F&amp;title=Nobody+Cares+About+Software+Engineering+On+a+PC" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.dotnetkicks.com/kick/?url=http%3A%2F%2Fwww.b166er.com%2F2007%2F05%2Fnobody-cares-about-software-engineering-on-a-pc%2F&amp;title=Nobody+Cares+About+Software+Engineering+On+a+PC" rel="nofollow" title="Add to&nbsp;DotNetKicks"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/dotnetkicks.png" title="Add to&nbsp;DotNetKicks" alt="Add to&nbsp;DotNetKicks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.b166er.com%2F2007%2F05%2Fnobody-cares-about-software-engineering-on-a-pc%2F" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.b166er.com%2F2007%2F05%2Fnobody-cares-about-software-engineering-on-a-pc%2F&amp;title=Nobody+Cares+About+Software+Engineering+On+a+PC" rel="nofollow" title="Add to&nbsp;LinkedIn"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/linkedin.png" title="Add to&nbsp;LinkedIn" alt="Add to&nbsp;LinkedIn" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.b166er.com%2F2007%2F05%2Fnobody-cares-about-software-engineering-on-a-pc%2F&amp;title=Nobody+Cares+About+Software+Engineering+On+a+PC" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.b166er.com%2F2007%2F05%2Fnobody-cares-about-software-engineering-on-a-pc%2F&amp;title=Nobody+Cares+About+Software+Engineering+On+a+PC" rel="nofollow" title="Add to&nbsp;Slashdot"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/slashdot.png" title="Add to&nbsp;Slashdot" alt="Add to&nbsp;Slashdot" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.sphere.com/sphereit/http%3A%2F%2Fwww.b166er.com%2F2007%2F05%2Fnobody-cares-about-software-engineering-on-a-pc%2F" rel="nofollow" title="Add to&nbsp;SphereIt"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/sphereit.png" title="Add to&nbsp;SphereIt" alt="Add to&nbsp;SphereIt" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Nobody+Cares+About+Software+Engineering+On+a+PC+@+http%3A%2F%2Fwww.b166er.com%2F2007%2F05%2Fnobody-cares-about-software-engineering-on-a-pc%2F" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.b166er.com/2007/05/nobody-cares-about-software-engineering-on-a-pc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Writing for NEC without CCS&#8217;s shift_left</title>
		<link>http://www.b166er.com/2007/03/writing-for-nec-without-ccss-shift_left/</link>
		<comments>http://www.b166er.com/2007/03/writing-for-nec-without-ccss-shift_left/#comments</comments>
		<pubDate>Thu, 15 Mar 2007 12:57:45 +0000</pubDate>
		<dc:creator>Shohat</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Engineering]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[NEC]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.b166er.com/2007/03/writing-for-nec-without-ccss-shift_left/</guid>
		<description><![CDATA[CCS is a very nice compiler for PIC family of micro-controllers &#8211; the compiler includes a fair amount of built-in functions, many of which deal with bit manipulation &#8211; crucial functions when it comes to communications. Too bad I have to write these manually when porting communication to the NEC 78f9418 . Having a 7 [...]]]></description>
			<content:encoded><![CDATA[<p>CCS is a very nice compiler for PIC family of micro-controllers &#8211; the compiler includes a fair amount of built-in functions, many of which deal with bit manipulation &#8211; crucial functions when it comes to communications. Too bad I have to write these manually when porting communication to the NEC 78f9418 .</p>
<p>Having a 7 byte bitfield and transmitting it via low-speed PWM is not complex, and this is how the original code looked like, for PIC :</p>
<p>for (i = 0; i < 56; i++)  {<br />
shift_bit=shift_left (&#038;<strong>irm</strong>, sizeof(<strong>ir_packet</strong>), <strong>1</strong>);<br />
send_bit(shift_bit);<br />
}</p>
<p>Simple &#8211; 7 bytes are 56 bits, shift_left then accepts the address  of<strong> irm</strong>, which is a structure of type<strong> ir_packet</strong>, shifted<strong> 1 </strong>bit to the left. The bit is then sent on it&#8217;s way.<br />
Writing this code without the shift_left function proved to be somewhat fun though</p>
<p>packetBytePointer=&#038;(BYTE *)&#038;irm+6;<br />
for(o=0;o<7;o++)<br />
{<br />
transmittedByte=*packetBytePointer;<br />
for(z=0;z<8;z++)<br />
{<br />
send_bit(transmittedByte&#038;0x80);<br />
transmittedByte<<=1;<br />
}<br />
packetBytePointer--;</p>
<p>}</p>
<p>The above piece of code first puts an address to the last byte of the structure into a pointer, then assigns the value that is at that address to a temporary parameter of type BYTE (it's just an <strong>unsigned char</strong>) , and then simply iterates through it by shifting left and applying the 10000000 mask to it.<br />
When the iteration is done, the address of the pointer is decreased to the begin the procedure on the next (previous memory-wise) byte.<br />
This implementation was actually better in my case than shift_left of CCS , because it does not alter the original structure, so if you are storing your operational parameters in a structure that fits the transmission packet (common for simple devices such as &#8220;dumb&#8221; thermostats and motors), you don&#8217;t need to make another copy of the structure.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em>Bookmark to:</em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://buzz.yahoo.com/submit?submitUrl=http%3A%2F%2Fwww.b166er.com%2F2007%2F03%2Fwriting-for-nec-without-ccss-shift_left%2F&amp;submitHeadline=Writing+for+NEC+without+CCS%26%238217%3Bs+shift_left&amp;submitSummary=" rel="nofollow" title="Add to&nbsp;Buzz"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/buzz.png" title="Add to&nbsp;Buzz" alt="Add to&nbsp;Buzz" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http%3A%2F%2Fwww.b166er.com%2F2007%2F03%2Fwriting-for-nec-without-ccss-shift_left%2F&amp;title=Writing+for+NEC+without+CCS%26%238217%3Bs+shift_left" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.b166er.com%2F2007%2F03%2Fwriting-for-nec-without-ccss-shift_left%2F&amp;title=Writing+for+NEC+without+CCS%26%238217%3Bs+shift_left" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.dotnetkicks.com/kick/?url=http%3A%2F%2Fwww.b166er.com%2F2007%2F03%2Fwriting-for-nec-without-ccss-shift_left%2F&amp;title=Writing+for+NEC+without+CCS%26%238217%3Bs+shift_left" rel="nofollow" title="Add to&nbsp;DotNetKicks"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/dotnetkicks.png" title="Add to&nbsp;DotNetKicks" alt="Add to&nbsp;DotNetKicks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.b166er.com%2F2007%2F03%2Fwriting-for-nec-without-ccss-shift_left%2F" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.b166er.com%2F2007%2F03%2Fwriting-for-nec-without-ccss-shift_left%2F&amp;title=Writing+for+NEC+without+CCS%26%238217%3Bs+shift_left" rel="nofollow" title="Add to&nbsp;LinkedIn"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/linkedin.png" title="Add to&nbsp;LinkedIn" alt="Add to&nbsp;LinkedIn" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.b166er.com%2F2007%2F03%2Fwriting-for-nec-without-ccss-shift_left%2F&amp;title=Writing+for+NEC+without+CCS%26%238217%3Bs+shift_left" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.b166er.com%2F2007%2F03%2Fwriting-for-nec-without-ccss-shift_left%2F&amp;title=Writing+for+NEC+without+CCS%26%238217%3Bs+shift_left" rel="nofollow" title="Add to&nbsp;Slashdot"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/slashdot.png" title="Add to&nbsp;Slashdot" alt="Add to&nbsp;Slashdot" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.sphere.com/sphereit/http%3A%2F%2Fwww.b166er.com%2F2007%2F03%2Fwriting-for-nec-without-ccss-shift_left%2F" rel="nofollow" title="Add to&nbsp;SphereIt"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/sphereit.png" title="Add to&nbsp;SphereIt" alt="Add to&nbsp;SphereIt" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Writing+for+NEC+without+CCS%26%238217%3Bs+shift_left+@+http%3A%2F%2Fwww.b166er.com%2F2007%2F03%2Fwriting-for-nec-without-ccss-shift_left%2F" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.b166er.com/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.b166er.com/2007/03/writing-for-nec-without-ccss-shift_left/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

