<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>FearTheCowboy -- Garrett Serack's blog - Latest Comments</title><link xmlns="http://www.w3.org/2005/Atom" rel="http://api.friendfeed.com/2008/03#sup" href="http://disqus.com/sup/all.sup#forumcomments-af5e9320" type="application/json"/><link>http://fearthecowboy.disqus.com/</link><description></description><atom:link href="http://fearthecowboy.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 04 Apr 2012 12:02:47 -0000</lastBuildDate><item><title>Re: Fixing WebRequest&amp;#8217;s desire to throw exceptions instead of returning status</title><link>http://fearthecowboy.com/2011/09/02/fixing-webrequests-desire-to-throw-exceptions-instead-of-returning-status/#comment-486115563</link><description>&lt;p&gt;In my experience so far today (Framework 4, VS 2010) it's returning 404 errors even on good URLs.I can use the debug Immediate window to verify the URL, copy it and paste it into my browser.In the browser the URL comes up just fine.&lt;br&gt;The webRequest is somehow trashing the URL:&lt;/p&gt;

&lt;p&gt;The code:&lt;br&gt;ohrRequest = (HttpWebRequest)WebRequest.Create(sURL);   //&amp;lt;- this is the URL I can type into the browser and get it.    ohrRequest.AllowAutoRedirect = _allowAutoRedirect;    ohrRequest.Method = "GET";        if(wProxy != null) ohrRequest.Proxy = wProxy;    ohrRequest.Headers["Cookie"] = getCookieHeader();    HttpWebResponse ohrResponse = (HttpWebResponse)ohrRequest.GetResponse();    return handleResponse(ohrResponse);&lt;/p&gt;

&lt;p&gt;As you pointed out it throws an error on the GetResponse() line.CLASSIC MICROSOFT - STUPID&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Sutton</dc:creator><pubDate>Wed, 04 Apr 2012 12:02:47 -0000</pubDate></item><item><title>Re: Fixing WebRequest&amp;#8217;s desire to throw exceptions instead of returning status</title><link>http://fearthecowboy.com/2011/09/02/fixing-webrequests-desire-to-throw-exceptions-instead-of-returning-status/#comment-398678858</link><description>&lt;p&gt;nice post dude...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Srinath Janakiraman</dc:creator><pubDate>Mon, 02 Jan 2012 05:57:34 -0000</pubDate></item><item><title>Re: Fixing WebRequest&amp;#8217;s desire to throw exceptions instead of returning status</title><link>http://fearthecowboy.com/2011/09/02/fixing-webrequests-desire-to-throw-exceptions-instead-of-returning-status/#comment-301464262</link><description>&lt;p&gt;Just switched to Disqus for comments.  Testing now.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Garrett Serack</dc:creator><pubDate>Fri, 02 Sep 2011 20:57:21 -0000</pubDate></item><item><title>Re: We&amp;#8217;ve Moved CoApp code hosting to Github</title><link>http://fearthecowboy.com/2011/04/26/weve-moved-coapp-code-hosting-to-github/#comment-301462004</link><description>&lt;p&gt;As a certifiable git/github zealot/fanboy I am tickled pink with your decision :P&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christof Jans</dc:creator><pubDate>Wed, 27 Apr 2011 16:50:19 -0000</pubDate></item><item><title>Re: We&amp;#8217;ve Moved CoApp code hosting to Github</title><link>http://fearthecowboy.com/2011/04/26/weve-moved-coapp-code-hosting-to-github/#comment-301462000</link><description>&lt;p&gt;Well, *personally* I prefer the command line anyway, and it's not like I had a prior preference with hg.&lt;/p&gt;

&lt;p&gt;And, actually, I was trying the hg-git stuff the other day, and it wouldn't push for me at all (looked like it was, but didn't). There were a few others I found with the same problem, but no resolution.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Garrett Serack</dc:creator><pubDate>Tue, 26 Apr 2011 20:00:59 -0000</pubDate></item><item><title>Re: We&amp;#8217;ve Moved CoApp code hosting to Github</title><link>http://fearthecowboy.com/2011/04/26/weve-moved-coapp-code-hosting-to-github/#comment-301461998</link><description>&lt;p&gt;You don't have to mess with msysgit if you don't want to. You can use Mercurial with the hg-git plugin (developed by github) to completely manage github repos. Especially since there's a Mercurial integration plugin for Visual Studio 2010. If you have problems with msysgit, it is a very good alternative.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Conan Kudo (ニール・ゴンパ)</dc:creator><pubDate>Tue, 26 Apr 2011 19:58:32 -0000</pubDate></item><item><title>Re: Binding Events to .NET 4.0 Tasks instead of Objects (Part 1)</title><link>http://fearthecowboy.com/2011/04/13/binding-events-to-net-4-0-tasks-instead-of-objects-part-1/#comment-301461988</link><description>&lt;p&gt;I'm writing up part two right now!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Garrett Serack</dc:creator><pubDate>Wed, 13 Apr 2011 17:35:14 -0000</pubDate></item><item><title>Re: Binding Events to .NET 4.0 Tasks instead of Objects (Part 1)</title><link>http://fearthecowboy.com/2011/04/13/binding-events-to-net-4-0-tasks-instead-of-objects-part-1/#comment-301461984</link><description>&lt;p&gt;Damn I actually sort of get why this is so cool now. I'm interested in learning more!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Eric</dc:creator><pubDate>Wed, 13 Apr 2011 17:24:56 -0000</pubDate></item><item><title>Re: Binding Events to .NET 4.0 Tasks instead of Objects (Part 1)</title><link>http://fearthecowboy.com/2011/04/13/binding-events-to-net-4-0-tasks-instead-of-objects-part-1/#comment-301461983</link><description>&lt;p&gt;Yes, you are correct; the events are executed on the task's thread, but it's trivial push notifications back to the UI thread:&lt;/p&gt;

