Re: [Factor-talk] Dollar amounts

2014-09-03 Thread mr wzrd


Then again, once one has got gpg working, with the commands saved in 
the terminal history, it is easier just to hit the up arrow a few 
times, recall the last working command, and hit enter ...




Speaking of which, does the listener support command history?

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] Dollar amounts

2014-09-03 Thread Georg Simon
Am Wed, 03 Sep 2014 04:20:06 -0400
schrieb mr wzrd wzr...@gmail.com:

 Speaking of which, does the listener support command history?
 

What I know is that it remembers the current session.
Ctrl+P previous
Ctrl+N next

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] Dollar amounts

2014-09-03 Thread mr wzrd


On 09/03/2014 04:25 AM, Georg Simon wrote:

Am Wed, 03 Sep 2014 04:20:06 -0400
schrieb mr wzrd wzr...@gmail.com:


Speaking of which, does the listener support command history?


What I know is that it remembers the current session.
Ctrl+P previous
Ctrl+N next


Is there a way to map Ctrl+P to the up arrow, and Ctrl+N to the down arrow?


--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] Dollar amounts

2014-09-03 Thread mr wzrd


On 09/03/2014 04:25 AM, Georg Simon wrote:

Am Wed, 03 Sep 2014 04:20:06 -0400
schrieb mr wzrd wzr...@gmail.com:


Speaking of which, does the listener support command history?


What I know is that it remembers the current session.
Ctrl+P previous
Ctrl+N next


/Danke schön/ this is what I needed, but am just used to using the up 
and down arrows.



--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] Dollar amounts

2014-09-03 Thread John Porubek
On Wed, Sep 3, 2014 at 4:20 AM, mr wzrd wzr...@gmail.com wrote:

 Speaking of which, does the listener support command history?

You can wrap the console version of the listener with rlwrap which
gives you persistent command history (very useful!). See
http://fun-factor.blogspot.com/2009/10/system-wide-factor.html for
more info. See http://dressguardmeister.blogspot.com/2007/01/blog-post.html
for screencasts that demo this concept.

It would be great to have these features in the GUI listener.

-John

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] Dollar amounts

2014-09-03 Thread mr wzrd

On 09/03/2014 11:39 AM, John Porubek wrote:
 On Wed, Sep 3, 2014 at 4:20 AM, mr wzrd wzr...@gmail.com wrote:
 Speaking of which, does the listener support command history?
 You can wrap the console version of the listener with rlwrap which
 gives you persistent command history (very useful!). See
 http://fun-factor.blogspot.com/2009/10/system-wide-factor.html for
 more info. See http://dressguardmeister.blogspot.com/2007/01/blog-post.html
 for screencasts that demo this concept.

 It would be great to have these features in the GUI listener.

Are these features different than using Ctrl+N and Ctrl+P in the graphical 
listener?

Is rlwrap necessary for the textual listener, because it lacks Ctrl+N and 
Ctrl+P?

   - mrw


--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] Dollar amounts

2014-09-03 Thread John Benediktsson
The command line listener does not have keybindings for history or
searching, you can get that two ways:

1) using ``rlwrap ./factor`` which has the effect of adding history and
emacs ctrl-a/k/d/n/p keybindings

2) using ``./factor -run=readline-listener`` which has a per-session
history, emacs keybindings, and adds tab completion similar to the UI
listener.

The UI listener implements history support in
``ui.tools.listener.history``, and it would probably be pretty easy to
implement saving and loading of history similar to how readline does it, if
anyone wants a project :-)




On Wed, Sep 3, 2014 at 10:42 AM, mr wzrd wzr...@gmail.com wrote:


 On 09/03/2014 11:39 AM, John Porubek wrote:
  On Wed, Sep 3, 2014 at 4:20 AM, mr wzrd wzr...@gmail.com wrote:
  Speaking of which, does the listener support command history?
  You can wrap the console version of the listener with rlwrap which
  gives you persistent command history (very useful!). See
  http://fun-factor.blogspot.com/2009/10/system-wide-factor.html for
  more info. See
 http://dressguardmeister.blogspot.com/2007/01/blog-post.html
  for screencasts that demo this concept.
 
  It would be great to have these features in the GUI listener.

 Are these features different than using Ctrl+N and Ctrl+P in the graphical
 listener?

 Is rlwrap necessary for the textual listener, because it lacks Ctrl+N and
 Ctrl+P?

- mrw



 --
 Slashdot TV.
 Video for Nerds.  Stuff that matters.
 http://tv.slashdot.org/
 ___
 Factor-talk mailing list
 Factor-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/factor-talk

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] Dollar amounts

