Welcome Guest.   Make a donation to an author on the site November 20, 2014, 08:11:50 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2011! Download 30+ custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: Frink - Multi skilled converter-math application  (Read 8001 times)
kartal
Supporting Member
**
Posts: 1,529


View Profile Give some DonationCredits to this forum member
« on: August 03, 2008, 11:38:02 AM »

This application is mix of calculator-converter and programming  language. Also it offers translation services if you have internet connection.

It would be very neat if this could be embedded into FARR somehow smiley


http://futureboy.us/frinkdocs/

"Frink is a practical calculating tool and programming language designed to help us all to better understand the world around us, to help us get calculations right without getting bogged down in the mechanics, and to make a tool that's really useful in the real world. It tracks units of measure (feet, meters, kilograms, watts, etc.) through all calculations, allowing you to make physical calculations easily, to mix units of measure transparently, and ensures that the answers come out right."


# Tracks units of measure (feet, meters, tons, dollars, watts, etc.) through all calculations and allows you to add, subtract, multiply, and divide them effortlessly, and makes sure the answer comes out correct, even if you mix units like gallons and liters.
# Arbitrary-precision math, including huge integers and floating-point numbers, rational numbers (that is, fractions like 1/3 are kept without loss of precision,) complex numbers, and intervals.
# Advanced mathematical functions including trigonometric functions (even for complex numbers,) factoring and primality testing, and base conversions.
# Unit Conversion between thousands of unit types with a huge built-in data file.
# Date/time math (add offsets to dates, find out intervals between times,) timezone conversions, and user-modifiable date formats.
# Translates between several human languages, including English, French, German, Spanish, Portuguese, Dutch, Korean, Japanese, Russian, Chinese, Swedish, and Arabic.
# Calculates historical buying power of the U.S. dollar and British pound.
# Calculates exchange rates between most of the world's currencies.
# Powerful Perl-like regular expression capabilities and text processing.
# Supports Unicode throughout, allowing processing of almost all of the world's languages.
# Supports Interval Arithmetic (also known as Interval Computations) in calculations, allowing you to automagically calculate error bounds and uncertainties in all of your calculations.
# Reads HTTP and FTP-based URLs as easily as reading local files, allowing fetching of live web-based data.
# Runs on most major operating systems (anything with Java 1.1 or later,) as an applet, through a web-based interface, on a wireless Palm VII, on an HDML- or WML-based webphone, and on many mobile phones and hand-held devices.
# Installs itself on your system in seconds using Java Web Start and automatically keeps itself updated when new versions of Frink are released.
# Runs with a Graphical User Interface (both Swing and AWT) or a command-line interface.
# User interface has a Programming Mode which allows you to write, edit, save, and run extremely powerful programs even on a handheld device.
# Powers Frink Server Pages, a system for providing dynamic web pages powered by Frink.
# Frink is a full-fledged programming language with arrays, dictionaries, sets, functions, loops, even object-oriented programming and self-evaluation.
# Frink allows Object-Oriented Programming, which allows you to create complex data structures that are still easy to use.
# Java Introspection layer allows you to call any Java code from within Frink.
# Frink can also be embedded in a Java program, giving your Java programs all the power of Frink.
Logged
kartal
Supporting Member
**
Posts: 1,529


View Profile Give some DonationCredits to this forum member
« Reply #1 on: August 03, 2008, 11:36:04 PM »

I actually would like to know what some of those snappy programmers think about this. As a non programmer tiny scripter I think this application is really useful in many levels.
Logged
hamradio
Charter Honorary Member
***
Posts: 601



Amateur Radio Guy

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #2 on: August 04, 2008, 12:42:27 AM »

It can using the html view and doing something like the below...
Copy the below text and right click on the listview in my aliases or another that is not read only and hit "Import: Paste Preformatted Alias Groups..".

1000>>>frink>->Frink Calc - [$$1] | htmlviewurl http://futureboy.us/fsp/frink.fsp?fromVal=$$1>n>Unit Lookup - [$$1] | htmlviewurl http://futureboy.us/fsp/frink.fsp?lookup=$$1>+>^frink (.*)


To test do something like...

frink 10 yards->meters

« Last Edit: August 04, 2008, 12:47:47 AM by hamradio » Logged

Carroll - HamRadioUSA
mouser
First Author
Administrator
*****
Posts: 33,678



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #3 on: August 04, 2008, 06:21:48 AM »

