It's worth noting that the author of this blog is a 17 year old self-taught hacker. Highly impressive.
Show a real-time user count without any client-side Javascript
11–20 of 24 posts
Re: Show a real-time user count without any client-side Javascript
#12M-JPEG is a concatenated stream of JPEG images, usually with some of the JPEG elements omitted.
x-mixed-replace is what he is using. It is from the early Netscape days and let you server side push new content. In this case JPEG images.
Either technique can be used to stream images depending on browser capabilities.
Re: Show a real-time user count without any client-side Javascript
#13Re: Show a real-time user count without any client-side Javascript
#14M-JPEG is not the same thing as x-mixed-replace . M-JPEG is a concatenated stream of JPEG images, usually with some of the JPEG elements omitted. x-mixed-replace is what he is using. It is from the early Netscape days and let you server side push new content. In this case JPEG images. Either technique can be used to stream images depending on browser capabilities.
Re: Show a real-time user count without any client-side Javascript
#15M-JPEG is not the same thing as x-mixed-replace . M-JPEG is a concatenated stream of JPEG images, usually with some of the JPEG elements omitted. x-mixed-replace is what he is using. It is from the early Netscape days and let you server side push new content. In this case JPEG images. Either technique can be used to stream images depending on browser capabilities.
Re: Show a real-time user count without any client-side Javascript
#16It's worth noting that the author of this blog is a 17 year old self-taught hacker. Highly impressive.
Yep, I like this as well. I'm an 18 year old cofounder/designer hacker and sent him an email to hopefully get connected. I'm always on the lookout for young people like me that have started early. (not to bash on anyone that started late, but it's cool to meet people along my same path)
Re: Show a real-time user count without any client-side Javascript
#17Ingenious. I imagine this would also be easy to implement in e.g. PHP. Or am I wrong? (not at my PC to check)
Re: Show a real-time user count without any client-side Javascript
#18looking at the response headers of online.png shows:
Cache-Control:no-store, no-cache, must-revalidate, max-age=0, post-check=0, pre-check=0, false
Connection:Close
Date:Sun, 29 Jul 2012 11:04:04 GMT
Expires:-1
Last-Modified:Sun, 29 Jul 2012 11:04:04 GMT
Pragma:no-cache
Transfer-Encoding:chunked
so that can't be the jpeg mentioned