<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Stephen Belanger - 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-6593925c" type="application/json"/><link>http://stephenbelanger.disqus.com/</link><description></description><atom:link href="http://stephenbelanger.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Sun, 22 Apr 2012 22:59:16 -0000</lastBuildDate><item><title>Re: How to make Socket.IO work behind nginx (mostly)</title><link>http://stephenbelanger.com/2011/09/21/how-to-make-socket-io-work-behind-nginx-mostly/#comment-506523731</link><description>&lt;p&gt;thank you! you just saved me heaps of time :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bob Axford</dc:creator><pubDate>Sun, 22 Apr 2012 22:59:16 -0000</pubDate></item><item><title>Re: jquery.flash v1.3.1 &amp;#8211; Squashing IE-related bugs.</title><link>http://stephenbelanger.com/2010/01/02/jquery-flash-v1-3-1-squashing-ie-related-bugs/#comment-476822062</link><description>&lt;p&gt;@Justin, great find right there.  If anyone is having layering issues with jquery.flash in Chrome, this is the solution.  As Justin points out, add "type" to "availparams" and set the "type" in your jQuery call.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matthew Clemmons</dc:creator><pubDate>Mon, 26 Mar 2012 18:33:42 -0000</pubDate></item><item><title>Re: jquery.flash &amp;#8211; Who needs swfobject when you have this?</title><link>http://stephenbelanger.com/2009/10/04/jquery-flash-who-needs-swfobject-when-you-have-this/#comment-476369356</link><description>&lt;p&gt; if flash player is not installed in the pc then jquery slider run if flashplayer is installed then flash file run &lt;/p&gt;

&lt;p&gt;can somebody tell me this one solution i need this guidelines&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gmd_fayyaz</dc:creator><pubDate>Mon, 26 Mar 2012 08:47:43 -0000</pubDate></item><item><title>Re: How to make Socket.IO work behind nginx (mostly)</title><link>http://stephenbelanger.com/2011/09/21/how-to-make-socket-io-work-behind-nginx-mostly/#comment-468784301</link><description>&lt;p&gt;Thanks!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Автоматическая Подтверждения</dc:creator><pubDate>Mon, 19 Mar 2012 01:25:02 -0000</pubDate></item><item><title>Re: How to make Socket.IO work behind nginx (mostly)</title><link>http://stephenbelanger.com/2011/09/21/how-to-make-socket-io-work-behind-nginx-mostly/#comment-456306815</link><description>&lt;p&gt;Your very welcome. :)&lt;/p&gt;

&lt;p&gt;I wish it had been there to save mine back when I made the fix. Lots of pulling out of hair occurred.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stephen Belanger</dc:creator><pubDate>Sun, 04 Mar 2012 17:56:08 -0000</pubDate></item><item><title>Re: How to make Socket.IO work behind nginx (mostly)</title><link>http://stephenbelanger.com/2011/09/21/how-to-make-socket-io-work-behind-nginx-mostly/#comment-456012113</link><description>&lt;p&gt;Thanks, this fix saved my weekend (and possibly much more)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Maurits Lamers</dc:creator><pubDate>Sun, 04 Mar 2012 11:46:10 -0000</pubDate></item><item><title>Re: jquery.flash v1.3.1 &amp;#8211; Squashing IE-related bugs.</title><link>http://stephenbelanger.com/2010/01/02/jquery-flash-v1-3-1-squashing-ie-related-bugs/#comment-445713407</link><description>&lt;p&gt;Seemed to be having problems with transparent wmode in Chrome. I added "type" attribute with value set to "application/x-shockwave-flash" to non-ie output and all worked fine. &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Justin</dc:creator><pubDate>Wed, 22 Feb 2012 06:11:45 -0000</pubDate></item><item><title>Re: You are not lean, stop pretending.</title><link>http://stephenbelanger.com/2011/11/11/you-are-not-lean-stop-pretending/#comment-413533675</link><description>&lt;p&gt;It's the curse of over-funded startups. Their impatience leads them to throw manpower at every "problem" they encounter, even if it's just a minor delay. They don't seem to get that, just like the system they are building; the more points of required communication between entities, the greater the latency will be per request.&lt;/p&gt;