ha! it worked! nice.
Logged
kartal
Supporting Member
**
Posts: 1,529


View Profile Give some DonationCredits to this forum member
« Reply #4 on: August 05, 2008, 10:57:50 PM »

ok, I have managed to run Frink from Farr as an aliases. Naturally the results are shown outside of Farr in commandline box. I have tried console plugin but it seems to be broken at the moment.


9000>>>frink>->frink $$1 | E:\WINDOWS\SysWOW64\cmd.exe /k frink.bat "$$1">+>^frink (.*)

I am under 64bit xp that is why my cmd exe is in a weird place normally it is under system32 so for you it should be

9000>>>frink>->frink $$1 | E:\WINDOWS\system32\cmd.exe /k frink.bat "$$1">+>^frink (.*)

To run frink from commandline please carefully follow this section it the help file

http://futureboy.homeip.n...kdocs/#CommandLineOptions

You need to download the .bat file mentioned there which is " http://futureboy.homeip.net/frinkjar/frink.bat ". Then modify the paths properly inside the .bat file. One thing that is missing in the batch file is "-e" option. I think programmer has forgotten it. So the correct line is is below

"
REM If we're running with arguments,
"%JAVA%" -Xmx192M -cp "%FRINKJAR%" frink.parser.Frink -k -e %1 %2 %3 %4 %5 %6 %7 %8 %9
goto END
"

"-k" means interactive mode, you can remove it if you want frink to calculate and quit calculation mode.

Also make sure that your Frink app folder path is added to environment variables (also mentioned in Frink help).

Once you set all you will have a true calculator that can convert, calculate many zillion things and formats. This one is nicer than google cal because this is an offline solution ( unless you want to do exchange rates).


I am hoping that someone could make a successfull Farr console plugin alias for Farr.

« Last Edit: August 05, 2008, 11:01:49 PM by kartal » Logged
mouser
First Author
Administrator
*****
Posts: 33,678



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #5 on: August 05, 2008, 11:02:11 PM »

i think we just need czechboy to post an example of how to use the pcommand with the new console plugin and new version of farr.
Logged
kartal
Supporting Member
**
Posts: 1,529


View Profile Give some DonationCredits to this forum member
« Reply #6 on: August 05, 2008, 11:07:23 PM »

that would be great. I would surely prefer a natural embedding of the frink results.

Just you know guys, Frink is frinking cool. It can do stuff like time calculations, extract info from websites like fishing emails or urls, check out time zones etc etc.  Give a try.
« Last Edit: August 05, 2008, 11:18:28 PM by kartal » Logged
czb
Honorary Member
**
Posts: 335



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #7 on: August 06, 2008, 03:04:08 AM »

I have uploaded latest version 1.06 of console plugin.
here is how to use pcommand:
test
^test (.*?)$
City time: $$1 | pcommand console D:\citytime.exe $$1
Logged

My open-source online piano game: http://musicope.com/
Curt
Supporting Member
**
Posts: 6,346

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #8 on: August 06, 2008, 04:25:02 AM »

WiseCalc may or may not yet have reached their target, but they too are aiming at the top:

Quote
WiseCalc is the complete mathematical text engine calculator for your computer. WiseCalc is better than other calculation software because:

    * it's FREE!
    * it has a multi-line text-editor type of interface
    * it has 450+ unit conversions built-in
    * it has hundreds of functions built-in
    * it can save and open calculation pages
    * it can evaluate built-in and user definable functions, units, constants, and matrices
    * it just is... trust us!

Go ahead and see for yourself what WiseCalc has to offer. We want WiseCalc to be the best FREE calculator there is. If you have any ideas about how to make WiseCalc better or you encounter any problems, please let us know via e-mail or post on the message boards.

http://www.wisecalc.com/