2014-09-02 Thread mr wzrd
Was thinking about the fact that some GUI's are wrappers around an 
existing command-line utility.  On linux, brasero and cdrecord are one 
example.


Then was thinking about man pages and the fact that some have been 
converted from their original text format to html.


Maybe there is a next step for man pages?

What if we created a sort of interactive man page that included each 
different argument, with its description, and a textbox to enter a value.


Each command would have a list arguments, and a submit button at the end 
that outputs a functional command, and possibly executes it.


Then, with a web-browser, there would be a graphical front-end for every 
terminal command on a linux system, even without installing any 
rich-client-type GUI's.


The same could possibly be done for words in Factor.

If I'm not mistaken, current Factor documentation is generated from source.

Imagine that there were a utility that takes a Factor word and outputs 
an html page with inputs and outputs, provided that both input and 
output are strings.


Then writing a simple web app would be as simple as defining a new word.

Has anyone already patented Factor-on-rails?

  - mrw

On 09/01/2014 06:17 PM, mr wzrd wrote:
Would be cool to have the whole OS centered around the listener, 
rather than the terminal.


On 09/01/2014 02:13 PM, John Benediktsson wrote:

If you use ``ui.clipboards``, you can do this:

IN: scratchpad USE: ui.clipboards

IN: scratchpad Factor is awesome clipboard get 
set-clipboard-content


Now, just paste!

(One could argue the api could be a little cleaner and hide the use 
of namespaces when using the standard system clipboard, so if you 
have suggestions after using it, let us know).




On Wed, Aug 27, 2014 at 11:02 PM, mr wzrd wzr...@gmail.com 
mailto:wzr...@gmail.com wrote:


Is there a word for printing to the clipboard instead of to the
listener output?


--
Slashdot TV.
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
mailto:Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk




--
Slashdot TV.
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/


___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk




--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] Dollar amounts

2014-09-02 Thread mr wzrd
The next question would be how to integrate hand-written HTML page 
elements with generated HTML.


(Flashback to J2EE... ) Duck and cover!

On 09/03/2014 12:00 AM, mr wzrd wrote:
Was thinking about the fact that some GUI's are wrappers around an 
existing command-line utility.  On linux, brasero and cdrecord are one 
example.


Then was thinking about man pages and the fact that some have been 
converted from their original text format to html.


Maybe there is a next step for man pages?

What if we created a sort of interactive man page that included each 
different argument, with its description, and a textbox to enter a value.


Each command would have a list arguments, and a submit button at the 
end that outputs a functional command, and possibly executes it.


Then, with a web-browser, there would be a graphical front-end for 
every terminal command on a linux system, even without installing any 
rich-client-type GUI's.


The same could possibly be done for words in Factor.

If I'm not mistaken, current Factor documentation is generated from 
source.


Imagine that there were a utility that takes a Factor word and outputs 
an html page with inputs and outputs, provided that both input and 
output are strings.


Then writing a simple web app would be as simple as defining a new word.

Has anyone already patented Factor-on-rails?

  - mrw

On 09/01/2014 06:17 PM, mr wzrd wrote:
Would be cool to have the whole OS centered around the listener, 
rather than the terminal.


On 09/01/2014 02:13 PM, John Benediktsson wrote:

If you use ``ui.clipboards``, you can do this:

IN: scratchpad USE: ui.clipboards

IN: scratchpad Factor is awesome clipboard get 
set-clipboard-content


Now, just paste!

(One could argue the api could be a little cleaner and hide the use 
of namespaces when using the standard system clipboard, so if you 
have suggestions after using it, let us know).




On Wed, Aug 27, 2014 at 11:02 PM, mr wzrd wzr...@gmail.com 
mailto:wzr...@gmail.com wrote:


Is there a word for printing to the clipboard instead of to the
listener output?


--
Slashdot TV.
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
mailto:Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk




--
Slashdot TV.
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/


___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk






--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] Dollar amounts

2014-09-01 Thread John Benediktsson
If you use ``ui.clipboards``, you can do this:

IN: scratchpad USE: ui.clipboards

IN: scratchpad Factor is awesome clipboard get set-clipboard-content

Now, just paste!

(One could argue the api could be a little cleaner and hide the use of
namespaces when using the standard system clipboard, so if you have
suggestions after using it, let us know).



On Wed, Aug 27, 2014 at 11:02 PM, mr wzrd wzr...@gmail.com wrote:

 Is there a word for printing to the clipboard instead of to the listener
 output?


 --
 Slashdot TV.
 Video for Nerds.  Stuff that matters.
 http://tv.slashdot.org/
 ___
 Factor-talk mailing list
 Factor-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/factor-talk

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] Dollar amounts