&lt;p&gt;Adding a new person to a project slows everyone else down almost as much cumulatively as that person adds value.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stephen Belanger</dc:creator><pubDate>Tue, 17 Jan 2012 12:56:22 -0000</pubDate></item><item><title>Re: A simple explanation of &amp;#8220;new&amp;#8221; in Javascript.</title><link>http://stephenbelanger.com/2011/04/10/a-simple-explanation-of-new-in-javascript/#comment-413353997</link><description>&lt;p&gt;See this: &lt;br&gt;&lt;a href="http://stackoverflow.com/questions/2449254/what-is-the-instanceof-operator-in-javascript/2449264#2449264" rel="nofollow"&gt;http://stackoverflow.com/quest...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jon H</dc:creator><pubDate>Tue, 17 Jan 2012 08:36:53 -0000</pubDate></item><item><title>Re: You are not lean, stop pretending.</title><link>http://stephenbelanger.com/2011/11/11/you-are-not-lean-stop-pretending/#comment-413351711</link><description>&lt;p&gt;Heck of a post...I agree 100%.  I've seen large branded companies with 100s of developers and designers with horrible products.  It doesn't matter how much money or resources you have.  If you don't get it right with 1 person how are you ever going to get it right with 100s.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jon H</dc:creator><pubDate>Tue, 17 Jan 2012 08:32:23 -0000</pubDate></item><item><title>Re: How to make Socket.IO work behind nginx (mostly)</title><link>http://stephenbelanger.com/2011/09/21/how-to-make-socket-io-work-behind-nginx-mostly/#comment-386582775</link><description>&lt;p&gt;It goes wherever your Socket.IO code is defined. I like to put it right after io.attach().&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stephen Belanger</dc:creator><pubDate>Wed, 14 Dec 2011 12:52:25 -0000</pubDate></item><item><title>Re: How to make Socket.IO work behind nginx (mostly)</title><link>http://stephenbelanger.com/2011/09/21/how-to-make-socket-io-work-behind-nginx-mostly/#comment-386412699</link><description>&lt;p&gt;Can anyone please tell me exactly the file name I should update it,  I don't know where to override this function?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">hosam.ebrahim</dc:creator><pubDate>Wed, 14 Dec 2011 09:12:22 -0000</pubDate></item><item><title>Re: The Infinite Genies Paradox</title><link>http://stephenbelanger.com/2010/07/15/the-infinite-genies-paradox/#comment-380891526</link><description>&lt;p&gt;The disney's genie is a little different from some of the other genies. Unlike the genie from aladdin, most genies seem to be tricky.  From what I remember when you wish a genie free, in exchange of that genie you are trapped and become a genie to take his/her place.(Or if the genie said a genie can only grant you three wishes would mean that it didn't matter which genie you asked the wish for. Kind of like an ATM machine where it doesn't matter which ATM you go to, you would still have the same amount of money) Also wishes can be interpreted differently, like I wish I had trillion dollars and the genie would give you trillion dollars worth of coin which crushes on top of you. As for the wishing the third wish to not be granted. The genie could simply vanish your existence from the beginning. By doing so, your wish would come true because you would have never wished for the wish and so there is no wish to come true. At the same time your wish didn't come true because although you never wished it the wish was granted. So it's kind of answering a paradox with a paradox. haha&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">picko</dc:creator><pubDate>Tue, 06 Dec 2011 23:50:40 -0000</pubDate></item><item><title>Re: How to make Socket.IO work behind nginx (mostly)</title><link>http://stephenbelanger.com/2011/09/21/how-to-make-socket-io-work-behind-nginx-mostly/#comment-378207952</link><description>&lt;p&gt;Most of the "auto-scaling" cloud host type services can't give unique IPs though. Typically they are just a thin layer on top of AWS.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stephen Belanger</dc:creator><pubDate>Sat, 03 Dec 2011 04:00:58 -0000</pubDate></item><item><title>Re: How to make Socket.IO work behind nginx (mostly)</title><link>http://stephenbelanger.com/2011/09/21/how-to-make-socket-io-work-behind-nginx-mostly/#comment-378207531</link><description>&lt;p&gt;Umm .. it should work for vhosts if they have a dedicate IP. The problem was the clash of ports if both the tcp {} and http {} blocks were declared for all IPs.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Srirangan</dc:creator><pubDate>Sat, 03 Dec 2011 03:58:42 -0000</pubDate></item><item><title>Re: How to make Socket.IO work behind nginx (mostly)</title><link>http://stephenbelanger.com/2011/09/21/how-to-make-socket-io-work-behind-nginx-mostly/#comment-378207125</link><description>&lt;p&gt;Yep, I've seen that fix too. Unfortunately, it doesn't work for vhosts. So cloud hosting services like dotcloud can't use that.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stephen Belanger</dc:creator><pubDate>Sat, 03 Dec 2011 03:57:04 -0000</pubDate></item><item><title>Re: How to make Socket.IO work behind nginx (mostly)</title><link>http://stephenbelanger.com/2011/09/21/how-to-make-socket-io-work-behind-nginx-mostly/#comment-378206640</link><description>&lt;p&gt;Hmm.. the way I got &lt;a href="http://Socket.io" rel="nofollow"&gt;Socket.io&lt;/a&gt; to work with Nginx at Review19 -- &lt;a href="http://review19.com" rel="nofollow"&gt;http://review19.com&lt;/a&gt; -- was to compile Nginx with the TCP Proxy module (&lt;a href="https://github.com/yaoweibin/nginx_tcp_proxy_module)" rel="nofollow"&gt;https://github.com/yaoweibin/n...&lt;/a&gt;. Didn't require any modifications of the &lt;a href="http://Socket.io" rel="nofollow"&gt;Socket.io&lt;/a&gt; code but I needed to declare an additional tcp {} block in nginx.conf&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Srirangan</dc:creator><pubDate>Sat, 03 Dec 2011 03:54:48 -0000</pubDate></item><item><title>Re: How to make Socket.IO work behind nginx (mostly)</title><link>http://stephenbelanger.com/2011/09/21/how-to-make-socket-io-work-behind-nginx-mostly/#comment-360164476</link><description>&lt;p&gt;wow. i killed quite a bit of time trying to figure out why &lt;a href="http://socket.io" rel="nofollow"&gt;socket.io&lt;/a&gt; wasn't working on my server...and now i know. thanks so much for posting this.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">jonathan youngblood</dc:creator><pubDate>Thu, 10 Nov 2011 12:19:20 -0000</pubDate></item><item><title>Re: A simple explanation of &amp;#8220;new&amp;#8221; in Javascript.</title><link>http://stephenbelanger.com/2011/04/10/a-simple-explanation-of-new-in-javascript/#comment-343724244</link><description>&lt;p&gt;While we've already touched `instanceof` it might be worth mentioning that it's actually nothing more than a lookup in the prototype chain; basically, `a instanceof b` checks if the object a has b.prototype as its prototype, or if it's the "prototype of the prototype", and so on.&lt;/p&gt;

