<?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>I Grok2!</title>
	<atom:link href="http://www.grok2.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.grok2.com/blog</link>
	<description>Except when I don't....</description>
	<lastBuildDate>Fri, 06 Apr 2012 06:19:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Are you unable to use C sizeof operator as expected in pre-processor macros?</title>
		<link>http://www.grok2.com/blog/2012/04/02/are-you-unable-to-use-c-sizeof-operator-as-expected-in-pre-processor-macros/</link>
		<comments>http://www.grok2.com/blog/2012/04/02/are-you-unable-to-use-c-sizeof-operator-as-expected-in-pre-processor-macros/#comments</comments>
		<pubDate>Mon, 02 Apr 2012 18:06:41 +0000</pubDate>
		<dc:creator>grok2</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[c]]></category>

		<guid isPermaLink="false">http://www.grok2.com/blog/?p=364</guid>
		<description><![CDATA[If you are trying to use the C programming language&#8217;s sizeof operator in a C pre-processor macro and find that you are unable to use it as expected and you see compiler errors (actually C pre-processor (CPP) errors), you are really seeing expected behavior. The sizeof operator works only during compile time and the sizes [...]]]></description>
			<content:encoded><![CDATA[<!-- Easy AdSense Redux V2.82 -->
<!-- Post[count: 2] -->
<div class="ezAdsense adsense adsense-leadin" style="float:right;margin:6px;"><script type="text/javascript"><!--
google_ad_client = "ca-pub-2859704241898192";
/* blogpostad */
google_ad_slot = "1221128987";
google_ad_width = 180;
google_ad_height = 150;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div><p>If you are trying to use the C programming language&#8217;s sizeof operator in a C pre-processor macro and find that you are unable to use it as expected and you see compiler errors (actually C pre-processor (CPP) errors), you are really seeing expected behavior. The sizeof operator works only during compile time and the sizes of structures are only known at compile time and it is not an operator supported by the C pre-processor.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.grok2.com%2Fblog%2F2012%2F04%2F02%2Fare-you-unable-to-use-c-sizeof-operator-as-expected-in-pre-processor-macros%2F&amp;title=Are%20you%20unable%20to%20use%20C%20sizeof%20operator%20as%20expected%20in%20pre-processor%20macros%3F" id="wpa2a_2"><img src="http://www.grok2.com/blog/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.grok2.com/blog/2012/04/02/are-you-unable-to-use-c-sizeof-operator-as-expected-in-pre-processor-macros/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reduce size of scanned images saved as PDF files</title>
		<link>http://www.grok2.com/blog/2012/03/11/reduce-size-of-scanned-images-saved-as-pdf-files/</link>
		<comments>http://www.grok2.com/blog/2012/03/11/reduce-size-of-scanned-images-saved-as-pdf-files/#comments</comments>
		<pubDate>Sun, 11 Mar 2012 22:12:53 +0000</pubDate>
		<dc:creator>grok2</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[misc]]></category>

		<guid isPermaLink="false">http://www.grok2.com/blog/?p=351</guid>
		<description><![CDATA[I am new to the phenomenon of scanned documents using a color scanner being very large in size. An 8 page document that was about 105K when originally delivered to me as a PDF file ended up being about 12.5M after I had printed it out, signed my signature and scanned it to a PDF [...]]]></description>
			<content:encoded><![CDATA[<p>I am new to the phenomenon of scanned documents using a color scanner being very large in size. An 8 page document that was about 105K when originally delivered to me as a PDF file ended up being about 12.5M after I had printed it out, signed my signature and scanned it to a PDF file again.</p>
<p>Looking around the web, it seemed like there were many suggestions on reducing the size of a scanned document. There are software that will compress the size of your scanned PDF file, but nothing free. Ultimately I played around with the settings of my scanner (which is a Canon MP620 Pixma printer/scanner/copier combo) and found that the following settings reduced the size of the scanned image drastically.</p>
<p>The single change that had the biggest impact was to change the scan settings so that the document was scanned as a Black &amp; White image instead of a Color image. Another setting that reduced the size further was to use 150dpi when scanning instead of 300dpi which was set as the default. Finally a big reduction results when you choose high compression when converting to a PDF file. Finally I went with just the Black &amp; White scan setting only (since changing the other settings also reduced the quality of the resulting PDF file) and I was able to get a PDF of about 2M instead of the 12.5M that I was originally getting. So a decent amount of reduction in size.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.grok2.com%2Fblog%2F2012%2F03%2F11%2Freduce-size-of-scanned-images-saved-as-pdf-files%2F&amp;title=Reduce%20size%20of%20scanned%20images%20saved%20as%20PDF%20files" id="wpa2a_4"><img src="http://www.grok2.com/blog/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.grok2.com/blog/2012/03/11/reduce-size-of-scanned-images-saved-as-pdf-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fix for garbled WordPress admin screen</title>
		<link>http://www.grok2.com/blog/2012/03/06/fix-for-garbled-wordpress-admin-screen/</link>
		<comments>http://www.grok2.com/blog/2012/03/06/fix-for-garbled-wordpress-admin-screen/#comments</comments>
		<pubDate>Wed, 07 Mar 2012 04:23:38 +0000</pubDate>
		<dc:creator>grok2</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.grok2.com/blog/?p=341</guid>
		<description><![CDATA[IMPORTANT: See update to this below after the image After logging in, the admin screen (dashboard) of my WordPress installation was all jumbled (see screenshot below). It seemed like a CSS or JavaScript related problem. Developer tools on Google Chrome reported several issues with locating the &#8216;jQuery&#8216; variable and with the wp-admin/load-scripts.php file. After several [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff0000;"><strong>IMPORTANT</strong>: See update to this below after the image</span></p>
<p>After logging in, the admin screen (dashboard) of my WordPress installation was all jumbled (see screenshot below). It seemed like a CSS or JavaScript related problem. Developer tools on Google Chrome reported several issues with locating the &#8216;<em>jQuery</em>&#8216; variable and with the <em>wp-admin/load-scripts.php</em> file.</p>
<p>After several attempts at searching the WordPress site and googling around, I came across <a title="WordPress Admin Screen Garbled/Jumbled" href="http://wordpress.org/support/topic/wp-28-jquery-error">this forum post</a>. Based on this forum post, I found that first configuring <em><strong>define(&#8216;SCRIPT_DEBUG&#8217;, true);</strong></em> in <em>wp-config.php</em> and then refreshing my admin screen fixed the problem. Subsequently I removed this config line and refreshed my admin screen again and it stayed fixed.</p>
<p>It seems like in the default configuration, WordPress compresses or combines several JavaScript and/or CSS files into a single file and this compression/combination was somehow garbled. Turning on the <em>SCRIPT_DEBUG</em> flag turned off this compression and removing it again probably re-generated some files fixing my problem &#8212; I don&#8217;t know for sure what actually helped! But it worked.</p>
<p>This was with WordPress 3.3.1.</p>
<div id="attachment_342" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.grok2.com/blog/wp-content/uploads/2012/03/wp-issue.png"><img class="size-medium wp-image-342" title="WordPress Admin Screen Jumbled Issue" src="http://www.grok2.com/blog/wp-content/uploads/2012/03/wp-issue-300x289.png" alt="Fix for WordPress Admin Screen Garbled/Jumbled" width="300" height="289" /></a><p class="wp-caption-text">WordPress Admin Screen Garbled</p></div>
<p><strong>UPDATE</strong>:</p>
<p>This happened a second time to me and doing the same thing as described above fixed the problem once again. But in the process, I noticed that the time-stamps on all files in my blog directory had been somehow updated to today&#8217;s date. Also *every* PHP file now had some additional code at the top within a php tag in the first line. The php code was <em>eval</em>&#8216;ing a base64_encoded string via the <em>base64_encode</em> api. Apparently, evaluating this encoded string injected some JavaScript into every php based page on the site. It looked like some mal-ware had taken over my site. Having <a title="sucuri sitecheck" href="http://sitecheck.sucuri.net/scanner/">sucuri.net</a> evaluate my site indicated there was some mal-ware (you provide your URL and they crawl your site and tell you whether your site has any mal-ware injected).</p>
<p>To fix my problem, I used the following shell scripts to detect files having the problem and to fix them.</p>
<p>Remember that I provide these scripts as an aid to anyone encountering the same problem and provide them as-is without any warranty. USE THEM AT YOUR OWN RISK. PLEASE MAKE BACKUPS OF YOUR FILES BEFORE RUNNING THESE SCRIPTS SINCE THEY WILL MODIFY FILES. The regular expression I used worked for me, but they may not necessarily work for you. BACKUP, BACKUP, BACKUP. Also the below may not be sufficient to rid your site of this mal-ware. I don&#8217;t know what else needs be done to completely rid your blog of the mal-ware.</p>
<p>To find all the files with this injected php code, I used the following script:</p>
<p><em>find . -name &#8220;*.php&#8221; | xargs awk &#8216;FNR == 1 &amp;&amp; /&lt;?php.*base64_.*?&gt;/ {print FILENAME}{nextfile}&#8217;</em></p>
<p>To remove this line of injected php code, I used the following script:</p>
<p><em>find . -name &#8220;*.php&#8221; | xargs sed -i &#8217;1s/&lt;?php \/\*\*\/ .val(base64.decode(&#8220;.*==&#8221;));?&gt;//&#8217;</em></p>
<p>(In the above scripts, please fix the quotes and the double-quotes &#8212; pre-formatted code doesn&#8217;t wrap, so had to use regular formatting which messes with quotes and such)</p>
<p>Now I wait and watch to see if the problem re-surfaces, if it does, then I know there is more I need to do.</p>
<p><strong>UPDATE</strong>:</p>
<p>This happened yet another time and I cleaned up in the same manner. I also searched some more and found that someone had installed the infamous c99 shell to allow them backdoor access into my setup. They were using this backdoor access to periodically inject additional php code into my php scripts. I found the c99 shell by searching for the string &#8220;gzdef.ate.base.._encode&#8221; (I am using . instead of the actual character to prevent security tools from thinking this page has a security issue. Replace the dots with &#8216;l&#8217;, &#8217;6&#8242; and &#8217;4&#8242; in order). I removed the backdoor, but I am yet to find the vulnerability in the existing script that was exploited by someone to install the backdoor shell in the first place. Looking&#8230;</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.grok2.com%2Fblog%2F2012%2F03%2F06%2Ffix-for-garbled-wordpress-admin-screen%2F&amp;title=Fix%20for%20garbled%20WordPress%20admin%20screen" id="wpa2a_6"><img src="http://www.grok2.com/blog/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.grok2.com/blog/2012/03/06/fix-for-garbled-wordpress-admin-screen/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Embedded Programming Rules-of-Thumb</title>
		<link>http://www.grok2.com/blog/2012/03/06/embedded-programming-rules-of-thumb/</link>
		<comments>http://www.grok2.com/blog/2012/03/06/embedded-programming-rules-of-thumb/#comments</comments>
		<pubDate>Tue, 06 Mar 2012 17:54:44 +0000</pubDate>
		<dc:creator>grok2</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[embedded]]></category>

		<guid isPermaLink="false">http://www.grok2.com/blog/?p=337</guid>
		<description><![CDATA[Will add more as I have some of those slap-on-the-forehead moments: You can&#8217;t have messages from two different tasks queuing up into the same queue in a destination task and expect sequencing between the messages.]]></description>
			<content:encoded><![CDATA[<p>Will add more as I have some of those slap-on-the-forehead moments:
<ul>
<li>You can&#8217;t have messages from two different tasks queuing up into the same queue in a destination task and expect sequencing between the messages.</li>
</ul>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.grok2.com%2Fblog%2F2012%2F03%2F06%2Fembedded-programming-rules-of-thumb%2F&amp;title=Embedded%20Programming%20Rules-of-Thumb" id="wpa2a_8"><img src="http://www.grok2.com/blog/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.grok2.com/blog/2012/03/06/embedded-programming-rules-of-thumb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;I am the smoother of ways and the getter of things done&#8221;</title>
		<link>http://www.grok2.com/blog/2012/03/06/i-am-the-smoother-of-ways-and-the-getter-of-things-done/</link>
		<comments>http://www.grok2.com/blog/2012/03/06/i-am-the-smoother-of-ways-and-the-getter-of-things-done/#comments</comments>
		<pubDate>Tue, 06 Mar 2012 17:08:47 +0000</pubDate>
		<dc:creator>grok2</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[misc]]></category>

		<guid isPermaLink="false">http://www.grok2.com/blog/?p=334</guid>
		<description><![CDATA[That really should be the motto of a good employee .]]></description>
			<content:encoded><![CDATA[<p>That really should be the motto of a good employee <img src='http://www.grok2.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> .</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.grok2.com%2Fblog%2F2012%2F03%2F06%2Fi-am-the-smoother-of-ways-and-the-getter-of-things-done%2F&amp;title=%E2%80%9CI%20am%20the%20smoother%20of%20ways%20and%20the%20getter%20of%20things%20done%E2%80%9D" id="wpa2a_10"><img src="http://www.grok2.com/blog/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.grok2.com/blog/2012/03/06/i-am-the-smoother-of-ways-and-the-getter-of-things-done/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using LiveCode (RunRev) with SDK Platform Android 2.2, API 8, revision 3</title>
		<link>http://www.grok2.com/blog/2011/10/06/using-livecode-runrev-with-sdk-platform-android-2-2-api-8-revision-3/</link>
		<comments>http://www.grok2.com/blog/2011/10/06/using-livecode-runrev-with-sdk-platform-android-2-2-api-8-revision-3/#comments</comments>
		<pubDate>Thu, 06 Oct 2011 07:11:34 +0000</pubDate>
		<dc:creator>grok2</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[livecode]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[runrev]]></category>

		<guid isPermaLink="false">http://www.grok2.com/blog/2011/10/06/using-livecode-runrev-with-sdk-platform-android-2-2-api-8-revision-3/</guid>
		<description><![CDATA[The current (LiveCode 4.6.3, Oct 2011) release of LiveCode for Android development does not accept the revision 3 directory structure of the Android 2.2 (Froyo) SDK and needs some directory structure tweaking as below: Copy the folder &#60;android-sdk&#62;\platform-tools\ to &#60;android-sdk&#62;\platforms\android-8\tools\ You need to do this when in the Edit menu Preferences dialog for the Mobile [...]]]></description>
			<content:encoded><![CDATA[<p>The current (LiveCode 4.6.3, Oct 2011) release of <a href="http://www.runrev.com/">LiveCode</a> for Android development does not accept the revision 3 directory structure of the Android 2.2 (Froyo) SDK and needs some directory structure tweaking as below:</p>
<blockquote><p>Copy the folder</p>
<pre>&lt;android-sdk&gt;\platform-tools\</pre>
<p>to</p>
<pre>&lt;android-sdk&gt;\platforms\android-8\tools\</pre>
</blockquote>
<p>You need to do this when in the <em>Edit</em> menu <em>Preferences</em> dialog for the <em>Mobile Support</em> item, if it fails with an error message saying:<br />
<strong>The chosen folder is not a valid Android SDK. Please ensure you have installed it correctly, and enabled support for Android 2.2 (Froyo).</strong></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.grok2.com%2Fblog%2F2011%2F10%2F06%2Fusing-livecode-runrev-with-sdk-platform-android-2-2-api-8-revision-3%2F&amp;title=Using%20LiveCode%20%28RunRev%29%20with%20SDK%20Platform%20Android%202.2%2C%20API%208%2C%20revision%203" id="wpa2a_12"><img src="http://www.grok2.com/blog/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.grok2.com/blog/2011/10/06/using-livecode-runrev-with-sdk-platform-android-2-2-api-8-revision-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fragmentation when allocating memory</title>
		<link>http://www.grok2.com/blog/2011/07/28/fragmentation-when-allocating-memory/</link>
		<comments>http://www.grok2.com/blog/2011/07/28/fragmentation-when-allocating-memory/#comments</comments>
		<pubDate>Thu, 28 Jul 2011 22:21:15 +0000</pubDate>
		<dc:creator>grok2</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.grok2.com/blog/2011/07/28/fragmentation-when-allocating-memory/</guid>
		<description><![CDATA[To reduce fragmentation specially in high-activity code, allocate temporary buffers (buffers that will live only for a short while) from a separate memory pool. The idea is to avoid long-lived buffers and short-lived buffers from being allocated from the same pool.]]></description>
			<content:encoded><![CDATA[<p>To reduce fragmentation specially in high-activity code, allocate temporary buffers (buffers that will live only for a short while) from a separate memory pool. The idea is to avoid long-lived buffers and short-lived buffers from being allocated from the same pool.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.grok2.com%2Fblog%2F2011%2F07%2F28%2Ffragmentation-when-allocating-memory%2F&amp;title=Fragmentation%20when%20allocating%20memory" id="wpa2a_14"><img src="http://www.grok2.com/blog/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.grok2.com/blog/2011/07/28/fragmentation-when-allocating-memory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Focus on the road not the wall</title>
		<link>http://www.grok2.com/blog/2011/03/31/focus-on-the-road-not-the-wall/</link>
		<comments>http://www.grok2.com/blog/2011/03/31/focus-on-the-road-not-the-wall/#comments</comments>
		<pubDate>Thu, 31 Mar 2011 17:41:46 +0000</pubDate>
		<dc:creator>grok2</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[hack-thought]]></category>

		<guid isPermaLink="false">http://www.grok2.com/blog/2011/03/31/focus-on-the-road-not-the-wall/</guid>
		<description><![CDATA[An interesting essay on being the CEO by Ben Horowitz. The ideas he suggests for managing your own psychology as a CEO also appears useful in general. The following stood out for me: Focus on the road not the wall Focusing on things that need to be done and not focusing on things that bring [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://techcrunch.com/2011/03/31/what%E2%80%99s-the-most-difficult-ceo-skill-managing-your-own-psychology/">An interesting essay on being the CEO by Ben Horowitz</a>. The ideas he suggests for managing your own psychology as a CEO also appears useful in general. The following stood out for me:</p>
<blockquote><p><em><a href="http://techcrunch.com/2011/03/31/what%E2%80%99s-the-most-difficult-ceo-skill-managing-your-own-psychology/">Focus on the road not the wall</a></em></p></blockquote>
<p>Focusing on things that need to be done and not focusing on things that bring your project down can help you finish your project and not go crashing into a wall <img src='http://www.grok2.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> .</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.grok2.com%2Fblog%2F2011%2F03%2F31%2Ffocus-on-the-road-not-the-wall%2F&amp;title=Focus%20on%20the%20road%20not%20the%20wall" id="wpa2a_16"><img src="http://www.grok2.com/blog/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.grok2.com/blog/2011/03/31/focus-on-the-road-not-the-wall/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Coding and Holding The Big Picture in Your Head</title>
		<link>http://www.grok2.com/blog/2011/02/03/coding-and-holding-the-big-picture-in-your-head/</link>
		<comments>http://www.grok2.com/blog/2011/02/03/coding-and-holding-the-big-picture-in-your-head/#comments</comments>
		<pubDate>Fri, 04 Feb 2011 06:04:12 +0000</pubDate>
		<dc:creator>grok2</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.grok2.com/blog/2011/02/03/coding-and-holding-the-big-picture-in-your-head/</guid>
		<description><![CDATA[I find that I am often unable to complete some piece of code unless I have a mental picture of the whole thing in my head. And this is a huge problem. For small things, it is fairly easy to get a mental picture of what needs to be done and my coding happens fast. [...]]]></description>
			<content:encoded><![CDATA[<p>I find that I am often unable to complete some piece of code unless I have a mental picture of the whole thing in my head. And this is a huge problem. For small things, it is fairly easy to get a mental picture of what needs to be done and my coding happens fast. But for something that is larger, requiring perhaps a multi-step process with things that can go wrong in each or all of the steps, it is much harder. I keep procrastinating for days on end until my puny brain has wrapped itself around whatever needs be done end-to-end and I feel that I will be able to take care of all the loose ends and all corner cases are considered &#8212; mentally. Only then can I start coding.</p>
<p>But this method does not scale and also it&#8217;s hard to give a project schedule and tell when you&#8217;ll be done with some module <img src='http://www.grok2.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> .</p>
<p>I need to figure out some way of divide-and-conquer programming where I don&#8217;t need to have the entire thing in my head, but have just pieces of it in my head at a time, code that piece and be comfortable that the particular piece has been coded correctly &#8212; and that the way it&#8217;s been coded it will interact correctly with all the other pieces making the old adage of the sum of the parts being larger than the whole come true.</p>
<p>Oh well. I guess I cannot be everything all the time. Back to wrapping my head around this current problem&#8230;why is it that people find web-development easy and I keeping finding it hard and wondering why no-one sees that it is complicated distributed programming? That things can go wrong anytime and everywhere.</p>
<p>How do you deal with coding of such nature? Let me know in the comments.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.grok2.com%2Fblog%2F2011%2F02%2F03%2Fcoding-and-holding-the-big-picture-in-your-head%2F&amp;title=Coding%20and%20Holding%20The%20Big%20Picture%20in%20Your%20Head" id="wpa2a_18"><img src="http://www.grok2.com/blog/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.grok2.com/blog/2011/02/03/coding-and-holding-the-big-picture-in-your-head/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox Firebug Add-On Notes</title>
		<link>http://www.grok2.com/blog/2010/11/22/firefox-firebug-add-on-notes/</link>
		<comments>http://www.grok2.com/blog/2010/11/22/firefox-firebug-add-on-notes/#comments</comments>
		<pubDate>Mon, 22 Nov 2010 22:01:04 +0000</pubDate>
		<dc:creator>grok2</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[firebug]]></category>

		<guid isPermaLink="false">http://www.grok2.com/blog/2010/11/22/firefox-firebug-add-on-notes/</guid>
		<description><![CDATA[If you don&#8217;t see JavaScript that you know is on the page you are browsing, in the Script tab, then reload the page. If you want to see JavaScript errors as they happen on the page, look in the Console tab. In the Script tab, breakpoints can only be set on lines whose line numbers [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li>If you don&#8217;t see JavaScript that you know is on the page you are browsing, in the <i><b>Script </b></i>tab, then reload the page.</li>
<li>If you want to see JavaScript errors as they happen on the page, look in the <i><b>Console </b></i>tab.</li>
<li>In the <i><b>Script </b></i>tab, breakpoints can only be set on lines whose line numbers are green in color.</li>
</ul>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.grok2.com%2Fblog%2F2010%2F11%2F22%2Ffirefox-firebug-add-on-notes%2F&amp;title=Firefox%20Firebug%20Add-On%20Notes" id="wpa2a_20"><img src="http://www.grok2.com/blog/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.grok2.com/blog/2010/11/22/firefox-firebug-add-on-notes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