2014-09-01 Thread mr wzrd
Would be cool to have the whole OS centered around the listener, rather 
than the terminal.


On 09/01/2014 02:13 PM, John Benediktsson wrote:

If you use ``ui.clipboards``, you can do this:

IN: scratchpad USE: ui.clipboards

IN: scratchpad Factor is awesome clipboard get set-clipboard-content

Now, just paste!

(One could argue the api could be a little cleaner and hide the use of 
namespaces when using the standard system clipboard, so if you have 
suggestions after using it, let us know).




On Wed, Aug 27, 2014 at 11:02 PM, mr wzrd wzr...@gmail.com 
mailto:wzr...@gmail.com wrote:


Is there a word for printing to the clipboard instead of to the
listener output?


--
Slashdot TV.
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
mailto:Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk




--
Slashdot TV.
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/


___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] Dollar amounts

2014-08-28 Thread mr wzrd
I'm unsure which type of table to use.

I don't think I want a full blown table UI gadget.

Looking for something like an html table.

Should I use a table style with formatted io?

Is there a word to construct an html table?

On Thu, Aug 28, 2014 at 1:50 AM, Doug Coleman doug.cole...@gmail.com wrote:
 Try the table. word.

 On Aug 27, 2014 10:48 PM, mr wzrd wzr...@gmail.com wrote:

 What is the best way to get an array of arrays to look like a spreadsheet?


 --
 Slashdot TV.
 Video for Nerds.  Stuff that matters.
 http://tv.slashdot.org/
 ___
 Factor-talk mailing list
 Factor-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/factor-talk


 --
 Slashdot TV.
 Video for Nerds.  Stuff that matters.
 http://tv.slashdot.org/
 ___
 Factor-talk mailing list
 Factor-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/factor-talk


--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] Dollar amounts

2014-08-28 Thread mr wzrd
Oh wait, table returned a bunch of results, but table. led me to
simple-table., which prints out a nice little table, right out of
the box.  Cheers.

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] Dollar amounts

2014-08-28 Thread mr wzrd
Is there a word for printing to the clipboard instead of to the listener output?

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] Dollar amounts

2014-08-27 Thread mr wzrd
What is the best way to get an array of arrays to look like a spreadsheet?

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] Dollar amounts

2014-08-27 Thread Doug Coleman
Try the table. word.
On Aug 27, 2014 10:48 PM, mr wzrd wzr...@gmail.com wrote:

 What is the best way to get an array of arrays to look like a spreadsheet?


 --
 Slashdot TV.
 Video for Nerds.  Stuff that matters.
 http://tv.slashdot.org/
 ___
 Factor-talk mailing list
 Factor-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/factor-talk

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] Dollar amounts

2014-08-26 Thread Doug Coleman
Try the decimals and money vocabularies.
On Aug 26, 2014 8:14 PM, mr wzrd wzr...@gmail.com wrote:

 Also, was wondering if there is planned future support for dollar amounts.

 Wondering how dollar amounts could be defined using the existing number
 classes.

 The dollar amounts I was working with are initially stored as strings.

 I could not compare values as strings, because 70.70 would not be
 equivalent to 70.7.

 So, I compared as float values, but then sometimes I get
 19.1002 in the output.


 --
 Slashdot TV.
 Video for Nerds.  Stuff that matters.
 http://tv.slashdot.org/
 ___
 Factor-talk mailing list
 Factor-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/factor-talk

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] Dollar amounts

2014-08-26 Thread mr wzrd
Isn't it wonderful when one thinks, Gee wouldn't it be nice if we had
..., and it is already there.


On Tue, Aug 26, 2014 at 11:16 PM, Doug Coleman doug.cole...@gmail.com wrote:
 Try the decimals and money vocabularies.

 On Aug 26, 2014 8:14 PM, mr wzrd wzr...@gmail.com wrote:

 Also, was wondering if there is planned future support for dollar amounts.

 Wondering how dollar amounts could be defined using the existing number
 classes.

 The dollar amounts I was working with are initially stored as strings.

 I could not compare values as strings, because 70.70 would not be
 equivalent to 70.7.

 So, I compared as float values, but then sometimes I get
 19.1002 in the output.


 --
 Slashdot TV.
 Video for Nerds.  Stuff that matters.
 http://tv.slashdot.org/
 ___
 Factor-talk mailing list
 Factor-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/factor-talk


 --
 Slashdot TV.
 Video for Nerds.  Stuff that matters.
 http://tv.slashdot.org/
 ___
 Factor-talk mailing list
 Factor-talk@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/factor-talk


--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk