<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>
	Comments on: CS50 Week 3	</title>
	<atom:link href="https://johnyzaguirre.com/2018/10/06/cs50-week-3/feed/" rel="self" type="application/rss+xml" />
	<link>https://johnyzaguirre.com/2018/10/06/cs50-week-3/</link>
	<description>Projects i&#039;ve worked on, articles i&#039;ve written, and tutorials i&#039;ve recorded</description>
	<lastBuildDate>Mon, 27 Apr 2020 12:33:14 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.6.8</generator>
	<item>
		<title>
		By: Isaac Owens		</title>
		<link>https://johnyzaguirre.com/2018/10/06/cs50-week-3/#comment-45</link>

		<dc:creator><![CDATA[Isaac Owens]]></dc:creator>
		<pubDate>Wed, 20 Nov 2019 23:54:15 +0000</pubDate>
		<guid isPermaLink="false">http://johnyzaguirre.com/?p=652#comment-45</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://johnyzaguirre.com/2018/10/06/cs50-week-3/#comment-44&quot;&gt;Isaac Owens&lt;/a&gt;.

I realized I was freeing all the malloc&#039;d space inside the for loops.  That&#039;s why my program was terminating after one row lol.  God bless the debugger lol]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://johnyzaguirre.com/2018/10/06/cs50-week-3/#comment-44">Isaac Owens</a>.</p>
<p>I realized I was freeing all the malloc&#8217;d space inside the for loops.  That&#8217;s why my program was terminating after one row lol.  God bless the debugger lol</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Isaac Owens		</title>
		<link>https://johnyzaguirre.com/2018/10/06/cs50-week-3/#comment-44</link>

		<dc:creator><![CDATA[Isaac Owens]]></dc:creator>
		<pubDate>Wed, 20 Nov 2019 23:37:41 +0000</pubDate>
		<guid isPermaLink="false">http://johnyzaguirre.com/?p=652#comment-44</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://johnyzaguirre.com/2018/10/06/cs50-week-3/#comment-41&quot;&gt;Johnny&lt;/a&gt;.

Ok so I ran the code through the debugger and I think I&#039;ve found the issue.  Once the loop that reproduces the scanline rows by factor times finishes the job once, the program breaks out of that loop and finishes the code.  There is no loop that comes back to the second row and starts the resizing process from the beginning.  The bmp that I&#039;m resizing is a green block with a white square in the middle.  So this solution is reproducing the top line of the square (top row of just green pixels) correctly but then the program is filling the rest of the image with garbage values.

I&#039;m guessing I need to put the whole process within an even bigger loop to resize the WHOLE image and not just the top line.  What do you think?]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://johnyzaguirre.com/2018/10/06/cs50-week-3/#comment-41">Johnny</a>.</p>
<p>Ok so I ran the code through the debugger and I think I&#8217;ve found the issue.  Once the loop that reproduces the scanline rows by factor times finishes the job once, the program breaks out of that loop and finishes the code.  There is no loop that comes back to the second row and starts the resizing process from the beginning.  The bmp that I&#8217;m resizing is a green block with a white square in the middle.  So this solution is reproducing the top line of the square (top row of just green pixels) correctly but then the program is filling the rest of the image with garbage values.</p>
<p>I&#8217;m guessing I need to put the whole process within an even bigger loop to resize the WHOLE image and not just the top line.  What do you think?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Johnny		</title>
		<link>https://johnyzaguirre.com/2018/10/06/cs50-week-3/#comment-41</link>

		<dc:creator><![CDATA[Johnny]]></dc:creator>
		<pubDate>Wed, 13 Nov 2019 12:01:32 +0000</pubDate>
		<guid isPermaLink="false">http://johnyzaguirre.com/?p=652#comment-41</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://johnyzaguirre.com/2018/10/06/cs50-week-3/#comment-40&quot;&gt;Isaac-Joshua Owens&lt;/a&gt;.

Awesome!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://johnyzaguirre.com/2018/10/06/cs50-week-3/#comment-40">Isaac-Joshua Owens</a>.</p>
<p>Awesome!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Isaac-Joshua Owens		</title>
		<link>https://johnyzaguirre.com/2018/10/06/cs50-week-3/#comment-40</link>

		<dc:creator><![CDATA[Isaac-Joshua Owens]]></dc:creator>
		<pubDate>Wed, 13 Nov 2019 00:03:09 +0000</pubDate>
		<guid isPermaLink="false">http://johnyzaguirre.com/?p=652#comment-40</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://johnyzaguirre.com/2018/10/06/cs50-week-3/#comment-39&quot;&gt;Johnny&lt;/a&gt;.