&lt;p&gt;Similar to my last code, but using Invoke with a lambda to jump back to the UI thread.&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;&lt;pre class="brush: c-sharp; toolbar: false"&gt;/// this simplifies the use of Invoke with a lambda expression.&lt;br&gt;protected void Invoke(Action action) {&lt;br&gt;    base.Invoke(action);&lt;br&gt;}&lt;p&gt;&lt;/p&gt;

&lt;p&gt;public void DoSomeOperation() {&lt;br&gt;    // *** Example One *** &lt;br&gt;    // Listening to events&lt;br&gt;    // but attaching after the task starts&lt;br&gt;    var taskOne = CoTask.Factory.StartNew(() =&amp;gt; {&lt;br&gt;        for (var q = 10; q &amp;gt; 0; q--) {&lt;br&gt;            // simulate a longer running operation&lt;br&gt;            Thread.Sleep(200);&lt;/p&gt;

&lt;p&gt;            // that occasionally notifies anyone who cares to listen.&lt;br&gt;            TestEvents.Invoke.Message1("Message From taskOne", q);&lt;br&gt;        }&lt;br&gt;    });&lt;/p&gt;

&lt;p&gt;    // start listening to messages after the task has started. &lt;br&gt;    ((TestEvents)taskOne).Message1 += (aString, anInt) =&amp;gt; {&lt;br&gt;        Invoke( () =&amp;gt; {&lt;br&gt;            // because of Invoke, this ends up back on the UI thread.&lt;br&gt;            textBox1.Text = "The Message is " + aString;&lt;br&gt;        });&lt;br&gt;    };&lt;br&gt;}&lt;br&gt;&lt;/p&gt;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Garrett Serack</dc:creator><pubDate>Wed, 13 Apr 2011 17:12:38 -0000</pubDate></item><item><title>Re: Binding Events to .NET 4.0 Tasks instead of Objects (Part 1)</title><link>http://fearthecowboy.com/2011/04/13/binding-events-to-net-4-0-tasks-instead-of-objects-part-1/#comment-301461982</link><description>&lt;p&gt;Indeed, the TPL is awesome. And when the async stuff if out, it will be even more awesome. &lt;/p&gt;

&lt;p&gt;Just out of curiosity: I guess the events are dispatched/executed on the 'task'-thread right? I guess for GUI apps you would add a SynchronisationContext to dispatch the stuff back to the GUI thread, like the async-CTP does it.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gamlor</dc:creator><pubDate>Wed, 13 Apr 2011 16:35:56 -0000</pubDate></item><item><title>Re: Simulating Symlinks for Windows XP/2003</title><link>http://fearthecowboy.com/2011/04/07/simulating-symlinks-for-windows-xp2003/#comment-301461985</link><description>&lt;p&gt;I've just retested deleting a junction point on XP via explorer. It does not delete the contents.&lt;/p&gt;

&lt;p&gt;Even if it did; the deletion of files or symlinks without using the package manager (or add/remove programs) is a foolish and insane idea, and I would have no problem telling them "don't do that" and "too bad for you" if they did.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Garrett Serack</dc:creator><pubDate>Sun, 10 Apr 2011 09:57:00 -0000</pubDate></item><item><title>Re: Simulating Symlinks for Windows XP/2003</title><link>http://fearthecowboy.com/2011/04/07/simulating-symlinks-for-windows-xp2003/#comment-301461981</link><description>&lt;p&gt;I have a few remarks:&lt;/p&gt;

&lt;p&gt;- Junction points *do* support cross-volume links. They just do not support relative paths.&lt;br&gt;- In Windows XP junctions are kinda dangerous because explorer does not understand them. If you delete a junction from explorer the files in the junction target directory get deleted as well.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bert</dc:creator><pubDate>Fri, 08 Apr 2011 19:59:31 -0000</pubDate></item><item><title>Re: Simulating Symlinks for Windows XP/2003</title><link>http://fearthecowboy.com/2011/04/07/simulating-symlinks-for-windows-xp2003/#comment-301461980</link><description>&lt;p&gt;Funny, junctions do work just fine in Explorer for me, just as I'd expect. What problems are you finding?&lt;/p&gt;

&lt;p&gt;And really, the idea is that people generally shouldn't be deleting applications by simply removing files out of c:\program files , and they shouldn't delete out of c:\apps either... that's why we have Add/remove programs.&lt;/p&gt;

&lt;p&gt;I'm not sure what 'interference' you're expecting.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Garrett Serack</dc:creator><pubDate>Fri, 08 Apr 2011 08:46:21 -0000</pubDate></item><item><title>Re: Simulating Symlinks for Windows XP/2003</title><link>http://fearthecowboy.com/2011/04/07/simulating-symlinks-for-windows-xp2003/#comment-301461979</link><description>&lt;p&gt;One of the problems with junction points is that explorer doesn't handle them like symlinks are handled and deleting it using any other tool will result in the original files being deleted first and then the junction point being removed. &lt;/p&gt;

&lt;p&gt;How will you protect it from being interfered with by other applications?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sam Moffatt</dc:creator><pubDate>Fri, 08 Apr 2011 07:01:14 -0000</pubDate></item><item><title>Re: Simulating Symlinks for Windows XP/2003</title><link>http://fearthecowboy.com/2011/04/07/simulating-symlinks-for-windows-xp2003/#comment-301461978</link><description>&lt;p&gt;With regards to symlinks, no absolutely no support on FAT volumes. &lt;/p&gt;

&lt;p&gt;For CoApp V1, I'm not doing any testing on FAT systems at all; and without hardlink, symlink or junction support, CoApp packages won't install correctly to FAT volumes.&lt;/p&gt;

&lt;p&gt;For CoApp V2 (somewhat down the road), where we aim to also support 'portable' installs of applications (by using local SxS support for shared libraries, etc), packages should be able to install into a FAT volume.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Garrett Serack</dc:creator><pubDate>Thu, 07 Apr 2011 13:28:36 -0000</pubDate></item><item><title>Re: Simulating Symlinks for Windows XP/2003</title><link>http://fearthecowboy.com/2011/04/07/simulating-symlinks-for-windows-xp2003/#comment-301461975</link><description>&lt;p&gt;What about WinXP/FAT32 systems? Not supported?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jeff Hardy</dc:creator><pubDate>Thu, 07 Apr 2011 12:15:32 -0000</pubDate></item><item><title>Re: CoApp in the first 90 days</title><link>http://fearthecowboy.com/2010/06/28/coapp-in-the-first-90-days/#comment-301461946</link><description>&lt;p&gt;Hi Garrett,&lt;br&gt;I run (with others) the Ottawa UG and if you are passing by, We also like to see this presentation about CoApp.&lt;br&gt;Let me know if it's possible.  Ho! your blog rocks! :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jean-Rene Roy</dc:creator><pubDate>Mon, 05 Jul 2010 16:20:13 -0000</pubDate></item><item><title>Re: CoApp in the first 90 days</title><link>http://fearthecowboy.com/2010/06/28/coapp-in-the-first-90-days/#comment-301461944</link><description>&lt;p&gt;Hi Garrett,&lt;br&gt;I run (with others) the Ottawa UG and if you are passing by, We also like to see this presentation about CoApp.&lt;br&gt;Let me know if it's possible.  Ho! your blog rocks! :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jean-Rene Roy</dc:creator><pubDate>Mon, 05 Jul 2010 16:20:13 -0000</pubDate></item><item><title>Re: What CoApp packages would you like to see?</title><link>http://fearthecowboy.com/2010/05/05/what-coapp-packages-would-you-like-to-see/#comment-301461964</link><description>&lt;p&gt;I'd really like to see a bunch of the core FLOSS "system" and "desktop" libraries as CoApp packages. glib. gtk2. qt4. boost. cairo.&lt;/p&gt;

&lt;p&gt;There are so many little FLOSS apps out there which provide a tiny rpm or deb for Linux, but a large installer for Windows because they need to provide their own version of, e.g. GTK2, in order for installation to be easy enough for people to bother with. If the authors of these apps could rely on CoApp packages of these core libraries being available (at least for automatic dependency resolution download, if not already installed) then this would allow/encourage them to make their own CoApp packages, which would be much smaller and more streamlined than their existing installers. As a result, I think much more software would suddenly become accessible to "normal users" under Windows.&lt;/p&gt;

&lt;p&gt;After that, it'd be really nice to see KDE or Gnome, although I think those projects have enough manpower to make their own CoApp packages once the tech becomes available. They pretty much have Windows installers of one form or another anyway, and this is going to make things so much easier. (Not that the system libraries I mentioned previously don't have manpower, but I get the feeling that library authors are less concerned with doing their own packaging than app authors)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">karellen</dc:creator><pubDate>Wed, 05 May 2010 20:28:21 -0000</pubDate></item></channel></rss>
