Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • September 03, 2015, 10:50:41 PM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Alias: WolframAlpha Search  (Read 9787 times)

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,219
    • View Profile
    • Coding Snacks by Lanux128
    • Donate to Member
Alias: WolframAlpha Search
« on: May 20, 2009, 09:36:27 PM »
An an aside: How about someone make us a farr alias to search wolfram alpha?

as requested by mouser. i realize that their service is still in alpha stage. so this is a good time as any to try out. :)

ws-farr-alias-wolfram-1.png
thanks to [user]hamradio[/user] for the icon.


edit1: fixed the encoding bug, thanks to oioisaveloy.
« Last Edit: May 30, 2009, 10:16:49 AM by lanux128 »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 35,012
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Donate to Member
Re: Alias: WolframAlpha Search
« Reply #1 on: May 24, 2009, 02:21:04 AM »
Sorry i didn't reply to this earlier -- great stuff, thank you  :up:

oioisaveloy

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 2
    • View Profile
    • Donate to Member
Re: Alias: WolframAlpha Search
« Reply #2 on: May 30, 2009, 08:32:31 AM »
This seems to have a problem with the plus sign: for example 5+6 gives the answer 30  ;D

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 35,012
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Donate to Member
Re: Alias: WolframAlpha Search
« Reply #3 on: May 30, 2009, 08:42:29 AM »
hahaha nice catch oiosaveloy  ;D

lanux, to fix it change the alias from:
Code: [Select]
    <AliasEntry>
        <AliasText>WolframAlpha</AliasText>
        <Score>1000</Score>
        <Regex>^wa (.*)</Regex>
        <Results>
            <Result>WolframAlpha: $$1 | http://www.wolframalpha.com/input/?i=$$1 /ICON=icons\wolframalpha.ico</Result>
        </Results>
    </AliasEntry>
to:
Code: [Select]
    <AliasEntry>
        <AliasText>WolframAlpha</AliasText>
        <Score>1000</Score>
        <Regex>^wa (.*)</Regex>
        <Results>
            <Result>WolframAlpha: $$1 | http://www.wolframalpha.com/input/?i=$$u1 /ICON=icons\wolframalpha.ico</Result>
        </Results>
    </AliasEntry>

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 35,012
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Donate to Member
Re: Alias: WolframAlpha Search
« Reply #4 on: May 30, 2009, 08:43:21 AM »
the use of $$u1 instead of $$1 when calling the url tells farr to urlencode the arguement which survives the browser call properly.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,219
    • View Profile
    • Coding Snacks by Lanux128
    • Donate to Member
Re: Alias: WolframAlpha Search
« Reply #5 on: May 30, 2009, 10:19:12 AM »
no problem, the encoding bug is fixed. download the alias from the OP or get the update from DcUpdater. ;)

oioisaveloy

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 2
    • View Profile
    • Donate to Member
Re: Alias: WolframAlpha Search
« Reply #6 on: May 31, 2009, 05:49:09 AM »
Thanks guys, the update works great  8)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 35,012
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Donate to Member
Re: Alias: WolframAlpha Search
« Reply #7 on: August 16, 2010, 12:23:21 PM »
Note, if you want the result from wolfram alpha to display directly in your farr window, and not open your browser to show it, you can easily do that by changing the alias result from:
Code: [Select]
WolframAlpha: $$1 | http://www.wolframalpha.com/input/?i=$$u1 /ICON=icons\wolframalpha.icoto:
Code: [Select]
WolframAlpha: $$1 | htmlviewurl http://www.wolframalpha.com/input/?i=$$u1 /ICON=icons\wolframalpha.ico

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 6,198
    • View Profile
    • Miles Ahead Software
    • Donate to Member
Re: Alias: WolframAlpha Search
« Reply #8 on: August 16, 2010, 01:38:25 PM »
For calculations you can type in using C syntax, I've been using this little utility for years:

http://analogx.com/c...g/pcalc/Freeware.htm

The result is shown simultaneously in Float Hex Octal Integer and Binary.  To copy the one you want to the clipboard there's a little 'C' button to the right of it.  Also you can use variables.

Just thought many people may not be aware of it. :)

pcalc.jpg