[Factor-talk] How to delete files in a subdirectory ?

2013-03-05 Thread Georg Simon
New to Factor I have to ask. How to delete files in a subdirectory ? - Georg -- FactorProgrammierung.isthier.de Factor-Programmierung.isthier.de -- Everyone hates slow websites. So do we. Make your web apps faster

[Factor-talk] How to delete files in a subdirectory ?

2013-03-05 Thread Georg Simon
Now I found the io.directories vocabulary Thank you - Georg -- FactorProgrammierung.isthier.de Factor-Programmierung.isthier.de -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics

[Factor-talk] i18n

2013-07-17 Thread Georg Simon
Is there any mechanism in Factor to translate hard coded strings to the user's language? For now I use https://github.com/GeorgSimon/factor-i18n Georg -- Factor ist eine verkettende Programmiersprache. Vorsicht: Factor kann deinen Programmierstil ändern. FactorProgrammierung.isthier.de

[Factor-talk] font-size in listener

2013-07-17 Thread Georg Simon
Is it possible to change the font-size in the listener? Georg -- Factor ist eine verkettende Programmiersprache. Vorsicht: Factor kann deinen Programmierstil ändern. FactorProgrammierung.isthier.de Factor-Programmierung.isthier.de

Re: [Factor-talk] font-size in listener

2013-07-17 Thread Georg Simon
Am Wed, 17 Jul 2013 14:01:21 +0300 schrieb Ales Guzik pub...@aguzik.net: Hi. You may use the following: DejaVu Sans Mono 36 set-listener-font Ales. Great. Thank you -- See everything from the browser to the

[Factor-talk] font-size in label of labeled-gadget

