[Factor-talk] play-wav from openal.example throws error ALIEN: 75ed9507aca8

2024-08-17 Thread Georg Simon
I want to try play-wav from openal.example vocabulary. play-wav complained about missing libalut.so . In my Ubuntu 22.04 I installed libalut-dev . Now I get error ALIEN: 75ed9507aca8 . My Factor : Factor 0.100 x86.64 (2275, heads/master-b1af7930b5, Jul 1 2024 21:25:59) [GCC 11.4.0] on linux

[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] 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: > > > >

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

[Factor-talk] font sizes in browser und listener

2023-09-19 Thread Georg Simon
Using now 2560x1600 pixels I would like to change all font sizes permanently, menu bar and search field included. Thanks, Georg ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk

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

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

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

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

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

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

2018-12-19 Thread Georg Simon
Or 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, 201

[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] 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 work

Re: [Factor-talk] How to send a character to an editor ?

2018-07-02 Thread Georg Simon
tains exclusively line-editing commands like`C+l` for select > line but no input keys like `1`. > > Some keys are defined by default, others are not -- I don't know why, > but another person will probably reply to tell you why. > > Hopefully it is somewhat enlightening! >

[Factor-talk] How to send a character to an editor ?

2018-07-02 Thread Georg Simon
-- T{ key-down { sym "HOME" } } handle-gesture . -- prints f as the gesture was handled. But -- T{ key-down { sym "a" } } handle-gesture . T

[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] 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 : > What were you trying to do? > > 05.05.2017, 12:55, "Georg Simon" : > > I tried > > > > USING: > &

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

2017-05-05 Thread Georg Simon
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 . >

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

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

2016-11-10 Thread Georg Simon
implementation and calling > the correct words, but that would be harder. > > Jon > > On Thu, Nov 10, 2016 at 4:00 PM, Georg Simon > wrote: > > [...] -- Developer Access Program for

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 -

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? > > > In the code bel

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

2016-09-19 Thread Georg Simon
;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 > wrote: > > > The code below is a useless program. > > It's only purpose is to show my

[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] +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" { > > { "id" "ID"

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

2016-08-22 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] Do editors have a color slot ?

2016-08-21 Thread Georg Simon
ave foreground and background. They are > also line-gadgets that have a selection-color, and gadgets that have > an interior and border pen that can draw color as well. > > What are you trying to accomplish? Or just noticing stale > documentation? > > Thanks, > John. >

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

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

2016-08-19 Thread Georg Simon
. > > 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 > wro

