<?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 z3rb.net</title>
	<atom:link href="http://z3rb.net/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://z3rb.net</link>
	<description>Ruairidh Barnes&#039; wee corner of the web</description>
	<lastBuildDate>Mon, 23 Apr 2012 18:15:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>Comment on Trip Report: Amsterdam Day 1 part 1 by Trip Report: Amsterdam Day 1 part 2 &#124; z3rb.net</title>
		<link>http://z3rb.net/2012/04/trip-report-amsterdam-day-1-part/#comment-880</link>
		<dc:creator>Trip Report: Amsterdam Day 1 part 2 &#124; z3rb.net</dc:creator>
		<pubDate>Mon, 23 Apr 2012 18:15:10 +0000</pubDate>
		<guid isPermaLink="false">http://z3rb.net/?p=73#comment-880</guid>
		<description>[...] z3rb.net   Ruairidh Barnes&#039; wee corner of the web    Skip to content HomeAboutReddit C# API        &#8592; Trip Report: Amsterdam Day 1 part 1 [...]</description>
		<content:encoded><![CDATA[<p>[...] z3rb.net   Ruairidh Barnes&#039; wee corner of the web    Skip to content HomeAboutReddit C# API        &larr; Trip Report: Amsterdam Day 1 part 1 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Reddit C# API by DanielHeth</title>
		<link>http://z3rb.net/reddit-c-api/#comment-406</link>
		<dc:creator>DanielHeth</dc:creator>
		<pubDate>Thu, 26 Jan 2012 17:05:58 +0000</pubDate>
		<guid isPermaLink="false">http://z3rb.net/?page_id=62#comment-406</guid>
		<description>ah... found it... https://ssl.reddit.com/prefs/feeds/
now onto the code... thanks anyways.</description>
		<content:encoded><![CDATA[<p>ah&#8230; found it&#8230; <a href="https://ssl.reddit.com/prefs/feeds/" rel="nofollow">https://ssl.reddit.com/prefs/feeds/</a><br />
now onto the code&#8230; thanks anyways.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Reddit C# API by DanielHeth</title>
		<link>http://z3rb.net/reddit-c-api/#comment-405</link>
		<dc:creator>DanielHeth</dc:creator>
		<pubDate>Thu, 26 Jan 2012 17:01:50 +0000</pubDate>
		<guid isPermaLink="false">http://z3rb.net/?page_id=62#comment-405</guid>
		<description>Is there a way to get an rss feed from the articles I&#039;ve liked?  I&#039;d like to have that feed... feed my twitter account so when I LIKE something, it&#039;s automatically tweeted for me.</description>
		<content:encoded><![CDATA[<p>Is there a way to get an rss feed from the articles I&#8217;ve liked?  I&#8217;d like to have that feed&#8230; feed my twitter account so when I LIKE something, it&#8217;s automatically tweeted for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Reddit C# API by Philip Spain</title>
		<link>http://z3rb.net/reddit-c-api/#comment-392</link>
		<dc:creator>Philip Spain</dc:creator>
		<pubDate>Sun, 22 Jan 2012 22:12:14 +0000</pubDate>
		<guid isPermaLink="false">http://z3rb.net/?page_id=62#comment-392</guid>
		<description>Creating the empty file beforehand didn&#039;t seem to correct the first issue for me at all, I simply got a SerializationException; however, your suggestion worked.

Any idea why? I&#039;m assuming it is because running the SaveCookie method first saves the serialized CookieContainer object that has been initialized to redditCookie into the file before LoadCookie attempts to read data out of it. Simply creating an empty file and not calling SaveCookie first means that LoadCookie has nothing to read.</description>
		<content:encoded><![CDATA[<p>Creating the empty file beforehand didn&#8217;t seem to correct the first issue for me at all, I simply got a SerializationException; however, your suggestion worked.</p>
<p>Any idea why? I&#8217;m assuming it is because running the SaveCookie method first saves the serialized CookieContainer object that has been initialized to redditCookie into the file before LoadCookie attempts to read data out of it. Simply creating an empty file and not calling SaveCookie first means that LoadCookie has nothing to read.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Reddit C# API by Austin Prete</title>
		<link>http://z3rb.net/reddit-c-api/#comment-311</link>
		<dc:creator>Austin Prete</dc:creator>
		<pubDate>Sat, 07 Jan 2012 02:05:21 +0000</pubDate>
		<guid isPermaLink="false">http://z3rb.net/?page_id=62#comment-311</guid>
		<description>I apologize for apparently not reading your original post.  I see that you addressed my first issue, though if you don&#039;t want to have to leave Visual Studio, or whatever IDE you&#039;re using, my solution still works.  Unless of course there is a valid reason not to, which is likely the case.</description>
		<content:encoded><![CDATA[<p>I apologize for apparently not reading your original post.  I see that you addressed my first issue, though if you don&#8217;t want to have to leave Visual Studio, or whatever IDE you&#8217;re using, my solution still works.  Unless of course there is a valid reason not to, which is likely the case.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Reddit C# API by Austin Prete</title>
		<link>http://z3rb.net/reddit-c-api/#comment-310</link>
		<dc:creator>Austin Prete</dc:creator>
		<pubDate>Sat, 07 Jan 2012 01:57:50 +0000</pubDate>
		<guid isPermaLink="false">http://z3rb.net/?page_id=62#comment-310</guid>
		<description>I recently started playing around with this code, and I might be able to help.  However, I would need to see your specific use of the code to be of any use.  Ruairidh might be able to diagnose your problem without the need to review your code, in which case you might want to wait for his reply.  If you do want me to take a look, upload the project file somewhere and reply with the link.</description>
		<content:encoded><![CDATA[<p>I recently started playing around with this code, and I might be able to help.  However, I would need to see your specific use of the code to be of any use.  Ruairidh might be able to diagnose your problem without the need to review your code, in which case you might want to wait for his reply.  If you do want me to take a look, upload the project file somewhere and reply with the link.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Reddit C# API by Austin Prete</title>
		<link>http://z3rb.net/reddit-c-api/#comment-309</link>
		<dc:creator>Austin Prete</dc:creator>
		<pubDate>Sat, 07 Jan 2012 01:49:19 +0000</pubDate>
		<guid isPermaLink="false">http://z3rb.net/?page_id=62#comment-309</guid>
		<description>In adding this API to one of my projects I encountered a couple of problems.  The first was an error occurring in the RedditAPI constructor.  Your code tries to call Loadcookie() before Savecookie() was ever called, resulting in an error as a result of Loadcookie() not being able to load the file.  My simple fix was to call Savecookie() right before the code:
&lt;code&gt;
redditCookie = Loadcookie(cookiefilename);
&lt;/code&gt;  
Of course, that&#039;s only necessary on the first run, as after that the cookie file has already been created.  

The second problem, and thus far the only other one, took place in the HasMail() function.  In the if statement your code reads:
&lt;code&gt;
if ((string)me[&quot;has_mail&quot;] == &quot;true&quot;)
&lt;/code&gt;
However, at least in .NET 4.0.30319, this results in the error &quot;Cannot cast &#039;me[&quot;has_mail&quot;]&#039; (which has an actual type of &#039;bool&#039;) to &#039;string&#039; &quot;.  I changed the if statement to read:
&lt;code&gt;
if (Convert.ToString(me[&quot;has_mail&quot;]) == &quot;true&quot;)
&lt;/code&gt;
That did the trick for my version of .NET.

Despite my two minor complaints (which would be even less minor for someone that wasn&#039;t a C# novice), this API wrapper is fantastic.  I actually plan on writing my own in the next week or so, just as practice.  I will likely fall back on yours though, as your code is much better than mine.  Anyway, I&#039;d be interested to know if the problems I encountered aren&#039;t applicable for you, for whatever reason.</description>
		<content:encoded><![CDATA[<p>In adding this API to one of my projects I encountered a couple of problems.  The first was an error occurring in the RedditAPI constructor.  Your code tries to call Loadcookie() before Savecookie() was ever called, resulting in an error as a result of Loadcookie() not being able to load the file.  My simple fix was to call Savecookie() right before the code:<br />
<code><br />
redditCookie = Loadcookie(cookiefilename);<br />
</code><br />
Of course, that&#8217;s only necessary on the first run, as after that the cookie file has already been created.  </p>
<p>The second problem, and thus far the only other one, took place in the HasMail() function.  In the if statement your code reads:<br />
<code><br />
if ((string)me["has_mail"] == "true")<br />
</code><br />
However, at least in .NET 4.0.30319, this results in the error &#8220;Cannot cast &#8216;me["has_mail"]&#8216; (which has an actual type of &#8216;bool&#8217;) to &#8216;string&#8217; &#8220;.  I changed the if statement to read:<br />
<code><br />
if (Convert.ToString(me["has_mail"]) == "true")<br />
</code><br />
That did the trick for my version of .NET.</p>
<p>Despite my two minor complaints (which would be even less minor for someone that wasn&#8217;t a C# novice), this API wrapper is fantastic.  I actually plan on writing my own in the next week or so, just as practice.  I will likely fall back on yours though, as your code is much better than mine.  Anyway, I&#8217;d be interested to know if the problems I encountered aren&#8217;t applicable for you, for whatever reason.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Reddit C# API by SEO for NET</title>
		<link>http://z3rb.net/reddit-c-api/#comment-280</link>
		<dc:creator>SEO for NET</dc:creator>
		<pubDate>Mon, 02 Jan 2012 15:41:41 +0000</pubDate>
		<guid isPermaLink="false">http://z3rb.net/?page_id=62#comment-280</guid>
		<description>Hello,

thank you so much for implementing this. I just have a problem (stack trace attached below). 

I used your .cs file and created new RedditAPI instance with my credentials. During the runtime the following exception is raised:

System.Runtime.Serialization.SerializationException was unhandled
  Message=Attempting to deserialize an empty stream.
  Source=mscorlib
  StackTrace:
       at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
       at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream)
       at AutomaticSubmitter.RedditAPI.Loadcookie(String filename) in D:\My projects\AutomaticSubmitter\AutomaticSubmitter\Reddit.cs:line 318
       at AutomaticSubmitter.RedditAPI..ctor(String user, String pswd, String cookiefilename) in D:\My projects\AutomaticSubmitter\AutomaticSubmitter\Reddit.cs:line 72
       at AutomaticSubmitter.Program.TestRedditApi() in D:\My projects\AutomaticSubmitter\AutomaticSubmitter\Program.cs:line 26
       at AutomaticSubmitter.Program.Main(String[] args) in D:\My projects\AutomaticSubmitter\AutomaticSubmitter\Program.cs:line 17
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: 

Any idea what might help?

Thank you in advance!</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>thank you so much for implementing this. I just have a problem (stack trace attached below). </p>
<p>I used your .cs file and created new RedditAPI instance with my credentials. During the runtime the following exception is raised:</p>
<p>System.Runtime.Serialization.SerializationException was unhandled<br />
  Message=Attempting to deserialize an empty stream.<br />
  Source=mscorlib<br />
  StackTrace:<br />
       at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)<br />
       at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream)<br />
       at AutomaticSubmitter.RedditAPI.Loadcookie(String filename) in D:\My projects\AutomaticSubmitter\AutomaticSubmitter\Reddit.cs:line 318<br />
       at AutomaticSubmitter.RedditAPI..ctor(String user, String pswd, String cookiefilename) in D:\My projects\AutomaticSubmitter\AutomaticSubmitter\Reddit.cs:line 72<br />
       at AutomaticSubmitter.Program.TestRedditApi() in D:\My projects\AutomaticSubmitter\AutomaticSubmitter\Program.cs:line 26<br />
       at AutomaticSubmitter.Program.Main(String[] args) in D:\My projects\AutomaticSubmitter\AutomaticSubmitter\Program.cs:line 17<br />
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)<br />
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)<br />
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()<br />
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)<br />
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)<br />
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)<br />
       at System.Threading.ThreadHelper.ThreadStart()<br />
  InnerException: </p>
<p>Any idea what might help?</p>
<p>Thank you in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Reddit C# API by Reddit C# API wrapper &#124; z3rb.net</title>
		<link>http://z3rb.net/reddit-c-api/#comment-83</link>
		<dc:creator>Reddit C# API wrapper &#124; z3rb.net</dc:creator>
		<pubDate>Mon, 18 Jul 2011 01:00:47 +0000</pubDate>
		<guid isPermaLink="false">http://z3rb.net/?page_id=62#comment-83</guid>
		<description>[...]   Ruairidh Barnes&#039; wee corner of the web    Skip to content HomeAboutReddit C# API        &#8592; 30 Day Song Challenge &#8211; [...]</description>
		<content:encoded><![CDATA[<p>[...]   Ruairidh Barnes&#039; wee corner of the web    Skip to content HomeAboutReddit C# API        &larr; 30 Day Song Challenge &#8211; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Trip report: easyJet Flight 6912 MUC to EDI by mytbc &#187; Blog Archive &#187; To Munich and Beyond! Part Seven: Up in the Air!</title>
		<link>http://z3rb.net/2011/05/trip-report-easyjet-flight-6912-muc-to-edi/#comment-22</link>
		<dc:creator>mytbc &#187; Blog Archive &#187; To Munich and Beyond! Part Seven: Up in the Air!</dc:creator>
		<pubDate>Mon, 16 May 2011 21:35:02 +0000</pubDate>
		<guid isPermaLink="false">http://rb.roostercogburn.co.uk/?p=9#comment-22</guid>
		<description>[...] of town was at about midday, meaning I wanted to be at the airport for about 10am. My brother was slightly hungover, but I was feeling fresh as a daisy, and pretty darned excited. In a few hours I&#8217;d once more [...]</description>
		<content:encoded><![CDATA[<p>[...] of town was at about midday, meaning I wanted to be at the airport for about 10am. My brother was slightly hungover, but I was feeling fresh as a daisy, and pretty darned excited. In a few hours I&#8217;d once more [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