2013-07-30 Thread Georg Simon
To change the font-size of the label of a labeled-gadget I search two children lists: : default-font ( gadget -- ) 16 swap font size ; : labeled-gadget-with-default-font ( gadget title -- gadget' ) labeled-gadget dup children [ border? ] find nip children [

Re: [Factor-talk] font-size in label of labeled-gadget

2013-07-30 Thread Georg Simon
Am Tue, 30 Jul 2013 16:20:54 -0700 schrieb John Benediktsson mrj...@gmail.com: Oh, I see, you want to change the font size of the label in the border, probably it would be better to do what you're doing, but making it a utility word: : change-labeled-font ( labeled-gadget quot: ( font --

[Factor-talk] how to wrap initial pane text ?

2013-08-11 Thread Georg Simon
I am looking for a way to adjust wrap-margin to the gadget width. But dim yields { 0 0 } as long as the gadget is not visible. So it seems to be impossible to wrap any initial pane content correctly.

[Factor-talk] Cannot find fonts slot in world objects

2013-08-12 Thread Georg Simon
http://docs.factorcode.org/content/word-world,ui.gadgets.worlds.html says: Worlds have the following slots: ... fonts - a hashtable ... but I cannot find the slot. fonts is unknown. Georg -- Factor ist eine verkettende Programmiersprache. Vorsicht: Factor kann deinen Programmierstil ändern.

Re: [Factor-talk] Factor packaging for Ubuntu

2013-08-26 Thread Georg Simon
copy of factor.image: factor-run -i=/opt/pub/mDS/factor/factor.image I have to use scaffold-vocab instead of scaffold-work. Georg Simon -- Introducing Performance Central, a new site from SourceForge and AppDynamics

[Factor-talk] minimum of two timestamps with side-effect ?

2014-08-21 Thread Georg Simon
I want to determine the earlier of two timestamps. Using min I got strange results. The first of the two timestamps is altered. It seems to be altered by gmt: IN: scratchpad today dup 1 days time+ --- Data stack: T{ timestamp f 2014 8 21 0 0 0 ~duration~ } T{ timestamp f 2014 8 22 0 0 0

Re: [Factor-talk] minimum of two timestamps with side-effect ?

2014-08-21 Thread Georg Simon
21 août 2014 16:46, Georg Simon georg.si...@auge.de a écrit : Thank you. Now it works. Georg signature.asc Description: PGP signature -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org

Re: [Factor-talk] sudo apt-get install

2014-09-01 Thread Georg Simon
Am Mon, 01 Sep 2014 05:32:05 -0400 schrieb mr wzrd wzr...@gmail.com: Hello list. Seem to remember seeing some posts about being able to install Factor via apt-get in debian/Ubuntu. Is it the case? If so, where is the package? deb http://ppa.launchpad.net/bjourne/factor/ubuntu saucy

Re: [Factor-talk] how to calculate count of days

2014-09-03 Thread Georg Simon
Am Tue, 2 Sep 2014 19:09:45 -0700 schrieb Alex Vondrak ajvond...@gmail.com: Thank you. ... That is, if it weren't for the GMT bit, you could just say `2014-08-31 ymdtimestamp ago durationdays`. In fact, that would make a nice ymdword: `: days-ago ( timestamp -- days ) ago durationdays

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

Re: [Factor-talk] how to calculate count of days

2014-09-04 Thread Georg Simon
today gmt 2014-08-31 ymdtimestamp time- durationdays . today 2014-08-31 ymdtimestamp time- durationdays . today in Germany both printed 3+11/12 Perhaps simpler would be just converting to GMT first: today gmt 2014-08-31 ymdtimestamp time- durationdays

Re: [Factor-talk] how to calculate count of days

2014-09-05 Thread Georg Simon
But then things go wrong in the rare cases when you change your timezone. I have learned much and now use two new words which solve my problem: : local-ymdtimestamp ( str -- timestamp ) ! str is -MM-DD ymdtimestamp gmt-offset-duration gmt-offset ; : days-since ( str -- n ) ! str

[Factor-talk] some command line arguments after a -run switch disappear

2014-09-14 Thread Georg Simon
http://docs.factorcode.org/content/article-command-line.html says that arguments after a script file are stored in command-line. Arguments after a -run switch are not mentioned. Testing with factor-linux-x86-64-2014-09-10-15-17.tar.gz I see arguments after the -run switch disappearing if they

Re: [Factor-talk] some command line arguments after a -run switch disappear

2014-09-15 Thread Georg Simon
Am Sun, 14 Sep 2014 08:46:39 -0700 schrieb John Benediktsson mrj...@gmail.com: That looks like a bug, I opened an issue and provided a possible fix: https://github.com/slavapestov/factor/issues/1133 Seems we need to a few more tests for the command-line vocabulary than we have...

[Factor-talk] column-titles disappear for tables without scroller

2014-09-19 Thread Georg Simon
I had to put the table into a scroller to make my column-titles visible. The example below opens two windows. On my system the column title is only visible in the second window. Is that intended? - USING: kernel models ui

Re: [Factor-talk] column-titles disappear for tables without scroller

2014-09-20 Thread Georg Simon
Am Sat, 20 Sep 2014 16:01:56 +0200 schrieb Jon Harper jon.harpe...@gmail.com: Looking at scrollers.factor, it looks like this was intended.. Factor's GUI was developed mainly for the factor tools (listener, help browser etc.) so the features they don't use might not implemented. But you

[Factor-talk] How to use another column-title-background ?

2014-09-21 Thread Georg Simon
Factor is such a great language. In my little application I also use the UI. But CONSTANT: column-title-background is buried deeply. Where would I have to start if I wanted tables with arbitrary colors? -- Slashdot TV.

[Factor-talk] Variable command-line only contains arguments

2014-12-22 Thread Georg Simon
http://docs.factorcode.org/content/word-command-line,command-line.html says: In deployed applications, it contains the entire command line. But in my deployed application I only get the arguments and not the command name. Georg signature.asc Description: PGP signature

Re: [Factor-talk] Variable command-line only contains arguments

2014-12-22 Thread Georg Simon
Am Mon, 22 Dec 2014 06:51:22 -0800 schrieb John Benediktsson mrj...@gmail.com: Hi Georg, I don't see a difference between deploy and when a script/vocabulary is run directly. Is your question about deploy, or how to obtain the command/executable name? Thanks, John. Hi John, yes I

Re: [Factor-talk] Variable command-line only contains arguments

2014-12-23 Thread Georg Simon
guess! If we fix it in master are you comfortable running a nightly build? (They are well tested before the build successfully uploads) On Dec 22, 2014, at 9:24 AM, Georg Simon georg.si...@auge.de wrote: Am Mon, 22 Dec 2014 06:51:22 -0800 schrieb John Benediktsson mrj

Re: [Factor-talk] Variable command-line only contains arguments

2014-12-24 Thread Georg Simon
Am Tue, 23 Dec 2014 11:22:49 -0800 schrieb John Benediktsson mrj...@gmail.com: Hi John, USE: command-line executable get command-line get works. Thank you. for now I cannot make deploy work in the new the nightly build. I started a new thread: deploy no longer working with new

Re: [Factor-talk] printf - Stack effect declaration

2015-03-03 Thread Georg Simon
printf ] expand-macros It also means that when you call it like you did, it will essentially generate and run that quotation. This is done to allow compile-time expansion of the format string for performance and stack effect checking. Best, John. On Tue, Mar 3, 2015 at 5:54 AM, Georg

[Factor-talk] printf - Stack effect declaration

2015-03-03 Thread Georg Simon
Hallo, http://docs.factorcode.org/content/word-printf%2Cformatting.html says printf ( format-string -- quot ) but in scratchpad USE: formatting test\n printf works without leaving a quotation on stack. Georg signature.asc Description: PGP signature

[Factor-talk] Why does editor pass some handled gestures?

2015-08-17 Thread Georg Simon
Ubuntu 14.04.2 LTS Factor 0.98 x86.64 (1565, heads/master-0-g592764d, Wed Dec 24 04:52:05 2014) [GCC 4.8.2] on linux In the test program http://paste.factorcode.org/paste?id=3590 BACKSPACE and DELETE don't appear in the terminal as they are handled by editor. UP and DOWN appear in the terminal as

Re: [Factor-talk] Why does editor pass some handled gestures?

2015-08-19 Thread Georg Simon
-command ] Hope that helps! Jon On Wed, Aug 19, 2015 at 7:01 AM, Georg Simon georg.si...@auge.de wrote: Thank you. What you describe is what I use. And I do not want an editor that always passes gestures. But now it comes to C+c, C+v, C+x, C+y, and C+z. There is no gesture-handler

