Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Ovid (2709)

Ovid
  (email not shown publicly)
http://publius-ovidius.livejournal.com/
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Thursday January 05, 2006
12:51 PM

I'm Feeling Lucky In Mauritania

[ #28249 ]

I love using Firefox keywords. They're one of the most useful tools invented. So if I want to search Wikipedia for something, I have bookmarked http://en.wikipedia.org/wiki/%s, assigned it the keyword "wiki" and now just typing "wiki mauritania" will take me directly to the Wikipedia entry for that country.

I also like checking the CIA World Fact Book. This nifty guide presents a bunch of bared-boned statistics about a country to give you a good feel for the business and political situation in the country. Very stat heavy. Unfortunately, I can't create a Firefox keyword for it because I'd have to remember that Mauritania is abbreviated "mr": http://www.cia.gov/cia/publications/factbook/geos/mr.html. Other countries have similar entries. France is "fr" while Taiwan is "tw". I consult the Fact Book often enough that this annoyed me.

That's when I realized how easy this really is to solve. Google's "I'm Feeling Lucky" will always take me to the correct CIA World Factbook page merely by typing in "cia world fact book $country". Thus, my bookmark URL: http://www.google.com/search?q=cia+world+fact+book+%s&btnI=I'm+Feeling+Lucky. Now, "cia $country" will do what I want it to do.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • For my Wikipedia keyword, I prefer the URL http://en.wikipedia.org/wiki/Special:Search?search=%s – if there’s an exact match, that will send you to the right page, if not, it produces a list of search results. That’s more helpful than a Wikipedia does not have an article with this exact name page with a bunch of canned links.

    • I just discovered that FF has a built-in shortcut for that: wp @search_terms. I found that when I was trying to fix my shortcut to match your suggestion :)

      • Huh. Maybe I should start over with a fresh profile someday. This one is from the days of Firebird. :-) And the bookmarks, in fact, have been travelling along since IE5 on Win95. In the process of slowly moving the stuff I bookmarked as keepers over to del.icio.us I recently found some stuff going back as far as ’99ish in there.

  • I think specifying what site you want the page to come from, would equally well, maybe even better. (Less chance of a miss). Something like http://www.google.com/search?q=site:cia.gov+world+fact+book+%s&btnI=I'm+Feeling+ Lucky.

    In fact, the search http://www.google.com/search?q=site:cia.gov+world+fact+book+Mauretania [google.com] will yield exactly 2 results: the "geos" version and the "print" version. Which one do you want?