<?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 for Learn | Think | Code	</title>
	<atom:link href="https://johnyzaguirre.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>https://johnyzaguirre.com</link>
	<description>Projects i&#039;ve worked on, articles i&#039;ve written, and tutorials i&#039;ve recorded</description>
	<lastBuildDate>Tue, 22 Dec 2020 11:42:20 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.6.8</generator>
	<item>
		<title>
		Comment on CS50 Week 1: Walkthroughs by Mazen Mohamed		</title>
		<link>https://johnyzaguirre.com/2018/02/10/cs50-week-1-walkthroughs/#comment-311</link>

		<dc:creator><![CDATA[Mazen Mohamed]]></dc:creator>
		<pubDate>Tue, 22 Dec 2020 11:42:20 +0000</pubDate>
		<guid isPermaLink="false">http://johnyzaguirre.com/?p=216#comment-311</guid>

					<description><![CDATA[&lt;em&gt;Thank you&lt;/em&gt;]]></description>
			<content:encoded><![CDATA[<p><em>Thank you</em></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Problem Set 7: CS50 Finance by Eric P		</title>
		<link>https://johnyzaguirre.com/2020/01/02/problem-set-7-cs50-finance/#comment-310</link>

		<dc:creator><![CDATA[Eric P]]></dc:creator>
		<pubDate>Thu, 27 Aug 2020 23:21:53 +0000</pubDate>
		<guid isPermaLink="false">https://johnyzaguirre.com/?p=1523#comment-310</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://johnyzaguirre.com/2020/01/02/problem-set-7-cs50-finance/#comment-309&quot;&gt;Johnny&lt;/a&gt;.

Thank you for the tip. I have now added the correct tables and values inside but I get this error: self.c.execute(&#039;INSERT INTO transactions VALUES (?,?,?,?,?,?)&#039;, (self.id,) + row)
sqlite3.IntegrityError: UNIQUE constraint failed: transactions.user_id

My transaction table contains the following in order from col 0 to 5: user_id, type, symbol, price, shares, date_time. WHat am I dong wrong?]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://johnyzaguirre.com/2020/01/02/problem-set-7-cs50-finance/#comment-309">Johnny</a>.</p>
<p>Thank you for the tip. I have now added the correct tables and values inside but I get this error: self.c.execute(&#8216;INSERT INTO transactions VALUES (?,?,?,?,?,?)&#8217;, (self.id,) + row)<br />
sqlite3.IntegrityError: UNIQUE constraint failed: transactions.user_id</p>
<p>My transaction table contains the following in order from col 0 to 5: user_id, type, symbol, price, shares, date_time. WHat am I dong wrong?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Problem Set 7: CS50 Finance by Johnny		</title>
		<link>https://johnyzaguirre.com/2020/01/02/problem-set-7-cs50-finance/#comment-309</link>

		<dc:creator><![CDATA[Johnny]]></dc:creator>
		<pubDate>Thu, 27 Aug 2020 14:20:42 +0000</pubDate>
		<guid isPermaLink="false">https://johnyzaguirre.com/?p=1523#comment-309</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://johnyzaguirre.com/2020/01/02/problem-set-7-cs50-finance/#comment-308&quot;&gt;Eric P&lt;/a&gt;.

Hi Eric,
Correct, I would take a look in at what tables you have in the terminal. Do a quick google for sqlite commands to view all tables. Thanks for your comment!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://johnyzaguirre.com/2020/01/02/problem-set-7-cs50-finance/#comment-308">Eric P</a>.</p>
<p>Hi Eric,<br />
Correct, I would take a look in at what tables you have in the terminal. Do a quick google for sqlite commands to view all tables. Thanks for your comment!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Problem Set 7: CS50 Finance by Eric P		</title>
		<link>https://johnyzaguirre.com/2020/01/02/problem-set-7-cs50-finance/#comment-308</link>

		<dc:creator><![CDATA[Eric P]]></dc:creator>
		<pubDate>Thu, 27 Aug 2020 11:56:18 +0000</pubDate>
		<guid isPermaLink="false">https://johnyzaguirre.com/?p=1523#comment-308</guid>

					<description><![CDATA[Hi thank you very much for posting this. It helped a lot. When  I run your code i get this error: self.c.execute(&#039;SELECT * FROM transactions where user_id=?&#039;, (self.id))
sqlite3.OperationalError: no such table: transactions.
Do I have to create the table even though it seems likes its already been created?]]></description>
			<content:encoded><![CDATA[<p>Hi thank you very much for posting this. It helped a lot. When  I run your code i get this error: self.c.execute(&#8216;SELECT * FROM transactions where user_id=?&#8217;, (self.id))<br />
sqlite3.OperationalError: no such table: transactions.<br />
Do I have to create the table even though it seems likes its already been created?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Problem Set 7: CS50 Finance by Johnny		</title>
		<link>https://johnyzaguirre.com/2020/01/02/problem-set-7-cs50-finance/#comment-307</link>

		<dc:creator><![CDATA[Johnny]]></dc:creator>
		<pubDate>Mon, 03 Aug 2020 00:13:44 +0000</pubDate>
		<guid isPermaLink="false">https://johnyzaguirre.com/?p=1523#comment-307</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://johnyzaguirre.com/2020/01/02/problem-set-7-cs50-finance/#comment-306&quot;&gt;jacob&lt;/a&gt;.

Thank you! It&#039;s their balance, and some other stuff too. Check out the code starting on line 42 here:
https://gist.github.com/sojohnnysaid/46a9143472ef0c8eb906da159837b47b#file-application-py]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://johnyzaguirre.com/2020/01/02/problem-set-7-cs50-finance/#comment-306">jacob</a>.</p>
<p>Thank you! It&#8217;s their balance, and some other stuff too. Check out the code starting on line 42 here:<br />
<a href="https://gist.github.com/sojohnnysaid/46a9143472ef0c8eb906da159837b47b#file-application-py" rel="nofollow ugc">https://gist.github.com/sojohnnysaid/46a9143472ef0c8eb906da159837b47b#file-application-py</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Problem Set 7: CS50 Finance by jacob		</title>
		<link>https://johnyzaguirre.com/2020/01/02/problem-set-7-cs50-finance/#comment-306</link>

		<dc:creator><![CDATA[jacob]]></dc:creator>
		<pubDate>Sun, 02 Aug 2020 23:54:23 +0000</pubDate>
		<guid isPermaLink="false">https://johnyzaguirre.com/?p=1523#comment-306</guid>

					<description><![CDATA[This is amazing, great job. I have a question though... What all goes into the portfolio table and what is each variables types? This is the only thing which is confusing me.
Thank You!!!]]></description>
			<content:encoded><![CDATA[<p>This is amazing, great job. I have a question though&#8230; What all goes into the portfolio table and what is each variables types? This is the only thing which is confusing me.<br />
Thank You!!!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Problem Set 7: CS50 Finance by Matt		</title>
		<link>https://johnyzaguirre.com/2020/01/02/problem-set-7-cs50-finance/#comment-305</link>

		<dc:creator><![CDATA[Matt]]></dc:creator>
		<pubDate>Wed, 22 Jul 2020 04:09:40 +0000</pubDate>
		<guid isPermaLink="false">https://johnyzaguirre.com/?p=1523#comment-305</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://johnyzaguirre.com/2020/01/02/problem-set-7-cs50-finance/#comment-304&quot;&gt;Johnny&lt;/a&gt;.

Thanks, turns out self.id and row had 5 values, and the table transactions had 6, just got rid of a column on the table and it works.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://johnyzaguirre.com/2020/01/02/problem-set-7-cs50-finance/#comment-304">Johnny</a>.</p>
<p>Thanks, turns out self.id and row had 5 values, and the table transactions had 6, just got rid of a column on the table and it works.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Problem Set 7: CS50 Finance by Johnny		</title>
		<link>https://johnyzaguirre.com/2020/01/02/problem-set-7-cs50-finance/#comment-304</link>

		<dc:creator><![CDATA[Johnny]]></dc:creator>
		<pubDate>Tue, 21 Jul 2020 19:48:14 +0000</pubDate>
		<guid isPermaLink="false">https://johnyzaguirre.com/?p=1523#comment-304</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://johnyzaguirre.com/2020/01/02/problem-set-7-cs50-finance/#comment-303&quot;&gt;Matt&lt;/a&gt;.

I would print() the self.id and row and see what you are working with. Then I would make sure those question marks add up to the same number of values. Good luck!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://johnyzaguirre.com/2020/01/02/problem-set-7-cs50-finance/#comment-303">Matt</a>.</p>
<p>I would print() the self.id and row and see what you are working with. Then I would make sure those question marks add up to the same number of values. Good luck!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Problem Set 7: CS50 Finance by Matt		</title>
		<link>https://johnyzaguirre.com/2020/01/02/problem-set-7-cs50-finance/#comment-303</link>

		<dc:creator><![CDATA[Matt]]></dc:creator>
		<pubDate>Tue, 21 Jul 2020 17:12:52 +0000</pubDate>
		<guid isPermaLink="false">https://johnyzaguirre.com/?p=1523#comment-303</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://johnyzaguirre.com/2020/01/02/problem-set-7-cs50-finance/#comment-301&quot;&gt;Johnny&lt;/a&gt;.

Got it, I added all the correct tables and fixed this. But I&#039;ve come up with another problem. I keep on getting this error when going to buy stocks:

self.c.execute(&#039;INSERT INTO transactions VALUES (?,?,?,?,?,?)&#039;, (self.id,) + row)
sqlite3.ProgrammingError: Incorrect number of bindings supplied. The current statement uses 6, and there are 5 supplied.

After pressing buy I get the error, but on the homepage i&#039;ve got the correct info with shares, costs, etc. This has puzzled me for some time. Again, sorry to bother you!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://johnyzaguirre.com/2020/01/02/problem-set-7-cs50-finance/#comment-301">Johnny</a>.</p>
<p>Got it, I added all the correct tables and fixed this. But I&#8217;ve come up with another problem. I keep on getting this error when going to buy stocks:</p>
<p>self.c.execute(&#8216;INSERT INTO transactions VALUES (?,?,?,?,?,?)&#8217;, (self.id,) + row)<br />
sqlite3.ProgrammingError: Incorrect number of bindings supplied. The current statement uses 6, and there are 5 supplied.</p>
<p>After pressing buy I get the error, but on the homepage i&#8217;ve got the correct info with shares, costs, etc. This has puzzled me for some time. Again, sorry to bother you!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Problem Set 7: CS50 Finance by Johnny		</title>
		<link>https://johnyzaguirre.com/2020/01/02/problem-set-7-cs50-finance/#comment-302</link>

		<dc:creator><![CDATA[Johnny]]></dc:creator>
		<pubDate>Tue, 21 Jul 2020 12:26:10 +0000</pubDate>
		<guid isPermaLink="false">https://johnyzaguirre.com/?p=1523#comment-302</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://johnyzaguirre.com/2020/01/02/problem-set-7-cs50-finance/#comment-299&quot;&gt;Michael Ofengenden&lt;/a&gt;.

Check the code examples where I use c.execute and you will find all the table names.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://johnyzaguirre.com/2020/01/02/problem-set-7-cs50-finance/#comment-299">Michael Ofengenden</a>.</p>
<p>Check the code examples where I use c.execute and you will find all the table names.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