Re: [Factor-talk] Why does editor pass some handled gestures?

2015-08-18 Thread Georg Simon
that helps! On Mon, Aug 17, 2015 at 10:55 PM, Georg Simon georg.si...@auge.de wrote: Ubuntu 14.04.2 LTS Factor 0.98 x86.64 (1565, heads/master-0-g592764d, Wed Dec 24 04:52:05 2014) [GCC 4.8.2] on linux In the test program http://paste.factorcode.org/paste?id=3590 BACKSPACE

Re: [Factor-talk] Why does editor pass some handled gestures?

2015-08-24 Thread Georg Simon
As far as I understand the answer to my question is as follows : editor passes C+c, C+s, and so on to it's parent. All parents should pass them too. In world waits a gesture-handler. It handles keypresses for which action gestures exist. The corresponding action gesture is sent to editor. editor

Re: [Factor-talk] stack effect

2015-07-29 Thread Georg Simon
Am Wed, 29 Jul 2015 08:44:20 +0100 schrieb Iain Gray iaing...@ednet.co.uk: Just guessing: Replace [ 0 amount 0 coins = or [ 0 ] with [ 0 amount 0 coins = or [ 0 ] signature.asc Description: PGP signature --

Re: [Factor-talk] Does the location of the image file matter ?

2015-07-29 Thread Georg Simon
Am Tue, 28 Jul 2015 23:41:59 +0200 schrieb Björn Lindqvist bjou...@gmail.com: I'm not sure I understand you. By default, resource: is setup as an alias the the directory containing the image file. But you can override it: factor -resource-path=/bla/bla -i=factor.image Essentially,

Re: [Factor-talk] Does the location of the image file matter ?

2015-07-29 Thread Georg Simon
Am Wed, 29 Jul 2015 12:00:04 +0200 schrieb Björn Lindqvist bjou...@gmail.com: It's because the switch is -resource-path not just -resource. My mistake. Sorry. signature.asc Description: PGP signature --

[Factor-talk] Why does numberstring append .0 on my German system ?

2015-08-11 Thread Georg Simon
IN: scratchpad 1.5 numberstring . 1,5.0 I would have expected 1,5 signature.asc Description: PGP signature -- ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net

Re: [Factor-talk] Why does numberstring append .0 on my German system ?

2015-08-11 Thread Georg Simon
to workaround: LC_CTYPE=C ./factor Should work. If not, you can try LC_ALL=C Jon Le 11 août 2015 9:30 AM, Georg Simon georg.si...@auge.de a écrit : IN: scratchpad 1.5 numberstring . 1,5.0 I would have expected 1,5

Re: [Factor-talk] Why does numberstring append .0 on my German system ?

2015-08-11 Thread Georg Simon
is really to always have 1.5 in the listener because we want an homoiconic language, so the listener ouptut numbers in source code format which is locale independant. Le 11 août 2015 10:12 AM, Georg Simon georg.si...@auge.de a écrit : Thank you. LC_CTYPE=C does not help. LC_ALL=C gives 1.5

Re: [Factor-talk] Why does numberstring append .0 on my German system ?

2015-08-13 Thread Georg Simon
for RAX for variable arguments. Also, I'm not sure if it works better for other ABI/platforms. Do you think that's something worth investigating ? Jon On Wed, Aug 12, 2015 at 7:10 AM, Georg Simon georg.si...@auge.de wrote: Am Tue, 11 Aug 2015 09:02:33 -0700 schrieb John Benediktsson

Re: [Factor-talk] Why does numberstring append .0 on my German system ?

2015-08-11 Thread Georg Simon
Am Tue, 11 Aug 2015 09:02:33 -0700 schrieb John Benediktsson mrj...@gmail.com: Thank you. So I didn't overlook existing locales support. Properly supporting locales, even in a small way, would be a good thing to add. Factor is currently locale-independent, partly because of a desire for

Re: [Factor-talk] Documentation for narray, nsequence, firstn, and set-firstn

2015-08-06 Thread Georg Simon
Am Thu, 6 Aug 2015 07:20:05 -0700 schrieb John Benediktsson mrj...@gmail.com: Thank you signature.asc Description: PGP signature -- ___ Factor-talk mailing list

[Factor-talk] Does the location of the image file matter ?

2015-07-26 Thread Georg Simon
Factor 0.98 x86.64 (1565, heads/master-0-g592764d, Wed Dec 24 04:52:05 2014) [GCC 4.8.2] on linux .factor-rc USE: vocabs.loader /home/factor/ add-vocab-root

Re: [Factor-talk] Does the location of the image file matter ?

2015-07-27 Thread Georg Simon
Am Sun, 26 Jul 2015 12:35:01 +0200 schrieb Georg Simon georg.si...@auge.de: Yes, it does matter. http://docs.factorcode.org/content/article-io.pathnames.special.html If a pathname begins with resource:, it is resolved relative

[Factor-talk] libsqlite3.so not found

2015-07-22 Thread Georg Simon
My system: -- $ lsb_release -drc Description:Ubuntu 14.04.2 LTS Release:14.04 Codename: trusty -- I tried Tuple database tutorial and got

Re: [Factor-talk] dead link at concatenative.org

2015-07-22 Thread Georg Simon
Am Thu, 16 Jul 2015 00:51:11 -0700 schrieb Doug Coleman doug.cole...@gmail.com: Thanks for the report; I fixed it. You should be able to create a new account, but I guess that's not the case? Doug Now I have found the new account link. I did not look for it inside the login page. Georg

Re: [Factor-talk] libsqlite3.so not found

2015-07-23 Thread Georg Simon
Am Wed, 22 Jul 2015 08:00:19 -0500 schrieb Ed Swartz eswa...@austin.rr.com: Typically you install the -dev version of a package to install plain *.so softlinks. E.g.: $ sudo apt-get install libsqlite3-dev $ dpkg -L libsqlite3-dev ... /usr/lib/x86_64-linux-gnu/libsqlite3.so Be sure

[Factor-talk] dead link at concatenative.org

2015-07-16 Thread Georg Simon
At http://concatenative.org/wiki/view/Factor/Running%20Factor there is a dead link for command line switches. I could not find out how to edit the wiki. Do you have access? http://docs.factorcode.org/content/article-cli.html should be replaced by

[Factor-talk] "hello-ui" deploy no longer works - Ubuntu 14.04.3 LTS

2015-11-15 Thread Georg Simon
Hello When testing deploy I get an error as appended. Half a year ago I think deploy worked fine. Has Ubuntu changed? What can I do? Thank you, Georg - Factor 0.98 x86.64 (1720, heads/master-7b18618b3e, Wed Nov 4 12:55:22 2015)

Re: [Factor-talk] "hello-ui" deploy no longer works - Ubuntu 14.04.3 LTS

2015-11-15 Thread Georg Simon
> > If that doesn't fix it let me know. > > Thanks, > John: > > > On Nov 15, 2015, at 3:11 AM, Georg Simon <georg.si...@auge.de> > > wrote: > > > > Hello > > > > When testing deploy I get an error as appended. > > Half a

[Factor-talk] Why is an empty paragraph not writable by gadget. ?

2015-09-20 Thread Georg Simon
IN: scratchpad 500 add-gadget gadget. works ( shows an invisible gadget ). But IN: scratchpad 500 gadget. gives the error "Sequence index out of bounds". Is that a bug or a feature ? --

Re: [Factor-talk] string word wrapping in gadgets

2015-09-18 Thread Georg Simon
Thank you. I had to replace number>text with number>string : 500 100 iota [ " " add-gadget ] [ number>string add-gadget ] interleave Am Fri, 18 Sep 2015 09:54:25 -0700 schrieb John Benediktsson : > Labels support printing multiple lines of text, but they don't

Re: [Factor-talk] Why is an empty paragraph not writable by gadget. ?

2015-09-22 Thread Georg Simon
words doesn't work with an empty sequence. > > > > And if you "fix" that, paragraphs don't work because they can't > > calculate their dimensions from an empty list of children. > > > > So, perhaps two bugs to fix. > > > > > > On Su

[Factor-talk] string word wrapping in gadgets

2015-09-18 Thread Georg Simon
What is the preferred way to write some text to a gadget? By trial and error I found this to work : - IN: scratchpad USING: io.styles ui.gadgets.panes ; CONSTANT: character-style { { font-name "sans-serif" } { font-size 22 } } CONSTANT:

[Factor-talk] OpenGL - How to draw lines interactively

2015-11-29 Thread Georg Simon
I already have a gadget which responds to gestures. Which are the best words to use OpenGL for drawing simple lines one by one? ui.gadgets.canvas vocabulary ? make-canvas-dlist delete-canvas-dlist cycle ? Where should I start to read ? maze vocabulary ? Thank you, Georg

[Factor-talk] slot fill in tuple border

2016-07-05 Thread Georg Simon
Hi, what is the purpose of the slot fill in the tuple border ? -- Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their

Re: [Factor-talk] slot fill in tuple border

2016-07-06 Thread Georg Simon
R: red >>interior "foo" open-window > > "{ 1 1 } fill" COLOR: blue >>interior > { 50 50 } COLOR: red >>interior "foo" > open-window > > Cheers, > Jon > > > > Jon > > On Wed, Jul 6, 2016 at 10:25

[Factor-talk] Why doesn't my Factor receive the Insert key ?

2016-08-16 Thread Georg Simon
Hello! I use Xubuntu and the window manager awesome (awesomewm.org). When I run extra/gesture-logger/gesture-logger.factor and press the insert key I only get T{ key-down } T{ key-up } The home key for example produces T{ key-down { sym "HOME" } } T{ key-up { sym "HOME" } } Is it possible to

Re: [Factor-talk] Do editors have a color slot ?

2016-08-22 Thread Georg Simon
s, > John. > > On Sun, Aug 21, 2016 at 5:41 AM, Georg Simon <georg.si...@auge.de> > wrote: > > > http://docs.factorcode.org/content/word-editor%2Cui.gadgets.editors.html > > says : > > Editors have the following slots: > > • font - a font. >

Re: [Factor-talk] database integration - foreign keys ?

2016-08-19 Thread Georg Simon
ous use-cases tested. > > I'm not sure if we have any good documentation for it (couldn't find > in my cursory glance), sorry about that. > > Best, > John. > > > > > > On Thu, Aug 18, 2016 at 8:48 AM, Georg Simon <georg.si...@auge.de> > w

Re: [Factor-talk] Why doesn't my Factor receive the Insert key ?

2016-08-16 Thread Georg Simon
{ 0xFF57 "END" } > { 0xFF58 "BEGIN" } > +{ 0xFF63 "INSERT"} > { 0xFFBE "F1"} > { 0xFFBF "F2"} > { 0xFFC0 "F3"} > > > Jon > > On Tue, Aug 16, 20

Re: [Factor-talk] Why doesn't my Factor receive the Insert key ?

2016-08-16 Thread Georg Simon
e able to easily upgrade, you can maintain > > your patch in your .factor-rc. Something like this: > > > > $ cat .factor-rc > > USING: assocs ui.backend.x11.keys ; > > "INSERT" XK_Insert codes set-at > > > > > > On Tue,

[Factor-talk] Do editors have a color slot ?

2016-08-21 Thread Georg Simon
http://docs.factorcode.org/content/word-editor%2Cui.gadgets.editors.html says : Editors have the following slots: • font - a font. • color - a color. But IN: scratchpad color>> . throws an error. --

[Factor-talk] How to scroll to a new gadget ?

2016-09-18 Thread Georg Simon
The code below is a useless program. It's only purpose is to show my question. By pressing INSERT I add new nodes until the scroller appears. By using ← or → I can see the scroller work. Pressing INSERT triggers the content of the filled-cell of "dialog < frame" to be overwritten by "draw".

Re: [Factor-talk] How to scroll to a new gadget ?

2016-09-19 Thread Georg Simon
t; Also, I don't understand why ``draw`` is making a new > instead of just adding the new node to the existing scroller? > > > > On Sun, Sep 18, 2016 at 5:33 AM, Georg Simon <georg.si...@auge.de> > wrote: > > > The code below is a useless program. > > I

Re: [Factor-talk] How to scroll to a new gadget ?

2016-09-19 Thread Georg Simon
Am Sun, 18 Sep 2016 10:25:59 -0700 schrieb John Benediktsson : > Your code didn't run for me as is, you have to set ``nodes`` to a > value first. > > Also, I don't understand why ``draw`` is making a new > instead of just adding the new node to the existing scroller? > >

[Factor-talk] database integration - foreign keys ?

2016-08-18 Thread Georg Simon
Is there a database type for foreign keys ? Or how can I use foreign keys ? -- ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net

Re: [Factor-talk] +foreign-id+ seems to protect unused entries too

2016-08-26 Thread Georg Simon
Am Thu, 25 Aug 2016 15:21:11 +0200 schrieb Björn Lindqvist : > > If I remove ``{ +foreign-id+ node "ID" }`` all works fine. > > > > Do I understand ``+foreign-id+`` wrong ? > > There was a bug in the delete restrict triggers. Should be fixed now. > > > tree "TREE" { > >

[Factor-talk] +foreign-id+ seems to protect unused entries too

2016-08-23 Thread Georg Simon
In the script below ``delete-tuples`` in line 8 from the end throws an error although the id 2 is not pointed to by any tree entry. If I remove ``{ +foreign-id+ node "ID" }`` all works fine. Do I understand ``+foreign-id+`` wrong ? Georg

Re: [Factor-talk] Reading clipboard in a Factor script ?

2016-11-10 Thread Georg Simon
looking at the with-ui word implementation and calling > the correct words, but that would be harder. > > Jon > > On Thu, Nov 10, 2016 at 4:00 PM, Georg Simon <georg.si...@auge.de> > wrote: > > [...] -

Re: [Factor-talk] Reading clipboard in a Factor script ?

2016-11-10 Thread Georg Simon
Am Thu, 10 Nov 2016 07:32:52 -0800 schrieb John Benediktsson : My platform is Linux. Trying --- USING: namespaces prettyprint ui.backend.gtk ui.clipboards ; init-clipboard clipboard get clipboard-contents .

[Factor-talk] Reading clipboard in a Factor script ?

2016-11-10 Thread Georg Simon
In the Listener ```clipboard get clipboard-contents``` leaves the clipboard content on the stack. In a Factor script I get an error. Because UI is not running I think. Is there a way to read the clipboard content in a Factor script ? Georg

[Factor-talk] How to use ```param``` ?

2017-05-05 Thread Georg Simon
I tried USING: command-line namespaces prettyprint sequences ; IN: test-script SYMBOL: update command-line get [ param ] each update get . $ fl test-script.factor update f What I expected

Re: [Factor-talk] How to use ```param``` ?

2017-05-05 Thread Georg Simon
USE: command-line > IN: scratchpad "a" get . > f > IN: scratchpad "a" param > IN: scratchpad "a" get . > t > IN: scratchpad "b" get . > f > IN: scratchpad "b=1" param > IN: scratchpad "b" get . > "1" > IN:

Re: [Factor-talk] How to use ```param``` ?

2017-05-05 Thread Georg Simon
I want to use command-line arguments in an application. Am Fri, 05 May 2017 15:14:20 +0300 schrieb Alexander Ilin <ajs...@yandex.ru>: > What were you trying to do? > > 05.05.2017, 12:55, "Georg Simon" <georg.si...@auge.de>: > > I tried > >

[Factor-talk] table in scroller - initially selected row not visible

2018-06-14 Thread Georg Simon
On program start I use my table constructor and . Then I read a value from disc and use select-row . But the scroller does not show the selected row. When I begin to use the table interactively all works fine. What is the right way to adjust a scroller initially ?

Re: [Factor-talk] with-http-request* sometimes fails

2018-09-06 Thread Georg Simon
Blush. Thank you Am Wed, 05 Sep 2018 19:31:54 +0300 schrieb Alexander Ilin : > Hello! > > Have you tried removing the leading slash before the "https://;? > > 05.09.2018, 16:05, "Georg Simon" : > > As it seems there are websites that make > > >

[Factor-talk] with-http-request* sometimes fails

2018-09-05 Thread Georg Simon
As it seems there are websites that make with-http-request* throw an error : IN: scratchpad USING: http.client ; With "/https://fussballimtv.de; [ . ] with-http-request* . I get the error "Bad store to specialized slot". With "http://factorcode.org; [ . ] with-http-request* . all works

[Factor-talk] unexpected integer from a float sum

2018-12-18 Thread Georg Simon
Below I pasted a result from my listener I do not understand. The result of sum looks like 137.99 which is right. But the integer I made out of it is 13798 which is wrong. A typed in 137.99 gives the result I expect. What am I missing ?

Re: [Factor-talk] unexpected integer from a float sum

2018-12-19 Thread Georg Simon
Python: > > >>> a = [-13.8, -21.8, -3.99, -3.0, -15.7, 126.98, -8.9, 100.0, -21.8] > >>> sum(a) > 137.989998 > >>> sum(a) * 100 > 13798.9998 > >>> int(sum(a) * 100) > 13798 > > > > > On Tue, Dec 18, 2018 at

[Factor-talk] directly writing to pref-dim slot of gadget

2019-07-25 Thread Georg Simon
https://docs.factorcode.org/content/word-gadget,ui.gadgets.html says "pref-dim - a cached value for pref-dim; do not read or write this slot directly." But in extra/gesture-logger/gesture-logger.factor and extra/rosetta-code/animate-pendulum/animate-pendulum.factor I find { 450 500 } >>pref-dim

Re: [Factor-talk] font sizes in browser und listener

2023-09-21 Thread Georg Simon
lt-font-size 36 > “help.stylesheet” reload > save > > > > On Sep 19, 2023, at 12:56 AM, Georg Simon > > wrote: > > > > Using now 2560x1600 pixels I would like to change all font sizes > > permanently, m

Re: [Factor-talk] font sizes in browser und listener

2023-09-21 Thread Georg Simon
: > Did you restart Factor after saving? Or open a new listener window? > > I noticed the tips of the day at the top don’t properly grow in size > and that needs to be fixed. > > > > > On Sep 21, 2023, at 7:19 AM, Georg Simon > > wrote: > > >

[Factor-talk] Does renderer method column-titles need a scroller ?

2023-09-29 Thread Georg Simon
--- IN: items USING: accessors kernel models ui ui.gadgets.scrollers ui.gadgets.tables ; MAIN-WINDOW: main { { pref-dim { 300 100 } } } { { "aaa" "bbb" } } trivial-renderer >>gadgets ; M: trivial-renderer column-titles drop { "A" "B" } ;

Re: [Factor-talk] Does calendar.format vocabulary need the UI ?

2022-10-03 Thread Georg Simon
.factor-rc --- USING: calendar kernel namespaces timers tools.scaffold ui.tools.browser ui.tools.listener ; "Georg Simon" developer-name set-global [ "DejaVu Sans Mono" 18 set-listener-font ] .1 seconds later dr

Re: [Factor-talk] Does calendar.format vocabulary need the UI ?

2022-10-03 Thread Georg Simon
This .factor-rc fixed it : USING: calendar kernel namespaces timers tools.scaffold ui ui.tools.browser ui.tools.listener ; "Georg Simon" developer-name set-global [ ui-running? [ "DejaVu Sans Mono" 18 set-liste

[Factor-talk] Does calendar.format vocabulary need the UI ?

2022-10-03 Thread Georg Simon
Factor 0.99 x86.64 (2165, heads/master-b0f39e3617, Feb 16 2022 17:53:17) [GCC 11.2.0] on linux I tried to narrow down my problem. For this I run two slightly different scripts which only load a vocabulary. For the second

[Factor-talk] Vocabulary sorting.slots disappeared ?

2023-05-30 Thread Georg Simon
In Factor 0.99 x86.64 (2165, heads/master-b0f39e3617, Feb 16 2022 17:53:17) [GCC 11.2.0] on linux I use compare-slots from sorting.slots Now in Factor 0.99 x86.64 (2210, heads/master-d3f152ca06, May 28 2023 00:36:35) [GCC 11.3.0] on linux I can no longer find it. Thanks, Georg