ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

Frink - Multi skilled converter-math application

(1/4) > >>

kartal:
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 :)


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.

kartal:
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.

hamradio:
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

mouser:
ha! it worked! nice.

kartal:
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.net/frinkdocs/#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.

Navigation

[0] Message Index

[#] Next page

Go to full version