[Numpy-discussion] yubnub and numpy examples
Wed Aug 5 09:30:55 CDT 2009
On Wed, Aug 5, 2009 at 9:44 AM, John Hunter<firstname.lastname@example.org> wrote:
> yubnub is pretty cool -- it's a command line interface for the web.
> You can enable it in firefox by typing "about:config" in the URL bar,
> scrolling down to "keyword.URL", right click on the line and choose
> modify, and set the value to be
> Then, you can type yubnub commands in the URL bar, eg, to see all
> commands related to python, type "ls python" in the URL bar.
> It's easy to create new commands; I just created a new command to load
> the docs for a numpy function; just type in the URL bar:
> npfunc convolve
> which takes you directly to
> I was hoping to create a similar command for the numpy examples, but
> the URL links in http://www.scipy.org/Numpy_Example_List_With_Doc are
> some md5 gobbledy-gook. Is it possible to have nice URLs on this
> page, so they can be more readily yubnub-ized?
> NumPy-Discussion mailing list
looks pretty good, but I would recommend a safe install, instead of
overwriting the keyword default. This requires typing one additional
letter, e.g "y npfunc convolve", (and avoids invalidating the firefox
warranty, and you can do the same with other search/link shortcuts)
Safe Firefox Installation. The safest way to install YubNub is to make
a Firefox keyword for it. If you're using the Firefox web browser:
* Right-click the input box at the top of the page (the one under
the words "Type in a command")
* Click "Add a Keyword for this Search"
* For the Name, enter "YubNub", and for the Keyword, enter "y"
* Press OK
Now you can use YubNub directly from the address bar. For example, try
typing "y gim porsche 911" into your address bar. Don't forget the "y"
You may have noticed that I said that this is the "safest way" to
install YubNub. Why safest? Because you must explicitly enter a "y"
before the YubNub command. This prevents "command spoofing".
For example, suppose someone made a "michael" command. If you typed
"michael jordan" into YubNub, intending to do a search, you would
instead go to the site of the person who made the "michael" command.
Rats! But if you installed YubNub into your Firefox address bar as
described above, typing "michael jordan" into your address bar would
do a search for "michael jordan", as you intended. The only way to get
to that other person's site would be to type "y michael".
If you like to live on the edge like me, you can try one of the other
installation methods, many of which do not require an initial keyword
More information about the NumPy-Discussion