We&#039;re actually using the debugger from the CS50 IDE this year.  Did you have this when you took the course?  It makes everything so much easier.  I&#039;m going to start the python problem sets but once I check the pixel values I&#039;ll def let you know!  Thank you for being so responsive and supportive.  You rock!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://johnyzaguirre.com/2018/10/06/cs50-week-3/#comment-39">Johnny</a>.</p>
<p>We&#8217;re actually using the debugger from the CS50 IDE this year.  Did you have this when you took the course?  It makes everything so much easier.  I&#8217;m going to start the python problem sets but once I check the pixel values I&#8217;ll def let you know!  Thank you for being so responsive and supportive.  You rock!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Johnny		</title>
		<link>https://johnyzaguirre.com/2018/10/06/cs50-week-3/#comment-39</link>

		<dc:creator><![CDATA[Johnny]]></dc:creator>
		<pubDate>Tue, 12 Nov 2019 23:49:55 +0000</pubDate>
		<guid isPermaLink="false">http://johnyzaguirre.com/?p=652#comment-39</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://johnyzaguirre.com/2018/10/06/cs50-week-3/#comment-38&quot;&gt;Isaac Owens&lt;/a&gt;.

Happy to help! What happens when you run gdb? The pixel data structure should have some info as you step into the functions and check the value of the rgbs. Let me know how it goes. Always use GDB. It&#039;s tough at first but gives you a huge amount of information as you examine pieces of your code as it executes in slow motion. Thanks for your comment!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://johnyzaguirre.com/2018/10/06/cs50-week-3/#comment-38">Isaac Owens</a>.</p>
<p>Happy to help! What happens when you run gdb? The pixel data structure should have some info as you step into the functions and check the value of the rgbs. Let me know how it goes. Always use GDB. It&#8217;s tough at first but gives you a huge amount of information as you examine pieces of your code as it executes in slow motion. Thanks for your comment!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Isaac Owens		</title>
		<link>https://johnyzaguirre.com/2018/10/06/cs50-week-3/#comment-38</link>

		<dc:creator><![CDATA[Isaac Owens]]></dc:creator>
		<pubDate>Tue, 12 Nov 2019 23:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://johnyzaguirre.com/?p=652#comment-38</guid>

					<description><![CDATA[I tried to implement this code and it is not resizing the image correctly.  The top line of pixels are correct then everything beneath that is scrambled.]]></description>
			<content:encoded><![CDATA[<p>I tried to implement this code and it is not resizing the image correctly.  The top line of pixels are correct then everything beneath that is scrambled.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Johnny		</title>
		<link>https://johnyzaguirre.com/2018/10/06/cs50-week-3/#comment-22</link>

		<dc:creator><![CDATA[Johnny]]></dc:creator>
		<pubDate>Thu, 21 Feb 2019 13:57:03 +0000</pubDate>
		<guid isPermaLink="false">http://johnyzaguirre.com/?p=652#comment-22</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://johnyzaguirre.com/2018/10/06/cs50-week-3/#comment-21&quot;&gt;Vladimir&lt;/a&gt;.

Happy to help! Check out my blog posts that talk about debugging. What helped me the most was stepping through my program on instruction at a time. When you create a loop this is very helpful! Also do some simple tests using fread in an online REPL.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://johnyzaguirre.com/2018/10/06/cs50-week-3/#comment-21">Vladimir</a>.</p>
<p>Happy to help! Check out my blog posts that talk about debugging. What helped me the most was stepping through my program on instruction at a time. When you create a loop this is very helpful! Also do some simple tests using fread in an online REPL.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Vladimir		</title>
		<link>https://johnyzaguirre.com/2018/10/06/cs50-week-3/#comment-21</link>

		<dc:creator><![CDATA[Vladimir]]></dc:creator>
		<pubDate>Thu, 10 Jan 2019 09:07:15 +0000</pubDate>
		<guid isPermaLink="false">http://johnyzaguirre.com/?p=652#comment-21</guid>

					<description><![CDATA[Any hints on the &quot;recover&quot; problem? I&#039;m solving it for over 3 days now...]]></description>
			<content:encoded><![CDATA[<p>Any hints on the &#8220;recover&#8221; problem? I&#8217;m solving it for over 3 days now&#8230;</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
