![]() |
Type in a command, or "ls dictionary" to search all commands for "dictionary", etc.
|
SYNOPSIS << [Yubnub command|URL] [query, optional] -pool [number, optional, default is 7] EXAMPLES << lj ruby on rails Searches for "Ruby on Rails" (via Google) within sites related to Live Journal --like Blogger, Movable Type, Six Apart, etc... << cnn muhammad Searches for "Muhammad" (via Google) within sites related to CNN --like ABC News, NYTimes, MSNBC, FOX News, BBC, etc... << dilbert microsoft Searches for "Microsoft" (via Google) within sites related to Dilbert.com --like User Friendly, The Onion, Doonesbury, United Media, Penny Arcade, etc... << britannica.com thermodynamics Searches "thermodynamics" (via Google) within sites related to Britannica.com --like Encyclopedia.com, Encarta, Merriam Webster, Infoplease, etc... << britannica.com thermodynamics -pool 20 Searches "thermodynamics" (via Google) within more sites related to Britannica.com than the previous command (in which pool defaults to 7). Pool is the number of related websites among which to search --the search pool-- and so, the higher its number, the lower the average relatedness. In this case, with pool=20, Wikipedia manages to enter into the pool since Google ranks Wikipedia in the double digits by it's relatedness to Britannica. << http://www.amazon.com/gp/product/0684862697/102-5165539-5030544?v=glance&n=283155 virginia postrel Searches for "virginia postrel" (via Google) within sites related to Amazon.com --Barnes & Noble, eBay, Borders, Yahoo! Shop, etc... DESCRIPTION A universal external search command! << uses Google to obtain a list of websites related to your 1st param (of which a domain name is extracted thru extractDomainName), and then uses this list to restrict a Google search for your 2nd param. Simple but usually pure magic. There are 2 main ways to use this command, and both I find very convenient. First, you can use a YubNub command for the 1st param. This is convenient because it saves you from typing URLs by leveraging your knowledge of YubNub commands. This usage is exemplified by the first 3 examples. For the 2nd usage to be really practical you should have installed YubNub in your Firefox toolbar (and this is, imho, THE way to use YubNub). OK, so here's a case example: suppose you're reading about Virginia Postrel's books at http://www.amazon.com/gp/product/0684862697/102-5165539-5030544?v=glance&n=283155. You're _really_ liking what she has to say and thus want to see what are the offers from other booksellers on her books. Being a natural-born-Yubnubber, you CTRL-L (or ALT-D, or F6) to the location bar, prepend << to the URL, and append "virginia postrel" at the end, so your new URL is: << http://www.amazon.com/gp/product/0684862697/102-5165539-5030544?v=glance&n=283155 virginia postrel. You type Enter and voila!: You've searched in Google for Virginia Postrel within sites such as Barnes & Noble, eBay, Borders, Yahoo! Shop, etc... NOTE << is based on Google's related feature, which is sometimes moody, giving usually accurate but occasionally different results. This means that <<'s pool can change from one search to the other. This is a feature. ^_^ RELATED COMMANDS: <, <<<, >, >>, >>> AUTHOR Eliazar elzr.com