Off Topic

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

ਪੰਜਾਬ

ਪੰਜਾਬ ਦੀ ਧਰਤੀ ਅਤੇ ਪੰਜਾਬੀ
-- ਜਨਮੇਜਾ ਸਿੰਘ ਜੌਹਲ

Firebug 1.2 Beta 3 SVN build

Since getfirebug.com is down from several days, plus there's no mirror available via Google searches for Firebug 1.2 Beta 3, I went ahead with building my own from source. This is the Firebug 1.2 plugin/extension build from it's SVN repository, revision 743. The build is latest as of JUN 13TH, and is, possibly, ahead of beta 3 version of Firebug 1.2. Please remember this is a development build, rather than being a stable one, so it is prone to bugs and might crash your Firefox installation, and with that I take no responsibility of this thing! =D

Install Firebug 1.2 Beta 3.x (SVN Revision 743)

Compatibility: Firefox 1.5 -> Firefox 3 ( continue reading... )

Hash Check failed for your download? Torrents can fix it!

Here's how I went fixing my 3.3GB of Fedora i386/32-bit DVD ISO, downloaded directly(http) from an official mirror, which went kaput. x-( Hash check(SHA1) failed to verify the ISO! Rather than a fresh download, I went fixing the ISO itself.

  1. Download your data(ISO, ZIP, etc.) from any source or mirror. Sometimes it's faster to grab than a torrent download, but you may corrupt your big downloads with frequent pauses or crashes, and the checksum fails to verify!
  2. Download your favorite Bit Torrent client. Here are some recommendations: µTorrent for Windows and KTorrent for KDE.
  3. Search for the exactly same data torrent, and open using the torrent client.
  4. Monitor the location of your torrent downloads directory while you start the download. Stop the torrent as soon as the files are created there.
  5. Now replace the file in the torrent downloads with the one you downloaded earlier. Make sure the name is intact as the torrent client made it. For example, Fedora-9-i386-DVD.iso.bc! is the format for incomplete BitComet torrent downloads.
  6. Now you need to check the data integrity of your torrent. The option is "Check data integrity" in KTorrent, and "Force Re-Check" in uTorrent(µTorrent). It'll take a few seconds to verify your data for corrupt parts and enlist to itself for re-download of them. My check stopped at 99.9% for Fedora-9-i386-DVD.iso.
  7. When the check is finished, proceed with starting the torrent now. In my case, 0.01% was downloaded again, fixing my ISO!
  8. Yay!! Now help others out! And keep seeding. :Smile


In whole, you are able to download stuff faster than torrents(sometimes Wink ) via http/ftp sources, and later fix up any errors that download may have using a torrent client! Good luck! ( continue reading... )