December 2008

Squid + VideoCache on Mac OS X Leopard

As the VideoCache website (http://cachevideos.com/ yay Drupal lol ) says:

"VideoCache is a squid URL rewriter plugin written in Python which traps the requests to squid for various audio/video websites and cache the audio/videos in the local storage on proxy server for serving the subsequent requests for the same audio/video. It caches the audio/video independently of squid caching system. The cached files are stored in a browsable fashion."

In short, it caches (i.e. maintains a reusable copy of) all the Youtube, Google Videos, Metacafe, and other services' videos that you play. The fun starts when, upon a page refresh on a youtube video, you don't have to re-download the video. Rather the VideoCache Squid(proxy) plugin comes into action and taps the video request to the one already existing on the hard drive! An awesome solution for LANs and ISPs!

To install Squid and VideoCache on Mac OS X Leopard (10.5) ( continue reading... )

Fade transit dynamically updated DOM content using jQuery

This jQuery plugin originated from smooth transition requirements in the live module. Earlier that module would do immediate replacement of existing dynamic content/comment preview with the updated preview.

That, however, did not look nice for a so so neat module. Cool Neither did fadeOut() and fadeIn() stand good. Since there would be a gap between them i.e. there would be a transition among three items: from Preview 1 to background to Preview 2, unlike transition from Preview 1 to Preview 2.

I found innerFade quite like the thing I needed, but it would require extra touch since my requirements were dynamic content updating. Later, I also discovered the Cycle plugin. ( continue reading... )