[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 https://lists.sourceforge.net/lists/

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

2016-08-16 Thread Georg Simon
T" } > > { $ XK_F1 "F1" } > > { $ XK_F2 "F2" } > > { $ XK_F3 "F3" } > > > > If you don't want to wait for us to figure out how we want to fix > > that bug, but still be able to easily upgrade

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

2016-08-16 Thread Georg Simon
gt; { 0xFF58 "BEGIN" } > +{ 0xFF63 "INSERT"} > { 0xFFBE "F1"} > { 0xFFBF "F2"} > { 0xFFC0 "F3"} > > > Jon > > On Tue, Aug 16, 2016 at 12:42 PM, Georg

[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] slot fill in tuple border

2016-07-06 Thread Georg Simon
d >>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 AM, Georg Simon >

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

2016-07-06 Thread Georg Simon
ffect the y axis. I've been > trying to grok the factor ui lately. It seems quite powerful and fun > but the lack of examples and docs is making it a bit of a tough slog. > Though it does seem quite logical and natural once you start > understanding parts of it. > > On Tue, Ju

[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&T Tech Expo July 15-16. Meet us at AT&T Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present the

[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] new Factor and awesome window manager no longer understand each other

2015-11-16 Thread Georg Simon
I use the window manager awesome (http://awesome.naquadah.org/). With Factor 0.98 x86.64 (1720, heads/master-7b18618b3e, Wed Nov 4 12:55:22 2015) [GCC 4.8.4] on linux there is a problem: When I return to my Factor tag (workspace) the Factor windows listener and browser do not refresh but remain

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

2015-11-15 Thread Georg Simon
hat doesn't fix it let me know. > > Thanks, > John: > > > On Nov 15, 2015, at 3:11 AM, Georg Simon > > wrote: > > > > Hello > > > > When testing deploy I get an error as appended. > > Half a ye

[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] Why is an empty paragraph not writable by gadget. ?

2015-09-21 Thread Georg Simon
y 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 Sun, Sep 20, 2015 at 4:08

[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 > relayout and wor

[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: paragraph

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 e

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

2015-08-19 Thread Georg Simon
y-action get-gesture-handler . > [ \ com-copy invoke-command ] > > Hope that helps! > Jon > > On Wed, Aug 19, 2015 at 7:01 AM, Georg Simon > wrote: > > > Thank you. > > > > What you describe is what I use. And I do not want an editor that > > always

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

2015-08-18 Thread Georg Simon
always passes gestures, then... > > TUPLE: my-editor < editor ; > > : ( -- editor ) > my-editor new-editor ; > > M: my-editor handle-gesture call-next-method drop t ; > > Hope that helps! > > > > > On Mon, Aug 17, 2015 at 10

[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 number>string append ".0" on my German system ?

2015-08-13 Thread Georg Simon
64 %prepare-var-args ( -- ) RAX 1 MOV ; > I don't know how hard it would be to generate the correct value 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 ? &

Re: [Factor-talk] Why does number>string append ".0" on my German system ?

2015-08-11 Thread Georg Simon
Am Tue, 11 Aug 2015 09:02:33 -0700 schrieb John Benediktsson : 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 > homoiconicity,

Re: [Factor-talk] Why does number>string append ".0" on my German system ?

2015-08-11 Thread Georg Simon
ve 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" a > écrit : > > > Thank you. > &

Re: [Factor-talk] Why does number>string append ".0" on my German system ?

2015-08-11 Thread Georg Simon
ettings 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" a écrit : > > > IN: scratchpad 1.5 numbe

[Factor-talk] Why does number>string append ".0" on my German system ?

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

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 : Thank you signature.asc Description: PGP signature -- ___ Factor-talk mailing list Factor-talk@lists.sourceforge.n

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

2015-08-06 Thread Georg Simon
http://docs.factorcode.org/content/word-narray,sequences.generalizations.html Why is the stack effect ( n -- quot ) and not ( n -- array ) ? Why does the stack effect show quot as result for the following words nsequence, firstn, and set-firstn ? signature.asc Description: PGP signature ---

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 : > It's because the switch is "-resource-path" not just "-resource". > My mistake. Sorry. signature.asc Description: PGP signature -- _

Re: [Factor-talk] stack effect

2015-07-29 Thread Georg Simon
Am Wed, 29 Jul 2015 08:44:20 +0100 schrieb Iain Gray : 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 : > 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, "resource:" is

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

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

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

2015-07-26 Thread Georg Simon
Am Sun, 26 Jul 2015 13:15:51 +0200 schrieb Björn Lindqvist : Thank you. > Judging by the binary name "factor-lang" you have the factor package > installed from my ppa. But it appears that you have a fresher image > coming from github. You probably can't mix the two versions like that. Indeed I di

[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] libsqlite3.so not found

2015-07-23 Thread Georg Simon
Am Wed, 22 Jul 2015 08:00:19 -0500 schrieb Ed Swartz : > > 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 to delet

[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 : > 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 signature.asc

[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 http://docs.factorcode.org/content/article-command

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

2015-03-03 Thread Georg Simon
t; > Best, > John. > > > On Tue, Mar 3, 2015 at 5:54 AM, Georg Simon > wrote: > > > Hallo, > > > > > > http://docs.factorcode.org/content/word-printf%2Cformatting.html > > says > > printf ( format-string -- quot ) > > > >

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

Re: [Factor-talk] deploy no longer working with new nightly build

2014-12-24 Thread Georg Simon
Am Wed, 24 Dec 2014 07:03:12 -0800 schrieb John Benediktsson : Yes, now everything works fine. Thank you, Georg > Oh, I'm sorry that I forgot to mention. This needs new staging images > for deploy so you need to delete the old ones which are not > compatible with the new handling of the argument

[Factor-talk] deploy no longer working with new nightly build

2014-12-24 Thread Georg Simon
After switching from factor-linux-x86-64-2014-09-17-19-14.tar.gz to factor-linux-x86-64-2014-12-24-04-52.tar.gz I can no longer use the deploy tool. Trying IN: scratchpad "hello-ui" deploy results in the following error http://paste.factorcode.org/paste?id=3413 It seems I have made a configurat

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 : 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 nightly build"

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

2014-12-23 Thread Georg Simon
ng the executable name > > right now (argv[0]). > > > > Probably we should fix that I guess! > > > > If we fix it in master are you comfortable running a nightly build? > > (They are well tested before the build successfully uploads) > > > > > &

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 : > 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 wanted t

[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

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

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 : > 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 can kind of get it

[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 ui.ga

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 : > 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... > Thank you

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

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-ymd>timestamp ( str -- timestamp ) ! str is -MM-DD ymd>timestamp gmt-offset-duration >>gmt-offset ; : days-since ( str -- n ) !

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

2014-09-04 Thread Georg Simon
Yes I agree. But today dup timestamp>ymd ymd>timestamp time- duration>hours . in Germany in Summer prints -2 meaning that timestamp>ymd and ymd>timestamp do not understand each other. My explanation is that timestamp>ymd should not ignore the timezone information. It should evaluate the timestamp

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

2014-09-04 Thread Georg Simon
If I do understand the Factor code ymd>timestamp correctly uses gmt but timestamp>ymd uses local time. So in Germany in summer today dup timestamp>ymd ymd>timestamp time- duration>hours . prints -2 Does that mean there is a bug in timestamp>ymd ? I my application I want to use date strings of the

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

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

Re: [Factor-talk] Dollar amounts

2014-09-03 Thread Georg Simon
Am Wed, 03 Sep 2014 04:20:06 -0400 schrieb mr wzrd : > 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.

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 : Thank you. > ... > > That is, if it weren't for the GMT bit, you could just say > `"2014-08-31" > ymd>timestamp ago duration>days`. In fact, that would make a nice > ymd>word: `: > days-ago ( timestamp -- days ) ago duration>days ;` > Bu

[Factor-talk] how to calculate count of days

2014-09-02 Thread Georg Simon
today "2014-08-31" ymd>timestamp time- duration>days . prints 1+11/12 as we are 2 hours earlier than gmt I guess. today 0 hours >>gmt-offset "2014-08-31" ymd>timestamp time- duration>days . prints 2 which is what I want. Is there a better way to calculate how many days ago a -MM-DD string m

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 : > 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 main I n

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

2014-08-21 Thread Georg Simon
> Jon > Le 21 août 2014 16:46, "Georg Simon" a écrit : > Thank you. Now it works. Georg signature.asc Description: PGP signature -- Slashdot TV. Video for Nerds.

[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 ~dur

Re: [Factor-talk] Factor packaging for Ubuntu

2013-08-26 Thread Georg Simon
I call factor-run with my 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 SourceFo

[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. F

[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. https://github.com/GeorgSimon/factor/blob/db9794798b8ea8ee911a76ff54744a3612c02ad7/sandbox/sand

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 : > 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 -- font' ) -- ) >

[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<< ; : ( gadget title -- gadget' ) dup children>> [ border? ] find nip children>> [ label? ] find nip default-font ; --

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 : > Hi. > > You may use the following: > "DejaVu Sans Mono" 36 set-listener-font > > Ales. Great. Thank you -- See everything from the browser to the database with

[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

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

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

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

  1   2   >