{"id":120,"date":"2006-06-14T19:51:48","date_gmt":"2006-06-15T03:51:48","guid":{"rendered":"http:\/\/wapreview.com\/?p=120"},"modified":"2020-12-14T20:25:39","modified_gmt":"2020-12-15T04:25:39","slug":"yubnub-mobile","status":"publish","type":"post","link":"https:\/\/wapreview.com\/120\/","title":{"rendered":"YubNub Mobile"},"content":{"rendered":"

\" YubNubYubNub<\/a> is a web app that has been generating a lot of buzz ever since Jon Aquino created it a year ago to win a Ruby on Rails programming contest. If you haven’t heard of YubNub (Ewok for “hooray’, BTW) it’s a “command line for the web”. Just like the MS-DOS > prompt or a *nix shell, you type commands into YubNub and wonderful things happen – or not – if you mess up. As the web takes on more and more of the role of an operating system it makes sense that there should be a command line for the web. And it’s not just for power users. There are lots of simple, ready to use YubNub commands that do neat things. Here are some examples:<\/p>\n

g query<\/em><\/code> <- do a Google search for query
\nlynx http:\/\/yeswap.com<\/code> <- displays the html source code for yeswap.com
\ngim daibutsu<\/code> <- Google Image Search for “Daibutsu”
\nyt Mickey Mouse<\/code> <- Search YouTube for “Mickey Mouse”<\/p>\n

There are currently over 11,550 commands in YubNub. Fortunately there is a search command “ls<\/em>”
\nls Google<\/code> <- lists all Google related commands
\nls mobile<\/code> <- lists all mobile related commands<\/p>\n

The examples above are all simple, but some YubNub commands are more complex,taking multiple arguments, for example;<\/p>\n

xe -amount 100 -from USD -to EUR<\/code> <- currency conversion of 100 US Dollars to Euros (ouch!).<\/p>\n

\" YubNubSo how do you know that you have to enter -from<\/em> and -to<\/em> and which currency codes you can use? For that there is the “man” (manual) command:
\nman xe<\/code>
\nWhich takes you to this helpful
description page.<\/a><\/p>\n

The above examples just scratch the surface, YubNub is really a powerful scripting language with logical operators like ifThen<\/em>, functions like random<\/em> and the ability to pipe the output of one command into another. To get up to speed with YubNub, first take a look at Jon Aquino’s blog post<\/a> announcing YubNub. Other good YubNub resources include the YubNub Google Group<\/a> and Jeremy’s Picks<\/a> which is a good list of essential YubNub commands. I find looking at the code of existing YubNub commands, which is displayed as the first line of the the man command’s output, to be a big help in figuring out how to do things in YubNub.<\/p>\n

If your still with me at this point, you’re probably wondering what this has to do with mobiles? Actually, a lot. While the normal YubNub homepage is at least marginally usable on a phone – especially if you turn off images, there is a better way. There are at least two mobile front ends to YubNub.<\/p>\n

Metroblogging’s YubNub Mobile, metroblogging.com\/yubnub<\/a> is a mobile-sized YubNub prompt where you can type YubNub commands and view the results. Because the results aren’t transcoded and they are not always mobile friendly. You need to limit yourself to mobile specific YubNub commands like:
\ngmobile<\/code> url<\/em> <- returns url<\/em> transcoded by Google. (There’s also skw and iyhy which do the same thing using Skweezer or IYHY.)\" YubNub
\nblm<\/code> <- launches Bloglines Mobile
\namo query<\/em><\/code> <- searches Mobile Answers.com for query<\/em><\/p>\n

A really useful pair of commands are mo<\/em> and mot<\/em>. Both of these take a YubNub command as an argument and return the result transcoded by Google. mot<\/em> strips out images while mo<\/em> doesn’t. The bottom image shows part of mot’s man<\/em> page.
\nmo xe -amount 100 -from USD -to EUR<\/code> <- convert 100 US Dollars to Euros and mobilize the result.<\/p>\n

Another way of mobilizing commands is to use url<\/em> and {}. url<\/em> is a YubNub function which converts a YubNub command into a url. Enclosing a YubNub command in curly brackets allows you to pass its results to another YubNub command. So,
\niyhy {url g Motorola i850}<\/code>
\nfirst creates the url necessary to do a Google search for “Motorola i850” and then feeds that url to IYHY.<\/p>\n

MetroBlogging YubNub Mobile: xhtml<\/a>
\nFeatures: \"*\"\"*\"\"*\" Usability: \"*\"\"*\"\"*\"<\/p>\n

-+-<\/p>\n

You don’t need to restrict yourself to mobile specific commands if you use the other YubNub Mobile<\/em> which was created by Phil Bogle. Phil is a Blackberry guru who writes an entertaining Blackberry focused blog and who has also created Berry411<\/a>, a Blackberry Java ME front end to numerous web services. I don’t have a Blackberry so I haven’t tried Berry411 but it sounds pretty cool. Phil’s YubNub Mobile is at www.thebogles.com\/yubnub.html and looks almost the same as the Metroblogging one but it uses Skweezer to mobilize the results of any YubNub command.<\/p>\n

Bogles YubNub Mobile: xhtml
\nFeatures: \"*\"\"*\"\"*\"\"*\" Usability: \"*\"\"*\"\"*\"\"*\"<\/p>\n

-+-<\/p>\n

The best part about YubNub is that anyone can create a new commands using the create<\/em> command. Creating and sharing what you’ve created. That’s the social aspect of YubNub which has been called “The social command line for the web”. If you type the following into YubNub;
\n
\ncreate newCommandName
\n<\/code>
\nYou’ll be prompted to enter the url that executes the command along with a description which becomes the man page. You can and should test your command right on the same page. If your writing a complex command that takes parameters you may have to do a little trial and error before you get it right. You should only save your new command when you are absolutely sure it works as intended. Once the command is saved the only way to modify or delete it is by emailing Jon Aquino.<\/p>\n

YubNub is a lot of fun and downright useful. Give it a try. So you don’t have to type type those long url’s into your phone browser I’ve added both mobile versions of YubNub to the Search\/Web\/WAP Search section of YesWap.com<\/p>\n","protected":false},"excerpt":{"rendered":"

YubNub is a web app that has been generating a lot of buzz ever since Jon Aquino created it a year ago to win a Ruby on Rails programming contest. If you haven’t heard of YubNub (Ewok for “hooray’, BTW) it’s a “command line for the web”. Just like the MS-DOS > prompt or a *nix shell, you type commands into YubNub and wonderful things happen – or not – if you mess up. As the web takes on more … Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":21498,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[19,18,17,3,7,15],"tags":[],"_links":{"self":[{"href":"https:\/\/wapreview.com\/wp-json\/wp\/v2\/posts\/120"}],"collection":[{"href":"https:\/\/wapreview.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wapreview.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wapreview.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wapreview.com\/wp-json\/wp\/v2\/comments?post=120"}],"version-history":[{"count":8,"href":"https:\/\/wapreview.com\/wp-json\/wp\/v2\/posts\/120\/revisions"}],"predecessor-version":[{"id":22949,"href":"https:\/\/wapreview.com\/wp-json\/wp\/v2\/posts\/120\/revisions\/22949"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wapreview.com\/wp-json\/wp\/v2\/media\/21498"}],"wp:attachment":[{"href":"https:\/\/wapreview.com\/wp-json\/wp\/v2\/media?parent=120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wapreview.com\/wp-json\/wp\/v2\/categories?post=120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wapreview.com\/wp-json\/wp\/v2\/tags?post=120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}