&lt;p&gt;This could lead to subtle problems, as in the following:&lt;/p&gt;

&lt;p&gt;    function Test() {}&lt;br&gt;    var test = new Test()&lt;br&gt;    test instanceof Test // true&lt;br&gt;    &lt;br&gt;    Test.prototype = {foo: 42};&lt;br&gt;    test instanceof Test // false&lt;br&gt;    test.foo // undefined (since Test.prototype doesn't refer to the [[Prototype]] of test)&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jonas Höglund</dc:creator><pubDate>Tue, 25 Oct 2011 10:25:45 -0000</pubDate></item><item><title>Re: A simple explanation of &amp;#8220;new&amp;#8221; in Javascript.</title><link>http://stephenbelanger.com/2011/04/10/a-simple-explanation-of-new-in-javascript/#comment-343722151</link><description>&lt;p&gt;Not necessarily; if you attempt to return anything but an object (for example a number), it'll still evaluate to the newly constructed object. `function Foo() {return 42}; (new Foo) instanceof Foo` evaluates to true.&lt;/p&gt;

&lt;p&gt;The best way to understand how `new` works would be to read the spec, but it can be a bit difficult to understand sometimes. However, if you actually want to know for sure how it works, I'd suggest checking there: &lt;a href="http://es5.github.com/#x13.2.2" rel="nofollow"&gt;http://es5.github.com/#x13.2.2&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;    8. Let result be the result of calling the [[Call]] internal property of F, providing obj as the this value and providing the argument list passed into [[Construct]] as args.&lt;br&gt;    9. If Type(result) is Object then return result.&lt;br&gt;     10. Return obj.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jonas Höglund</dc:creator><pubDate>Tue, 25 Oct 2011 10:22:03 -0000</pubDate></item><item><title>Re: jquery.flash &amp;#8211; Who needs swfobject when you have this?</title><link>http://stephenbelanger.com/2009/10/04/jquery-flash-who-needs-swfobject-when-you-have-this/#comment-315642404</link><description>&lt;p&gt;No, you'd have to do that in the swf itself. Javascript doesn't have any control of the playback of a swf file unless you explicitly expose that access in the swf itself. In which case, you might as well just use a container swf that loads other swfs as a sort of playlist.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stephen Belanger</dc:creator><pubDate>Mon, 19 Sep 2011 23:59:02 -0000</pubDate></item><item><title>Re: jquery.flash &amp;#8211; Who needs swfobject when you have this?</title><link>http://stephenbelanger.com/2009/10/04/jquery-flash-who-needs-swfobject-when-you-have-this/#comment-315626261</link><description>&lt;p&gt;Is it possible for this to monitor when the swf has completed and then start up a different swf file?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Zibeo</dc:creator><pubDate>Mon, 19 Sep 2011 23:26:55 -0000</pubDate></item><item><title>Re: A simple explanation of &amp;#8220;new&amp;#8221; in Javascript.</title><link>http://stephenbelanger.com/2011/04/10/a-simple-explanation-of-new-in-javascript/#comment-308403151</link><description>&lt;p&gt;I have been thinking about this a little. Perhaps an even simpler way to explain...&lt;br&gt;using the "new" keyword before a function automatically adds "return this;" at the end of the function if no return already exists. This way of thinking helps eliminate the confusing weird behavior "new" seems to have.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">chadams</dc:creator><pubDate>Tue, 13 Sep 2011 00:12:17 -0000</pubDate></item><item><title>Re: jquery.flash v1.3.1 &amp;#8211; Squashing IE-related bugs.</title><link>http://stephenbelanger.com/2010/01/02/jquery-flash-v1-3-1-squashing-ie-related-bugs/#comment-196679115</link><description>&lt;p&gt;Good to know.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stephen Belanger</dc:creator><pubDate>Tue, 03 May 2011 22:14:40 -0000</pubDate></item><item><title>Re: jquery.flash v1.3.1 &amp;#8211; Squashing IE-related bugs.</title><link>http://stephenbelanger.com/2010/01/02/jquery-flash-v1-3-1-squashing-ie-related-bugs/#comment-196660145</link><description>&lt;p&gt;I did some more testing. It appears to be bug in FireFox. IE &amp;amp; Chrome do not exhibit this behavior. See: &lt;a href="https://bugzilla.mozilla.org/show_bug.cgi?id=654241" rel="nofollow"&gt;https://bugzilla.mozilla.org/s...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">PaulCormier</dc:creator><pubDate>Tue, 03 May 2011 21:15:32 -0000</pubDate></item></channel></rss>
