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
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
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
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
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
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 [
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 --
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.
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.
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
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
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
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
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
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
--
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
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
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
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...
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
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 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.
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
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
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
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
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
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
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
-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
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
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
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
--
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,
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
--
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
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
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
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
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
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 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
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
My system:
--
$ lsb_release -drc
Description:Ubuntu 14.04.2 LTS
Release:14.04
Codename: trusty
--
I tried Tuple database tutorial and got
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
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
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
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)
>
> 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
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 ?
--
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
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
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:
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
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
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
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
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.
>
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
{ 0xFF57 "END" }
> { 0xFF58 "BEGIN" }
> +{ 0xFF63 "INSERT"}
> { 0xFFBE "F1"}
> { 0xFFBF "F2"}
> { 0xFFC0 "F3"}
>
>
> Jon
>
> On Tue, Aug 16, 20
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,
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.
--
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".
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
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?
>
>
Is there a database type for foreign keys ?
Or how can I use foreign keys ?
--
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
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" {
> >
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
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:
>
> [...]
-
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 .
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
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
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:
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
> >
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 ?
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
> >
>
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
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 ?
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
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
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
:
> 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:
> >
>
---
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" } ;
.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
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 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
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
87 matches
Mail list logo