Slashdot Mirror


Command Line for the Web

flood6 writes "SearchEngineWatch offers a look at a new method of interacting with the Internet, YubNub. This 'social command line for the web' lets users create commands that interact with websites. Currently, most of the commands apply to search, but new commands could work with any site that accepts variables passed with HTML's GET command. For example, iap moon would search the Internet Archive for all media related to 'moon'."

21 of 243 comments (clear)

  1. Web apps and the command line by glinden · · Score: 4, Informative

    John Gruber wrote a great essay on this called "The Location Field is the New Command Line". As he put it, "Web apps are just so damned easy to use ... It's all about the fact that you just type the URL and there's your email."

  2. More... by flood6 · · Score: 3, Informative
    I didn't realize it when I submitted the story, but yubnub was created by Jon Aquino who recently appeared in /. for his K'nexis Keyboard. Also yubnub is developed in the /. darling Ruby on Rails and was Jon's entry into the 2004 Rails Day.

    You can see some more of Jon's gadgets here.

  3. Speaking of Which by MankyD · · Score: 3, Informative
    --
    -dave
    http://millionnumbers.com/ - own the number of your dreams
  4. XMLTerm by Doc+Ruby · · Score: 2, Informative

    The best version of this concept that I saw was XMLTerm. It's a graphical CLI, in a web page. It's ideally suited to be a CLI for websites, as well as a website implementing a CLI. It was ahead of its time, and went down the drain when the bubble popped. On purely "zeitgeist" problems - it appears to be technically sound. If there's interest, and effort, in this kind of app now, it will be much better to pick up this orphaned OSS project, than to reinvent it.

    --

    --
    make install -not war

  5. Do this in your own browser instead... by Otto · · Score: 3, Informative

    The only advantage of this is that it's collaborative... and as other users have pointed out, quite a lot of the commands on the site are crap and need moderation of some sort.

    But your browser has this built in already.

    -If you use IE, you can set up these type of search shortcuts using TweakUI.
    -If you use Firefox/Mozilla, you can create bookmarks that implement these sort of shortcuts. There's some examples in your bookmarks menu when you first install Firefox, just look at those for how to do it.

    In both cases, after creating them, you can just type "shortcut search terms" in the address to make it do that "search". Doesn't have to be a search of course, it can be any kind of HTTP GET that you want. I have several defined..
    -g for quick googling
    -imdb for movie lookups
    -imdbq for movie quote lookups
    -snpp to search the simpsons archives..
    -And so on. ;)

    --
    - Give a man a fire and he's warm for a day, but set him on fire and he's warm for the rest of his life.
  6. this is different from mozilla keywords how? by Anonymous Coward · · Score: 1, Informative

    I can type

    imdb Terminator

    into my mozilla address bar and it does an search on imdb.org for terminator. or

    dict antidisestablishmentarianism

    and it searches on dictionary.com for "antidisestablishmentarianism"

    the only advantage to this that I can see is that it has addresses that I might not have known about. But there are probably better ways of going about this than making a new web page. Perhaps a blog or plugin system for picking which ones you want mozilla to use.

    (see http://www.mozilla.org/docs/end-user/keywords.html for how to use moz keywords)

  7. Re:toolbar by thermostat42 · · Score: 3, Informative

    you mean like Konqueror's web shortcuts?

    --
    no comment
  8. easier with firefox | opera by ^Z · · Score: 5, Informative

    In FF, you can have bookmarks like this: http://livejournal.com/~%25s/ Give it a keyword (say, 'lj'), type in the URL line: lj someusername and someusername's livejournal opens. This is the simplest example. I have several more sophisticated; this mostly obviates the FF search box. And all this with a *very* simple syntax that only allows substitution of one string. Imagine something a bit more powerful in that place.

    --

    Computers make very fast, very accurate mistakes

  9. Konqueror has this by infolib · · Score: 3, Informative
    With support for Google, Wikipedia, Leo german dictionary, CPAN and many others. Just type wiki: whatever in the address bar to search Wikipedia for "whatever". I went from knowing jack about these "web shortcuts" to creating my own in five minutes. (Just copy and modify existing ones)

    Oh, and you can also use the address bar to ssh for your files (fish:) or get the images of your camera (digikam:). Bow to the power of the KIOslave framework!

    --
    Any sufficiently advanced libertarian utopia is indistinguishable from government.
  10. Re:YubNub - Ewok speak? by nmx · · Score: 2, Informative

    Yes, "yub nub" is Ewok for "freedom."

    --
    "Well kids, you tried your best, and you failed. The lesson is, never try."
  11. Rails by Tobias+Luetke · · Score: 2, Informative

    I think its worth mentioning that YubNub was created for the RailsDay. A one day Ruby on Rails coding contest which was featured in the developer section of slashdot a week or so ago.
    Its not the pinnacle of complexity but its still amazing what you can do in just a day. Hats off the the programmer.

  12. Konqueror has done this for years by Urban+Garlic · · Score: 4, Informative

    The K desktop environment has things called "KIOslaves" which recognize certain pseudo-protocols on the Konqueror location bar (and other places).

    Internet examples include "deb:" for Debian package searches, "rf:" for rpmfind, "gg:" for Google, "ggl:" for Google-I-feel-lucky, and "rfc:" for getting RFC text from the IETF website, and "wp:" for Wikipedia. There are lots of these.

    Non-internet examples include "man:" for viewing man pages, and "info:" for viewing those otherwise horrible GNU info pages.

    --
    2*3*3*3*3*11*251
  13. Re:Built into Firefox by SYRanger · · Score: 2, Informative

    It's actually even better than this manual %s-approach. Right-click on an input-field prior to search, and "bookmark this search" and add a keyword to it. This manual %s-process was integrated like this since 1.0 I think, but still works though.

  14. Re:Seems kinda fadish, but I'll bite by poot_rootbeer · · Score: 3, Informative

    how come to get a console in Windows I have to hit WIN+R, "CMD", [Enter].

    Well, you could always set up a keyboard shortcut that launched CMD.EXE -- I've got mine mapped to CTRL-ALT-S. I also keep shortcut icons to my Windows and Cygwin shells in the Quick Launch dock, for more easy access.

    The more important aspect of your feature request, though, is to make the shell itself dockable: the command line stays out of the way, you call it up only for as long as you need it, and then it hides itself again. I'd like to see someone implement such a feature, too.

  15. Re:toolbar by MAdMaxOr · · Score: 2, Informative

    You can use YubNub directly!

    Add YubNub to your Firefox address bar by going to about:config and changing keyword.URL to http://yubnub.org/parser/parse?command=

    Plugin/toolbar info here:
    http://www.yubnub.org/documentation/describe_insta llation

  16. Been doing it for years by rduke15 · · Score: 2, Informative

    I have been using Perl for years to do simple command line scripts to extract information from web sites. From foreign exchange rates, to looking up owners/addresses of incoming phone numbers, or abreviated weather forecasts or train schedules.

    I began when my old laptop took too long to start a web browser. But even though I now always have a web browser window open, typing "xchange 1432 EUR" is still much faster and simpler than navigating to the appropriate web site and filling in forms.

    I'm actually surprised to see such an idea posted here as news. I thought that anybody who knows some scripting has always been doing this sort of thing.

    Of course, Perl is ideal for this sort of thing, with regular expressions and all the CPAN modules (LWP::Simple, and dozens of others more specialized).

  17. Re:Seems kinda fadish, but I'll bite by Anonymous Coward · · Score: 1, Informative

    surfraw already does this. Comes with many distros packagins systems.

    google from the console using your fav browser.

  18. Re:It's not social by numatrix · · Score: 2, Informative

    Actually, my firefox bookmarks (and relevant keywords) travel with me just fine thanks to bookmarks synchronizer. Of course, now I just have to figure out where that japanese developer's website has gone so I can find new updates to the code if he posts them. Heaven forbid a new ff release break the current stuff. ;-)

  19. Re:Seems kinda fadish, but I'll bite by aardwolf204 · · Score: 2, Informative

    yeah, the win key is useful.

    Win +

    R, run
    M, minimize all windows
    D, show desktop (toggle)
    E, explorer

    There are some more but those are what I use. And its funny that you mention ctrl+esc because before I had a windows keyboard (Back in 1995), and even for some time after I got a winkeyboard, I would use CTRL+Esc alt the time. Weird how shortcut habbits can change.

    Thats my problem, I'm a keyboard shortcut whore because I started in DOS and am not a big fan of windows so whenever I can acomplish something in keystrokes instead of the kludgy mouse I will.

    PS. I just shift-tabbed back to add this PS, noting that i subcounciously knew it was three tabs to the submit button. there's my evidence.

    --
    Im dreaming ofa big bndwdth, That can resist the /.crowd.May ur days b merry & bright & may al
  20. Re:Interesting Concept, but needs moderation by Jugalator · · Score: 2, Informative

    You've already used a simple command line search ( you're confusing "search" with "internet" by the way ;-) ) -- just look at Google. If you'd prefix your keywords there with "google", they'd instead look like commands, complete with special switches of the kind "filetype:", "site:", and - operators, etc. Search engines are already like generic and quite complex commands.

    --
    Beware: In C++, your friends can see your privates!
  21. Re:Seems kinda fadish, but I'll bite by UbuWu · · Score: 2, Informative

    It exists for linux: Tilda http://tilda.sourceforge.net/ And also you could setup eterm in almost anyway you want... Don't know about Windows...