Quote
Calculation Engine

    * Supports evaluation of complex in-line mathematical expressions
    * Line referencing (can perform mathematical operations of various line
    * Evaluation of the Inverse, Prime Factors, and Decimal to Fraction automatically
    * Ability to solve built-in and user defined functions
    * Ability to use built-in or user defined constants in mathematical expressions
    * Standard, Engineering, Scientific, and Financial modes
    * Tape mode supported for referring to the previous line when performing mathematical operations
    * All types of Trigonometric functions built in with Radian and Degree modes
    * Supports calculating and working with imaginary numbers in Rectangular, Polar, or Rectangular Sum modes
    * Evaluation of mathematical expressions in number bases 2 - 16 (decimal: 10 is the default)
    * Evaluation of mathematical expressions in different numbers bases (2 - 16) at the same time
    * Ability to dynamically change the number of Significant Figures used for display
    * Mathematical Operations supported: +, -, *, /, ^, !, | |, i
    * Bitwise Operations and Bit Shifting supported for Binary numbers

File I/O

    * Ability to Save CalcPages
    * Ability to Open CalcPages
    * Ability to Print Calc Pages (includes Print Preview)

Conversions

    * 450+ built-in unit conversions
    * Ability to create user-defined units for use in unit conversions
    * Base Number conversions (any number base 2 - 16)

Matrix Math

    * Ability to create user-defined Matrices
    * Built-in Gaussian Jordan Elimination
    * Take the Inverse and Transpose of Matrices
    * Row-by-Row operations (add multiplies of rows to other rows, divide rows, switch rows)

Miscellaneous

    * Ability to calculate the elapsed time between two date and times (from seconds to Millennia)
    * Ability to use Greek symbols in user defined Functions and Constants
    * Ability to change font size, color, and style in CalcPages
    * Ability to remove trailing zeros
Logged
kartal
Supporting Member
**
Posts: 1,529


View Profile Give some DonationCredits to this forum member
« Reply #9 on: August 06, 2008, 10:12:17 AM »

thanks for the update. But I am getting an error when I try your citytime syntax. CHeck out the screenshot for the error please.


pcommand:
test
^test (.*?)$
City time: $$1 | pcommand console


* Yakala_8_6_2008 , 10_12_44 AM.png (7.97 KB, 558x194 - viewed 353 times.)
Logged
mouser
First Author
Administrator
*****
Posts: 33,678



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #10 on: August 06, 2008, 10:21:11 AM »

that probably means you dont have the (latest?) version of the console plugin installed.
Logged
kartal
Supporting Member
**
Posts: 1,529


View Profile Give some DonationCredits to this forum member
« Reply #11 on: August 06, 2008, 11:00:53 AM »

No, I have updated the plugin.
Logged
lanux128
Global Moderator
*****
Posts: 6,131



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #12 on: August 07, 2008, 07:41:27 AM »

No, I have updated the plugin.

after updating the plugin, i too lost the functionality on the citytime alias, though didn't produce an error message. check out the post i made a post here.
Logged

czb
Honorary Member
**
Posts: 335



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #13 on: August 08, 2008, 05:09:15 AM »

No, I have updated the plugin.

This error occurs when console plugin does not respond to FARR. This can be caused by old version of FARR or Console plugin. So pls try to reinstall both Wink

Second error I see in your alias is that when path contains space characters it MUST be enclosed in "" Wink

Hope it helps
Logged

My open-source online piano game: http://musicope.com/
kartal
Supporting Member
**
Posts: 1,529


View Profile Give some DonationCredits to this forum member
« Reply #14 on: August 08, 2008, 12:02:39 PM »

czechboy, which part should be enclosed by ""? I tried couple variations and getting the same usual error.

Farr and console plugin updated to latest, has not produced a solution.

Here is the alias based on your recommandation

1000>>>citytime>->citytime $$1| pcommand console "E:\INCELENECEK_YAZILIMLAR\yardimci yazilimlar\CityTime\citytime.exe $$1">+>^citytime {0,1}(.*?)$
Logged
mouser
First Author
Administrator
*****
Posts: 33,678



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #15 on: August 08, 2008, 12:40:33 PM »

maybe try
1000>>>citytime>->citytime $$1| pcommand console "E:\INCELENECEK_YAZILIMLAR\yardimci yazilimlar\CityTime\citytime.exe" $$1>+>^citytime {0,1}(.*?)$
Logged
kartal
Supporting Member
**
Posts: 1,529


View Profile Give some DonationCredits to this forum member
« Reply #16 on: August 08, 2008, 12:47:55 PM »

it does not work. I have no idea why I am getting that particular message. I am under 64bit xp, would that be a problem?
Logged
mouser
First Author
Administrator
*****
Posts: 33,678



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #17 on: August 08, 2008, 12:50:20 PM »

when you run the updater, what version of Console plugin does it say you have installed?
Logged
kartal
Supporting Member
**
Posts: 1,529


View Profile Give some DonationCredits to this forum member
« Reply #18 on: August 08, 2008, 01:08:42 PM »

1.01.06 (installed, web)
Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.046s | Server load: 0.21 ]