Quantcast
Channel: Stephen Belanger - Latest Comments
Browsing all 29 articles
Browse latest View live

Re: A simple explanation of “new” in Javascript.

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`...

View Article



Re: A simple explanation of “new” in Javascript.

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...

View Article

Re: How to make Socket.IO work behind nginx (mostly)

wow. i killed quite a bit of time trying to figure out why socket.io wasn't working on my server...and now i know. thanks so much for posting this.

View Article

Re: How to make Socket.IO work behind nginx (mostly)

Hmm.. the way I got Socket.io to work with Nginx at Review19 -- http://review19.com -- was to compile Nginx with the TCP Proxy module (https://github.com/yaoweibin/n.... Didn't require any...

View Article

Re: How to make Socket.IO work behind nginx (mostly)

Yep, I've seen that fix too. Unfortunately, it doesn't work for vhosts. So cloud hosting services like dotcloud can't use that.

View Article


Re: How to make Socket.IO work behind nginx (mostly)

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.

View Article

Re: How to make Socket.IO work behind nginx (mostly)

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.

View Article

Re: The Infinite Genies Paradox

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...

View Article


Re: How to make Socket.IO work behind nginx (mostly)

Can anyone please tell me exactly the file name I should update it,  I don't know where to override this function?

View Article


Re: How to make Socket.IO work behind nginx (mostly)

It goes wherever your Socket.IO code is defined. I like to put it right after io.attach().

View Article

Re: You are not lean, stop pretending.

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...

View Article

Re: A simple explanation of “new” in Javascript.

See this: http://stackoverflow.com/quest...

View Article

Re: You are not lean, stop pretending.

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...

View Article


Re: jquery.flash v1.3.1 – Squashing IE-related bugs.

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. 

View Article

Re: How to make Socket.IO work behind nginx (mostly)

Thanks, this fix saved my weekend (and possibly much more)

View Article


Re: How to make Socket.IO work behind nginx (mostly)

Your very welcome. :)I wish it had been there to save mine back when I made the fix. Lots of pulling out of hair occurred.

View Article

Re: How to make Socket.IO work behind nginx (mostly)

Thanks!

View Article


Re: jquery.flash – Who needs swfobject when you have this?

 if flash player is not installed in the pc then jquery slider run if flashplayer is installed then flash file run can somebody tell me this one solution i need this guidelines

View Article

Re: jquery.flash v1.3.1 – Squashing IE-related bugs.

@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...

View Article

Re: How to make Socket.IO work behind nginx (mostly)

thank you! you just saved me heaps of time :)

View Article
Browsing all 29 articles
Browse latest View live




Latest Images